~ubuntu-branches/ubuntu/trusty/advancecomp/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ozarowski
  • Date: 2006-05-13 21:15:49 UTC
  • Revision ID: james.westby@ubuntu.com-20060513211549-2vu7peis643ojcm5
Tags: upstream-1.15
ImportĀ upstreamĀ versionĀ 1.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for AdvanceCOMP 1.15.
 
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='AdvanceCOMP'
 
269
PACKAGE_TARNAME='advancecomp'
 
270
PACKAGE_VERSION='1.15'
 
271
PACKAGE_STRING='AdvanceCOMP 1.15'
 
272
PACKAGE_BUGREPORT=''
 
273
 
 
274
ac_unique_file="rezip.cc"
 
275
# Factoring default headers for most tests.
 
276
ac_includes_default="\
 
277
#include <stdio.h>
 
278
#if HAVE_SYS_TYPES_H
 
279
# include <sys/types.h>
 
280
#endif
 
281
#if HAVE_SYS_STAT_H
 
282
# include <sys/stat.h>
 
283
#endif
 
284
#if STDC_HEADERS
 
285
# include <stdlib.h>
 
286
# include <stddef.h>
 
287
#else
 
288
# if HAVE_STDLIB_H
 
289
#  include <stdlib.h>
 
290
# endif
 
291
#endif
 
292
#if HAVE_STRING_H
 
293
# if !STDC_HEADERS && HAVE_MEMORY_H
 
294
#  include <memory.h>
 
295
# endif
 
296
# include <string.h>
 
297
#endif
 
298
#if HAVE_STRINGS_H
 
299
# include <strings.h>
 
300
#endif
 
301
#if HAVE_INTTYPES_H
 
302
# include <inttypes.h>
 
303
#else
 
304
# if HAVE_STDINT_H
 
305
#  include <stdint.h>
 
306
# endif
 
307
#endif
 
308
#if HAVE_UNISTD_H
 
309
# include <unistd.h>
 
310
#endif"
 
311
 
 
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TAR GZIP GROFF COL CPP EGREP LIBOBJS LTLIBOBJS'
 
313
ac_subst_files=''
 
314
 
 
315
# Initialize some variables set by options.
 
316
ac_init_help=
 
317
ac_init_version=false
 
318
# The variables have the same names as the options, with
 
319
# dashes changed to underlines.
 
320
cache_file=/dev/null
 
321
exec_prefix=NONE
 
322
no_create=
 
323
no_recursion=
 
324
prefix=NONE
 
325
program_prefix=NONE
 
326
program_suffix=NONE
 
327
program_transform_name=s,x,x,
 
328
silent=
 
329
site=
 
330
srcdir=
 
331
verbose=
 
332
x_includes=NONE
 
333
x_libraries=NONE
 
334
 
 
335
# Installation directory options.
 
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
337
# and all the variables that are supposed to be based on exec_prefix
 
338
# by default will actually change.
 
339
# Use braces instead of parens because sh, perl, etc. also accept them.
 
340
bindir='${exec_prefix}/bin'
 
341
sbindir='${exec_prefix}/sbin'
 
342
libexecdir='${exec_prefix}/libexec'
 
343
datadir='${prefix}/share'
 
344
sysconfdir='${prefix}/etc'
 
345
sharedstatedir='${prefix}/com'
 
346
localstatedir='${prefix}/var'
 
347
libdir='${exec_prefix}/lib'
 
348
includedir='${prefix}/include'
 
349
oldincludedir='/usr/include'
 
350
infodir='${prefix}/info'
 
351
mandir='${prefix}/man'
 
352
 
 
353
ac_prev=
 
354
for ac_option
 
355
do
 
356
  # If the previous option needs an argument, assign it.
 
357
  if test -n "$ac_prev"; then
 
358
    eval "$ac_prev=\$ac_option"
 
359
    ac_prev=
 
360
    continue
 
361
  fi
 
362
 
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
364
 
 
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
366
 
 
367
  case $ac_option in
 
368
 
 
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
370
    ac_prev=bindir ;;
 
371
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
372
    bindir=$ac_optarg ;;
 
373
 
 
374
  -build | --build | --buil | --bui | --bu)
 
375
    ac_prev=build_alias ;;
 
376
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
377
    build_alias=$ac_optarg ;;
 
378
 
 
379
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
380
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
381
    ac_prev=cache_file ;;
 
382
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
383
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
384
    cache_file=$ac_optarg ;;
 
385
 
 
386
  --config-cache | -C)
 
387
    cache_file=config.cache ;;
 
388
 
 
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
390
    ac_prev=datadir ;;
 
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
392
  | --da=*)
 
393
    datadir=$ac_optarg ;;
 
394
 
 
395
  -disable-* | --disable-*)
 
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
397
    # Reject names that are not valid shell variable names.
 
398
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
399
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
400
   { (exit 1); exit 1; }; }
 
401
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
402
    eval "enable_$ac_feature=no" ;;
 
403
 
 
404
  -enable-* | --enable-*)
 
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
406
    # Reject names that are not valid shell variable names.
 
407
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
408
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
409
   { (exit 1); exit 1; }; }
 
410
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
411
    case $ac_option in
 
412
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
413
      *) ac_optarg=yes ;;
 
414
    esac
 
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
416
 
 
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
419
  | --exec | --exe | --ex)
 
420
    ac_prev=exec_prefix ;;
 
421
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
422
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
423
  | --exec=* | --exe=* | --ex=*)
 
424
    exec_prefix=$ac_optarg ;;
 
425
 
 
426
  -gas | --gas | --ga | --g)
 
427
    # Obsolete; use --with-gas.
 
428
    with_gas=yes ;;
 
429
 
 
430
  -help | --help | --hel | --he | -h)
 
431
    ac_init_help=long ;;
 
432
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
433
    ac_init_help=recursive ;;
 
434
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
435
    ac_init_help=short ;;
 
436
 
 
437
  -host | --host | --hos | --ho)
 
438
    ac_prev=host_alias ;;
 
439
  -host=* | --host=* | --hos=* | --ho=*)
 
440
    host_alias=$ac_optarg ;;
 
441
 
 
442
  -includedir | --includedir | --includedi | --included | --include \
 
443
  | --includ | --inclu | --incl | --inc)
 
444
    ac_prev=includedir ;;
 
445
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
446
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
447
    includedir=$ac_optarg ;;
 
448
 
 
449
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
450
    ac_prev=infodir ;;
 
451
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
452
    infodir=$ac_optarg ;;
 
453
 
 
454
  -libdir | --libdir | --libdi | --libd)
 
455
    ac_prev=libdir ;;
 
456
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
457
    libdir=$ac_optarg ;;
 
458
 
 
459
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
460
  | --libexe | --libex | --libe)
 
461
    ac_prev=libexecdir ;;
 
462
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
463
  | --libexe=* | --libex=* | --libe=*)
 
464
    libexecdir=$ac_optarg ;;
 
465
 
 
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
467
  | --localstate | --localstat | --localsta | --localst \
 
468
  | --locals | --local | --loca | --loc | --lo)
 
469
    ac_prev=localstatedir ;;
 
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
473
    localstatedir=$ac_optarg ;;
 
474
 
 
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
476
    ac_prev=mandir ;;
 
477
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
478
    mandir=$ac_optarg ;;
 
479
 
 
480
  -nfp | --nfp | --nf)
 
481
    # Obsolete; use --without-fp.
 
482
    with_fp=no ;;
 
483
 
 
484
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
485
  | --no-cr | --no-c | -n)
 
486
    no_create=yes ;;
 
487
 
 
488
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
489
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
490
    no_recursion=yes ;;
 
491
 
 
492
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
493
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
494
  | --oldin | --oldi | --old | --ol | --o)
 
495
    ac_prev=oldincludedir ;;
 
496
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
497
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
498
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
499
    oldincludedir=$ac_optarg ;;
 
500
 
 
501
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
502
    ac_prev=prefix ;;
 
503
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
504
    prefix=$ac_optarg ;;
 
505
 
 
506
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
507
  | --program-pre | --program-pr | --program-p)
 
508
    ac_prev=program_prefix ;;
 
509
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
510
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
511
    program_prefix=$ac_optarg ;;
 
512
 
 
513
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
514
  | --program-suf | --program-su | --program-s)
 
515
    ac_prev=program_suffix ;;
 
516
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
517
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
518
    program_suffix=$ac_optarg ;;
 
519
 
 
520
  -program-transform-name | --program-transform-name \
 
521
  | --program-transform-nam | --program-transform-na \
 
522
  | --program-transform-n | --program-transform- \
 
523
  | --program-transform | --program-transfor \
 
524
  | --program-transfo | --program-transf \
 
525
  | --program-trans | --program-tran \
 
526
  | --progr-tra | --program-tr | --program-t)
 
527
    ac_prev=program_transform_name ;;
 
528
  -program-transform-name=* | --program-transform-name=* \
 
529
  | --program-transform-nam=* | --program-transform-na=* \
 
530
  | --program-transform-n=* | --program-transform-=* \
 
531
  | --program-transform=* | --program-transfor=* \
 
532
  | --program-transfo=* | --program-transf=* \
 
533
  | --program-trans=* | --program-tran=* \
 
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
535
    program_transform_name=$ac_optarg ;;
 
536
 
 
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
538
  | -silent | --silent | --silen | --sile | --sil)
 
539
    silent=yes ;;
 
540
 
 
541
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
542
    ac_prev=sbindir ;;
 
543
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
544
  | --sbi=* | --sb=*)
 
545
    sbindir=$ac_optarg ;;
 
546
 
 
547
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
548
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
549
  | --sharedst | --shareds | --shared | --share | --shar \
 
550
  | --sha | --sh)
 
551
    ac_prev=sharedstatedir ;;
 
552
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
553
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
554
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
555
  | --sha=* | --sh=*)
 
556
    sharedstatedir=$ac_optarg ;;
 
557
 
 
558
  -site | --site | --sit)
 
559
    ac_prev=site ;;
 
560
  -site=* | --site=* | --sit=*)
 
561
    site=$ac_optarg ;;
 
562
 
 
563
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
564
    ac_prev=srcdir ;;
 
565
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
566
    srcdir=$ac_optarg ;;
 
567
 
 
568
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
569
  | --syscon | --sysco | --sysc | --sys | --sy)
 
570
    ac_prev=sysconfdir ;;
 
571
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
572
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
573
    sysconfdir=$ac_optarg ;;
 
574
 
 
575
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
576
    ac_prev=target_alias ;;
 
577
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
578
    target_alias=$ac_optarg ;;
 
579
 
 
580
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
581
    verbose=yes ;;
 
582
 
 
583
  -version | --version | --versio | --versi | --vers | -V)
 
584
    ac_init_version=: ;;
 
585
 
 
586
  -with-* | --with-*)
 
587
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
588
    # Reject names that are not valid shell variable names.
 
589
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
590
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
591
   { (exit 1); exit 1; }; }
 
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
593
    case $ac_option in
 
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
595
      *) ac_optarg=yes ;;
 
596
    esac
 
597
    eval "with_$ac_package='$ac_optarg'" ;;
 
598
 
 
599
  -without-* | --without-*)
 
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
601
    # Reject names that are not valid shell variable names.
 
602
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
603
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
604
   { (exit 1); exit 1; }; }
 
605
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
606
    eval "with_$ac_package=no" ;;
 
607
 
 
608
  --x)
 
609
    # Obsolete; use --with-x.
 
610
    with_x=yes ;;
 
611
 
 
612
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
613
  | --x-incl | --x-inc | --x-in | --x-i)
 
614
    ac_prev=x_includes ;;
 
615
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
616
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
617
    x_includes=$ac_optarg ;;
 
618
 
 
619
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
620
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
621
    ac_prev=x_libraries ;;
 
622
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
623
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
624
    x_libraries=$ac_optarg ;;
 
625
 
 
626
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
627
Try \`$0 --help' for more information." >&2
 
628
   { (exit 1); exit 1; }; }
 
629
    ;;
 
630
 
 
631
  *=*)
 
632
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
633
    # Reject names that are not valid shell variable names.
 
634
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
635
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
636
   { (exit 1); exit 1; }; }
 
637
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
638
    eval "$ac_envvar='$ac_optarg'"
 
639
    export $ac_envvar ;;
 
640
 
 
641
  *)
 
642
    # FIXME: should be removed in autoconf 3.0.
 
643
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
644
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
645
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
646
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
647
    ;;
 
648
 
 
649
  esac
 
650
done
 
651
 
 
652
if test -n "$ac_prev"; then
 
653
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
654
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
655
   { (exit 1); exit 1; }; }
 
656
fi
 
657
 
 
658
# Be sure to have absolute paths.
 
659
for ac_var in exec_prefix prefix
 
660
do
 
661
  eval ac_val=$`echo $ac_var`
 
662
  case $ac_val in
 
663
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
664
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
665
   { (exit 1); exit 1; }; };;
 
666
  esac
 
667
done
 
668
 
 
669
# Be sure to have absolute paths.
 
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
671
              localstatedir libdir includedir oldincludedir infodir mandir
 
672
do
 
673
  eval ac_val=$`echo $ac_var`
 
674
  case $ac_val in
 
675
    [\\/$]* | ?:[\\/]* ) ;;
 
676
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
677
   { (exit 1); exit 1; }; };;
 
678
  esac
 
679
done
 
680
 
 
681
# There might be people who depend on the old broken behavior: `$host'
 
682
# used to hold the argument of --host etc.
 
683
# FIXME: To remove some day.
 
684
build=$build_alias
 
685
host=$host_alias
 
686
target=$target_alias
 
687
 
 
688
# FIXME: To remove some day.
 
689
if test "x$host_alias" != x; then
 
690
  if test "x$build_alias" = x; then
 
691
    cross_compiling=maybe
 
692
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
693
    If a cross compiler is detected then cross compile mode will be used." >&2
 
694
  elif test "x$build_alias" != "x$host_alias"; then
 
695
    cross_compiling=yes
 
696
  fi
 
697
fi
 
698
 
 
699
ac_tool_prefix=
 
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
701
 
 
702
test "$silent" = yes && exec 6>/dev/null
 
703
 
 
704
 
 
705
# Find the source files, if location was not specified.
 
706
if test -z "$srcdir"; then
 
707
  ac_srcdir_defaulted=yes
 
708
  # Try the directory containing this script, then its parent.
 
709
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
711
         X"$0" : 'X\(//\)[^/]' \| \
 
712
         X"$0" : 'X\(//\)$' \| \
 
713
         X"$0" : 'X\(/\)' \| \
 
714
         .     : '\(.\)' 2>/dev/null ||
 
715
echo X"$0" |
 
716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
718
          /^X\(\/\/\)$/{ s//\1/; q; }
 
719
          /^X\(\/\).*/{ s//\1/; q; }
 
720
          s/.*/./; q'`
 
721
  srcdir=$ac_confdir
 
722
  if test ! -r $srcdir/$ac_unique_file; then
 
723
    srcdir=..
 
724
  fi
 
725
else
 
726
  ac_srcdir_defaulted=no
 
727
fi
 
728
if test ! -r $srcdir/$ac_unique_file; then
 
729
  if test "$ac_srcdir_defaulted" = yes; then
 
730
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
731
   { (exit 1); exit 1; }; }
 
732
  else
 
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
734
   { (exit 1); exit 1; }; }
 
735
  fi
 
736
fi
 
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
738
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
739
   { (exit 1); exit 1; }; }
 
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
741
ac_env_build_alias_set=${build_alias+set}
 
742
ac_env_build_alias_value=$build_alias
 
743
ac_cv_env_build_alias_set=${build_alias+set}
 
744
ac_cv_env_build_alias_value=$build_alias
 
745
ac_env_host_alias_set=${host_alias+set}
 
746
ac_env_host_alias_value=$host_alias
 
747
ac_cv_env_host_alias_set=${host_alias+set}
 
748
ac_cv_env_host_alias_value=$host_alias
 
749
ac_env_target_alias_set=${target_alias+set}
 
750
ac_env_target_alias_value=$target_alias
 
751
ac_cv_env_target_alias_set=${target_alias+set}
 
752
ac_cv_env_target_alias_value=$target_alias
 
753
ac_env_CC_set=${CC+set}
 
754
ac_env_CC_value=$CC
 
755
ac_cv_env_CC_set=${CC+set}
 
756
ac_cv_env_CC_value=$CC
 
757
ac_env_CFLAGS_set=${CFLAGS+set}
 
758
ac_env_CFLAGS_value=$CFLAGS
 
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_cv_env_CFLAGS_value=$CFLAGS
 
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
762
ac_env_LDFLAGS_value=$LDFLAGS
 
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
766
ac_env_CPPFLAGS_value=$CPPFLAGS
 
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_env_CXX_set=${CXX+set}
 
770
ac_env_CXX_value=$CXX
 
771
ac_cv_env_CXX_set=${CXX+set}
 
772
ac_cv_env_CXX_value=$CXX
 
773
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
774
ac_env_CXXFLAGS_value=$CXXFLAGS
 
775
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
776
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
777
ac_env_CPP_set=${CPP+set}
 
778
ac_env_CPP_value=$CPP
 
779
ac_cv_env_CPP_set=${CPP+set}
 
780
ac_cv_env_CPP_value=$CPP
 
781
 
 
782
#
 
783
# Report the --help message.
 
784
#
 
785
if test "$ac_init_help" = "long"; then
 
786
  # Omit some internal or obsolete options to make the list less imposing.
 
787
  # This message is too long to be a string in the A/UX 3.1 sh.
 
788
  cat <<_ACEOF
 
789
\`configure' configures AdvanceCOMP 1.15 to adapt to many kinds of systems.
 
790
 
 
791
Usage: $0 [OPTION]... [VAR=VALUE]...
 
792
 
 
793
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
794
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
795
 
 
796
Defaults for the options are specified in brackets.
 
797
 
 
798
Configuration:
 
799
  -h, --help              display this help and exit
 
800
      --help=short        display options specific to this package
 
801
      --help=recursive    display the short help of all the included packages
 
802
  -V, --version           display version information and exit
 
803
  -q, --quiet, --silent   do not print \`checking...' messages
 
804
      --cache-file=FILE   cache test results in FILE [disabled]
 
805
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
806
  -n, --no-create         do not create output files
 
807
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
808
 
 
809
_ACEOF
 
810
 
 
811
  cat <<_ACEOF
 
812
Installation directories:
 
813
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
814
                          [$ac_default_prefix]
 
815
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
816
                          [PREFIX]
 
817
 
 
818
By default, \`make install' will install all the files in
 
819
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
820
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
821
for instance \`--prefix=\$HOME'.
 
822
 
 
823
For better control, use the options below.
 
824
 
 
825
Fine tuning of the installation directories:
 
826
  --bindir=DIR           user executables [EPREFIX/bin]
 
827
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
828
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
829
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
830
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
831
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
832
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
833
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
834
  --includedir=DIR       C header files [PREFIX/include]
 
835
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
836
  --infodir=DIR          info documentation [PREFIX/info]
 
837
  --mandir=DIR           man documentation [PREFIX/man]
 
838
_ACEOF
 
839
 
 
840
  cat <<\_ACEOF
 
841
 
 
842
Program names:
 
843
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
844
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
845
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
846
 
 
847
System types:
 
848
  --build=BUILD     configure for building on BUILD [guessed]
 
849
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
850
_ACEOF
 
851
fi
 
852
 
 
853
if test -n "$ac_init_help"; then
 
854
  case $ac_init_help in
 
855
     short | recursive ) echo "Configuration of AdvanceCOMP 1.15:";;
 
856
   esac
 
857
  cat <<\_ACEOF
 
858
 
 
859
Optional Features:
 
860
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
861
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
862
  --enable-bzip2       Use the bzip2 compression
 
863
 
 
864
Some influential environment variables:
 
865
  CC          C compiler command
 
866
  CFLAGS      C compiler flags
 
867
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
868
              nonstandard directory <lib dir>
 
869
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
870
              headers in a nonstandard directory <include dir>
 
871
  CXX         C++ compiler command
 
872
  CXXFLAGS    C++ compiler flags
 
873
  CPP         C preprocessor
 
874
 
 
875
Use these variables to override the choices made by `configure' or to help
 
876
it to find libraries and programs with nonstandard names/locations.
 
877
 
 
878
_ACEOF
 
879
fi
 
880
 
 
881
if test "$ac_init_help" = "recursive"; then
 
882
  # If there are subdirs, report their specific --help.
 
883
  ac_popdir=`pwd`
 
884
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
885
    test -d $ac_dir || continue
 
886
    ac_builddir=.
 
887
 
 
888
if test "$ac_dir" != .; then
 
889
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
890
  # A "../" for each directory in $ac_dir_suffix.
 
891
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
892
else
 
893
  ac_dir_suffix= ac_top_builddir=
 
894
fi
 
895
 
 
896
case $srcdir in
 
897
  .)  # No --srcdir option.  We are building in place.
 
898
    ac_srcdir=.
 
899
    if test -z "$ac_top_builddir"; then
 
900
       ac_top_srcdir=.
 
901
    else
 
902
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
903
    fi ;;
 
904
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
905
    ac_srcdir=$srcdir$ac_dir_suffix;
 
906
    ac_top_srcdir=$srcdir ;;
 
907
  *) # Relative path.
 
908
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
909
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
910
esac
 
911
 
 
912
# Do not use `cd foo && pwd` to compute absolute paths, because
 
913
# the directories may not exist.
 
914
case `pwd` in
 
915
.) ac_abs_builddir="$ac_dir";;
 
916
*)
 
917
  case "$ac_dir" in
 
918
  .) ac_abs_builddir=`pwd`;;
 
919
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
920
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
921
  esac;;
 
922
esac
 
923
case $ac_abs_builddir in
 
924
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
925
*)
 
926
  case ${ac_top_builddir}. in
 
927
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
928
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
929
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
930
  esac;;
 
931
esac
 
932
case $ac_abs_builddir in
 
933
.) ac_abs_srcdir=$ac_srcdir;;
 
934
*)
 
935
  case $ac_srcdir in
 
936
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
937
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
938
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
939
  esac;;
 
940
esac
 
941
case $ac_abs_builddir in
 
942
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
943
*)
 
944
  case $ac_top_srcdir in
 
945
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
946
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
947
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
948
  esac;;
 
949
esac
 
950
 
 
951
    cd $ac_dir
 
952
    # Check for guested configure; otherwise get Cygnus style configure.
 
953
    if test -f $ac_srcdir/configure.gnu; then
 
954
      echo
 
955
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
956
    elif test -f $ac_srcdir/configure; then
 
957
      echo
 
958
      $SHELL $ac_srcdir/configure  --help=recursive
 
959
    elif test -f $ac_srcdir/configure.ac ||
 
960
           test -f $ac_srcdir/configure.in; then
 
961
      echo
 
962
      $ac_configure --help
 
963
    else
 
964
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
965
    fi
 
966
    cd $ac_popdir
 
967
  done
 
968
fi
 
969
 
 
970
test -n "$ac_init_help" && exit 0
 
971
if $ac_init_version; then
 
972
  cat <<\_ACEOF
 
973
AdvanceCOMP configure 1.15
 
974
generated by GNU Autoconf 2.59
 
975
 
 
976
Copyright (C) 2003 Free Software Foundation, Inc.
 
977
This configure script is free software; the Free Software Foundation
 
978
gives unlimited permission to copy, distribute and modify it.
 
979
_ACEOF
 
980
  exit 0
 
981
fi
 
982
exec 5>config.log
 
983
cat >&5 <<_ACEOF
 
984
This file contains any messages produced by compilers while
 
985
running configure, to aid debugging if configure makes a mistake.
 
986
 
 
987
It was created by AdvanceCOMP $as_me 1.15, which was
 
988
generated by GNU Autoconf 2.59.  Invocation command line was
 
989
 
 
990
  $ $0 $@
 
991
 
 
992
_ACEOF
 
993
{
 
994
cat <<_ASUNAME
 
995
## --------- ##
 
996
## Platform. ##
 
997
## --------- ##
 
998
 
 
999
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1000
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1001
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1002
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1003
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1004
 
 
1005
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1006
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1007
 
 
1008
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1009
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1010
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1011
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1012
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1013
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1014
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1015
 
 
1016
_ASUNAME
 
1017
 
 
1018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1019
for as_dir in $PATH
 
1020
do
 
1021
  IFS=$as_save_IFS
 
1022
  test -z "$as_dir" && as_dir=.
 
1023
  echo "PATH: $as_dir"
 
1024
done
 
1025
 
 
1026
} >&5
 
1027
 
 
1028
cat >&5 <<_ACEOF
 
1029
 
 
1030
 
 
1031
## ----------- ##
 
1032
## Core tests. ##
 
1033
## ----------- ##
 
1034
 
 
1035
_ACEOF
 
1036
 
 
1037
 
 
1038
# Keep a trace of the command line.
 
1039
# Strip out --no-create and --no-recursion so they do not pile up.
 
