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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 jrydberg
#! /bin/sh
2 1249 lampret
# From configure.in for or1ksim-1.2, version 2.14, from autoconf version 2.52.
3 7 jrydberg
# Guess values for system-dependent variables and create Makefiles.
4 1249 lampret
# Generated by Autoconf 2.52.
5 7 jrydberg
#
6 1249 lampret
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 1242 hpanther
# Free Software Foundation, Inc.
8 7 jrydberg
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
 
11 1242 hpanther
# Avoid depending upon Character Ranges.
12
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15
as_cr_digits='0123456789'
16
as_cr_alnum=$as_cr_Letters$as_cr_digits
17
 
18 1249 lampret
# Sed expression to map a string onto a valid variable name.
19
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 1242 hpanther
 
21 1249 lampret
# Sed expression to map a string onto a valid CPP name.
22
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 1242 hpanther
 
24 1249 lampret
# Be Bourne compatible
25
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26
  emulate sh
27
  NULLCMD=:
28
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29
  set -o posix
30
fi
31 1242 hpanther
 
32 1249 lampret
# Name of the executable.
33
as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 1242 hpanther
 
35
if expr a : '\(a\)' >/dev/null 2>&1; then
36
  as_expr=expr
37
else
38
  as_expr=false
39
fi
40
 
41
rm -f conf$$ conf$$.exe conf$$.file
42
echo >conf$$.file
43
if ln -s conf$$.file conf$$ 2>/dev/null; then
44
  # We could just check for DJGPP; but this test a) works b) is more generic
45
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46
  if test -f conf$$.exe; then
47
    # Don't use ln at all; we don't have any links
48
    as_ln_s='cp -p'
49
  else
50
    as_ln_s='ln -s'
51
  fi
52
elif ln conf$$.file conf$$ 2>/dev/null; then
53
  as_ln_s=ln
54
else
55
  as_ln_s='cp -p'
56
fi
57
rm -f conf$$ conf$$.exe conf$$.file
58
 
59 1249 lampret
as_executable_p="test -f"
60
 
61
# Support unset when possible.
62
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63
  as_unset=unset
64 1242 hpanther
else
65 1249 lampret
  as_unset=false
66 1242 hpanther
fi
67
 
68 1249 lampret
# NLS nuisances.
69
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 1242 hpanther
 
78
# IFS
79
# We need space, tab and new line, in precisely that order.
80
as_nl='
81
'
82
IFS="   $as_nl"
83
 
84
# CDPATH.
85 1249 lampret
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 1242 hpanther
 
87
# Name of the host.
88
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89
# so uname gets run too.
90
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
 
92
exec 6>&1
93
 
94
#
95
# Initializations.
96
#
97 7 jrydberg
ac_default_prefix=/usr/local
98 1242 hpanther
cross_compiling=no
99
subdirs=
100 1249 lampret
MFLAGS= MAKEFLAGS=
101 1242 hpanther
SHELL=${CONFIG_SHELL-/bin/sh}
102 7 jrydberg
 
103 1242 hpanther
# Maximum number of lines to put in a shell here document.
104
# This variable seems obsolete.  It should probably be removed, and
105
# only ac_max_sed_lines should be used.
106
: ${ac_max_here_lines=38}
107
 
108
ac_unique_file="cpu/or32/execute.c"
109
# Factoring default headers for most tests.
110
ac_includes_default="\
111
#include 
112
#if HAVE_SYS_TYPES_H
113
# include 
114
#endif
115
#if HAVE_SYS_STAT_H
116
# include 
117
#endif
118
#if STDC_HEADERS
119
# include 
120
# include 
121
#else
122
# if HAVE_STDLIB_H
123
#  include 
124
# endif
125
#endif
126
#if HAVE_STRING_H
127
# if !STDC_HEADERS && HAVE_MEMORY_H
128
#  include 
129
# endif
130
# include 
131
#endif
132
#if HAVE_STRINGS_H
133
# include 
134
#endif
135
#if HAVE_INTTYPES_H
136
# include 
137
#else
138
# if HAVE_STDINT_H
139
#  include 
140
# endif
141
#endif
142
#if HAVE_UNISTD_H
143
# include 
144
#endif"
145
 
146 7 jrydberg
# Initialize some variables set by options.
147 1242 hpanther
ac_init_help=
148
ac_init_version=false
149 7 jrydberg
# The variables have the same names as the options, with
150
# dashes changed to underlines.
151 1242 hpanther
cache_file=/dev/null
152 7 jrydberg
exec_prefix=NONE
153
no_create=
154
no_recursion=
155
prefix=NONE
156
program_prefix=NONE
157
program_suffix=NONE
158
program_transform_name=s,x,x,
159
silent=
160
site=
161
srcdir=
162
verbose=
163
x_includes=NONE
164
x_libraries=NONE
165 1242 hpanther
 
166
# Installation directory options.
167
# These are left unexpanded so users can "make install exec_prefix=/foo"
168
# and all the variables that are supposed to be based on exec_prefix
169
# by default will actually change.
170
# Use braces instead of parens because sh, perl, etc. also accept them.
171 7 jrydberg
bindir='${exec_prefix}/bin'
172
sbindir='${exec_prefix}/sbin'
173
libexecdir='${exec_prefix}/libexec'
174
datadir='${prefix}/share'
175
sysconfdir='${prefix}/etc'
176
sharedstatedir='${prefix}/com'
177
localstatedir='${prefix}/var'
178
libdir='${exec_prefix}/lib'
179
includedir='${prefix}/include'
180
oldincludedir='/usr/include'
181
infodir='${prefix}/info'
182
mandir='${prefix}/man'
183
 
184 1249 lampret
# Identity of this package.
185
PACKAGE_NAME=
186
PACKAGE_TARNAME=
187
PACKAGE_VERSION=
188
PACKAGE_STRING=
189
PACKAGE_BUGREPORT=
190
 
191 7 jrydberg
ac_prev=
192
for ac_option
193
do
194
  # If the previous option needs an argument, assign it.
195
  if test -n "$ac_prev"; then
196
    eval "$ac_prev=\$ac_option"
197
    ac_prev=
198
    continue
199
  fi
200
 
201 1242 hpanther
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 7 jrydberg
 
203
  # Accept the important Cygnus configure options, so we can diagnose typos.
204
 
205 1242 hpanther
  case $ac_option in
206 7 jrydberg
 
207
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
208
    ac_prev=bindir ;;
209
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 1242 hpanther
    bindir=$ac_optarg ;;
211 7 jrydberg
 
212
  -build | --build | --buil | --bui | --bu)
213 1242 hpanther
    ac_prev=build_alias ;;
214 7 jrydberg
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 1242 hpanther
    build_alias=$ac_optarg ;;
216 7 jrydberg
 
217
  -cache-file | --cache-file | --cache-fil | --cache-fi \
218
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219
    ac_prev=cache_file ;;
220
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 1242 hpanther
    cache_file=$ac_optarg ;;
223 7 jrydberg
 
224 1242 hpanther
  --config-cache | -C)
225
    cache_file=config.cache ;;
226
 
227 7 jrydberg
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228
    ac_prev=datadir ;;
229
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230
  | --da=*)
231 1242 hpanther
    datadir=$ac_optarg ;;
232 7 jrydberg
 
233
  -disable-* | --disable-*)
234 1242 hpanther
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 7 jrydberg
    # Reject names that are not valid shell variable names.
236 1242 hpanther
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238
   { (exit 1); exit 1; }; }
239
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240
    eval "enable_$ac_feature=no" ;;
241 7 jrydberg
 
242
  -enable-* | --enable-*)
243 1242 hpanther
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 7 jrydberg
    # Reject names that are not valid shell variable names.
245 1242 hpanther
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247
   { (exit 1); exit 1; }; }
248
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249
    case $ac_option in
250
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 7 jrydberg
      *) ac_optarg=yes ;;
252
    esac
253 1242 hpanther
    eval "enable_$ac_feature='$ac_optarg'" ;;
254 7 jrydberg
 
255
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257
  | --exec | --exe | --ex)
258
    ac_prev=exec_prefix ;;
259
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261
  | --exec=* | --exe=* | --ex=*)
262 1242 hpanther
    exec_prefix=$ac_optarg ;;
263 7 jrydberg
 
264
  -gas | --gas | --ga | --g)
265
    # Obsolete; use --with-gas.
266
    with_gas=yes ;;
267
 
268 1242 hpanther
  -help | --help | --hel | --he | -h)
269
    ac_init_help=long ;;
270
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271
    ac_init_help=recursive ;;
272
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273
    ac_init_help=short ;;
274 7 jrydberg
 
275
  -host | --host | --hos | --ho)
276 1242 hpanther
    ac_prev=host_alias ;;
277 7 jrydberg
  -host=* | --host=* | --hos=* | --ho=*)
278 1242 hpanther
    host_alias=$ac_optarg ;;
279 7 jrydberg
 
280
  -includedir | --includedir | --includedi | --included | --include \
281
  | --includ | --inclu | --incl | --inc)
282
    ac_prev=includedir ;;
283
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284
  | --includ=* | --inclu=* | --incl=* | --inc=*)
285 1242 hpanther
    includedir=$ac_optarg ;;
286 7 jrydberg
 
287
  -infodir | --infodir | --infodi | --infod | --info | --inf)
288
    ac_prev=infodir ;;
289
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 1242 hpanther
    infodir=$ac_optarg ;;
291 7 jrydberg
 
292
  -libdir | --libdir | --libdi | --libd)
293
    ac_prev=libdir ;;
294
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 1242 hpanther
    libdir=$ac_optarg ;;
296 7 jrydberg
 
297
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298
  | --libexe | --libex | --libe)
299
    ac_prev=libexecdir ;;
300
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301
  | --libexe=* | --libex=* | --libe=*)
