~ubuntu-branches/ubuntu/oneiric/bumprace/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Christian T. Steigies
  • Date: 2005-04-13 22:50:44 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050413225044-t1anrzoaigie8i3r
Tags: 1.4.6-4
really, really fix buffer overflow by applying patches in configure,
removing patches in clean target (closes: #302493)

Show diffs side-by-side

added added

removed removed

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