1040
# Strip out --silent because we don't want to record it for future runs.
 
1041
# Also quote any args containing shell meta-characters.
 
1042
# Make two passes to allow for proper duplicate-argument suppression.
 
1043
ac_configure_args=
 
1044
ac_configure_args0=
 
1045
ac_configure_args1=
 
1046
ac_sep=
 
1047
ac_must_keep_next=false
 
1048
for ac_pass in 1 2
 
1049
do
 
1050
  for ac_arg
 
1051
  do
 
1052
    case $ac_arg in
 
1053
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1054
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1055
    | -silent | --silent | --silen | --sile | --sil)
 
1056
      continue ;;
 
1057
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1058
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1059
    esac
 
1060
    case $ac_pass in
 
1061
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1062
    2)
 
1063
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1064
      if test $ac_must_keep_next = true; then
 
1065
        ac_must_keep_next=false # Got value, back to normal.
 
1066
      else
 
1067
        case $ac_arg in
 
1068
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1069
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1070
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1071
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1072
            case "$ac_configure_args0 " in
 
1073
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1074
            esac
 
1075
            ;;
 
1076
          -* ) ac_must_keep_next=true ;;
 
1077
        esac
 
1078
      fi
 
1079
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1080
      # Get rid of the leading space.
 
1081
      ac_sep=" "
 
1082
      ;;
 
1083
    esac
 
1084
  done
 
1085
done
 
1086
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1087
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1088
 
 
1089
# When interrupted or exit'd, cleanup temporary files, and complete
 
1090
# config.log.  We remove comments because anyway the quotes in there
 
1091
# would cause problems or look ugly.
 
1092
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1093
# such as our DU 5.0 friend, will then `close' the trap.
 
1094
trap 'exit_status=$?
 
1095
  # Save into config.log some information that might help in debugging.
 
1096
  {
 
1097
    echo
 
1098
 
 
1099
    cat <<\_ASBOX
 
1100
## ---------------- ##
 
1101
## Cache variables. ##
 
1102
## ---------------- ##
 
1103
_ASBOX
 
1104
    echo
 
1105
    # The following way of writing the cache mishandles newlines in values,
 
1106
{
 
1107
  (set) 2>&1 |
 
1108
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1109
    *ac_space=\ *)
 
1110
      sed -n \
 
1111
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1112
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1113
      ;;
 
1114
    *)
 
1115
      sed -n \
 
1116
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1117
      ;;
 
1118
    esac;
 
1119
}
 
1120
    echo
 
1121
 
 
1122
    cat <<\_ASBOX
 
1123
## ----------------- ##
 
1124
## Output variables. ##
 
1125
## ----------------- ##
 
1126
_ASBOX
 
1127
    echo
 
1128
    for ac_var in $ac_subst_vars
 
1129
    do
 
1130
      eval ac_val=$`echo $ac_var`
 
1131
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1132
    done | sort
 
1133
    echo
 
1134
 
 
1135
    if test -n "$ac_subst_files"; then
 
1136
      cat <<\_ASBOX
 
1137
## ------------- ##
 
1138
## Output files. ##
 
1139
## ------------- ##
 
1140
_ASBOX
 
1141
      echo
 
1142
      for ac_var in $ac_subst_files
 
1143
      do
 
1144
        eval ac_val=$`echo $ac_var`
 
1145
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1146
      done | sort
 
1147
      echo
 
1148
    fi
 
1149
 
 
1150
    if test -s confdefs.h; then
 
1151
      cat <<\_ASBOX
 
1152
## ----------- ##
 
1153
## confdefs.h. ##
 
1154
## ----------- ##
 
1155
_ASBOX
 
1156
      echo
 
1157
      sed "/^$/d" confdefs.h | sort
 
1158
      echo
 
1159
    fi
 
1160
    test "$ac_signal" != 0 &&
 
1161
      echo "$as_me: caught signal $ac_signal"
 
1162
    echo "$as_me: exit $exit_status"
 
1163
  } >&5
 
1164
  rm -f core *.core &&
 
1165
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1166
    exit $exit_status
 
1167
     ' 0
 
1168
for ac_signal in 1 2 13 15; do
 
1169
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1170
done
 
1171
ac_signal=0
 
1172
 
 
1173
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1174
rm -rf conftest* confdefs.h
 
1175
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1176
echo >confdefs.h
 
1177
 
 
1178
# Predefined preprocessor variables.
 
1179
 
 
1180
cat >>confdefs.h <<_ACEOF
 
1181
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1182
_ACEOF
 
1183
 
 
1184
 
 
1185
cat >>confdefs.h <<_ACEOF
 
1186
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1187
_ACEOF
 
1188
 
 
1189
 
 
1190
cat >>confdefs.h <<_ACEOF
 
1191
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1192
_ACEOF
 
1193
 
 
1194
 
 
1195
cat >>confdefs.h <<_ACEOF
 
1196
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1197
_ACEOF
 
1198
 
 
1199
 
 
1200
cat >>confdefs.h <<_ACEOF
 
1201
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1202
_ACEOF
 
1203
 
 
1204
 
 
1205
# Let the site file select an alternate cache file if it wants to.
 
1206
# Prefer explicitly selected file to automatically selected ones.
 
1207
if test -z "$CONFIG_SITE"; then
 
1208
  if test "x$prefix" != xNONE; then
 
1209
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1210
  else
 
1211
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1212
  fi
 
1213
fi
 
1214
for ac_site_file in $CONFIG_SITE; do
 
1215
  if test -r "$ac_site_file"; then
 
1216
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1217
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1218
    sed 's/^/| /' "$ac_site_file" >&5
 
1219
    . "$ac_site_file"
 
1220
  fi
 
1221
done
 
1222
 
 
1223
if test -r "$cache_file"; then
 
1224
  # Some versions of bash will fail to source /dev/null (special
 
1225
  # files actually), so we avoid doing that.
 
1226
  if test -f "$cache_file"; then
 
1227
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1228
echo "$as_me: loading cache $cache_file" >&6;}
 
1229
    case $cache_file in
 
1230
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1231
      *)                      . ./$cache_file;;
 
1232
    esac
 
1233
  fi
 
1234
else
 
1235
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1236
echo "$as_me: creating cache $cache_file" >&6;}
 
1237
  >$cache_file
 
1238
fi
 
1239
 
 
1240
# Check that the precious variables saved in the cache have kept the same
 
1241
# value.
 
1242
ac_cache_corrupted=false
 
1243
for ac_var in `(set) 2>&1 |
 
1244
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1245
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1246
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1247
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1248
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1249
  case $ac_old_set,$ac_new_set in
 
1250
    set,)
 
1251
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1252
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1253
      ac_cache_corrupted=: ;;
 
1254
    ,set)
 
1255
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1256
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1257
      ac_cache_corrupted=: ;;
 
1258
    ,);;
 
1259
    *)
 
1260
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1261
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1262
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1263
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1264
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1265
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1266
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1267
        ac_cache_corrupted=:
 
1268
      fi;;
 
1269
  esac
 
1270
  # Pass precious variables to config.status.
 
1271
  if test "$ac_new_set" = set; then
 
1272
    case $ac_new_val in
 
1273
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1274
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1275
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1276
    esac
 
1277
    case " $ac_configure_args " in
 
1278
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1279
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1280
    esac
 
1281
  fi
 
1282
done
 
1283
if $ac_cache_corrupted; then
 
1284
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1285
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1286
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1287
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1288
   { (exit 1); exit 1; }; }
 
1289
fi
 
1290
 
 
1291
ac_ext=c
 
1292
ac_cpp='$CPP $CPPFLAGS'
 
1293
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1294
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1295
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1296
 
 
1297
 
 
1298
 
 
1299
 
 
1300
 
 
1301
 
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
 
1321
 
 
1322
 
 
1323
 
 
1324
am__api_version="1.9"
 
1325
ac_aux_dir=
 
1326
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1327
  if test -f $ac_dir/install-sh; then
 
1328
    ac_aux_dir=$ac_dir
 
1329
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1330
    break
 
1331
  elif test -f $ac_dir/install.sh; then
 
1332
    ac_aux_dir=$ac_dir
 
1333
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1334
    break
 
1335
  elif test -f $ac_dir/shtool; then
 
1336
    ac_aux_dir=$ac_dir
 
1337
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1338
    break
 
1339
  fi
 
1340
done
 
1341
if test -z "$ac_aux_dir"; then
 
1342
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1343
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1344
   { (exit 1); exit 1; }; }
 
1345
fi
 
1346
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1347
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1348
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1349
 
 
1350
# Find a good install program.  We prefer a C program (faster),
 
1351
# so one script is as good as another.  But avoid the broken or
 
1352
# incompatible versions:
 
1353
# SysV /etc/install, /usr/sbin/install
 
1354
# SunOS /usr/etc/install
 
1355
# IRIX /sbin/install
 
1356
# AIX /bin/install
 
1357
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1358
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1359
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1360
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1361
# OS/2's system install, which has a completely different semantic
 
1362
# ./install, which can be erroneously created by make from ./install.sh.
 
1363
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1364
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1365
if test -z "$INSTALL"; then
 
1366
if test "${ac_cv_path_install+set}" = set; then
 
1367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1368
else
 
1369
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1370
for as_dir in $PATH
 
1371
do
 
1372
  IFS=$as_save_IFS
 
1373
  test -z "$as_dir" && as_dir=.
 
1374
  # Account for people who put trailing slashes in PATH elements.
 
1375
case $as_dir/ in
 
1376
  ./ | .// | /cC/* | \
 
1377
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1378
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1379
  /usr/ucb/* ) ;;
 
1380
  *)
 
1381
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1382
    # Don't use installbsd from OSF since it installs stuff as root
 
1383
    # by default.
 
1384
    for ac_prog in ginstall scoinst install; do
 
1385
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1386
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1387
          if test $ac_prog = install &&
 
1388
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1389
            # AIX install.  It has an incompatible calling convention.
 
1390
            :
 
1391
          elif test $ac_prog = install &&
 
1392
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1393
            # program-specific install script used by HP pwplus--don't use.
 
1394
            :
 
1395
          else
 
1396
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1397
            break 3
 
1398
          fi
 
1399
        fi
 
1400
      done
 
1401
    done
 
1402
    ;;
 
1403
esac
 
1404
done
 
1405
 
 
1406
 
 
1407
fi
 
1408
  if test "${ac_cv_path_install+set}" = set; then
 
1409
    INSTALL=$ac_cv_path_install
 
1410
  else
 
1411
    # As a last resort, use the slow shell script.  We don't cache a
 
1412
    # path for INSTALL within a source directory, because that will
 
1413
    # break other packages using the cache if that directory is
 
1414
    # removed, or if the path is relative.
 
1415
    INSTALL=$ac_install_sh
 
1416
  fi
 
1417
fi
 
1418
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1419
echo "${ECHO_T}$INSTALL" >&6
 
1420
 
 
1421
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1422
# It thinks the first close brace ends the variable substitution.
 
1423
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1424
 
 
1425
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1426
 
 
1427
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1428
 
 
1429
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1430
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1431
# Just in case
 
1432
sleep 1
 
1433
echo timestamp > conftest.file
 
1434
# Do `set' in a subshell so we don't clobber the current shell's
 
1435
# arguments.  Must try -L first in case configure is actually a
 
1436
# symlink; some systems play weird games with the mod time of symlinks
 
1437
# (eg FreeBSD returns the mod time of the symlink's containing
 
1438
# directory).
 
1439
if (
 
1440
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1441
   if test "$*" = "X"; then
 
1442
      # -L didn't work.
 
1443
      set X `ls -t $srcdir/configure conftest.file`
 
1444
   fi
 
1445
   rm -f conftest.file
 
1446
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1447
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1448
 
 
1449
      # If neither matched, then we have a broken ls.  This can happen
 
1450
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1451
      # broken ls alias from the environment.  This has actually
 
1452
      # happened.  Such a system could not be considered "sane".
 
1453
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1454
alias in your environment" >&5
 
1455
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1456
alias in your environment" >&2;}
 
1457
   { (exit 1); exit 1; }; }
 
1458
   fi
 
1459
 
 
1460
   test "$2" = conftest.file
 
1461
   )
 
1462
then
 
1463
   # Ok.
 
1464
   :
 
1465
else
 
1466
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1467
Check your system clock" >&5
 
1468
echo "$as_me: error: newly created file is older than distributed files!
 
1469
Check your system clock" >&2;}
 
1470
   { (exit 1); exit 1; }; }
 
1471
fi
 
1472
echo "$as_me:$LINENO: result: yes" >&5
 
1473
echo "${ECHO_T}yes" >&6
 
1474
test "$program_prefix" != NONE &&
 
1475
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1476
# Use a double $ so make ignores it.
 
1477
test "$program_suffix" != NONE &&
 
1478
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1479
# Double any \ or $.  echo might interpret backslashes.
 
1480
# By default was `s,x,x', remove it if useless.
 
1481
cat <<\_ACEOF >conftest.sed
 
1482
s/[\\$]/&&/g;s/;s,x,x,$//
 
1483
_ACEOF
 
1484
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1485
rm conftest.sed
 
1486
 
 
1487
# expand $ac_aux_dir to an absolute path
 
1488
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1489
 
 
1490
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1491
# Use eval to expand $SHELL
 
1492
if eval "$MISSING --run true"; then
 
1493
  am_missing_run="$MISSING --run "
 
1494
else
 
1495
  am_missing_run=
 
1496
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1497
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1498
fi
 
1499
 
 
1500
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1501
  # We used to keeping the `.' as first argument, in order to
 
1502
  # allow $(mkdir_p) to be used without argument.  As in
 
1503
  #   $(mkdir_p) $(somedir)
 
1504
  # where $(somedir) is conditionally defined.  However this is wrong
 
1505
  # for two reasons:
 
1506
  #  1. if the package is installed by a user who cannot write `.'
 
1507
  #     make install will fail,
 
1508
  #  2. the above comment should most certainly read
 
1509
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1510
  #     so it does not work when $(somedir) is undefined and
 
1511
  #     $(DESTDIR) is not.
 
1512
  #  To support the latter case, we have to write
 
1513
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1514
  #  so the `.' trick is pointless.
 
1515
  mkdir_p='mkdir -p --'
 
1516
else
 
1517
  # On NextStep and OpenStep, the `mkdir' command does not
 
1518
  # recognize any option.  It will interpret all options as
 
1519
  # directories to create, and then abort because `.' already
 
1520
  # exists.
 
1521
  for d in ./-p ./--version;
 
1522
  do
 
1523
    test -d $d && rmdir $d
 
1524
  done
 
1525
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1526
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1527
    mkdir_p='$(mkinstalldirs)'
 
1528
  else
 
1529
    mkdir_p='$(install_sh) -d'
 
1530
  fi
 
1531
fi
 
1532
 
 
1533
for ac_prog in gawk mawk nawk awk
 
1534
do
 
1535
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1536
set dummy $ac_prog; ac_word=$2
 
1537
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1538
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1539
if test "${ac_cv_prog_AWK+set}" = set; then
 
1540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1541
else
 
1542
  if test -n "$AWK"; then
 
1543
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1544
else
 
1545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1546
for as_dir in $PATH
 
1547
do
 
1548
  IFS=$as_save_IFS
 
1549
  test -z "$as_dir" && as_dir=.
 
1550
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1551
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1552
    ac_cv_prog_AWK="$ac_prog"
 
1553
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1554
    break 2
 
1555
  fi
 
1556
done
 
1557
done
 
1558
 
 
1559
fi
 
1560
fi
 
1561
AWK=$ac_cv_prog_AWK
 
1562
if test -n "$AWK"; then
 
1563
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1564
echo "${ECHO_T}$AWK" >&6
 
1565
else
 
1566
  echo "$as_me:$LINENO: result: no" >&5
 
1567
echo "${ECHO_T}no" >&6
 
1568
fi
 
1569
 
 
1570
  test -n "$AWK" && break
 
1571
done
 
1572
 
 
1573
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1574
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1575
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1576
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1578
else
 
1579
  cat >conftest.make <<\_ACEOF
 
1580
all:
 
1581
        @echo 'ac_maketemp="$(MAKE)"'
 
1582
_ACEOF
 
1583
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1584
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1585
if test -n "$ac_maketemp"; then
 
1586
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1587
else
 
1588
  eval ac_cv_prog_make_${ac_make}_set=no
 
1589
fi
 
1590
rm -f conftest.make
 
1591
fi
 
1592
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1593
  echo "$as_me:$LINENO: result: yes" >&5
 
1594
echo "${ECHO_T}yes" >&6
 
1595
  SET_MAKE=
 
1596
else
 
1597
  echo "$as_me:$LINENO: result: no" >&5
 
1598
echo "${ECHO_T}no" >&6
 
1599
  SET_MAKE="MAKE=${MAKE-make}"
 
1600
fi
 
1601
 
 
1602
rm -rf .tst 2>/dev/null
 
1603
mkdir .tst 2>/dev/null
 
1604
if test -d .tst; then
 
1605
  am__leading_dot=.
 
1606
else
 
1607
  am__leading_dot=_
 
1608
fi
 
1609
rmdir .tst 2>/dev/null
 
1610
 
 
1611
# test to see if srcdir already configured
 
1612
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1613
   test -f $srcdir/config.status; then
 
1614
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1615
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1616
   { (exit 1); exit 1; }; }
 
1617
fi
 
1618
 
 
1619
# test whether we have cygpath
 
1620
if test -z "$CYGPATH_W"; then
 
1621
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1622
    CYGPATH_W='cygpath -w'
 
1623
  else
 
1624
    CYGPATH_W=echo
 
1625
  fi
 
1626
fi
 
1627
 
 
1628
 
 
1629
# Define the identity of the package.
 
1630
 PACKAGE='advancecomp'
 
1631
 VERSION='1.15'
 
1632
 
 
1633
 
 
1634
cat >>confdefs.h <<_ACEOF
 
1635
#define PACKAGE "$PACKAGE"
 
1636
_ACEOF
 
1637
 
 
1638
 
 
1639
cat >>confdefs.h <<_ACEOF
 
1640
#define VERSION "$VERSION"
 
1641
_ACEOF
 
1642
 
 
1643
# Some tools Automake needs.
 
1644
 
 
1645
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1646
 
 
1647
 
 
1648
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1649
 
 
1650
 
 
1651
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1652
 
 
1653
 
 
1654
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1655
 
 
1656
 
 
1657
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1658
 
 
1659
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1660
 
 
1661
# Installed binaries are usually stripped using `strip' when the user
 
1662
# run `make install-strip'.  However `strip' might not be the right
 
1663
# tool to use in cross-compilation environments, therefore Automake
 
1664
# will honor the `STRIP' environment variable to overrule this program.
 
1665
if test "$cross_compiling" != no; then
 
1666
  if test -n "$ac_tool_prefix"; then
 
1667
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1668
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1669
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1671
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1673
else
 
1674
  if test -n "$STRIP"; then
 
1675
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1676
else
 
1677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1678
for as_dir in $PATH
 
1679
do
 
1680
  IFS=$as_save_IFS
 
1681
  test -z "$as_dir" && as_dir=.
 
1682
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1683
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1684
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1685
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1686
    break 2
 
1687
  fi
 
1688
done
 
1689
done
 
1690
 
 
1691
fi
 
1692
fi
 
1693
STRIP=$ac_cv_prog_STRIP
 
1694
if test -n "$STRIP"; then
 
1695
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1696
echo "${ECHO_T}$STRIP" >&6
 
1697
else
 
1698
  echo "$as_me:$LINENO: result: no" >&5
 
1699
echo "${ECHO_T}no" >&6
 
1700
fi
 
1701
 
 
1702
fi
 
1703
if test -z "$ac_cv_prog_STRIP"; then
 
1704
  ac_ct_STRIP=$STRIP
 
1705
  # Extract the first word of "strip", so it can be a program name with args.
 
1706
set dummy strip; ac_word=$2
 
1707
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1708
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1709
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1711
else
 
1712
  if test -n "$ac_ct_STRIP"; then
 
1713
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1714
else
 
1715
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1716
for as_dir in $PATH
 
1717
do
 
1718
  IFS=$as_save_IFS
 
1719
  test -z "$as_dir" && as_dir=.
 
1720
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1721
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1722
    ac_cv_prog_ac_ct_STRIP="strip"
 
1723
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1724
    break 2
 
1725
  fi
 
1726
done
 
1727
done
 
1728
 
 
1729
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1730
fi
 
1731
fi
 
1732
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1733
if test -n "$ac_ct_STRIP"; then
 
1734
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1735
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1736
else
 
1737
  echo "$as_me:$LINENO: result: no" >&5
 
1738
echo "${ECHO_T}no" >&6
 
1739
fi
 
1740
 
 
1741
  STRIP=$ac_ct_STRIP
 
1742
else
 
1743
  STRIP="$ac_cv_prog_STRIP"
 
1744
fi
 
1745
 
 
1746
fi
 
1747
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1748
 
 
1749
# We need awk for the "check" target.  The system "awk" is bad on
 
1750
# some platforms.
 
1751
# Always define AMTAR for backward compatibility.
 
1752
 
 
1753
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1754
 
 
1755
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1756
 
 
1757
 
 
1758
 
 
1759
 
 
1760
 
 
1761
          ac_config_headers="$ac_config_headers config.h"
 
1762
 
 
1763
# Make sure we can run config.sub.
 
1764
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1765
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1766
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1767
   { (exit 1); exit 1; }; }
 
1768
 
 
1769
echo "$as_me:$LINENO: checking build system type" >&5
 
1770
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1771
if test "${ac_cv_build+set}" = set; then
 
1772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1773
else
 
1774
  ac_cv_build_alias=$build_alias
 
1775
test -z "$ac_cv_build_alias" &&
 
1776
  ac_cv_build_alias=`$ac_config_guess`
 
1777
test -z "$ac_cv_build_alias" &&
 
1778
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1779
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1780
   { (exit 1); exit 1; }; }
 
1781
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1782
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1783
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1784
   { (exit 1); exit 1; }; }
 
1785
 
 
1786
fi
 
1787
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1788
echo "${ECHO_T}$ac_cv_build" >&6
 
1789
build=$ac_cv_build
 
1790
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1791
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1792
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1793
 
 
1794
 
 
1795
echo "$as_me:$LINENO: checking host system type" >&5
 
1796
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1797
if test "${ac_cv_host+set}" = set; then
 
1798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1799
else
 
1800
  ac_cv_host_alias=$host_alias
 
1801
test -z "$ac_cv_host_alias" &&
 
1802
  ac_cv_host_alias=$ac_cv_build_alias
 
1803
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1804
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1805
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1806
   { (exit 1); exit 1; }; }
 
1807
 
 
1808
fi
 
1809
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1810
echo "${ECHO_T}$ac_cv_host" >&6
 
1811
host=$ac_cv_host
 
1812
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1813
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1814
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1815
 
 
1816
 
 
1817
 
 
1818
# Checks for programs.
 
1819
ac_ext=c
 
1820
ac_cpp='$CPP $CPPFLAGS'
 
1821
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1822
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1823
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1824
if test -n "$ac_tool_prefix"; then
 
1825
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1826
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1827
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1829
if test "${ac_cv_prog_CC+set}" = set; then
 
1830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1831
else
 
1832
  if test -n "$CC"; then
 
1833
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1834
else
 
1835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1836
for as_dir in $PATH
 
1837
do
 
1838
  IFS=$as_save_IFS
 
1839
  test -z "$as_dir" && as_dir=.
 
1840
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1841
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1842
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1843
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1844
    break 2
 
1845
  fi
 
1846
done
 
1847
done
 
1848
 
 
1849
fi
 
1850
fi
 
1851
CC=$ac_cv_prog_CC
 
1852
if test -n "$CC"; then
 
1853
  echo "$as_me:$LINENO: result: $CC" >&5
 
1854
echo "${ECHO_T}$CC" >&6
 
1855
else
 
1856
  echo "$as_me:$LINENO: result: no" >&5
 
1857
echo "${ECHO_T}no" >&6
 
1858
fi
 
1859
 
 
1860
fi
 
1861
if test -z "$ac_cv_prog_CC"; then
 
1862
  ac_ct_CC=$CC
 
1863
  # Extract the first word of "gcc", so it can be a program name with args.
 
1864
set dummy gcc; ac_word=$2
 
1865
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1867
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1869
else
 
1870
  if test -n "$ac_ct_CC"; then
 
1871
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1872
else
 
1873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1874
for as_dir in $PATH
 
1875
do
 
1876
  IFS=$as_save_IFS
 
1877
  test -z "$as_dir" && as_dir=.
 
1878
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1879
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1880
    ac_cv_prog_ac_ct_CC="gcc"
 
1881
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1882
    break 2
 
1883
  fi
 
1884
done
 
1885
done
 
1886
 
 
1887
fi
 
1888
fi
 
1889
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1890
if test -n "$ac_ct_CC"; then
 