302 1242 hpanther
    libexecdir=$ac_optarg ;;
303 7 jrydberg
 
304
  -localstatedir | --localstatedir | --localstatedi | --localstated \
305
  | --localstate | --localstat | --localsta | --localst \
306
  | --locals | --local | --loca | --loc | --lo)
307
    ac_prev=localstatedir ;;
308
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 1242 hpanther
    localstatedir=$ac_optarg ;;
312 7 jrydberg
 
313
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314
    ac_prev=mandir ;;
315
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 1242 hpanther
    mandir=$ac_optarg ;;
317 7 jrydberg
 
318
  -nfp | --nfp | --nf)
319
    # Obsolete; use --without-fp.
320
    with_fp=no ;;
321
 
322
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 1249 lampret
  | --no-cr | --no-c)
324 7 jrydberg
    no_create=yes ;;
325
 
326
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328
    no_recursion=yes ;;
329
 
330
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332
  | --oldin | --oldi | --old | --ol | --o)
333
    ac_prev=oldincludedir ;;
334
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 1242 hpanther
    oldincludedir=$ac_optarg ;;
338 7 jrydberg
 
339
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340
    ac_prev=prefix ;;
341
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 1242 hpanther
    prefix=$ac_optarg ;;
343 7 jrydberg
 
344
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
345
  | --program-pre | --program-pr | --program-p)
346
    ac_prev=program_prefix ;;
347
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
348
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 1242 hpanther
    program_prefix=$ac_optarg ;;
350 7 jrydberg
 
351
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
352
  | --program-suf | --program-su | --program-s)
353
    ac_prev=program_suffix ;;
354
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
355
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 1242 hpanther
    program_suffix=$ac_optarg ;;
357 7 jrydberg
 
358
  -program-transform-name | --program-transform-name \
359
  | --program-transform-nam | --program-transform-na \
360
  | --program-transform-n | --program-transform- \
361
  | --program-transform | --program-transfor \
362
  | --program-transfo | --program-transf \
363
  | --program-trans | --program-tran \
364
  | --progr-tra | --program-tr | --program-t)
365
    ac_prev=program_transform_name ;;
366
  -program-transform-name=* | --program-transform-name=* \
367
  | --program-transform-nam=* | --program-transform-na=* \
368
  | --program-transform-n=* | --program-transform-=* \
369
  | --program-transform=* | --program-transfor=* \
370
  | --program-transfo=* | --program-transf=* \
371
  | --program-trans=* | --program-tran=* \
372
  | --progr-tra=* | --program-tr=* | --program-t=*)
373 1242 hpanther
    program_transform_name=$ac_optarg ;;
374 7 jrydberg
 
375
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376
  | -silent | --silent | --silen | --sile | --sil)
377
    silent=yes ;;
378
 
379
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380
    ac_prev=sbindir ;;
381
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382
  | --sbi=* | --sb=*)
383 1242 hpanther
    sbindir=$ac_optarg ;;
384 7 jrydberg
 
385
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
386
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387
  | --sharedst | --shareds | --shared | --share | --shar \
388
  | --sha | --sh)
389
    ac_prev=sharedstatedir ;;
390
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393
  | --sha=* | --sh=*)
394 1242 hpanther
    sharedstatedir=$ac_optarg ;;
395 7 jrydberg
 
396
  -site | --site | --sit)
397
    ac_prev=site ;;
398
  -site=* | --site=* | --sit=*)
399 1242 hpanther
    site=$ac_optarg ;;
400 7 jrydberg
 
401
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402
    ac_prev=srcdir ;;
403
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 1242 hpanther
    srcdir=$ac_optarg ;;
405 7 jrydberg
 
406
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407
  | --syscon | --sysco | --sysc | --sys | --sy)
408
    ac_prev=sysconfdir ;;
409
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 1242 hpanther
    sysconfdir=$ac_optarg ;;
412 7 jrydberg
 
413
  -target | --target | --targe | --targ | --tar | --ta | --t)
414 1242 hpanther
    ac_prev=target_alias ;;
415 7 jrydberg
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 1242 hpanther
    target_alias=$ac_optarg ;;
417 7 jrydberg
 
418
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
419
    verbose=yes ;;
420
 
421 1242 hpanther
  -version | --version | --versio | --versi | --vers | -V)
422
    ac_init_version=: ;;
423 7 jrydberg
 
424
  -with-* | --with-*)
425 1242 hpanther
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 7 jrydberg
    # Reject names that are not valid shell variable names.
427 1242 hpanther
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428
      { echo "$as_me: error: invalid package name: $ac_package" >&2
429
   { (exit 1); exit 1; }; }
430 7 jrydberg
    ac_package=`echo $ac_package| sed 's/-/_/g'`
431 1242 hpanther
    case $ac_option in
432
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 7 jrydberg
      *) ac_optarg=yes ;;
434
    esac
435 1242 hpanther
    eval "with_$ac_package='$ac_optarg'" ;;
436 7 jrydberg
 
437
  -without-* | --without-*)
438 1242 hpanther
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 7 jrydberg
    # Reject names that are not valid shell variable names.
440 1242 hpanther
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441
      { echo "$as_me: error: invalid package name: $ac_package" >&2
442
   { (exit 1); exit 1; }; }
443
    ac_package=`echo $ac_package | sed 's/-/_/g'`
444
    eval "with_$ac_package=no" ;;
445 7 jrydberg
 
446
  --x)
447
    # Obsolete; use --with-x.
448
    with_x=yes ;;
449
 
450
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451
  | --x-incl | --x-inc | --x-in | --x-i)
452
    ac_prev=x_includes ;;
453
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 1242 hpanther
    x_includes=$ac_optarg ;;
456 7 jrydberg
 
457
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
458
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459
    ac_prev=x_libraries ;;
460
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 1242 hpanther
    x_libraries=$ac_optarg ;;
463 7 jrydberg
 
464 1242 hpanther
  -*) { echo "$as_me: error: unrecognized option: $ac_option
465
Try \`$0 --help' for more information." >&2
466
   { (exit 1); exit 1; }; }
467 7 jrydberg
    ;;
468
 
469 1242 hpanther
  *=*)
470
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471
    # Reject names that are not valid shell variable names.
472
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474
   { (exit 1); exit 1; }; }
475
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476
    eval "$ac_envvar='$ac_optarg'"
477
    export $ac_envvar ;;
478
 
479 7 jrydberg
  *)
480 1242 hpanther
    # FIXME: should be removed in autoconf 3.0.
481
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 7 jrydberg
    ;;
486
 
487
  esac
488
done
489
 
490
if test -n "$ac_prev"; then
491 1242 hpanther
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492
  { echo "$as_me: error: missing argument to $ac_option" >&2
493
   { (exit 1); exit 1; }; }
494 7 jrydberg
fi
495
 
496 1242 hpanther
# Be sure to have absolute paths.
497
for ac_var in exec_prefix prefix
498
do
499
  eval ac_val=$`echo $ac_var`
500
  case $ac_val in
501
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 1249 lampret
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 1242 hpanther
   { (exit 1); exit 1; }; };;
504
  esac
505
done
506 7 jrydberg
 
507 1242 hpanther
# Be sure to have absolute paths.
508
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509
              localstatedir libdir includedir oldincludedir infodir mandir
510 7 jrydberg
do
511 1242 hpanther
  eval ac_val=$`echo $ac_var`
512
  case $ac_val in
513
    [\\/$]* | ?:[\\/]* ) ;;
514 1249 lampret
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 1242 hpanther
   { (exit 1); exit 1; }; };;
516 7 jrydberg
  esac
517
done
518
 
519 1242 hpanther
# There might be people who depend on the old broken behavior: `$host'
520
# used to hold the argument of --host etc.
521
build=$build_alias
522
host=$host_alias
523
target=$target_alias
524 7 jrydberg
 
525 1249 lampret
# FIXME: should be removed in autoconf 3.0.
526 1242 hpanther
if test "x$host_alias" != x; then
527
  if test "x$build_alias" = x; then
528
    cross_compiling=maybe
529
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530
    If a cross compiler is detected then cross compile mode will be used." >&2
531
  elif test "x$build_alias" != "x$host_alias"; then
532
    cross_compiling=yes
533
  fi
534
fi
535 7 jrydberg
 
536 1242 hpanther
ac_tool_prefix=
537
test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 7 jrydberg
 
539 1242 hpanther
test "$silent" = yes && exec 6>/dev/null
540
 
541 7 jrydberg
# Find the source files, if location was not specified.
542
if test -z "$srcdir"; then
543
  ac_srcdir_defaulted=yes
544
  # Try the directory containing this script, then its parent.
545 1249 lampret
  ac_prog=$0
546
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 7 jrydberg
  srcdir=$ac_confdir
549
  if test ! -r $srcdir/$ac_unique_file; then
550
    srcdir=..
551
  fi
552
else
553
  ac_srcdir_defaulted=no
554
fi
555
if test ! -r $srcdir/$ac_unique_file; then
556
  if test "$ac_srcdir_defaulted" = yes; then
557 1249 lampret
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 1242 hpanther
   { (exit 1); exit 1; }; }
559 7 jrydberg
  else
560 1249 lampret
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 1242 hpanther
   { (exit 1); exit 1; }; }
562 7 jrydberg
  fi
