OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_62/] [or1ksim/] [configure] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.