~ubuntu-branches/ubuntu/quantal/freewheeling/quantal

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Paul Brossier
  • Date: 2005-08-06 15:11:54 UTC
  • Revision ID: james.westby@ubuntu.com-20050806151154-nvhhuxtyvgweh75u
Tags: upstream-0.5pre4
ImportĀ upstreamĀ versionĀ 0.5pre4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
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 ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
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
 
85
 
 
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
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >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
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
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'"
 
229
 
 
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'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
# Name of the host.
 
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
246
# so uname gets run too.
 
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
248
 
 
249
exec 6>&1
 
250
 
 
251
#
 
252
# Initializations.
 
253
#
 
254
ac_default_prefix=/usr/local
 
255
ac_config_libobj_dir=.
 
256
cross_compiling=no
 
257
subdirs=
 
258
MFLAGS=
 
259
MAKEFLAGS=
 
260
SHELL=${CONFIG_SHELL-/bin/sh}
 
261
 
 
262
# Maximum number of lines to put in a shell here document.
 
263
# This variable seems obsolete.  It should probably be removed, and
 
264
# only ac_max_sed_lines should be used.
 
265
: ${ac_max_here_lines=38}
 
266
 
 
267
# Identity of this package.
 
268
PACKAGE_NAME=
 
269
PACKAGE_TARNAME=
 
270
PACKAGE_VERSION=
 
271
PACKAGE_STRING=
 
272
PACKAGE_BUGREPORT=
 
273
 
 
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="\
 
278
#include <stdio.h>
 
279
#if HAVE_SYS_TYPES_H
 
280
# include <sys/types.h>
 
281
#endif
 
282
#if HAVE_SYS_STAT_H
 
283
# include <sys/stat.h>
 
284
#endif
 
285
#if STDC_HEADERS
 
286
# include <stdlib.h>
 
287
# include <stddef.h>
 
288
#else
 
289
# if HAVE_STDLIB_H
 
290
#  include <stdlib.h>
 
291
# endif
 
292
#endif
 
293
#if HAVE_STRING_H
 
294
# if !STDC_HEADERS && HAVE_MEMORY_H
 
295
#  include <memory.h>
 
296
# endif
 
297
# include <string.h>
 
298
#endif
 
299
#if HAVE_STRINGS_H
 
300
# include <strings.h>
 
301
#endif
 
302
#if HAVE_INTTYPES_H
 
303
# include <inttypes.h>
 
304
#else
 
305
# if HAVE_STDINT_H
 
306
#  include <stdint.h>
 
307
# endif
 
308
#endif
 
309
#if HAVE_UNISTD_H
 
310
# include <unistd.h>
 
311
#endif"
 
312
 
 
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'
 
314
ac_subst_files=''
 
315
 
 
316
# Initialize some variables set by options.
 
317
ac_init_help=
 
318
ac_init_version=false
 
319
# The variables have the same names as the options, with
 
320
# dashes changed to underlines.
 
321
cache_file=/dev/null
 
322
exec_prefix=NONE
 
323
no_create=
 
324
no_recursion=
 
325
prefix=NONE
 
326
program_prefix=NONE
 
327
program_suffix=NONE
 
328
program_transform_name=s,x,x,
 
329
silent=
 
330
site=
 
331
srcdir=
 
332
verbose=
 
333
x_includes=NONE
 
334
x_libraries=NONE
 
335
 
 
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'
 
353
 
 
354
ac_prev=
 
355
for ac_option
 
356
do
 
357
  # If the previous option needs an argument, assign it.
 
358
  if test -n "$ac_prev"; then
 
359
    eval "$ac_prev=\$ac_option"
 
360
    ac_prev=
 
361
    continue
 
362
  fi
 
363
 
 
364
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
365
 
 
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
367
 
 
368
  case $ac_option in
 
369
 
 
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
371
    ac_prev=bindir ;;
 
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
373
    bindir=$ac_optarg ;;
 
374
 
 
375
  -build | --build | --buil | --bui | --bu)
 
376
    ac_prev=build_alias ;;
 
377
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
378
    build_alias=$ac_optarg ;;
 
379
 
 
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 ;;
 
386
 
 
387
  --config-cache | -C)
 
388
    cache_file=config.cache ;;
 
389
 
 
390
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
391
    ac_prev=datadir ;;
 
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
393
  | --da=*)
 
394
    datadir=$ac_optarg ;;
 
395
 
 
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" ;;
 
404
 
 
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'`
 
412
    case $ac_option in
 
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
414
      *) ac_optarg=yes ;;
 
415
    esac
 
416
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
417
 
 
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 ;;
 
426
 
 
427
  -gas | --gas | --ga | --g)
 
428
    # Obsolete; use --with-gas.
 
429
    with_gas=yes ;;
 
430
 
 
431
  -help | --help | --hel | --he | -h)
 
432
    ac_init_help=long ;;
 
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 ;;
 
437
 
 
438
  -host | --host | --hos | --ho)
 
439
    ac_prev=host_alias ;;
 
440
  -host=* | --host=* | --hos=* | --ho=*)
 
441
    host_alias=$ac_optarg ;;
 
442
 
 
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 ;;
 
449
 
 
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
451
    ac_prev=infodir ;;
 
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
453
    infodir=$ac_optarg ;;
 
454
 
 
455
  -libdir | --libdir | --libdi | --libd)
 
456
    ac_prev=libdir ;;
 
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
458
    libdir=$ac_optarg ;;
 
459
 
 
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 ;;
 
466
 
 
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 ;;
 
475
 
 
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
477
    ac_prev=mandir ;;
 
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
479
    mandir=$ac_optarg ;;
 
480
 
 
481
  -nfp | --nfp | --nf)
 
482
    # Obsolete; use --without-fp.
 
483
    with_fp=no ;;
 
484
 
 
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
486
  | --no-cr | --no-c | -n)
 
487
    no_create=yes ;;
 
488
 
 
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
490
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
491
    no_recursion=yes ;;
 
492
 
 
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 ;;
 
501
 
 
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
503
    ac_prev=prefix ;;
 
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
505
    prefix=$ac_optarg ;;
 
506
 
 
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 ;;
 
513
 
 
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 ;;
 
520
 
 
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 ;;
 
537
 
 
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
539
  | -silent | --silent | --silen | --sile | --sil)
 
540
    silent=yes ;;
 
541
 
 
542
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
543
    ac_prev=sbindir ;;
 
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
545
  | --sbi=* | --sb=*)
 
546
    sbindir=$ac_optarg ;;
 
547
 
 
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
550
  | --sharedst | --shareds | --shared | --share | --shar \
 
551
  | --sha | --sh)
 
552
    ac_prev=sharedstatedir ;;
 
553
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
556
  | --sha=* | --sh=*)
 
557
    sharedstatedir=$ac_optarg ;;
 
558
 
 
559
  -site | --site | --sit)
 
560
    ac_prev=site ;;
 
561
  -site=* | --site=* | --sit=*)
 
562
    site=$ac_optarg ;;
 
563
 
 
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
565
    ac_prev=srcdir ;;
 
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
567
    srcdir=$ac_optarg ;;
 
568
 
 
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 ;;
 
575
 
 
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 ;;
 
580
 
 
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
582
    verbose=yes ;;
 
583
 
 
584
  -version | --version | --versio | --versi | --vers | -V)
 
585
    ac_init_version=: ;;
 
586
 
 
587
  -with-* | --with-*)
 
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'`
 
594
    case $ac_option in
 
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
596
      *) ac_optarg=yes ;;
 
597
    esac
 
598
    eval "with_$ac_package='$ac_optarg'" ;;
 
599
 
 
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" ;;
 
608
 
 
609
  --x)
 
610
    # Obsolete; use --with-x.
 
611
    with_x=yes ;;
 
612
 
 
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 ;;
 
619
 
 
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 ;;
 
626
 
 
627
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
628
Try \`$0 --help' for more information." >&2
 
629
   { (exit 1); exit 1; }; }
 
630
    ;;
 
631
 
 
632
  *=*)
 
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'"
 
640
    export $ac_envvar ;;
 
641
 
 
642
  *)
 
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}
 
648
    ;;
 
649
 
 
650
  esac
 
651
done
 
652
 
 
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; }; }
 
657
fi
 
658
 
 
659
# Be sure to have absolute paths.
 
660
for ac_var in exec_prefix prefix
 
661
do
 
662
  eval ac_val=$`echo $ac_var`
 
663
  case $ac_val in
 
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
665
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
666
   { (exit 1); exit 1; }; };;
 
667
  esac
 
668
done
 
669
 
 
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
 
673
do
 
674
  eval ac_val=$`echo $ac_var`
 
675
  case $ac_val in
 
676
    [\\/$]* | ?:[\\/]* ) ;;
 
677
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
678
   { (exit 1); exit 1; }; };;
 
679
  esac
 
680
done
 
681
 
 
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.
 
685
build=$build_alias
 
686
host=$host_alias
 
687
target=$target_alias
 
688
 
 
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
 
696
    cross_compiling=yes
 
697
  fi
 
698
fi
 
699
 
 
700
ac_tool_prefix=
 
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
702
 
 
703
test "$silent" = yes && exec 6>/dev/null
 
704
 
 
705
 
 
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 ||
 
716
echo X"$0" |
 
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
720
          /^X\(\/\).*/{ s//\1/; q; }
 
721
          s/.*/./; q'`
 
722
  srcdir=$ac_confdir
 
723
  if test ! -r $srcdir/$ac_unique_file; then
 
724
    srcdir=..
 
725
  fi
 
726
else
 
727
  ac_srcdir_defaulted=no
 
728
fi
 
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; }; }
 
733
  else
 
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
735
   { (exit 1); exit 1; }; }
 
736
  fi
 
737
fi
 
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}
 
771
ac_env_CC_value=$CC
 
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
 
782
 
 
783
#
 
784
# Report the --help message.
 
785
#
 
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.
 
789
  cat <<_ACEOF
 
790
\`configure' configures this package to adapt to many kinds of systems.
 
791
 
 
792
Usage: $0 [OPTION]... [VAR=VALUE]...
 
793
 
 
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.
 
796
 
 
797
Defaults for the options are specified in brackets.
 
798
 
 
799
Configuration:
 
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 \`..']
 
809
 
 
810
_ACEOF
 
811
 
 
812
  cat <<_ACEOF
 
813
Installation directories:
 
814
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
815
                          [$ac_default_prefix]
 
816
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
817
                          [PREFIX]
 
818
 
 
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'.
 
823
 
 
824
For better control, use the options below.
 
825
 
 
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]
 
839
_ACEOF
 
840
 
 
841
  cat <<\_ACEOF
 
842
 
 
843
Program names:
 
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
 
847
 
 
848
X features:
 
849
  --x-includes=DIR    X include files are in DIR
 
850
  --x-libraries=DIR   X library files are in DIR
 
851
 
 
852
System types:
 
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]
 
856
_ACEOF
 
857
fi
 
858
 
 
859
if test -n "$ac_init_help"; then
 
860
 
 
861
  cat <<\_ACEOF
 
862
 
 
863
Optional Features:
 
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
 
870
 
 
871
Optional Packages:
 
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)
 
877
 
 
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
 
887
  CPP         C preprocessor
 
888
 
 
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.
 
891
 
 
892
_ACEOF
 
893
fi
 
894
 
 
895
if test "$ac_init_help" = "recursive"; then
 
896
  # If there are subdirs, report their specific --help.
 
897
  ac_popdir=`pwd`
 
898
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
899
    test -d $ac_dir || continue
 
900
    ac_builddir=.
 
901
 
 
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'`
 
906
else
 
907
  ac_dir_suffix= ac_top_builddir=
 
908
fi
 
909
 
 
910
case $srcdir in
 
911
  .)  # No --srcdir option.  We are building in place.
 
912
    ac_srcdir=.
 
913
    if test -z "$ac_top_builddir"; then
 
914
       ac_top_srcdir=.
 
915
    else
 
916
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
917
    fi ;;
 
918
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
919
    ac_srcdir=$srcdir$ac_dir_suffix;
 
920
    ac_top_srcdir=$srcdir ;;
 
921
  *) # Relative path.
 
922
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
923
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
924
esac
 
925
 
 
926
# Do not use `cd foo && pwd` to compute absolute paths, because
 
927
# the directories may not exist.
 
928
case `pwd` in
 
929
.) ac_abs_builddir="$ac_dir";;
 
930
*)
 
931
  case "$ac_dir" in
 
932
  .) ac_abs_builddir=`pwd`;;
 
933
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
934
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
935
  esac;;
 
936
esac
 
937
case $ac_abs_builddir in
 
938
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
939
*)
 
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}.;;
 
944
  esac;;
 
945
esac
 
946
case $ac_abs_builddir in
 
947
.) ac_abs_srcdir=$ac_srcdir;;
 
948
*)
 
949
  case $ac_srcdir in
 
950
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
951
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
952
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
953
  esac;;
 
954
esac
 
955
case $ac_abs_builddir in
 
956
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
957
*)
 
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;;
 
962
  esac;;
 
963
esac
 
964
 
 
965
    cd $ac_dir
 
966
    # Check for guested configure; otherwise get Cygnus style configure.
 
967
    if test -f $ac_srcdir/configure.gnu; then
 
968
      echo
 
969
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
970
    elif test -f $ac_srcdir/configure; then
 
971
      echo
 
972
      $SHELL $ac_srcdir/configure  --help=recursive
 
973
    elif test -f $ac_srcdir/configure.ac ||
 
974
           test -f $ac_srcdir/configure.in; then
 
975
      echo
 
976
      $ac_configure --help
 
977
    else
 
978
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
979
    fi
 
980
    cd "$ac_popdir"
 
981
  done
 
982
fi
 
983
 
 
984
test -n "$ac_init_help" && exit 0
 
985
if $ac_init_version; then
 
986
  cat <<\_ACEOF
 
987
 
 
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.
 
991
_ACEOF
 
992
  exit 0
 
993
fi
 
994
exec 5>config.log
 
995
cat >&5 <<_ACEOF
 
996
This file contains any messages produced by compilers while
 
997
running configure, to aid debugging if configure makes a mistake.
 
998
 
 
999
It was created by $as_me, which was
 
1000
generated by GNU Autoconf 2.59.  Invocation command line was
 
1001
 
 
1002
  $ $0 $@
 
1003
 
 
1004
_ACEOF
 