1891
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1892
echo "${ECHO_T}$ac_ct_CC" >&6
 
1893
else
 
1894
  echo "$as_me:$LINENO: result: no" >&5
 
1895
echo "${ECHO_T}no" >&6
 
1896
fi
 
1897
 
 
1898
  CC=$ac_ct_CC
 
1899
else
 
1900
  CC="$ac_cv_prog_CC"
 
1901
fi
 
1902
 
 
1903
if test -z "$CC"; then
 
1904
  if test -n "$ac_tool_prefix"; then
 
1905
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1906
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1907
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1908
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1909
if test "${ac_cv_prog_CC+set}" = set; then
 
1910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1911
else
 
1912
  if test -n "$CC"; then
 
1913
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1914
else
 
1915
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1916
for as_dir in $PATH
 
1917
do
 
1918
  IFS=$as_save_IFS
 
1919
  test -z "$as_dir" && as_dir=.
 
1920
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1921
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1922
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1923
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1924
    break 2
 
1925
  fi
 
1926
done
 
1927
done
 
1928
 
 
1929
fi
 
1930
fi
 
1931
CC=$ac_cv_prog_CC
 
1932
if test -n "$CC"; then
 
1933
  echo "$as_me:$LINENO: result: $CC" >&5
 
1934
echo "${ECHO_T}$CC" >&6
 
1935
else
 
1936
  echo "$as_me:$LINENO: result: no" >&5
 
1937
echo "${ECHO_T}no" >&6
 
1938
fi
 
1939
 
 
1940
fi
 
1941
if test -z "$ac_cv_prog_CC"; then
 
1942
  ac_ct_CC=$CC
 
1943
  # Extract the first word of "cc", so it can be a program name with args.
 
1944
set dummy cc; ac_word=$2
 
1945
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1947
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1949
else
 
1950
  if test -n "$ac_ct_CC"; then
 
1951
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1952
else
 
1953
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1954
for as_dir in $PATH
 
1955
do
 
1956
  IFS=$as_save_IFS
 
1957
  test -z "$as_dir" && as_dir=.
 
1958
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1959
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1960
    ac_cv_prog_ac_ct_CC="cc"
 
1961
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1962
    break 2
 
1963
  fi
 
1964
done
 
1965
done
 
1966
 
 
1967
fi
 
1968
fi
 
1969
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1970
if test -n "$ac_ct_CC"; then
 
1971
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1972
echo "${ECHO_T}$ac_ct_CC" >&6
 
1973
else
 
1974
  echo "$as_me:$LINENO: result: no" >&5
 
1975
echo "${ECHO_T}no" >&6
 
1976
fi
 
1977
 
 
1978
  CC=$ac_ct_CC
 
1979
else
 
1980
  CC="$ac_cv_prog_CC"
 
1981
fi
 
1982
 
 
1983
fi
 
1984
if test -z "$CC"; then
 
1985
  # Extract the first word of "cc", so it can be a program name with args.
 
1986
set dummy cc; ac_word=$2
 
1987
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1988
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1989
if test "${ac_cv_prog_CC+set}" = set; then
 
1990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1991
else
 
1992
  if test -n "$CC"; then
 
1993
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1994
else
 
1995
  ac_prog_rejected=no
 
1996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1997
for as_dir in $PATH
 
1998
do
 
1999
  IFS=$as_save_IFS
 
2000
  test -z "$as_dir" && as_dir=.
 
2001
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2002
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2003
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2004
       ac_prog_rejected=yes
 
2005
       continue
 
2006
     fi
 
2007
    ac_cv_prog_CC="cc"
 
2008
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2009
    break 2
 
2010
  fi
 
2011
done
 
2012
done
 
2013
 
 
2014
if test $ac_prog_rejected = yes; then
 
2015
  # We found a bogon in the path, so make sure we never use it.
 
2016
  set dummy $ac_cv_prog_CC
 
2017
  shift
 
2018
  if test $# != 0; then
 
2019
    # We chose a different compiler from the bogus one.
 
2020
    # However, it has the same basename, so the bogon will be chosen
 
2021
    # first if we set CC to just the basename; use the full file name.
 
2022
    shift
 
2023
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2024
  fi
 
2025
fi
 
2026
fi
 
2027
fi
 
2028
CC=$ac_cv_prog_CC
 
2029
if test -n "$CC"; then
 
2030
  echo "$as_me:$LINENO: result: $CC" >&5
 
2031
echo "${ECHO_T}$CC" >&6
 
2032
else
 
2033
  echo "$as_me:$LINENO: result: no" >&5
 
2034
echo "${ECHO_T}no" >&6
 
2035
fi
 
2036
 
 
2037
fi
 
2038
if test -z "$CC"; then
 
2039
  if test -n "$ac_tool_prefix"; then
 
2040
  for ac_prog in cl
 
2041
  do
 
2042
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2043
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2044
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2046
if test "${ac_cv_prog_CC+set}" = set; then
 
2047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2048
else
 
2049
  if test -n "$CC"; then
 
2050
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2051
else
 
2052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2053
for as_dir in $PATH
 
2054
do
 
2055
  IFS=$as_save_IFS
 
2056
  test -z "$as_dir" && as_dir=.
 
2057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2058
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2059
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2061
    break 2
 
2062
  fi
 
2063
done
 
2064
done
 
2065
 
 
2066
fi
 
2067
fi
 
2068
CC=$ac_cv_prog_CC
 
2069
if test -n "$CC"; then
 
2070
  echo "$as_me:$LINENO: result: $CC" >&5
 
2071
echo "${ECHO_T}$CC" >&6
 
2072
else
 
2073
  echo "$as_me:$LINENO: result: no" >&5
 
2074
echo "${ECHO_T}no" >&6
 
2075
fi
 
2076
 
 
2077
    test -n "$CC" && break
 
2078
  done
 
2079
fi
 
2080
if test -z "$CC"; then
 
2081
  ac_ct_CC=$CC
 
2082
  for ac_prog in cl
 
2083
do
 
2084
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2085
set dummy $ac_prog; ac_word=$2
 
2086
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2088
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2090
else
 
2091
  if test -n "$ac_ct_CC"; then
 
2092
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2093
else
 
2094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2095
for as_dir in $PATH
 
2096
do
 
2097
  IFS=$as_save_IFS
 
2098
  test -z "$as_dir" && as_dir=.
 
2099
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2100
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2101
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2102
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2103
    break 2
 
2104
  fi
 
2105
done
 
2106
done
 
2107
 
 
2108
fi
 
2109
fi
 
2110
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2111
if test -n "$ac_ct_CC"; then
 
2112
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2113
echo "${ECHO_T}$ac_ct_CC" >&6
 
2114
else
 
2115
  echo "$as_me:$LINENO: result: no" >&5
 
2116
echo "${ECHO_T}no" >&6
 
2117
fi
 
2118
 
 
2119
  test -n "$ac_ct_CC" && break
 
2120
done
 
2121
 
 
2122
  CC=$ac_ct_CC
 
2123
fi
 
2124
 
 
2125
fi
 
2126
 
 
2127
 
 
2128
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2129
See \`config.log' for more details." >&5
 
2130
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2131
See \`config.log' for more details." >&2;}
 
2132
   { (exit 1); exit 1; }; }
 
2133
 
 
2134
# Provide some information about the compiler.
 
2135
echo "$as_me:$LINENO:" \
 
2136
     "checking for C compiler version" >&5
 
2137
ac_compiler=`set X $ac_compile; echo $2`
 
2138
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2139
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2140
  ac_status=$?
 
2141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2142
  (exit $ac_status); }
 
2143
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2144
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2145
  ac_status=$?
 
2146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2147
  (exit $ac_status); }
 
2148
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2149
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2150
  ac_status=$?
 
2151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2152
  (exit $ac_status); }
 
2153
 
 
2154
cat >conftest.$ac_ext <<_ACEOF
 
2155
/* confdefs.h.  */
 
2156
_ACEOF
 
2157
cat confdefs.h >>conftest.$ac_ext
 
2158
cat >>conftest.$ac_ext <<_ACEOF
 
2159
/* end confdefs.h.  */
 
2160
 
 
2161
int
 
2162
main ()
 
2163
{
 
2164
 
 
2165
  ;
 
2166
  return 0;
 
2167
}
 
2168
_ACEOF
 
2169
ac_clean_files_save=$ac_clean_files
 
2170
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2171
# Try to create an executable without -o first, disregard a.out.
 
2172
# It will help us diagnose broken compilers, and finding out an intuition
 
2173
# of exeext.
 
2174
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2175
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2176
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2177
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2178
  (eval $ac_link_default) 2>&5
 
2179
  ac_status=$?
 
2180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2181
  (exit $ac_status); }; then
 
2182
  # Find the output, starting from the most likely.  This scheme is
 
2183
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2184
# resort.
 
2185
 
 
2186
# Be careful to initialize this variable, since it used to be cached.
 
2187
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2188
ac_cv_exeext=
 
2189
# b.out is created by i960 compilers.
 
2190
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2191
do
 
2192
  test -f "$ac_file" || continue
 
2193
  case $ac_file in
 
2194
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2195
        ;;
 
2196
    conftest.$ac_ext )
 
2197
        # This is the source file.
 
2198
        ;;
 
2199
    [ab].out )
 
2200
        # We found the default executable, but exeext='' is most
 
2201
        # certainly right.
 
2202
        break;;
 
2203
    *.* )
 
2204
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2205
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2206
        # but it would be cool to find out if it's true.  Does anybody
 
2207
        # maintain Libtool? --akim.
 
2208
        export ac_cv_exeext
 
2209
        break;;
 
2210
    * )
 
2211
        break;;
 
2212
  esac
 
2213
done
 
2214
else
 
2215
  echo "$as_me: failed program was:" >&5
 
2216
sed 's/^/| /' conftest.$ac_ext >&5
 
2217
 
 
2218
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2219
See \`config.log' for more details." >&5
 
2220
echo "$as_me: error: C compiler cannot create executables
 
2221
See \`config.log' for more details." >&2;}
 
2222
   { (exit 77); exit 77; }; }
 
2223
fi
 
2224
 
 
2225
ac_exeext=$ac_cv_exeext
 
2226
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2227
echo "${ECHO_T}$ac_file" >&6
 
2228
 
 
2229
# Check the compiler produces executables we can run.  If not, either
 
2230
# the compiler is broken, or we cross compile.
 
2231
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2232
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2233
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2234
# If not cross compiling, check that we can run a simple program.
 
2235
if test "$cross_compiling" != yes; then
 
2236
  if { ac_try='./$ac_file'
 
2237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2238
  (eval $ac_try) 2>&5
 
2239
  ac_status=$?
 
2240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2241
  (exit $ac_status); }; }; then
 
2242
    cross_compiling=no
 
2243
  else
 
2244
    if test "$cross_compiling" = maybe; then
 
2245
        cross_compiling=yes
 
2246
    else
 
2247
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2248
If you meant to cross compile, use \`--host'.
 
2249
See \`config.log' for more details." >&5
 
2250
echo "$as_me: error: cannot run C compiled programs.
 
2251
If you meant to cross compile, use \`--host'.
 
2252
See \`config.log' for more details." >&2;}
 
2253
   { (exit 1); exit 1; }; }
 
2254
    fi
 
2255
  fi
 
2256
fi
 
2257
echo "$as_me:$LINENO: result: yes" >&5
 
2258
echo "${ECHO_T}yes" >&6
 
2259
 
 
2260
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2261
ac_clean_files=$ac_clean_files_save
 
2262
# Check the compiler produces executables we can run.  If not, either
 
2263
# the compiler is broken, or we cross compile.
 
2264
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2265
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2266
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2267
echo "${ECHO_T}$cross_compiling" >&6
 
2268
 
 
2269
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2270
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2272
  (eval $ac_link) 2>&5
 
2273
  ac_status=$?
 
2274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2275
  (exit $ac_status); }; then
 
2276
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2277
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2278
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2279
# `rm'.
 
2280
for ac_file in conftest.exe conftest conftest.*; do
 
2281
  test -f "$ac_file" || continue
 
2282
  case $ac_file in
 
2283
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2284
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2285
          export ac_cv_exeext
 
2286
          break;;
 
2287
    * ) break;;
 
2288
  esac
 
2289
done
 
2290
else
 