563
fi
564 1242 hpanther
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565
ac_env_build_alias_set=${build_alias+set}
566
ac_env_build_alias_value=$build_alias
567
ac_cv_env_build_alias_set=${build_alias+set}
568
ac_cv_env_build_alias_value=$build_alias
569
ac_env_host_alias_set=${host_alias+set}
570
ac_env_host_alias_value=$host_alias
571
ac_cv_env_host_alias_set=${host_alias+set}
572
ac_cv_env_host_alias_value=$host_alias
573
ac_env_target_alias_set=${target_alias+set}
574
ac_env_target_alias_value=$target_alias
575
ac_cv_env_target_alias_set=${target_alias+set}
576
ac_cv_env_target_alias_value=$target_alias
577
ac_env_CC_set=${CC+set}
578
ac_env_CC_value=$CC
579
ac_cv_env_CC_set=${CC+set}
580
ac_cv_env_CC_value=$CC
581
ac_env_CFLAGS_set=${CFLAGS+set}
582
ac_env_CFLAGS_value=$CFLAGS
583
ac_cv_env_CFLAGS_set=${CFLAGS+set}
584
ac_cv_env_CFLAGS_value=$CFLAGS
585
ac_env_LDFLAGS_set=${LDFLAGS+set}
586
ac_env_LDFLAGS_value=$LDFLAGS
587
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588
ac_cv_env_LDFLAGS_value=$LDFLAGS
589
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590
ac_env_CPPFLAGS_value=$CPPFLAGS
591
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593
ac_env_CPP_set=${CPP+set}
594
ac_env_CPP_value=$CPP
595
ac_cv_env_CPP_set=${CPP+set}
596
ac_cv_env_CPP_value=$CPP
597 7 jrydberg
 
598 1242 hpanther
#
599
# Report the --help message.
600
#
601
if test "$ac_init_help" = "long"; then
602
  # Omit some internal or obsolete options to make the list less imposing.
603
  # This message is too long to be a string in the A/UX 3.1 sh.
604 1249 lampret
  cat <