1005
{
 
1006
cat <<_ASUNAME
 
1007
## --------- ##
 
1008
## Platform. ##
 
1009
## --------- ##
 
1010
 
 
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`
 
1016
 
 
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`
 
1019
 
 
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`
 
1027
 
 
1028
_ASUNAME
 
1029
 
 
1030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1031
for as_dir in $PATH
 
1032
do
 
1033
  IFS=$as_save_IFS
 
1034
  test -z "$as_dir" && as_dir=.
 
1035
  echo "PATH: $as_dir"
 
1036
done
 
1037
 
 
1038
} >&5
 
1039
 
 
1040
cat >&5 <<_ACEOF
 
1041
 
 
1042
 
 
1043
## ----------- ##
 
1044
## Core tests. ##
 
1045
## ----------- ##
 
1046
 
 
1047
_ACEOF
 
1048
 
 
1049
 
 
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.
 
1055
ac_configure_args=
 
1056
ac_configure_args0=
 
1057
ac_configure_args1=
 
1058
ac_sep=
 
1059
ac_must_keep_next=false
 
1060
for ac_pass in 1 2
 
1061
do
 
1062
  for ac_arg
 
1063
  do
 
1064
    case $ac_arg in
 
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)
 
1068
      continue ;;
 
1069
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1070
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1071
    esac
 
1072
    case $ac_pass in
 
1073
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1074
    2)
 
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.
 
1078
      else
 
1079
        case $ac_arg in
 
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 ;;
 
1086
            esac
 
1087
            ;;
 
1088
          -* ) ac_must_keep_next=true ;;
 
1089
        esac
 
1090
      fi
 
1091
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1092
      # Get rid of the leading space.
 
1093
      ac_sep=" "
 
1094
      ;;
 
1095
    esac
 
1096
  done
 
1097
done
 
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; }
 
1100
 
 
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.
 
1108
  {
 
1109
    echo
 
1110
 
 
1111
    cat <<\_ASBOX
 
1112
## ---------------- ##
 
1113
## Cache variables. ##
 
1114
## ---------------- ##
 
1115
_ASBOX
 
1116
    echo
 
1117
    # The following way of writing the cache mishandles newlines in values,
 
1118
{
 
1119
  (set) 2>&1 |
 
1120
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1121
    *ac_space=\ *)
 
1122
      sed -n \
 
1123
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1124
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1125
      ;;
 
1126
    *)
 
1127
      sed -n \
 
1128
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1129
      ;;
 
1130
    esac;
 
1131
}
 
1132
    echo
 
1133
 
 
1134
    cat <<\_ASBOX
 
1135
## ----------------- ##
 
1136
## Output variables. ##
 
1137
## ----------------- ##
 
1138
_ASBOX
 
1139
    echo
 
1140
    for ac_var in $ac_subst_vars
 
1141
    do
 
1142
      eval ac_val=$`echo $ac_var`
 
1143
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1144
    done | sort
 
1145
    echo
 
1146
 
 
1147
    if test -n "$ac_subst_files"; then
 
1148
      cat <<\_ASBOX
 
1149
## ------------- ##
 
1150
## Output files. ##
 
1151
## ------------- ##
 
1152
_ASBOX
 
1153
      echo
 
1154
      for ac_var in $ac_subst_files
 
1155
      do
 
1156
        eval ac_val=$`echo $ac_var`
 
1157
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1158
      done | sort
 
1159
      echo
 
1160
    fi
 
1161
 
 
1162
    if test -s confdefs.h; then
 
1163
      cat <<\_ASBOX
 
1164
## ----------- ##
 
1165
## confdefs.h. ##
 
1166
## ----------- ##
 
1167
_ASBOX
 
1168
      echo
 
1169
      sed "/^$/d" confdefs.h | sort
 
1170
      echo
 
1171
    fi
 
1172
    test "$ac_signal" != 0 &&
 
1173
      echo "$as_me: caught signal $ac_signal"
 
1174
    echo "$as_me: exit $exit_status"
 
1175
  } >&5
 
1176
  rm -f core *.core &&
 
1177
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1178
    exit $exit_status
 
1179
     ' 0
 
1180
for ac_signal in 1 2 13 15; do
 
1181
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1182
done
 
1183
ac_signal=0
 
1184
 
 
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.
 
1188
echo >confdefs.h
 
1189
 
 
1190
# Predefined preprocessor variables.
 
1191
 
 
1192
cat >>confdefs.h <<_ACEOF
 
1193
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1194
_ACEOF
 
1195
 
 
1196
 
 
1197
cat >>confdefs.h <<_ACEOF
 
1198
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1199
_ACEOF
 
1200
 
 
1201
 
 
1202
cat >>confdefs.h <<_ACEOF
 
1203
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1204
_ACEOF
 
1205
 
 
1206
 
 
1207
cat >>confdefs.h <<_ACEOF
 
1208
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1209
_ACEOF
 
1210
 
 
1211
 
 
1212
cat >>confdefs.h <<_ACEOF
 
1213
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1214
_ACEOF
 
1215
 
 
1216
 
 
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"
 
1222
  else
 
1223
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1224
  fi
 
1225
fi
 
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
 
1231
    . "$ac_site_file"
 
1232
  fi
 
1233
done
 
1234
 
 
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;}
 
1241
    case $cache_file in
 
1242
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1243
      *)                      . ./$cache_file;;
 
1244
    esac
 
1245
  fi
 
1246
else
 
1247
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1248
echo "$as_me: creating cache $cache_file" >&6;}
 
1249
  >$cache_file
 
1250
fi
 
1251
 
 
1252
# Check that the precious variables saved in the cache have kept the same
 
1253
# value.
 
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
 
1262
    set,)
 
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=: ;;
 
1266
    ,set)
 
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=: ;;
 
1270
    ,);;
 
1271
    *)
 
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=:
 
1280
      fi;;
 
1281
  esac
 
1282
  # Pass precious variables to config.status.
 
1283
  if test "$ac_new_set" = set; then
 
1284
    case $ac_new_val in
 
1285
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1286
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1287
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1288
    esac
 
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'" ;;
 
1292
    esac
 
1293
  fi
 
1294
done
 
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; }; }
 
1301
fi
 
1302
 
 
1303
ac_ext=c
 
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
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
 
1321
 
 
1322
 
 
1323
 
 
1324
 
 
1325
 
 
1326
 
 
1327
am__api_version="1.7"
 
1328
ac_aux_dir=
 
1329
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1330
  if test -f $ac_dir/install-sh; then
 
1331
    ac_aux_dir=$ac_dir
 
1332
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1333
    break
 
1334
  elif test -f $ac_dir/install.sh; then
 
1335
    ac_aux_dir=$ac_dir
 
1336
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1337
    break
 
1338
  elif test -f $ac_dir/shtool; then
 
1339
    ac_aux_dir=$ac_dir
 
1340
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1341
    break
 
1342
  fi
 
1343
done
 
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; }; }
 
1348
fi
 
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.
 
1352
 
 
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
 
1359
# AIX /bin/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
 
1371
else
 
1372
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1373
for as_dir in $PATH
 
1374
do
 
1375
  IFS=$as_save_IFS
 
1376
  test -z "$as_dir" && as_dir=.
 
1377
  # Account for people who put trailing slashes in PATH elements.
 
1378
case $as_dir/ in
 
1379
  ./ | .// | /cC/* | \
 
1380
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1381
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1382
  /usr/ucb/* ) ;;
 
1383
  *)
 
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
 
1386
    # by default.
 
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.
 
1393
            :
 
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.
 
1397
            :
 
1398
          else
 
1399
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1400
            break 3
 
1401
          fi
 
1402
        fi
 
1403
      done
 
1404
    done
 
1405
    ;;
 
1406
esac
 
1407
done
 
1408
 
 
1409
 
 
1410
fi
 
1411
  if test "${ac_cv_path_install+set}" = set; then
 
1412
    INSTALL=$ac_cv_path_install
 
1413
  else
 
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
 
1419
  fi
 
1420
fi
 
1421
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1422
echo "${ECHO_T}$INSTALL" >&6
 
1423
 
 
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}'
 
1427
 
 
1428
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1429
 
 
1430
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1431
 
 
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
 
1434
# Just in case
 
1435
sleep 1
 
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
 
1441
# directory).
 
1442
if (
 
1443
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1444
   if test "$*" = "X"; then
 
1445
      # -L didn't work.
 
1446
      set X `ls -t $srcdir/configure conftest.file`
 
1447
   fi
 
1448
   rm -f conftest.file
 
1449
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1450
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1451
 
 
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; }; }
 
1461
   fi
 
1462
 
 
1463
   test "$2" = conftest.file
 
1464
   )
 
1465
then
 
1466
   # Ok.
 
1467
   :
 
1468
else
 
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; }; }
 
1474
fi
 
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,$//
 
1486
_ACEOF
 
1487
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1488
rm conftest.sed
 
1489
 
 
1490
 
 
1491
# expand $ac_aux_dir to an absolute path
 
1492
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1493
 
 
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 "
 
1498
else
 
1499
  am_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;}
 
1502
fi
 
1503
 
 
1504
for ac_prog in gawk mawk nawk awk
 
1505
do
 
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
 
1512
else
 
1513
  if test -n "$AWK"; then
 
1514
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1515
else
 
1516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1517
for as_dir in $PATH
 
1518
do
 
1519
  IFS=$as_save_IFS
 
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
 
1525
    break 2
 
1526
  fi
 
1527
done
 
1528
done
 
1529
 
 
1530
fi
 
1531
fi
 
1532
AWK=$ac_cv_prog_AWK
 
1533
if test -n "$AWK"; then
 
1534
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1535
echo "${ECHO_T}$AWK" >&6
 
1536
else
 
1537
  echo "$as_me:$LINENO: result: no" >&5
 
1538
echo "${ECHO_T}no" >&6
 
1539
fi
 
1540
 
 
1541
  test -n "$AWK" && break
 
1542
done
 
1543
 
 
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
 
1549
else
 
1550
  cat >conftest.make <<\_ACEOF
 
1551
all:
 
1552
        @echo 'ac_maketemp="$(MAKE)"'
 
1553
_ACEOF
 
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
 
1558
else
 
1559
  eval ac_cv_prog_make_${ac_make}_set=no
 
1560
fi
 
1561
rm -f conftest.make
 
1562
fi
 
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
 
1566
  SET_MAKE=
 
1567
else
 
1568
  echo "$as_me:$LINENO: result: no" >&5
 
1569
echo "${ECHO_T}no" >&6
 
1570
  SET_MAKE="MAKE=${MAKE-make}"
 
1571
fi
 
1572
 
 
1573
rm -rf .tst 2>/dev/null
 
1574
mkdir .tst 2>/dev/null
 
1575
if test -d .tst; then
 
1576
  am__leading_dot=.
 
1577
else
 
1578
  am__leading_dot=_
 
1579
fi
 
1580
rmdir .tst 2>/dev/null
 
1581
 
 
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; }; }
 
1588
fi
 
1589
 
 
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'
 
1594
  else
 
1595
    CYGPATH_W=echo
 
1596
  fi
 
1597
fi
 
1598
 
 
1599
 
 
1600
# Define the identity of the package.
 
1601
 PACKAGE=fweelin
 
1602
 VERSION=0.5pre4
 
1603
 
 
1604
 
 
1605
cat >>confdefs.h <<_ACEOF
 
1606
#define PACKAGE "$PACKAGE"
 
1607
_ACEOF
 
1608
 
 
1609
 
 
1610
cat >>confdefs.h <<_ACEOF
 
1611
#define VERSION "$VERSION"
 
1612
_ACEOF
 
1613
 
 
1614
# Some tools Automake needs.
 
1615
 
 
1616
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1617
 
 
1618
 
 
1619
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1620
 
 
1621
 
 
1622
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1623
 
 
1624
 
 
1625
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1626
 
 
1627
 
 
1628
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1629
 
 
1630
 
 
1631
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1632
 
 
1633
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1634
 
 
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
 
1647
else
 
1648
  if test -n "$STRIP"; then
 
1649
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1650
else
 
1651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1652
for as_dir in $PATH
 
1653
do
 
1654
  IFS=$as_save_IFS
 
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
 
1660
    break 2
 
1661
  fi
 
1662
done
 
1663
done
 
1664
 
 
1665
fi
 
1666
fi
 
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
 
1671
else
 
1672
  echo "$as_me:$LINENO: result: no" >&5
 
1673
echo "${ECHO_T}no" >&6
 
1674
fi
 
1675
 
 
1676
fi
 
1677
if test -z "$ac_cv_prog_STRIP"; then
 
1678
  ac_ct_STRIP=$STRIP
 
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
 
1685
else
 
1686
  if test -n "$ac_ct_STRIP"; then
 
1687
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1688
else
 
1689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1690
for as_dir in $PATH
 
1691
do
 
1692
  IFS=$as_save_IFS
 
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
 
1698
    break 2
 
1699
  fi
 
1700
done
 
1701
done
 
1702
 
 
1703
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1704
fi
 
1705
fi
 
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
 
1710
else
 
1711
  echo "$as_me:$LINENO: result: no" >&5
 
1712
echo "${ECHO_T}no" >&6
 
1713
fi
 
1714
 
 
1715
  STRIP=$ac_ct_STRIP
 
1716
else
 
1717
  STRIP="$ac_cv_prog_STRIP"
 
1718
fi
 
1719
 
 
1720
fi
 
1721
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1722
 
 
1723
# We need awk for the "check" target.  The system "awk" is bad on
 
1724
# some platforms.
 
1725
 
 
1726
 
 
1727
 
 
1728
 
 
1729
#AM_CONFIG_HEADER(config.h)
 
1730
 
 
1731
# Check whether --enable-fluidsynth or --disable-fluidsynth was given.
 
1732
if test "${enable_fluidsynth+set}" = set; then
 
1733
  enableval="$enable_fluidsynth"
 
1734
 
 
1735
fi;
 
1736
 
 
1737
# Checks for programs.
 
1738
ac_ext=cc
 
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
 
1745
  do
 
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
 
1752
else
 
1753
  if test -n "$CXX"; then
 
1754
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
1755
else
 
1756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1757
for as_dir in $PATH
 
1758
do
 
1759
  IFS=$as_save_IFS
 
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
 
1765
    break 2
 
1766
  fi
 
1767
done
 
1768
done
 
1769
 
 
1770
fi
 
1771
fi
 
1772
CXX=$ac_cv_prog_CXX
 
1773
if test -n "$CXX"; then
 
1774
  echo "$as_me:$LINENO: result: $CXX" >&5
 
1775
echo "${ECHO_T}$CXX" >&6
 
1776
else
 
1777
  echo "$as_me:$LINENO: result: no" >&5
 
1778
echo "${ECHO_T}no" >&6
 
1779
fi
 
1780
 
 
1781
    test -n "$CXX" && break
 
1782
  done
 
1783
fi
 
1784
if test -z "$CXX"; then
 
1785
  ac_ct_CXX=$CXX
 
1786
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
1787
do
 
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
 
1794
else
 
1795
  if test -n "$ac_ct_CXX"; then
 
1796
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
1797
else
 
1798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1799
for as_dir in $PATH
 
1800
do
 
1801
  IFS=$as_save_IFS
 
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
 
1807
    break 2
 
1808
  fi
 
1809
done
 
1810
done
 
1811
 
 
1812
fi
 
1813
fi
 
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
 
1818
else
 
1819
  echo "$as_me:$LINENO: result: no" >&5
 
1820
echo "${ECHO_T}no" >&6
 
1821
fi
 
1822
 
 
1823
  test -n "$ac_ct_CXX" && break
 
1824
done
 
1825
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
1826
 
 
1827
  CXX=$ac_ct_CXX
 
1828
fi
 
1829
 
 
1830
 
 
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
 
1837
  ac_status=$?
 
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
 
1842
  ac_status=$?
 
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
 
1847
  ac_status=$?
 
1848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1849
  (exit $ac_status); }
 
1850
 
 
1851
cat >conftest.$ac_ext <<_ACEOF
 
1852
/* confdefs.h.  */
 
1853
_ACEOF
 
1854
cat confdefs.h >>conftest.$ac_ext
 
1855
cat >>conftest.$ac_ext <<_ACEOF
 
1856
/* end confdefs.h.  */
 
1857
 
 
1858
int
 
1859
main ()
 
1860
{
 
1861
 
 
1862
  ;
 
1863
  return 0;
 
1864
}
 
1865
_ACEOF
 
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
 
1870
# of exeext.
 
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
 
1876
  ac_status=$?
 
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
 
1881
# resort.
 
1882
 
 
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.
 
1885
ac_cv_exeext=
 
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
 
1888
do
 
1889
  test -f "$ac_file" || continue
 
1890
  case $ac_file in
 
1891
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1892
        ;;
 
1893
    conftest.$ac_ext )
 
1894
        # This is the source file.
 
1895
        ;;
 
1896
    [ab].out )
 
1897
        # We found the default executable, but exeext='' is most
 
1898
        # certainly right.
 
1899
        break;;
 
1900
    *.* )
 
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.
 
1905
        export ac_cv_exeext
 
1906
        break;;
 
1907
    * )
 
1908
        break;;
 
1909
  esac
 
1910
done
 
1911
else
 
1912
  echo "$as_me: failed program was:" >&5
 
1913
sed 's/^/| /' conftest.$ac_ext >&5
 
1914
 
 
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; }; }
 
1920
fi
 
1921
 
 
1922
ac_exeext=$ac_cv_exeext
 
1923
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1924
echo "${ECHO_T}$ac_file" >&6
 
1925
 
 
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
 
1935
  (eval $ac_try) 2>&5
 
1936
  ac_status=$?
 
1937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1938
  (exit $ac_status); }; }; then
 
1939
    cross_compiling=no
 
1940
  else
 
1941
    if test "$cross_compiling" = maybe; then
 
1942
        cross_compiling=yes
 
1943
    else
 
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; }; }
 
1951
    fi
 
1952
  fi
 
1953
fi
 
1954
echo "$as_me:$LINENO: result: yes" >&5
 
1955
echo "${ECHO_T}yes" >&6
 
1956
 
 
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
 
1965
 
 
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
 
1970
  ac_status=$?
 
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
 
1976
# `rm'.
 
1977
for ac_file in conftest.exe conftest conftest.*; do
 
1978
  test -f "$ac_file" || continue
 
1979
  case $ac_file in
 
1980
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1981
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1982
          export ac_cv_exeext
 
1983
          break;;
 
1984
    * ) break;;
 
1985
  esac
 
1986
done
 
1987
else
 
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; }; }
 
1993
fi
 
1994
 
 
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
 
1998
 
 
1999
rm -f conftest.$ac_ext
 
2000
EXEEXT=$ac_cv_exeext
 
2001
ac_exeext=$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
 
2006
else
 
2007
  cat >conftest.$ac_ext <<_ACEOF
 
2008
/* confdefs.h.  */
 
2009
_ACEOF
 
2010
cat confdefs.h >>conftest.$ac_ext
 
2011
cat >>conftest.$ac_ext <<_ACEOF
 
2012
/* end confdefs.h.  */
 
2013
 
 
2014
int
 
2015
main ()
 
2016
{
 
2017
 
 
2018
  ;
 
2019
  return 0;
 
2020
}
 
2021
_ACEOF
 
2022
rm -f conftest.o conftest.obj
 
2023
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2024
  (eval $ac_compile) 2>&5
 
2025
  ac_status=$?
 
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
 
2029
  case $ac_file in
 
2030
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2031
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2032
       break;;
 
2033
  esac
 
2034
done
 
2035
else
 
2036
  echo "$as_me: failed program was:" >&5
 
2037
sed 's/^/| /' conftest.$ac_ext >&5
 
2038
 
 
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; }; }
 
2044
fi
 
2045
 
 
2046
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2047
fi
 
2048
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2049
echo "${ECHO_T}$ac_cv_objext" >&6
 
2050
OBJEXT=$ac_cv_objext
 
2051
ac_objext=$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
 
2056
else
 
2057
  cat >conftest.$ac_ext <<_ACEOF
 
2058
/* confdefs.h.  */
 
2059
_ACEOF
 
2060
cat confdefs.h >>conftest.$ac_ext
 
2061
cat >>conftest.$ac_ext <<_ACEOF
 
2062
/* end confdefs.h.  */
 
2063
 
 
2064
int
 
2065
main ()
 
2066
{
 
2067
#ifndef __GNUC__
 
2068
       choke me
 
2069
#endif
 
2070
 
 
2071
  ;
 
2072
  return 0;
 
2073
}
 
2074
_ACEOF
 
2075
rm -f conftest.$ac_objext
 
2076
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2077
  (eval $ac_compile) 2>conftest.er1
 
2078
  ac_status=$?
 
2079
  grep -v '^ *+' conftest.er1 >conftest.err
 
2080
  rm -f conftest.er1
 
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
 
2086
  (eval $ac_try) 2>&5
 
2087
  ac_status=$?
 
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
 
2092
  (eval $ac_try) 2>&5
 
2093
  ac_status=$?
 
2094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2095
  (exit $ac_status); }; }; then
 
2096
  ac_compiler_gnu=yes
 
2097
else
 
2098
  echo "$as_me: failed program was:" >&5
 
2099
sed 's/^/| /' conftest.$ac_ext >&5
 
2100
 
 
2101
ac_compiler_gnu=no
 
2102
fi
 
2103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2104
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2105
 
 
2106
fi
 
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
 
2112
CXXFLAGS="-g"
 
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
 
2117
else
 
2118
  cat >conftest.$ac_ext <<_ACEOF
 
2119
/* confdefs.h.  */
 
2120
_ACEOF
 
2121
cat confdefs.h >>conftest.$ac_ext
 
2122
cat >>conftest.$ac_ext <<_ACEOF
 
2123
/* end confdefs.h.  */
 
2124
 
 
2125
int
 
2126
main ()
 
2127
{
 
2128
 
 
2129
  ;
 
2130
  return 0;
 
2131
}
 
2132
_ACEOF
 
2133
rm -f conftest.$ac_objext
 
2134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2135
  (eval $ac_compile) 2>conftest.er1
 
2136
  ac_status=$?
 
2137
  grep -v '^ *+' conftest.er1 >conftest.err
 
2138
  rm -f conftest.er1
 
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
 
2144
  (eval $ac_try) 2>&5
 
2145
  ac_status=$?
 
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
 
2150
  (eval $ac_try) 2>&5
 
2151
  ac_status=$?
 
2152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2153
  (exit $ac_status); }; }; then
 
2154
  ac_cv_prog_cxx_g=yes
 
2155
else
 
2156
  echo "$as_me: failed program was:" >&5
 
2157
sed 's/^/| /' conftest.$ac_ext >&5
 
2158
 
 
2159
ac_cv_prog_cxx_g=no
 
2160
fi
 
2161
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2162
fi
 
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
 
2169
    CXXFLAGS="-g -O2"
 
2170
  else
 
2171
    CXXFLAGS="-g"
 
2172
  fi
 
2173
else
 
2174
  if test "$GXX" = yes; then
 
2175
    CXXFLAGS="-O2"
 
2176
  else
 
2177
    CXXFLAGS=
 
2178
  fi
 
2179
fi
 
2180
for ac_declaration in \
 
2181
   '' \
 
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);' \
 
2186
   'void exit (int);'
 
2187
do
 
2188
  cat >conftest.$ac_ext <<_ACEOF
 
2189
/* confdefs.h.  */
 
2190
_ACEOF
 
2191
cat confdefs.h >>conftest.$ac_ext
 
2192
cat >>conftest.$ac_ext <<_ACEOF
 
2193
/* end confdefs.h.  */
 
2194
$ac_declaration
 
2195
#include <stdlib.h>
 
2196
int
 
2197
main ()
 
2198
{
 
2199
exit (42);
 
2200
  ;
 
2201
  return 0;
 
2202
}
 
2203
_ACEOF
 
2204
rm -f conftest.$ac_objext
 
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2206
  (eval $ac_compile) 2>conftest.er1
 
2207
  ac_status=$?
 
2208
  grep -v '^ *+' conftest.er1 >conftest.err
 
2209
  rm -f conftest.er1
 
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
 
2215
  (eval $ac_try) 2>&5
 
2216
  ac_status=$?
 
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
 
2221
  (eval $ac_try) 2>&5
 
2222
  ac_status=$?
 
2223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2224
  (exit $ac_status); }; }; then
 
2225
  :
 
2226
else
 
2227
  echo "$as_me: failed program was:" >&5
 
2228
sed 's/^/| /' conftest.$ac_ext >&5
 
2229
 
 
2230
continue
 
2231
fi
 
2232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2233
  cat >conftest.$ac_ext <<_ACEOF
 
2234
/* confdefs.h.  */
 
2235
_ACEOF
 
2236
cat confdefs.h >>conftest.$ac_ext
 
2237
cat >>conftest.$ac_ext <<_ACEOF
 
2238
/* end confdefs.h.  */
 
2239
$ac_declaration
 
2240
int
 
2241
main ()
 
2242
{
 
2243
exit (42);
 
2244
  ;
 
2245
  return 0;
 
2246
}
 
2247
_ACEOF
 
2248
rm -f conftest.$ac_objext
 
2249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2250
  (eval $ac_compile) 2>conftest.er1
 
2251
  ac_status=$?
 
2252
  grep -v '^ *+' conftest.er1 >conftest.err
 
2253
  rm -f conftest.er1
 
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
 
2259
  (eval $ac_try) 2>&5
 
2260
  ac_status=$?
 
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
 
2265
  (eval $ac_try) 2>&5
 
2266
  ac_status=$?
 
2267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2268
  (exit $ac_status); }; }; then
 
2269
  break
 
2270
else
 
2271
  echo "$as_me: failed program was:" >&5
 
2272
sed 's/^/| /' conftest.$ac_ext >&5
 
2273
 
 
2274
fi
 
2275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2276
done
 
2277
rm -f conftest*
 
2278
if test -n "$ac_declaration"; then
 
2279
  echo '#ifdef __cplusplus' >>confdefs.h
 
2280
  echo $ac_declaration      >>confdefs.h
 
2281
  echo '#endif'             >>confdefs.h
 
2282
fi
 
2283
 
 
2284
ac_ext=c
 
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"
 
2290
 
 
2291
          ac_config_commands="$ac_config_commands depfiles"
 
2292
 
 
2293
 
 
2294
am_make=${MAKE-make}
 
2295
cat > confinc << 'END'
 
2296
am__doit:
 
2297
        @echo done
 
2298
.PHONY: am__doit
 
2299
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
 
2303
am__include="#"
 
2304
am__quote=
 
2305
_am_result=none
 
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
 
2314
   am__include=include
 
2315
   am__quote=
 
2316
   _am_result=GNU
 
2317
fi
 
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
 
2323
      am__quote="\""
 
2324
      _am_result=BSD
 
2325
   fi
 
2326
fi
 
2327
 
 
2328
 
 
2329
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2330
echo "${ECHO_T}$_am_result" >&6
 
2331
rm -f confinc confmf
 
2332
 
 
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"
 
2336
 
 
2337
fi;
 
2338
if test "x$enable_dependency_tracking" != xno; then
 
2339
  am_depcomp="$ac_aux_dir/depcomp"
 
2340
  AMDEPBACKSLASH='\'
 
2341
fi
 
2342
 
 
2343
 
 
2344
if test "x$enable_dependency_tracking" != xno; then
 
2345
  AMDEP_TRUE=
 
2346
  AMDEP_FALSE='#'
 
2347
else
 
2348
  AMDEP_TRUE='#'
 
2349
  AMDEP_FALSE=
 
2350
fi
 
2351
 
 
2352
 
 
2353
 
 
2354
 
 
2355
depcc="$CXX"  am_compiler_list=
 
2356
 
 
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
 
2361
else
 
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
 
2367
  # in D'.
 
2368
  mkdir conftest.dir
 
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
 
2372
  cd 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
 
2378
  # directory.
 
2379
  mkdir sub
 
