Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

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