605 1242 hpanther
\`configure' configures this package to adapt to many kinds of systems.
606
 
607
Usage: $0 [OPTION]... [VAR=VALUE]...
608
 
609
To assign environment variables (e.g., CC, CFLAGS...), specify them as
610
VAR=VALUE.  See below for descriptions of some of the useful variables.
611
 
612
Defaults for the options are specified in brackets.
613
 
614
Configuration:
615
  -h, --help              display this help and exit
616
      --help=short        display options specific to this package
617
      --help=recursive    display the short help of all the included packages
618
  -V, --version           display version information and exit
619
  -q, --quiet, --silent   do not print \`checking...' messages
620
      --cache-file=FILE   cache test results in FILE [disabled]
621
  -C, --config-cache      alias for \`--cache-file=config.cache'
622
  -n, --no-create         do not create output files
623
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
624
 
625 1249 lampret
EOF
626 1242 hpanther
 
627 1249 lampret
  cat <
628 1242 hpanther
Installation directories:
629
  --prefix=PREFIX         install architecture-independent files in PREFIX
630
                          [$ac_default_prefix]
631
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
632
                          [PREFIX]
633
 
634
By default, \`make install' will install all the files in
635
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
636
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637
for instance \`--prefix=\$HOME'.
638
 
639
For better control, use the options below.
640
 
641
Fine tuning of the installation directories:
642
  --bindir=DIR           user executables [EPREFIX/bin]
643
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
644
  --libexecdir=DIR       program executables [EPREFIX/libexec]
645
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
646
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
647
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
648
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
649
  --libdir=DIR           object code libraries [EPREFIX/lib]
650
  --includedir=DIR       C header files [PREFIX/include]
651
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
652
  --infodir=DIR          info documentation [PREFIX/info]
653
  --mandir=DIR           man documentation [PREFIX/man]
654 1249 lampret
EOF
655 1242 hpanther
 
656 1249 lampret
  cat <<\EOF
657 1242 hpanther
 
658
Program names:
659
  --program-prefix=PREFIX            prepend PREFIX to installed program names
660
  --program-suffix=SUFFIX            append SUFFIX to installed program names
661
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
662
 
663
System types:
664
  --build=BUILD     configure for building on BUILD [guessed]
665 1249 lampret
  --host=HOST       build programs to run on HOST [BUILD]
666 1242 hpanther
  --target=TARGET   configure for building compilers for TARGET [HOST]
667 1249 lampret
EOF
668 1242 hpanther
fi
669
 
670
if test -n "$ac_init_help"; then
671
 
672 1249 lampret
  cat <<\EOF
673 1242 hpanther
 
674
Optional Features:
675
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
676
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
677
  --disable-dependency-tracking Speeds up one-time builds
678
  --enable-dependency-tracking  Do not reject slow dependency extractors
679
  --enable-readline       Use GNU readline
680
  --enable-profiling      generate profiling code
681
  --enable-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 1249 lampret
ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1321 7 jrydberg
 
1322 1242 hpanther
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1323
 
1324 1249 lampret
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
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1434
 
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 1249 lampret
for ac_func in strndup grantpt unlockpt ptsname on_exit
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 1242 hpanther
                net/ethernet.h malloc.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 17 jrydberg
# Check whether --enable-readline or --disable-readline was given.
3648
if test "${enable_readline+set}" = set; then
3649
  enableval="$enable_readline"
3650 1242 hpanther
 
3651 1249 lampret
echo "$as_me:3651: checking for add_history in -lreadline" >&5
3652 1242 hpanther
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6
3653
if test "${ac_cv_lib_readline_add_history+set}" = set; then
3654
  echo $ECHO_N "(cached) $ECHO_C" >&6
3655 17 jrydberg
else
3656 1242 hpanther
  ac_check_lib_save_LIBS=$LIBS
3657 17 jrydberg
LIBS="-lreadline  $LIBS"
3658 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
3659 1249 lampret
#line 3659 "configure"
3660
#include "confdefs.h"
3661 1242 hpanther
 
3662 17 jrydberg
/* Override any gcc2 internal prototype to avoid an error.  */
3663 1242 hpanther
#ifdef __cplusplus
3664
extern "C"
3665
#endif
3666 17 jrydberg
/* We use char because int might match the return type of a gcc2
3667 1242 hpanther
   builtin and then its argument prototype would still apply.  */
3668
char add_history ();
3669
int
3670
main ()
3671
{
3672
add_history ();
3673
  ;
3674
  return 0;
3675
}
3676
_ACEOF
3677
rm -f conftest.$ac_objext conftest$ac_exeext
3678 1249 lampret
if { (eval echo "$as_me:3678: \"$ac_link\"") >&5
3679 1242 hpanther
  (eval $ac_link) 2>&5
3680
  ac_status=$?
3681 1249 lampret
  echo "$as_me:3681: \$? = $ac_status" >&5
3682 1242 hpanther
  (exit $ac_status); } &&
3683
         { ac_try='test -s conftest$ac_exeext'
3684 1249 lampret
  { (eval echo "$as_me:3684: \"$ac_try\"") >&5
3685 1242 hpanther
  (eval $ac_try) 2>&5
3686
  ac_status=$?
3687 1249 lampret
  echo "$as_me:3687: \$? = $ac_status" >&5
3688 1242 hpanther
  (exit $ac_status); }; }; then
3689
  ac_cv_lib_readline_add_history=yes
3690 17 jrydberg
else
3691 1242 hpanther
  echo "$as_me: failed program was:" >&5
3692 1249 lampret
cat conftest.$ac_ext >&5
3693 1242 hpanther
ac_cv_lib_readline_add_history=no
3694 17 jrydberg
fi
3695 1242 hpanther
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3696
LIBS=$ac_check_lib_save_LIBS
3697
fi
3698 1249 lampret
echo "$as_me:3698: result: $ac_cv_lib_readline_add_history" >&5
3699 1242 hpanther
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6
3700
if test $ac_cv_lib_readline_add_history = yes; then
3701 1249 lampret
  cat >>confdefs.h <
3702 1242 hpanther
#define HAVE_LIBREADLINE 1
3703 1249 lampret
EOF
3704 17 jrydberg
 
3705
  LIBS="-lreadline $LIBS"
3706
 
3707
fi
3708
 
3709 1242 hpanther
fi;
3710 17 jrydberg
 
3711 7 jrydberg
case "$host_os" in
3712
aix*)   prefer_curses=yes ;;
3713
esac
3714
 
3715
case "$host_cpu" in
3716
*cray*) LOCAL_CFLAGS=-DCRAY ;;
3717
esac
3718
 
3719
case "$host_os" in
3720
isc*)   LOCAL_CFLAGS=-Disc386 ;;
3721
esac
3722
 
3723 132 chris
case "$host_os" in
3724
solaris*) LIBS="-lsocket -lnsl" ;;
3725
esac
3726
 
3727 1249 lampret
echo "$as_me:3727: checking whether to enable profiling" >&5
3728 1242 hpanther
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
3729 517 markom
# Check whether --enable-profiling or --disable-profiling was given.
3730
if test "${enable_profiling+set}" = set; then
3731
  enableval="$enable_profiling"
3732 1242 hpanther
 
3733 517 markom
    case "$enableval" in
3734
        yes) profile="-pg -a" ;;
3735
    esac
3736 167 markom
 
3737 1242 hpanther
fi;
3738 1249 lampret
echo "$as_me:3738: result: ${enable_profiling-no}" >&5
3739 1242 hpanther
echo "${ECHO_T}${enable_profiling-no}" >&6
3740 517 markom
 
3741 566 simons
fast_sim="0"
3742 1249 lampret
echo "$as_me:3742: checking whether to compile fsim" >&5
3743 1242 hpanther
echo $ECHO_N "checking whether to compile fsim... $ECHO_C" >&6
3744 551 markom
# Check whether --enable-fsim or --disable-fsim was given.
3745
if test "${enable_fsim+set}" = set; then
3746
  enableval="$enable_fsim"
3747 1242 hpanther
 
3748 551 markom
    case "$enableval" in
3749 557 markom
  no)  fast_sim="0" ;;
3750
        yes) fast_sim="1" ;;
3751 551 markom
    esac
3752
 
3753 1242 hpanther
fi;
3754 1249 lampret
echo "$as_me:3754: result: ${enable_fsim-no}" >&5
3755 1242 hpanther
echo "${ECHO_T}${enable_fsim-no}" >&6
3756 551 markom
 
3757 706 markom
simple_execution="0"
3758 1249 lampret
echo "$as_me:3758: checking whether to use simple execution" >&5
3759 1242 hpanther
echo $ECHO_N "checking whether to use simple execution... $ECHO_C" >&6
3760 706 markom
# Check whether --enable-simple or --disable-simple was given.
3761
if test "${enable_simple+set}" = set; then
3762
  enableval="$enable_simple"
3763 1242 hpanther
 
3764 706 markom
    case "$enableval" in
3765
  no)  simple_execution="0" ;;
3766
        yes) simple_execution="1" ;;
3767
    esac
3768
 
3769 1242 hpanther
fi;
3770 1249 lampret
echo "$as_me:3770: result: ${enable_simple-no}" >&5
3771 1242 hpanther
echo "${ECHO_T}${enable_simple-no}" >&6
3772 706 markom
 
3773 849 markom
eth_phy="0"
3774 1249 lampret
echo "$as_me:3774: checking whether to enable ethernet phy emulation" >&5
3775 1242 hpanther
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6
3776 849 markom
# Check whether --enable-ethphy or --disable-ethphy was given.
3777
if test "${enable_ethphy+set}" = set; then
3778
  enableval="$enable_ethphy"
3779 1242 hpanther
 
3780 849 markom
    case "$enableval" in
3781
  no)  eth_phy="0" ;;
3782
        yes) eth_phy="1" ;;
3783
    esac
3784
 
3785 1242 hpanther
fi;
3786 1249 lampret
echo "$as_me:3786: result: ${enable_eth_phy-no}" >&5
3787 1242 hpanther
echo "${ECHO_T}${enable_eth_phy-no}" >&6
3788 849 markom
 
3789 721 markom
raw_range_stats="0"
3790 1249 lampret
echo "$as_me:3790: checking whether to use raw range stats" >&5
3791 1242 hpanther
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6
3792 721 markom
# Check whether --enable-range_stats or --disable-range_stats was given.
3793
if test "${enable_range_stats+set}" = set; then
3794
  enableval="$enable_range_stats"
3795 1242 hpanther
 
3796 721 markom
    case "$enableval" in
3797
  no)  raw_range_stats="0" ;;
3798
        yes) raw_range_stats="1" simple_execution="1" ;;
3799
    esac
3800
 
3801 1242 hpanther
fi;
3802 1249 lampret
echo "$as_me:3802: result: ${enable_range_stats-no}" >&5
3803 1242 hpanther
echo "${ECHO_T}${enable_range_stats-no}" >&6
3804 721 markom
 
3805 928 markom
set_ov_flag="0"
3806 1249 lampret
echo "$as_me:3806: checking whether instructions set overflow flag" >&5
3807 1242 hpanther
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6
3808 721 markom
# Check whether --enable-ov_flag or --disable-ov_flag was given.
3809
if test "${enable_ov_flag+set}" = set; then
3810
  enableval="$enable_ov_flag"
3811 1242 hpanther
 
3812 721 markom
    case "$enableval" in
3813
  no)  set_ov_flag="0" ;;
3814
        yes) set_ov_flag="1" ;;
3815
    esac
3816
 
3817 1242 hpanther
fi;
3818 1249 lampret
echo "$as_me:3818: result: ${enable_ov_flag-no}" >&5
3819 1242 hpanther
echo "${ECHO_T}${enable_ov_flag-no}" >&6
3820 721 markom
 
3821 928 markom
set_arith_flag="0"
3822 1249 lampret
echo "$as_me:3822: checking whether arithmethic instructions set flag" >&5
3823 1242 hpanther
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6
3824 721 markom
# Check whether --enable-arith_flag or --disable-arith_flag was given.
3825
if test "${enable_arith_flag+set}" = set; then
3826
  enableval="$enable_arith_flag"
3827 1242 hpanther
 
3828 721 markom
    case "$enableval" in
3829
  no)  set_arith_flag="0" ;;
3830
        yes) set_arith_flag="1" ;;
3831
    esac
3832
 
3833 1242 hpanther
fi;
3834 1249 lampret
echo "$as_me:3834: result: ${enable_arith_flag-no}" >&5
3835 1242 hpanther
echo "${ECHO_T}${enable_arith_flag-no}" >&6
3836 721 markom
 
3837 1249 lampret
cat >>confdefs.h <
3838 721 markom
#define FAST_SIM $fast_sim
3839 1249 lampret
EOF
3840 721 markom
 
3841 1249 lampret
cat >>confdefs.h <
3842 721 markom
#define RAW_RANGE_STATS $raw_range_stats
3843 1249 lampret
EOF
3844 721 markom
 
3845 1249 lampret
cat >>confdefs.h <
3846 721 markom
#define SET_OV_FLAG $set_ov_flag
3847 1249 lampret
EOF
3848 721 markom
 
3849 1249 lampret
cat >>confdefs.h <
3850 721 markom
#define ARITH_SET_FLAG $set_arith_flag
3851 1249 lampret
EOF
3852 721 markom
 
3853 1249 lampret
cat >>confdefs.h <
3854 849 markom
#define HAVE_ETH_PHY $eth_phy
3855 1249 lampret
EOF
3856 721 markom
 
3857 1249 lampret
cat >>confdefs.h <
3858 706 markom
#define SIMPLE_EXECUTION $simple_execution
3859 1249 lampret
EOF
3860 706 markom
 
3861
if test x$simple_execution = x1; then
3862
  SIMPLE_EXECUTION_TRUE=
3863
  SIMPLE_EXECUTION_FALSE='#'
3864
else
3865
  SIMPLE_EXECUTION_TRUE='#'
3866
  SIMPLE_EXECUTION_FALSE=
3867
fi
3868
 
3869 1249 lampret
echo "$as_me:3869: checking for implementation-specific data" >&5
3870 1242 hpanther
echo $ECHO_N "checking for implementation-specific data... $ECHO_C" >&6
3871 202 erez
# Check whether --enable-impl or --disable-impl was given.
3872
if test "${enable_impl+set}" = set; then
3873
  enableval="$enable_impl"
3874 1242 hpanther
 
3875 202 erez
    case "$enableval" in
3876
        no|default)        IMPL="DEFAULT" ;;
3877
        mp3)               IMPL="MP3"     ;;
3878
        bender)            IMPL="BENDER"  ;;
3879
        *)
3880 1249 lampret
            echo "$as_me:3880: result: failed" >&5
3881 1242 hpanther
echo "${ECHO_T}failed" >&6
3882 1249 lampret
            { { echo "$as_me:3882: error: bad --enable-impl option" >&5
3883 1242 hpanther
echo "$as_me: error: bad --enable-impl option" >&2;}
3884
   { (exit 1); exit 1; }; }
3885 202 erez
            ;;
3886
    esac
3887
 
3888 1242 hpanther
fi;
3889 1249 lampret
echo "$as_me:3889: result: ${IMPL=DEFAULT}" >&5
3890 1242 hpanther
echo "${ECHO_T}${IMPL=DEFAULT}" >&6
3891 202 erez
if test "$IMPL" = "DEFAULT"
3892
then
3893 1249 lampret
    { echo "$as_me:3893: WARNING: using default environment" >&5
3894 1242 hpanther
echo "$as_me: WARNING: using default environment" >&2;}
3895 202 erez
fi
3896 517 markom
 
3897
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
3898 202 erez
IMPL="-DIMPL_$IMPL"
3899 518 markom
# CFLAGS="$CFLAGS -O4"
3900 202 erez
 
3901 7 jrydberg
BUILD_DIR=`pwd`
3902
 
3903 1249 lampret
cat >>confdefs.h <<\EOF
3904 123 markom
#define HAS_EXECUTION 1
3905 1249 lampret
EOF
3906 7 jrydberg
 
3907 1249 lampret
cat >>confdefs.h <<\EOF
3908 371 markom
#define HAS_DEBUG 1
3909 1249 lampret
EOF
3910 123 markom
 
3911 397 markom
INCLUDES="-I\${top_srcdir} -I\${top_srcdir}/cpu/common -I\${top_srcdir}/cpu/or1k \
3912 26 lampret
-I\${top_srcdir}/cpu/$CPU_ARCH -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
3913 103 lampret
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
3914 1082 rprescott
-I\${top_srcdir}/peripheral/channels \
3915 807 markom
-I\${top_srcdir}/pm -I\${top_srcdir}/pic -I\${top_srcdir}/debug \
3916 897 markom
-I\${top_srcdir}/vapi -I\${top_srcdir}/support -I\${top_srcdir}/cuc"
3917 7 jrydberg
 
3918 1249 lampret
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 extras/Makefile"
3919
ac_config_commands="$ac_config_commands default"
3920 1242 hpanther
cat >confcache <<\_ACEOF
3921 7 jrydberg
# This file is a shell script that caches the results of configure
3922
# tests run on this system so they can be shared between configure
3923 1242 hpanther
# scripts and configure runs, see configure's option --config-cache.
3924
# It is not useful on other systems.  If it contains results you don't
3925
# want to keep, you may remove or edit it.
3926 7 jrydberg
#
3927 1242 hpanther
# config.status only pays attention to the cache file if you give it
3928
# the --recheck option to rerun configure.
3929 7 jrydberg
#
3930 1249 lampret
# `ac_cv_env_foo' variables (set or unset) will be overriden when
3931 1242 hpanther
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3932
# following values.
3933
 
3934
_ACEOF
3935
 
3936 7 jrydberg
# The following way of writing the cache mishandles newlines in values,
3937
# but we know of no workaround that is simple, portable, and efficient.
3938
# So, don't put newlines in cache variables' values.
3939
# Ultrix sh set writes to stderr and can't be redirected directly,
3940
# and sets the high bit in the cache file unless we assign to the vars.
3941 1242 hpanther
{
3942
  (set) 2>&1 |
3943
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3944
    *ac_space=\ *)