2380
 
 
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`
 
2384
  fi
 
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.
 
2389
    #
 
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.
 
2393
    : > sub/conftest.c
 
2394
    for i in 1 2 3 4 5 6; do
 
2395
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2396
      : > sub/conftst$i.h
 
2397
    done
 
2398
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2399
 
 
2400
    case $depmode in
 
2401
    nosideeffect)
 
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
 
2405
        continue
 
2406
      else
 
2407
        break
 
2408
      fi
 
2409
      ;;
 
2410
    none) break ;;
 
2411
    esac
 
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
 
2428
        break
 
2429
      fi
 
2430
    fi
 
2431
  done
 
2432
 
 
2433
  cd ..
 
2434
  rm -rf conftest.dir
 
2435
else
 
2436
  am_cv_CXX_dependencies_compiler_type=none
 
2437
fi
 
2438
 
 
2439
fi
 
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
 
2443
 
 
2444
 
 
2445
 
 
2446
if
 
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='#'
 
2451
else
 
2452
  am__fastdepCXX_TRUE='#'
 
2453
  am__fastdepCXX_FALSE=
 
2454
fi
 
2455
 
 
2456
 
 
2457
ac_ext=c
 
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
 
2469
else
 
2470
  if test -n "$CC"; then
 
2471
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2472
else
 
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2474
for as_dir in $PATH
 
2475
do
 
2476
  IFS=$as_save_IFS
 
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
 
2482
    break 2
 
2483
  fi
 
2484
done
 
2485
done
 
2486
 
 
2487
fi
 
2488
fi
 
2489
CC=$ac_cv_prog_CC
 
2490
if test -n "$CC"; then
 
2491
  echo "$as_me:$LINENO: result: $CC" >&5
 
2492
echo "${ECHO_T}$CC" >&6
 
2493
else
 
2494
  echo "$as_me:$LINENO: result: no" >&5
 
2495
echo "${ECHO_T}no" >&6
 
2496
fi
 
2497
 
 
2498
fi
 
2499
if test -z "$ac_cv_prog_CC"; then
 
2500
  ac_ct_CC=$CC
 
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
 
2507
else
 
2508
  if test -n "$ac_ct_CC"; then
 
2509
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2510
else
 
2511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2512
for as_dir in $PATH
 
2513
do
 
2514
  IFS=$as_save_IFS
 
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
 
2520
    break 2
 
2521
  fi
 
2522
done
 
2523
done
 
2524
 
 
2525
fi
 
2526
fi
 
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
 
2531
else
 
2532
  echo "$as_me:$LINENO: result: no" >&5
 
2533
echo "${ECHO_T}no" >&6
 
2534
fi
 
2535
 
 
2536
  CC=$ac_ct_CC
 
2537
else
 
2538
  CC="$ac_cv_prog_CC"
 
2539
fi
 
2540
 
 
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
 
2549
else
 
2550
  if test -n "$CC"; then
 
2551
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2552
else
 
2553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2554
for as_dir in $PATH
 
2555
do
 
2556
  IFS=$as_save_IFS
 
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
 
2562
    break 2
 
2563
  fi
 
2564
done
 
2565
done
 
2566
 
 
2567
fi
 
2568
fi
 
2569
CC=$ac_cv_prog_CC
 
2570
if test -n "$CC"; then
 
2571
  echo "$as_me:$LINENO: result: $CC" >&5
 
2572
echo "${ECHO_T}$CC" >&6
 
2573
else
 
2574
  echo "$as_me:$LINENO: result: no" >&5
 
2575
echo "${ECHO_T}no" >&6
 
2576
fi
 
2577
 
 
2578
fi
 
2579
if test -z "$ac_cv_prog_CC"; then
 
2580
  ac_ct_CC=$CC
 
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
 
2587
else
 
2588
  if test -n "$ac_ct_CC"; then
 
2589
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2590
else
 
2591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2592
for as_dir in $PATH
 
2593
do
 
2594
  IFS=$as_save_IFS
 
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
 
2600
    break 2
 
2601
  fi
 
2602
done
 
2603
done
 
2604
 
 
2605
fi
 
2606
fi
 
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
 
2611
else
 
2612
  echo "$as_me:$LINENO: result: no" >&5
 
2613
echo "${ECHO_T}no" >&6
 
2614
fi
 
2615
 
 
2616
  CC=$ac_ct_CC
 
2617
else
 
2618
  CC="$ac_cv_prog_CC"
 
2619
fi
 
2620
 
 
2621
fi
 
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
 
2629
else
 
2630
  if test -n "$CC"; then
 
2631
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2632
else
 
2633
  ac_prog_rejected=no
 
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2635
for as_dir in $PATH
 
2636
do
 
2637
  IFS=$as_save_IFS
 
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
 
2643
       continue
 
2644
     fi
 
2645
    ac_cv_prog_CC="cc"
 
2646
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2647
    break 2
 
2648
  fi
 
2649
done
 
2650
done
 
2651
 
 
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
 
2655
  shift
 
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.
 
2660
    shift
 
2661
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2662
  fi
 
2663
fi
 
2664
fi
 
2665
fi
 
2666
CC=$ac_cv_prog_CC
 
2667
if test -n "$CC"; then
 
2668
  echo "$as_me:$LINENO: result: $CC" >&5
 
2669
echo "${ECHO_T}$CC" >&6
 
2670
else
 
2671
  echo "$as_me:$LINENO: result: no" >&5
 
2672
echo "${ECHO_T}no" >&6
 
2673
fi
 
2674
 
 
2675
fi
 
2676
if test -z "$CC"; then
 
2677
  if test -n "$ac_tool_prefix"; then
 
2678
  for ac_prog in cl
 
2679
  do
 
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
 
2686
else
 
2687
  if test -n "$CC"; then
 
2688
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2689
else
 
2690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2691
for as_dir in $PATH
 
2692
do
 
2693
  IFS=$as_save_IFS
 
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
 
2699
    break 2
 
2700
  fi
 
2701
done
 
2702
done
 
2703
 
 
2704
fi
 
2705
fi
 
2706
CC=$ac_cv_prog_CC
 
2707
if test -n "$CC"; then
 
2708
  echo "$as_me:$LINENO: result: $CC" >&5
 
2709
echo "${ECHO_T}$CC" >&6
 
2710
else
 
2711
  echo "$as_me:$LINENO: result: no" >&5
 
2712
echo "${ECHO_T}no" >&6
 
2713
fi
 
2714
 
 
2715
    test -n "$CC" && break
 
2716
  done
 
2717
fi
 
2718
if test -z "$CC"; then
 
2719
  ac_ct_CC=$CC
 
2720
  for ac_prog in cl
 
2721
do
 
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
 
2728
else
 
2729
  if test -n "$ac_ct_CC"; then
 
2730
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2731
else
 
2732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2733
for as_dir in $PATH
 
2734
do
 
2735
  IFS=$as_save_IFS
 
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
 
2741
    break 2
 
2742
  fi
 
2743
done
 
2744
done
 
2745
 
 
2746
fi
 
2747
fi
 
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
 
2752
else
 
2753
  echo "$as_me:$LINENO: result: no" >&5
 
2754
echo "${ECHO_T}no" >&6
 
2755
fi
 
2756
 
 
2757
  test -n "$ac_ct_CC" && break
 
2758
done
 
2759
 
 
2760
  CC=$ac_ct_CC
 
2761
fi
 
2762
 
 
2763
fi
 
2764
 
 
2765
 
 
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; }; }
 
2771
 
 
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
 
2778
  ac_status=$?
 
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
 
2783
  ac_status=$?
 
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
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }
 
2791
 
 
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
 
2796
else
 
2797
  cat >conftest.$ac_ext <<_ACEOF
 
2798
/* confdefs.h.  */
 
2799
_ACEOF
 
2800
cat confdefs.h >>conftest.$ac_ext
 
2801
cat >>conftest.$ac_ext <<_ACEOF
 
2802
/* end confdefs.h.  */
 
2803
 
 
2804
int
 
2805
main ()
 
2806
{
 
2807
#ifndef __GNUC__
 
2808
       choke me
 
2809
#endif
 
2810
 
 
2811
  ;
 
2812
  return 0;
 
2813
}
 
2814
_ACEOF
 
2815
rm -f conftest.$ac_objext
 
2816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2817
  (eval $ac_compile) 2>conftest.er1
 
2818
  ac_status=$?
 
2819
  grep -v '^ *+' conftest.er1 >conftest.err
 
2820
  rm -f conftest.er1
 
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
 
2826
  (eval $ac_try) 2>&5
 
2827
  ac_status=$?
 
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
 
2832
  (eval $ac_try) 2>&5
 
2833
  ac_status=$?
 
2834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2835
  (exit $ac_status); }; }; then
 
2836
  ac_compiler_gnu=yes
 
2837
else
 
2838
  echo "$as_me: failed program was:" >&5
 
2839
sed 's/^/| /' conftest.$ac_ext >&5
 
2840
 
 
2841
ac_compiler_gnu=no
 
2842
fi
 
2843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2844
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2845
 
 
2846
fi
 
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
 
2852
CFLAGS="-g"
 
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
 
2857
else
 
2858
  cat >conftest.$ac_ext <<_ACEOF
 
2859
/* confdefs.h.  */
 
2860
_ACEOF
 
2861
cat confdefs.h >>conftest.$ac_ext
 
2862
cat >>conftest.$ac_ext <<_ACEOF
 
2863
/* end confdefs.h.  */
 
2864
 
 
2865
int
 
2866
main ()
 
2867
{
 
2868
 
 
2869
  ;
 
2870
  return 0;
 
2871
}
 
2872
_ACEOF
 
2873
rm -f conftest.$ac_objext
 
2874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2875
  (eval $ac_compile) 2>conftest.er1
 
2876
  ac_status=$?
 
2877
  grep -v '^ *+' conftest.er1 >conftest.err
 
2878
  rm -f conftest.er1
 
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
 
2884
  (eval $ac_try) 2>&5
 
2885
  ac_status=$?
 
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
 
2890
  (eval $ac_try) 2>&5
 
2891
  ac_status=$?
 
2892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2893
  (exit $ac_status); }; }; then
 
2894
  ac_cv_prog_cc_g=yes
 
2895
else
 
2896
  echo "$as_me: failed program was:" >&5
 
2897
sed 's/^/| /' conftest.$ac_ext >&5
 
2898
 
 
2899
ac_cv_prog_cc_g=no
 
2900
fi
 
2901
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2902
fi
 
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
 
2909
    CFLAGS="-g -O2"
 
2910
  else
 
2911
    CFLAGS="-g"
 
2912
  fi
 
2913
else
 
2914
  if test "$GCC" = yes; then
 
2915
    CFLAGS="-O2"
 
2916
  else
 
2917
    CFLAGS=
 
2918
  fi
 
2919
fi
 
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
 
2924
else
 
2925
  ac_cv_prog_cc_stdc=no
 
2926
ac_save_CC=$CC
 
2927
cat >conftest.$ac_ext <<_ACEOF
 
2928
/* confdefs.h.  */
 
2929
_ACEOF
 
2930
cat confdefs.h >>conftest.$ac_ext
 
2931
cat >>conftest.$ac_ext <<_ACEOF
 
2932
/* end confdefs.h.  */
 
2933
#include <stdarg.h>
 
2934
#include <stdio.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)
 
2941
     char **p;
 
2942
     int i;
 
2943
{
 
2944
  return p[i];
 
2945
}
 
2946
static char *f (char * (*g) (char **, int), char **p, ...)
 
2947
{
 
2948
  char *s;
 
2949
  va_list v;
 
2950
  va_start (v,p);
 
2951
  s = g (p, va_arg (v,int));
 
2952
  va_end (v);
 
2953
  return s;
 
2954
}
 
2955
 
 
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];
 
2964
 
 
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);
 
2969
int argc;
 
2970
char **argv;
 
2971
int
 
2972
main ()
 
2973
{
 
2974
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2975
  ;
 
2976
  return 0;
 
2977
}
 
2978
_ACEOF
 
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__"
 
2987
do
 
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
 
2992
  ac_status=$?
 
2993
  grep -v '^ *+' conftest.er1 >conftest.err
 
2994
  rm -f conftest.er1
 
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
 
3000
  (eval $ac_try) 2>&5
 
3001
  ac_status=$?
 
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
 
3006
  (eval $ac_try) 2>&5
 
3007
  ac_status=$?
 
3008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3009
  (exit $ac_status); }; }; then
 
3010
  ac_cv_prog_cc_stdc=$ac_arg
 
3011
break
 
3012
else
 
3013
  echo "$as_me: failed program was:" >&5
 
3014
sed 's/^/| /' conftest.$ac_ext >&5
 
3015
 
 
3016
fi
 
3017
rm -f conftest.err conftest.$ac_objext
 
3018
done
 
3019
rm -f conftest.$ac_ext conftest.$ac_objext
 
3020
CC=$ac_save_CC
 
3021
 
 
3022
fi
 
3023
 
 
3024
case "x$ac_cv_prog_cc_stdc" in
 
3025
  x|xno)
 
3026
    echo "$as_me:$LINENO: result: none needed" >&5
 
3027
echo "${ECHO_T}none needed" >&6 ;;
 
3028
  *)
 
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" ;;
 
3032
esac
 
3033
 
 
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
 
3039
#ifndef __cplusplus
 
3040
  choke me
 
3041
#endif
 
3042
_ACEOF
 
3043
rm -f conftest.$ac_objext
 
3044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3045
  (eval $ac_compile) 2>conftest.er1
 
3046
  ac_status=$?
 
3047
  grep -v '^ *+' conftest.er1 >conftest.err
 
3048
  rm -f conftest.er1
 
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
 
3054
  (eval $ac_try) 2>&5
 
3055
  ac_status=$?
 
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
 
3060
  (eval $ac_try) 2>&5
 
3061
  ac_status=$?
 
3062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3063
  (exit $ac_status); }; }; then
 
3064
  for ac_declaration in \
 
3065
   '' \
 
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);' \
 
3070
   'void exit (int);'
 
3071
do
 
3072
  cat >conftest.$ac_ext <<_ACEOF
 
3073
/* confdefs.h.  */
 
3074
_ACEOF
 
3075
cat confdefs.h >>conftest.$ac_ext
 
3076
cat >>conftest.$ac_ext <<_ACEOF
 
3077
/* end confdefs.h.  */
 
3078
$ac_declaration
 
3079
#include <stdlib.h>
 
3080
int
 
3081
main ()
 
3082
{
 
3083
exit (42);
 
3084
  ;
 
3085
  return 0;
 
3086
}
 
3087
_ACEOF
 
3088
rm -f conftest.$ac_objext
 
3089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3090
  (eval $ac_compile) 2>conftest.er1
 
3091
  ac_status=$?
 
3092
  grep -v '^ *+' conftest.er1 >conftest.err
 
3093
  rm -f conftest.er1
 
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
 
3099
  (eval $ac_try) 2>&5
 
3100
  ac_status=$?
 
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
 
3105
  (eval $ac_try) 2>&5
 
3106
  ac_status=$?
 
3107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3108
  (exit $ac_status); }; }; then
 
3109
  :
 
3110
else
 
3111
  echo "$as_me: failed program was:" >&5
 
3112
sed 's/^/| /' conftest.$ac_ext >&5
 
3113
 
 
3114
continue
 
3115
fi
 
3116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3117
  cat >conftest.$ac_ext <<_ACEOF
 
3118
/* confdefs.h.  */
 
3119
_ACEOF
 
3120
cat confdefs.h >>conftest.$ac_ext
 
3121
cat >>conftest.$ac_ext <<_ACEOF
 
3122
/* end confdefs.h.  */
 
3123
$ac_declaration
 
3124
int
 
3125
main ()
 
3126
{
 
3127
exit (42);
 
3128
  ;
 
3129
  return 0;
 
3130
}
 
3131
_ACEOF
 
3132
rm -f conftest.$ac_objext
 
3133
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3134
  (eval $ac_compile) 2>conftest.er1
 
3135
  ac_status=$?
 
3136
  grep -v '^ *+' conftest.er1 >conftest.err
 
3137
  rm -f conftest.er1
 
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
 
3143
  (eval $ac_try) 2>&5
 
3144
  ac_status=$?
 
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
 
3149
  (eval $ac_try) 2>&5
 
3150
  ac_status=$?
 
3151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3152
  (exit $ac_status); }; }; then
 
3153
  break
 
3154
else
 
3155
  echo "$as_me: failed program was:" >&5
 
3156
sed 's/^/| /' conftest.$ac_ext >&5
 
3157
 
 
3158
fi
 
3159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3160
done
 
3161
rm -f conftest*
 
3162
if test -n "$ac_declaration"; then
 
3163
  echo '#ifdef __cplusplus' >>confdefs.h
 
3164
  echo $ac_declaration      >>confdefs.h
 
3165
  echo '#endif'             >>confdefs.h
 
3166
fi
 
3167
 
 
3168
else
 
3169
  echo "$as_me: failed program was:" >&5
 
3170
sed 's/^/| /' conftest.$ac_ext >&5
 
3171
 
 
3172
fi
 
3173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3174
ac_ext=c
 
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
 
3179
 
 
3180
depcc="$CC"   am_compiler_list=
 
3181
 
 
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
 
3186
else
 
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
 
3192
  # in D'.
 
3193
  mkdir conftest.dir
 
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
 
3197
  cd 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
 
3203
  # directory.
 
3204
  mkdir sub
 
3205
 
 
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`
 
3209
  fi
 
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.
 
3214
    #
 
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.
 
3218
    : > sub/conftest.c
 
3219
    for i in 1 2 3 4 5 6; do
 
3220
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3221
      : > sub/conftst$i.h
 
3222
    done
 
3223
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3224
 
 
3225
    case $depmode in
 
3226
    nosideeffect)
 
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
 
3230
        continue
 
3231
      else
 
3232
        break
 
3233
      fi
 
3234
      ;;
 
3235
    none) break ;;
 
3236
    esac
 
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
 
3253
        break
 
3254
      fi
 
3255
    fi
 
3256
  done
 
3257
 
 
3258
  cd ..
 
3259
  rm -rf conftest.dir
 
3260
else
 
3261
  am_cv_CC_dependencies_compiler_type=none
 
3262
fi
 
3263
 
 
3264
fi
 
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
 
3268
 
 
3269
 
 
3270
 
 
3271
if
 
3272
  test "x$enable_dependency_tracking" != xno \
 
3273
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3274
  am__fastdepCC_TRUE=
 
3275
  am__fastdepCC_FALSE='#'
 
3276
else
 
3277
  am__fastdepCC_TRUE='#'
 
3278
  am__fastdepCC_FALSE=
 
3279
fi
 
3280
 
 
3281
 
 
3282
 
 
3283
# Add Xtra Paths for Checking
 
3284
 
 
3285
ac_ext=c
 
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
 
3294
  CPP=
 
3295
fi
 
3296
if test -z "$CPP"; then
 
3297
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3299
else
 
3300
      # Double quotes because CPP needs to be expanded
 
3301
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3302
    do
 
3303
      ac_preproc_ok=false
 
3304
for ac_c_preproc_warn_flag in '' yes
 
3305
do
 
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
 
3313
/* confdefs.h.  */
 
3314
_ACEOF
 
3315
cat confdefs.h >>conftest.$ac_ext
 
3316
cat >>conftest.$ac_ext <<_ACEOF
 
3317
/* end confdefs.h.  */
 
3318
#ifdef __STDC__
 
3319
# include <limits.h>
 
3320
#else
 
3321
# include <assert.h>
 
3322
#endif
 
3323
                     Syntax error
 
3324
_ACEOF
 
3325
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3326
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3327
  ac_status=$?
 
3328
  grep -v '^ *+' conftest.er1 >conftest.err
 
3329
  rm -f conftest.er1
 
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
 
3336
  else
 
3337
    ac_cpp_err=
 
3338
  fi
 
3339
else
 
3340
  ac_cpp_err=yes
 
3341
fi
 
3342
if test -z "$ac_cpp_err"; then
 
3343
  :
 
3344
else
 
3345
  echo "$as_me: failed program was:" >&5
 
3346
sed 's/^/| /' conftest.$ac_ext >&5
 
3347
 
 
3348
  # Broken: fails on valid input.
 
3349
continue
 
3350
fi
 
3351
rm -f conftest.err conftest.$ac_ext
 
3352
 
 
3353
  # OK, works on sane cases.  Now check whether non-existent headers
 
3354
  # can be detected and how.
 
3355
  cat >conftest.$ac_ext <<_ACEOF
 
3356
/* confdefs.h.  */
 
3357
_ACEOF
 
3358
cat confdefs.h >>conftest.$ac_ext
 
3359
cat >>conftest.$ac_ext <<_ACEOF
 
3360
/* end confdefs.h.  */
 
3361
#include <ac_nonexistent.h>
 
3362
_ACEOF
 
3363
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3364
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3365
  ac_status=$?
 
3366
  grep -v '^ *+' conftest.er1 >conftest.err
 
3367
  rm -f conftest.er1
 
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
 
3374
  else
 
3375
    ac_cpp_err=
 
3376
  fi
 
3377
else
 
3378
  ac_cpp_err=yes
 
3379
fi
 
3380
if test -z "$ac_cpp_err"; then
 
3381
  # Broken: success on invalid input.
 
3382
continue
 
3383
else
 
3384
  echo "$as_me: failed program was:" >&5
 
3385
sed 's/^/| /' conftest.$ac_ext >&5
 
3386
 
 
3387
  # Passes both tests.
 
3388
ac_preproc_ok=:
 
3389
break
 
3390
fi
 
3391
rm -f conftest.err conftest.$ac_ext
 
3392
 
 
3393
done
 
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
 
3397
  break
 
3398
fi
 
3399
 
 
3400
    done
 
3401
    ac_cv_prog_CPP=$CPP
 
3402
 
 
3403
fi
 
3404
  CPP=$ac_cv_prog_CPP
 
3405
else
 
3406
  ac_cv_prog_CPP=$CPP
 
3407
fi
 
3408
echo "$as_me:$LINENO: result: $CPP" >&5
 
3409
echo "${ECHO_T}$CPP" >&6
 
3410
ac_preproc_ok=false
 
3411
for ac_c_preproc_warn_flag in '' yes
 
3412
do
 
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
 
3420
/* confdefs.h.  */
 
3421
_ACEOF
 
3422
cat confdefs.h >>conftest.$ac_ext
 
3423
cat >>conftest.$ac_ext <<_ACEOF
 
3424
/* end confdefs.h.  */
 
3425
#ifdef __STDC__
 
3426
# include <limits.h>
 
3427
#else
 
3428
# include <assert.h>
 
3429
#endif
 
3430
                     Syntax error
 
3431
_ACEOF
 
3432
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3433
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3434
  ac_status=$?
 
3435
  grep -v '^ *+' conftest.er1 >conftest.err
 
3436
  rm -f conftest.er1
 
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
 
3443
  else
 
3444
    ac_cpp_err=
 
3445
  fi
 
3446
else
 
3447
  ac_cpp_err=yes
 
3448
fi
 
3449
if test -z "$ac_cpp_err"; then
 
3450
  :
 
3451
else
 
3452
  echo "$as_me: failed program was:" >&5
 
3453
sed 's/^/| /' conftest.$ac_ext >&5
 
3454
 
 
3455
  # Broken: fails on valid input.
 
3456
continue
 
3457
fi
 
3458
rm -f conftest.err conftest.$ac_ext
 
3459
 
 
3460
  # OK, works on sane cases.  Now check whether non-existent headers
 
3461
  # can be detected and how.
 
3462
  cat >conftest.$ac_ext <<_ACEOF
 
3463
/* confdefs.h.  */
 
3464
_ACEOF
 
3465
cat confdefs.h >>conftest.$ac_ext
 
3466
cat >>conftest.$ac_ext <<_ACEOF
 
3467
/* end confdefs.h.  */
 
3468
#include <ac_nonexistent.h>
 
3469
_ACEOF
 
3470
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3471
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3472
  ac_status=$?
 
3473
  grep -v '^ *+' conftest.er1 >conftest.err
 
3474
  rm -f conftest.er1
 
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
 
3481
  else
 
3482
    ac_cpp_err=
 
3483
  fi
 
3484
else
 
3485
  ac_cpp_err=yes
 
3486
fi
 
3487
if test -z "$ac_cpp_err"; then
 
3488
  # Broken: success on invalid input.
 
3489
continue
 
3490
else
 
3491
  echo "$as_me: failed program was:" >&5
 
3492
sed 's/^/| /' conftest.$ac_ext >&5
 
3493
 
 
3494
  # Passes both tests.
 
3495
ac_preproc_ok=:
 
3496
break
 
3497
fi
 
3498
rm -f conftest.err conftest.$ac_ext
 
3499
 
 
3500
done
 
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
 
3504
  :
 
3505
else
 
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; }; }
 
3511
fi
 
3512
 
 
3513
ac_ext=c
 
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
 
3518
 
 
3519
 
 
3520
 
 
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
 
3524
 
 
3525
ac_path_x_has_been_run=yes
 
3526
 
 
3527
# Check whether --with-x or --without-x was given.
 
3528
if test "${with_x+set}" = set; then
 
3529
  withval="$with_x"
 
3530
 
 
3531
fi;
 
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.
 
3535
  have_x=disabled
 
3536
else
 
3537
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
3538
    # Both variables are already set.
 
3539
    have_x=yes
 
3540
  else
 
3541
    if test "${ac_cv_have_x+set}" = set; then
 
3542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3543
else
 
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
 
3546
rm -fr conftest.dir
 
3547
if mkdir conftest.dir; then
 
3548
  cd conftest.dir
 
3549
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
3550
  cat >Imakefile <<'_ACEOF'
 
3551
acfindx:
 
3552
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
3553
_ACEOF
 
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
 
3562
      fi
 
3563
    done
 
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
 
3568
        /usr/include) ;;
 
3569
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
3570
    esac
 
3571
    case $ac_im_usrlibdir in
 
3572
        /usr/lib | /lib) ;;
 
3573
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
3574
    esac
 
3575
  fi
 
3576
  cd ..
 
3577
  rm -fr conftest.dir
 
3578
fi
 
3579
 
 
3580
# Standard set of common directories for X headers.
 
3581
# Check X11 before X11Rn because it is often a symlink to the current release.
 
3582
ac_x_header_dirs='
 
3583
/usr/X11/include
 
3584
/usr/X11R6/include
 
3585
/usr/X11R5/include
 
3586
/usr/X11R4/include
 
3587
 
 
3588
/usr/include/X11
 
3589
/usr/include/X11R6
 
3590
/usr/include/X11R5
 
3591
/usr/include/X11R4
 
3592
 
 
3593
/usr/local/X11/include
 