2291
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2292
See \`config.log' for more details." >&5
 
2293
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2294
See \`config.log' for more details." >&2;}
 
2295
   { (exit 1); exit 1; }; }
 
2296
fi
 
2297
 
 
2298
rm -f conftest$ac_cv_exeext
 
2299
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2300
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2301
 
 
2302
rm -f conftest.$ac_ext
 
2303
EXEEXT=$ac_cv_exeext
 
2304
ac_exeext=$EXEEXT
 
2305
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2306
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2307
if test "${ac_cv_objext+set}" = set; then
 
2308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2309
else
 
2310
  cat >conftest.$ac_ext <<_ACEOF
 
2311
/* confdefs.h.  */
 
2312
_ACEOF
 
2313
cat confdefs.h >>conftest.$ac_ext
 
2314
cat >>conftest.$ac_ext <<_ACEOF
 
2315
/* end confdefs.h.  */
 
2316
 
 
2317
int
 
2318
main ()
 
2319
{
 
2320
 
 
2321
  ;
 
2322
  return 0;
 
2323
}
 
2324
_ACEOF
 
2325
rm -f conftest.o conftest.obj
 
2326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2327
  (eval $ac_compile) 2>&5
 
2328
  ac_status=$?
 
2329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2330
  (exit $ac_status); }; then
 
2331
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2332
  case $ac_file in
 
2333
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2334
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2335
       break;;
 
2336
  esac
 
2337
done
 
2338
else
 
2339
  echo "$as_me: failed program was:" >&5
 
2340
sed 's/^/| /' conftest.$ac_ext >&5
 
2341
 
 
2342
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2343
See \`config.log' for more details." >&5
 
2344
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2345
See \`config.log' for more details." >&2;}
 
2346
   { (exit 1); exit 1; }; }
 
2347
fi
 
2348
 
 
2349
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2350
fi
 
2351
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2352
echo "${ECHO_T}$ac_cv_objext" >&6
 
2353
OBJEXT=$ac_cv_objext
 
2354
ac_objext=$OBJEXT
 
2355
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2356
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2357
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2359
else
 
2360
  cat >conftest.$ac_ext <<_ACEOF
 
2361
/* confdefs.h.  */
 
2362
_ACEOF
 
2363
cat confdefs.h >>conftest.$ac_ext
 
2364
cat >>conftest.$ac_ext <<_ACEOF
 
2365
/* end confdefs.h.  */
 
2366
 
 
2367
int
 
2368
main ()
 
2369
{
 
2370
#ifndef __GNUC__
 
2371
       choke me
 
2372
#endif
 
2373
 
 
2374
  ;
 
2375
  return 0;
 
2376
}
 
2377
_ACEOF
 
2378
rm -f conftest.$ac_objext
 
2379
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2380
  (eval $ac_compile) 2>conftest.er1
 
2381
  ac_status=$?
 
2382
  grep -v '^ *+' conftest.er1 >conftest.err
 
2383
  rm -f conftest.er1
 
2384
  cat conftest.err >&5
 
2385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2386
  (exit $ac_status); } &&
 
2387
         { ac_try='test -z "$ac_c_werror_flag"
 
2388
                         || test ! -s conftest.err'
 
2389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2390
  (eval $ac_try) 2>&5
 
2391
  ac_status=$?
 
2392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2393
  (exit $ac_status); }; } &&
 
2394
         { ac_try='test -s conftest.$ac_objext'
 
2395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2396
  (eval $ac_try) 2>&5
 
2397
  ac_status=$?
 
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2399
  (exit $ac_status); }; }; then
 
2400
  ac_compiler_gnu=yes
 
2401
else
 
2402
  echo "$as_me: failed program was:" >&5
 
2403
sed 's/^/| /' conftest.$ac_ext >&5
 
2404
 
 
2405
ac_compiler_gnu=no
 
2406
fi
 
2407
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2408
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2409
 
 
2410
fi
 
2411
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2412
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2413
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2414
ac_test_CFLAGS=${CFLAGS+set}
 
2415
ac_save_CFLAGS=$CFLAGS
 
2416
CFLAGS="-g"
 
2417
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2418
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2419
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2421
else
 
2422
  cat >conftest.$ac_ext <<_ACEOF
 
2423
/* confdefs.h.  */
 
2424
_ACEOF
 
2425
cat confdefs.h >>conftest.$ac_ext
 
2426
cat >>conftest.$ac_ext <<_ACEOF
 
2427
/* end confdefs.h.  */
 
2428
 
 
2429
int
 
2430
main ()
 
2431
{
 
2432
 
 
2433
  ;
 
2434
  return 0;
 
2435
}
 
2436
_ACEOF
 
2437
rm -f conftest.$ac_objext
 
2438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2439
  (eval $ac_compile) 2>conftest.er1
 
2440
  ac_status=$?
 
2441
  grep -v '^ *+' conftest.er1 >conftest.err
 
2442
  rm -f conftest.er1
 
2443
  cat conftest.err >&5
 
2444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2445
  (exit $ac_status); } &&
 
2446
         { ac_try='test -z "$ac_c_werror_flag"
 
2447
                         || test ! -s conftest.err'
 
2448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2449
  (eval $ac_try) 2>&5
 
2450
  ac_status=$?
 
2451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2452
  (exit $ac_status); }; } &&
 
2453
         { ac_try='test -s conftest.$ac_objext'
 
2454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2455
  (eval $ac_try) 2>&5
 
2456
  ac_status=$?
 
2457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2458
  (exit $ac_status); }; }; then
 
2459
  ac_cv_prog_cc_g=yes
 
2460
else
 
2461
  echo "$as_me: failed program was:" >&5
 
2462
sed 's/^/| /' conftest.$ac_ext >&5
 
2463
 
 
2464
ac_cv_prog_cc_g=no
 
2465
fi
 
2466
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2467
fi
 
2468
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2469
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2470
if test "$ac_test_CFLAGS" = set; then
 
2471
  CFLAGS=$ac_save_CFLAGS
 
2472
elif test $ac_cv_prog_cc_g = yes; then
 
2473
  if test "$GCC" = yes; then
 
2474
    CFLAGS="-g -O2"
 
2475
  else
 
2476
    CFLAGS="-g"
 
2477
  fi
 
2478
else
 
2479
  if test "$GCC" = yes; then
 
2480
    CFLAGS="-O2"
 
2481
  else
 
2482
    CFLAGS=
 
2483
  fi
 
2484
fi
 
2485
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2486
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2487
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2489
else
 
2490
  ac_cv_prog_cc_stdc=no
 
2491
ac_save_CC=$CC
 
2492
cat >conftest.$ac_ext <<_ACEOF
 
2493
/* confdefs.h.  */
 
2494
_ACEOF
 
2495
cat confdefs.h >>conftest.$ac_ext
 
2496
cat >>conftest.$ac_ext <<_ACEOF
 
2497
/* end confdefs.h.  */
 
2498
#include <stdarg.h>
 
2499
#include <stdio.h>
 
2500
#include <sys/types.h>
 
2501
#include <sys/stat.h>
 
2502
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2503
struct buf { int x; };
 
2504
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2505
static char *e (p, i)
 
2506
     char **p;
 
2507
     int i;
 
2508
{
 
2509
  return p[i];
 
2510
}
 
2511
static char *f (char * (*g) (char **, int), char **p, ...)
 
2512
{
 
2513
  char *s;
 
2514
  va_list v;
 
2515
  va_start (v,p);
 
2516
  s = g (p, va_arg (v,int));
 
2517
  va_end (v);
 
2518
  return s;
 
2519
}
 
2520
 
 
2521
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2522
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2523
   These don't provoke an error unfortunately, instead are silently treated
 
2524
   as 'x'.  The following induces an error, until -std1 is added to get
 
2525
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2526
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2527
   that's true only with -std1.  */
 
2528
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2529
 
 
2530
int test (int i, double x);
 
2531
struct s1 {int (*f) (int a);};
 
2532
struct s2 {int (*f) (double a);};
 
2533
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2534
int argc;
 
2535
char **argv;
 
2536
int
 
2537
main ()
 
2538
{
 
2539
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2540
  ;
 
2541
  return 0;
 
2542
}
 
2543
_ACEOF
 
2544
# Don't try gcc -ansi; that turns off useful extensions and
 
2545
# breaks some systems' header files.
 
2546
# AIX                   -qlanglvl=ansi
 
2547
# Ultrix and OSF/1      -std1
 
2548
# HP-UX 10.20 and later -Ae
 
2549
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2550
# SVR4                  -Xc -D__EXTENSIONS__
 
2551
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2552
do
 
2553
  CC="$ac_save_CC $ac_arg"
 
2554
  rm -f conftest.$ac_objext
 
2555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2556
  (eval $ac_compile) 2>conftest.er1
 
2557
  ac_status=$?
 
2558
  grep -v '^ *+' conftest.er1 >conftest.err
 
2559
  rm -f conftest.er1
 
2560
  cat conftest.err >&5
 
2561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2562
  (exit $ac_status); } &&
 
2563
         { ac_try='test -z "$ac_c_werror_flag"
 
2564
                         || test ! -s conftest.err'
 
2565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2566
  (eval $ac_try) 2>&5
 
2567
  ac_status=$?
 
2568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2569
  (exit $ac_status); }; } &&
 
2570
         { ac_try='test -s conftest.$ac_objext'
 
2571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2572
  (eval $ac_try) 2>&5
 
2573
  ac_status=$?
 
2574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2575
  (exit $ac_status); }; }; then
 
2576
  ac_cv_prog_cc_stdc=$ac_arg
 
2577
break
 
2578
else
 
2579
  echo "$as_me: failed program was:" >&5
 
2580
sed 's/^/| /' conftest.$ac_ext >&5
 
2581
 
 
2582
fi
 
2583
rm -f conftest.err conftest.$ac_objext
 
2584
done
 
2585
rm -f conftest.$ac_ext conftest.$ac_objext
 
2586
CC=$ac_save_CC
 
2587
 
 
2588
fi
 
2589
 
 
2590
case "x$ac_cv_prog_cc_stdc" in
 
2591
  x|xno)
 
2592
    echo "$as_me:$LINENO: result: none needed" >&5
 
2593
echo "${ECHO_T}none needed" >&6 ;;
 
2594
  *)
 
2595
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2596
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2597
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2598
esac
 
2599
 
 
2600
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2601
# in C++ we need to declare it.  In case someone uses the same compiler
 
2602
# for both compiling C and C++ we need to have the C++ compiler decide
 
2603
# the declaration of exit, since it's the most demanding environment.
 
2604
cat >conftest.$ac_ext <<_ACEOF
 
2605
#ifndef __cplusplus
 
2606
  choke me
 
2607
#endif
 
2608
_ACEOF
 
2609
rm -f conftest.$ac_objext
 
2610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2611
  (eval $ac_compile) 2>conftest.er1
 
2612
  ac_status=$?
 
2613
  grep -v '^ *+' conftest.er1 >conftest.err
 
2614
  rm -f conftest.er1
 
2615
  cat conftest.err >&5
 
2616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2617
  (exit $ac_status); } &&
 
2618
         { ac_try='test -z "$ac_c_werror_flag"
 
2619
                         || test ! -s conftest.err'
 
2620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2621
  (eval $ac_try) 2>&5
 
2622
  ac_status=$?
 
2623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2624
  (exit $ac_status); }; } &&
 
2625
         { ac_try='test -s conftest.$ac_objext'
 
2626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2627
  (eval $ac_try) 2>&5
 
2628
  ac_status=$?
 
2629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2630
  (exit $ac_status); }; }; then
 
2631
  for ac_declaration in \
 
2632
   '' \
 
2633
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2634
   'extern "C" void std::exit (int); using std::exit;' \
 
2635
   'extern "C" void exit (int) throw ();' \
 
2636
   'extern "C" void exit (int);' \
 
2637
   'void exit (int);'
 
2638
do
 
2639
  cat >conftest.$ac_ext <<_ACEOF
 
2640
/* confdefs.h.  */
 
2641
_ACEOF
 
2642
cat confdefs.h >>conftest.$ac_ext
 
2643
cat >>conftest.$ac_ext <<_ACEOF
 
2644
/* end confdefs.h.  */
 
2645
$ac_declaration
 
2646
#include <stdlib.h>
 
2647
int
 
2648
main ()
 
2649
{
 
2650
exit (42);
 
2651
  ;
 
2652
  return 0;
 
2653
}
 
2654
_ACEOF
 
2655
rm -f conftest.$ac_objext
 
2656
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2657
  (eval $ac_compile) 2>conftest.er1
 
2658
  ac_status=$?
 
2659
  grep -v '^ *+' conftest.er1 >conftest.err
 
2660
  rm -f conftest.er1
 
2661
  cat conftest.err >&5
 
2662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2663
  (exit $ac_status); } &&
 
2664
         { ac_try='test -z "$ac_c_werror_flag"
 
2665
                         || test ! -s conftest.err'
 
2666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2667
  (eval $ac_try) 2>&5
 
2668
  ac_status=$?
 
2669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2670
  (exit $ac_status); }; } &&
 
2671
         { ac_try='test -s conftest.$ac_objext'
 
2672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2673
  (eval $ac_try) 2>&5
 
2674
  ac_status=$?
 
2675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2676
  (exit $ac_status); }; }; then
 
2677
  :
 
2678
else
 
2679
  echo "$as_me: failed program was:" >&5
 
2680
sed 's/^/| /' conftest.$ac_ext >&5
 
2681
 
 
2682
continue
 
2683
fi
 
2684
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2685
  cat >conftest.$ac_ext <<_ACEOF
 
2686
/* confdefs.h.  */
 
2687
_ACEOF
 
2688
cat confdefs.h >>conftest.$ac_ext
 
2689
cat >>conftest.$ac_ext <<_ACEOF
 
2690
/* end confdefs.h.  */
 
2691
$ac_declaration
 
2692
int
 
2693
main ()
 
2694
{
 
2695
exit (42);
 
2696
  ;
 
2697
  return 0;
 
2698
}
 
2699
_ACEOF
 
2700
rm -f conftest.$ac_objext
 
2701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2702
  (eval $ac_compile) 2>conftest.er1
 
2703
  ac_status=$?
 
2704
  grep -v '^ *+' conftest.er1 >conftest.err
 
2705
  rm -f conftest.er1
 
2706
  cat conftest.err >&5
 
2707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2708
  (exit $ac_status); } &&
 
2709
         { ac_try='test -z "$ac_c_werror_flag"
 
2710
                         || test ! -s conftest.err'
 
2711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2712
  (eval $ac_try) 2>&5
 
2713
  ac_status=$?
 
2714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2715
  (exit $ac_status); }; } &&
 
2716
         { ac_try='test -s conftest.$ac_objext'
 
2717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2718
  (eval $ac_try) 2>&5
 
2719
  ac_status=$?
 
2720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2721
  (exit $ac_status); }; }; then
 
2722
  break
 
2723
else
 
2724
  echo "$as_me: failed program was:" >&5
 
2725
sed 's/^/| /' conftest.$ac_ext >&5
 
2726
 
 
2727
fi
 
2728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2729
done
 
2730
rm -f conftest*
 
2731
if test -n "$ac_declaration"; then
 
2732
  echo '#ifdef __cplusplus' >>confdefs.h
 
2733
  echo $ac_declaration      >>confdefs.h
 
2734
  echo '#endif'             >>confdefs.h
 
2735
fi
 
2736
 
 
2737
else
 
2738
  echo "$as_me: failed program was:" >&5
 
2739
sed 's/^/| /' conftest.$ac_ext >&5
 
2740
 
 
2741
fi
 
2742
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2743
ac_ext=c
 
2744
ac_cpp='$CPP $CPPFLAGS'
 
2745
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2746
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2747
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2748
 
 
2749
ac_ext=cc
 
2750
ac_cpp='$CXXCPP $CPPFLAGS'
 
2751
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2752
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2753
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2754
if test -n "$ac_tool_prefix"; then
 
2755
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2756
  do
 
2757
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2758
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2759
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2761
if test "${ac_cv_prog_CXX+set}" = set; then
 
2762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2763
else
 
2764
  if test -n "$CXX"; then
 
2765
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2766
else
 
2767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2768
for as_dir in $PATH
 
2769
do
 
2770
  IFS=$as_save_IFS
 
2771
  test -z "$as_dir" && as_dir=.
 
2772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2773
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2774
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2775
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2776
    break 2
 
2777
  fi
 
2778
done
 
2779
done
 
2780
 
 
2781
fi
 
2782
fi
 
2783
CXX=$ac_cv_prog_CXX
 
2784
if test -n "$CXX"; then
 
2785
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2786
echo "${ECHO_T}$CXX" >&6
 
2787
else
 
2788
  echo "$as_me:$LINENO: result: no" >&5
 
2789
echo "${ECHO_T}no" >&6
 
2790
fi
 
2791
 
 
2792
    test -n "$CXX" && break
 
2793
  done
 
2794
fi
 
2795
if test -z "$CXX"; then
 
2796
  ac_ct_CXX=$CXX
 
2797
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2798
do
 
2799
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2800
set dummy $ac_prog; ac_word=$2
 
2801
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2802
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2803
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2805
else
 
2806
  if test -n "$ac_ct_CXX"; then
 
2807
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2808
else
 
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2810
for as_dir in $PATH
 
2811
do
 
2812
  IFS=$as_save_IFS
 
2813
  test -z "$as_dir" && as_dir=.
 
2814
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2815
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2816
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2817
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2818
    break 2
 
2819
  fi
 
2820
done
 
2821
done
 
2822
 
 
2823
fi
 
2824
fi
 
2825
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2826
if test -n "$ac_ct_CXX"; then
 
2827
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2828
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2829
else
 
2830
  echo "$as_me:$LINENO: result: no" >&5
 
2831
echo "${ECHO_T}no" >&6
 
2832
fi
 
2833
 
 
2834
  test -n "$ac_ct_CXX" && break
 
2835
done
 
2836
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2837
 
 
2838
  CXX=$ac_ct_CXX
 
2839
fi
 
2840
 
 
2841
 
 
2842
# Provide some information about the compiler.
 
2843
echo "$as_me:$LINENO:" \
 
2844
     "checking for C++ compiler version" >&5
 
2845
ac_compiler=`set X $ac_compile; echo $2`
 
2846
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2847
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2848
  ac_status=$?
 
2849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2850
  (exit $ac_status); }
 
2851
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2852
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2853
  ac_status=$?
 
2854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2855
  (exit $ac_status); }
 
2856
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2857
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2858
  ac_status=$?
 
2859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2860
  (exit $ac_status); }
 
2861
 
 
2862
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2863
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2864
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2866
else
 
2867
  cat >conftest.$ac_ext <<_ACEOF
 
2868
/* confdefs.h.  */
 
2869
_ACEOF
 
2870
cat confdefs.h >>conftest.$ac_ext
 
2871
cat >>conftest.$ac_ext <<_ACEOF
 
2872
/* end confdefs.h.  */
 
2873
 
 
2874
int
 
2875
main ()
 
2876
{
 
2877
#ifndef __GNUC__
 
2878
       choke me
 
2879
#endif
 
2880
 
 
2881
  ;
 
2882
  return 0;
 
2883
}
 
2884
_ACEOF
 
2885
rm -f conftest.$ac_objext
 
2886
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2887
  (eval $ac_compile) 2>conftest.er1
 
2888
  ac_status=$?
 
2889
  grep -v '^ *+' conftest.er1 >conftest.err
 
2890
  rm -f conftest.er1
 
2891
  cat conftest.err >&5
 
2892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2893
  (exit $ac_status); } &&
 
2894
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2895
                         || test ! -s conftest.err'
 
2896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2897
  (eval $ac_try) 2>&5
 
2898
  ac_status=$?
 
2899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2900
  (exit $ac_status); }; } &&
 
2901
         { ac_try='test -s conftest.$ac_objext'
 
2902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2903
  (eval $ac_try) 2>&5
 
2904
  ac_status=$?
 
2905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2906
  (exit $ac_status); }; }; then
 
2907
  ac_compiler_gnu=yes
 
2908
else
 
2909
  echo "$as_me: failed program was:" >&5
 
2910
sed 's/^/| /' conftest.$ac_ext >&5
 
2911
 
 
2912
ac_compiler_gnu=no
 
2913
fi
 
2914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2915
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2916
 
 
2917
fi
 
2918
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2919
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
2920
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2921
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2922
ac_save_CXXFLAGS=$CXXFLAGS
 
2923
CXXFLAGS="-g"
 
2924
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2925
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
2926
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2928
else
 
2929
  cat >conftest.$ac_ext <<_ACEOF
 
2930
/* confdefs.h.  */
 
2931
_ACEOF
 
2932
cat confdefs.h >>conftest.$ac_ext
 
2933
cat >>conftest.$ac_ext <<_ACEOF
 
2934
/* end confdefs.h.  */
 
2935
 
 
2936
int
 
2937
main ()
 
2938
{
 
2939
 
 
2940
  ;
 
2941
  return 0;
 
2942
}
 
2943
_ACEOF
 
2944
rm -f conftest.$ac_objext
 
2945
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2946
  (eval $ac_compile) 2>conftest.er1
 
2947
  ac_status=$?
 
2948
  grep -v '^ *+' conftest.er1 >conftest.err
 
2949
  rm -f conftest.er1
 
2950
  cat conftest.err >&5
 
2951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2952
  (exit $ac_status); } &&
 
2953
         { ac_try='test -z "$ac_cxx_werror_flag"
 
2954
                         || test ! -s conftest.err'
 
2955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2956
  (eval $ac_try) 2>&5
 
2957
  ac_status=$?
 
2958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2959
  (exit $ac_status); }; } &&
 
2960
         { ac_try='test -s conftest.$ac_objext'
 
2961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2962
  (eval $ac_try) 2>&5
 
2963
  ac_status=$?
 
2964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2965
  (exit $ac_status); }; }; then
 
2966
  ac_cv_prog_cxx_g=yes
 
2967
else
 
2968
  echo "$as_me: failed program was:" >&5
 
2969
sed 's/^/| /' conftest.$ac_ext >&5
 
2970
 
 
2971
ac_cv_prog_cxx_g=no
 
2972
fi
 
2973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2974
fi
 
2975
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2976
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
2977
if test "$ac_test_CXXFLAGS" = set; then
 
2978
  CXXFLAGS=$ac_save_CXXFLAGS
 
2979
elif test $ac_cv_prog_cxx_g = yes; then
 
2980
  if test "$GXX" = yes; then
 
2981
    CXXFLAGS="-g -O2"
 
2982
  else
 
2983
    CXXFLAGS="-g"
 
2984
  fi
 
2985
else
 
2986
  if test "$GXX" = yes; then
 
2987
    CXXFLAGS="-O2"
 
2988
  else
 
2989
    CXXFLAGS=
 
2990
  fi
 
2991
fi
 
2992
for ac_declaration in \
 
2993
   '' \
 
2994
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2995
   'extern "C" void std::exit (int); using std::exit;' \
 
2996
   'extern "C" void exit (int) throw ();' \
 
2997
   'extern "C" void exit (int);' \
 
2998
   'void exit (int);'
 
2999
do
 
3000
  cat >conftest.$ac_ext <<_ACEOF
 
3001
/* confdefs.h.  */
 
3002
_ACEOF
 
3003
cat confdefs.h >>conftest.$ac_ext
 
3004
cat >>conftest.$ac_ext <<_ACEOF
 
3005
/* end confdefs.h.  */
 
3006
$ac_declaration
 
3007
#include <stdlib.h>
 
3008
int
 
3009
main ()
 
3010
{
 
3011
exit (42);
 
3012
  ;
 
3013
  return 0;
 
3014
}
 
3015
_ACEOF
 
3016
rm -f conftest.$ac_objext
 
3017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3018
  (eval $ac_compile) 2>conftest.er1
 
3019
  ac_status=$?
 
3020
  grep -v '^ *+' conftest.er1 >conftest.err
 
3021
  rm -f conftest.er1
 
3022
  cat conftest.err >&5
 
3023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3024
  (exit $ac_status); } &&
 
3025
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3026
                         || test ! -s conftest.err'
 
3027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3028
  (eval $ac_try) 2>&5
 
3029
  ac_status=$?
 
3030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3031
  (exit $ac_status); }; } &&
 
3032
         { ac_try='test -s conftest.$ac_objext'
 
3033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3034
  (eval $ac_try) 2>&5
 
3035
  ac_status=$?
 
3036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3037
  (exit $ac_status); }; }; then
 
3038
  :
 
3039
else
 
3040
  echo "$as_me: failed program was:" >&5
 
3041
sed 's/^/| /' conftest.$ac_ext >&5
 
3042
 
 
3043
continue
 
3044
fi
 
3045
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3046
  cat >conftest.$ac_ext <<_ACEOF
 
3047
/* confdefs.h.  */
 
3048
_ACEOF
 
3049
cat confdefs.h >>conftest.$ac_ext
 
3050
cat >>conftest.$ac_ext <<_ACEOF
 
3051
/* end confdefs.h.  */
 
3052
$ac_declaration
 
3053
int
 
3054
main ()
 
3055
{
 
3056
exit (42);
 
3057
  ;
 
3058
  return 0;
 
3059
}
 
3060
_ACEOF
 
3061
rm -f conftest.$ac_objext
 
3062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3063
  (eval $ac_compile) 2>conftest.er1
 
3064
  ac_status=$?
 
3065
  grep -v '^ *+' conftest.er1 >conftest.err
 
3066
  rm -f conftest.er1
 
3067
  cat conftest.err >&5
 
3068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3069
  (exit $ac_status); } &&
 
3070
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3071
                         || test ! -s conftest.err'
 
3072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3073
  (eval $ac_try) 2>&5
 
3074
  ac_status=$?
 
3075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3076
  (exit $ac_status); }; } &&
 
3077
         { ac_try='test -s conftest.$ac_objext'
 
3078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3079
  (eval $ac_try) 2>&5
 
3080
  ac_status=$?
 
3081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3082
  (exit $ac_status); }; }; then
 
3083
  break
 
3084
else
 
3085
  echo "$as_me: failed program was:" >&5
 
3086
sed 's/^/| /' conftest.$ac_ext >&5
 
3087
 
 
3088
fi
 
3089
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3090
done
 
3091
rm -f conftest*
 
3092
if test -n "$ac_declaration"; then
 
3093
  echo '#ifdef __cplusplus' >>confdefs.h
 
3094
  echo $ac_declaration      >>confdefs.h
 
3095
  echo '#endif'             >>confdefs.h
 
3096
fi
 
3097
 
 
3098
ac_ext=c
 
3099
ac_cpp='$CPP $CPPFLAGS'
 
3100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3103
 
 
3104
# Find a good install program.  We prefer a C program (faster),
 
3105
# so one script is as good as another.  But avoid the broken or
 
3106
# incompatible versions:
 
3107
# SysV /etc/install, /usr/sbin/install
 
3108
# SunOS /usr/etc/install
 
3109
# IRIX /sbin/install
 
3110
# AIX /bin/install
 
3111
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3112
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3113
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3114
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3115
# OS/2's system install, which has a completely different semantic
 
3116
# ./install, which can be erroneously created by make from ./install.sh.
 
3117
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3118
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3119
if test -z "$INSTALL"; then
 
3120
if test "${ac_cv_path_install+set}" = set; then
 
3121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3122
else
 
3123
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3124
for as_dir in $PATH
 
3125
do
 
3126
  IFS=$as_save_IFS
 
3127
  test -z "$as_dir" && as_dir=.
 
3128
  # Account for people who put trailing slashes in PATH elements.
 
3129
case $as_dir/ in
 
3130
  ./ | .// | /cC/* | \
 
3131
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3132
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3133
  /usr/ucb/* ) ;;
 
3134
  *)
 
3135
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3136
    # Don't use installbsd from OSF since it installs stuff as root
 
3137
    # by default.
 
3138
    for ac_prog in ginstall scoinst install; do
 
3139
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3140
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3141
          if test $ac_prog = install &&
 
3142
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3143
            # AIX install.  It has an incompatible calling convention.
 
3144
            :
 
3145
          elif test $ac_prog = install &&
 
3146
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3147
            # program-specific install script used by HP pwplus--don't use.
 
3148
            :
 
3149
          else
 
3150
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3151
            break 3
 
3152
          fi
 
3153
        fi
 
3154
      done
 
3155
    done
 
3156
    ;;
 
3157
esac
 
3158
done
 
3159
 
 
3160
 
 
3161
fi
 
3162
  if test "${ac_cv_path_install+set}" = set; then
 
3163
    INSTALL=$ac_cv_path_install
 
3164
  else
 
3165
    # As a last resort, use the slow shell script.  We don't cache a
 
3166
    # path for INSTALL within a source directory, because that will
 
3167
    # break other packages using the cache if that directory is
 
3168
    # removed, or if the path is relative.
 
3169
    INSTALL=$ac_install_sh
 
3170
  fi
 
3171
fi
 
3172
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3173
echo "${ECHO_T}$INSTALL" >&6
 
3174
 
 
3175
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3176
# It thinks the first close brace ends the variable substitution.
 
3177
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3178
 
 
3179
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3180
 
 
3181
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3182
 
 
3183
for ac_prog in gawk mawk nawk awk
 
3184
do
 
3185
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3186
set dummy $ac_prog; ac_word=$2
 
3187
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3188
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3189
if test "${ac_cv_prog_AWK+set}" = set; then
 
3190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3191
else
 
3192
  if test -n "$AWK"; then
 
3193
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3194
else
 
3195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3196
for as_dir in $PATH
 
3197
do
 
3198
  IFS=$as_save_IFS
 
3199
  test -z "$as_dir" && as_dir=.
 
3200
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3201
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3202
    ac_cv_prog_AWK="$ac_prog"
 
3203
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3204
    break 2
 
3205
  fi
 
3206
done
 
3207
done
 
3208
 
 
3209
fi
 
3210
fi
 
3211
AWK=$ac_cv_prog_AWK
 
3212
if test -n "$AWK"; then
 
3213
  echo "$as_me:$LINENO: result: $AWK" >&5
 
3214
echo "${ECHO_T}$AWK" >&6
 
3215
else
 
3216
  echo "$as_me:$LINENO: result: no" >&5
 
3217
echo "${ECHO_T}no" >&6
 
3218
fi
 
3219
 
 
3220
  test -n "$AWK" && break
 
3221
done
 
3222
 
 
3223
for ac_prog in tar
 
3224
do
 
3225
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3226
set dummy $ac_prog; ac_word=$2
 
3227
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3229
if test "${ac_cv_prog_TAR+set}" = set; then
 
3230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3231
else
 
3232
  if test -n "$TAR"; then
 
3233
  ac_cv_prog_TAR="$TAR" # Let the user override the test.
 
3234
else
 
3235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3236
for as_dir in $PATH
 
3237
do
 
3238
  IFS=$as_save_IFS
 
3239
  test -z "$as_dir" && as_dir=.
 
3240
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3241
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3242
    ac_cv_prog_TAR="$ac_prog"
 
3243
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3244
    break 2
 
3245
  fi
 
3246
done
 
3247
done
 
3248
 
 
3249
fi
 
3250
fi
 
3251
TAR=$ac_cv_prog_TAR
 
3252
if test -n "$TAR"; then
 
3253
  echo "$as_me:$LINENO: result: $TAR" >&5
 
3254
echo "${ECHO_T}$TAR" >&6
 
3255
else
 
3256
  echo "$as_me:$LINENO: result: no" >&5
 
3257
echo "${ECHO_T}no" >&6
 
3258
fi
 
3259
 
 
3260
  test -n "$TAR" && break
 
3261
done
 
3262
 
 
3263
for ac_prog in gzip
 
3264
do
 
3265
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3266
set dummy $ac_prog; ac_word=$2
 
3267
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3268
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3269
if test "${ac_cv_prog_GZIP+set}" = set; then
 
3270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3271
else
 
3272
  if test -n "$GZIP"; then
 
3273
  ac_cv_prog_GZIP="$GZIP" # Let the user override the test.
 
3274
else
 
3275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3276
for as_dir in $PATH
 
3277
do
 
3278
  IFS=$as_save_IFS
 
3279
  test -z "$as_dir" && as_dir=.
 
3280
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3281
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3282
    ac_cv_prog_GZIP="$ac_prog"
 
3283
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3284
    break 2
 
3285
  fi
 
3286
done
 
3287
done
 
3288
 
 
3289
fi
 
3290
fi
 
3291
GZIP=$ac_cv_prog_GZIP
 
3292
if test -n "$GZIP"; then
 
3293
  echo "$as_me:$LINENO: result: $GZIP" >&5
 
3294
echo "${ECHO_T}$GZIP" >&6
 
3295
else
 
3296
  echo "$as_me:$LINENO: result: no" >&5
 
3297
echo "${ECHO_T}no" >&6
 
3298
fi
 
3299
 
 
3300
  test -n "$GZIP" && break
 
3301
done
 
3302
 
 
3303
for ac_prog in groff
 
3304
do
 
3305
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3306
set dummy $ac_prog; ac_word=$2
 
3307
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3308
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3309
if test "${ac_cv_prog_GROFF+set}" = set; then
 
3310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3311
else
 
3312
  if test -n "$GROFF"; then
 
3313
  ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
 
3314
else
 
3315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3316
for as_dir in $PATH
 
3317
do
 
3318
  IFS=$as_save_IFS
 
3319
  test -z "$as_dir" && as_dir=.
 
3320
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3321
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3322
    ac_cv_prog_GROFF="$ac_prog"
 
3323
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3324
    break 2
 
3325
  fi
 
3326
done
 
3327
done
 
3328
 
 
3329
fi
 
3330
fi
 
3331
GROFF=$ac_cv_prog_GROFF
 
3332
if test -n "$GROFF"; then
 
3333
  echo "$as_me:$LINENO: result: $GROFF" >&5
 
3334
echo "${ECHO_T}$GROFF" >&6
 
3335
else
 
3336
  echo "$as_me:$LINENO: result: no" >&5
 
3337
echo "${ECHO_T}no" >&6
 
3338
fi
 
3339
 
 
3340
  test -n "$GROFF" && break
 
3341
done
 
3342
 
 
3343
for ac_prog in col
 
3344
do
 
3345
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3346
set dummy $ac_prog; ac_word=$2
 
3347
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3349
if test "${ac_cv_prog_COL+set}" = set; then
 
3350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3351
else
 
3352
  if test -n "$COL"; then
 
3353
  ac_cv_prog_COL="$COL" # Let the user override the test.
 
3354
else
 
3355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3356
for as_dir in $PATH
 
3357
do
 
3358
  IFS=$as_save_IFS
 
3359
  test -z "$as_dir" && as_dir=.
 
3360
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3361
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3362
    ac_cv_prog_COL="$ac_prog"
 
3363
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3364
    break 2
 
3365
  fi
 
3366
done
 
3367
done
 
3368
 
 
3369
fi
 
3370
fi
 
3371
COL=$ac_cv_prog_COL
 
3372
if test -n "$COL"; then
 
3373
  echo "$as_me:$LINENO: result: $COL" >&5
 
3374
echo "${ECHO_T}$COL" >&6
 
3375
else
 
3376
  echo "$as_me:$LINENO: result: no" >&5
 
3377
echo "${ECHO_T}no" >&6
 
3378
fi
 
3379
 
 
3380
  test -n "$COL" && break
 
3381
done
 
3382
 
 
3383
 
 
3384
# Checks for libraries.
 
3385
 
 
3386
 
 
3387
echo "$as_me:$LINENO: checking for adler32 in -lz" >&5
 
3388
echo $ECHO_N "checking for adler32 in -lz... $ECHO_C" >&6
 
3389
if test "${ac_cv_lib_z_adler32+set}" = set; then
 
3390
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3391
else
 
3392
  ac_check_lib_save_LIBS=$LIBS
 
3393
LIBS="-lz  $LIBS"
 
3394
cat >conftest.$ac_ext <<_ACEOF
 
3395
/* confdefs.h.  */
 
3396
_ACEOF
 
3397
cat confdefs.h >>conftest.$ac_ext
 
3398
cat >>conftest.$ac_ext <<_ACEOF
 
3399
/* end confdefs.h.  */
 
3400
 
 
3401
/* Override any gcc2 internal prototype to avoid an error.  */
 
3402
#ifdef __cplusplus
 
3403
extern "C"
 
3404
#endif
 
3405
/* We use char because int might match the return type of a gcc2
 
3406
   builtin and then its argument prototype would still apply.  */
 
3407
char adler32 ();
 
3408
int
 
3409
main ()
 
3410
{
 
3411
adler32 ();
 
3412
  ;
 
3413
  return 0;
 
3414
}
 
3415
_ACEOF
 
3416
rm -f conftest.$ac_objext conftest$ac_exeext
 
3417
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3418
  (eval $ac_link) 2>conftest.er1
 
3419
  ac_status=$?
 
3420
  grep -v '^ *+' conftest.er1 >conftest.err
 
3421
  rm -f conftest.er1
 
3422
  cat conftest.err >&5
 
3423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3424
  (exit $ac_status); } &&
 
3425
         { ac_try='test -z "$ac_c_werror_flag"
 
3426
                         || test ! -s conftest.err'
 
3427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3428
  (eval $ac_try) 2>&5
 
3429
  ac_status=$?
 
3430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3431
  (exit $ac_status); }; } &&
 
3432
         { ac_try='test -s conftest$ac_exeext'
 
3433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3434
  (eval $ac_try) 2>&5
 
3435
  ac_status=$?
 
3436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3437
  (exit $ac_status); }; }; then
 
3438
  ac_cv_lib_z_adler32=yes
 
3439
else
 
3440
  echo "$as_me: failed program was:" >&5
 
3441
sed 's/^/| /' conftest.$ac_ext >&5
 
3442
 
 
3443
ac_cv_lib_z_adler32=no
 
3444
fi
 
3445
rm -f conftest.err conftest.$ac_objext \
 
3446
      conftest$ac_exeext conftest.$ac_ext
 
3447
LIBS=$ac_check_lib_save_LIBS
 
3448
fi
 
3449
echo "$as_me:$LINENO: result: $ac_cv_lib_z_adler32" >&5
 
3450
echo "${ECHO_T}$ac_cv_lib_z_adler32" >&6
 
3451
if test $ac_cv_lib_z_adler32 = yes; then
 
3452
  cat >>confdefs.h <<_ACEOF
 
3453
#define HAVE_LIBZ 1
 
3454
_ACEOF
 
3455
 
 
3456
  LIBS="-lz $LIBS"
 
3457
 
 
3458
else
 
3459
 
 
3460
{ { echo "$as_me:$LINENO: error: the zlib library is required" >&5
 
3461
echo "$as_me: error: the zlib library is required" >&2;}
 
3462
   { (exit 1); exit 1; }; }
 
3463
 
 
3464
fi
 
3465
 
 
3466
 
 
3467
# Checks for header files.
 
3468
ac_ext=c
 
3469
ac_cpp='$CPP $CPPFLAGS'
 
3470
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3471
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3472
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3473
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3474
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3475
# On Suns, sometimes $CPP names a directory.
 
3476
if test -n "$CPP" && test -d "$CPP"; then
 
3477
  CPP=
 
3478
fi
 
3479
if test -z "$CPP"; then
 
3480
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3482
else
 
3483
      # Double quotes because CPP needs to be expanded
 
3484
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3485
    do
 
3486
      ac_preproc_ok=false
 
3487
for ac_c_preproc_warn_flag in '' yes
 
3488
do
 
3489
  # Use a header file that comes with gcc, so configuring glibc
 
3490
  # with a fresh cross-compiler works.
 
3491
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3492
  # <limits.h> exists even on freestanding compilers.
 
3493
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3494
  # not just through cpp. "Syntax error" is here to catch this case.
 
3495
  cat >conftest.$ac_ext <<_ACEOF
 
3496
/* confdefs.h.  */
 
3497
_ACEOF
 
3498
cat confdefs.h >>conftest.$ac_ext
 
3499
cat >>conftest.$ac_ext <<_ACEOF
 
3500
/* end confdefs.h.  */
 
3501
#ifdef __STDC__
 
3502
# include <limits.h>
 
3503
#else
 
3504
# include <assert.h>
 
3505
#endif
 
3506
                     Syntax error
 
3507
_ACEOF
 
3508
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3509
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3510
  ac_status=$?
 
3511
  grep -v '^ *+' conftest.er1 >conftest.err
 
3512
  rm -f conftest.er1
 
3513
  cat conftest.err >&5
 
3514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3515
  (exit $ac_status); } >/dev/null; then
 
3516
  if test -s conftest.err; then
 
3517
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3518
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3519
  else
 
3520
    ac_cpp_err=
 
3521
  fi
 
3522
else
 
3523
  ac_cpp_err=yes
 
3524
fi
 
3525
if test -z "$ac_cpp_err"; then
 
3526
  :
 
3527
else
 
3528
  echo "$as_me: failed program was:" >&5
 
3529
sed 's/^/| /' conftest.$ac_ext >&5
 
3530
 
 
3531
  # Broken: fails on valid input.
 
3532
continue
 
3533
fi
 
3534
rm -f conftest.err conftest.$ac_ext
 
3535
 
 
3536
  # OK, works on sane cases.  Now check whether non-existent headers
 
3537
  # can be detected and how.
 
3538
  cat >conftest.$ac_ext <<_ACEOF
 
3539
/* confdefs.h.  */
 
3540
_ACEOF
 
3541
cat confdefs.h >>conftest.$ac_ext
 
3542
cat >>conftest.$ac_ext <<_ACEOF
 
3543
/* end confdefs.h.  */
 
3544
#include <ac_nonexistent.h>
 
3545
_ACEOF
 
3546
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3547
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3548
  ac_status=$?
 
3549
  grep -v '^ *+' conftest.er1 >conftest.err
 
3550
  rm -f conftest.er1
 
3551
  cat conftest.err >&5
 
3552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3553
  (exit $ac_status); } >/dev/null; then
 
3554
  if test -s conftest.err; then
 
3555
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3556
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3557
  else
 
3558
    ac_cpp_err=
 
3559
  fi
 
3560
else
 
3561
  ac_cpp_err=yes
 
3562
fi
 
3563
if test -z "$ac_cpp_err"; then
 
3564
  # Broken: success on invalid input.
 
3565
continue
 
3566
else
 
3567
  echo "$as_me: failed program was:" >&5
 
3568
sed 's/^/| /' conftest.$ac_ext >&5
 
3569
 
 
3570
  # Passes both tests.
 
3571
ac_preproc_ok=:
 
3572
break
 
3573
fi
 
3574
rm -f conftest.err conftest.$ac_ext
 
3575
 
 
3576
done
 
3577
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3578
rm -f conftest.err conftest.$ac_ext
 
3579
if $ac_preproc_ok; then
 
3580
  break
 
3581
fi
 
3582
 
 
3583
    done
 
3584
    ac_cv_prog_CPP=$CPP
 
3585
 
 
3586
fi
 
3587
  CPP=$ac_cv_prog_CPP
 
3588
else
 
3589
  ac_cv_prog_CPP=$CPP
 
3590
fi
 
3591
echo "$as_me:$LINENO: result: $CPP" >&5
 
3592
echo "${ECHO_T}$CPP" >&6
 
3593
ac_preproc_ok=false
 
3594
for ac_c_preproc_warn_flag in '' yes
 
3595
do
 
3596
  # Use a header file that comes with gcc, so configuring glibc
 
3597
  # with a fresh cross-compiler works.
 
3598
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3599
  # <limits.h> exists even on freestanding compilers.
 
3600
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3601
  # not just through cpp. "Syntax error" is here to catch this case.
 
3602
  cat >conftest.$ac_ext <<_ACEOF
 
3603
/* confdefs.h.  */
 
3604
_ACEOF
 
3605
cat confdefs.h >>conftest.$ac_ext
 
3606
cat >>conftest.$ac_ext <<_ACEOF
 
3607
/* end confdefs.h.  */
 
3608
#ifdef __STDC__
 
3609
# include <limits.h>
 
3610
#else
 
3611
# include <assert.h>
 
3612
#endif
 
3613
                     Syntax error
 
3614
_ACEOF
 
3615
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3616
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3617
  ac_status=$?
 
3618
  grep -v '^ *+' conftest.er1 >conftest.err
 
3619
  rm -f conftest.er1
 
3620
  cat conftest.err >&5
 
3621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3622
  (exit $ac_status); } >/dev/null; then
 
3623
  if test -s conftest.err; then
 
3624
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3625
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3626
  else
 
3627
    ac_cpp_err=
 
3628
  fi
 
3629
else
 
3630
  ac_cpp_err=yes
 
3631
fi
 
3632
if test -z "$ac_cpp_err"; then
 
3633
  :
 
3634
else
 
3635
  echo "$as_me: failed program was:" >&5
 
3636
sed 's/^/| /' conftest.$ac_ext >&5
 
3637
 
 
3638
  # Broken: fails on valid input.
 
3639
continue
 
3640
fi
 
3641
rm -f conftest.err conftest.$ac_ext
 
3642
 
 
3643
  # OK, works on sane cases.  Now check whether non-existent headers
 
3644
  # can be detected and how.
 
3645
  cat >conftest.$ac_ext <<_ACEOF
 
3646
/* confdefs.h.  */
 
3647
_ACEOF
 
3648
cat confdefs.h >>conftest.$ac_ext
 
3649
cat >>conftest.$ac_ext <<_ACEOF
 
3650
/* end confdefs.h.  */
 
3651
#include <ac_nonexistent.h>
 
3652
_ACEOF
 
3653
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3654
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3655
  ac_status=$?
 
3656
  grep -v '^ *+' conftest.er1 >conftest.err
 
3657
  rm -f conftest.er1
 
3658
  cat conftest.err >&5
 
3659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3660
  (exit $ac_status); } >/dev/null; then
 
3661
  if test -s conftest.err; then
 
3662
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3663
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3664
  else
 
3665
    ac_cpp_err=
 
3666
  fi
 
3667
else
 
3668
  ac_cpp_err=yes
 
3669
fi
 
3670
if test -z "$ac_cpp_err"; then
 
3671
  # Broken: success on invalid input.
 
3672
continue
 
3673
else
 
3674
  echo "$as_me: failed program was:" >&5
 
3675
sed 's/^/| /' conftest.$ac_ext >&5
 
3676
 
 
3677
  # Passes both tests.
 
3678
ac_preproc_ok=:
 
3679
break
 
3680
fi
 
3681
rm -f conftest.err conftest.$ac_ext
 
3682
 
 
3683
done
 
3684
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3685
rm -f conftest.err conftest.$ac_ext
 
3686
if $ac_preproc_ok; then
 
3687
  :
 
3688
else
 
3689
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3690
See \`config.log' for more details." >&5
 
3691
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3692
See \`config.log' for more details." >&2;}
 
3693
   { (exit 1); exit 1; }; }
 
3694
fi
 
3695
 
 
3696
ac_ext=c
 
3697
ac_cpp='$CPP $CPPFLAGS'
 
3698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3701
 
 
3702
 
 
3703
echo "$as_me:$LINENO: checking for egrep" >&5
 
3704
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3705
if test "${ac_cv_prog_egrep+set}" = set; then
 
3706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3707
else
 
3708
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3709
    then ac_cv_prog_egrep='grep -E'
 
3710
    else ac_cv_prog_egrep='egrep'
 
3711
    fi
 
3712
fi
 
3713
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3714
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3715
 EGREP=$ac_cv_prog_egrep
 
3716
 
 
3717
 
 
3718
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3719
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3720
if test "${ac_cv_header_stdc+set}" = set; then
 
3721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3722
else
 
3723
  cat >conftest.$ac_ext <<_ACEOF
 
3724
/* confdefs.h.  */
 
3725
_ACEOF
 
3726
cat confdefs.h >>conftest.$ac_ext
 
3727
cat >>conftest.$ac_ext <<_ACEOF
 
3728
/* end confdefs.h.  */
 
3729
#include <stdlib.h>
 
3730
#include <stdarg.h>
 
3731
#include <string.h>
 
3732
#include <float.h>
 
3733
 
 
3734
int
 
3735
main ()
 
3736
{
 
3737
 
 
3738
  ;
 
3739
  return 0;
 
3740
}
 
3741
_ACEOF
 
3742
rm -f conftest.$ac_objext
 
3743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3744
  (eval $ac_compile) 2>conftest.er1
 
3745
  ac_status=$?
 
3746
  grep -v '^ *+' conftest.er1 >conftest.err
 
3747
  rm -f conftest.er1
 
3748
  cat conftest.err >&5
 
3749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3750
  (exit $ac_status); } &&
 
3751
         { ac_try='test -z "$ac_c_werror_flag"
 
3752
                         || test ! -s conftest.err'
 
3753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3754
  (eval $ac_try) 2>&5
 
3755
  ac_status=$?
 
3756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3757
  (exit $ac_status); }; } &&
 
3758
         { ac_try='test -s conftest.$ac_objext'
 
3759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3760
  (eval $ac_try) 2>&5
 
3761
  ac_status=$?
 
3762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3763
  (exit $ac_status); }; }; then
 
3764
  ac_cv_header_stdc=yes
 
3765
else
 
3766
  echo "$as_me: failed program was:" >&5
 
3767
sed 's/^/| /' conftest.$ac_ext >&5
 
3768
 
 
3769
ac_cv_header_stdc=no
 
3770
fi
 
3771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3772
 
 
3773
if test $ac_cv_header_stdc = yes; then
 
3774
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3775
  cat >conftest.$ac_ext <<_ACEOF
 
3776
/* confdefs.h.  */
 
3777
_ACEOF
 
3778
cat confdefs.h >>conftest.$ac_ext
 
3779
cat >>conftest.$ac_ext <<_ACEOF
 
3780
/* end confdefs.h.  */
 
3781
#include <string.h>
 
3782
 
 
3783
_ACEOF
 
3784
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3785
  $EGREP "memchr" >/dev/null 2>&1; then
 
3786
  :
 
3787
else
 
3788
  ac_cv_header_stdc=no
 
3789
fi
 
3790
rm -f conftest*
 
3791
 
 
3792
fi
 
3793
 
 
3794
if test $ac_cv_header_stdc = yes; then
 
3795
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3796
  cat >conftest.$ac_ext <<_ACEOF
 
3797
/* confdefs.h.  */
 
3798
_ACEOF
 
3799
cat confdefs.h >>conftest.$ac_ext
 
3800
cat >>conftest.$ac_ext <<_ACEOF
 
3801
/* end confdefs.h.  */
 
3802
#include <stdlib.h>
 
3803
 
 
3804
_ACEOF
 
3805
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3806
  $EGREP "free" >/dev/null 2>&1; then
 
3807
  :
 
3808
else
 
3809
  ac_cv_header_stdc=no
 
3810
fi
 
3811
rm -f conftest*
 
3812
 
 
3813
fi
 
3814
 
 
3815
if test $ac_cv_header_stdc = yes; then
 
3816
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3817
  if test "$cross_compiling" = yes; then
 
3818
  :
 
3819
else
 
3820
  cat >conftest.$ac_ext <<_ACEOF
 
3821
/* confdefs.h.  */
 
3822
_ACEOF
 
3823
cat confdefs.h >>conftest.$ac_ext
 
3824
cat >>conftest.$ac_ext <<_ACEOF
 
3825
/* end confdefs.h.  */
 
3826
#include <ctype.h>
 
3827
#if ((' ' & 0x0FF) == 0x020)
 
3828
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3829
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3830
#else
 
3831
# define ISLOWER(c) \
 
3832
                   (('a' <= (c) && (c) <= 'i') \
 
3833
                     || ('j' <= (c) && (c) <= 'r') \
 
3834
                     || ('s' <= (c) && (c) <= 'z'))
 
3835
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3836
#endif
 
3837
 
 
3838
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3839
int
 
3840
main ()
 
3841
{
 
3842
  int i;
 
3843
  for (i = 0; i < 256; i++)
 
3844
    if (XOR (islower (i), ISLOWER (i))
 
3845
        || toupper (i) != TOUPPER (i))
 
3846
      exit(2);
 
3847
  exit (0);
 
3848
}
 
3849
_ACEOF
 
3850
rm -f conftest$ac_exeext
 
3851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3852
  (eval $ac_link) 2>&5
 
3853
  ac_status=$?
 
3854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3855
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3857
  (eval $ac_try) 2>&5
 
3858
  ac_status=$?
 
3859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3860
  (exit $ac_status); }; }; then
 
3861
  :
 
3862
else
 
3863
  echo "$as_me: program exited with status $ac_status" >&5
 
3864
echo "$as_me: failed program was:" >&5
 
3865
sed 's/^/| /' conftest.$ac_ext >&5
 
3866
 
 
3867
( exit $ac_status )
 
3868
ac_cv_header_stdc=no
 
3869
fi
 
3870
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3871
fi
 
3872
fi
 
3873
fi
 
3874
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3875
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3876
if test $ac_cv_header_stdc = yes; then
 
3877
 
 
3878
cat >>confdefs.h <<\_ACEOF
 
3879
#define STDC_HEADERS 1
 
3880
_ACEOF
 
3881
 
 
3882
fi
 
3883
 
 
3884
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
3885
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
3886
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
3887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3888
else
 
3889
  cat >conftest.$ac_ext <<_ACEOF
 
3890
/* confdefs.h.  */
 
3891
_ACEOF
 
3892
cat confdefs.h >>conftest.$ac_ext
 
3893
cat >>conftest.$ac_ext <<_ACEOF
 
3894
/* end confdefs.h.  */
 
3895
#include <sys/types.h>
 
3896
#include <sys/wait.h>
 
3897
#ifndef WEXITSTATUS
 
3898
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
3899
#endif
 
3900
#ifndef WIFEXITED
 
3901
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
3902
#endif
 
3903
 
 
3904
int
 
3905
main ()
 
3906
{
 
3907
  int s;
 
3908
  wait (&s);
 
3909
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
3910
  ;
 
3911
  return 0;
 
3912
}
 
3913
_ACEOF
 
3914
rm -f conftest.$ac_objext
 
3915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3916
  (eval $ac_compile) 2>conftest.er1
 
3917
  ac_status=$?
 
3918
  grep -v '^ *+' conftest.er1 >conftest.err
 
3919
  rm -f conftest.er1
 
3920
  cat conftest.err >&5
 
3921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3922
  (exit $ac_status); } &&
 
3923
         { ac_try='test -z "$ac_c_werror_flag"
 
3924
                         || test ! -s conftest.err'
 
3925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3926
  (eval $ac_try) 2>&5
 
3927
  ac_status=$?
 
3928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3929
  (exit $ac_status); }; } &&
 
3930
         { ac_try='test -s conftest.$ac_objext'
 
3931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3932
  (eval $ac_try) 2>&5
 
3933
  ac_status=$?
 
3934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3935
  (exit $ac_status); }; }; then
 
3936
  ac_cv_header_sys_wait_h=yes
 
3937
else
 
3938
  echo "$as_me: failed program was:" >&5
 
3939
sed 's/^/| /' conftest.$ac_ext >&5
 
3940
 
 
3941
ac_cv_header_sys_wait_h=no
 
3942
fi
 
3943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3944
fi
 
3945
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
3946
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
3947
if test $ac_cv_header_sys_wait_h = yes; then
 
3948
 
 
3949
cat >>confdefs.h <<\_ACEOF
 
3950
#define HAVE_SYS_WAIT_H 1
 
3951
_ACEOF
 
3952
 
 
3953
fi
 
3954
 
 
3955
 
 
3956
 
 
3957
 
 
3958
 
 
3959
 
 
3960
ac_header_dirent=no
 
3961
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
3962
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
3963
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
3964
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
3965
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3967
else
 
3968
  cat >conftest.$ac_ext <<_ACEOF
 
3969
/* confdefs.h.  */
 
3970
_ACEOF
 
3971
cat confdefs.h >>conftest.$ac_ext
 
3972
cat >>conftest.$ac_ext <<_ACEOF
 
3973
/* end confdefs.h.  */
 
3974
#include <sys/types.h>
 
3975
#include <$ac_hdr>
 
3976
 
 
3977
int
 
3978
main ()
 
3979
{
 
3980
if ((DIR *) 0)
 
3981
return 0;
 
3982
  ;
 
3983
  return 0;
 
3984
}
 
3985
_ACEOF
 
3986
rm -f conftest.$ac_objext
 
3987
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3988
  (eval $ac_compile) 2>conftest.er1
 
3989
  ac_status=$?
 
3990
  grep -v '^ *+' conftest.er1 >conftest.err
 
3991
  rm -f conftest.er1
 
3992
  cat conftest.err >&5
 
3993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3994
  (exit $ac_status); } &&
 
3995
         { ac_try='test -z "$ac_c_werror_flag"
 
3996
                         || test ! -s conftest.err'
 
3997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3998
  (eval $ac_try) 2>&5
 
3999
  ac_status=$?
 
4000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4001
  (exit $ac_status); }; } &&
 
4002
         { ac_try='test -s conftest.$ac_objext'
 
4003
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4004
  (eval $ac_try) 2>&5
 
4005
  ac_status=$?
 
4006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4007
  (exit $ac_status); }; }; then
 
4008
  eval "$as_ac_Header=yes"
 
4009
else
 
4010
  echo "$as_me: failed program was:" >&5
 
4011
sed 's/^/| /' conftest.$ac_ext >&5
 
4012
 
 
4013
eval "$as_ac_Header=no"
 
4014
fi
 
4015
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4016
fi
 
4017
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4018
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4019
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4020
  cat >>confdefs.h <<_ACEOF
 
4021
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
4022
_ACEOF
 
4023
 
 
4024
ac_header_dirent=$ac_hdr; break
 
4025
fi
 
4026
 
 
4027
done
 
4028
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
4029
if test $ac_header_dirent = dirent.h; then
 
4030
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
4031
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
4032
if test "${ac_cv_search_opendir+set}" = set; then
 
4033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4034
else
 
4035
  ac_func_search_save_LIBS=$LIBS
 
4036
ac_cv_search_opendir=no
 
4037
cat >conftest.$ac_ext <<_ACEOF
 
4038
/* confdefs.h.  */
 
4039
_ACEOF
 
4040
cat confdefs.h >>conftest.$ac_ext
 
4041
cat >>conftest.$ac_ext <<_ACEOF
 
4042
/* end confdefs.h.  */
 
4043
 
 
4044
/* Override any gcc2 internal prototype to avoid an error.  */
 
4045
#ifdef __cplusplus
 
4046
extern "C"
 
4047
#endif
 
4048
/* We use char because int might match the return type of a gcc2
 
4049
   builtin and then its argument prototype would still apply.  */
 
4050
char opendir ();
 
4051
int
 
4052
main ()
 
4053
{
 
4054
opendir ();
 
4055
  ;
 
4056
  return 0;
 
4057
}
 
4058
_ACEOF
 
4059
rm -f conftest.$ac_objext conftest$ac_exeext
 
4060
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4061
  (eval $ac_link) 2>conftest.er1
 
4062
  ac_status=$?
 
4063
  grep -v '^ *+' conftest.er1 >conftest.err
 
4064
  rm -f conftest.er1
 
4065
  cat conftest.err >&5
 
4066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4067
  (exit $ac_status); } &&
 
4068
         { ac_try='test -z "$ac_c_werror_flag"
 
4069
                         || test ! -s conftest.err'
 
4070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4071
  (eval $ac_try) 2>&5
 
4072
  ac_status=$?
 
4073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4074
  (exit $ac_status); }; } &&
 
4075
         { ac_try='test -s conftest$ac_exeext'
 
4076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4077
  (eval $ac_try) 2>&5
 
4078
  ac_status=$?
 
4079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4080
  (exit $ac_status); }; }; then
 
4081
  ac_cv_search_opendir="none required"
 
4082
else
 
4083
  echo "$as_me: failed program was:" >&5
 
4084
sed 's/^/| /' conftest.$ac_ext >&5
 
4085
 
 
4086
fi
 
4087
rm -f conftest.err conftest.$ac_objext \
 
4088
      conftest$ac_exeext conftest.$ac_ext
 
4089
if test "$ac_cv_search_opendir" = no; then
 
4090
  for ac_lib in dir; do
 
4091
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4092
    cat >conftest.$ac_ext <<_ACEOF
 
4093
/* confdefs.h.  */
 
4094
_ACEOF
 
4095
cat confdefs.h >>conftest.$ac_ext
 
4096
cat >>conftest.$ac_ext <<_ACEOF
 
4097
/* end confdefs.h.  */
 
4098
 
 
4099
/* Override any gcc2 internal prototype to avoid an error.  */
 
4100
#ifdef __cplusplus
 
4101
extern "C"
 
4102
#endif
 
4103
/* We use char because int might match the return type of a gcc2
 
4104
   builtin and then its argument prototype would still apply.  */
 
4105
char opendir ();
 
4106
int
 
4107
main ()
 
4108
{
 
4109
opendir ();
 
4110
  ;
 
4111
  return 0;
 
4112
}
 
4113
_ACEOF
 
4114
rm -f conftest.$ac_objext conftest$ac_exeext
 
4115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4116
  (eval $ac_link) 2>conftest.er1
 
4117
  ac_status=$?
 
4118
  grep -v '^ *+' conftest.er1 >conftest.err
 
4119
  rm -f conftest.er1
 
4120
  cat conftest.err >&5
 
4121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4122
  (exit $ac_status); } &&
 
4123
         { ac_try='test -z "$ac_c_werror_flag"
 
4124
                         || test ! -s conftest.err'
 
4125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4126
  (eval $ac_try) 2>&5
 
4127
  ac_status=$?
 
4128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4129
  (exit $ac_status); }; } &&
 
4130
         { ac_try='test -s conftest$ac_exeext'
 
4131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4132
  (eval $ac_try) 2>&5
 
4133
  ac_status=$?
 
4134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4135
  (exit $ac_status); }; }; then
 
4136
  ac_cv_search_opendir="-l$ac_lib"
 
4137
break
 
4138
else
 
4139
  echo "$as_me: failed program was:" >&5
 
4140
sed 's/^/| /' conftest.$ac_ext >&5
 
4141
 
 
4142
fi
 
4143
rm -f conftest.err conftest.$ac_objext \
 
4144
      conftest$ac_exeext conftest.$ac_ext
 
4145
  done
 
4146
fi
 
4147
LIBS=$ac_func_search_save_LIBS
 
4148
fi
 
4149
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
4150
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
4151
if test "$ac_cv_search_opendir" != no; then
 
4152
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
4153
 
 
4154
fi
 
4155
 
 
4156
else
 
4157
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
4158
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
4159
if test "${ac_cv_search_opendir+set}" = set; then
 
4160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4161
else
 
4162
  ac_func_search_save_LIBS=$LIBS
 
4163
ac_cv_search_opendir=no
 
4164
cat >conftest.$ac_ext <<_ACEOF
 
4165
/* confdefs.h.  */
 
4166
_ACEOF
 
4167
cat confdefs.h >>conftest.$ac_ext
 
4168
cat >>conftest.$ac_ext <<_ACEOF
 
4169
/* end confdefs.h.  */
 
4170
 
 
4171
/* Override any gcc2 internal prototype to avoid an error.  */
 
4172
#ifdef __cplusplus
 
4173
extern "C"
 
4174
#endif
 
4175
/* We use char because int might match the return type of a gcc2
 
4176
   builtin and then its argument prototype would still apply.  */
 
4177
char opendir ();
 
4178
int
 
4179
main ()
 
4180
{
 
4181
opendir ();
 
4182
  ;
 
4183
  return 0;
 
4184
}
 
4185
_ACEOF
 
4186
rm -f conftest.$ac_objext conftest$ac_exeext
 
4187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4188
  (eval $ac_link) 2>conftest.er1
 
4189
  ac_status=$?
 
4190
  grep -v '^ *+' conftest.er1 >conftest.err
 
4191
  rm -f conftest.er1
 
4192
  cat conftest.err >&5
 
4193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4194
  (exit $ac_status); } &&
 
4195
         { ac_try='test -z "$ac_c_werror_flag"
 
4196
                         || test ! -s conftest.err'
 
4197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4198
  (eval $ac_try) 2>&5
 
4199
  ac_status=$?
 
4200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4201
  (exit $ac_status); }; } &&
 
4202
         { ac_try='test -s conftest$ac_exeext'
 
4203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4204
  (eval $ac_try) 2>&5
 
4205
  ac_status=$?
 
4206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4207
  (exit $ac_status); }; }; then
 
4208
  ac_cv_search_opendir="none required"
 
4209
else
 
4210
  echo "$as_me: failed program was:" >&5
 
4211
sed 's/^/| /' conftest.$ac_ext >&5
 
4212
 
 
4213
fi
 
4214
rm -f conftest.err conftest.$ac_objext \
 
4215
      conftest$ac_exeext conftest.$ac_ext
 
4216
if test "$ac_cv_search_opendir" = no; then
 
4217
  for ac_lib in x; do
 
4218
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4219
    cat >conftest.$ac_ext <<_ACEOF
 
4220
/* confdefs.h.  */
 
4221
_ACEOF
 
4222
cat confdefs.h >>conftest.$ac_ext
 
4223
cat >>conftest.$ac_ext <<_ACEOF
 
4224
/* end confdefs.h.  */
 
4225
 
 
4226
/* Override any gcc2 internal prototype to avoid an error.  */
 
4227
#ifdef __cplusplus
 
4228
extern "C"
 
4229
#endif
 
4230
/* We use char because int might match the return type of a gcc2
 
4231
   builtin and then its argument prototype would still apply.  */
 
4232
char opendir ();
 
4233
int
 
4234
main ()
 
4235
{
 
4236
opendir ();
 
4237
  ;
 
4238
  return 0;
 
4239
}
 
4240
_ACEOF
 
4241
rm -f conftest.$ac_objext conftest$ac_exeext
 
4242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4243
  (eval $ac_link) 2>conftest.er1
 
4244
  ac_status=$?
 
4245
  grep -v '^ *+' conftest.er1 >conftest.err
 
4246
  rm -f conftest.er1
 
4247
  cat conftest.err >&5
 
4248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4249
  (exit $ac_status); } &&
 
4250
         { ac_try='test -z "$ac_c_werror_flag"
 
4251
                         || test ! -s conftest.err'
 
4252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4253
  (eval $ac_try) 2>&5
 
4254
  ac_status=$?
 
4255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4256
  (exit $ac_status); }; } &&
 
4257
         { ac_try='test -s conftest$ac_exeext'
 
4258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4259
  (eval $ac_try) 2>&5
 
4260
  ac_status=$?
 
4261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4262
  (exit $ac_status); }; }; then
 
4263
  ac_cv_search_opendir="-l$ac_lib"
 
4264
break
 
4265
else
 
4266
  echo "$as_me: failed program was:" >&5
 
4267
sed 's/^/| /' conftest.$ac_ext >&5
 
4268
 
 
4269
fi
 
4270
rm -f conftest.err conftest.$ac_objext \
 
4271
      conftest$ac_exeext conftest.$ac_ext
 
4272
  done
 
4273
fi
 
4274
LIBS=$ac_func_search_save_LIBS
 
4275
fi
 
4276
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
4277
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
4278
if test "$ac_cv_search_opendir" != no; then
 
4279
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
4280
 
 
4281
fi
 
4282
 
 
4283
fi
 
4284
 
 
4285
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
4286
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
4287
if test "${ac_cv_header_time+set}" = set; then
 
4288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4289
else
 
4290
  cat >conftest.$ac_ext <<_ACEOF
 
4291
/* confdefs.h.  */
 
4292
_ACEOF
 
4293
cat confdefs.h >>conftest.$ac_ext
 
4294
cat >>conftest.$ac_ext <<_ACEOF
 
4295
/* end confdefs.h.  */
 
4296
#include <sys/types.h>
 
4297
#include <sys/time.h>
 
4298
#include <time.h>
 
4299
 
 
4300
int
 
4301
main ()
 
4302
{
 
4303
if ((struct tm *) 0)
 
4304
return 0;
 
4305
  ;
 
4306
  return 0;
 
4307
}
 
4308
_ACEOF
 
4309
rm -f conftest.$ac_objext
 
4310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4311
  (eval $ac_compile) 2>conftest.er1
 
4312
  ac_status=$?
 
4313
  grep -v '^ *+' conftest.er1 >conftest.err
 
4314
  rm -f conftest.er1
 
4315
  cat conftest.err >&5
 
4316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4317
  (exit $ac_status); } &&
 
4318
         { ac_try='test -z "$ac_c_werror_flag"
 
4319
                         || test ! -s conftest.err'
 
4320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4321
  (eval $ac_try) 2>&5
 
4322
  ac_status=$?
 
4323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4324
  (exit $ac_status); }; } &&
 
4325
         { ac_try='test -s conftest.$ac_objext'
 
4326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4327
  (eval $ac_try) 2>&5
 
4328
  ac_status=$?
 
4329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4330
  (exit $ac_status); }; }; then
 
4331
  ac_cv_header_time=yes
 
4332
else
 
4333
  echo "$as_me: failed program was:" >&5
 
4334
sed 's/^/| /' conftest.$ac_ext >&5
 
4335
 
 
4336
ac_cv_header_time=no
 
4337
fi
 
4338
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4339
fi
 
4340
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
4341
echo "${ECHO_T}$ac_cv_header_time" >&6
 
4342
if test $ac_cv_header_time = yes; then
 
4343
 
 
4344
cat >>confdefs.h <<\_ACEOF
 
4345
#define TIME_WITH_SYS_TIME 1
 
4346
_ACEOF
 
4347
 
 
4348
fi
 
4349
 
 
4350
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4351
 
 
4352
 
 
4353
 
 
4354
 
 
4355
 
 
4356
 
 
4357
 
 
4358
 
 
4359
 
 
4360
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4361
                  inttypes.h stdint.h unistd.h
 
4362
do
 
4363
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4364
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4365
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4366
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4368
else
 
4369
  cat >conftest.$ac_ext <<_ACEOF
 
4370
/* confdefs.h.  */
 
4371
_ACEOF
 
4372
cat confdefs.h >>conftest.$ac_ext
 
4373
cat >>conftest.$ac_ext <<_ACEOF
 
4374
/* end confdefs.h.  */
 
4375
$ac_includes_default
 
4376
 
 
4377
#include <$ac_header>
 
4378
_ACEOF
 
4379
rm -f conftest.$ac_objext
 
4380
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4381
  (eval $ac_compile) 2>conftest.er1
 
4382
  ac_status=$?
 
4383
  grep -v '^ *+' conftest.er1 >conftest.err
 
4384
  rm -f conftest.er1
 
4385
  cat conftest.err >&5
 
4386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4387
  (exit $ac_status); } &&
 
4388
         { ac_try='test -z "$ac_c_werror_flag"
 
4389
                         || test ! -s conftest.err'
 
4390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4391
  (eval $ac_try) 2>&5
 
4392
  ac_status=$?
 
4393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4394
  (exit $ac_status); }; } &&
 
4395
         { ac_try='test -s conftest.$ac_objext'
 
4396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4397
  (eval $ac_try) 2>&5
 
4398
  ac_status=$?
 
4399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4400
  (exit $ac_status); }; }; then
 
4401
  eval "$as_ac_Header=yes"
 
4402
else
 
4403
  echo "$as_me: failed program was:" >&5
 
4404
sed 's/^/| /' conftest.$ac_ext >&5
 
4405
 
 
4406
eval "$as_ac_Header=no"
 
4407
fi
 
4408
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4409
fi
 
4410
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4411
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4412
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4413
  cat >>confdefs.h <<_ACEOF
 
4414
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4415
_ACEOF
 
4416
 
 
4417
fi
 
4418
 
 
4419
done
 
4420
 
 
4421
 
 
4422
 
 
4423
 
 
4424
 
 
4425
 
 
4426
 
 
4427
 
 
4428
for ac_header in unistd.h getopt.h utime.h stdarg.h varargs.h stdint.h
 
4429
do
 
4430
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4431
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4432
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4433
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4434
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4436
fi
 
4437
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4438
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4439
else
 
4440
  # Is the header compilable?
 
4441
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4442
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4443
cat >conftest.$ac_ext <<_ACEOF
 
4444
/* confdefs.h.  */
 
4445
_ACEOF
 
4446
cat confdefs.h >>conftest.$ac_ext
 
4447
cat >>conftest.$ac_ext <<_ACEOF
 
4448
/* end confdefs.h.  */
 
4449
$ac_includes_default
 
4450
#include <$ac_header>
 
4451
_ACEOF
 
4452
rm -f conftest.$ac_objext
 
4453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4454
  (eval $ac_compile) 2>conftest.er1
 
4455
  ac_status=$?
 
4456
  grep -v '^ *+' conftest.er1 >conftest.err
 
4457
  rm -f conftest.er1
 
4458
  cat conftest.err >&5
 
4459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4460
  (exit $ac_status); } &&
 
4461
         { ac_try='test -z "$ac_c_werror_flag"
 
4462
                         || test ! -s conftest.err'
 
4463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4464
  (eval $ac_try) 2>&5
 
4465
  ac_status=$?
 
4466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4467
  (exit $ac_status); }; } &&
 
4468
         { ac_try='test -s conftest.$ac_objext'
 
4469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4470
  (eval $ac_try) 2>&5
 
4471
  ac_status=$?
 
4472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4473
  (exit $ac_status); }; }; then
 
4474
  ac_header_compiler=yes
 
4475
else
 
4476
  echo "$as_me: failed program was:" >&5
 
4477
sed 's/^/| /' conftest.$ac_ext >&5
 
4478
 
 
4479
ac_header_compiler=no
 
4480
fi
 
4481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4482
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4483
echo "${ECHO_T}$ac_header_compiler" >&6
 
4484
 
 
4485
# Is the header present?
 
4486
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4487
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4488
cat >conftest.$ac_ext <<_ACEOF
 
4489
/* confdefs.h.  */
 
4490
_ACEOF
 
4491
cat confdefs.h >>conftest.$ac_ext
 
4492
cat >>conftest.$ac_ext <<_ACEOF
 
4493
/* end confdefs.h.  */
 
4494
#include <$ac_header>
 
4495
_ACEOF
 
4496
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4497
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4498
  ac_status=$?
 
4499
  grep -v '^ *+' conftest.er1 >conftest.err
 
4500
  rm -f conftest.er1
 
4501
  cat conftest.err >&5
 
4502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4503
  (exit $ac_status); } >/dev/null; then
 
4504
  if test -s conftest.err; then
 
4505
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4506
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4507
  else
 
4508
    ac_cpp_err=
 
4509
  fi
 
4510
else
 
4511
  ac_cpp_err=yes
 
4512
fi
 
4513
if test -z "$ac_cpp_err"; then
 
4514
  ac_header_preproc=yes
 
4515
else
 
4516
  echo "$as_me: failed program was:" >&5
 
4517
sed 's/^/| /' conftest.$ac_ext >&5
 
4518
 
 
4519
  ac_header_preproc=no
 
4520
fi
 
4521
rm -f conftest.err conftest.$ac_ext
 
4522
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4523
echo "${ECHO_T}$ac_header_preproc" >&6
 
4524
 
 
4525
# So?  What about this header?
 
4526
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4527
  yes:no: )
 
4528
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4529
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4530
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4531
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4532
    ac_header_preproc=yes
 
4533
    ;;
 
4534
  no:yes:* )
 
4535
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4536
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4537
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4538
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4539
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4540
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4541
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4542
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4543
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4544
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4545
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4546
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4547
    (
 
4548
      cat <<\_ASBOX
 
4549
## -------------------------------------- ##
 
4550
## Report this to the AdvanceCOMP lists.  ##
 
4551
## -------------------------------------- ##
 
4552
_ASBOX
 
4553
    ) |
 
4554
      sed "s/^/$as_me: WARNING:     /" >&2
 
4555
    ;;
 
4556
esac
 
4557
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4558
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4559
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4561
else
 
4562
  eval "$as_ac_Header=\$ac_header_preproc"
 
4563
fi
 
4564
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4565
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4566
 
 
4567
fi
 
4568
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4569
  cat >>confdefs.h <<_ACEOF
 
4570
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4571
_ACEOF
 
4572
 
 
4573
fi
 
4574
 
 
4575
done
 
4576
 
 
4577
 
 
4578
 
 
4579
 
 
4580
 
 
4581
for ac_header in sys/types.h sys/stat.h sys/time.h sys/utime.h
 
4582
do
 
4583
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4584
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4585
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4586
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4587
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4589
fi
 
4590
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4591
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4592
else
 
4593
  # Is the header compilable?
 
4594
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4595
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4596
cat >conftest.$ac_ext <<_ACEOF
 
4597
/* confdefs.h.  */
 
4598
_ACEOF
 
4599
cat confdefs.h >>conftest.$ac_ext
 
4600
cat >>conftest.$ac_ext <<_ACEOF
 
4601
/* end confdefs.h.  */
 
4602
$ac_includes_default
 
4603
#include <$ac_header>
 
4604
_ACEOF
 
4605
rm -f conftest.$ac_objext
 
4606
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4607
  (eval $ac_compile) 2>conftest.er1
 
4608
  ac_status=$?
 
4609
  grep -v '^ *+' conftest.er1 >conftest.err
 
4610
  rm -f conftest.er1
 
4611
  cat conftest.err >&5
 
4612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4613
  (exit $ac_status); } &&
 
4614
         { ac_try='test -z "$ac_c_werror_flag"
 
4615
                         || test ! -s conftest.err'
 
4616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4617
  (eval $ac_try) 2>&5
 
4618
  ac_status=$?
 
4619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4620
  (exit $ac_status); }; } &&
 
4621
         { ac_try='test -s conftest.$ac_objext'
 
4622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4623
  (eval $ac_try) 2>&5
 
4624
  ac_status=$?
 
4625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4626
  (exit $ac_status); }; }; then
 
4627
  ac_header_compiler=yes
 
4628
else
 
4629
  echo "$as_me: failed program was:" >&5
 
4630
sed 's/^/| /' conftest.$ac_ext >&5
 
4631
 
 
4632
ac_header_compiler=no
 
4633
fi
 
4634
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4635
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4636
echo "${ECHO_T}$ac_header_compiler" >&6
 
4637
 
 
4638
# Is the header present?
 
4639
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4640
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4641
cat >conftest.$ac_ext <<_ACEOF
 
4642
/* confdefs.h.  */
 
4643
_ACEOF
 
4644
cat confdefs.h >>conftest.$ac_ext
 
4645
cat >>conftest.$ac_ext <<_ACEOF
 
4646
/* end confdefs.h.  */
 
4647
#include <$ac_header>
 
4648
_ACEOF
 
4649
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4650
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4651
  ac_status=$?
 
4652
  grep -v '^ *+' conftest.er1 >conftest.err
 
4653
  rm -f conftest.er1
 
4654
  cat conftest.err >&5
 
4655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4656
  (exit $ac_status); } >/dev/null; then
 
4657
  if test -s conftest.err; then
 
4658
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4659
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4660
  else
 
4661
    ac_cpp_err=
 
4662
  fi
 
4663
else
 
4664
  ac_cpp_err=yes
 
4665
fi
 
4666
if test -z "$ac_cpp_err"; then
 
4667
  ac_header_preproc=yes
 
4668
else
 
4669
  echo "$as_me: failed program was:" >&5
 
4670
sed 's/^/| /' conftest.$ac_ext >&5
 
4671
 
 
4672
  ac_header_preproc=no
 
4673
fi
 
4674
rm -f conftest.err conftest.$ac_ext
 
4675
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4676
echo "${ECHO_T}$ac_header_preproc" >&6
 
4677
 
 
4678
# So?  What about this header?
 
4679
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4680
  yes:no: )
 
4681
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4682
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4683
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4684
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4685
    ac_header_preproc=yes
 
4686
    ;;
 
4687
  no:yes:* )
 
4688
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4689
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4690
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4691
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4692
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4693
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4694
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4695
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4696
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4697
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4698
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4699
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4700
    (
 
4701
      cat <<\_ASBOX
 
4702
## -------------------------------------- ##
 
4703
## Report this to the AdvanceCOMP lists.  ##
 
4704
## -------------------------------------- ##
 
4705
_ASBOX
 
4706
    ) |
 
4707
      sed "s/^/$as_me: WARNING:     /" >&2
 
4708
    ;;
 
4709
esac
 
4710
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4712
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4714
else
 
4715
  eval "$as_ac_Header=\$ac_header_preproc"
 
4716
fi
 
4717
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4718
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4719
 
 
4720
fi
 
4721
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4722
  cat >>confdefs.h <<_ACEOF
 
4723
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4724
_ACEOF
 
4725
 
 
4726
fi
 
4727
 
 
4728
done
 
4729
 
 
4730
 
 
4731
# Checks for typedefs, structures, and compiler characteristics.
 
4732
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4733
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4734
if test "${ac_cv_c_const+set}" = set; then
 
4735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4736
else
 
4737
  cat >conftest.$ac_ext <<_ACEOF
 
4738
/* confdefs.h.  */
 
4739
_ACEOF
 
4740
cat confdefs.h >>conftest.$ac_ext
 
4741
cat >>conftest.$ac_ext <<_ACEOF
 
4742
/* end confdefs.h.  */
 
4743
 
 
4744
int
 
4745
main ()
 
4746
{
 
4747
/* FIXME: Include the comments suggested by Paul. */
 
4748
#ifndef __cplusplus
 
4749
  /* Ultrix mips cc rejects this.  */
 
4750
  typedef int charset[2];
 
4751
  const charset x;
 
4752
  /* SunOS 4.1.1 cc rejects this.  */
 
4753
  char const *const *ccp;
 
4754
  char **p;
 
4755
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4756
  struct point {int x, y;};
 
4757
  static struct point const zero = {0,0};
 
4758
  /* AIX XL C 1.02.0.0 rejects this.
 
4759
     It does not let you subtract one const X* pointer from another in
 
4760
     an arm of an if-expression whose if-part is not a constant
 
4761
     expression */
 
4762
  const char *g = "string";
 
4763
  ccp = &g + (g ? g-g : 0);
 
4764
  /* HPUX 7.0 cc rejects these. */
 
4765
  ++ccp;
 
4766
  p = (char**) ccp;
 
4767
  ccp = (char const *const *) p;
 
4768
  { /* SCO 3.2v4 cc rejects this.  */
 
4769
    char *t;
 
4770
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4771
 
 
4772
    *t++ = 0;
 
4773
  }
 
4774
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4775
    int x[] = {25, 17};
 
4776
    const int *foo = &x[0];
 
4777
    ++foo;
 
4778
  }
 
4779
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4780
    typedef const int *iptr;
 
4781
    iptr p = 0;
 
4782
    ++p;
 
4783
  }
 
4784
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4785
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4786
    struct s { int j; const int *ap[3]; };
 
4787
    struct s *b; b->j = 5;
 
4788
  }
 
4789
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4790
    const int foo = 10;
 
4791
  }
 
4792
#endif
 
4793
 
 
4794
  ;
 
4795
  return 0;
 
4796
}
 
4797
_ACEOF
 
4798
rm -f conftest.$ac_objext
 
4799
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4800
  (eval $ac_compile) 2>conftest.er1
 
4801
  ac_status=$?
 
4802
  grep -v '^ *+' conftest.er1 >conftest.err
 
4803
  rm -f conftest.er1
 
4804
  cat conftest.err >&5
 
4805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4806
  (exit $ac_status); } &&
 
4807
         { ac_try='test -z "$ac_c_werror_flag"
 
4808
                         || test ! -s conftest.err'
 
4809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4810
  (eval $ac_try) 2>&5
 
4811
  ac_status=$?
 
4812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4813
  (exit $ac_status); }; } &&
 
4814
         { ac_try='test -s conftest.$ac_objext'
 
4815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4816
  (eval $ac_try) 2>&5
 
4817
  ac_status=$?
 
4818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4819
  (exit $ac_status); }; }; then
 
4820
  ac_cv_c_const=yes
 
4821
else
 
4822
  echo "$as_me: failed program was:" >&5
 
4823
sed 's/^/| /' conftest.$ac_ext >&5
 
4824
 
 
4825
ac_cv_c_const=no
 
4826
fi
 
4827
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4828
fi
 
4829
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4830
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4831
if test $ac_cv_c_const = no; then
 
4832
 
 
4833
cat >>confdefs.h <<\_ACEOF
 
4834
#define const
 
4835
_ACEOF
 
4836
 
 
4837
fi
 
4838
 
 
4839
echo "$as_me:$LINENO: checking for inline" >&5
 
4840
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
4841
if test "${ac_cv_c_inline+set}" = set; then
 
4842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4843
else
 
4844
  ac_cv_c_inline=no
 
4845
for ac_kw in inline __inline__ __inline; do
 
4846
  cat >conftest.$ac_ext <<_ACEOF
 
4847
/* confdefs.h.  */
 
4848
_ACEOF
 
4849
cat confdefs.h >>conftest.$ac_ext
 
4850
cat >>conftest.$ac_ext <<_ACEOF
 
4851
/* end confdefs.h.  */
 
4852
#ifndef __cplusplus
 
4853
typedef int foo_t;
 
4854
static $ac_kw foo_t static_foo () {return 0; }
 
4855
$ac_kw foo_t foo () {return 0; }
 
4856
#endif
 
4857
 
 
4858
_ACEOF
 
4859
rm -f conftest.$ac_objext
 
4860
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4861
  (eval $ac_compile) 2>conftest.er1
 
4862
  ac_status=$?
 
4863
  grep -v '^ *+' conftest.er1 >conftest.err
 
4864
  rm -f conftest.er1
 
4865
  cat conftest.err >&5
 
4866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4867
  (exit $ac_status); } &&
 
4868
         { ac_try='test -z "$ac_c_werror_flag"
 
4869
                         || test ! -s conftest.err'
 
4870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4871
  (eval $ac_try) 2>&5
 
4872
  ac_status=$?
 
4873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4874
  (exit $ac_status); }; } &&
 
4875
         { ac_try='test -s conftest.$ac_objext'
 
4876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4877
  (eval $ac_try) 2>&5
 
4878
  ac_status=$?
 
4879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4880
  (exit $ac_status); }; }; then
 
4881
  ac_cv_c_inline=$ac_kw; break
 
4882
else
 
4883
  echo "$as_me: failed program was:" >&5
 
4884
sed 's/^/| /' conftest.$ac_ext >&5
 
4885
 
 
4886
fi
 
4887
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4888
done
 
4889
 
 
4890
fi
 
4891
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4892
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
4893
 
 
4894
 
 
4895
case $ac_cv_c_inline in
 
4896
  inline | yes) ;;
 
4897
  *)
 
4898
    case $ac_cv_c_inline in
 
4899
      no) ac_val=;;
 
4900
      *) ac_val=$ac_cv_c_inline;;
 
4901
    esac
 
4902
    cat >>confdefs.h <<_ACEOF
 
4903
#ifndef __cplusplus
 
4904
#define inline $ac_val
 
4905
#endif
 
4906
_ACEOF
 
4907
    ;;
 
4908
esac
 
4909
 
 
4910
 
 
4911
# Checks for library functions.
 
4912
 
 
4913
 
 
4914
 
 
4915
 
 
4916
for ac_func in getopt getopt_long snprintf vsnprintf
 
4917
do
 
4918
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4919
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4920
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4921
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4923
else
 
4924
  cat >conftest.$ac_ext <<_ACEOF
 
4925
/* confdefs.h.  */
 
4926
_ACEOF
 
4927
cat confdefs.h >>conftest.$ac_ext
 
4928
cat >>conftest.$ac_ext <<_ACEOF
 
4929
/* end confdefs.h.  */
 
4930
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4931
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4932
#define $ac_func innocuous_$ac_func
 
4933
 
 
4934
/* System header to define __stub macros and hopefully few prototypes,
 
4935
    which can conflict with char $ac_func (); below.
 
4936
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4937
    <limits.h> exists even on freestanding compilers.  */
 
4938
 
 
4939
#ifdef __STDC__
 
4940
# include <limits.h>
 
4941
#else
 
4942
# include <assert.h>
 
4943
#endif
 
4944
 
 
4945
#undef $ac_func
 
4946
 
 
4947
/* Override any gcc2 internal prototype to avoid an error.  */
 
4948
#ifdef __cplusplus
 
4949
extern "C"
 
4950
{
 
4951
#endif
 
4952
/* We use char because int might match the return type of a gcc2
 
4953
   builtin and then its argument prototype would still apply.  */
 
4954
char $ac_func ();
 
4955
/* The GNU C library defines this for functions which it implements
 
4956
    to always fail with ENOSYS.  Some functions are actually named
 
4957
    something starting with __ and the normal name is an alias.  */
 
4958
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4959
choke me
 
4960
#else
 
4961
char (*f) () = $ac_func;
 
4962
#endif
 
4963
#ifdef __cplusplus
 
4964
}
 
4965
#endif
 
4966
 
 
4967
int
 
4968
main ()
 
4969
{
 
4970
return f != $ac_func;
 
4971
  ;
 
4972
  return 0;
 
4973
}
 
4974
_ACEOF
 
4975
rm -f conftest.$ac_objext conftest$ac_exeext
 
4976
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4977
  (eval $ac_link) 2>conftest.er1
 
4978
  ac_status=$?
 
4979
  grep -v '^ *+' conftest.er1 >conftest.err
 
4980
  rm -f conftest.er1
 
4981
  cat conftest.err >&5
 
4982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4983
  (exit $ac_status); } &&
 
4984
         { ac_try='test -z "$ac_c_werror_flag"
 
4985
                         || test ! -s conftest.err'
 
4986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4987
  (eval $ac_try) 2>&5
 
4988
  ac_status=$?
 
4989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4990
  (exit $ac_status); }; } &&
 
4991
         { ac_try='test -s conftest$ac_exeext'
 
4992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4993
  (eval $ac_try) 2>&5
 
4994
  ac_status=$?
 
4995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4996
  (exit $ac_status); }; }; then
 
4997
  eval "$as_ac_var=yes"
 
4998
else
 
4999
  echo "$as_me: failed program was:" >&5
 
5000
sed 's/^/| /' conftest.$ac_ext >&5
 
5001
 
 
5002
eval "$as_ac_var=no"
 
5003
fi
 
5004
rm -f conftest.err conftest.$ac_objext \
 
5005
      conftest$ac_exeext conftest.$ac_ext
 
5006
fi
 
5007
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5008
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5009
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5010
  cat >>confdefs.h <<_ACEOF
 
5011
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5012
_ACEOF
 
5013
 
 
5014
fi
 
5015
done
 
5016
 
 
5017
 
 
5018
 
 
5019
cat >>confdefs.h <<\_ACEOF
 
5020
#define USE_7Z 1
 
5021
_ACEOF
 
5022
 
 
5023
 
 
5024
cat >>confdefs.h <<\_ACEOF
 
5025
#define USE_LZMA 1
 
5026
_ACEOF
 
5027
 
 
5028
 
 
5029
# Check whether --enable-bzip2 or --disable-bzip2 was given.
 
5030
if test "${enable_bzip2+set}" = set; then
 
5031
  enableval="$enable_bzip2"
 
5032
 
 
5033
cat >>confdefs.h <<\_ACEOF
 
5034
#define USE_BZIP2 1
 
5035
_ACEOF
 
5036
 
 
5037
 
 
5038
echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
 
5039
echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6
 
5040
if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then
 
5041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5042
else
 
5043
  ac_check_lib_save_LIBS=$LIBS
 
5044
LIBS="-lbz2  $LIBS"
 
5045
cat >conftest.$ac_ext <<_ACEOF
 
5046
/* confdefs.h.  */
 
5047
_ACEOF
 
5048
cat confdefs.h >>conftest.$ac_ext
 
5049
cat >>conftest.$ac_ext <<_ACEOF
 
5050
/* end confdefs.h.  */
 
5051
 
 
5052
/* Override any gcc2 internal prototype to avoid an error.  */
 
5053
#ifdef __cplusplus
 
5054
extern "C"
 
5055
#endif
 
5056
/* We use char because int might match the return type of a gcc2
 
5057
   builtin and then its argument prototype would still apply.  */
 
5058
char BZ2_bzBuffToBuffCompress ();
 
5059
int
 
5060
main ()
 
5061
{
 
5062
BZ2_bzBuffToBuffCompress ();
 
5063
  ;
 
5064
  return 0;
 
5065
}
 
5066
_ACEOF
 
5067
rm -f conftest.$ac_objext conftest$ac_exeext
 
5068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5069
  (eval $ac_link) 2>conftest.er1
 
5070
  ac_status=$?
 
5071
  grep -v '^ *+' conftest.er1 >conftest.err
 
5072
  rm -f conftest.er1
 
5073
  cat conftest.err >&5
 
5074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5075
  (exit $ac_status); } &&
 
5076
         { ac_try='test -z "$ac_c_werror_flag"
 
5077
                         || test ! -s conftest.err'
 
5078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5079
  (eval $ac_try) 2>&5
 
5080
  ac_status=$?
 
5081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5082
  (exit $ac_status); }; } &&
 
5083
         { ac_try='test -s conftest$ac_exeext'
 
5084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5085
  (eval $ac_try) 2>&5
 
5086
  ac_status=$?
 
5087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5088
  (exit $ac_status); }; }; then
 
5089
  ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
 
5090
else
 
5091
  echo "$as_me: failed program was:" >&5
 
5092
sed 's/^/| /' conftest.$ac_ext >&5
 
5093
 
 
5094
ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
 
5095
fi
 
5096
rm -f conftest.err conftest.$ac_objext \
 
5097
      conftest$ac_exeext conftest.$ac_ext
 
5098
LIBS=$ac_check_lib_save_LIBS
 
5099
fi
 
5100
echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
 
5101
echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6
 
5102
if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then
 
5103
  cat >>confdefs.h <<_ACEOF
 
5104
#define HAVE_LIBBZ2 1
 
5105
_ACEOF
 
5106
 
 
5107
  LIBS="-lbz2 $LIBS"
 
5108
 
 
5109
fi
 
5110
 
 
5111
 
 
5112
fi;
 
5113
 
 
5114
# Configure the library
 
5115
CFLAGS="$CFLAGS -DUSE_ERROR_SILENT -DUSE_COMPRESS"
 
5116
CXXFLAGS="$CXXFLAGS -DUSE_ERROR_SILENT -DUSE_COMPRESS"
 
5117
 
 
5118
          ac_config_files="$ac_config_files Makefile"
 
5119
 
 
5120
cat >confcache <<\_ACEOF
 
5121
# This file is a shell script that caches the results of configure
 
5122
# tests run on this system so they can be shared between configure
 
5123
# scripts and configure runs, see configure's option --config-cache.
 
5124
# It is not useful on other systems.  If it contains results you don't
 
5125
# want to keep, you may remove or edit it.
 
5126
#
 
5127
# config.status only pays attention to the cache file if you give it
 
5128
# the --recheck option to rerun configure.
 
5129
#
 
5130
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
5131
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
5132
# following values.
 
5133
 
 
5134
_ACEOF
 
5135
 
 
5136
# The following way of writing the cache mishandles newlines in values,
 
5137
# but we know of no workaround that is simple, portable, and efficient.
 
5138
# So, don't put newlines in cache variables' values.
 
5139
# Ultrix sh set writes to stderr and can't be redirected directly,
 
5140
# and sets the high bit in the cache file unless we assign to the vars.
 
5141
{
 
5142
  (set) 2>&1 |
 
5143
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
5144
    *ac_space=\ *)
 
5145
      # `set' does not quote correctly, so add quotes (double-quote
 