3945
      # `set' does not quote correctly, so add quotes (double-quote
3946
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3947
      sed -n \
3948
        "s/'/'\\\\''/g;
3949
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3950
      ;;
3951
    *)
3952
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3953
      sed -n \
3954
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3955
      ;;
3956
    esac;
3957
} |
3958
  sed '
3959
     t clear
3960
     : clear
3961
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3962
     t end
3963
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3964
     : end' >>confcache
3965 1249 lampret
if cmp -s $cache_file confcache; then :; else
3966 7 jrydberg
  if test -w $cache_file; then
3967 1242 hpanther
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3968
    cat confcache >$cache_file
3969 7 jrydberg
  else
3970
    echo "not updating unwritable cache $cache_file"
3971
  fi
3972
fi
3973
rm -f confcache
3974
 
3975
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3976
# Let make expand exec_prefix.
3977
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3978
 
3979 1242 hpanther
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3980
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3981
# trailing colons and then remove the whole line if VPATH becomes empty
3982
# (actually we leave an empty line to preserve line numbers).
3983 7 jrydberg
if test "x$srcdir" = x.; then
3984 1242 hpanther
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
3985
s/:*\$(srcdir):*/:/;
3986
s/:*\${srcdir}:*/:/;
3987
s/:*@srcdir@:*/:/;
3988
s/^\([^=]*=[    ]*\):*/\1/;
3989
s/:*$//;
3990
s/^[^=]*=[      ]*$//;
3991
}'
3992 7 jrydberg
fi
3993
 
3994
DEFS=-DHAVE_CONFIG_H
3995
 