3594
/usr/local/X11R6/include
 
3595
/usr/local/X11R5/include
 
3596
/usr/local/X11R4/include
 
3597
 
 
3598
/usr/local/include/X11
 
3599
/usr/local/include/X11R6
 
3600
/usr/local/include/X11R5
 
3601
/usr/local/include/X11R4
 
3602
 
 
3603
/usr/X386/include
 
3604
/usr/x386/include
 
3605
/usr/XFree86/include/X11
 
3606
 
 
3607
/usr/include
 
3608
/usr/local/include
 
3609
/usr/unsupported/include
 
3610
/usr/athena/include
 
3611
/usr/local/x11r5/include
 
3612
/usr/lpp/Xamples/include
 
3613
 
 
3614
/usr/openwin/include
 
3615
/usr/openwin/share/include'
 
3616
 
 
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
 
3621
/* confdefs.h.  */
 
3622
_ACEOF
 
3623
cat confdefs.h >>conftest.$ac_ext
 
3624
cat >>conftest.$ac_ext <<_ACEOF
 
3625
/* end confdefs.h.  */
 
3626
#include <X11/Intrinsic.h>
 
3627
_ACEOF
 
3628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3629
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3630
  ac_status=$?
 
3631
  grep -v '^ *+' conftest.er1 >conftest.err
 
3632
  rm -f conftest.er1
 
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
 
3639
  else
 
3640
    ac_cpp_err=
 
3641
  fi
 
3642
else
 
3643
  ac_cpp_err=yes
 
3644
fi
 
3645
if test -z "$ac_cpp_err"; then
 
3646
  # We can compile using X headers with no special include directory.
 
3647
ac_x_includes=
 
3648
else
 
3649
  echo "$as_me: failed program was:" >&5
 
3650
sed 's/^/| /' conftest.$ac_ext >&5
 
3651
 
 
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
 
3655
    break
 
3656
  fi
 
3657
done
 
3658
fi
 
3659
rm -f conftest.err conftest.$ac_ext
 
3660
fi # $ac_x_includes = no
 
3661
 
 
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.
 
3666
  ac_save_LIBS=$LIBS
 
3667
  LIBS="-lXt $LIBS"
 
3668
  cat >conftest.$ac_ext <<_ACEOF
 
3669
/* confdefs.h.  */
 
3670
_ACEOF
 
3671
cat confdefs.h >>conftest.$ac_ext
 
3672
cat >>conftest.$ac_ext <<_ACEOF
 
3673
/* end confdefs.h.  */
 
3674
#include <X11/Intrinsic.h>
 
3675
int
 
3676
main ()
 
3677
{
 
3678
XtMalloc (0)
 
3679
  ;
 
3680
  return 0;
 
3681
}
 
3682
_ACEOF
 
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
 
3686
  ac_status=$?
 
3687
  grep -v '^ *+' conftest.er1 >conftest.err
 
3688
  rm -f conftest.er1
 
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
 
3694
  (eval $ac_try) 2>&5
 
3695
  ac_status=$?
 
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
 
3700
  (eval $ac_try) 2>&5
 
3701
  ac_status=$?
 
3702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3703
  (exit $ac_status); }; }; then
 
3704
  LIBS=$ac_save_LIBS
 
3705
# We can link X programs with no special library path.
 
3706
ac_x_libraries=
 
3707
else
 
3708
  echo "$as_me: failed program was:" >&5
 
3709
sed 's/^/| /' conftest.$ac_ext >&5
 
3710
 
 
3711
LIBS=$ac_save_LIBS
 
3712
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
3713
do
 
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
 
3718
      break 2
 
3719
    fi
 
3720
  done
 
3721
done
 
3722
fi
 
3723
rm -f conftest.err conftest.$ac_objext \
 
3724
      conftest$ac_exeext conftest.$ac_ext
 
3725
fi # $ac_x_libraries = no
 
3726
 
 
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"
 
3730
else
 
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"
 
3734
fi
 
3735
fi
 
3736
 
 
3737
  fi
 
3738
  eval "$ac_cv_have_x"
 
3739
fi # $with_x != no
 
3740
 
 
3741
if test "$have_x" != yes; then
 
3742
  echo "$as_me:$LINENO: result: $have_x" >&5
 
3743
echo "${ECHO_T}$have_x" >&6
 
3744
  no_x=yes
 
3745
else
 
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
 
3758
fi
 
3759
 
 
3760
fi
 
3761
if test "$no_x" = yes; then
 
3762
  # Not all programs may use this symbol, but it does not hurt to define it.
 
3763
 
 
3764
cat >>confdefs.h <<\_ACEOF
 
3765
#define X_DISPLAY_MISSING 1
 
3766
_ACEOF
 
3767
 
 
3768
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
3769
else
 
3770
  if test -n "$x_includes"; then
 
3771
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
3772
  fi
 
3773
 
 
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
 
3780
    "SunOS 5"*)
 
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
 
3785
/* confdefs.h.  */
 
3786
_ACEOF
 
3787
cat confdefs.h >>conftest.$ac_ext
 
3788
cat >>conftest.$ac_ext <<_ACEOF
 
3789
/* end confdefs.h.  */
 
3790
 
 
3791
int
 
3792
main ()
 
3793
{
 
3794
 
 
3795
  ;
 
3796
  return 0;
 
3797
}
 
3798
_ACEOF
 
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
 
3802
  ac_status=$?
 
3803
  grep -v '^ *+' conftest.er1 >conftest.err
 
3804
  rm -f conftest.er1
 
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
 
3810
  (eval $ac_try) 2>&5
 
3811
  ac_status=$?
 
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
 
3816
  (eval $ac_try) 2>&5
 
3817
  ac_status=$?
 
3818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3819
  (exit $ac_status); }; }; then
 
3820
  ac_R_nospace=yes
 
3821
else
 
3822
  echo "$as_me: failed program was:" >&5
 
3823
sed 's/^/| /' conftest.$ac_ext >&5
 
3824
 
 
3825
ac_R_nospace=no
 
3826
fi
 
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"
 
3833
      else
 
3834
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
3835
        cat >conftest.$ac_ext <<_ACEOF
 
3836
/* confdefs.h.  */
 
3837
_ACEOF
 
3838
cat confdefs.h >>conftest.$ac_ext
 
3839
cat >>conftest.$ac_ext <<_ACEOF
 
3840
/* end confdefs.h.  */
 
3841
 
 
3842
int
 
3843
main ()
 
3844
{
 
3845
 
 
3846
  ;
 
3847
  return 0;
 
3848
}
 
3849
_ACEOF
 
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
 
3853
  ac_status=$?
 
3854
  grep -v '^ *+' conftest.er1 >conftest.err
 
3855
  rm -f conftest.er1
 
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
 
3861
  (eval $ac_try) 2>&5
 
3862
  ac_status=$?
 
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
 
3867
  (eval $ac_try) 2>&5
 
3868
  ac_status=$?
 
3869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3870
  (exit $ac_status); }; }; then
 
3871
  ac_R_space=yes
 
3872
else
 
3873
  echo "$as_me: failed program was:" >&5
 
3874
sed 's/^/| /' conftest.$ac_ext >&5
 
3875
 
 
3876
ac_R_space=no
 
3877
fi
 
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"
 
3884
        else
 
3885
          echo "$as_me:$LINENO: result: neither works" >&5
 
3886
echo "${ECHO_T}neither works" >&6
 
3887
        fi
 
3888
      fi
 
3889
      LIBS=$ac_xsave_LIBS
 
3890
    esac
 
3891
  fi
 
3892
 
 
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.
 
3896
 
 
3897
  if test "$ISC" = yes; then
 
3898
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
3899
  else
 
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
 
3905
/* confdefs.h.  */
 
3906
_ACEOF
 
3907
cat confdefs.h >>conftest.$ac_ext
 
3908
cat >>conftest.$ac_ext <<_ACEOF
 
3909
/* end confdefs.h.  */
 
3910
 
 
3911
/* Override any gcc2 internal prototype to avoid an error.  */
 
3912
#ifdef __cplusplus
 
3913
extern "C"
 
3914
#endif
 
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 ();
 
3918
int
 
3919
main ()
 
3920
{
 
3921
XOpenDisplay ();
 
3922
  ;
 
3923
  return 0;
 
3924
}
 
3925
_ACEOF
 
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
 
3929
  ac_status=$?
 
3930
  grep -v '^ *+' conftest.er1 >conftest.err
 
3931
  rm -f conftest.er1
 
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
 
3937
  (eval $ac_try) 2>&5
 
3938
  ac_status=$?
 
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
 
3943
  (eval $ac_try) 2>&5
 
3944
  ac_status=$?
 
3945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3946
  (exit $ac_status); }; }; then
 
3947
  :
 
3948
else
 
3949
  echo "$as_me: failed program was:" >&5
 
3950
sed 's/^/| /' conftest.$ac_ext >&5
 
3951
 
 
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
 
3956
else
 
3957
  ac_check_lib_save_LIBS=$LIBS
 
3958
LIBS="-ldnet  $LIBS"
 
3959
cat >conftest.$ac_ext <<_ACEOF
 
3960
/* confdefs.h.  */
 
3961
_ACEOF
 
3962
cat confdefs.h >>conftest.$ac_ext
 
3963
cat >>conftest.$ac_ext <<_ACEOF
 
3964
/* end confdefs.h.  */
 
3965
 
 
3966
/* Override any gcc2 internal prototype to avoid an error.  */
 
3967
#ifdef __cplusplus
 
3968
extern "C"
 
3969
#endif
 
3970
/* We use char because int might match the return type of a gcc2
 
3971
   builtin and then its argument prototype would still apply.  */
 
3972
char dnet_ntoa ();
 
3973
int
 
3974
main ()
 
3975
{
 
3976
dnet_ntoa ();
 
3977
  ;
 
3978
  return 0;
 
3979
}
 
3980
_ACEOF
 
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
 
3984
  ac_status=$?
 
3985
  grep -v '^ *+' conftest.er1 >conftest.err
 
3986
  rm -f conftest.er1
 
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
 
3992
  (eval $ac_try) 2>&5
 
3993
  ac_status=$?
 
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
 
3998
  (eval $ac_try) 2>&5
 
3999
  ac_status=$?
 
4000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4001
  (exit $ac_status); }; }; then
 
4002
  ac_cv_lib_dnet_dnet_ntoa=yes
 
4003
else
 
4004
  echo "$as_me: failed program was:" >&5
 
4005
sed 's/^/| /' conftest.$ac_ext >&5
 
4006
 
 
4007
ac_cv_lib_dnet_dnet_ntoa=no
 
4008
fi
 
4009
rm -f conftest.err conftest.$ac_objext \
 
4010
      conftest$ac_exeext conftest.$ac_ext
 
4011
LIBS=$ac_check_lib_save_LIBS
 
4012
fi
 
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"
 
4017
fi
 
4018
 
 
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
 
4024
else
 
4025
  ac_check_lib_save_LIBS=$LIBS
 
4026
LIBS="-ldnet_stub  $LIBS"
 
4027
cat >conftest.$ac_ext <<_ACEOF
 
4028
/* confdefs.h.  */
 
4029
_ACEOF
 
4030
cat confdefs.h >>conftest.$ac_ext
 
4031
cat >>conftest.$ac_ext <<_ACEOF
 
4032
/* end confdefs.h.  */
 
4033
 
 
4034
/* Override any gcc2 internal prototype to avoid an error.  */
 
4035
#ifdef __cplusplus
 
4036
extern "C"
 
4037
#endif
 
4038
/* We use char because int might match the return type of a gcc2
 
4039
   builtin and then its argument prototype would still apply.  */
 
4040
char dnet_ntoa ();
 
4041
int
 
4042
main ()
 
4043
{
 
4044
dnet_ntoa ();
 
4045
  ;
 
4046
  return 0;
 
4047
}
 
4048
_ACEOF
 
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
 
4052
  ac_status=$?
 
4053
  grep -v '^ *+' conftest.er1 >conftest.err
 
4054
  rm -f conftest.er1
 
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
 
4060
  (eval $ac_try) 2>&5
 
4061
  ac_status=$?
 
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
 
4066
  (eval $ac_try) 2>&5
 
4067
  ac_status=$?
 
4068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4069
  (exit $ac_status); }; }; then
 
4070
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
4071
else
 
4072
  echo "$as_me: failed program was:" >&5
 
4073
sed 's/^/| /' conftest.$ac_ext >&5
 
4074
 
 
4075
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
4076
fi
 
4077
rm -f conftest.err conftest.$ac_objext \
 
4078
      conftest$ac_exeext conftest.$ac_ext
 
4079
LIBS=$ac_check_lib_save_LIBS
 
4080
fi
 
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"
 
4085
fi
 
4086
 
 
4087
    fi
 
4088
fi
 
4089
rm -f conftest.err conftest.$ac_objext \
 
4090
      conftest$ac_exeext conftest.$ac_ext
 
4091
    LIBS="$ac_xsave_LIBS"
 
4092
 
 
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)
 
4096
    # needs -lnsl.
 
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
 
4105
else
 
4106
  cat >conftest.$ac_ext <<_ACEOF
 
4107
/* confdefs.h.  */
 
4108
_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
 
4115
 
 
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.  */
 
4120
 
 
4121
#ifdef __STDC__
 
4122
# include <limits.h>
 
4123
#else
 
4124
# include <assert.h>
 
4125
#endif
 
4126
 
 
4127
#undef gethostbyname
 
4128
 
 
4129
/* Override any gcc2 internal prototype to avoid an error.  */
 
4130
#ifdef __cplusplus
 
4131
extern "C"
 
4132
{
 
4133
#endif
 
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)
 
4141
choke me
 
4142
#else
 
4143
char (*f) () = gethostbyname;
 
4144
#endif
 
4145
#ifdef __cplusplus
 
4146
}
 
4147
#endif
 
4148
 
 
4149
int
 
4150
main ()
 
4151
{
 
4152
return f != gethostbyname;
 
4153
  ;
 
4154
  return 0;
 
4155
}
 
4156
_ACEOF
 
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
 
4160
  ac_status=$?
 
4161
  grep -v '^ *+' conftest.er1 >conftest.err
 
4162
  rm -f conftest.er1
 
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
 
4168
  (eval $ac_try) 2>&5
 
4169
  ac_status=$?
 
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
 
4174
  (eval $ac_try) 2>&5
 
4175
  ac_status=$?
 
4176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4177
  (exit $ac_status); }; }; then
 
4178
  ac_cv_func_gethostbyname=yes
 
4179
else
 
4180
  echo "$as_me: failed program was:" >&5
 
4181
sed 's/^/| /' conftest.$ac_ext >&5
 
4182
 
 
4183
ac_cv_func_gethostbyname=no
 
4184
fi
 
4185
rm -f conftest.err conftest.$ac_objext \
 
4186
      conftest$ac_exeext conftest.$ac_ext
 
4187
fi
 
4188
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
4189
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
4190
 
 
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
 
4196
else
 
4197
  ac_check_lib_save_LIBS=$LIBS
 
4198
LIBS="-lnsl  $LIBS"
 
4199
cat >conftest.$ac_ext <<_ACEOF
 
4200
/* confdefs.h.  */
 
4201
_ACEOF
 
4202
cat confdefs.h >>conftest.$ac_ext
 
4203
cat >>conftest.$ac_ext <<_ACEOF
 
4204
/* end confdefs.h.  */
 
4205
 
 
4206
/* Override any gcc2 internal prototype to avoid an error.  */
 
4207
#ifdef __cplusplus
 
4208
extern "C"
 
4209
#endif
 
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 ();
 
4213
int
 
4214
main ()
 
4215
{
 
4216
gethostbyname ();
 
4217
  ;
 
4218
  return 0;
 
4219
}
 
4220
_ACEOF
 
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
 
4224
  ac_status=$?
 
4225
  grep -v '^ *+' conftest.er1 >conftest.err
 
4226
  rm -f conftest.er1
 
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
 
4232
  (eval $ac_try) 2>&5
 
4233
  ac_status=$?
 
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
 
4238
  (eval $ac_try) 2>&5
 
4239
  ac_status=$?
 
4240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4241
  (exit $ac_status); }; }; then
 
4242
  ac_cv_lib_nsl_gethostbyname=yes
 
4243
else
 
4244
  echo "$as_me: failed program was:" >&5
 
4245
sed 's/^/| /' conftest.$ac_ext >&5
 
4246
 
 
4247
ac_cv_lib_nsl_gethostbyname=no
 
4248
fi
 
4249
rm -f conftest.err conftest.$ac_objext \
 
4250
      conftest$ac_exeext conftest.$ac_ext
 
4251
LIBS=$ac_check_lib_save_LIBS
 
4252
fi
 
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"
 
4257
fi
 
4258
 
 
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
 
4264
else
 
4265
  ac_check_lib_save_LIBS=$LIBS
 
4266
LIBS="-lbsd  $LIBS"
 
4267
cat >conftest.$ac_ext <<_ACEOF
 
4268
/* confdefs.h.  */
 
4269
_ACEOF
 
4270
cat confdefs.h >>conftest.$ac_ext
 
4271
cat >>conftest.$ac_ext <<_ACEOF
 
4272
/* end confdefs.h.  */
 
4273
 
 
4274
/* Override any gcc2 internal prototype to avoid an error.  */
 
4275
#ifdef __cplusplus
 
4276
extern "C"
 
4277
#endif
 
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 ();
 
4281
int
 
4282
main ()
 
4283
{
 
4284
gethostbyname ();
 
4285
  ;
 
4286
  return 0;
 
4287
}
 
4288
_ACEOF
 
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
 
4292
  ac_status=$?
 
4293
  grep -v '^ *+' conftest.er1 >conftest.err
 
4294
  rm -f conftest.er1
 
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
 
4300
  (eval $ac_try) 2>&5
 
4301
  ac_status=$?
 
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
 
4306
  (eval $ac_try) 2>&5
 
4307
  ac_status=$?
 
4308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4309
  (exit $ac_status); }; }; then
 
4310
  ac_cv_lib_bsd_gethostbyname=yes
 
4311
else
 
4312
  echo "$as_me: failed program was:" >&5
 
4313
sed 's/^/| /' conftest.$ac_ext >&5
 
4314
 
 
4315
ac_cv_lib_bsd_gethostbyname=no
 
4316
fi
 
4317
rm -f conftest.err conftest.$ac_objext \
 
4318
      conftest$ac_exeext conftest.$ac_ext
 
4319
LIBS=$ac_check_lib_save_LIBS
 
4320
fi
 
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"
 
4325
fi
 
4326
 
 
4327
      fi
 
4328
    fi
 
4329
 
 
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
 
4341
else
 
4342
  cat >conftest.$ac_ext <<_ACEOF
 
4343
/* confdefs.h.  */
 
4344
_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
 
4351
 
 
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.  */
 
4356
 
 
4357
#ifdef __STDC__
 
4358
# include <limits.h>
 
4359
#else
 
4360
# include <assert.h>
 
4361
#endif
 
4362
 
 
4363
#undef connect
 
4364
 
 
4365
/* Override any gcc2 internal prototype to avoid an error.  */
 
4366
#ifdef __cplusplus
 
4367
extern "C"
 
4368
{
 
4369
#endif
 
4370
/* We use char because int might match the return type of a gcc2
 
4371
   builtin and then its argument prototype would still apply.  */
 
4372
char connect ();
 
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)
 
4377
choke me
 
4378
#else
 
4379
char (*f) () = connect;
 
4380
#endif
 
4381
#ifdef __cplusplus
 
4382
}
 
4383
#endif
 
4384
 
 
4385
int
 
4386
main ()
 
4387
{
 
4388
return f != connect;
 
4389
  ;
 
4390
  return 0;
 
4391
}
 
4392
_ACEOF
 
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
 
4396
  ac_status=$?
 
4397
  grep -v '^ *+' conftest.er1 >conftest.err
 
4398
  rm -f conftest.er1
 
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
 
4404
  (eval $ac_try) 2>&5
 
4405
  ac_status=$?
 
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
 
4410
  (eval $ac_try) 2>&5
 
4411
  ac_status=$?
 
4412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4413
  (exit $ac_status); }; }; then
 
4414
  ac_cv_func_connect=yes
 
4415
else
 
4416
  echo "$as_me: failed program was:" >&5
 
4417
sed 's/^/| /' conftest.$ac_ext >&5
 
4418
 
 
4419
ac_cv_func_connect=no
 
4420
fi
 
4421
rm -f conftest.err conftest.$ac_objext \
 
4422
      conftest$ac_exeext conftest.$ac_ext
 
4423
fi
 
4424
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
4425
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
4426
 
 
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
 
4432
else
 
4433
  ac_check_lib_save_LIBS=$LIBS
 
4434
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
4435
cat >conftest.$ac_ext <<_ACEOF
 
4436
/* confdefs.h.  */
 
4437
_ACEOF
 
4438
cat confdefs.h >>conftest.$ac_ext
 
4439
cat >>conftest.$ac_ext <<_ACEOF
 
4440
/* end confdefs.h.  */
 
4441
 
 
4442
/* Override any gcc2 internal prototype to avoid an error.  */
 
4443
#ifdef __cplusplus
 
4444
extern "C"
 
4445
#endif
 
4446
/* We use char because int might match the return type of a gcc2
 
4447
   builtin and then its argument prototype would still apply.  */
 
4448
char connect ();
 
4449
int
 
4450
main ()
 
4451
{
 
4452
connect ();
 
4453
  ;
 
4454
  return 0;
 
4455
}
 
4456
_ACEOF
 
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
 
4460
  ac_status=$?
 
4461
  grep -v '^ *+' conftest.er1 >conftest.err
 
4462
  rm -f conftest.er1
 
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
 
4468
  (eval $ac_try) 2>&5
 
4469
  ac_status=$?
 
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
 
4474
  (eval $ac_try) 2>&5
 
4475
  ac_status=$?
 
4476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4477
  (exit $ac_status); }; }; then
 
4478
  ac_cv_lib_socket_connect=yes
 
4479
else
 
4480
  echo "$as_me: failed program was:" >&5
 
4481
sed 's/^/| /' conftest.$ac_ext >&5
 
4482
 
 
4483
ac_cv_lib_socket_connect=no
 
4484
fi
 
4485
rm -f conftest.err conftest.$ac_objext \
 
4486
      conftest$ac_exeext conftest.$ac_ext
 
4487
LIBS=$ac_check_lib_save_LIBS
 
4488
fi
 
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"
 
4493
fi
 
4494
 
 
4495
    fi
 
4496
 
 
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
 
4502
else
 
4503
  cat >conftest.$ac_ext <<_ACEOF
 
4504
/* confdefs.h.  */
 
4505
_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
 
4512
 
 
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.  */
 
4517
 
 
4518
#ifdef __STDC__
 
4519
# include <limits.h>
 
4520
#else
 
4521
# include <assert.h>
 
4522
#endif
 
4523
 
 
4524
#undef remove
 
4525
 
 
4526
/* Override any gcc2 internal prototype to avoid an error.  */
 