5146
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
5147
      sed -n \
 
5148
        "s/'/'\\\\''/g;
 
5149
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
5150
      ;;
 
5151
    *)
 
5152
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
5153
      sed -n \
 
5154
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
5155
      ;;
 
5156
    esac;
 
5157
} |
 
5158
  sed '
 
5159
     t clear
 
5160
     : clear
 
5161
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
5162
     t end
 
5163
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
5164
     : end' >>confcache
 
5165
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
5166
  if test -w $cache_file; then
 
5167
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
5168
    cat confcache >$cache_file
 
5169
  else
 
5170
    echo "not updating unwritable cache $cache_file"
 
5171
  fi
 
5172
fi
 
5173
rm -f confcache
 
5174
 
 
5175
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
5176
# Let make expand exec_prefix.
 
5177
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
5178
 
 
5179
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
5180
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
5181
# trailing colons and then remove the whole line if VPATH becomes empty
 
5182
# (actually we leave an empty line to preserve line numbers).
 
5183
if test "x$srcdir" = x.; then
 
5184
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
5185
s/:*\$(srcdir):*/:/;
 
5186
s/:*\${srcdir}:*/:/;
 
5187
s/:*@srcdir@:*/:/;
 
5188
s/^\([^=]*=[     ]*\):*/\1/;
 