3996 1242 hpanther
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3997 1249 lampret
  { { echo "$as_me:3997: error: conditional \"AMDEP\" was never defined.
3998 1242 hpanther
Usually this means the macro was only invoked conditionally." >&5
3999
echo "$as_me: error: conditional \"AMDEP\" was never defined.
4000
Usually this means the macro was only invoked conditionally." >&2;}
4001
   { (exit 1); exit 1; }; }
4002
fi
4003
if test -z "${SIMPLE_EXECUTION_TRUE}" && test -z "${SIMPLE_EXECUTION_FALSE}"; then
4004 1249 lampret
  { { echo "$as_me:4004: error: conditional \"SIMPLE_EXECUTION\" was never defined.
4005 1242 hpanther
Usually this means the macro was only invoked conditionally." >&5
4006
echo "$as_me: error: conditional \"SIMPLE_EXECUTION\" was never defined.
4007
Usually this means the macro was only invoked conditionally." >&2;}
4008
   { (exit 1); exit 1; }; }
4009
fi
4010
 
4011 7 jrydberg
: ${CONFIG_STATUS=./config.status}
4012 1242 hpanther
ac_clean_files_save=$ac_clean_files
4013
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4014 1249 lampret
{ echo "$as_me:4014: creating $CONFIG_STATUS" >&5
4015 1242 hpanther
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4016
cat >$CONFIG_STATUS <<_ACEOF
4017
#! $SHELL
4018 1249 lampret
# Generated automatically by configure.
4019 7 jrydberg
# Run this file to recreate the current configuration.
4020
# Compiler output produced by configure, useful for debugging
4021 1242 hpanther
# configure, is in config.log if it exists.
4022 7 jrydberg
 
4023 1242 hpanther
debug=false
4024
SHELL=\${CONFIG_SHELL-$SHELL}
4025 1249 lampret
ac_cs_invocation="\$0 \$@"
4026
 
4027 1242 hpanther
_ACEOF
4028
 
4029
cat >>$CONFIG_STATUS <<\_ACEOF
4030
# Be Bourne compatible
4031
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4032
  emulate sh
4033
  NULLCMD=:
4034
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4035
  set -o posix
4036
fi
4037
 
4038
# Name of the executable.
4039 1249 lampret
as_me=`echo "$0" |sed 's,.*[\\/],,'`
4040 7 jrydberg
 
4041 1242 hpanther
if expr a : '\(a\)' >/dev/null 2>&1; then
4042
  as_expr=expr
4043
else
4044
  as_expr=false
4045
fi
4046
 
4047
rm -f conf$$ conf$$.exe conf$$.file
4048
echo >conf$$.file
4049
if ln -s conf$$.file conf$$ 2>/dev/null; then
4050
  # We could just check for DJGPP; but this test a) works b) is more generic
4051
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4052
  if test -f conf$$.exe; then
4053
    # Don't use ln at all; we don't have any links
4054
    as_ln_s='cp -p'
4055 7 jrydberg
  else
4056 1242 hpanther
    as_ln_s='ln -s'
4057 7 jrydberg
  fi
4058 1242 hpanther
elif ln conf$$.file conf$$ 2>/dev/null; then
4059
  as_ln_s=ln
4060
else
4061
  as_ln_s='cp -p'
4062
fi
4063
rm -f conf$$ conf$$.exe conf$$.file
4064
 
4065 1249 lampret
as_executable_p="test -f"
4066
 
4067
# Support unset when possible.
4068
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4069
  as_unset=unset
4070 1242 hpanther
else
4071 1249 lampret
  as_unset=false
4072 1242 hpanther
fi
4073
 
4074 1249 lampret
# NLS nuisances.
4075
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4076
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4077
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4078
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4079
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4080
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4081
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4082
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4083 1242 hpanther
 
4084
# IFS
4085
# We need space, tab and new line, in precisely that order.
4086
as_nl='
4087
'
4088
IFS="   $as_nl"
4089
 
4090
# CDPATH.
4091 1249 lampret
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4092 1242 hpanther
 
4093
exec 6>&1
4094
 
4095
_ACEOF
4096
 
4097
# Files that config.status was made for.
4098
if test -n "$ac_config_files"; then
4099
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4100
fi
4101
 
4102
if test -n "$ac_config_headers"; then
4103
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4104
fi
4105
 
4106
if test -n "$ac_config_links"; then
4107
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4108
fi
4109
 
4110
if test -n "$ac_config_commands"; then
4111
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4112
fi
4113
 
4114 1249 lampret
cat >>$CONFIG_STATUS <<\EOF
4115 1242 hpanther
 
4116
ac_cs_usage="\
4117
\`$as_me' instantiates files from templates according to the
4118
current configuration.
4119
 
4120
Usage: $0 [OPTIONS] [FILE]...
4121
 
4122
  -h, --help       print this help, then exit
4123
  -V, --version    print version number, then exit
4124
  -d, --debug      don't remove temporary files
4125
      --recheck    update $as_me by reconfiguring in the same conditions
4126
  --file=FILE[:TEMPLATE]
4127
                   instantiate the configuration file FILE
4128
  --header=FILE[:TEMPLATE]
4129
                   instantiate the configuration header FILE
4130
 
4131
Configuration files:
4132
$config_files
4133
 
4134
Configuration headers:
4135
$config_headers
4136
 
4137
Configuration commands:
4138
$config_commands
4139
 
4140
Report bugs to ."
4141 1249 lampret
EOF
4142 1242 hpanther
 
4143 1249 lampret
cat >>$CONFIG_STATUS <
4144 1242 hpanther
ac_cs_version="\\
4145
config.status
4146 1249 lampret
configured by $0, generated by GNU Autoconf 2.52,
4147 1242 hpanther
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4148
 
4149
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4150
Free Software Foundation, Inc.
4151
This config.status script is free software; the Free Software Foundation
4152
gives unlimited permission to copy, distribute and modify it."
4153
srcdir=$srcdir
4154
INSTALL="$INSTALL"
4155 1249 lampret
EOF
4156 1242 hpanther
 
4157 1249 lampret
cat >>$CONFIG_STATUS <<\EOF
4158 1242 hpanther
# If no file are specified by the user, then we need to provide default
4159
# value.  By we need to know if files were specified by the user.
4160
ac_need_defaults=:
4161
while test $# != 0
4162
do
4163
  case $1 in
4164
  --*=*)
4165
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4166
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4167 1249 lampret
    shift
4168
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4169
    shift
4170 1242 hpanther
    ;;
4171 1249 lampret
  -*);;
4172 1242 hpanther
  *) # This is not an option, so the user has probably given explicit
4173
     # arguments.
4174
     ac_need_defaults=false;;
4175
  esac
4176
 
4177 1249 lampret
  case $1 in
4178 1242 hpanther
  # Handling of the options.
4179 1249 lampret
EOF
4180
cat >>$CONFIG_STATUS <
4181 1242 hpanther
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4182 1249 lampret
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4183
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4184
EOF
4185
cat >>$CONFIG_STATUS <<\EOF
4186 1242 hpanther
  --version | --vers* | -V )
4187
    echo "$ac_cs_version"; exit 0 ;;
4188
  --he | --h)
4189
    # Conflict between --help and --header
4190 1249 lampret
    { { echo "$as_me:4190: error: ambiguous option: $1
4191 1242 hpanther
Try \`$0 --help' for more information." >&5
4192
echo "$as_me: error: ambiguous option: $1
4193
Try \`$0 --help' for more information." >&2;}
4194
   { (exit 1); exit 1; }; };;
4195
  --help | --hel | -h )
4196
    echo "$ac_cs_usage"; exit 0 ;;
4197
  --debug | --d* | -d )
4198
    debug=: ;;
4199
  --file | --fil | --fi | --f )
4200 1249 lampret
    shift
4201
    CONFIG_FILES="$CONFIG_FILES $1"
4202 1242 hpanther
    ac_need_defaults=false;;
4203
  --header | --heade | --head | --hea )
4204 1249 lampret
    shift
4205
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
4206 1242 hpanther
    ac_need_defaults=false;;
4207
 
4208
  # This is an error.
4209 1249 lampret
  -*) { { echo "$as_me:4209: error: unrecognized option: $1
4210 1242 hpanther
Try \`$0 --help' for more information." >&5
4211
echo "$as_me: error: unrecognized option: $1
4212
Try \`$0 --help' for more information." >&2;}
4213
   { (exit 1); exit 1; }; } ;;
4214
 
4215
  *) ac_config_targets="$ac_config_targets $1" ;;
4216
 
4217
  esac
4218
  shift
4219 7 jrydberg
done
4220 1242 hpanther
 
4221 1249 lampret
exec 5>>config.log
4222
cat >&5 << _ACEOF
4223 1242 hpanther
 
4224 1249 lampret
## ----------------------- ##
4225
## Running config.status.  ##
4226
## ----------------------- ##
4227 7 jrydberg
 
4228 1249 lampret
This file was extended by $as_me 2.52, executed with
4229
  CONFIG_FILES    = $CONFIG_FILES
4230
  CONFIG_HEADERS  = $CONFIG_HEADERS
4231
  CONFIG_LINKS    = $CONFIG_LINKS
4232
  CONFIG_COMMANDS = $CONFIG_COMMANDS
4233
  > $ac_cs_invocation
4234
on `(hostname || uname -n) 2>/dev/null | sed 1q`
4235 7 jrydberg
 
4236 1242 hpanther
_ACEOF
4237 1249 lampret
EOF
4238 1242 hpanther
 
4239 1249 lampret
cat >>$CONFIG_STATUS <
4240 1242 hpanther
#
4241
# INIT-COMMANDS section.
4242
#
4243
 
4244
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4245
 
4246 1249 lampret
EOF
4247 1242 hpanther
 
4248 1249 lampret
cat >>$CONFIG_STATUS <<\EOF
4249 1242 hpanther
for ac_config_target in $ac_config_targets
4250
do
4251
  case "$ac_config_target" in
4252
  # Handling of arguments.
4253
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4254
  "bpb/Makefile" ) CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
4255
  "cache/Makefile" ) CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
4256
  "cpu/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
4257
  "cpu/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
4258
  "cpu/or32/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
4259
  "cuc/Makefile" ) CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
4260
  "cpu/or1k/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
4261
  "cpu/dlx/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
4262
  "debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
4263
  "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
4264
  "mmu/Makefile" ) CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
4265
  "peripheral/Makefile" ) CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
4266
  "tick/Makefile" ) CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
4267
  "peripheral/channels/Makefile" ) CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
4268
  "pm/Makefile" ) CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
4269
  "pic/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
4270
  "vapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
4271
  "extras/Makefile" ) CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
4272
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4273
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4274
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4275 1249 lampret
  *) { { echo "$as_me:4275: error: invalid argument: $ac_config_target" >&5
4276 1242 hpanther
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4277
   { (exit 1); exit 1; }; };;
4278 7 jrydberg
  esac
4279 1242 hpanther
done
4280 7 jrydberg
 
4281 1242 hpanther
# If the user did not use the arguments to specify the items to instantiate,
4282
# then the envvar interface is used.  Set only those that are not.
4283
# We use the long form for the default assignment because of an extremely
4284
# bizarre bug on SunOS 4.1.3.
4285
if $ac_need_defaults; then
4286
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4287
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4288
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4289
fi
4290 7 jrydberg
 
4291 1242 hpanther
# Create a temporary directory, and hook for its removal unless debugging.
4292
$debug ||
4293
{
4294
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4295
  trap '{ (exit 1); exit 1; }' 1 2 13 15
4296
}
4297
 
4298
# Create a (secure) tmp directory for tmp files.
4299 1249 lampret
: ${TMPDIR=/tmp}
4300 1242 hpanther
{
4301 1249 lampret
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4302 1242 hpanther
  test -n "$tmp" && test -d "$tmp"
4303
}  ||
4304
{
4305 1249 lampret
  tmp=$TMPDIR/cs$$-$RANDOM
4306 1242 hpanther
  (umask 077 && mkdir $tmp)
4307
} ||
4308
{
4309 1249 lampret
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4310 1242 hpanther
   { (exit 1); exit 1; }
4311
}
4312
 
4313 1249 lampret
EOF
4314 1242 hpanther
 
4315 1249 lampret
cat >>$CONFIG_STATUS <
4316 1242 hpanther
 
4317
#
4318
# CONFIG_FILES section.
4319
#
4320
 
4321
# No need to generate the scripts if there are no CONFIG_FILES.
4322
# This happens for instance when ./config.status config.h
4323
if test -n "\$CONFIG_FILES"; then
4324
  # Protect against being on the right side of a sed subst in config.status.
4325
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4326
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4327
s,@SHELL@,$SHELL,;t t
4328
s,@exec_prefix@,$exec_prefix,;t t
4329
s,@prefix@,$prefix,;t t
4330
s,@program_transform_name@,$program_transform_name,;t t
4331
s,@bindir@,$bindir,;t t
4332
s,@sbindir@,$sbindir,;t t
4333
s,@libexecdir@,$libexecdir,;t t
4334
s,@datadir@,$datadir,;t t
4335
s,@sysconfdir@,$sysconfdir,;t t
4336
s,@sharedstatedir@,$sharedstatedir,;t t
4337
s,@localstatedir@,$localstatedir,;t t
4338
s,@libdir@,$libdir,;t t
4339
s,@includedir@,$includedir,;t t
4340
s,@oldincludedir@,$oldincludedir,;t t
4341
s,@infodir@,$infodir,;t t
4342
s,@mandir@,$mandir,;t t
4343 1249 lampret
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4344
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4345
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4346
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4347
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4348 1242 hpanther
s,@build_alias@,$build_alias,;t t
4349
s,@host_alias@,$host_alias,;t t
4350
s,@target_alias@,$target_alias,;t t
4351
s,@ECHO_C@,$ECHO_C,;t t
4352
s,@ECHO_N@,$ECHO_N,;t t
4353
s,@ECHO_T@,$ECHO_T,;t t
4354 1249 lampret
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4355
s,@DEFS@,$DEFS,;t t
4356 1242 hpanther
s,@LIBS@,$LIBS,;t t
4357
s,@build@,$build,;t t
4358
s,@build_cpu@,$build_cpu,;t t
4359
s,@build_vendor@,$build_vendor,;t t
4360
s,@build_os@,$build_os,;t t
4361
s,@host@,$host,;t t
4362
s,@host_cpu@,$host_cpu,;t t
4363
s,@host_vendor@,$host_vendor,;t t
4364
s,@host_os@,$host_os,;t t
4365
s,@target@,$target,;t t
4366
s,@target_cpu@,$target_cpu,;t t
4367
s,@target_vendor@,$target_vendor,;t t
4368
s,@target_os@,$target_os,;t t
4369
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4370
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4371
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4372
s,@PACKAGE@,$PACKAGE,;t t
4373
s,@VERSION@,$VERSION,;t t
4374
s,@ACLOCAL@,$ACLOCAL,;t t
4375
s,@AUTOCONF@,$AUTOCONF,;t t
4376
s,@AUTOMAKE@,$AUTOMAKE,;t t
4377
s,@AUTOHEADER@,$AUTOHEADER,;t t
4378
s,@MAKEINFO@,$MAKEINFO,;t t
4379
s,@AMTAR@,$AMTAR,;t t
4380
s,@install_sh@,$install_sh,;t t
4381
s,@STRIP@,$STRIP,;t t
4382
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4383
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4384
s,@AWK@,$AWK,;t t
4385
s,@SET_MAKE@,$SET_MAKE,;t t
4386
s,@CPU_ARCH@,$CPU_ARCH,;t t
4387
s,@CC@,$CC,;t t
4388
s,@CFLAGS@,$CFLAGS,;t t
4389
s,@LDFLAGS@,$LDFLAGS,;t t
4390
s,@CPPFLAGS@,$CPPFLAGS,;t t
4391
s,@ac_ct_CC@,$ac_ct_CC,;t t
4392
s,@EXEEXT@,$EXEEXT,;t t
4393
s,@OBJEXT@,$OBJEXT,;t t
4394
s,@DEPDIR@,$DEPDIR,;t t
4395
s,@am__include@,$am__include,;t t
4396
s,@am__quote@,$am__quote,;t t
4397
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4398
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4399
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4400
s,@CCDEPMODE@,$CCDEPMODE,;t t
4401
s,@CPP@,$CPP,;t t
4402
s,@AR@,$AR,;t t
4403
s,@RANLIB@,$RANLIB,;t t
4404
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4405
s,@MAKE_SHELL@,$MAKE_SHELL,;t t
4406
s,@SIMPLE_EXECUTION_TRUE@,$SIMPLE_EXECUTION_TRUE,;t t
4407
s,@SIMPLE_EXECUTION_FALSE@,$SIMPLE_EXECUTION_FALSE,;t t
4408
s,@BUILD_DIR@,$BUILD_DIR,;t t
4409
s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
4410
s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
4411
s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
4412
s,@ARFLAGS@,$ARFLAGS,;t t
4413
s,@SUMVERSION@,$SUMVERSION,;t t
4414
s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
4415
s,@INCLUDES@,$INCLUDES,;t t
4416
CEOF
4417
 
4418 1249 lampret
EOF
4419 1242 hpanther
 
4420 1249 lampret
  cat >>$CONFIG_STATUS <<\EOF
4421 1242 hpanther
  # Split the substitutions into bite-sized pieces for seds with
4422
  # small command number limits, like on Digital OSF/1 and HP-UX.
4423
  ac_max_sed_lines=48
4424
  ac_sed_frag=1 # Number of current file.
4425
  ac_beg=1 # First line for current file.
4426
  ac_end=$ac_max_sed_lines # Line after last line for current file.
4427
  ac_more_lines=:
4428
  ac_sed_cmds=
4429
  while $ac_more_lines; do
4430
    if test $ac_beg -gt 1; then
4431
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4432
    else
4433
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4434
    fi
4435
    if test ! -s $tmp/subs.frag; then
4436
      ac_more_lines=false
4437
    else
4438
      # The purpose of the label and of the branching condition is to
4439
      # speed up the sed processing (if there are no `@' at all, there
4440
      # is no need to browse any of the substitutions).
4441
      # These are the two extra sed commands mentioned above.
4442
      (echo ':t
4443
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4444
      if test -z "$ac_sed_cmds"; then
4445
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4446
      else
4447
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4448
      fi
4449
      ac_sed_frag=`expr $ac_sed_frag + 1`
4450
      ac_beg=$ac_end
4451
      ac_end=`expr $ac_end + $ac_max_sed_lines`
4452
    fi
4453
  done
4454
  if test -z "$ac_sed_cmds"; then
4455
    ac_sed_cmds=cat
4456 7 jrydberg
  fi
4457 1242 hpanther
fi # test -n "$CONFIG_FILES"
4458 7 jrydberg
 
4459 1249 lampret
EOF
4460
cat >>$CONFIG_STATUS <<\EOF
4461 1242 hpanther
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4462
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4463
  case $ac_file in
4464
  - | *:- | *:-:* ) # input from stdin
4465
        cat >$tmp/stdin
4466
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4467
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4468
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4469
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4470
  * )   ac_file_in=$ac_file.in ;;
4471 7 jrydberg
  esac
4472
 
4473 1242 hpanther
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4474 1249 lampret
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4475 1242 hpanther
         X"$ac_file" : 'X\(//\)[^/]' \| \
4476
         X"$ac_file" : 'X\(//\)$' \| \
4477
         X"$ac_file" : 'X\(/\)' \| \
4478
         .     : '\(.\)' 2>/dev/null ||
4479
echo X"$ac_file" |
4480
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4481
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4482
          /^X\(\/\/\)$/{ s//\1/; q; }
4483
          /^X\(\/\).*/{ s//\1/; q; }
4484
          s/.*/./; q'`
4485 1249 lampret
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4486
    { case "$ac_dir" in
4487
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4488
  *)                      as_incr_dir=.;;
4489
esac
4490
as_dummy="$ac_dir"
4491
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4492
  case $as_mkdir_dir in
4493
    # Skip DOS drivespec
4494
    ?:) as_incr_dir=$as_mkdir_dir ;;
4495
    *)
4496
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4497
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4498
    ;;
4499
  esac
4500
done; }
4501
 
4502
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4503
    # A "../" for each directory in $ac_dir_suffix.
4504
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4505 1242 hpanther
  else
4506 1249 lampret
    ac_dir_suffix= ac_dots=
4507
  fi
4508 7 jrydberg
 
4509 1249 lampret
  case $srcdir in
4510
  .)  ac_srcdir=.