4527
#ifdef __cplusplus
 
4528
extern "C"
 
4529
{
 
4530
#endif
 
4531
/* We use char because int might match the return type of a gcc2
 
4532
   builtin and then its argument prototype would still apply.  */
 
4533
char remove ();
 
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)
 
4538
choke me
 
4539
#else
 
4540
char (*f) () = remove;
 
4541
#endif
 
4542
#ifdef __cplusplus
 
4543
}
 
4544
#endif
 
4545
 
 
4546
int
 
4547
main ()
 
4548
{
 
4549
return f != remove;
 
4550
  ;
 
4551
  return 0;
 
4552
}
 
4553
_ACEOF
 
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
 
4557
  ac_status=$?
 
4558
  grep -v '^ *+' conftest.er1 >conftest.err
 
4559
  rm -f conftest.er1
 
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
 
4565
  (eval $ac_try) 2>&5
 
4566
  ac_status=$?
 
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
 
4571
  (eval $ac_try) 2>&5
 
4572
  ac_status=$?
 
4573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4574
  (exit $ac_status); }; }; then
 
4575
  ac_cv_func_remove=yes
 
4576
else
 
4577
  echo "$as_me: failed program was:" >&5
 
4578
sed 's/^/| /' conftest.$ac_ext >&5
 
4579
 
 
4580
ac_cv_func_remove=no
 
4581
fi
 
4582
rm -f conftest.err conftest.$ac_objext \
 
4583
      conftest$ac_exeext conftest.$ac_ext
 
4584
fi
 
4585
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
4586
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
4587
 
 
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
 
4593
else
 
4594
  ac_check_lib_save_LIBS=$LIBS
 
4595
LIBS="-lposix  $LIBS"
 
4596
cat >conftest.$ac_ext <<_ACEOF
 
4597
/* confdefs.h.  */
 
4598
_ACEOF
 
4599
cat confdefs.h >>conftest.$ac_ext
 
4600
cat >>conftest.$ac_ext <<_ACEOF
 
4601
/* end confdefs.h.  */
 
4602
 
 
4603
/* Override any gcc2 internal prototype to avoid an error.  */
 
4604
#ifdef __cplusplus
 
4605
extern "C"
 
4606
#endif
 
4607
/* We use char because int might match the return type of a gcc2
 
4608
   builtin and then its argument prototype would still apply.  */
 
4609
char remove ();
 
4610
int
 
4611
main ()
 
4612
{
 
4613
remove ();
 
4614
  ;
 
4615
  return 0;
 
4616
}
 
4617
_ACEOF
 
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
 
4621
  ac_status=$?
 
4622
  grep -v '^ *+' conftest.er1 >conftest.err
 
4623
  rm -f conftest.er1
 
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
 
4629
  (eval $ac_try) 2>&5
 
4630
  ac_status=$?
 
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
 
4635
  (eval $ac_try) 2>&5
 
4636
  ac_status=$?
 
4637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4638
  (exit $ac_status); }; }; then
 
4639
  ac_cv_lib_posix_remove=yes
 
4640
else
 
4641
  echo "$as_me: failed program was:" >&5
 
4642
sed 's/^/| /' conftest.$ac_ext >&5
 
4643
 
 
4644
ac_cv_lib_posix_remove=no
 
4645
fi
 
4646
rm -f conftest.err conftest.$ac_objext \
 
4647
      conftest$ac_exeext conftest.$ac_ext
 
4648
LIBS=$ac_check_lib_save_LIBS
 
4649
fi
 
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"
 
4654
fi
 
4655
 
 
4656
    fi
 
4657
 
 
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
 
4663
else
 
4664
  cat >conftest.$ac_ext <<_ACEOF
 
4665
/* confdefs.h.  */
 
4666
_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
 
4673
 
 
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.  */
 
4678
 
 
4679
#ifdef __STDC__
 
4680
# include <limits.h>
 
4681
#else
 
4682
# include <assert.h>
 
4683
#endif
 
4684
 
 
4685
#undef shmat
 
4686
 
 
4687
/* Override any gcc2 internal prototype to avoid an error.  */
 
4688
#ifdef __cplusplus
 
4689
extern "C"
 
4690
{
 
4691
#endif
 
4692
/* We use char because int might match the return type of a gcc2
 
4693
   builtin and then its argument prototype would still apply.  */
 
4694
char shmat ();
 
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)
 
4699
choke me
 
4700
#else
 
4701
char (*f) () = shmat;
 
4702
#endif
 
4703
#ifdef __cplusplus
 
4704
}
 
4705
#endif
 
4706
 
 
4707
int
 
4708
main ()
 
4709
{
 
4710
return f != shmat;
 
4711
  ;
 
4712
  return 0;
 
4713
}
 
4714
_ACEOF
 
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
 
4718
  ac_status=$?
 
4719
  grep -v '^ *+' conftest.er1 >conftest.err
 
4720
  rm -f conftest.er1
 
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
 
4726
  (eval $ac_try) 2>&5
 
4727
  ac_status=$?
 
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
 
4732
  (eval $ac_try) 2>&5
 
4733
  ac_status=$?
 
4734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4735
  (exit $ac_status); }; }; then
 
4736
  ac_cv_func_shmat=yes
 
4737
else
 
4738
  echo "$as_me: failed program was:" >&5
 
4739
sed 's/^/| /' conftest.$ac_ext >&5
 
4740
 
 
4741
ac_cv_func_shmat=no
 
4742
fi
 
4743
rm -f conftest.err conftest.$ac_objext \
 
4744
      conftest$ac_exeext conftest.$ac_ext
 
4745
fi
 
4746
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
4747
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
4748
 
 
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
 
4754
else
 
4755
  ac_check_lib_save_LIBS=$LIBS
 
4756
LIBS="-lipc  $LIBS"
 
4757
cat >conftest.$ac_ext <<_ACEOF
 
4758
/* confdefs.h.  */
 
4759
_ACEOF
 
4760
cat confdefs.h >>conftest.$ac_ext
 
4761
cat >>conftest.$ac_ext <<_ACEOF
 
4762
/* end confdefs.h.  */
 
4763
 
 
4764
/* Override any gcc2 internal prototype to avoid an error.  */
 
4765
#ifdef __cplusplus
 
4766
extern "C"
 
4767
#endif
 
4768
/* We use char because int might match the return type of a gcc2
 
4769
   builtin and then its argument prototype would still apply.  */
 
4770
char shmat ();
 
4771
int
 
4772
main ()
 
4773
{
 
4774
shmat ();
 
4775
  ;
 
4776
  return 0;
 
4777
}
 
4778
_ACEOF
 
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
 
4782
  ac_status=$?
 
4783
  grep -v '^ *+' conftest.er1 >conftest.err
 
4784
  rm -f conftest.er1
 
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
 
4790
  (eval $ac_try) 2>&5
 
4791
  ac_status=$?
 
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
 
4796
  (eval $ac_try) 2>&5
 
4797
  ac_status=$?
 
4798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4799
  (exit $ac_status); }; }; then
 
4800
  ac_cv_lib_ipc_shmat=yes
 
4801
else
 
4802
  echo "$as_me: failed program was:" >&5
 
4803
sed 's/^/| /' conftest.$ac_ext >&5
 
4804
 
 
4805
ac_cv_lib_ipc_shmat=no
 
4806
fi
 
4807
rm -f conftest.err conftest.$ac_objext \
 
4808
      conftest$ac_exeext conftest.$ac_ext
 
4809
LIBS=$ac_check_lib_save_LIBS
 
4810
fi
 
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"
 
4815
fi
 
4816
 
 
4817
    fi
 
4818
  fi
 
4819
 
 
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
 
4833
else
 
4834
  ac_check_lib_save_LIBS=$LIBS
 
4835
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
4836
cat >conftest.$ac_ext <<_ACEOF
 
4837
/* confdefs.h.  */
 
4838
_ACEOF
 
4839
cat confdefs.h >>conftest.$ac_ext
 
4840
cat >>conftest.$ac_ext <<_ACEOF
 
4841
/* end confdefs.h.  */
 
4842
 
 
4843
/* Override any gcc2 internal prototype to avoid an error.  */
 
4844
#ifdef __cplusplus
 
4845
extern "C"
 
4846
#endif
 
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 ();
 
4850
int
 
4851
main ()
 
4852
{
 
4853
IceConnectionNumber ();
 
4854
  ;
 
4855
  return 0;
 
4856
}
 
4857
_ACEOF
 
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
 
4861
  ac_status=$?
 
4862
  grep -v '^ *+' conftest.er1 >conftest.err
 
4863
  rm -f conftest.er1
 
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
 
4869
  (eval $ac_try) 2>&5
 
4870
  ac_status=$?
 
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
 
4875
  (eval $ac_try) 2>&5
 
4876
  ac_status=$?
 
4877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4878
  (exit $ac_status); }; }; then
 
4879
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
4880
else
 
4881
  echo "$as_me: failed program was:" >&5
 
4882
sed 's/^/| /' conftest.$ac_ext >&5
 
4883
 
 
4884
ac_cv_lib_ICE_IceConnectionNumber=no
 
4885
fi
 
4886
rm -f conftest.err conftest.$ac_objext \
 
4887
      conftest$ac_exeext conftest.$ac_ext
 
4888
LIBS=$ac_check_lib_save_LIBS
 
4889
fi
 
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"
 
4894
fi
 
4895
 
 
4896
  LDFLAGS=$ac_save_LDFLAGS
 
4897
 
 
4898
fi
 
4899
 
 
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; }; }
 
4904
fi
 
4905
 
 
4906
# Checks for libraries.
 
4907
 
 
4908
#AC_CHECK_LIB([X11], [XOpenDisplay], , [AC_MSG_ERROR(VIDEO: You need libx11-dev installed)])
 
4909
 
 
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
 
4914
else
 
4915
  ac_check_lib_save_LIBS=$LIBS
 
4916
LIBS="-lssl  $LIBS"
 
4917
cat >conftest.$ac_ext <<_ACEOF
 
4918
/* confdefs.h.  */
 
4919
_ACEOF
 
4920
cat confdefs.h >>conftest.$ac_ext
 
4921
cat >>conftest.$ac_ext <<_ACEOF
 
4922
/* end confdefs.h.  */
 
4923
 
 
4924
 
 
4925
int
 
4926
main ()
 
4927
{
 
4928
main ();
 
4929
  ;
 
4930
  return 0;
 
4931
}
 
4932
_ACEOF
 
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
 
4936
  ac_status=$?
 
4937
  grep -v '^ *+' conftest.er1 >conftest.err
 
4938
  rm -f conftest.er1
 
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
 
4944
  (eval $ac_try) 2>&5
 
4945
  ac_status=$?
 
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
 
4950
  (eval $ac_try) 2>&5
 
4951
  ac_status=$?
 
4952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4953
  (exit $ac_status); }; }; then
 
4954
  ac_cv_lib_ssl_main=yes
 
4955
else
 
4956
  echo "$as_me: failed program was:" >&5
 
4957
sed 's/^/| /' conftest.$ac_ext >&5
 
4958
 
 
4959
ac_cv_lib_ssl_main=no
 
4960
fi
 
4961
rm -f conftest.err conftest.$ac_objext \
 
4962
      conftest$ac_exeext conftest.$ac_ext
 
4963
LIBS=$ac_check_lib_save_LIBS
 
4964
fi
 
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
 
4970
_ACEOF
 
4971
 
 
4972
  LIBS="-lssl $LIBS"
 
4973
 
 
4974
else
 
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; }; }
 
4978
fi
 
4979
 
 
4980
 
 
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
 
4985
else
 
4986
  ac_check_lib_save_LIBS=$LIBS
 
4987
LIBS="-ldl  $LIBS"
 
4988
cat >conftest.$ac_ext <<_ACEOF
 
4989
/* confdefs.h.  */
 
4990
_ACEOF
 
4991
cat confdefs.h >>conftest.$ac_ext
 
4992
cat >>conftest.$ac_ext <<_ACEOF
 
4993
/* end confdefs.h.  */
 
4994
 
 
4995
 
 
4996
int
 
4997
main ()
 
4998
{
 
4999
main ();
 
5000
  ;
 
5001
  return 0;
 
5002
}
 
5003
_ACEOF
 
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
 
5007
  ac_status=$?
 
5008
  grep -v '^ *+' conftest.er1 >conftest.err
 
5009
  rm -f conftest.er1
 
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
 
5015
  (eval $ac_try) 2>&5
 
5016
  ac_status=$?
 
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
 
5021
  (eval $ac_try) 2>&5
 
5022
  ac_status=$?
 
5023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5024
  (exit $ac_status); }; }; then
 
5025
  ac_cv_lib_dl_main=yes
 
5026
else
 
5027
  echo "$as_me: failed program was:" >&5
 
5028
sed 's/^/| /' conftest.$ac_ext >&5
 
5029
 
 
5030
ac_cv_lib_dl_main=no
 
5031
fi
 
5032
rm -f conftest.err conftest.$ac_objext \
 
5033
      conftest$ac_exeext conftest.$ac_ext
 
5034
LIBS=$ac_check_lib_save_LIBS
 
5035
fi
 
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
 
5041
_ACEOF
 
5042
 
 
5043
  LIBS="-ldl $LIBS"
 
5044
 
 
5045
else
 
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; }; }
 
5049
fi
 
5050
 
 
5051
 
 
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
 
5056
else
 
5057
  ac_check_lib_save_LIBS=$LIBS
 
5058
LIBS="-lfreetype  $LIBS"
 
5059
cat >conftest.$ac_ext <<_ACEOF
 
5060
/* confdefs.h.  */
 
5061
_ACEOF
 
5062
cat confdefs.h >>conftest.$ac_ext
 
5063
cat >>conftest.$ac_ext <<_ACEOF
 
5064
/* end confdefs.h.  */
 
5065
 
 
5066
/* Override any gcc2 internal prototype to avoid an error.  */
 
5067
#ifdef __cplusplus
 
5068
extern "C"
 
5069
#endif
 
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 ();
 
5073
int
 
5074
main ()
 
5075
{
 
5076
FT_Init_FreeType ();
 
5077
  ;
 
5078
  return 0;
 
5079
}
 
5080
_ACEOF
 
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
 
5084
  ac_status=$?
 
5085
  grep -v '^ *+' conftest.er1 >conftest.err
 
5086
  rm -f conftest.er1
 
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
 
5092
  (eval $ac_try) 2>&5
 
5093
  ac_status=$?
 
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
 
5098
  (eval $ac_try) 2>&5
 
5099
  ac_status=$?
 
5100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5101
  (exit $ac_status); }; }; then
 
5102
  ac_cv_lib_freetype_FT_Init_FreeType=yes
 
5103
else
 
5104
  echo "$as_me: failed program was:" >&5
 
5105
sed 's/^/| /' conftest.$ac_ext >&5
 
5106
 
 
5107
ac_cv_lib_freetype_FT_Init_FreeType=no
 
5108
fi
 
5109
rm -f conftest.err conftest.$ac_objext \
 
5110
      conftest$ac_exeext conftest.$ac_ext
 
5111
LIBS=$ac_check_lib_save_LIBS
 
5112
fi
 
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
 
5118
_ACEOF
 
5119
 
 
5120
  LIBS="-lfreetype $LIBS"
 
5121
 
 
5122
else
 
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; }; }
 
5128
fi
 
5129
 
 
5130
 
 
5131
# Check for SDL_gfx with different function names..
 
5132
 
 
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
 
5137
else
 
5138
  ac_check_lib_save_LIBS=$LIBS
 
5139
LIBS="-lSDL_gfx  $LIBS"
 
5140
cat >conftest.$ac_ext <<_ACEOF
 
5141
/* confdefs.h.  */
 
5142
_ACEOF
 
5143
cat confdefs.h >>conftest.$ac_ext
 
5144
cat >>conftest.$ac_ext <<_ACEOF
 
5145
/* end confdefs.h.  */
 
5146
 
 
5147
 
 
5148
int
 
5149
main ()
 
5150
{
 
5151
main ();
 
5152
  ;
 
5153
  return 0;
 
5154
}
 
5155
_ACEOF
 
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
 
5159
  ac_status=$?
 
5160
  grep -v '^ *+' conftest.er1 >conftest.err
 
5161
  rm -f conftest.er1
 
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
 
5167
  (eval $ac_try) 2>&5
 
5168
  ac_status=$?
 
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
 
5173
  (eval $ac_try) 2>&5
 
5174
  ac_status=$?
 
5175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5176
  (exit $ac_status); }; }; then
 
5177
  ac_cv_lib_SDL_gfx_main=yes
 
5178
else
 
5179
  echo "$as_me: failed program was:" >&5
 
5180
sed 's/^/| /' conftest.$ac_ext >&5
 
5181
 
 
5182
ac_cv_lib_SDL_gfx_main=no
 
5183
fi
 
5184
rm -f conftest.err conftest.$ac_objext \
 
5185
      conftest$ac_exeext conftest.$ac_ext
 
5186
LIBS=$ac_check_lib_save_LIBS
 
5187
fi
 
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
 
5193
_ACEOF
 
5194
 
 
5195
  LIBS="-lSDL_gfx $LIBS"
 
5196
 
 
5197
else
 
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; }; }
 
5203
fi
 
5204
 
 
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
 
5209
else
 
5210
  cat >conftest.$ac_ext <<_ACEOF
 
5211
/* confdefs.h.  */
 
5212
_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
 
5219
 
 
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.  */
 
5224
 
 
5225
#ifdef __STDC__
 
5226
# include <limits.h>
 
5227
#else
 
5228
# include <assert.h>
 
5229
#endif
 
5230
 
 
5231
#undef filledPieRGBA
 
5232
 
 
5233
/* Override any gcc2 internal prototype to avoid an error.  */
 
5234
#ifdef __cplusplus
 
5235
extern "C"
 
5236
{
 
5237
#endif
 
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)
 
5245
choke me
 
5246
#else
 
5247
char (*f) () = filledPieRGBA;
 
5248
#endif
 
5249
#ifdef __cplusplus
 
5250
}
 
5251
#endif
 
5252
 
 
5253
int
 
5254
main ()
 
5255
{
 
5256
return f != filledPieRGBA;
 
5257
  ;
 
5258
  return 0;
 
5259
}
 
5260
_ACEOF
 
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
 
5264
  ac_status=$?
 
5265
  grep -v '^ *+' conftest.er1 >conftest.err
 
5266
  rm -f conftest.er1
 
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
 
5272
  (eval $ac_try) 2>&5
 
5273
  ac_status=$?
 
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
 
5278
  (eval $ac_try) 2>&5
 
5279
  ac_status=$?
 
5280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5281
  (exit $ac_status); }; }; then
 
5282
  ac_cv_func_filledPieRGBA=yes
 
5283
else
 
5284
  echo "$as_me: failed program was:" >&5
 
5285
sed 's/^/| /' conftest.$ac_ext >&5
 
5286
 
 
5287
ac_cv_func_filledPieRGBA=no
 
5288
fi
 
5289
rm -f conftest.err conftest.$ac_objext \
 
5290
      conftest$ac_exeext conftest.$ac_ext
 
5291
fi
 
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
 
5297
_ACEOF
 
5298
 
 
5299
fi
 
5300
 
 
5301
 
 
5302
 
 
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
 
5307
else
 
5308
  ac_check_lib_save_LIBS=$LIBS
 
5309
LIBS="-lSDL_ttf  $LIBS"
 
5310
cat >conftest.$ac_ext <<_ACEOF
 
5311
/* confdefs.h.  */
 
5312
_ACEOF
 
5313
cat confdefs.h >>conftest.$ac_ext
 
5314
cat >>conftest.$ac_ext <<_ACEOF
 
5315
/* end confdefs.h.  */
 
5316
 
 
5317
 
 
5318
int
 
5319
main ()
 
5320
{
 
5321
main ();
 
5322
  ;
 
5323
  return 0;
 
5324
}
 
5325
_ACEOF
 
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
 
5329
  ac_status=$?
 
5330
  grep -v '^ *+' conftest.er1 >conftest.err
 
5331
  rm -f conftest.er1
 
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
 
5337
  (eval $ac_try) 2>&5
 
5338
  ac_status=$?
 
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
 
5343
  (eval $ac_try) 2>&5
 
5344
  ac_status=$?
 
5345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5346
  (exit $ac_status); }; }; then
 
5347
  ac_cv_lib_SDL_ttf_main=yes
 
5348
else
 
5349
  echo "$as_me: failed program was:" >&5
 
5350
sed 's/^/| /' conftest.$ac_ext >&5
 
5351
 
 
5352
ac_cv_lib_SDL_ttf_main=no
 
5353
fi
 
5354
rm -f conftest.err conftest.$ac_objext \
 
5355
      conftest$ac_exeext conftest.$ac_ext
 
5356
LIBS=$ac_check_lib_save_LIBS
 
5357
fi
 
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
 
5363
_ACEOF
 
5364
 
 
5365
  LIBS="-lSDL_ttf $LIBS"
 
5366
 
 
5367
else
 
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; }; }
 
5373
fi
 
5374
 
 
5375
 
 
5376
 
 
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
 
5381
else
 
5382
  ac_check_lib_save_LIBS=$LIBS
 
5383
LIBS="-lxml2  $LIBS"
 
5384
cat >conftest.$ac_ext <<_ACEOF
 
5385
/* confdefs.h.  */
 
5386
_ACEOF
 
5387
cat confdefs.h >>conftest.$ac_ext
 
5388
cat >>conftest.$ac_ext <<_ACEOF
 
5389
/* end confdefs.h.  */
 
5390
 
 
5391
 
 
5392
int
 
5393
main ()
 
5394
{
 
5395
main ();
 
5396
  ;
 
5397
  return 0;
 
5398
}
 
5399
_ACEOF
 
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
 
5403
  ac_status=$?
 
5404
  grep -v '^ *+' conftest.er1 >conftest.err
 
5405
  rm -f conftest.er1
 
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
 
5411
  (eval $ac_try) 2>&5
 
5412
  ac_status=$?
 
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
 
5417
  (eval $ac_try) 2>&5
 
5418
  ac_status=$?
 
5419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5420
  (exit $ac_status); }; }; then
 
5421
  ac_cv_lib_xml2_main=yes
 
5422
else
 
5423
  echo "$as_me: failed program was:" >&5
 
5424
sed 's/^/| /' conftest.$ac_ext >&5
 
5425
 
 
5426
ac_cv_lib_xml2_main=no
 
5427
fi
 
5428
rm -f conftest.err conftest.$ac_objext \
 
5429
      conftest$ac_exeext conftest.$ac_ext
 
5430
LIBS=$ac_check_lib_save_LIBS
 
5431
fi
 
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
 
5437
_ACEOF
 
5438
 
 
5439
  LIBS="-lxml2 $LIBS"
 
5440
 
 
5441
else
 
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; }; }
 
5447
fi
 
5448
 
 
5449
 
 
5450
 
 
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
 
5455
else
 
5456
  ac_check_lib_save_LIBS=$LIBS
 