5189
s/:*$//;
 
5190
s/^[^=]*=[       ]*$//;
 
5191
}'
 
5192
fi
 
5193
 
 
5194
DEFS=-DHAVE_CONFIG_H
 
5195
 
 
5196
ac_libobjs=
 
5197
ac_ltlibobjs=
 
5198
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
5199
  # 1. Remove the extension, and $U if already installed.
 
5200
  ac_i=`echo "$ac_i" |
 
5201
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
5202
  # 2. Add them.
 
5203
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
5204
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
5205
done
 
5206
LIBOBJS=$ac_libobjs
 
5207
 
 
5208
LTLIBOBJS=$ac_ltlibobjs
 
5209
 
 
5210
 
 
5211
 
 
5212
: ${CONFIG_STATUS=./config.status}
 
5213
ac_clean_files_save=$ac_clean_files
 
5214
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
5215
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
5216
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
5217
cat >$CONFIG_STATUS <<_ACEOF
 
5218
#! $SHELL
 
5219
# Generated by $as_me.
 
5220
# Run this file to recreate the current configuration.
 
5221
# Compiler output produced by configure, useful for debugging
 
5222
# configure, is in config.log if it exists.
 
5223
 
 
5224
debug=false
 
5225
ac_cs_recheck=false
 
5226
ac_cs_silent=false
 
5227
SHELL=\${CONFIG_SHELL-$SHELL}
 
5228
_ACEOF
 
5229
 
 
5230
cat >>$CONFIG_STATUS <<\_ACEOF
 
5231
## --------------------- ##
 
5232
## M4sh Initialization.  ##
 
5233
## --------------------- ##
 
5234
 
 
5235
# Be Bourne compatible
 
5236
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
5237
  emulate sh
 
5238
  NULLCMD=:
 
5239
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
5240
  # is contrary to our usage.  Disable this feature.
 
5241
  alias -g '${1+"$@"}'='"$@"'
 
5242
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
5243
  set -o posix
 
5244
fi
 
5245
DUALCASE=1; export DUALCASE # for MKS sh
 
5246
 
 
5247
# Support unset when possible.
 
5248
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
5249
  as_unset=unset
 
5250
else
 
5251
  as_unset=false
 
5252
fi
 
5253
 
 
5254
 
 
5255
# Work around bugs in pre-3.0 UWIN ksh.
 
5256
$as_unset ENV MAIL MAILPATH
 
5257
PS1='$ '
 
5258
PS2='> '
 
5259
PS4='+ '
 
5260
 
 
5261
# NLS nuisances.
 
5262
for as_var in \
 
5263
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
5264
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
5265
  LC_TELEPHONE LC_TIME
 
5266
do
 
5267
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
5268
    eval $as_var=C; export $as_var
 
5269
  else
 
5270
    $as_unset $as_var
 
5271
  fi
 
5272
done
 
5273
 
 
5274
# Required to use basename.
 
5275
if expr a : '\(a\)' >/dev/null 2>&1; then
 
5276
  as_expr=expr
 
5277
else
 
5278
  as_expr=false
 
5279
fi
 
5280
 
 
5281
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
5282
  as_basename=basename
 
5283
else
 
5284
  as_basename=false
 
5285
fi
 
5286
 
 
5287
 
 
5288
# Name of the executable.
 
5289
as_me=`$as_basename "$0" ||
 