4511
      if test -z "$ac_dots"; then
4512
         ac_top_srcdir=.
4513
      else
4514
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4515
      fi ;;
4516
  [\\/]* | ?:[\\/]* )
4517
      ac_srcdir=$srcdir$ac_dir_suffix;
4518
      ac_top_srcdir=$srcdir ;;
4519 1242 hpanther
  *) # Relative path.
4520 1249 lampret
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4521
    ac_top_srcdir=$ac_dots$srcdir ;;
4522
  esac
4523 1242 hpanther
 
4524
  case $INSTALL in
4525
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4526 1249 lampret
  *) ac_INSTALL=$ac_dots$INSTALL ;;
4527 7 jrydberg
  esac
4528
 
4529 1242 hpanther
  if test x"$ac_file" != x-; then
4530 1249 lampret
    { echo "$as_me:4530: creating $ac_file" >&5
4531 1242 hpanther
echo "$as_me: creating $ac_file" >&6;}
4532
    rm -f "$ac_file"
4533
  fi
4534
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4535
  # use $as_me), people would be surprised to read:
4536 1249 lampret
  #    /* config.h.  Generated automatically by config.status.  */
4537
  configure_input="Generated automatically from `echo $ac_file_in |
4538
                                                 sed 's,.*/,,'` by configure."
4539 7 jrydberg
 
4540 1242 hpanther
  # First look for the input files in the build tree, otherwise in the
4541
  # src tree.
4542
  ac_file_inputs=`IFS=:
4543
    for f in $ac_file_in; do
4544
      case $f in
4545
      -) echo $tmp/stdin ;;
4546
      [\\/$]*)
4547
         # Absolute (can't be DOS-style, as IFS=:)
4548 1249 lampret
         test -f "$f" || { { echo "$as_me:4548: error: cannot find input file: $f" >&5
4549 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
4550
   { (exit 1); exit 1; }; }
4551
         echo $f;;
4552
      *) # Relative
4553
         if test -f "$f"; then
4554
           # Build tree
4555
           echo $f
4556
         elif test -f "$srcdir/$f"; then
4557
           # Source tree
4558
           echo $srcdir/$f
4559
         else
4560
           # /dev/null tree
4561 1249 lampret
           { { echo "$as_me:4561: error: cannot find input file: $f" >&5
4562 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
4563
   { (exit 1); exit 1; }; }
4564
         fi;;
4565
      esac
4566
    done` || { (exit 1); exit 1; }
4567 1249 lampret
EOF
4568
cat >>$CONFIG_STATUS <
4569 1242 hpanther
  sed "$ac_vpsub
4570
$extrasub
4571 1249 lampret
EOF
4572
cat >>$CONFIG_STATUS <<\EOF
4573 1242 hpanther
:t
4574
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4575
s,@configure_input@,$configure_input,;t t
4576
s,@srcdir@,$ac_srcdir,;t t
4577
s,@top_srcdir@,$ac_top_srcdir,;t t
4578
s,@INSTALL@,$ac_INSTALL,;t t
4579
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4580
  rm -f $tmp/stdin
4581
  if test x"$ac_file" != x-; then
4582
    mv $tmp/out $ac_file
4583
  else
4584
    cat $tmp/out
4585
    rm -f $tmp/out
4586
  fi
4587
 
4588
done
4589 1249 lampret
EOF
4590
cat >>$CONFIG_STATUS <<\EOF
4591 1242 hpanther
 
4592
#
4593
# CONFIG_HEADER section.
4594
#
4595
 
4596 7 jrydberg
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4597
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4598
#
4599
# ac_d sets the value in "#define NAME VALUE" lines.
4600 1242 hpanther
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4601
ac_dB='[        ].*$,\1#\2'
4602
ac_dC=' '
4603
ac_dD=',;t'
4604
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4605
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4606
ac_uB='$,\1#\2define\3'
4607 7 jrydberg
ac_uC=' '
4608 1242 hpanther
ac_uD=',;t'
4609 7 jrydberg
 
4610 1242 hpanther
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4611 7 jrydberg
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4612 1242 hpanther
  case $ac_file in
4613
  - | *:- | *:-:* ) # input from stdin
4614
        cat >$tmp/stdin
4615
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4616
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4617
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4618
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4619
  * )   ac_file_in=$ac_file.in ;;
4620 7 jrydberg
  esac
4621
 
4622 1249 lampret
  test x"$ac_file" != x- && { echo "$as_me:4622: creating $ac_file" >&5
4623 1242 hpanther
echo "$as_me: creating $ac_file" >&6;}
4624 7 jrydberg
 
4625 1242 hpanther
  # First look for the input files in the build tree, otherwise in the
4626
  # src tree.
4627
  ac_file_inputs=`IFS=:
4628
    for f in $ac_file_in; do
4629
      case $f in
4630
      -) echo $tmp/stdin ;;
4631
      [\\/$]*)
4632
         # Absolute (can't be DOS-style, as IFS=:)
4633 1249 lampret
         test -f "$f" || { { echo "$as_me:4633: error: cannot find input file: $f" >&5
4634 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
4635
   { (exit 1); exit 1; }; }
4636
         echo $f;;
4637
      *) # Relative
4638
         if test -f "$f"; then
4639
           # Build tree
4640
           echo $f
4641
         elif test -f "$srcdir/$f"; then
4642
           # Source tree
4643
           echo $srcdir/$f
4644
         else
4645
           # /dev/null tree