5457
LIBS="-lm  $LIBS"
 
5458
cat >conftest.$ac_ext <<_ACEOF
 
5459
/* confdefs.h.  */
 
5460
_ACEOF
 
5461
cat confdefs.h >>conftest.$ac_ext
 
5462
cat >>conftest.$ac_ext <<_ACEOF
 
5463
/* end confdefs.h.  */
 
5464
 
 
5465
/* Override any gcc2 internal prototype to avoid an error.  */
 
5466
#ifdef __cplusplus
 
5467
extern "C"
 
5468
#endif
 
5469
/* We use char because int might match the return type of a gcc2
 
5470
   builtin and then its argument prototype would still apply.  */
 
5471
char sqrt ();
 
5472
int
 
5473
main ()
 
5474
{
 
5475
sqrt ();
 
5476
  ;
 
5477
  return 0;
 
5478
}
 
5479
_ACEOF
 
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
 
5483
  ac_status=$?
 
5484
  grep -v '^ *+' conftest.er1 >conftest.err
 
5485
  rm -f conftest.er1
 
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
 
5491
  (eval $ac_try) 2>&5
 
5492
  ac_status=$?
 
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
 
5497
  (eval $ac_try) 2>&5
 
5498
  ac_status=$?
 
5499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5500
  (exit $ac_status); }; }; then
 
5501
  ac_cv_lib_m_sqrt=yes
 
5502
else
 
5503
  echo "$as_me: failed program was:" >&5
 
5504
sed 's/^/| /' conftest.$ac_ext >&5
 
5505
 
 
5506
ac_cv_lib_m_sqrt=no
 
5507
fi
 
5508
rm -f conftest.err conftest.$ac_objext \
 
5509
      conftest$ac_exeext conftest.$ac_ext
 
5510
LIBS=$ac_check_lib_save_LIBS
 
5511
fi
 
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
 
5516
#define HAVE_LIBM 1
 
5517
_ACEOF
 
5518
 
 
5519
  LIBS="-lm $LIBS"
 
5520
 
 
5521
else
 
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; }; }
 
5525
fi
 
5526
 
 
5527
 
 
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
 
5532
else
 
5533
  ac_check_lib_save_LIBS=$LIBS
 
5534
LIBS="-lpthread  $LIBS"
 
5535
cat >conftest.$ac_ext <<_ACEOF
 
5536
/* confdefs.h.  */
 
5537
_ACEOF
 
5538
cat confdefs.h >>conftest.$ac_ext
 
5539
cat >>conftest.$ac_ext <<_ACEOF
 
5540
/* end confdefs.h.  */
 
5541
 
 
5542
/* Override any gcc2 internal prototype to avoid an error.  */
 
5543
#ifdef __cplusplus
 
5544
extern "C"
 
5545
#endif
 
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 ();
 
5549
int
 
5550
main ()
 
5551
{
 
5552
pthread_self ();
 
5553
  ;
 
5554
  return 0;
 
5555
}
 
5556
_ACEOF
 
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
 
5560
  ac_status=$?
 
5561
  grep -v '^ *+' conftest.er1 >conftest.err
 
5562
  rm -f conftest.er1
 
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
 
5568
  (eval $ac_try) 2>&5
 
5569
  ac_status=$?
 
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
 
5574
  (eval $ac_try) 2>&5
 
5575
  ac_status=$?
 
5576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5577
  (exit $ac_status); }; }; then
 
5578
  ac_cv_lib_pthread_pthread_self=yes
 
5579
else
 
5580
  echo "$as_me: failed program was:" >&5
 
5581
sed 's/^/| /' conftest.$ac_ext >&5
 
5582
 
 
5583
ac_cv_lib_pthread_pthread_self=no
 
5584
fi
 
5585
rm -f conftest.err conftest.$ac_objext \
 
5586
      conftest$ac_exeext conftest.$ac_ext
 
5587
LIBS=$ac_check_lib_save_LIBS
 
5588
fi
 
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
 
5594
_ACEOF
 
5595
 
 
5596
  LIBS="-lpthread $LIBS"
 
5597
 
 
5598
else
 
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; }; }
 
5602
fi
 
5603
 
 
5604
 
 
5605
 
 
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
 
5610
else
 
5611
  ac_check_lib_save_LIBS=$LIBS
 
5612
LIBS="-lasound  $LIBS"
 
5613
cat >conftest.$ac_ext <<_ACEOF
 
5614
/* confdefs.h.  */
 
5615
_ACEOF
 
5616
cat confdefs.h >>conftest.$ac_ext
 
5617
cat >>conftest.$ac_ext <<_ACEOF
 
5618
/* end confdefs.h.  */
 
5619
 
 
5620
 
 
5621
int
 
5622
main ()
 
5623
{
 
5624
main ();
 
5625
  ;
 
5626
  return 0;
 
5627
}
 
5628
_ACEOF
 
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
 
5632
  ac_status=$?
 
5633
  grep -v '^ *+' conftest.er1 >conftest.err
 
5634
  rm -f conftest.er1
 
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
 
5640
  (eval $ac_try) 2>&5
 
5641
  ac_status=$?
 
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
 
5646
  (eval $ac_try) 2>&5
 
5647
  ac_status=$?
 
5648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5649
  (exit $ac_status); }; }; then
 
5650
  ac_cv_lib_asound_main=yes
 
5651
else
 
5652
  echo "$as_me: failed program was:" >&5
 
5653
sed 's/^/| /' conftest.$ac_ext >&5
 
5654
 
 
5655
ac_cv_lib_asound_main=no
 
5656
fi
 
5657
rm -f conftest.err conftest.$ac_objext \
 
5658
      conftest$ac_exeext conftest.$ac_ext
 
5659
LIBS=$ac_check_lib_save_LIBS
 
5660
fi
 
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
 
5666
_ACEOF
 
5667
 
 
5668
  LIBS="-lasound $LIBS"
 
5669
 
 
5670
else
 
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; }; }
 
5676
fi
 
5677
 
 
5678
 
 
5679
 
 
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
 
5684
else
 
5685
  ac_check_lib_save_LIBS=$LIBS
 
5686
LIBS="-ljack  $LIBS"
 
5687
cat >conftest.$ac_ext <<_ACEOF
 
5688
/* confdefs.h.  */
 
5689
_ACEOF
 
5690
cat confdefs.h >>conftest.$ac_ext
 
5691
cat >>conftest.$ac_ext <<_ACEOF
 
5692
/* end confdefs.h.  */
 
5693
 
 
5694
/* Override any gcc2 internal prototype to avoid an error.  */
 
5695
#ifdef __cplusplus
 
5696
extern "C"
 
5697
#endif
 
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 ();
 
5701
int
 
5702
main ()
 
5703
{
 
5704
jack_client_new ();
 
5705
  ;
 
5706
  return 0;
 
5707
}
 
5708
_ACEOF
 
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
 
5712
  ac_status=$?
 
5713
  grep -v '^ *+' conftest.er1 >conftest.err
 
5714
  rm -f conftest.er1
 
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
 
5720
  (eval $ac_try) 2>&5
 
5721
  ac_status=$?
 
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
 
5726
  (eval $ac_try) 2>&5
 
5727
  ac_status=$?
 
5728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5729
  (exit $ac_status); }; }; then
 
5730
  ac_cv_lib_jack_jack_client_new=yes
 
5731
else
 
5732
  echo "$as_me: failed program was:" >&5
 
5733
sed 's/^/| /' conftest.$ac_ext >&5
 
5734
 
 
5735
ac_cv_lib_jack_jack_client_new=no
 
5736
fi
 
5737
rm -f conftest.err conftest.$ac_objext \
 
5738
      conftest$ac_exeext conftest.$ac_ext
 
5739
LIBS=$ac_check_lib_save_LIBS
 
5740
fi
 
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
 
5746
_ACEOF
 
5747
 
 
5748
  LIBS="-ljack $LIBS"
 
5749
 
 
5750
else
 
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; }; }
 
5756
fi
 
5757
 
 
5758
 
 
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
 
5764
else
 
5765
  ac_check_lib_save_LIBS=$LIBS
 
5766
LIBS="-lfluidsynth  $LIBS"
 
5767
cat >conftest.$ac_ext <<_ACEOF
 
5768
/* confdefs.h.  */
 
5769
_ACEOF
 
5770
cat confdefs.h >>conftest.$ac_ext
 
5771
cat >>conftest.$ac_ext <<_ACEOF
 
5772
/* end confdefs.h.  */
 
5773
 
 
5774
 
 
5775
int
 
5776
main ()
 
5777
{
 
5778
main ();
 
5779
  ;
 
5780
  return 0;
 
5781
}
 
5782
_ACEOF
 
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
 
5786
  ac_status=$?
 
5787
  grep -v '^ *+' conftest.er1 >conftest.err
 
5788
  rm -f conftest.er1
 
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
 
5794
  (eval $ac_try) 2>&5
 
5795
  ac_status=$?
 
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
 
5800
  (eval $ac_try) 2>&5
 
5801
  ac_status=$?
 
5802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5803
  (exit $ac_status); }; }; then
 
5804
  ac_cv_lib_fluidsynth_main=yes
 
5805
else
 
5806
  echo "$as_me: failed program was:" >&5
 
5807
sed 's/^/| /' conftest.$ac_ext >&5
 
5808
 
 
5809
ac_cv_lib_fluidsynth_main=no
 
5810
fi
 
5811
rm -f conftest.err conftest.$ac_objext \
 
5812
      conftest$ac_exeext conftest.$ac_ext
 
5813
LIBS=$ac_check_lib_save_LIBS
 
5814
fi
 
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
 
5818
  fluidsynth=yes
 
5819
else
 
5820
  fluidsynth=no
 
5821
fi
 
5822
 
 
5823
   if test "$fluidsynth" = "yes"; then
 
5824
      LIBS="$LIBS -lfluidsynth"
 
5825
 
 
5826
cat >>confdefs.h <<\_ACEOF
 
5827
#define USE_FLUIDSYNTH 1
 
5828
_ACEOF
 
5829
 
 
5830
      echo "--- Enabling integrated FluidSynth synth ---";
 
5831
   else
 
5832
      echo "--- No libfluidsynth -- FluidSynth support will not be built! ---";
 
5833
   fi
 
5834
else
 
5835
   echo "--- Disabling integrated FluidSynth synth ---";
 
5836
fi
 
5837
 
 
5838
SDL_VERSION=1.2.4
 
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; }; }
 
5844
 
 
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
 
5849
else
 
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; }; }
 
5861
 
 
5862
fi
 
5863
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
5864
echo "${ECHO_T}$ac_cv_build" >&6
 
5865
build=$ac_cv_build
 
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/'`
 
5869
 
 
5870
 
 
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
 
5875
else
 
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; }; }
 
5883
 
 
5884
fi
 
5885
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
5886
echo "${ECHO_T}$ac_cv_host" >&6
 
5887
host=$ac_cv_host
 
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/'`
 
5891
 
 
5892
 
 
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
 
5897
else
 
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; }; }
 
5905
 
 
5906
fi
 
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/'`
 
5913
 
 
5914
 
 
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" = \
 
5919
    NONENONEs,x,x, &&
 
5920
  program_prefix=${target_alias}-
 
5921
 
 
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"
 
5926
else
 
5927
  sdl_prefix=""
 
5928
fi;
 
5929
 
 
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"
 
5934
else
 
5935
  sdl_exec_prefix=""
 
5936
fi;
 
5937
# Check whether --enable-sdltest or --disable-sdltest was given.
 
5938
if test "${enable_sdltest+set}" = set; then
 
5939
  enableval="$enable_sdltest"
 
5940
 
 
5941
else
 
5942
  enable_sdltest=yes
 
5943
fi;
 
5944
 
 
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
 
5949
     fi
 
5950
  fi
 
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
 
5955
     fi
 
5956
  fi
 
5957
 
 
5958
 
 
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
 
5966
else
 
5967
  case $SDL_CONFIG in
 
5968
  [\\/]* | ?:[\\/]*)
 
5969
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
 
5970
  ;;
 
5971
  *)
 
5972
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5973
for as_dir in $PATH
 
5974
do
 
5975
  IFS=$as_save_IFS
 
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
 
5981
    break 2
 
5982
  fi
 
5983
done
 
5984
done
 
5985
 
 
5986
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
 
5987
  ;;
 
5988
esac
 
5989
fi
 
5990
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
 
5991
 
 
5992
if test -n "$SDL_CONFIG"; then
 
5993
  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
 
5994
echo "${ECHO_T}$SDL_CONFIG" >&6
 
5995
else
 
5996
  echo "$as_me:$LINENO: result: no" >&5
 
5997
echo "${ECHO_T}no" >&6
 
5998
fi
 
5999
 
 
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
 
6003
  no_sdl=""
 
6004
  if test "$SDL_CONFIG" = "no" ; then
 
6005
    no_sdl=yes
 
6006
  else
 
6007
    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
 
6008
    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
 
6009
 
 
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"
 
6021
      rm -f conf.sdltest
 
6022
      if test "$cross_compiling" = yes; then
 
6023
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
6024
else
 
6025
  cat >conftest.$ac_ext <<_ACEOF
 
6026
/* confdefs.h.  */
 
6027
_ACEOF
 
6028
cat confdefs.h >>conftest.$ac_ext
 
6029
cat >>conftest.$ac_ext <<_ACEOF
 
6030
/* end confdefs.h.  */
 
6031
 
 
6032
#include <stdio.h>
 
6033
#include <stdlib.h>
 
6034
#include <string.h>
 
6035
#include "SDL.h"
 
6036
 
 
6037
char*
 
6038
my_strdup (char *str)
 
6039
{
 
6040
  char *new_str;
 
6041
 
 
6042
  if (str)
 
6043
    {
 
6044
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
 
6045
      strcpy (new_str, str);
 
6046
    }
 
6047
  else
 
6048
    new_str = NULL;
 
6049
 
 
6050
  return new_str;
 
6051
}
 
6052
 
 
6053
int main (int argc, char *argv[])
 
6054
{
 
6055
  int major, minor, micro;
 
6056
  char *tmp_version;
 
6057
 
 
6058
  /* This hangs on some systems (?)
 
6059
  system ("touch conf.sdltest");
 
6060
  */
 
6061
  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
 
6062
 
 
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, &micro) != 3) {
 
6066
     printf("%s, bad version string\n", "$min_sdl_version");
 
6067
     exit(1);
 
6068
   }
 
6069
 
 
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)))
 
6073
    {
 
6074
      return 0;
 
6075
    }
 
6076
  else
 
6077
    {
 
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");
 
6084
      return 1;
 
6085
    }
 
6086
}
 
6087
 
 
6088
 
 
6089
_ACEOF
 
6090
rm -f conftest$ac_exeext
 
6091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6092
  (eval $ac_link) 2>&5
 
6093
  ac_status=$?
 
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
 
6097
  (eval $ac_try) 2>&5
 
6098
  ac_status=$?
 
6099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6100
  (exit $ac_status); }; }; then
 
6101
  :
 
6102
else
 
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
 
6106
 
 
6107
( exit $ac_status )
 
6108
no_sdl=yes
 
6109
fi
 
6110
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6111
fi
 
6112
       CFLAGS="$ac_save_CFLAGS"
 
6113
       LIBS="$ac_save_LIBS"
 
6114
     fi
 
6115
  fi
 
6116
  if test "x$no_sdl" = x ; then
 
6117
     echo "$as_me:$LINENO: result: yes" >&5
 
6118
echo "${ECHO_T}yes" >&6
 
6119
     :
 
6120
  else
 
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."
 
6128
     else
 
6129
       if test -f conf.sdltest ; then
 
6130
        :
 
6131
       else
 
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
 
6136
/* confdefs.h.  */
 
6137
_ACEOF
 
6138
cat confdefs.h >>conftest.$ac_ext
 
6139
cat >>conftest.$ac_ext <<_ACEOF
 
6140
/* end confdefs.h.  */
 
6141
 
 
6142
#include <stdio.h>
 
6143
#include "SDL.h"
 
6144
 
 
6145
int main(int argc, char *argv[])
 
6146
{ return 0; }
 
6147
#undef  main
 
6148
#define main K_and_R_C_main
 
6149
 
 
6150
int
 
6151
main ()
 
6152
{
 
6153
 return 0;
 
6154
  ;
 
6155
  return 0;
 
6156
}
 
6157
_ACEOF
 
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
 
6161
  ac_status=$?
 
6162
  grep -v '^ *+' conftest.er1 >conftest.err
 
6163
  rm -f conftest.er1
 
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
 
6169
  (eval $ac_try) 2>&5
 
6170
  ac_status=$?
 
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
 
6175
  (eval $ac_try) 2>&5
 
6176
  ac_status=$?
 
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"
 
6185
          echo "***"
 
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"
 
6188
else
 
6189
  echo "$as_me: failed program was:" >&5
 
6190
sed 's/^/| /' conftest.$ac_ext >&5
 
6191
 
 
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"
 
6196
fi
 
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"
 
6201
       fi
 
6202
     fi
 
6203
     SDL_CFLAGS=""
 
6204
     SDL_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; }; }
 
6210
 
 
6211
  fi
 
6212
 
 
6213
 
 
6214
  rm -f conf.sdltest
 
6215
 
 
6216
 
 
6217
 
 
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
 
6222
else
 
6223
  ac_check_lib_save_LIBS=$LIBS
 
6224
LIBS="-lvorbis  $LIBS"
 
6225
cat >conftest.$ac_ext <<_ACEOF
 
6226
/* confdefs.h.  */
 
6227
_ACEOF
 
6228
cat confdefs.h >>conftest.$ac_ext
 
6229
cat >>conftest.$ac_ext <<_ACEOF
 
6230
/* end confdefs.h.  */
 
6231
 
 
6232
 
 
6233
int
 
6234
main ()
 
6235
{
 
6236
main ();
 
6237
  ;
 
6238
  return 0;
 
6239
}
 
6240
_ACEOF
 
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
 
6244
  ac_status=$?
 
6245
  grep -v '^ *+' conftest.er1 >conftest.err
 
6246
  rm -f conftest.er1
 
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
 
6252
  (eval $ac_try) 2>&5
 
6253
  ac_status=$?
 
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
 
6258
  (eval $ac_try) 2>&5
 
6259
  ac_status=$?
 
6260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6261
  (exit $ac_status); }; }; then
 
6262
  ac_cv_lib_vorbis_main=yes
 
6263
else
 
6264
  echo "$as_me: failed program was:" >&5
 
6265
sed 's/^/| /' conftest.$ac_ext >&5
 
6266
 
 
6267
ac_cv_lib_vorbis_main=no
 
6268
fi
 
6269
rm -f conftest.err conftest.$ac_objext \
 
6270
      conftest$ac_exeext conftest.$ac_ext
 
6271
LIBS=$ac_check_lib_save_LIBS
 
6272
fi
 
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
 
6278
_ACEOF
 
6279
 
 
6280
  LIBS="-lvorbis $LIBS"
 
6281
 
 
6282
else
 
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; }; }
 
6288
fi
 
6289
 
 
6290
 
 
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
 
6295
else
 
6296
  ac_check_lib_save_LIBS=$LIBS
 
6297
LIBS="-lvorbisfile  $LIBS"
 
6298
cat >conftest.$ac_ext <<_ACEOF
 
6299
/* confdefs.h.  */
 
6300
_ACEOF
 
6301
cat confdefs.h >>conftest.$ac_ext
 
6302
cat >>conftest.$ac_ext <<_ACEOF
 
6303
/* end confdefs.h.  */
 
6304
 
 
6305
 
 
6306
int
 
6307
main ()
 
6308
{
 
6309
main ();
 
6310
  ;
 
6311
  return 0;
 
6312
}
 
6313
_ACEOF
 
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
 
6317
  ac_status=$?
 
6318
  grep -v '^ *+' conftest.er1 >conftest.err
 
6319
  rm -f conftest.er1
 
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
 
6325
  (eval $ac_try) 2>&5
 
6326
  ac_status=$?
 
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
 
6331
  (eval $ac_try) 2>&5
 
6332
  ac_status=$?
 
6333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6334
  (exit $ac_status); }; }; then
 
6335
  ac_cv_lib_vorbisfile_main=yes
 
6336
else
 
6337
  echo "$as_me: failed program was:" >&5
 
6338
sed 's/^/| /' conftest.$ac_ext >&5
 
6339
 
 
6340
ac_cv_lib_vorbisfile_main=no
 
6341
fi
 
6342
rm -f conftest.err conftest.$ac_objext \
 
6343
      conftest$ac_exeext conftest.$ac_ext
 
6344
LIBS=$ac_check_lib_save_LIBS
 
6345
fi
 
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
 
6351
_ACEOF
 
6352
 
 
6353
  LIBS="-lvorbisfile $LIBS"
 
6354
 
 
6355
else
 
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; }; }
 
6361
fi
 
6362
 
 
6363
 
 
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
 
6368
else
 
6369
  ac_check_lib_save_LIBS=$LIBS
 
6370
LIBS="-lvorbisenc  $LIBS"
 
6371
cat >conftest.$ac_ext <<_ACEOF
 
6372
/* confdefs.h.  */
 
6373
_ACEOF
 
6374
cat confdefs.h >>conftest.$ac_ext
 
6375
cat >>conftest.$ac_ext <<_ACEOF
 
6376
/* end confdefs.h.  */
 
6377
 
 
6378
 
 
6379
int
 
6380
main ()
 
6381
{
 
6382
main ();
 
6383
  ;
 
6384
  return 0;
 
6385
}
 
6386
_ACEOF
 
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
 
6390
  ac_status=$?
 
6391
  grep -v '^ *+' conftest.er1 >conftest.err
 
6392
  rm -f conftest.er1
 
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
 
6398
  (eval $ac_try) 2>&5
 
6399
  ac_status=$?
 
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
 
6404
  (eval $ac_try) 2>&5
 
6405
  ac_status=$?
 
6406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6407
  (exit $ac_status); }; }; then
 
6408
  ac_cv_lib_vorbisenc_main=yes
 
6409
else
 
6410
  echo "$as_me: failed program was:" >&5
 
6411
sed 's/^/| /' conftest.$ac_ext >&5
 
6412
 
 
6413
ac_cv_lib_vorbisenc_main=no
 
6414
fi
 
6415
rm -f conftest.err conftest.$ac_objext \
 
6416
      conftest$ac_exeext conftest.$ac_ext
 
6417
LIBS=$ac_check_lib_save_LIBS
 
6418
fi
 
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
 
6424
_ACEOF
 
6425
 
 
6426
  LIBS="-lvorbisenc $LIBS"
 
6427
 
 
6428
else
 
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; }; }
 
6434
fi
 
6435
 
 
6436
 
 
6437
CFLAGS="$CFLAGS $SDL_CFLAGS"
 
6438
LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
 
6439
LIBS="$LIBS $SDL_LIBS"
 
6440
 
 
6441
# Checks for header files.
 
6442
echo "$as_me:$LINENO: checking for X" >&5
 
6443
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
6444
 
 
6445
ac_path_x_has_been_run=yes
 