5290
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
5291
         X"$0" : 'X\(//\)$' \| \
 
5292
         X"$0" : 'X\(/\)$' \| \
 
5293
         .     : '\(.\)' 2>/dev/null ||
 
5294
echo X/"$0" |
 
5295
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
5296
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
5297
          /^X\/\(\/\).*/{ s//\1/; q; }
 
5298
          s/.*/./; q'`
 
5299
 
 
5300
 
 
5301
# PATH needs CR, and LINENO needs CR and PATH.
 
5302
# Avoid depending upon Character Ranges.
 
5303
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
5304
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
5305
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
5306
as_cr_digits='0123456789'
 
5307
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
5308
 
 
5309
# The user is always right.
 
5310
if test "${PATH_SEPARATOR+set}" != set; then
 
5311
  echo "#! /bin/sh" >conf$$.sh
 
5312
  echo  "exit 0"   >>conf$$.sh
 
5313
  chmod +x conf$$.sh
 
5314
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
5315
    PATH_SEPARATOR=';'
 
5316
  else
 
5317
    PATH_SEPARATOR=:
 
5318
  fi
 
5319
  rm -f conf$$.sh
 
5320
fi
 
5321
 
 
5322
 
 
5323
  as_lineno_1=$LINENO
 
5324
  as_lineno_2=$LINENO
 
5325
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
5326
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
5327
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
5328
  # Find who we are.  Look in the path if we contain no path at all
 
5329
  # relative or not.
 
5330
  case $0 in
 
5331
    *[\\/]* ) as_myself=$0 ;;
 
5332
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5333
for as_dir in $PATH
 
5334
do
 
5335
  IFS=$as_save_IFS
 
5336
  test -z "$as_dir" && as_dir=.
 
5337
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
5338
done
 
5339
 
 
5340
       ;;
 
5341
  esac
 
5342
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
5343
  # in which case we are not to be found in the path.
 
5344
  if test "x$as_myself" = x; then
 
5345
    as_myself=$0
 
5346
  fi
 
5347
  if test ! -f "$as_myself"; then
 
5348
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
5349
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
5350
   { (exit 1); exit 1; }; }
 
5351
  fi
 
5352
  case $CONFIG_SHELL in
 
5353
  '')
 
5354
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5355
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
5356
do
 
5357
  IFS=$as_save_IFS
 
5358
  test -z "$as_dir" && as_dir=.
 
5359
  for as_base in sh bash ksh sh5; do
 
5360
         case $as_dir in
 
