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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_1_x/] [or1ksim/] [configure] - Blame information for rev 1768

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

powered by: WebSVN 2.1.0

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