6446
 
 
6447
# Check whether --with-x or --without-x was given.
 
6448
if test "${with_x+set}" = set; then
 
6449
  withval="$with_x"
 
6450
 
 
6451
fi;
 
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.
 
6455
  have_x=disabled
 
6456
else
 
6457
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
6458
    # Both variables are already set.
 
6459
    have_x=yes
 
6460
  else
 
6461
    if test "${ac_cv_have_x+set}" = set; then
 
6462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6463
else
 
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
 
6466
rm -fr conftest.dir
 
6467
if mkdir conftest.dir; then
 
6468
  cd conftest.dir
 
6469
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
6470
  cat >Imakefile <<'_ACEOF'
 
6471
acfindx:
 
6472
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
6473
_ACEOF
 
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
 
6482
      fi
 
6483
    done
 
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
 
6488
        /usr/include) ;;
 
6489
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
6490
    esac
 
6491
    case $ac_im_usrlibdir in
 
6492
        /usr/lib | /lib) ;;
 
6493
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
6494
    esac
 
6495
  fi
 
6496
  cd ..
 
6497
  rm -fr conftest.dir
 
6498
fi
 
6499
 
 
6500
# Standard set of common directories for X headers.
 
6501
# Check X11 before X11Rn because it is often a symlink to the current release.
 
6502
ac_x_header_dirs='
 
6503
/usr/X11/include
 
6504
/usr/X11R6/include
 
6505
/usr/X11R5/include
 
6506
/usr/X11R4/include
 
6507
 
 
6508
/usr/include/X11
 
6509
/usr/include/X11R6
 
6510
/usr/include/X11R5
 
6511
/usr/include/X11R4
 
6512
 
 
6513
/usr/local/X11/include
 
6514
/usr/local/X11R6/include
 
6515
/usr/local/X11R5/include
 
6516
/usr/local/X11R4/include
 
6517
 
 
6518
/usr/local/include/X11
 
6519
/usr/local/include/X11R6
 
6520
/usr/local/include/X11R5
 
6521
/usr/local/include/X11R4
 
6522
 
 
6523
/usr/X386/include
 
6524
/usr/x386/include
 
6525
/usr/XFree86/include/X11
 
6526
 
 
6527
/usr/include
 
6528
/usr/local/include
 
6529
/usr/unsupported/include
 
6530
/usr/athena/include
 
6531
/usr/local/x11r5/include
 
6532
/usr/lpp/Xamples/include
 
6533
 
 
6534
/usr/openwin/include
 
6535
/usr/openwin/share/include'
 
6536
 
 
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
 
6541
/* confdefs.h.  */
 
6542
_ACEOF
 
6543
cat confdefs.h >>conftest.$ac_ext
 
6544
cat >>conftest.$ac_ext <<_ACEOF
 
6545
/* end confdefs.h.  */
 
6546
#include <X11/Intrinsic.h>
 
6547
_ACEOF
 
6548
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6549
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6550
  ac_status=$?
 
6551
  grep -v '^ *+' conftest.er1 >conftest.err
 
6552
  rm -f conftest.er1
 
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
 
6559
  else
 
6560
    ac_cpp_err=
 
6561
  fi
 
6562
else
 
6563
  ac_cpp_err=yes
 
6564
fi
 
6565
if test -z "$ac_cpp_err"; then
 
6566
  # We can compile using X headers with no special include directory.
 
6567
ac_x_includes=
 
6568
else
 
6569
  echo "$as_me: failed program was:" >&5
 
6570
sed 's/^/| /' conftest.$ac_ext >&5
 
6571
 
 
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
 
6575
    break
 
6576
  fi
 
6577
done
 
6578
fi
 
6579
rm -f conftest.err conftest.$ac_ext
 
6580
fi # $ac_x_includes = no
 
6581
 
 
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.
 
6586
  ac_save_LIBS=$LIBS
 
6587
  LIBS="-lXt $LIBS"
 
6588
  cat >conftest.$ac_ext <<_ACEOF
 
6589
/* confdefs.h.  */
 
6590
_ACEOF
 
6591
cat confdefs.h >>conftest.$ac_ext
 
6592
cat >>conftest.$ac_ext <<_ACEOF
 
6593
/* end confdefs.h.  */
 
6594
#include <X11/Intrinsic.h>
 
6595
int
 
6596
main ()
 
6597
{
 
6598
XtMalloc (0)
 
6599
  ;
 
6600
  return 0;
 
6601
}
 
6602
_ACEOF
 
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
 
6606
  ac_status=$?
 
6607
  grep -v '^ *+' conftest.er1 >conftest.err
 
6608
  rm -f conftest.er1
 
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
 
6614
  (eval $ac_try) 2>&5
 
6615
  ac_status=$?
 
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
 
6620
  (eval $ac_try) 2>&5
 
6621
  ac_status=$?
 
6622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6623
  (exit $ac_status); }; }; then
 
6624
  LIBS=$ac_save_LIBS
 
6625
# We can link X programs with no special library path.
 
6626
ac_x_libraries=
 
6627
else
 
6628
  echo "$as_me: failed program was:" >&5
 
6629
sed 's/^/| /' conftest.$ac_ext >&5
 
6630
 
 
6631
LIBS=$ac_save_LIBS
 
6632
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
6633
do
 
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
 
6638
      break 2
 
6639
    fi
 
6640
  done
 
6641
done
 
6642
fi
 
6643
rm -f conftest.err conftest.$ac_objext \
 
6644
      conftest$ac_exeext conftest.$ac_ext
 
6645
fi # $ac_x_libraries = no
 
6646
 
 
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"
 
6650
else
 
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"
 
6654
fi
 
6655
fi
 
6656
 
 
6657
  fi
 
6658
  eval "$ac_cv_have_x"
 
6659
fi # $with_x != no
 
6660
 
 
6661
if test "$have_x" != yes; then
 
6662
  echo "$as_me:$LINENO: result: $have_x" >&5
 
6663
echo "${ECHO_T}$have_x" >&6
 
6664
  no_x=yes
 
6665
else
 
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
 
6678
fi
 
6679
 
 
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
 
6684
else
 
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'
 
6688
    fi
 
6689
fi
 
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
 
6693
 
 
6694
 
 
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
 
6699
else
 
6700
  cat >conftest.$ac_ext <<_ACEOF
 
6701
/* confdefs.h.  */
 
6702
_ACEOF
 
6703
cat confdefs.h >>conftest.$ac_ext
 
6704
cat >>conftest.$ac_ext <<_ACEOF
 
6705
/* end confdefs.h.  */
 
6706
#include <stdlib.h>
 
6707
#include <stdarg.h>
 
6708
#include <string.h>
 
6709
#include <float.h>
 
6710
 
 
6711
int
 
6712
main ()
 
6713
{
 
6714
 
 
6715
  ;
 
6716
  return 0;
 
6717
}
 
6718
_ACEOF
 
6719
rm -f conftest.$ac_objext
 
6720
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6721
  (eval $ac_compile) 2>conftest.er1
 
6722
  ac_status=$?
 
6723
  grep -v '^ *+' conftest.er1 >conftest.err
 
6724
  rm -f conftest.er1
 
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
 
6730
  (eval $ac_try) 2>&5
 
6731
  ac_status=$?
 
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
 
6736
  (eval $ac_try) 2>&5
 
6737
  ac_status=$?
 
6738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6739
  (exit $ac_status); }; }; then
 
6740
  ac_cv_header_stdc=yes
 
6741
else
 
6742
  echo "$as_me: failed program was:" >&5
 
6743
sed 's/^/| /' conftest.$ac_ext >&5
 
6744
 
 
6745
ac_cv_header_stdc=no
 
6746
fi
 
6747
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6748
 
 
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
 
6752
/* confdefs.h.  */
 
6753
_ACEOF
 
6754
cat confdefs.h >>conftest.$ac_ext
 
6755
cat >>conftest.$ac_ext <<_ACEOF
 
6756
/* end confdefs.h.  */
 
6757
#include <string.h>
 
6758
 
 
6759
_ACEOF
 
6760
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6761
  $EGREP "memchr" >/dev/null 2>&1; then
 
6762
  :
 
6763
else
 
6764
  ac_cv_header_stdc=no
 
6765
fi
 
6766
rm -f conftest*
 
6767
 
 
6768
fi
 
6769
 
 
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
 
6773
/* confdefs.h.  */
 
6774
_ACEOF
 
6775
cat confdefs.h >>conftest.$ac_ext
 
6776
cat >>conftest.$ac_ext <<_ACEOF
 
6777
/* end confdefs.h.  */
 
6778
#include <stdlib.h>
 
6779
 
 
6780
_ACEOF
 
6781
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6782
  $EGREP "free" >/dev/null 2>&1; then
 
6783
  :
 
6784
else
 
6785
  ac_cv_header_stdc=no
 
6786
fi
 
6787
rm -f conftest*
 
6788
 
 
6789
fi
 
6790
 
 
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
 
6794
  :
 
6795
else
 
6796
  cat >conftest.$ac_ext <<_ACEOF
 
6797
/* confdefs.h.  */
 
6798
_ACEOF
 
6799
cat confdefs.h >>conftest.$ac_ext
 
6800
cat >>conftest.$ac_ext <<_ACEOF
 
6801
/* end confdefs.h.  */
 
6802
#include <ctype.h>
 
6803
#if ((' ' & 0x0FF) == 0x020)
 
6804
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6805
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6806
#else
 
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))
 
6812
#endif
 
6813
 
 
6814
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6815
int
 
6816
main ()
 
6817
{
 
6818
  int i;
 
6819
  for (i = 0; i < 256; i++)
 
6820
    if (XOR (islower (i), ISLOWER (i))
 
6821
        || toupper (i) != TOUPPER (i))
 
6822
      exit(2);
 
6823
  exit (0);
 
6824
}
 
6825
_ACEOF
 
6826
rm -f conftest$ac_exeext
 
6827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6828
  (eval $ac_link) 2>&5
 
6829
  ac_status=$?
 
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
 
6833
  (eval $ac_try) 2>&5
 
6834
  ac_status=$?
 
6835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6836
  (exit $ac_status); }; }; then
 
6837
  :
 
6838
else
 
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
 
6842
 
 
6843
( exit $ac_status )
 
6844
ac_cv_header_stdc=no
 
6845
fi
 
6846
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6847
fi
 
6848
fi
 
6849
fi
 
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
 
6853
 
 
6854
cat >>confdefs.h <<\_ACEOF
 
6855
#define STDC_HEADERS 1
 
6856
_ACEOF
 
6857
 
 
6858
fi
 
6859
 
 
6860
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6861
 
 
6862
 
 
6863
 
 
6864
 
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
 
 
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
 
6872
do
 
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
 
6878
else
 
6879
  cat >conftest.$ac_ext <<_ACEOF
 
6880
/* confdefs.h.  */
 
6881
_ACEOF
 
6882
cat confdefs.h >>conftest.$ac_ext
 
6883
cat >>conftest.$ac_ext <<_ACEOF
 
6884
/* end confdefs.h.  */
 
6885
$ac_includes_default
 
6886
 
 
6887
#include <$ac_header>
 
6888
_ACEOF
 
6889
rm -f conftest.$ac_objext
 
6890
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6891
  (eval $ac_compile) 2>conftest.er1
 
6892
  ac_status=$?
 
6893
  grep -v '^ *+' conftest.er1 >conftest.err
 
6894
  rm -f conftest.er1
 
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
 
6900
  (eval $ac_try) 2>&5
 
6901
  ac_status=$?
 
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
 
6906
  (eval $ac_try) 2>&5
 
6907
  ac_status=$?
 
6908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6909
  (exit $ac_status); }; }; then
 
6910
  eval "$as_ac_Header=yes"
 
6911
else
 
6912
  echo "$as_me: failed program was:" >&5
 
6913
sed 's/^/| /' conftest.$ac_ext >&5
 
6914
 
 
6915
eval "$as_ac_Header=no"
 
6916
fi
 
6917
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6918
fi
 
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
 
6924
_ACEOF
 
6925
 
 
6926
fi
 
6927
 
 
6928
done
 
6929
 
 
6930
 
 
6931
 
 
6932
 
 
6933
 
 
6934
 
 
6935
 
 
6936
for ac_header in errno.h stdlib.h string.h sys/time.h unistd.h
 
6937
do
 
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
 
6944
fi
 
6945
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6946
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6947
else
 
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
 
6952
/* confdefs.h.  */
 
6953
_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>
 
6959
_ACEOF
 
6960
rm -f conftest.$ac_objext
 
6961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6962
  (eval $ac_compile) 2>conftest.er1
 
6963
  ac_status=$?
 
6964
  grep -v '^ *+' conftest.er1 >conftest.err
 
6965
  rm -f conftest.er1
 
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
 
6971
  (eval $ac_try) 2>&5
 
6972
  ac_status=$?
 
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
 
6977
  (eval $ac_try) 2>&5
 
6978
  ac_status=$?
 
6979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6980
  (exit $ac_status); }; }; then
 
6981
  ac_header_compiler=yes
 
6982
else
 
6983
  echo "$as_me: failed program was:" >&5
 
6984
sed 's/^/| /' conftest.$ac_ext >&5
 
6985
 
 
6986
ac_header_compiler=no
 
6987
fi
 
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
 
6991
 
 
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
 
6996
/* confdefs.h.  */
 
6997
_ACEOF
 
6998
cat confdefs.h >>conftest.$ac_ext
 
6999
cat >>conftest.$ac_ext <<_ACEOF
 
7000
/* end confdefs.h.  */
 
7001
#include <$ac_header>
 
7002
_ACEOF
 
7003
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7004
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7005
  ac_status=$?
 
7006
  grep -v '^ *+' conftest.er1 >conftest.err
 
7007
  rm -f conftest.er1
 
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
 
7014
  else
 
7015
    ac_cpp_err=
 
7016
  fi
 
7017
else
 
7018
  ac_cpp_err=yes
 
7019
fi
 
7020
if test -z "$ac_cpp_err"; then
 
7021
  ac_header_preproc=yes
 
7022
else
 
7023
  echo "$as_me: failed program was:" >&5
 
7024
sed 's/^/| /' conftest.$ac_ext >&5
 
7025
 
 
7026
  ac_header_preproc=no
 
7027
fi
 
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
 
7031
 
 
7032
# So?  What about this header?
 
7033
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7034
  yes:no: )
 
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
 
7040
    ;;
 
7041
  no: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;}
 
7054
    (
 
7055
      cat <<\_ASBOX
 
7056
## ------------------------------------------ ##
 
7057
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7058
## ------------------------------------------ ##
 
7059
_ASBOX
 
7060
    ) |
 
7061
      sed "s/^/$as_me: WARNING:     /" >&2
 
7062
    ;;
 
7063
esac
 
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
 
7068
else
 
7069
  eval "$as_ac_Header=\$ac_header_preproc"
 
7070
fi
 
7071
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7072
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7073
 
 
7074
fi
 
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
 
7078
_ACEOF
 
7079
 
 
7080
fi
 
7081
 
 
7082
done
 
7083
 
 
7084
 
 
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
 
7090
else
 
7091
  cat >conftest.$ac_ext <<_ACEOF
 
7092
/* confdefs.h.  */
 
7093
_ACEOF
 
7094
cat confdefs.h >>conftest.$ac_ext
 
7095
cat >>conftest.$ac_ext <<_ACEOF
 
7096
/* end confdefs.h.  */
 
7097
 
 
7098
int
 
7099
main ()
 
7100
{
 
7101
/* FIXME: Include the comments suggested by Paul. */
 
7102
#ifndef __cplusplus
 
7103
  /* Ultrix mips cc rejects this.  */
 
7104
  typedef int charset[2];
 
7105
  const charset x;
 
7106
  /* SunOS 4.1.1 cc rejects this.  */
 
7107
  char const *const *ccp;
 
7108
  char **p;
 
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
 
7115
     expression */
 
7116
  const char *g = "string";
 
7117
  ccp = &g + (g ? g-g : 0);
 
7118
  /* HPUX 7.0 cc rejects these. */
 
7119
  ++ccp;
 
7120
  p = (char**) ccp;
 
7121
  ccp = (char const *const *) p;
 
7122
  { /* SCO 3.2v4 cc rejects this.  */
 
7123
    char *t;
 
7124
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
7125
 
 
7126
    *t++ = 0;
 
7127
  }
 
7128
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
7129
    int x[] = {25, 17};
 
7130
    const int *foo = &x[0];
 
7131
    ++foo;
 
7132
  }
 
7133
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
7134
    typedef const int *iptr;
 
7135
    iptr p = 0;
 
7136
    ++p;
 
7137
  }
 
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;
 
7142
  }
 
7143
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
7144
    const int foo = 10;
 
7145
  }
 
7146
#endif
 
7147
 
 
7148
  ;
 
7149
  return 0;
 
7150
}
 
7151
_ACEOF
 
7152
rm -f conftest.$ac_objext
 
7153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7154
  (eval $ac_compile) 2>conftest.er1
 
7155
  ac_status=$?
 
7156
  grep -v '^ *+' conftest.er1 >conftest.err
 
7157
  rm -f conftest.er1
 
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
 
7163
  (eval $ac_try) 2>&5
 
7164
  ac_status=$?
 
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
 
7169
  (eval $ac_try) 2>&5
 
7170
  ac_status=$?
 
7171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7172
  (exit $ac_status); }; }; then
 
7173
  ac_cv_c_const=yes
 
7174
else
 
7175
  echo "$as_me: failed program was:" >&5
 
7176
sed 's/^/| /' conftest.$ac_ext >&5
 
7177
 
 
7178
ac_cv_c_const=no
 
7179
fi
 
7180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7181
fi
 
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
 
7185
 
 
7186
cat >>confdefs.h <<\_ACEOF
 
7187
#define const
 
7188
_ACEOF
 
7189
 
 
7190
fi
 
7191
 
 
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
 
7196
else
 
7197
  cat >conftest.$ac_ext <<_ACEOF
 
7198
/* confdefs.h.  */
 
7199
_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>
 
7205
#include <time.h>
 
7206
 
 
7207
int
 
7208
main ()
 
7209
{
 
7210
if ((struct tm *) 0)
 
7211
return 0;
 
7212
  ;
 
7213
  return 0;
 
7214
}
 
7215
_ACEOF
 
7216
rm -f conftest.$ac_objext
 
7217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7218
  (eval $ac_compile) 2>conftest.er1
 
7219
  ac_status=$?
 
7220
  grep -v '^ *+' conftest.er1 >conftest.err
 
7221
  rm -f conftest.er1
 
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
 
7227
  (eval $ac_try) 2>&5
 
7228
  ac_status=$?
 
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
 
7233
  (eval $ac_try) 2>&5
 
7234
  ac_status=$?
 
7235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7236
  (exit $ac_status); }; }; then
 
7237
  ac_cv_header_time=yes
 
7238
else
 
7239
  echo "$as_me: failed program was:" >&5
 
7240
sed 's/^/| /' conftest.$ac_ext >&5
 
7241
 
 
7242
ac_cv_header_time=no
 
7243
fi
 
7244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7245
fi
 
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
 
7249
 
 
7250
cat >>confdefs.h <<\_ACEOF
 
7251
#define TIME_WITH_SYS_TIME 1
 
7252
_ACEOF
 
7253
 
 
7254
fi
 
7255
 
 
7256
 
 
7257
# Checks for library functions.
 
7258
 
 
7259
 
 
7260
 
 
7261
 
 
7262
 
 
7263
for ac_func in floor gettimeofday memset pow sqrt
 
7264
do
 
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
 
7270
else
 
7271
  cat >conftest.$ac_ext <<_ACEOF
 
7272
/* confdefs.h.  */
 
7273
_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
 
7280
 
 
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.  */
 
7285
 
 
7286
#ifdef __STDC__
 
7287
# include <limits.h>
 
7288
#else
 
7289
# include <assert.h>
 
7290
#endif
 
7291
 
 
7292
#undef $ac_func
 
7293
 
 
7294
/* Override any gcc2 internal prototype to avoid an error.  */
 
7295
#ifdef __cplusplus
 
7296
extern "C"
 
7297
{
 
7298
#endif
 
7299
/* We use char because int might match the return type of a gcc2
 
7300
   builtin and then its argument prototype would still apply.  */
 
7301
char $ac_func ();
 
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)
 
7306
choke me
 
7307
#else
 
7308
char (*f) () = $ac_func;
 
7309
#endif
 
7310
#ifdef __cplusplus
 
7311
}
 
7312
#endif
 
7313
 
 
7314
int
 
7315
main ()
 
7316
{
 
7317
return f != $ac_func;
 
7318
  ;
 
7319
  return 0;
 
7320
}
 
7321
_ACEOF
 
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
 
7325
  ac_status=$?
 
7326
  grep -v '^ *+' conftest.er1 >conftest.err
 
7327
  rm -f conftest.er1
 
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
 
7333
  (eval $ac_try) 2>&5
 
7334
  ac_status=$?
 
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
 
7339
  (eval $ac_try) 2>&5
 
7340
  ac_status=$?
 
7341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7342
  (exit $ac_status); }; }; then
 
7343
  eval "$as_ac_var=yes"
 
7344
else
 
7345
  echo "$as_me: failed program was:" >&5
 
7346
sed 's/^/| /' conftest.$ac_ext >&5
 
7347
 
 
7348
eval "$as_ac_var=no"
 
7349
fi
 
7350
rm -f conftest.err conftest.$ac_objext \
 
7351
      conftest$ac_exeext conftest.$ac_ext
 
7352
fi
 
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
 
7358
_ACEOF
 
7359
 
 
7360
fi
 
7361
done
 
7362
 
 
7363
 
 
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.
 
7371
#
 
7372
# config.status only pays attention to the cache file if you give it
 
7373
# the --recheck option to rerun configure.
 
7374
#
 
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
 
7377
# following values.
 
7378
 
 
7379
_ACEOF
 
7380
 
 
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.
 
7386
{
 
7387
  (set) 2>&1 |
 
7388
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
7389
    *ac_space=\ *)
 
7390
      # `set' does not quote correctly, so add quotes (double-quote
 
7391
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7392
      sed -n \
 
7393
        "s/'/'\\\\''/g;
 
7394
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
7395
      ;;
 
7396
    *)
 
7397
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
7398
      sed -n \
 
7399
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
7400
      ;;
 
7401
    esac;
 
7402
} |
 
7403
  sed '
 
7404
     t clear
 
7405
     : clear
 
7406
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
7407
     t end
 
7408
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
7409
     : end' >>confcache
 
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
 
7414
  else
 
7415
    echo "not updating unwritable cache $cache_file"
 
7416
  fi
 
7417
fi
 
7418
rm -f confcache
 
7419
 
 
7420
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
7421
# Let make expand exec_prefix.
 
7422
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
7423
 
 
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}:*/:/;
 
7432
s/:*@srcdir@:*/:/;
 
7433
s/^\([^=]*=[     ]*\):*/\1/;
 
7434
s/:*$//;
 