4646 1249 lampret
           { { echo "$as_me:4646: error: cannot find input file: $f" >&5
4647 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
4648
   { (exit 1); exit 1; }; }
4649
         fi;;
4650
      esac
4651
    done` || { (exit 1); exit 1; }
4652
  # Remove the trailing spaces.
4653
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
4654 7 jrydberg
 
4655 1249 lampret
EOF
4656 7 jrydberg
 
4657 1242 hpanther
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4658
# `conftest.undefs', that substitutes the proper values into
4659
# config.h.in to produce config.h.  The first handles `#define'
4660
# templates, and the second `#undef' templates.
4661
# And first: Protect against being on the right side of a sed subst in
4662
# config.status.  Protect against being in an unquoted here document
4663
# in config.status.
4664
rm -f conftest.defines conftest.undefs
4665
# Using a here document instead of a string reduces the quoting nightmare.
4666
# Putting comments in sed scripts is not portable.
4667
#
4668
# `end' is used to avoid that the second main sed command (meant for
4669
# 0-ary CPP macros) applies to n-ary macro definitions.
4670
# See the Autoconf documentation for `clear'.
4671 1249 lampret
cat >confdef2sed.sed <<\EOF
4672 1242 hpanther
s/[\\&,]/\\&/g
4673
s,[\\$`],\\&,g
4674
t clear
4675
: clear
4676 1249 lampret
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4677 1242 hpanther
t end
4678
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4679
: end
4680 1249 lampret
EOF
4681 1242 hpanther
# If some macros were called several times there might be several times
4682
# the same #defines, which is useless.  Nevertheless, we may not want to
4683
# sort them, since we want the *last* AC-DEFINE to be honored.
4684
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4685
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4686
rm -f confdef2sed.sed
4687 7 jrydberg
 
4688
# This sed command replaces #undef with comments.  This is necessary, for
4689
# example, in the case of _POSIX_SOURCE, which is predefined and required
4690
# on some systems where configure will not decide to define it.
4691 1249 lampret
cat >>conftest.undefs <<\EOF
4692 1242 hpanther
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4693 1249 lampret
EOF
4694 7 jrydberg
 
4695 1242 hpanther
# Break up conftest.defines because some shells have a limit on the size
4696
# of here documents, and old seds have small limits too (100 cmds).
4697
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4698 1249 lampret
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4699 1242 hpanther
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4700
echo '  :' >>$CONFIG_STATUS
4701
rm -f conftest.tail
4702
while grep . conftest.defines >/dev/null
4703
do
4704
  # Write a limited-size here document to $tmp/defines.sed.
4705
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
4706
  # Speed up: don't consider the non `#define' lines.
4707
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
4708
  # Work around the forget-to-reset-the-flag bug.
4709
  echo 't clr' >>$CONFIG_STATUS
4710
  echo ': clr' >>$CONFIG_STATUS
4711
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4712
  echo 'CEOF
4713
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4714
  rm -f $tmp/in
4715
  mv $tmp/out $tmp/in
4716
' >>$CONFIG_STATUS
4717
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4718
  rm -f conftest.defines
4719
  mv conftest.tail conftest.defines
4720
done
4721
rm -f conftest.defines
4722 1249 lampret
echo '  fi # egrep' >>$CONFIG_STATUS
4723 1242 hpanther
echo >>$CONFIG_STATUS
4724 7 jrydberg
 
4725 1242 hpanther
# Break up conftest.undefs because some shells have a limit on the size
4726
# of here documents, and old seds have small limits too (100 cmds).
4727
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4728 7 jrydberg
rm -f conftest.tail
4729 1242 hpanther
while grep . conftest.undefs >/dev/null
4730 7 jrydberg
do
4731 1242 hpanther
  # Write a limited-size here document to $tmp/undefs.sed.
4732
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
4733
  # Speed up: don't consider the non `#undef'
4734
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4735
  # Work around the forget-to-reset-the-flag bug.
4736
  echo 't clr' >>$CONFIG_STATUS
4737
  echo ': clr' >>$CONFIG_STATUS
4738
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4739 7 jrydberg
  echo 'CEOF
4740 1242 hpanther
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4741
  rm -f $tmp/in
4742
  mv $tmp/out $tmp/in
4743
' >>$CONFIG_STATUS
4744
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4745
  rm -f conftest.undefs
4746
  mv conftest.tail conftest.undefs
4747 7 jrydberg
done
4748 1242 hpanther
rm -f conftest.undefs
4749 7 jrydberg
 
4750 1249 lampret
cat >>$CONFIG_STATUS <<\EOF
4751 1242 hpanther
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4752
  # use $as_me), people would be surprised to read:
4753 1249 lampret
  #    /* config.h.  Generated automatically by config.status.  */
4754 1242 hpanther
  if test x"$ac_file" = x-; then
4755 1249 lampret
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
4756 7 jrydberg
  else
4757 1249 lampret
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
4758 1242 hpanther
  fi
4759
  cat $tmp/in >>$tmp/config.h
4760
  rm -f $tmp/in
4761
  if test x"$ac_file" != x-; then
4762 1249 lampret
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4763
      { echo "$as_me:4763: $ac_file is unchanged" >&5
4764 1242 hpanther
echo "$as_me: $ac_file is unchanged" >&6;}
4765
    else
4766 1249 lampret
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4767 1242 hpanther
         X"$ac_file" : 'X\(//\)[^/]' \| \
4768
         X"$ac_file" : 'X\(//\)$' \| \
4769
         X"$ac_file" : 'X\(/\)' \| \
4770
         .     : '\(.\)' 2>/dev/null ||
4771
echo X"$ac_file" |
4772
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4773
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4774
          /^X\(\/\/\)$/{ s//\1/; q; }
4775
          /^X\(\/\).*/{ s//\1/; q; }
4776
          s/.*/./; q'`
4777 1249 lampret
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4778
        { case "$ac_dir" in
4779
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4780
  *)                      as_incr_dir=.;;
4781
esac
4782
as_dummy="$ac_dir"
4783
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4784
  case $as_mkdir_dir in
4785
    # Skip DOS drivespec
4786
    ?:) as_incr_dir=$as_mkdir_dir ;;
4787
    *)
4788
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4789
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4790
    ;;
4791
  esac
4792
done; }
4793 1242 hpanther
 
4794 1249 lampret
      fi
4795 1242 hpanther
      rm -f $ac_file
4796
      mv $tmp/config.h $ac_file
4797 7 jrydberg
    fi
4798 1242 hpanther
  else
4799
    cat $tmp/config.h
4800
    rm -f $tmp/config.h
4801 7 jrydberg
  fi
4802 1242 hpanther
  # Run the commands associated with the file.
4803
  case $ac_file in
4804
    config.h ) # update the timestamp
4805
echo 'timestamp for config.h' >"./stamp-h1"
4806
 ;;
4807
  esac
4808
done
4809 1249 lampret
EOF
4810
cat >>$CONFIG_STATUS <<\EOF
4811 7 jrydberg
 
4812 1242 hpanther
#
4813
# CONFIG_COMMANDS section.
4814
#
4815
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4816
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4817
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4818 7 jrydberg
 
4819 1242 hpanther
  case $ac_dest in
4820
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4821
  # Strip MF so we end up with the name of the file.
4822
  mf=`echo "$mf" | sed -e 's/:.*$//'`
4823 1249 lampret
  if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
4824
    dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4825 1242 hpanther
         X"$mf" : 'X\(//\)[^/]' \| \
4826
         X"$mf" : 'X\(//\)$' \| \
4827
         X"$mf" : 'X\(/\)' \| \
4828
         .     : '\(.\)' 2>/dev/null ||
4829
echo X"$mf" |
4830
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4831
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4832
          /^X\(\/\/\)$/{ s//\1/; q; }
4833
          /^X\(\/\).*/{ s//\1/; q; }
4834
          s/.*/./; q'`
4835
  else
4836
    continue
4837
  fi
4838
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4839
  # Extract the definition of DEP_FILES from the Makefile without
4840
  # running `make'.
4841
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4842
  test -z "$DEPDIR" && continue
4843
  # When using ansi2knr, U may be empty or an underscore; expand it
4844
  U=`sed -n -e '/^U = / s///p' < "$mf"`
4845
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4846
  # We invoke sed twice because it is the simplest approach to
4847
  # changing $(DEPDIR) to its actual value in the expansion.
4848
  for file in `sed -n -e '
4849
    /^DEP_FILES = .*\\\\$/ {
4850
      s/^DEP_FILES = //
4851
      :loop
4852
        s/\\\\$//
4853
        p
4854
        n
4855
        /\\\\$/ b loop
4856
      p
4857
    }
4858
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4859
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4860
    # Make sure the directory exists.
4861
    test -f "$dirpart/$file" && continue
4862 1249 lampret
    fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4863 1242 hpanther
         X"$file" : 'X\(//\)[^/]' \| \
4864
         X"$file" : 'X\(//\)$' \| \
4865
         X"$file" : 'X\(/\)' \| \
4866
         .     : '\(.\)' 2>/dev/null ||
4867
echo X"$file" |
4868
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4869
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4870
          /^X\(\/\/\)$/{ s//\1/; q; }
4871
          /^X\(\/\).*/{ s//\1/; q; }
4872
          s/.*/./; q'`
4873 1249 lampret
    { case $dirpart/$fdir in
4874
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4875
  *)                      as_incr_dir=.;;
4876
esac
4877
as_dummy=$dirpart/$fdir
4878
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4879
  case $as_mkdir_dir in
4880
    # Skip DOS drivespec
4881
    ?:) as_incr_dir=$as_mkdir_dir ;;
4882
    *)
4883
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4884
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4885
    ;;
4886
  esac
4887
done; }
4888 1242 hpanther
 
4889
    # echo "creating $dirpart/$file"
4890
    echo '# dummy' > "$dirpart/$file"
4891
  done
4892
done
4893
 ;;
4894
    default )
4895 7 jrydberg
# Makefile uses this timestamp file to record whether config.h is up to date.
4896
echo > stamp-h
4897 1242 hpanther
 ;;
4898
  esac
4899
done
4900 1249 lampret
EOF
4901 7 jrydberg
 
4902 1249 lampret
cat >>$CONFIG_STATUS <<\EOF
4903 1242 hpanther
 
4904
{ (exit 0); exit 0; }
4905 1249 lampret
EOF
4906 7 jrydberg
chmod +x $CONFIG_STATUS
4907 1242 hpanther
ac_clean_files=$ac_clean_files_save
4908 7 jrydberg
 
4909 1242 hpanther
# configure is writing to config.log, and then calls config.status.
4910
# config.status does its own redirection, appending to config.log.
4911
# Unfortunately, on DOS this fails, as config.log is still kept open
4912
# by configure, so config.status won't be able to write to it; its
4913
# output is simply discarded.  So we exec the FD to /dev/null,
4914
# effectively closing config.log, so it can be properly (re)opened and
4915
# appended to by config.status.  When coming back to configure, we
4916
# need to make the FD available again.
4917
if test "$no_create" != yes; then
4918
  ac_cs_success=:
4919
  exec 5>/dev/null
4920 1249 lampret
  $SHELL $CONFIG_STATUS || ac_cs_success=false
4921 1242 hpanther
  exec 5>>config.log
4922
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4923
  # would make configure fail if this is the last instruction.
4924
  $ac_cs_success || { (exit 1); exit 1; }
4925
fi
4926
 

powered by: WebSVN 2.1.0

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