5361
         /*)
 
5362
           if ("$as_dir/$as_base" -c '
 
5363
  as_lineno_1=$LINENO
 
5364
  as_lineno_2=$LINENO
 
5365
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
5366
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
5367
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
5368
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
5369
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
5370
             CONFIG_SHELL=$as_dir/$as_base
 
5371
             export CONFIG_SHELL
 
5372
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
5373
           fi;;
 
5374
         esac
 
5375
       done
 
5376
done
 
5377
;;
 
5378
  esac
 
5379
 
 
5380
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
5381
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
5382
  # line-number line before each line; the second 'sed' does the real
 
5383
  # work.  The second script uses 'N' to pair each line-number line
 
5384
  # with the numbered line, and appends trailing '-' during
 
5385
  # substitution so that $LINENO is not a special case at line end.
 
5386
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
5387
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
5388
  sed '=' <$as_myself |
 
5389
    sed '
 
5390
      N
 
5391
      s,$,-,
 
5392
      : loop
 
5393
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
5394
      t loop
 
5395
      s,-$,,
 
5396
      s,^['$as_cr_digits']*\n,,
 
5397
    ' >$as_me.lineno &&
 
5398
  chmod +x $as_me.lineno ||
 
5399
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
5400
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
5401
   { (exit 1); exit 1; }; }
 
5402
 
 
5403
  # Don't try to exec as it changes $[0], causing all sort of problems
 
5404
  # (the dirname of $[0] is not the place where we might find the
 
5405
  # original and so on.  Autoconf is especially sensible to this).
 
5406
  . ./$as_me.lineno
 
5407
  # Exit status is that of the last command.
 
5408
  exit
 
5409
}
 
5410
 
 
5411
 
 
5412
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
5413
  *c*,-n*) ECHO_N= ECHO_C='
 
5414
' ECHO_T='      ' ;;
 
5415
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
5416
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
5417
esac
 
5418
 
 
5419
if expr a : '\(a\)' >/dev/null 2>&1; then
 
5420
  as_expr=expr
 
5421
else
 
5422
  as_expr=false
 
5423
fi
 
5424
 
 
5425
rm -f conf$$ conf$$.exe conf$$.file
 
5426
echo >conf$$.file
 
5427
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
5428
  # We could just check for DJGPP; but this test a) works b) is more generic
 
5429
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
5430
  if test -f conf$$.exe; then
 
5431
    # Don't use ln at all; we don't have any links
 
5432
    as_ln_s='cp -p'
 
5433
  else
 
5434
    as_ln_s='ln -s'
 
5435
  fi
 
5436
elif ln conf$$.file conf$$ 2>/dev/null; then
 
5437
  as_ln_s=ln
 
5438
else
 
5439
  as_ln_s='cp -p'
 
5440
fi
 
5441
rm -f conf$$ conf$$.exe conf$$.file
 
5442
 
 
5443
if mkdir -p . 2>/dev/null; then
 
5444
  as_mkdir_p=:
 
5445
else
 
5446
  test -d ./-p && rmdir ./-p
 
5447
  as_mkdir_p=false
 
5448
fi
 
5449
 
 
5450
as_executable_p="test -f"
 
5451
 
 
5452
# Sed expression to map a string onto a valid CPP name.
 
5453
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
5454
 
 
5455
# Sed expression to map a string onto a valid variable name.
 
5456
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
5457
 
 
5458
 
 
5459
# IFS
 
5460
# We need space, tab and new line, in precisely that order.
 
5461
as_nl='
 
5462
'
 
5463
IFS="   $as_nl"
 
5464
 
 
5465
# CDPATH.
 
5466
$as_unset CDPATH
 
5467
 
 
5468
exec 6>&1
 
5469
 
 
5470
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
5471
# report actual input values of CONFIG_FILES etc. instead of their
 
5472
# values after options handling.  Logging --version etc. is OK.
 
5473
exec 5>>config.log
 
5474
{
 
5475
  echo
 
5476
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
5477
## Running $as_me. ##
 
5478
_ASBOX
 
5479
} >&5
 
5480
cat >&5 <<_CSEOF
 
5481
 
 
5482
This file was extended by AdvanceCOMP $as_me 1.15, which was
 
5483
generated by GNU Autoconf 2.59.  Invocation command line was
 
5484
 
 
5485
  CONFIG_FILES    = $CONFIG_FILES
 
5486
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
5487
  CONFIG_LINKS    = $CONFIG_LINKS
 
5488
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
5489
  $ $0 $@
 
5490
 
 
5491
_CSEOF
 
5492
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
5493
echo >&5
 
5494
_ACEOF
 
5495
 
 
5496
# Files that config.status was made for.
 
5497
if test -n "$ac_config_files"; then
 
5498
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
5499
fi
 
5500
 
 
5501
if test -n "$ac_config_headers"; then
 
5502
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
5503
fi
 
5504
 
 
5505
if test -n "$ac_config_links"; then
 
5506
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
5507
fi
 
5508
 
 
5509
if test -n "$ac_config_commands"; then
 
5510
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
5511
fi
 
5512
 
 
5513
cat >>$CONFIG_STATUS <<\_ACEOF
 
5514
 
 
5515
ac_cs_usage="\
 
5516
\`$as_me' instantiates files from templates according to the
 
5517
current configuration.
 
5518
 
 
5519
Usage: $0 [OPTIONS] [FILE]...
 
5520
 
 
5521
  -h, --help       print this help, then exit
 
5522
  -V, --version    print version number, then exit
 
5523
  -q, --quiet      do not print progress messages
 
5524
  -d, --debug      don't remove temporary files
 
5525
      --recheck    update $as_me by reconfiguring in the same conditions
 
5526
  --file=FILE[:TEMPLATE]
 
5527
                   instantiate the configuration file FILE
 
5528
  --header=FILE[:TEMPLATE]
 
5529
                   instantiate the configuration header FILE
 
5530
 
 
5531
Configuration files:
 
5532
$config_files
 
5533
 
 
5534
Configuration headers:
 
5535
$config_headers
 
5536
 
 
5537
Report bugs to <bug-autoconf@gnu.org>."
 
5538
_ACEOF
 
5539
 
 
5540
cat >>$CONFIG_STATUS <<_ACEOF
 
5541
ac_cs_version="\\
 
5542
AdvanceCOMP config.status 1.15
 
5543
configured by $0, generated by GNU Autoconf 2.59,
 
5544
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
5545
 
 
5546
Copyright (C) 2003 Free Software Foundation, Inc.
 
5547
This config.status script is free software; the Free Software Foundation
 
5548
gives unlimited permission to copy, distribute and modify it."
 
5549
srcdir=$srcdir
 
5550
INSTALL="$INSTALL"
 
5551
_ACEOF
 
5552
 
 
5553
cat >>$CONFIG_STATUS <<\_ACEOF
 
5554
# If no file are specified by the user, then we need to provide default
 
5555
# value.  By we need to know if files were specified by the user.
 
5556
ac_need_defaults=:
 
5557
while test $# != 0
 
5558
do
 
5559
  case $1 in
 
5560
  --*=*)
 
5561
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
5562
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
5563
    ac_shift=:
 
5564
    ;;
 
5565
  -*)
 
5566
    ac_option=$1
 
5567
    ac_optarg=$2
 
5568
    ac_shift=shift
 
5569
    ;;
 
5570
  *) # This is not an option, so the user has probably given explicit
 
5571
     # arguments.
 
5572
     ac_option=$1
 
5573
     ac_need_defaults=false;;
 
5574
  esac
 
5575
 
 
5576
  case $ac_option in
 
5577
  # Handling of the options.
 
5578
_ACEOF
 
5579
cat >>$CONFIG_STATUS <<\_ACEOF
 
5580
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
5581
    ac_cs_recheck=: ;;
 
5582
  --version | --vers* | -V )
 
5583
    echo "$ac_cs_version"; exit 0 ;;
 
5584
  --he | --h)
 
5585
    # Conflict between --help and --header
 
5586
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
5587
Try \`$0 --help' for more information." >&5
 
5588
echo "$as_me: error: ambiguous option: $1
 
5589
Try \`$0 --help' for more information." >&2;}
 
5590
   { (exit 1); exit 1; }; };;
 
5591
  --help | --hel | -h )
 
5592
    echo "$ac_cs_usage"; exit 0 ;;
 
5593
  --debug | --d* | -d )
 
5594
    debug=: ;;
 
5595
  --file | --fil | --fi | --f )
 
5596
    $ac_shift
 
5597
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
5598
    ac_need_defaults=false;;
 
5599
  --header | --heade | --head | --hea )
 
5600
    $ac_shift
 
5601
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
5602
    ac_need_defaults=false;;
 
5603
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
5604
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
5605
    ac_cs_silent=: ;;
 
5606
 
 
5607
  # This is an error.
 
5608
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
5609
Try \`$0 --help' for more information." >&5
 
5610
echo "$as_me: error: unrecognized option: $1
 
5611
Try \`$0 --help' for more information." >&2;}
 
5612
   { (exit 1); exit 1; }; } ;;
 
5613
 
 
5614
  *) ac_config_targets="$ac_config_targets $1" ;;
 
5615
 
 
5616
  esac
 
5617
  shift
 
5618
done
 
5619
 
 
5620
ac_configure_extra_args=
 
5621
 
 
5622
if $ac_cs_silent; then
 
5623
  exec 6>/dev/null
 
5624
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
5625
fi
 
5626
 
 
5627
_ACEOF
 
5628
cat >>$CONFIG_STATUS <<_ACEOF
 
5629
if \$ac_cs_recheck; then
 
5630
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
5631
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
5632
fi
 
5633
 
 
5634
_ACEOF
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
cat >>$CONFIG_STATUS <<\_ACEOF
 
5641
for ac_config_target in $ac_config_targets
 
5642
do
 
5643
  case "$ac_config_target" in
 
5644
  # Handling of arguments.
 
5645
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
5646
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
5647
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
5648
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
5649
   { (exit 1); exit 1; }; };;
 
5650
  esac
 
5651
done
 
5652
 
 
5653
# If the user did not use the arguments to specify the items to instantiate,
 
5654
# then the envvar interface is used.  Set only those that are not.
 
5655
# We use the long form for the default assignment because of an extremely
 
5656
# bizarre bug on SunOS 4.1.3.
 
5657
if $ac_need_defaults; then
 
5658
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
5659
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
5660
fi
 
5661
 
 
5662
# Have a temporary directory for convenience.  Make it in the build tree
 
5663
# simply because there is no reason to put it here, and in addition,
 
5664
# creating and moving files from /tmp can sometimes cause problems.
 
5665
# Create a temporary directory, and hook for its removal unless debugging.
 
5666
$debug ||
 
5667
{
 
5668
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
5669
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
5670
}
 
5671
 
 
5672
# Create a (secure) tmp directory for tmp files.
 
5673
 
 
5674
{
 
5675
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
5676
  test -n "$tmp" && test -d "$tmp"
 
5677
}  ||
 
5678
{
 
5679
  tmp=./confstat$$-$RANDOM
 
5680
  (umask 077 && mkdir $tmp)
 
5681
} ||
 
5682
{
 
5683
   echo "$me: cannot create a temporary directory in ." >&2
 
5684
   { (exit 1); exit 1; }
 
5685
}
 
5686
 
 
5687
_ACEOF
 
5688
 
 
5689
cat >>$CONFIG_STATUS <<_ACEOF
 
5690
 
 
5691
#
 
5692
# CONFIG_FILES section.
 
5693
#
 
5694
 
 
5695
# No need to generate the scripts if there are no CONFIG_FILES.
 
5696
# This happens for instance when ./config.status config.h
 
5697
if test -n "\$CONFIG_FILES"; then
 
5698
  # Protect against being on the right side of a sed subst in config.status.
 
5699
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
5700
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
5701
s,@SHELL@,$SHELL,;t t
 
5702
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
5703
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
5704
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
5705
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
5706
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
5707
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
5708
s,@exec_prefix@,$exec_prefix,;t t
 
5709
s,@prefix@,$prefix,;t t
 
5710
s,@program_transform_name@,$program_transform_name,;t t
 
5711
s,@bindir@,$bindir,;t t
 
5712
s,@sbindir@,$sbindir,;t t
 
5713
s,@libexecdir@,$libexecdir,;t t
 
5714
s,@datadir@,$datadir,;t t
 
5715
s,@sysconfdir@,$sysconfdir,;t t
 
5716
s,@sharedstatedir@,$sharedstatedir,;t t
 
5717
s,@localstatedir@,$localstatedir,;t t
 
5718
s,@libdir@,$libdir,;t t
 
5719
s,@includedir@,$includedir,;t t
 
5720
s,@oldincludedir@,$oldincludedir,;t t
 
5721
s,@infodir@,$infodir,;t t
 
5722
s,@mandir@,$mandir,;t t
 
5723
s,@build_alias@,$build_alias,;t t
 
5724
s,@host_alias@,$host_alias,;t t
 
5725
s,@target_alias@,$target_alias,;t t
 
5726
s,@DEFS@,$DEFS,;t t
 
5727
s,@ECHO_C@,$ECHO_C,;t t
 
5728
s,@ECHO_N@,$ECHO_N,;t t
 
5729
s,@ECHO_T@,$ECHO_T,;t t
 
5730
s,@LIBS@,$LIBS,;t t
 
5731
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
5732
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
5733
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
5734
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
5735
s,@PACKAGE@,$PACKAGE,;t t
 
5736
s,@VERSION@,$VERSION,;t t
 
5737
s,@ACLOCAL@,$ACLOCAL,;t t
 
5738
s,@AUTOCONF@,$AUTOCONF,;t t
 
5739
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
5740
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
5741
s,@MAKEINFO@,$MAKEINFO,;t t
 
5742
s,@install_sh@,$install_sh,;t t
 
5743
s,@STRIP@,$STRIP,;t t
 
5744
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
5745
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
5746
s,@mkdir_p@,$mkdir_p,;t t
 
5747
s,@AWK@,$AWK,;t t
 
5748
s,@SET_MAKE@,$SET_MAKE,;t t
 
5749
s,@am__leading_dot@,$am__leading_dot,;t t
 
5750
s,@AMTAR@,$AMTAR,;t t
 
5751
s,@am__tar@,$am__tar,;t t
 
5752
s,@am__untar@,$am__untar,;t t
 
5753
s,@build@,$build,;t t
 
5754
s,@build_cpu@,$build_cpu,;t t
 
5755
s,@build_vendor@,$build_vendor,;t t
 
5756
s,@build_os@,$build_os,;t t
 
5757
s,@host@,$host,;t t
 
5758
s,@host_cpu@,$host_cpu,;t t
 
5759
s,@host_vendor@,$host_vendor,;t t
 
5760
s,@host_os@,$host_os,;t t
 
5761
s,@CC@,$CC,;t t
 
5762
s,@CFLAGS@,$CFLAGS,;t t
 
5763
s,@LDFLAGS@,$LDFLAGS,;t t
 
5764
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
5765
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
5766
s,@EXEEXT@,$EXEEXT,;t t
 
5767
s,@OBJEXT@,$OBJEXT,;t t
 
5768
s,@CXX@,$CXX,;t t
 
5769
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
5770
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
5771
s,@TAR@,$TAR,;t t
 
5772
s,@GZIP@,$GZIP,;t t
 
5773
s,@GROFF@,$GROFF,;t t
 
5774
s,@COL@,$COL,;t t
 
5775
s,@CPP@,$CPP,;t t
 
5776
s,@EGREP@,$EGREP,;t t
 
5777
s,@LIBOBJS@,$LIBOBJS,;t t
 
5778
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
5779
CEOF
 
5780
 
 
5781
_ACEOF
 
5782
 
 
5783
  cat >>$CONFIG_STATUS <<\_ACEOF
 
5784
  # Split the substitutions into bite-sized pieces for seds with
 
5785
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
5786
  ac_max_sed_lines=48
 
5787
  ac_sed_frag=1 # Number of current file.
 
5788
  ac_beg=1 # First line for current file.
 
5789
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
5790
  ac_more_lines=:
 
5791
  ac_sed_cmds=
 
5792
  while $ac_more_lines; do
 
5793
    if test $ac_beg -gt 1; then
 
5794
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
5795
    else
 
5796
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
5797
    fi
 
5798
    if test ! -s $tmp/subs.frag; then
 
5799
      ac_more_lines=false
 
5800
    else
 
5801
      # The purpose of the label and of the branching condition is to
 
5802
      # speed up the sed processing (if there are no `@' at all, there
 
5803
      # is no need to browse any of the substitutions).
 
5804
      # These are the two extra sed commands mentioned above.
 
5805
      (echo ':t
 
5806
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
5807
      if test -z "$ac_sed_cmds"; then
 
5808
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
5809
      else
 
5810
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
5811
      fi
 
5812
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
5813
      ac_beg=$ac_end
 
5814
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
5815
    fi
 
5816
  done
 
5817
  if test -z "$ac_sed_cmds"; then
 
5818
    ac_sed_cmds=cat
 
5819
  fi
 
5820
fi # test -n "$CONFIG_FILES"
 
5821
 
 
5822
_ACEOF
 
5823
cat >>$CONFIG_STATUS <<\_ACEOF
 
5824
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
5825
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
5826
  case $ac_file in
 
5827
  - | *:- | *:-:* ) # input from stdin
 
5828
        cat >$tmp/stdin
 
5829
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
5830
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
5831
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
5832
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
5833
  * )   ac_file_in=$ac_file.in ;;
 
5834
  esac
 
5835
 
 
5836
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
5837
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
5838
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5839
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
5840
         X"$ac_file" : 'X\(//\)$' \| \
 
5841
         X"$ac_file" : 'X\(/\)' \| \
 
5842
         .     : '\(.\)' 2>/dev/null ||
 
5843
echo X"$ac_file" |
 
5844
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5845
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5846
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5847
          /^X\(\/\).*/{ s//\1/; q; }
 
5848
          s/.*/./; q'`
 
5849
  { if $as_mkdir_p; then
 
5850
    mkdir -p "$ac_dir"
 
5851
  else
 
5852
    as_dir="$ac_dir"
 
5853
    as_dirs=
 
5854
    while test ! -d "$as_dir"; do
 
5855
      as_dirs="$as_dir $as_dirs"
 
5856
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
5857
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5858
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
5859
         X"$as_dir" : 'X\(//\)$' \| \
 
5860
         X"$as_dir" : 'X\(/\)' \| \
 
5861
         .     : '\(.\)' 2>/dev/null ||
 
5862
echo X"$as_dir" |
 
5863
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5864
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5865
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5866
          /^X\(\/\).*/{ s//\1/; q; }
 
5867
          s/.*/./; q'`
 
5868
    done
 
5869
    test ! -n "$as_dirs" || mkdir $as_dirs
 
5870
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
5871
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
5872
   { (exit 1); exit 1; }; }; }
 
5873
 
 
5874
  ac_builddir=.
 
5875
 
 
5876
if test "$ac_dir" != .; then
 
5877
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
5878
  # A "../" for each directory in $ac_dir_suffix.
 
5879
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
5880
else
 
5881
  ac_dir_suffix= ac_top_builddir=
 
5882
fi
 
5883
 
 
5884
case $srcdir in
 
5885
  .)  # No --srcdir option.  We are building in place.
 
5886
    ac_srcdir=.
 
5887
    if test -z "$ac_top_builddir"; then
 
5888
       ac_top_srcdir=.
 
5889
    else
 
5890
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
5891
    fi ;;
 
5892
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
5893
    ac_srcdir=$srcdir$ac_dir_suffix;
 
5894
    ac_top_srcdir=$srcdir ;;
 
5895
  *) # Relative path.
 
5896
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
5897
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
5898
esac
 
5899
 
 
5900
# Do not use `cd foo && pwd` to compute absolute paths, because
 
5901
# the directories may not exist.
 
5902
case `pwd` in
 
5903
.) ac_abs_builddir="$ac_dir";;
 
5904
*)
 
5905
  case "$ac_dir" in
 
5906
  .) ac_abs_builddir=`pwd`;;
 
5907
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
5908
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
5909
  esac;;
 
5910
esac
 
5911
case $ac_abs_builddir in
 
5912
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
5913
*)
 
5914
  case ${ac_top_builddir}. in
 
5915
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
5916
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
5917
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
5918
  esac;;
 
5919
esac
 
5920
case $ac_abs_builddir in
 
5921
.) ac_abs_srcdir=$ac_srcdir;;
 
5922
*)
 
5923
  case $ac_srcdir in
 
5924
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
5925
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
5926
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
5927
  esac;;
 
5928
esac
 
5929
case $ac_abs_builddir in
 
5930
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
5931
*)
 
5932
  case $ac_top_srcdir in
 
5933
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
5934
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
5935
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
5936
  esac;;
 
5937
esac
 
5938
 
 
5939
 
 
5940
  case $INSTALL in
 
5941
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
5942
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
5943
  esac
 
5944
 
 
5945
  if test x"$ac_file" != x-; then
 
5946
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
5947
echo "$as_me: creating $ac_file" >&6;}
 
5948
    rm -f "$ac_file"
 
5949
  fi
 
5950
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
5951
  # use $as_me), people would be surprised to read:
 
5952
  #    /* config.h.  Generated by config.status.  */
 
5953
  if test x"$ac_file" = x-; then
 
5954
    configure_input=
 
5955
  else
 
5956
    configure_input="$ac_file.  "
 
5957
  fi
 
5958
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
5959
                                     sed 's,.*/,,'` by configure."
 
5960
 
 
5961
  # First look for the input files in the build tree, otherwise in the
 
5962
  # src tree.
 
5963
  ac_file_inputs=`IFS=:
 
5964
    for f in $ac_file_in; do
 
5965
      case $f in
 
5966
      -) echo $tmp/stdin ;;
 
5967
      [\\/$]*)
 
5968
         # Absolute (can't be DOS-style, as IFS=:)
 
5969
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
5970
echo "$as_me: error: cannot find input file: $f" >&2;}
 
5971
   { (exit 1); exit 1; }; }
 
5972
         echo "$f";;
 
5973
      *) # Relative
 
5974
         if test -f "$f"; then
 
5975
           # Build tree
 
5976
           echo "$f"
 
5977
         elif test -f "$srcdir/$f"; then
 
5978
           # Source tree
 
5979
           echo "$srcdir/$f"
 
5980
         else
 
5981
           # /dev/null tree
 
5982
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
5983
echo "$as_me: error: cannot find input file: $f" >&2;}
 
5984
   { (exit 1); exit 1; }; }
 
5985
         fi;;
 
5986
      esac
 
5987
    done` || { (exit 1); exit 1; }
 
5988
_ACEOF
 
5989
cat >>$CONFIG_STATUS <<_ACEOF
 
5990
  sed "$ac_vpsub
 
5991
$extrasub
 
5992
_ACEOF
 
5993
cat >>$CONFIG_STATUS <<\_ACEOF
 
5994
:t
 
5995
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
5996
s,@configure_input@,$configure_input,;t t
 
5997
s,@srcdir@,$ac_srcdir,;t t
 
5998
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
5999
s,@top_srcdir@,$ac_top_srcdir,;t t
 
6000
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
6001
s,@builddir@,$ac_builddir,;t t
 
6002
s,@abs_builddir@,$ac_abs_builddir,;t t
 
6003
s,@top_builddir@,$ac_top_builddir,;t t
 
6004
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
6005
s,@INSTALL@,$ac_INSTALL,;t t
 
6006
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
6007
  rm -f $tmp/stdin
 
6008
  if test x"$ac_file" != x-; then
 
6009
    mv $tmp/out $ac_file
 
6010
  else
 
6011
    cat $tmp/out
 
6012
    rm -f $tmp/out
 
6013
  fi
 
6014
 
 
6015
done
 
6016
_ACEOF
 
6017
cat >>$CONFIG_STATUS <<\_ACEOF
 
6018
 
 
6019
#
 
6020
# CONFIG_HEADER section.
 
6021
#
 
6022
 
 
6023
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
6024
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
6025
#
 
6026
# ac_d sets the value in "#define NAME VALUE" lines.
 
6027
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
6028
ac_dB='[         ].*$,\1#\2'
 
6029
ac_dC=' '
 
6030
ac_dD=',;t'
 
6031
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
6032
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6033
ac_uB='$,\1#\2define\3'
 
6034
ac_uC=' '
 
6035
ac_uD=',;t'
 
6036
 
 
6037
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
6038
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
6039
  case $ac_file in
 
6040
  - | *:- | *:-:* ) # input from stdin
 
6041
        cat >$tmp/stdin
 
6042
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
6043
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
6044
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
6045
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
6046
  * )   ac_file_in=$ac_file.in ;;
 
6047
  esac
 
6048
 
 
6049
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
6050
echo "$as_me: creating $ac_file" >&6;}
 
6051
 
 
6052
  # First look for the input files in the build tree, otherwise in the
 
6053
  # src tree.
 
6054
  ac_file_inputs=`IFS=:
 
6055
    for f in $ac_file_in; do
 
6056
      case $f in
 
6057
      -) echo $tmp/stdin ;;
 
6058
      [\\/$]*)
 
6059
         # Absolute (can't be DOS-style, as IFS=:)
 
6060
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6061
echo "$as_me: error: cannot find input file: $f" >&2;}
 
6062
   { (exit 1); exit 1; }; }
 
6063
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
6064
         echo "$f";;
 
6065
      *) # Relative
 
6066
         if test -f "$f"; then
 
6067
           # Build tree
 
6068
           echo "$f"
 
6069
         elif test -f "$srcdir/$f"; then
 
6070
           # Source tree
 
6071
           echo "$srcdir/$f"
 
6072
         else
 
6073
           # /dev/null tree
 
6074
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6075
echo "$as_me: error: cannot find input file: $f" >&2;}
 
6076
   { (exit 1); exit 1; }; }
 
6077
         fi;;
 
6078
      esac
 
6079
    done` || { (exit 1); exit 1; }
 
6080
  # Remove the trailing spaces.
 
6081
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
6082
 
 
6083
_ACEOF
 
6084
 
 
6085
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
6086
# `conftest.undefs', that substitutes the proper values into
 
6087
# config.h.in to produce config.h.  The first handles `#define'
 
6088
# templates, and the second `#undef' templates.
 
6089
# And first: Protect against being on the right side of a sed subst in
 
6090
# config.status.  Protect against being in an unquoted here document
 
6091
# in config.status.
 
6092
rm -f conftest.defines conftest.undefs
 
6093
# Using a here document instead of a string reduces the quoting nightmare.
 
6094
# Putting comments in sed scripts is not portable.
 
6095
#
 
6096
# `end' is used to avoid that the second main sed command (meant for
 
6097
# 0-ary CPP macros) applies to n-ary macro definitions.
 
6098
# See the Autoconf documentation for `clear'.
 
6099
cat >confdef2sed.sed <<\_ACEOF
 
6100
s/[\\&,]/\\&/g
 
6101
s,[\\$`],\\&,g
 
6102
t clear
 
6103
: clear
 
6104
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
6105
t end
 
6106
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
6107
: end
 
6108
_ACEOF
 
6109
# If some macros were called several times there might be several times
 
6110
# the same #defines, which is useless.  Nevertheless, we may not want to
 
6111
# sort them, since we want the *last* AC-DEFINE to be honored.
 
6112
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
6113
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
6114
rm -f confdef2sed.sed
 
6115
 
 
6116
# This sed command replaces #undef with comments.  This is necessary, for
 
6117
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
6118
# on some systems where configure will not decide to define it.
 
6119
cat >>conftest.undefs <<\_ACEOF
 
6120
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
6121
_ACEOF
 
6122
 
 
6123
# Break up conftest.defines because some shells have a limit on the size
 
6124
# of here documents, and old seds have small limits too (100 cmds).
 
6125
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
6126
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
6127
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
6128
echo '  :' >>$CONFIG_STATUS
 
6129
rm -f conftest.tail
 
6130
while grep . conftest.defines >/dev/null
 
6131
do
 
6132
  # Write a limited-size here document to $tmp/defines.sed.
 
6133
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
6134
  # Speed up: don't consider the non `#define' lines.
 
6135
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
6136
  # Work around the forget-to-reset-the-flag bug.
 
6137
  echo 't clr' >>$CONFIG_STATUS
 
6138
  echo ': clr' >>$CONFIG_STATUS
 
6139
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
6140
  echo 'CEOF
 
6141
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
6142
  rm -f $tmp/in
 
6143
  mv $tmp/out $tmp/in
 
6144
' >>$CONFIG_STATUS
 
6145
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
6146
  rm -f conftest.defines
 
6147
  mv conftest.tail conftest.defines
 
6148
done
 
6149
rm -f conftest.defines
 
6150
echo '  fi # grep' >>$CONFIG_STATUS
 
6151
echo >>$CONFIG_STATUS
 
6152
 
 
6153
# Break up conftest.undefs because some shells have a limit on the size
 
6154
# of here documents, and old seds have small limits too (100 cmds).
 
6155
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
6156
rm -f conftest.tail
 
6157
while grep . conftest.undefs >/dev/null
 
6158
do
 
6159
  # Write a limited-size here document to $tmp/undefs.sed.
 
6160
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
6161
  # Speed up: don't consider the non `#undef'
 
6162
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
6163
  # Work around the forget-to-reset-the-flag bug.
 
6164
  echo 't clr' >>$CONFIG_STATUS
 
6165
  echo ': clr' >>$CONFIG_STATUS
 
6166
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
6167
  echo 'CEOF
 
6168
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
6169
  rm -f $tmp/in
 
6170
  mv $tmp/out $tmp/in
 
6171
' >>$CONFIG_STATUS
 
6172
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
6173
  rm -f conftest.undefs
 
6174
  mv conftest.tail conftest.undefs
 
6175
done
 
6176
rm -f conftest.undefs
 
6177
 
 
6178
cat >>$CONFIG_STATUS <<\_ACEOF
 
6179
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
6180
  # use $as_me), people would be surprised to read:
 
6181
  #    /* config.h.  Generated by config.status.  */
 
6182
  if test x"$ac_file" = x-; then
 
6183
    echo "/* Generated by configure.  */" >$tmp/config.h
 
6184
  else
 
6185
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
6186
  fi
 
6187
  cat $tmp/in >>$tmp/config.h
 
6188
  rm -f $tmp/in
 
6189
  if test x"$ac_file" != x-; then
 
6190
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
6191
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
6192
echo "$as_me: $ac_file is unchanged" >&6;}
 
6193
    else
 
6194
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
6195
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6196
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
6197
         X"$ac_file" : 'X\(//\)$' \| \
 
6198
         X"$ac_file" : 'X\(/\)' \| \
 
6199
         .     : '\(.\)' 2>/dev/null ||
 
6200
echo X"$ac_file" |
 
6201
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6202
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6203
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6204
          /^X\(\/\).*/{ s//\1/; q; }
 
6205
          s/.*/./; q'`
 
6206
      { if $as_mkdir_p; then
 
6207
    mkdir -p "$ac_dir"
 
6208
  else
 
6209
    as_dir="$ac_dir"
 
6210
    as_dirs=
 
6211
    while test ! -d "$as_dir"; do
 
6212
      as_dirs="$as_dir $as_dirs"
 
6213
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
6214
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6215
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6216
         X"$as_dir" : 'X\(//\)$' \| \
 
6217
         X"$as_dir" : 'X\(/\)' \| \
 
6218
         .     : '\(.\)' 2>/dev/null ||
 
6219
echo X"$as_dir" |
 
6220
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6221
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6222
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6223
          /^X\(\/\).*/{ s//\1/; q; }
 
6224
          s/.*/./; q'`
 
6225
    done
 
6226
    test ! -n "$as_dirs" || mkdir $as_dirs
 
6227
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
6228
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
6229
   { (exit 1); exit 1; }; }; }
 
6230
 
 
6231
      rm -f $ac_file
 
6232
      mv $tmp/config.h $ac_file
 
6233
    fi
 
6234
  else
 
6235
    cat $tmp/config.h
 
6236
    rm -f $tmp/config.h
 
6237
  fi
 
6238
# Compute $ac_file's index in $config_headers.
 
6239
_am_stamp_count=1
 
6240
for _am_header in $config_headers :; do
 
6241
  case $_am_header in
 
6242
    $ac_file | $ac_file:* )
 
6243
      break ;;
 
6244
    * )
 
6245
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
6246
  esac
 
6247
done
 
6248
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
6249
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6250
         X$ac_file : 'X\(//\)[^/]' \| \
 
6251
         X$ac_file : 'X\(//\)$' \| \
 
6252
         X$ac_file : 'X\(/\)' \| \
 
6253
         .     : '\(.\)' 2>/dev/null ||
 
6254
echo X$ac_file |
 
6255
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6256
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6257
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6258
          /^X\(\/\).*/{ s//\1/; q; }
 
6259
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
6260
done
 
6261
_ACEOF
 
6262
 
 
6263
cat >>$CONFIG_STATUS <<\_ACEOF
 
6264
 
 
6265
{ (exit 0); exit 0; }
 
6266
_ACEOF
 
6267
chmod +x $CONFIG_STATUS
 
6268
ac_clean_files=$ac_clean_files_save
 
6269
 
 
6270
 
 
6271
# configure is writing to config.log, and then calls config.status.
 
6272
# config.status does its own redirection, appending to config.log.
 
6273
# Unfortunately, on DOS this fails, as config.log is still kept open
 
6274
# by configure, so config.status won't be able to write to it; its
 
6275
# output is simply discarded.  So we exec the FD to /dev/null,
 
6276
# effectively closing config.log, so it can be properly (re)opened and
 
6277
# appended to by config.status.  When coming back to configure, we
 
6278
# need to make the FD available again.
 
6279
if test "$no_create" != yes; then
 
6280
  ac_cs_success=:
 
6281
  ac_config_status_args=
 
6282
  test "$silent" = yes &&
 
6283
    ac_config_status_args="$ac_config_status_args --quiet"
 
6284
  exec 5>/dev/null
 
6285
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
6286
  exec 5>>config.log
 
6287
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
6288
  # would make configure fail if this is the last instruction.
 
6289
  $ac_cs_success || { (exit 1); exit 1; }
 
6290
fi
 
6291
 
 
6292