7435
s/^[^=]*=[       ]*$//;
 
7436
}'
 
7437
fi
 
7438
 
 
7439
# Transform confdefs.h into DEFS.
 
7440
# Protect against shell expansion while executing Makefile rules.
 
7441
# Protect against Makefile macro expansion.
 
7442
#
 
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
 
7447
t clear
 
7448
: clear
 
7449
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
7450
t quote
 
7451
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
7452
t quote
 
7453
d
 
7454
: quote
 
7455
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
7456
s,\[,\\&,g
 
7457
s,\],\\&,g
 
7458
s,\$,$$,g
 
7459
p
 
7460
_ACEOF
 
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
 
7466
# would break.
 
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
 
7470
 
 
7471
 
 
7472
ac_libobjs=
 
7473
ac_ltlibobjs=
 
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$//'`
 
7478
  # 2. Add them.
 
7479
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
7480
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
7481
done
 
7482
LIBOBJS=$ac_libobjs
 
7483
 
 
7484
LTLIBOBJS=$ac_ltlibobjs
 
7485
 
 
7486
 
 
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; }; }
 
7493
fi
 
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; }; }
 
7500
fi
 
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; }; }
 
7507
fi
 
7508
 
 
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
 
7515
#! $SHELL
 
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.
 
7520
 
 
7521
debug=false
 
7522
ac_cs_recheck=false
 
7523
ac_cs_silent=false
 
7524
SHELL=\${CONFIG_SHELL-$SHELL}
 
7525
_ACEOF
 
7526
 
 
7527
cat >>$CONFIG_STATUS <<\_ACEOF
 
7528
## --------------------- ##
 
7529
## M4sh Initialization.  ##
 
7530
## --------------------- ##
 
7531
 
 
7532
# Be Bourne compatible
 
7533
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
7534
  emulate sh
 
7535
  NULLCMD=:
 
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
 
7540
  set -o posix
 
7541
fi
 
7542
DUALCASE=1; export DUALCASE # for MKS sh
 
7543
 
 
7544
# Support unset when possible.
 
7545
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7546
  as_unset=unset
 
7547
else
 
7548
  as_unset=false
 
7549
fi
 
7550
 
 
7551
 
 
7552
# Work around bugs in pre-3.0 UWIN ksh.
 
7553
$as_unset ENV MAIL MAILPATH
 
7554
PS1='$ '
 
7555
PS2='> '
 
7556
PS4='+ '
 
7557
 
 
7558
# NLS nuisances.
 
7559
for as_var in \
 
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
 
7563
do
 
7564
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
7565
    eval $as_var=C; export $as_var
 
7566
  else
 
7567
    $as_unset $as_var
 
7568
  fi
 
7569
done
 
7570
 
 
7571
# Required to use basename.
 
7572
if expr a : '\(a\)' >/dev/null 2>&1; then
 
7573
  as_expr=expr
 
7574
else
 
7575
  as_expr=false
 
7576
fi
 
7577
 
 
7578
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
7579
  as_basename=basename
 
7580
else
 
7581
  as_basename=false
 
7582
fi
 
7583
 
 
7584
 
 
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 ||
 
7591
echo X/"$0" |
 
7592
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
7593
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
7594
          /^X\/\(\/\).*/{ s//\1/; q; }
 
7595
          s/.*/./; q'`
 
7596
 
 
7597
 
 
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
 
7605
 
 
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
 
7610
  chmod +x conf$$.sh
 
7611
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7612
    PATH_SEPARATOR=';'
 
7613
  else
 
7614
    PATH_SEPARATOR=:
 
7615
  fi
 
7616
  rm -f conf$$.sh
 
7617
fi
 
7618
 
 
7619
 
 
7620
  as_lineno_1=$LINENO
 
7621
  as_lineno_2=$LINENO
 
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
 
7626
  # relative or not.
 
7627
  case $0 in
 
7628
    *[\\/]* ) as_myself=$0 ;;
 
7629
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7630
for as_dir in $PATH
 
7631
do
 
7632
  IFS=$as_save_IFS
 
7633
  test -z "$as_dir" && as_dir=.
 
7634
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
7635
done
 
7636
 
 
7637
       ;;
 
7638
  esac
 
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
 
7642
    as_myself=$0
 
7643
  fi
 
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; }; }
 
7648
  fi
 
7649
  case $CONFIG_SHELL in
 
7650
  '')
 
7651
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7652
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
7653
do
 
7654
  IFS=$as_save_IFS
 
7655
  test -z "$as_dir" && as_dir=.
 
7656
  for as_base in sh bash ksh sh5; do
 
7657
         case $as_dir in
 
7658
         /*)
 
7659
           if ("$as_dir/$as_base" -c '
 
7660
  as_lineno_1=$LINENO
 
7661
  as_lineno_2=$LINENO
 
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
 
7668
             export CONFIG_SHELL
 
7669
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
7670
           fi;;
 
7671
         esac
 
7672
       done
 
7673
done
 
7674
;;
 
7675
  esac
 
7676
 
 
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 |
 
7686
    sed '
 
7687
      N
 
7688
      s,$,-,
 
7689
      : loop
 
7690
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
7691
      t loop
 
7692
      s,-$,,
 
7693
      s,^['$as_cr_digits']*\n,,
 
7694
    ' >$as_me.lineno &&
 
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; }; }
 
7699
 
 
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).
 
7703
  . ./$as_me.lineno
 
7704
  # Exit status is that of the last command.
 
7705
  exit
 
7706
}
 
7707
 
 
7708
 
 
7709
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
7710
  *c*,-n*) ECHO_N= ECHO_C='
 
7711
' ECHO_T='      ' ;;
 
7712
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
7713
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
7714
esac
 
7715
 
 
7716
if expr a : '\(a\)' >/dev/null 2>&1; then
 
7717
  as_expr=expr
 
7718
else
 
7719
  as_expr=false
 
7720
fi
 
7721
 
 
7722
rm -f conf$$ conf$$.exe conf$$.file
 
7723
echo >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
 
7729
    as_ln_s='cp -p'
 
7730
  else
 
7731
    as_ln_s='ln -s'
 
7732
  fi
 
7733
elif ln conf$$.file conf$$ 2>/dev/null; then
 
7734
  as_ln_s=ln
 
7735
else
 
7736
  as_ln_s='cp -p'
 
7737
fi
 
7738
rm -f conf$$ conf$$.exe conf$$.file
 
7739
 
 
7740
if mkdir -p . 2>/dev/null; then
 
7741
  as_mkdir_p=:
 
7742
else
 
7743
  test -d ./-p && rmdir ./-p
 
7744
  as_mkdir_p=false
 
7745
fi
 
7746
 
 
7747
as_executable_p="test -f"
 
7748
 
 
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'"
 
7751
 
 
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'"
 
7754
 
 
7755
 
 
7756
# IFS
 
7757
# We need space, tab and new line, in precisely that order.
 
7758
as_nl='
 
7759
'
 
7760
IFS="   $as_nl"
 
7761
 
 
7762
# CDPATH.
 
7763
$as_unset CDPATH
 
7764
 
 
7765
exec 6>&1
 
7766
 
 
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.
 
7770
exec 5>>config.log
 
7771
{
 
7772
  echo
 
7773
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
7774
## Running $as_me. ##
 
7775
_ASBOX
 
7776
} >&5
 
7777
cat >&5 <<_CSEOF
 
7778
 
 
7779
This file was extended by $as_me, which was
 
7780
generated by GNU Autoconf 2.59.  Invocation command line was
 
7781
 
 
7782
  CONFIG_FILES    = $CONFIG_FILES
 
7783
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
7784
  CONFIG_LINKS    = $CONFIG_LINKS
 
7785
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
7786
  $ $0 $@
 
7787
 
 
7788
_CSEOF
 
7789
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
7790
echo >&5
 
7791
_ACEOF
 
7792
 
 
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
 
7796
fi
 
7797
 
 
7798
if test -n "$ac_config_headers"; then
 
7799
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
7800
fi
 
7801
 
 
7802
if test -n "$ac_config_links"; then
 
7803
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
7804
fi
 
7805
 
 
7806
if test -n "$ac_config_commands"; then
 
7807
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
7808
fi
 
7809
 
 
7810
cat >>$CONFIG_STATUS <<\_ACEOF
 
7811
 
 
7812
ac_cs_usage="\
 
7813
\`$as_me' instantiates files from templates according to the
 
7814
current configuration.
 
7815
 
 
7816
Usage: $0 [OPTIONS] [FILE]...
 
7817
 
 
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
 
7825
 
 
7826
Configuration files:
 
7827
$config_files
 
7828
 
 
7829
Configuration commands:
 
7830
$config_commands
 
7831
 
 
7832
Report bugs to <bug-autoconf@gnu.org>."
 
7833
_ACEOF
 
7834
 
 
7835
cat >>$CONFIG_STATUS <<_ACEOF
 
7836
ac_cs_version="\\
 
7837
config.status
 
7838
configured by $0, generated by GNU Autoconf 2.59,
 
7839
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
7840
 
 
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."
 
7844
srcdir=$srcdir
 
7845
INSTALL="$INSTALL"
 
7846
_ACEOF
 
7847
 
 
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.
 
7851
ac_need_defaults=:
 
7852
while test $# != 0
 
7853
do
 
7854
  case $1 in
 
7855
  --*=*)
 
7856
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
7857
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
7858
    ac_shift=:
 
7859
    ;;
 
7860
  -*)
 
7861
    ac_option=$1
 
7862
    ac_optarg=$2
 
7863
    ac_shift=shift
 
7864
    ;;
 
7865
  *) # This is not an option, so the user has probably given explicit
 
7866
     # arguments.
 
7867
     ac_option=$1
 
7868
     ac_need_defaults=false;;
 
7869
  esac
 
7870
 
 
7871
  case $ac_option in
 
7872
  # Handling of the options.
 
7873
_ACEOF
 
7874
cat >>$CONFIG_STATUS <<\_ACEOF
 
7875
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
7876
    ac_cs_recheck=: ;;
 
7877
  --version | --vers* | -V )
 
7878
    echo "$ac_cs_version"; exit 0 ;;
 
7879
  --he | --h)
 
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 )
 
7889
    debug=: ;;
 
7890
  --file | --fil | --fi | --f )
 
7891
    $ac_shift
 
7892
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
7893
    ac_need_defaults=false;;
 
7894
  --header | --heade | --head | --hea )
 
7895
    $ac_shift
 
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)
 
7900
    ac_cs_silent=: ;;
 
7901
 
 
7902
  # This is an error.
 
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; }; } ;;
 
7908
 
 
7909
  *) ac_config_targets="$ac_config_targets $1" ;;
 
7910
 
 
7911
  esac
 
7912
  shift
 
7913
done
 
7914
 
 
7915
ac_configure_extra_args=
 
7916
 
 
7917
if $ac_cs_silent; then
 
7918
  exec 6>/dev/null
 
7919
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
7920
fi
 
7921
 
 
7922
_ACEOF
 
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
 
7927
fi
 
7928
 
 
7929
_ACEOF
 
7930
 
 
7931
cat >>$CONFIG_STATUS <<_ACEOF
 
7932
#
 
7933
# INIT-COMMANDS section.
 
7934
#
 
7935
 
 
7936
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
7937
 
 
7938
_ACEOF
 
7939
 
 
7940
 
 
7941
 
 
7942
cat >>$CONFIG_STATUS <<\_ACEOF
 
7943
for ac_config_target in $ac_config_targets
 
7944
do
 
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; }; };;
 
7954
  esac
 
7955
done
 
7956
 
 
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
 
7964
fi
 
7965
 
 
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.
 
7970
$debug ||
 
7971
{
 
7972
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
7973
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
7974
}
 
7975
 
 
7976
# Create a (secure) tmp directory for tmp files.
 
7977
 
 
7978
{
 
7979
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
7980
  test -n "$tmp" && test -d "$tmp"
 
7981
}  ||
 
7982
{
 
7983
  tmp=./confstat$$-$RANDOM
 
7984
  (umask 077 && mkdir $tmp)
 
7985
} ||
 
7986
{
 
7987
   echo "$me: cannot create a temporary directory in ." >&2
 
7988
   { (exit 1); exit 1; }
 
7989
}
 
7990
 
 
7991
_ACEOF
 
7992
 
 
7993
cat >>$CONFIG_STATUS <<_ACEOF
 
7994
 
 
7995
#
 
7996
# CONFIG_FILES section.
 
7997
#
 
7998
 
 
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
 
8030
s,@DEFS@,$DEFS,;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
 
8034
s,@LIBS@,$LIBS,;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
 
8051
s,@AWK@,$AWK,;t t
 
8052
s,@SET_MAKE@,$SET_MAKE,;t t
 
8053
s,@am__leading_dot@,$am__leading_dot,;t t
 
8054
s,@CXX@,$CXX,;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
 
8070
s,@CC@,$CC,;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
 
8076
s,@CPP@,$CPP,;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
 
8085
s,@host@,$host,;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
 
8099
CEOF
 
8100
 
 
8101
_ACEOF
 
8102
 
 
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.
 
8106
  ac_max_sed_lines=48
 
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.
 
8110
  ac_more_lines=:
 
8111
  ac_sed_cmds=
 
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
 
8115
    else
 
8116
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
8117
    fi
 
8118
    if test ! -s $tmp/subs.frag; then
 
8119
      ac_more_lines=false
 
8120
    else
 
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.
 
8125
      (echo ':t
 
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"
 
8129
      else
 
8130
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
8131
      fi
 
8132
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
8133
      ac_beg=$ac_end
 
8134
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
8135
    fi
 
8136
  done
 
8137
  if test -z "$ac_sed_cmds"; then
 
8138
    ac_sed_cmds=cat
 
8139
  fi
 
8140
fi # test -n "$CONFIG_FILES"
 
8141
 
 
8142
_ACEOF
 
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".
 
8146
  case $ac_file in
 
8147
  - | *:- | *:-:* ) # input from stdin
 
8148
        cat >$tmp/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 ;;
 
8154
  esac
 
8155
 
 
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 ||
 
8163
echo X"$ac_file" |
 
8164
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8165
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8166
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8167
          /^X\(\/\).*/{ s//\1/; q; }
 
8168
          s/.*/./; q'`
 
8169
  { if $as_mkdir_p; then
 
8170
    mkdir -p "$ac_dir"
 
8171
  else
 
8172
    as_dir="$ac_dir"
 
8173
    as_dirs=
 
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 ||
 
8182
echo X"$as_dir" |
 
8183
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8184
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8185
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8186
          /^X\(\/\).*/{ s//\1/; q; }
 
8187
          s/.*/./; q'`
 
8188
    done
 
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; }; }; }
 
8193
 
 
8194
  ac_builddir=.
 
8195
 
 
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'`
 
8200
else
 
8201
  ac_dir_suffix= ac_top_builddir=
 
8202
fi
 
8203
 
 
8204
case $srcdir in
 
8205
  .)  # No --srcdir option.  We are building in place.
 
8206
    ac_srcdir=.
 
8207
    if test -z "$ac_top_builddir"; then
 
8208
       ac_top_srcdir=.
 
8209
    else
 
8210
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
8211
    fi ;;
 
8212
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
8213
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8214
    ac_top_srcdir=$srcdir ;;
 
8215
  *) # Relative path.
 
8216
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
8217
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
8218
esac
 
8219
 
 
8220
# Do not use `cd foo && pwd` to compute absolute paths, because
 
8221
# the directories may not exist.
 
8222
case `pwd` in
 
8223
.) ac_abs_builddir="$ac_dir";;
 
8224
*)
 
8225
  case "$ac_dir" in
 
8226
  .) ac_abs_builddir=`pwd`;;
 
8227
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
8228
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
8229
  esac;;
 
8230
esac
 
8231
case $ac_abs_builddir in
 
8232
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
8233
*)
 
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}.;;
 
8238
  esac;;
 
8239
esac
 
8240
case $ac_abs_builddir in
 
8241
.) ac_abs_srcdir=$ac_srcdir;;
 
8242
*)
 
8243
  case $ac_srcdir in
 
8244
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
8245
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
8246
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
8247
  esac;;
 
8248
esac
 
8249
case $ac_abs_builddir in
 
8250
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
8251
*)
 
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;;
 
8256
  esac;;
 
8257
esac
 
8258
 
 
8259
 
 
8260
  case $INSTALL in
 
8261
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
8262
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
8263
  esac
 
8264
 
 
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
 
8269
    configure_input=
 
8270
  else
 
8271
    configure_input="$ac_file.  "
 
8272
  fi
 
8273
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
8274
                                     sed 's,.*/,,'` by configure."
 
8275
 
 
8276
  # First look for the input files in the build tree, otherwise in the
 
8277
  # src tree.
 
8278
  ac_file_inputs=`IFS=:
 
8279
    for f in $ac_file_in; do
 
8280
      case $f in
 
8281
      -) echo $tmp/stdin ;;
 
8282
      [\\/$]*)
 
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; }; }
 
8287
         echo "$f";;
 
8288
      *) # Relative
 
8289
         if test -f "$f"; then
 
8290
           # Build tree
 
8291
           echo "$f"
 
8292
         elif test -f "$srcdir/$f"; then
 
8293
           # Source tree
 
8294
           echo "$srcdir/$f"
 
8295
         else
 
8296
           # /dev/null tree
 
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; }; }
 
8300
         fi;;
 
8301
      esac
 
8302
    done` || { (exit 1); exit 1; }
 
8303
 
 
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;}
 
8307
    rm -f "$ac_file"
 
8308
  fi
 
8309
_ACEOF
 
8310
cat >>$CONFIG_STATUS <<_ACEOF
 
8311
  sed "$ac_vpsub
 
8312
$extrasub
 
8313
_ACEOF
 
8314
cat >>$CONFIG_STATUS <<\_ACEOF
 
8315
:t
 
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
 
8328
  rm -f $tmp/stdin
 
8329
  if test x"$ac_file" != x-; then
 
8330
    mv $tmp/out $ac_file
 
8331
  else
 
8332
    cat $tmp/out
 
8333
    rm -f $tmp/out
 
8334
  fi
 
8335
 
 
8336
done
 
8337
_ACEOF
 
8338
cat >>$CONFIG_STATUS <<\_ACEOF
 
8339
 
 
8340
#
 
8341
# CONFIG_COMMANDS section.
 
8342
#
 
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 ||
 
8352
echo X"$ac_dest" |
 
8353
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8354
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8355
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8356
          /^X\(\/\).*/{ s//\1/; q; }
 
8357
          s/.*/./; q'`
 
8358
  { if $as_mkdir_p; then
 
8359
    mkdir -p "$ac_dir"
 
8360
  else
 
8361
    as_dir="$ac_dir"
 
8362
    as_dirs=
 
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 ||
 
8371
echo X"$as_dir" |
 
8372
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8373
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8374
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8375
          /^X\(\/\).*/{ s//\1/; q; }
 
8376
          s/.*/./; q'`
 
8377
    done
 
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; }; }; }
 
8382
 
 
8383
  ac_builddir=.
 
8384
 
 
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'`
 
8389
else
 
8390
  ac_dir_suffix= ac_top_builddir=
 
8391
fi
 
8392
 
 
8393
case $srcdir in
 
8394
  .)  # No --srcdir option.  We are building in place.
 
8395
    ac_srcdir=.
 
8396
    if test -z "$ac_top_builddir"; then
 
8397
       ac_top_srcdir=.
 
8398
    else
 
8399
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
8400
    fi ;;
 
8401
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
8402
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8403
    ac_top_srcdir=$srcdir ;;
 
8404
  *) # Relative path.
 
8405
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
8406
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
8407
esac
 
8408
 
 
8409
# Do not use `cd foo && pwd` to compute absolute paths, because
 
8410
# the directories may not exist.
 
8411
case `pwd` in
 
8412
.) ac_abs_builddir="$ac_dir";;
 
8413
*)
 
8414
  case "$ac_dir" in
 
8415
  .) ac_abs_builddir=`pwd`;;
 
8416
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
8417
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
8418
  esac;;
 
8419
esac
 
8420
case $ac_abs_builddir in
 
8421
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
8422
*)
 
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}.;;
 
8427
  esac;;
 
8428
esac
 
8429
case $ac_abs_builddir in
 
8430
.) ac_abs_srcdir=$ac_srcdir;;
 
8431
*)
 
8432
  case $ac_srcdir in
 
8433
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
8434
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
8435
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
8436
  esac;;
 
8437
esac
 
8438
case $ac_abs_builddir in
 
8439
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
8440
*)
 
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;;
 
8445
  esac;;
 
8446
esac
 
8447
 
 
8448
 
 
8449
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
8450
echo "$as_me: executing $ac_dest commands" >&6;}
 
8451
  case $ac_dest in
 
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 ||
 
8468
echo X"$mf" |
 
8469
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8470
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8471
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8472
          /^X\(\/\).*/{ s//\1/; q; }
 
8473
          s/.*/./; q'`
 
8474
  else
 
8475
    continue
 
8476
  fi
 
8477
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
8478
  # Extract the definition of DEP_FILES from the Makefile without
 
8479
  # running `make'.
 
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 = .*\\\\$/ {
 
8489
      s/^DEP_FILES = //
 
8490
      :loop
 
8491
        s/\\\\$//
 
8492
        p
 
8493
        n
 
8494
        /\\\\$/ b loop
 
8495
      p
 
8496
    }
 
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 ||
 
8507
echo X"$file" |
 
8508
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8509
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8510
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8511
          /^X\(\/\).*/{ s//\1/; q; }
 
8512
          s/.*/./; q'`
 
8513
    { if $as_mkdir_p; then
 
8514
    mkdir -p $dirpart/$fdir
 
8515
  else
 
8516
    as_dir=$dirpart/$fdir
 
8517
    as_dirs=
 
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 ||
 
8526
echo X"$as_dir" |
 
8527
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
8528
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
8529
          /^X\(\/\/\)$/{ s//\1/; q; }
 
8530
          /^X\(\/\).*/{ s//\1/; q; }
 
8531
          s/.*/./; q'`
 
8532
    done
 
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; }; }; }
 
8537
 
 
8538
    # echo "creating $dirpart/$file"
 
8539
    echo '# dummy' > "$dirpart/$file"
 
8540
  done
 
8541
done
 
8542
 ;;
 
8543
  esac
 
8544
done
 
8545
_ACEOF
 
8546
 
 
8547
cat >>$CONFIG_STATUS <<\_ACEOF
 
8548
 
 
8549
{ (exit 0); exit 0; }
 
8550
_ACEOF
 
8551
chmod +x $CONFIG_STATUS
 
8552
ac_clean_files=$ac_clean_files_save
 
8553
 
 
8554
 
 
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
 
8564
  ac_cs_success=:
 
8565
  ac_config_status_args=
 
8566
  test "$silent" = yes &&
 
8567
    ac_config_status_args="$ac_config_status_args --quiet"
 
8568
  exec 5>/dev/null
 
8569
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
8570
  exec 5>>config.log
 
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; }
 
8574
fi
 
8575