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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [configure] - Blame information for rev 807

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 jrydberg
#! /bin/sh
2
 
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
#
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
 
10
# Defaults:
11
ac_help=
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14 17 jrydberg
ac_help="$ac_help
15
  --enable-readline       Use GNU readline"
16 167 markom
ac_help="$ac_help
17 517 markom
  --enable-profiling      generate profiling code"
18
ac_help="$ac_help
19 551 markom
  --enable-fsim      compiles fsim, based on fast_config.c"
20
ac_help="$ac_help
21 706 markom
  --enable-simple    compiles sim with simple execution"
22
ac_help="$ac_help
23 721 markom
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis."
24
ac_help="$ac_help
25
  --enable-ov-flag      Whether instructions set overflow flag."
26
ac_help="$ac_help
27
  --enable-arith-flag      Whether arithmethic instructions setflag."
28
ac_help="$ac_help
29 202 erez
  --enable-impl=     use -specific environment
30
                          (one of: bender, mp3, default)"
31 7 jrydberg
 
32
# Initialize some variables set by options.
33
# The variables have the same names as the options, with
34
# dashes changed to underlines.
35
build=NONE
36
cache_file=./config.cache
37
exec_prefix=NONE
38
host=NONE
39
no_create=
40
nonopt=NONE
41
no_recursion=
42
prefix=NONE
43
program_prefix=NONE
44
program_suffix=NONE
45
program_transform_name=s,x,x,
46
silent=
47
site=
48
srcdir=
49
target=NONE
50
verbose=
51
x_includes=NONE
52
x_libraries=NONE
53
bindir='${exec_prefix}/bin'
54
sbindir='${exec_prefix}/sbin'
55
libexecdir='${exec_prefix}/libexec'
56
datadir='${prefix}/share'
57
sysconfdir='${prefix}/etc'
58
sharedstatedir='${prefix}/com'
59
localstatedir='${prefix}/var'
60
libdir='${exec_prefix}/lib'
61
includedir='${prefix}/include'
62
oldincludedir='/usr/include'
63
infodir='${prefix}/info'
64
mandir='${prefix}/man'
65
 
66
# Initialize some other variables.
67
subdirs=
68
MFLAGS= MAKEFLAGS=
69
SHELL=${CONFIG_SHELL-/bin/sh}
70
# Maximum number of lines to put in a shell here document.
71
ac_max_here_lines=12
72
 
73
ac_prev=
74
for ac_option
75
do
76
 
77
  # If the previous option needs an argument, assign it.
78
  if test -n "$ac_prev"; then
79
    eval "$ac_prev=\$ac_option"
80
    ac_prev=
81
    continue
82
  fi
83
 
84
  case "$ac_option" in
85
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86
  *) ac_optarg= ;;
87
  esac
88
 
89
  # Accept the important Cygnus configure options, so we can diagnose typos.
90
 
91
  case "$ac_option" in
92
 
93
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
94
    ac_prev=bindir ;;
95
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96
    bindir="$ac_optarg" ;;
97
 
98
  -build | --build | --buil | --bui | --bu)
99
    ac_prev=build ;;
100
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101
    build="$ac_optarg" ;;
102
 
103
  -cache-file | --cache-file | --cache-fil | --cache-fi \
104
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105
    ac_prev=cache_file ;;
106
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108
    cache_file="$ac_optarg" ;;
109
 
110
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111
    ac_prev=datadir ;;
112
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113
  | --da=*)
114
    datadir="$ac_optarg" ;;
115
 
116
  -disable-* | --disable-*)
117
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118
    # Reject names that are not valid shell variable names.
119
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121
    fi
122
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123
    eval "enable_${ac_feature}=no" ;;
124
 
125
  -enable-* | --enable-*)
126
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127
    # Reject names that are not valid shell variable names.
128
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130
    fi
131
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132
    case "$ac_option" in
133
      *=*) ;;
134
      *) ac_optarg=yes ;;
135
    esac
136
    eval "enable_${ac_feature}='$ac_optarg'" ;;
137
 
138
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140
  | --exec | --exe | --ex)
141
    ac_prev=exec_prefix ;;
142
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144
  | --exec=* | --exe=* | --ex=*)
145
    exec_prefix="$ac_optarg" ;;
146
 
147
  -gas | --gas | --ga | --g)
148
    # Obsolete; use --with-gas.
149
    with_gas=yes ;;
150
 
151
  -help | --help | --hel | --he)
152
    # Omit some internal or obsolete options to make the list less imposing.
153
    # This message is too long to be a string in the A/UX 3.1 sh.
154
    cat << EOF
155
Usage: configure [options] [host]
156
Options: [defaults in brackets after descriptions]
157
Configuration:
158
  --cache-file=FILE       cache test results in FILE
159
  --help                  print this message
160
  --no-create             do not create output files
161
  --quiet, --silent       do not print \`checking...' messages
162
  --version               print the version of autoconf that created configure
163
Directory and file names:
164
  --prefix=PREFIX         install architecture-independent files in PREFIX
165
                          [$ac_default_prefix]
166
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
167
                          [same as prefix]
168
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
169
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
170
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
171
  --datadir=DIR           read-only architecture-independent data in DIR
172
                          [PREFIX/share]
173
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
174
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
175
                          [PREFIX/com]
176
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
177
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
178
  --includedir=DIR        C header files in DIR [PREFIX/include]
179
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
180
  --infodir=DIR           info documentation in DIR [PREFIX/info]
181
  --mandir=DIR            man documentation in DIR [PREFIX/man]
182
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
183
  --program-prefix=PREFIX prepend PREFIX to installed program names
184
  --program-suffix=SUFFIX append SUFFIX to installed program names
185
  --program-transform-name=PROGRAM
186
                          run sed PROGRAM on installed program names
187
EOF
188
    cat << EOF
189
Host type:
190
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
191
  --host=HOST             configure for HOST [guessed]
192
  --target=TARGET         configure for TARGET [TARGET=HOST]
193
Features and packages:
194
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
195
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
196
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
197
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
198
  --x-includes=DIR        X include files are in DIR
199
  --x-libraries=DIR       X library files are in DIR
200
EOF
201
    if test -n "$ac_help"; then
202
      echo "--enable and --with options recognized:$ac_help"
203
    fi
204
    exit 0 ;;
205
 
206
  -host | --host | --hos | --ho)
207
    ac_prev=host ;;
208
  -host=* | --host=* | --hos=* | --ho=*)
209
    host="$ac_optarg" ;;
210
 
211
  -includedir | --includedir | --includedi | --included | --include \
212
  | --includ | --inclu | --incl | --inc)
213
    ac_prev=includedir ;;
214
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215
  | --includ=* | --inclu=* | --incl=* | --inc=*)
216
    includedir="$ac_optarg" ;;
217
 
218
  -infodir | --infodir | --infodi | --infod | --info | --inf)
219
    ac_prev=infodir ;;
220
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221
    infodir="$ac_optarg" ;;
222
 
223
  -libdir | --libdir | --libdi | --libd)
224
    ac_prev=libdir ;;
225
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
226
    libdir="$ac_optarg" ;;
227
 
228
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229
  | --libexe | --libex | --libe)
230
    ac_prev=libexecdir ;;
231
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232
  | --libexe=* | --libex=* | --libe=*)
233
    libexecdir="$ac_optarg" ;;
234
 
235
  -localstatedir | --localstatedir | --localstatedi | --localstated \
236
  | --localstate | --localstat | --localsta | --localst \
237
  | --locals | --local | --loca | --loc | --lo)
238
    ac_prev=localstatedir ;;
239
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242
    localstatedir="$ac_optarg" ;;
243
 
244
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245
    ac_prev=mandir ;;
246
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247
    mandir="$ac_optarg" ;;
248
 
249
  -nfp | --nfp | --nf)
250
    # Obsolete; use --without-fp.
251
    with_fp=no ;;
252
 
253
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254
  | --no-cr | --no-c)
255
    no_create=yes ;;
256
 
257
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259
    no_recursion=yes ;;
260
 
261
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263
  | --oldin | --oldi | --old | --ol | --o)
264
    ac_prev=oldincludedir ;;
265
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268
    oldincludedir="$ac_optarg" ;;
269
 
270
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271
    ac_prev=prefix ;;
272
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273
    prefix="$ac_optarg" ;;
274
 
275
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
276
  | --program-pre | --program-pr | --program-p)
277
    ac_prev=program_prefix ;;
278
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
279
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280
    program_prefix="$ac_optarg" ;;
281
 
282
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
283
  | --program-suf | --program-su | --program-s)
284
    ac_prev=program_suffix ;;
285
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
286
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287
    program_suffix="$ac_optarg" ;;
288
 
289
  -program-transform-name | --program-transform-name \
290
  | --program-transform-nam | --program-transform-na \
291
  | --program-transform-n | --program-transform- \
292
  | --program-transform | --program-transfor \
293
  | --program-transfo | --program-transf \
294
  | --program-trans | --program-tran \
295
  | --progr-tra | --program-tr | --program-t)
296
    ac_prev=program_transform_name ;;
297
  -program-transform-name=* | --program-transform-name=* \
298
  | --program-transform-nam=* | --program-transform-na=* \
299
  | --program-transform-n=* | --program-transform-=* \
300
  | --program-transform=* | --program-transfor=* \
301
  | --program-transfo=* | --program-transf=* \
302
  | --program-trans=* | --program-tran=* \
303
  | --progr-tra=* | --program-tr=* | --program-t=*)
304
    program_transform_name="$ac_optarg" ;;
305
 
306
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307
  | -silent | --silent | --silen | --sile | --sil)
308
    silent=yes ;;
309
 
310
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311
    ac_prev=sbindir ;;
312
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313
  | --sbi=* | --sb=*)
314
    sbindir="$ac_optarg" ;;
315
 
316
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
317
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318
  | --sharedst | --shareds | --shared | --share | --shar \
319
  | --sha | --sh)
320
    ac_prev=sharedstatedir ;;
321
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324
  | --sha=* | --sh=*)
325
    sharedstatedir="$ac_optarg" ;;
326
 
327
  -site | --site | --sit)
328
    ac_prev=site ;;
329
  -site=* | --site=* | --sit=*)
330
    site="$ac_optarg" ;;
331
 
332
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333
    ac_prev=srcdir ;;
334
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335
    srcdir="$ac_optarg" ;;
336
 
337
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338
  | --syscon | --sysco | --sysc | --sys | --sy)
339
    ac_prev=sysconfdir ;;
340
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342
    sysconfdir="$ac_optarg" ;;
343
 
344
  -target | --target | --targe | --targ | --tar | --ta | --t)
345
    ac_prev=target ;;
346
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347
    target="$ac_optarg" ;;
348
 
349
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
350
    verbose=yes ;;
351
 
352
  -version | --version | --versio | --versi | --vers)
353
    echo "configure generated by autoconf version 2.13"
354
    exit 0 ;;
355
 
356
  -with-* | --with-*)
357
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358
    # Reject names that are not valid shell variable names.
359
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361
    fi
362
    ac_package=`echo $ac_package| sed 's/-/_/g'`
363
    case "$ac_option" in
364
      *=*) ;;
365
      *) ac_optarg=yes ;;
366
    esac
367
    eval "with_${ac_package}='$ac_optarg'" ;;
368
 
369
  -without-* | --without-*)
370
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371
    # Reject names that are not valid shell variable names.
372
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374
    fi
375
    ac_package=`echo $ac_package| sed 's/-/_/g'`
376
    eval "with_${ac_package}=no" ;;
377
 
378
  --x)
379
    # Obsolete; use --with-x.
380
    with_x=yes ;;
381
 
382
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383
  | --x-incl | --x-inc | --x-in | --x-i)
384
    ac_prev=x_includes ;;
385
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387
    x_includes="$ac_optarg" ;;
388
 
389
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
390
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391
    ac_prev=x_libraries ;;
392
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394
    x_libraries="$ac_optarg" ;;
395
 
396
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397
    ;;
398
 
399
  *)
400
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401
      echo "configure: warning: $ac_option: invalid host type" 1>&2
402
    fi
403
    if test "x$nonopt" != xNONE; then
404
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405
    fi
406
    nonopt="$ac_option"
407
    ;;
408
 
409
  esac
410
done
411
 
412
if test -n "$ac_prev"; then
413
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414
fi
415
 
416
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
 
418
# File descriptor usage:
419
# 0 standard input
420
# 1 file creation
421
# 2 errors and warnings
422
# 3 some systems may open it to /dev/tty
423
# 4 used on the Kubota Titan
424
# 6 checking for... messages and results
425
# 5 compiler messages saved in config.log
426
if test "$silent" = yes; then
427
  exec 6>/dev/null
428
else
429
  exec 6>&1
430
fi
431
exec 5>./config.log
432
 
433
echo "\
434
This file contains any messages produced by compilers while
435
running configure, to aid debugging if configure makes a mistake.
436
" 1>&5
437
 
438
# Strip out --no-create and --no-recursion so they do not pile up.
439
# Also quote any args containing shell metacharacters.
440
ac_configure_args=
441
for ac_arg
442
do
443
  case "$ac_arg" in
444
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445
  | --no-cr | --no-c) ;;
446
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451
  esac
452
done
453
 
454
# NLS nuisances.
455
# Only set these to C if already set.  These must not be set unconditionally
456
# because not all systems understand e.g. LANG=C (notably SCO).
457
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458
# Non-C LC_CTYPE values break the ctype check.
459
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
460
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
463
 
464
# confdefs.h avoids OS command line length limits that DEFS can exceed.
465
rm -rf conftest* confdefs.h
466
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
467
echo > confdefs.h
468
 
469
# A filename unique to this package, relative to the directory that
470
# configure is in, which we can look for to find out if srcdir is correct.
471 18 lampret
ac_unique_file=cpu/or32/execute.c
472 7 jrydberg
 
473
# Find the source files, if location was not specified.
474
if test -z "$srcdir"; then
475
  ac_srcdir_defaulted=yes
476
  # Try the directory containing this script, then its parent.
477
  ac_prog=$0
478
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480
  srcdir=$ac_confdir
481
  if test ! -r $srcdir/$ac_unique_file; then
482
    srcdir=..
483
  fi
484
else
485
  ac_srcdir_defaulted=no
486
fi
487
if test ! -r $srcdir/$ac_unique_file; then
488
  if test "$ac_srcdir_defaulted" = yes; then
489
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490
  else
491
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492
  fi
493
fi
494
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
 
496
# Prefer explicitly selected file to automatically selected ones.
497
if test -z "$CONFIG_SITE"; then
498
  if test "x$prefix" != xNONE; then
499
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500
  else
501
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502
  fi
503
fi
504
for ac_site_file in $CONFIG_SITE; do
505
  if test -r "$ac_site_file"; then
506
    echo "loading site script $ac_site_file"
507
    . "$ac_site_file"
508
  fi
509
done
510
 
511
if test -r "$cache_file"; then
512
  echo "loading cache $cache_file"
513
  . $cache_file
514
else
515
  echo "creating cache $cache_file"
516
  > $cache_file
517
fi
518
 
519
ac_ext=c
520
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521
ac_cpp='$CPP $CPPFLAGS'
522
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524
cross_compiling=$ac_cv_prog_cc_cross
525
 
526
ac_exeext=
527
ac_objext=o
528
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531
    ac_n= ac_c='
532
' ac_t='        '
533
  else
534
    ac_n=-n ac_c= ac_t=
535
  fi
536
else
537
  ac_n= ac_c='\c' ac_t=
538
fi
539
 
540
 
541
ac_aux_dir=
542
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
543
  if test -f $ac_dir/install-sh; then
544
    ac_aux_dir=$ac_dir
545
    ac_install_sh="$ac_aux_dir/install-sh -c"
546
    break
547
  elif test -f $ac_dir/install.sh; then
548
    ac_aux_dir=$ac_dir
549
    ac_install_sh="$ac_aux_dir/install.sh -c"
550
    break
551
  fi
552
done
553
if test -z "$ac_aux_dir"; then
554
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555
fi
556
ac_config_guess=$ac_aux_dir/config.guess
557
ac_config_sub=$ac_aux_dir/config.sub
558
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559
 
560 11 jrydberg
 
561
# Do some error checking and defaulting for the host and target type.
562
# The inputs are:
563
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
564
#
565
# The rules are:
566
# 1. You are not allowed to specify --host, --target, and nonopt at the
567
#    same time.
568
# 2. Host defaults to nonopt.
569
# 3. If nonopt is not specified, then host defaults to the current host,
570
#    as determined by config.guess.
571
# 4. Target and build default to nonopt.
572
# 5. If nonopt is not specified, then target and build default to host.
573
 
574
# The aliases save the names the user supplied, while $host etc.
575
# will get canonicalized.
576
case $host---$target---$nonopt in
577
NONE---*---* | *---NONE---* | *---*---NONE) ;;
578
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
579
esac
580
 
581
 
582
# Make sure we can run config.sub.
583
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
584
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
585
fi
586
 
587
echo $ac_n "checking host system type""... $ac_c" 1>&6
588 721 markom
echo "configure:589: checking host system type" >&5
589 11 jrydberg
 
590
host_alias=$host
591
case "$host_alias" in
592
NONE)
593
  case $nonopt in
594
  NONE)
595
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
596
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
597
    fi ;;
598
  *) host_alias=$nonopt ;;
599
  esac ;;
600
esac
601
 
602
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
603
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
604
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
605
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
606
echo "$ac_t""$host" 1>&6
607
 
608
echo $ac_n "checking target system type""... $ac_c" 1>&6
609 721 markom
echo "configure:610: checking target system type" >&5
610 11 jrydberg
 
611
target_alias=$target
612
case "$target_alias" in
613
NONE)
614
  case $nonopt in
615
  NONE) target_alias=$host_alias ;;
616
  *) target_alias=$nonopt ;;
617
  esac ;;
618
esac
619
 
620
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
621
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624
echo "$ac_t""$target" 1>&6
625
 
626
echo $ac_n "checking build system type""... $ac_c" 1>&6
627 721 markom
echo "configure:628: checking build system type" >&5
628 11 jrydberg
 
629
build_alias=$build
630
case "$build_alias" in
631
NONE)
632
  case $nonopt in
633
  NONE) build_alias=$host_alias ;;
634
  *) build_alias=$nonopt ;;
635
  esac ;;
636
esac
637
 
638
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
639
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642
echo "$ac_t""$build" 1>&6
643
 
644
test "$host_alias" != "$target_alias" &&
645
  test "$program_prefix$program_suffix$program_transform_name" = \
646
    NONENONEs,x,x, &&
647
  program_prefix=${target_alias}-
648
 
649 7 jrydberg
# Find a good install program.  We prefer a C program (faster),
650
# so one script is as good as another.  But avoid the broken or
651
# incompatible versions:
652
# SysV /etc/install, /usr/sbin/install
653
# SunOS /usr/etc/install
654
# IRIX /sbin/install
655
# AIX /bin/install
656
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
657
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
658
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
659
# ./install, which can be erroneously created by make from ./install.sh.
660
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
661 721 markom
echo "configure:662: checking for a BSD compatible install" >&5
662 7 jrydberg
if test -z "$INSTALL"; then
663
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
664
  echo $ac_n "(cached) $ac_c" 1>&6
665
else
666
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
667
  for ac_dir in $PATH; do
668
    # Account for people who put trailing slashes in PATH elements.
669
    case "$ac_dir/" in
670
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
671
    *)
672
      # OSF1 and SCO ODT 3.0 have their own names for install.
673
      # Don't use installbsd from OSF since it installs stuff as root
674
      # by default.
675
      for ac_prog in ginstall scoinst install; do
676
        if test -f $ac_dir/$ac_prog; then
677
          if test $ac_prog = install &&
678
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
679
            # AIX install.  It has an incompatible calling convention.
680
            :
681
          else
682
            ac_cv_path_install="$ac_dir/$ac_prog -c"
683
            break 2
684
          fi
685
        fi
686
      done
687
      ;;
688
    esac
689
  done
690
  IFS="$ac_save_IFS"
691
 
692
fi
693
  if test "${ac_cv_path_install+set}" = set; then
694
    INSTALL="$ac_cv_path_install"
695
  else
696
    # As a last resort, use the slow shell script.  We don't cache a
697
    # path for INSTALL within a source directory, because that will
698
    # break other packages using the cache if that directory is
699
    # removed, or if the path is relative.
700
    INSTALL="$ac_install_sh"
701
  fi
702
fi
703
echo "$ac_t""$INSTALL" 1>&6
704
 
705
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
706
# It thinks the first close brace ends the variable substitution.
707
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
708
 
709
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
710
 
711
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
712
 
713
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
714 721 markom
echo "configure:715: checking whether build environment is sane" >&5
715 7 jrydberg
# Just in case
716
sleep 1
717
echo timestamp > conftestfile
718
# Do `set' in a subshell so we don't clobber the current shell's
719
# arguments.  Must try -L first in case configure is actually a
720
# symlink; some systems play weird games with the mod time of symlinks
721
# (eg FreeBSD returns the mod time of the symlink's containing
722
# directory).
723
if (
724
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
725
   if test "$*" = "X"; then
726
      # -L didn't work.
727
      set X `ls -t $srcdir/configure conftestfile`
728
   fi
729
   if test "$*" != "X $srcdir/configure conftestfile" \
730
      && test "$*" != "X conftestfile $srcdir/configure"; then
731
 
732
      # If neither matched, then we have a broken ls.  This can happen
733
      # if, for instance, CONFIG_SHELL is bash and it inherits a
734
      # broken ls alias from the environment.  This has actually
735
      # happened.  Such a system could not be considered "sane".
736
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
737
alias in your environment" 1>&2; exit 1; }
738
   fi
739
 
740
   test "$2" = conftestfile
741
   )
742
then
743
   # Ok.
744
   :
745
else
746
   { echo "configure: error: newly created file is older than distributed files!
747
Check your system clock" 1>&2; exit 1; }
748
fi
749
rm -f conftest*
750
echo "$ac_t""yes" 1>&6
751
if test "$program_transform_name" = s,x,x,; then
752
  program_transform_name=
753
else
754
  # Double any \ or $.  echo might interpret backslashes.
755
  cat <<\EOF_SED > conftestsed
756
s,\\,\\\\,g; s,\$,$$,g
757
EOF_SED
758
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
759
  rm -f conftestsed
760
fi
761
test "$program_prefix" != NONE &&
762
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
763
# Use a double $ so make ignores it.
764
test "$program_suffix" != NONE &&
765
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
766
 
767
# sed with no file args requires a program.
768
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
769
 
770
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
771 721 markom
echo "configure:772: checking whether ${MAKE-make} sets \${MAKE}" >&5
772 7 jrydberg
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
773
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
774
  echo $ac_n "(cached) $ac_c" 1>&6
775
else
776
  cat > conftestmake <<\EOF
777
all:
778
        @echo 'ac_maketemp="${MAKE}"'
779
EOF
780
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
781
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
782
if test -n "$ac_maketemp"; then
783
  eval ac_cv_prog_make_${ac_make}_set=yes
784
else
785
  eval ac_cv_prog_make_${ac_make}_set=no
786
fi
787
rm -f conftestmake
788
fi
789
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
790
  echo "$ac_t""yes" 1>&6
791
  SET_MAKE=
792
else
793
  echo "$ac_t""no" 1>&6
794
  SET_MAKE="MAKE=${MAKE-make}"
795
fi
796
 
797
 
798
PACKAGE=or1ksim
799
 
800 26 lampret
VERSION=1.3
801 7 jrydberg
 
802
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
803
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
804
fi
805
cat >> confdefs.h <
806
#define PACKAGE "$PACKAGE"
807
EOF
808
 
809
cat >> confdefs.h <
810
#define VERSION "$VERSION"
811
EOF
812
 
813
 
814
 
815
missing_dir=`cd $ac_aux_dir && pwd`
816
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
817 721 markom
echo "configure:818: checking for working aclocal" >&5
818 7 jrydberg
# Run test in a subshell; some versions of sh will print an error if
819
# an executable is not found, even if stderr is redirected.
820
# Redirect stdin to placate older versions of autoconf.  Sigh.
821
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
822
   ACLOCAL=aclocal
823
   echo "$ac_t""found" 1>&6
824
else
825
   ACLOCAL="$missing_dir/missing aclocal"
826
   echo "$ac_t""missing" 1>&6
827
fi
828
 
829
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
830 721 markom
echo "configure:831: checking for working autoconf" >&5
831 7 jrydberg
# Run test in a subshell; some versions of sh will print an error if
832
# an executable is not found, even if stderr is redirected.
833
# Redirect stdin to placate older versions of autoconf.  Sigh.
834
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
835
   AUTOCONF=autoconf
836
   echo "$ac_t""found" 1>&6
837
else
838
   AUTOCONF="$missing_dir/missing autoconf"
839
   echo "$ac_t""missing" 1>&6
840
fi
841
 
842
echo $ac_n "checking for working automake""... $ac_c" 1>&6
843 721 markom
echo "configure:844: checking for working automake" >&5
844 7 jrydberg
# Run test in a subshell; some versions of sh will print an error if
845
# an executable is not found, even if stderr is redirected.
846
# Redirect stdin to placate older versions of autoconf.  Sigh.
847
if (automake --version) < /dev/null > /dev/null 2>&1; then
848
   AUTOMAKE=automake
849
   echo "$ac_t""found" 1>&6
850
else
851
   AUTOMAKE="$missing_dir/missing automake"
852
   echo "$ac_t""missing" 1>&6
853
fi
854
 
855
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
856 721 markom
echo "configure:857: checking for working autoheader" >&5
857 7 jrydberg
# Run test in a subshell; some versions of sh will print an error if
858
# an executable is not found, even if stderr is redirected.
859
# Redirect stdin to placate older versions of autoconf.  Sigh.
860
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
861
   AUTOHEADER=autoheader
862
   echo "$ac_t""found" 1>&6
863
else
864
   AUTOHEADER="$missing_dir/missing autoheader"
865
   echo "$ac_t""missing" 1>&6
866
fi
867
 
868
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
869 721 markom
echo "configure:870: checking for working makeinfo" >&5
870 7 jrydberg
# Run test in a subshell; some versions of sh will print an error if
871
# an executable is not found, even if stderr is redirected.
872
# Redirect stdin to placate older versions of autoconf.  Sigh.
873
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
874
   MAKEINFO=makeinfo
875
   echo "$ac_t""found" 1>&6
876
else
877
   MAKEINFO="$missing_dir/missing makeinfo"
878
   echo "$ac_t""missing" 1>&6
879
fi
880
 
881
 
882
 
883
 
884
 
885
 
886 18 lampret
# From configure.in for or1ksim-1.2, version 2.14, from autoconf version 2.13
887
SIMVERSION=1.2
888 7 jrydberg
 
889
 
890
 
891
# Make sure we can run config.sub.
892
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
893
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
894
fi
895
 
896
echo $ac_n "checking host system type""... $ac_c" 1>&6
897 721 markom
echo "configure:898: checking host system type" >&5
898 7 jrydberg
 
899
host_alias=$host
900
case "$host_alias" in
901
NONE)
902
  case $nonopt in
903
  NONE)
904
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
905
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
906
    fi ;;
907
  *) host_alias=$nonopt ;;
908
  esac ;;
909
esac
910
 
911
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
912
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
913
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
914
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915
echo "$ac_t""$host" 1>&6
916
 
917
 
918 28 lampret
case "$target_cpu" in
919
or32*)  CPU_ARCH=or32;
920
        ARCH_ISA=OR32;;
921
dlx*)   CPU_ARCH=dlx;
922
        ARCH_ISA=DLX;;
923
esac
924
 
925
 
926 7 jrydberg
# We want these before the checks, so the checks can modify their values.
927
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
928
 
929
# Extract the first word of "gcc", so it can be a program name with args.
930
set dummy gcc; ac_word=$2
931
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932 721 markom
echo "configure:933: checking for $ac_word" >&5
933 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
934
  echo $ac_n "(cached) $ac_c" 1>&6
935
else
936
  if test -n "$CC"; then
937
  ac_cv_prog_CC="$CC" # Let the user override the test.
938
else
939
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
940
  ac_dummy="$PATH"
941
  for ac_dir in $ac_dummy; do
942
    test -z "$ac_dir" && ac_dir=.
943
    if test -f $ac_dir/$ac_word; then
944
      ac_cv_prog_CC="gcc"
945
      break
946
    fi
947
  done
948
  IFS="$ac_save_ifs"
949
fi
950
fi
951
CC="$ac_cv_prog_CC"
952
if test -n "$CC"; then
953
  echo "$ac_t""$CC" 1>&6
954
else
955
  echo "$ac_t""no" 1>&6
956
fi
957
 
958
if test -z "$CC"; then
959
  # Extract the first word of "cc", so it can be a program name with args.
960
set dummy cc; ac_word=$2
961
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
962 721 markom
echo "configure:963: checking for $ac_word" >&5
963 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
964
  echo $ac_n "(cached) $ac_c" 1>&6
965
else
966
  if test -n "$CC"; then
967
  ac_cv_prog_CC="$CC" # Let the user override the test.
968
else
969
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
970
  ac_prog_rejected=no
971
  ac_dummy="$PATH"
972
  for ac_dir in $ac_dummy; do
973
    test -z "$ac_dir" && ac_dir=.
974
    if test -f $ac_dir/$ac_word; then
975
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
976
        ac_prog_rejected=yes
977
        continue
978
      fi
979
      ac_cv_prog_CC="cc"
980
      break
981
    fi
982
  done
983
  IFS="$ac_save_ifs"
984
if test $ac_prog_rejected = yes; then
985
  # We found a bogon in the path, so make sure we never use it.
986
  set dummy $ac_cv_prog_CC
987
  shift
988
  if test $# -gt 0; then
989
    # We chose a different compiler from the bogus one.
990
    # However, it has the same basename, so the bogon will be chosen
991
    # first if we set CC to just the basename; use the full file name.
992
    shift
993
    set dummy "$ac_dir/$ac_word" "$@"
994
    shift
995
    ac_cv_prog_CC="$@"
996
  fi
997
fi
998
fi
999
fi
1000
CC="$ac_cv_prog_CC"
1001
if test -n "$CC"; then
1002
  echo "$ac_t""$CC" 1>&6
1003
else
1004
  echo "$ac_t""no" 1>&6
1005
fi
1006
 
1007
  if test -z "$CC"; then
1008
    case "`uname -s`" in
1009
    *win32* | *WIN32*)
1010
      # Extract the first word of "cl", so it can be a program name with args.
1011
set dummy cl; ac_word=$2
1012
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013 721 markom
echo "configure:1014: checking for $ac_word" >&5
1014 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1015
  echo $ac_n "(cached) $ac_c" 1>&6
1016
else
1017
  if test -n "$CC"; then
1018
  ac_cv_prog_CC="$CC" # Let the user override the test.
1019
else
1020
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1021
  ac_dummy="$PATH"
1022
  for ac_dir in $ac_dummy; do
1023
    test -z "$ac_dir" && ac_dir=.
1024
    if test -f $ac_dir/$ac_word; then
1025
      ac_cv_prog_CC="cl"
1026
      break
1027
    fi
1028
  done
1029
  IFS="$ac_save_ifs"
1030
fi
1031
fi
1032
CC="$ac_cv_prog_CC"
1033
if test -n "$CC"; then
1034
  echo "$ac_t""$CC" 1>&6
1035
else
1036
  echo "$ac_t""no" 1>&6
1037
fi
1038
 ;;
1039
    esac
1040
  fi
1041
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1042
fi
1043
 
1044
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1045 721 markom
echo "configure:1046: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1046 7 jrydberg
 
1047
ac_ext=c
1048
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1049
ac_cpp='$CPP $CPPFLAGS'
1050
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1051
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1052
cross_compiling=$ac_cv_prog_cc_cross
1053
 
1054
cat > conftest.$ac_ext << EOF
1055
 
1056 721 markom
#line 1057 "configure"
1057 7 jrydberg
#include "confdefs.h"
1058
 
1059
main(){return(0);}
1060
EOF
1061 721 markom
if { (eval echo configure:1062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1062 7 jrydberg
  ac_cv_prog_cc_works=yes
1063
  # If we can't run a trivial program, we are probably using a cross compiler.
1064
  if (./conftest; exit) 2>/dev/null; then
1065
    ac_cv_prog_cc_cross=no
1066
  else
1067
    ac_cv_prog_cc_cross=yes
1068
  fi
1069
else
1070
  echo "configure: failed program was:" >&5
1071
  cat conftest.$ac_ext >&5
1072
  ac_cv_prog_cc_works=no
1073
fi
1074
rm -fr conftest*
1075
ac_ext=c
1076
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1077
ac_cpp='$CPP $CPPFLAGS'
1078
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1079
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1080
cross_compiling=$ac_cv_prog_cc_cross
1081
 
1082
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1083
if test $ac_cv_prog_cc_works = no; then
1084
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1085
fi
1086
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1087 721 markom
echo "configure:1088: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1088 7 jrydberg
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1089
cross_compiling=$ac_cv_prog_cc_cross
1090
 
1091
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1092 721 markom
echo "configure:1093: checking whether we are using GNU C" >&5
1093 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1094
  echo $ac_n "(cached) $ac_c" 1>&6
1095
else
1096
  cat > conftest.c <
1097
#ifdef __GNUC__
1098
  yes;
1099
#endif
1100
EOF
1101 721 markom
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1102 7 jrydberg
  ac_cv_prog_gcc=yes
1103
else
1104
  ac_cv_prog_gcc=no
1105
fi
1106
fi
1107
 
1108
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1109
 
1110
if test $ac_cv_prog_gcc = yes; then
1111
  GCC=yes
1112
else
1113
  GCC=
1114
fi
1115
 
1116
ac_test_CFLAGS="${CFLAGS+set}"
1117
ac_save_CFLAGS="$CFLAGS"
1118
CFLAGS=
1119
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1120 721 markom
echo "configure:1121: checking whether ${CC-cc} accepts -g" >&5
1121 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1122
  echo $ac_n "(cached) $ac_c" 1>&6
1123
else
1124
  echo 'void f(){}' > conftest.c
1125
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1126
  ac_cv_prog_cc_g=yes
1127
else
1128
  ac_cv_prog_cc_g=no
1129
fi
1130
rm -f conftest*
1131
 
1132
fi
1133
 
1134
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1135
if test "$ac_test_CFLAGS" = set; then
1136
  CFLAGS="$ac_save_CFLAGS"
1137
elif test $ac_cv_prog_cc_g = yes; then
1138
  if test "$GCC" = yes; then
1139
    CFLAGS="-g -O2"
1140
  else
1141
    CFLAGS="-g"
1142
  fi
1143
else
1144
  if test "$GCC" = yes; then
1145
    CFLAGS="-O2"
1146
  else
1147
    CFLAGS=
1148
  fi
1149
fi
1150
 
1151
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1152 721 markom
echo "configure:1153: checking how to run the C preprocessor" >&5
1153 7 jrydberg
# On Suns, sometimes $CPP names a directory.
1154
if test -n "$CPP" && test -d "$CPP"; then
1155
  CPP=
1156
fi
1157
if test -z "$CPP"; then
1158
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1159
  echo $ac_n "(cached) $ac_c" 1>&6
1160
else
1161
    # This must be in double quotes, not single quotes, because CPP may get
1162
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1163
  CPP="${CC-cc} -E"
1164
  # On the NeXT, cc -E runs the code through the compiler's parser,
1165
  # not just through cpp.
1166
  cat > conftest.$ac_ext <
1167 721 markom
#line 1168 "configure"
1168 7 jrydberg
#include "confdefs.h"
1169
#include 
1170
Syntax Error
1171
EOF
1172
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1173 721 markom
{ (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1174 7 jrydberg
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1175
if test -z "$ac_err"; then
1176
  :
1177
else
1178
  echo "$ac_err" >&5
1179
  echo "configure: failed program was:" >&5
1180
  cat conftest.$ac_ext >&5
1181
  rm -rf conftest*
1182
  CPP="${CC-cc} -E -traditional-cpp"
1183
  cat > conftest.$ac_ext <
1184 721 markom
#line 1185 "configure"
1185 7 jrydberg
#include "confdefs.h"
1186
#include 
1187
Syntax Error
1188
EOF
1189
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1190 721 markom
{ (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1191 7 jrydberg
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1192
if test -z "$ac_err"; then
1193
  :
1194
else
1195
  echo "$ac_err" >&5
1196
  echo "configure: failed program was:" >&5
1197
  cat conftest.$ac_ext >&5
1198
  rm -rf conftest*
1199
  CPP="${CC-cc} -nologo -E"
1200
  cat > conftest.$ac_ext <
1201 721 markom
#line 1202 "configure"
1202 7 jrydberg
#include "confdefs.h"
1203
#include 
1204
Syntax Error
1205
EOF
1206
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1207 721 markom
{ (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1208 7 jrydberg
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1209
if test -z "$ac_err"; then
1210
  :
1211
else
1212
  echo "$ac_err" >&5
1213
  echo "configure: failed program was:" >&5
1214
  cat conftest.$ac_ext >&5
1215
  rm -rf conftest*
1216
  CPP=/lib/cpp
1217
fi
1218
rm -f conftest*
1219
fi
1220
rm -f conftest*
1221
fi
1222
rm -f conftest*
1223
  ac_cv_prog_CPP="$CPP"
1224
fi
1225
  CPP="$ac_cv_prog_CPP"
1226
else
1227
  ac_cv_prog_CPP="$CPP"
1228
fi
1229
echo "$ac_t""$CPP" 1>&6
1230
 
1231
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1232
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1233 721 markom
echo "configure:1234: checking for minix/config.h" >&5
1234 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1235
  echo $ac_n "(cached) $ac_c" 1>&6
1236
else
1237
  cat > conftest.$ac_ext <
1238 721 markom
#line 1239 "configure"
1239 7 jrydberg
#include "confdefs.h"
1240
#include 
1241
EOF
1242
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1243 721 markom
{ (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1244 7 jrydberg
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1245
if test -z "$ac_err"; then
1246
  rm -rf conftest*
1247
  eval "ac_cv_header_$ac_safe=yes"
1248
else
1249
  echo "$ac_err" >&5
1250
  echo "configure: failed program was:" >&5
1251
  cat conftest.$ac_ext >&5
1252
  rm -rf conftest*
1253
  eval "ac_cv_header_$ac_safe=no"
1254
fi
1255
rm -f conftest*
1256
fi
1257
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1258
  echo "$ac_t""yes" 1>&6
1259
  MINIX=yes
1260
else
1261
  echo "$ac_t""no" 1>&6
1262
MINIX=
1263
fi
1264
 
1265
if test "$MINIX" = yes; then
1266
  cat >> confdefs.h <<\EOF
1267
#define _POSIX_SOURCE 1
1268
EOF
1269
 
1270
  cat >> confdefs.h <<\EOF
1271
#define _POSIX_1_SOURCE 2
1272
EOF
1273
 
1274
  cat >> confdefs.h <<\EOF
1275
#define _MINIX 1
1276
EOF
1277
 
1278
fi
1279
 
1280
 
1281
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1282 721 markom
echo "configure:1283: checking whether ${MAKE-make} sets \${MAKE}" >&5
1283 7 jrydberg
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1284
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1285
  echo $ac_n "(cached) $ac_c" 1>&6
1286
else
1287
  cat > conftestmake <<\EOF
1288
all:
1289
        @echo 'ac_maketemp="${MAKE}"'
1290
EOF
1291
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1292
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1293
if test -n "$ac_maketemp"; then
1294
  eval ac_cv_prog_make_${ac_make}_set=yes
1295
else
1296
  eval ac_cv_prog_make_${ac_make}_set=no
1297
fi
1298
rm -f conftestmake
1299
fi
1300
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1301
  echo "$ac_t""yes" 1>&6
1302
  SET_MAKE=
1303
else
1304
  echo "$ac_t""no" 1>&6
1305
  SET_MAKE="MAKE=${MAKE-make}"
1306
fi
1307
 
1308
 
1309
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
1310 28 lampret
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
1311 7 jrydberg
 
1312
if test $ac_cv_prog_gcc = yes; then
1313
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1314 721 markom
echo "configure:1315: checking whether ${CC-cc} needs -traditional" >&5
1315 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1316
  echo $ac_n "(cached) $ac_c" 1>&6
1317
else
1318
    ac_pattern="Autoconf.*'x'"
1319
  cat > conftest.$ac_ext <
1320 721 markom
#line 1321 "configure"
1321 7 jrydberg
#include "confdefs.h"
1322
#include 
1323
Autoconf TIOCGETP
1324
EOF
1325
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1326
  egrep "$ac_pattern" >/dev/null 2>&1; then
1327
  rm -rf conftest*
1328
  ac_cv_prog_gcc_traditional=yes
1329
else
1330
  rm -rf conftest*
1331
  ac_cv_prog_gcc_traditional=no
1332
fi
1333
rm -f conftest*
1334
 
1335
 
1336
  if test $ac_cv_prog_gcc_traditional = no; then
1337
    cat > conftest.$ac_ext <
1338 721 markom
#line 1339 "configure"
1339 7 jrydberg
#include "confdefs.h"
1340
#include 
1341
Autoconf TCGETA
1342
EOF
1343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1344
  egrep "$ac_pattern" >/dev/null 2>&1; then
1345
  rm -rf conftest*
1346
  ac_cv_prog_gcc_traditional=yes
1347
fi
1348
rm -f conftest*
1349
 
1350
  fi
1351
fi
1352
 
1353
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1354
  if test $ac_cv_prog_gcc_traditional = yes; then
1355
    CC="$CC -traditional"
1356
  fi
1357
fi
1358
 
1359
# Find a good install program.  We prefer a C program (faster),
1360
# so one script is as good as another.  But avoid the broken or
1361
# incompatible versions:
1362
# SysV /etc/install, /usr/sbin/install
1363
# SunOS /usr/etc/install
1364
# IRIX /sbin/install
1365
# AIX /bin/install
1366
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1367
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1368
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1369
# ./install, which can be erroneously created by make from ./install.sh.
1370
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1371 721 markom
echo "configure:1372: checking for a BSD compatible install" >&5
1372 7 jrydberg
if test -z "$INSTALL"; then
1373
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1374
  echo $ac_n "(cached) $ac_c" 1>&6
1375
else
1376
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1377
  for ac_dir in $PATH; do
1378
    # Account for people who put trailing slashes in PATH elements.
1379
    case "$ac_dir/" in
1380
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1381
    *)
1382
      # OSF1 and SCO ODT 3.0 have their own names for install.
1383
      # Don't use installbsd from OSF since it installs stuff as root
1384
      # by default.
1385
      for ac_prog in ginstall scoinst install; do
1386
        if test -f $ac_dir/$ac_prog; then
1387
          if test $ac_prog = install &&
1388
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1389
            # AIX install.  It has an incompatible calling convention.
1390
            :
1391
          else
1392
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1393
            break 2
1394
          fi
1395
        fi
1396
      done
1397
      ;;
1398
    esac
1399
  done
1400
  IFS="$ac_save_IFS"
1401
 
1402
fi
1403
  if test "${ac_cv_path_install+set}" = set; then
1404
    INSTALL="$ac_cv_path_install"
1405
  else
1406
    # As a last resort, use the slow shell script.  We don't cache a
1407
    # path for INSTALL within a source directory, because that will
1408
    # break other packages using the cache if that directory is
1409
    # removed, or if the path is relative.
1410
    INSTALL="$ac_install_sh"
1411
  fi
1412
fi
1413
echo "$ac_t""$INSTALL" 1>&6
1414
 
1415
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416
# It thinks the first close brace ends the variable substitution.
1417
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418
 
1419
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1420
 
1421
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422
 
1423
# Extract the first word of "ar", so it can be a program name with args.
1424
set dummy ar; ac_word=$2
1425
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1426 721 markom
echo "configure:1427: checking for $ac_word" >&5
1427 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1428
  echo $ac_n "(cached) $ac_c" 1>&6
1429
else
1430
  if test -n "$AR"; then
1431
  ac_cv_prog_AR="$AR" # Let the user override the test.
1432
else
1433
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1434
  ac_dummy="$PATH"
1435
  for ac_dir in $ac_dummy; do
1436
    test -z "$ac_dir" && ac_dir=.
1437
    if test -f $ac_dir/$ac_word; then
1438
      ac_cv_prog_AR="ar"
1439
      break
1440
    fi
1441
  done
1442
  IFS="$ac_save_ifs"
1443
fi
1444
fi
1445
AR="$ac_cv_prog_AR"
1446
if test -n "$AR"; then
1447
  echo "$ac_t""$AR" 1>&6
1448
else
1449
  echo "$ac_t""no" 1>&6
1450
fi
1451
 
1452
test -n "$ARFLAGS" || ARFLAGS="cr"
1453
# Extract the first word of "ranlib", so it can be a program name with args.
1454
set dummy ranlib; ac_word=$2
1455
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1456 721 markom
echo "configure:1457: checking for $ac_word" >&5
1457 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1458
  echo $ac_n "(cached) $ac_c" 1>&6
1459
else
1460
  if test -n "$RANLIB"; then
1461
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1462
else
1463
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1464
  ac_dummy="$PATH"
1465
  for ac_dir in $ac_dummy; do
1466
    test -z "$ac_dir" && ac_dir=.
1467
    if test -f $ac_dir/$ac_word; then
1468
      ac_cv_prog_RANLIB="ranlib"
1469
      break
1470
    fi
1471
  done
1472
  IFS="$ac_save_ifs"
1473
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1474
fi
1475
fi
1476
RANLIB="$ac_cv_prog_RANLIB"
1477
if test -n "$RANLIB"; then
1478
  echo "$ac_t""$RANLIB" 1>&6
1479
else
1480
  echo "$ac_t""no" 1>&6
1481
fi
1482
 
1483
 
1484
MAKE_SHELL=/bin/sh
1485
 
1486
 
1487
 
1488
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1489 721 markom
echo "configure:1490: checking return type of signal handlers" >&5
1490 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1491
  echo $ac_n "(cached) $ac_c" 1>&6
1492
else
1493
  cat > conftest.$ac_ext <
1494 721 markom
#line 1495 "configure"
1495 7 jrydberg
#include "confdefs.h"
1496
#include 
1497
#include 
1498
#ifdef signal
1499
#undef signal
1500
#endif
1501
#ifdef __cplusplus
1502
extern "C" void (*signal (int, void (*)(int)))(int);
1503
#else
1504
void (*signal ()) ();
1505
#endif
1506
 
1507
int main() {
1508
int i;
1509
; return 0; }
1510
EOF
1511 721 markom
if { (eval echo configure:1512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1512 7 jrydberg
  rm -rf conftest*
1513
  ac_cv_type_signal=void
1514
else
1515
  echo "configure: failed program was:" >&5
1516
  cat conftest.$ac_ext >&5
1517
  rm -rf conftest*
1518
  ac_cv_type_signal=int
1519
fi
1520
rm -f conftest*
1521
fi
1522
 
1523
echo "$ac_t""$ac_cv_type_signal" 1>&6
1524
cat >> confdefs.h <
1525
#define RETSIGTYPE $ac_cv_type_signal
1526
EOF
1527
 
1528
 
1529
echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1530 721 markom
echo "configure:1531: checking whether stat file-mode macros are broken" >&5
1531 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1532
  echo $ac_n "(cached) $ac_c" 1>&6
1533
else
1534
  cat > conftest.$ac_ext <
1535 721 markom
#line 1536 "configure"
1536 7 jrydberg
#include "confdefs.h"
1537
#include 
1538
#include 
1539
 
1540
#if defined(S_ISBLK) && defined(S_IFDIR)
1541
# if S_ISBLK (S_IFDIR)
1542
You lose.
1543
# endif
1544
#endif
1545
 
1546
#if defined(S_ISBLK) && defined(S_IFCHR)
1547
# if S_ISBLK (S_IFCHR)
1548
You lose.
1549
# endif
1550
#endif
1551
 
1552
#if defined(S_ISLNK) && defined(S_IFREG)
1553
# if S_ISLNK (S_IFREG)
1554
You lose.
1555
# endif
1556
#endif
1557
 
1558
#if defined(S_ISSOCK) && defined(S_IFREG)
1559
# if S_ISSOCK (S_IFREG)
1560
You lose.
1561
# endif
1562
#endif
1563
 
1564
EOF
1565
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1566
  egrep "You lose" >/dev/null 2>&1; then
1567
  rm -rf conftest*
1568
  ac_cv_header_stat_broken=yes
1569
else
1570
  rm -rf conftest*
1571
  ac_cv_header_stat_broken=no
1572
fi
1573
rm -f conftest*
1574
 
1575
fi
1576
 
1577
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1578
if test $ac_cv_header_stat_broken = yes; then
1579
  cat >> confdefs.h <<\EOF
1580
#define STAT_MACROS_BROKEN 1
1581
EOF
1582
 
1583
fi
1584
 
1585
ac_header_dirent=no
1586
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1587
do
1588
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1589
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1590 721 markom
echo "configure:1591: checking for $ac_hdr that defines DIR" >&5
1591 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1592
  echo $ac_n "(cached) $ac_c" 1>&6
1593
else
1594
  cat > conftest.$ac_ext <
1595 721 markom
#line 1596 "configure"
1596 7 jrydberg
#include "confdefs.h"
1597
#include 
1598
#include <$ac_hdr>
1599
int main() {
1600
DIR *dirp = 0;
1601
; return 0; }
1602
EOF
1603 721 markom
if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1604 7 jrydberg
  rm -rf conftest*
1605
  eval "ac_cv_header_dirent_$ac_safe=yes"
1606
else
1607
  echo "configure: failed program was:" >&5
1608
  cat conftest.$ac_ext >&5
1609
  rm -rf conftest*
1610
  eval "ac_cv_header_dirent_$ac_safe=no"
1611
fi
1612
rm -f conftest*
1613
fi
1614
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1615
  echo "$ac_t""yes" 1>&6
1616
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1617
  cat >> confdefs.h <
1618
#define $ac_tr_hdr 1
1619
EOF
1620
 ac_header_dirent=$ac_hdr; break
1621
else
1622
  echo "$ac_t""no" 1>&6
1623
fi
1624
done
1625
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1626
if test $ac_header_dirent = dirent.h; then
1627
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1628 721 markom
echo "configure:1629: checking for opendir in -ldir" >&5
1629 7 jrydberg
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1630
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1631
  echo $ac_n "(cached) $ac_c" 1>&6
1632
else
1633
  ac_save_LIBS="$LIBS"
1634
LIBS="-ldir  $LIBS"
1635
cat > conftest.$ac_ext <
1636 721 markom
#line 1637 "configure"
1637 7 jrydberg
#include "confdefs.h"
1638
/* Override any gcc2 internal prototype to avoid an error.  */
1639
/* We use char because int might match the return type of a gcc2
1640
    builtin and then its argument prototype would still apply.  */
1641
char opendir();
1642
 
1643
int main() {
1644
opendir()
1645
; return 0; }
1646
EOF
1647 721 markom
if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 7 jrydberg
  rm -rf conftest*
1649
  eval "ac_cv_lib_$ac_lib_var=yes"
1650
else
1651
  echo "configure: failed program was:" >&5
1652
  cat conftest.$ac_ext >&5
1653
  rm -rf conftest*
1654
  eval "ac_cv_lib_$ac_lib_var=no"
1655
fi
1656
rm -f conftest*
1657
LIBS="$ac_save_LIBS"
1658
 
1659
fi
1660
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1661
  echo "$ac_t""yes" 1>&6
1662
  LIBS="$LIBS -ldir"
1663
else
1664
  echo "$ac_t""no" 1>&6
1665
fi
1666
 
1667
else
1668
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1669 721 markom
echo "configure:1670: checking for opendir in -lx" >&5
1670 7 jrydberg
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1671
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1672
  echo $ac_n "(cached) $ac_c" 1>&6
1673
else
1674
  ac_save_LIBS="$LIBS"
1675
LIBS="-lx  $LIBS"
1676
cat > conftest.$ac_ext <
1677 721 markom
#line 1678 "configure"
1678 7 jrydberg
#include "confdefs.h"
1679
/* Override any gcc2 internal prototype to avoid an error.  */
1680
/* We use char because int might match the return type of a gcc2
1681
    builtin and then its argument prototype would still apply.  */
1682
char opendir();
1683
 
1684
int main() {
1685
opendir()
1686
; return 0; }
1687
EOF
1688 721 markom
if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1689 7 jrydberg
  rm -rf conftest*
1690
  eval "ac_cv_lib_$ac_lib_var=yes"
1691
else
1692
  echo "configure: failed program was:" >&5
1693
  cat conftest.$ac_ext >&5
1694
  rm -rf conftest*
1695
  eval "ac_cv_lib_$ac_lib_var=no"
1696
fi
1697
rm -f conftest*
1698
LIBS="$ac_save_LIBS"
1699
 
1700
fi
1701
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1702
  echo "$ac_t""yes" 1>&6
1703
  LIBS="$LIBS -lx"
1704
else
1705
  echo "$ac_t""no" 1>&6
1706
fi
1707
 
1708
fi
1709
 
1710
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
1711
do
1712
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1713 721 markom
echo "configure:1714: checking for $ac_func" >&5
1714 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1715
  echo $ac_n "(cached) $ac_c" 1>&6
1716
else
1717
  cat > conftest.$ac_ext <
1718 721 markom
#line 1719 "configure"
1719 7 jrydberg
#include "confdefs.h"
1720
/* System header to define __stub macros and hopefully few prototypes,
1721
    which can conflict with char $ac_func(); below.  */
1722
#include 
1723
/* Override any gcc2 internal prototype to avoid an error.  */
1724
/* We use char because int might match the return type of a gcc2
1725
    builtin and then its argument prototype would still apply.  */
1726
char $ac_func();
1727
 
1728
int main() {
1729
 
1730
/* The GNU C library defines this for functions which it implements
1731
    to always fail with ENOSYS.  Some functions are actually named
1732
    something starting with __ and the normal name is an alias.  */
1733
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1734
choke me
1735
#else
1736
$ac_func();
1737
#endif
1738
 
1739
; return 0; }
1740
EOF
1741 721 markom
if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 7 jrydberg
  rm -rf conftest*
1743
  eval "ac_cv_func_$ac_func=yes"
1744
else
1745
  echo "configure: failed program was:" >&5
1746
  cat conftest.$ac_ext >&5
1747
  rm -rf conftest*
1748
  eval "ac_cv_func_$ac_func=no"
1749
fi
1750
rm -f conftest*
1751
fi
1752
 
1753
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1754
  echo "$ac_t""yes" 1>&6
1755
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1756
  cat >> confdefs.h <
1757
#define $ac_tr_func 1
1758
EOF
1759
 
1760
else
1761
  echo "$ac_t""no" 1>&6
1762
fi
1763
done
1764
 
1765
echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
1766 721 markom
echo "configure:1767: checking for working strcoll" >&5
1767 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
1768
  echo $ac_n "(cached) $ac_c" 1>&6
1769
else
1770
  if test "$cross_compiling" = yes; then
1771
  ac_cv_func_strcoll_works=no
1772
else
1773
  cat > conftest.$ac_ext <
1774 721 markom
#line 1775 "configure"
1775 7 jrydberg
#include "confdefs.h"
1776
#include 
1777
main ()
1778
{
1779
  exit (strcoll ("abc", "def") >= 0 ||
1780
        strcoll ("ABC", "DEF") >= 0 ||
1781
        strcoll ("123", "456") >= 0);
1782
}
1783
EOF
1784 721 markom
if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1785 7 jrydberg
then
1786
  ac_cv_func_strcoll_works=yes
1787
else
1788
  echo "configure: failed program was:" >&5
1789
  cat conftest.$ac_ext >&5
1790
  rm -fr conftest*
1791
  ac_cv_func_strcoll_works=no
1792
fi
1793
rm -fr conftest*
1794
fi
1795
 
1796
fi
1797
 
1798
echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
1799
if test $ac_cv_func_strcoll_works = yes; then
1800
  cat >> confdefs.h <<\EOF
1801
#define HAVE_STRCOLL 1
1802
EOF
1803
 
1804
fi
1805
 
1806
for ac_hdr in unistd.h stdlib.h varargs.h stdarg.h string.h \
1807
                sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
1808 345 erez
                termcap.h termios.h termio.h sys/file.h locale.h\
1809
                net/ethernet.h
1810 7 jrydberg
do
1811
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1812
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1813 721 markom
echo "configure:1814: checking for $ac_hdr" >&5
1814 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1815
  echo $ac_n "(cached) $ac_c" 1>&6
1816
else
1817
  cat > conftest.$ac_ext <
1818 721 markom
#line 1819 "configure"
1819 7 jrydberg
#include "confdefs.h"
1820
#include <$ac_hdr>
1821
EOF
1822
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1823 721 markom
{ (eval echo configure:1824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1824 7 jrydberg
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1825
if test -z "$ac_err"; then
1826
  rm -rf conftest*
1827
  eval "ac_cv_header_$ac_safe=yes"
1828
else
1829
  echo "$ac_err" >&5
1830
  echo "configure: failed program was:" >&5
1831
  cat conftest.$ac_ext >&5
1832
  rm -rf conftest*
1833
  eval "ac_cv_header_$ac_safe=no"
1834
fi
1835
rm -f conftest*
1836
fi
1837
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1838
  echo "$ac_t""yes" 1>&6
1839
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1840
  cat >> confdefs.h <
1841
#define $ac_tr_hdr 1
1842
EOF
1843
 
1844
else
1845
  echo "$ac_t""no" 1>&6
1846
fi
1847
done
1848
 
1849
 
1850 202 erez
cat > conftest.$ac_ext <
1851 721 markom
#line 1852 "configure"
1852 202 erez
#include "confdefs.h"
1853
 
1854
int main() {
1855
long long ll; unsigned long long ull;
1856
; return 0; }
1857
EOF
1858 721 markom
if { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1859 202 erez
  rm -rf conftest*
1860
  cat >> confdefs.h <<\EOF
1861
#define CC_HAS_LONG_LONG 1
1862
EOF
1863
 
1864
else
1865
  echo "configure: failed program was:" >&5
1866
  cat conftest.$ac_ext >&5
1867
fi
1868
rm -f conftest*
1869
 
1870 17 jrydberg
# Check whether --enable-readline or --disable-readline was given.
1871
if test "${enable_readline+set}" = set; then
1872
  enableval="$enable_readline"
1873
  echo $ac_n "checking for add_history in -lreadline""... $ac_c" 1>&6
1874 721 markom
echo "configure:1875: checking for add_history in -lreadline" >&5
1875 17 jrydberg
ac_lib_var=`echo readline'_'add_history | sed 'y%./+-%__p_%'`
1876
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1877
  echo $ac_n "(cached) $ac_c" 1>&6
1878
else
1879
  ac_save_LIBS="$LIBS"
1880
LIBS="-lreadline  $LIBS"
1881
cat > conftest.$ac_ext <
1882 721 markom
#line 1883 "configure"
1883 17 jrydberg
#include "confdefs.h"
1884
/* Override any gcc2 internal prototype to avoid an error.  */
1885
/* We use char because int might match the return type of a gcc2
1886
    builtin and then its argument prototype would still apply.  */
1887
char add_history();
1888
 
1889
int main() {
1890
add_history()
1891
; return 0; }
1892
EOF
1893 721 markom
if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1894 17 jrydberg
  rm -rf conftest*
1895
  eval "ac_cv_lib_$ac_lib_var=yes"
1896
else
1897
  echo "configure: failed program was:" >&5
1898
  cat conftest.$ac_ext >&5
1899
  rm -rf conftest*
1900
  eval "ac_cv_lib_$ac_lib_var=no"
1901
fi
1902
rm -f conftest*
1903
LIBS="$ac_save_LIBS"
1904
 
1905
fi
1906
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1907
  echo "$ac_t""yes" 1>&6
1908
    ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/^a-zA-Z0-9_/_/g' \
1909
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1910
  cat >> confdefs.h <
1911
#define $ac_tr_lib 1
1912
EOF
1913
 
1914
  LIBS="-lreadline $LIBS"
1915
 
1916
else
1917
  echo "$ac_t""no" 1>&6
1918
fi
1919
 
1920
fi
1921
 
1922
 
1923 7 jrydberg
case "$host_os" in
1924
aix*)   prefer_curses=yes ;;
1925
esac
1926
 
1927
case "$host_cpu" in
1928
*cray*) LOCAL_CFLAGS=-DCRAY ;;
1929
esac
1930
 
1931
case "$host_os" in
1932
isc*)   LOCAL_CFLAGS=-Disc386 ;;
1933
esac
1934
 
1935 132 chris
case "$host_os" in
1936
solaris*) LIBS="-lsocket -lnsl" ;;
1937
esac
1938
 
1939 202 erez
 
1940 517 markom
echo $ac_n "checking whether to enable profiling""... $ac_c" 1>&6
1941 721 markom
echo "configure:1942: checking whether to enable profiling" >&5
1942 517 markom
# Check whether --enable-profiling or --disable-profiling was given.
1943
if test "${enable_profiling+set}" = set; then
1944
  enableval="$enable_profiling"
1945
 
1946
    case "$enableval" in
1947
        yes) profile="-pg -a" ;;
1948
    esac
1949 167 markom
 
1950 517 markom
fi
1951
 
1952
echo "$ac_t""${enable_profiling-no}" 1>&6
1953
 
1954 566 simons
fast_sim="0"
1955 551 markom
echo $ac_n "checking whether to compile fsim""... $ac_c" 1>&6
1956 721 markom
echo "configure:1957: checking whether to compile fsim" >&5
1957 551 markom
# Check whether --enable-fsim or --disable-fsim was given.
1958
if test "${enable_fsim+set}" = set; then
1959
  enableval="$enable_fsim"
1960
 
1961
    case "$enableval" in
1962 557 markom
  no)  fast_sim="0" ;;
1963
        yes) fast_sim="1" ;;
1964 551 markom
    esac
1965
 
1966
fi
1967
 
1968
echo "$ac_t""${enable_fsim-no}" 1>&6
1969
 
1970 706 markom
simple_execution="0"
1971
echo $ac_n "checking whether to use simple execution""... $ac_c" 1>&6
1972 721 markom
echo "configure:1973: checking whether to use simple execution" >&5
1973 706 markom
# Check whether --enable-simple or --disable-simple was given.
1974
if test "${enable_simple+set}" = set; then
1975
  enableval="$enable_simple"
1976
 
1977
    case "$enableval" in
1978
  no)  simple_execution="0" ;;
1979
        yes) simple_execution="1" ;;
1980
    esac
1981
 
1982
fi
1983
 
1984
echo "$ac_t""${enable_simple-no}" 1>&6
1985
 
1986 721 markom
raw_range_stats="0"
1987
echo $ac_n "checking whether to use raw range stats""... $ac_c" 1>&6
1988
echo "configure:1989: checking whether to use raw range stats" >&5
1989
# Check whether --enable-range_stats or --disable-range_stats was given.
1990
if test "${enable_range_stats+set}" = set; then
1991
  enableval="$enable_range_stats"
1992
 
1993
    case "$enableval" in
1994
  no)  raw_range_stats="0" ;;
1995
        yes) raw_range_stats="1" simple_execution="1" ;;
1996
    esac
1997
 
1998
fi
1999
 
2000
echo "$ac_t""${enable_range_stats-no}" 1>&6
2001
 
2002
set_ov_flag="1"
2003
echo $ac_n "checking whether instructions set overflow flag""... $ac_c" 1>&6
2004
echo "configure:2005: checking whether instructions set overflow flag" >&5
2005
# Check whether --enable-ov_flag or --disable-ov_flag was given.
2006
if test "${enable_ov_flag+set}" = set; then
2007
  enableval="$enable_ov_flag"
2008
 
2009
    case "$enableval" in
2010
  no)  set_ov_flag="0" ;;
2011
        yes) set_ov_flag="1" ;;
2012
    esac
2013
 
2014
fi
2015
 
2016
echo "$ac_t""${enable_ov_flag-no}" 1>&6
2017
 
2018
set_arith_flag="1"
2019
echo $ac_n "checking whether arithmethic instructions set flag""... $ac_c" 1>&6
2020
echo "configure:2021: checking whether arithmethic instructions set flag" >&5
2021
# Check whether --enable-arith_flag or --disable-arith_flag was given.
2022
if test "${enable_arith_flag+set}" = set; then
2023
  enableval="$enable_arith_flag"
2024
 
2025
    case "$enableval" in
2026
  no)  set_arith_flag="0" ;;
2027
        yes) set_arith_flag="1" ;;
2028
    esac
2029
 
2030
fi
2031
 
2032
echo "$ac_t""${enable_arith_flag-no}" 1>&6
2033
 
2034 706 markom
cat >> confdefs.h <
2035 721 markom
#define FAST_SIM $fast_sim
2036
EOF
2037
 
2038
cat >> confdefs.h <
2039
#define RAW_RANGE_STATS $raw_range_stats
2040
EOF
2041
 
2042
cat >> confdefs.h <
2043
#define SET_OV_FLAG $set_ov_flag
2044
EOF
2045
 
2046
cat >> confdefs.h <
2047
#define ARITH_SET_FLAG $set_arith_flag
2048
EOF
2049
 
2050
 
2051
cat >> confdefs.h <
2052 706 markom
#define SIMPLE_EXECUTION $simple_execution
2053
EOF
2054
 
2055
 
2056
 
2057
if test x$simple_execution = x1; then
2058
  SIMPLE_EXECUTION_TRUE=
2059
  SIMPLE_EXECUTION_FALSE='#'
2060
else
2061
  SIMPLE_EXECUTION_TRUE='#'
2062
  SIMPLE_EXECUTION_FALSE=
2063
fi
2064
 
2065 721 markom
 
2066 202 erez
echo $ac_n "checking for implementation-specific data""... $ac_c" 1>&6
2067 721 markom
echo "configure:2068: checking for implementation-specific data" >&5
2068 202 erez
# Check whether --enable-impl or --disable-impl was given.
2069
if test "${enable_impl+set}" = set; then
2070
  enableval="$enable_impl"
2071
 
2072
    case "$enableval" in
2073
        no|default)        IMPL="DEFAULT" ;;
2074
        mp3)               IMPL="MP3"     ;;
2075
        bender)            IMPL="BENDER"  ;;
2076
        *)
2077
            echo "$ac_t""failed" 1>&6
2078
            { echo "configure: error: bad --enable-impl option" 1>&2; exit 1; }
2079
            ;;
2080
    esac
2081
 
2082
fi
2083
 
2084
echo "$ac_t""${IMPL=DEFAULT}" 1>&6
2085
if test "$IMPL" = "DEFAULT"
2086
then
2087
    echo "configure: warning: using default environment" 1>&2
2088
fi
2089 517 markom
 
2090
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
2091 202 erez
IMPL="-DIMPL_$IMPL"
2092 518 markom
# CFLAGS="$CFLAGS -O4"
2093 202 erez
 
2094 7 jrydberg
BUILD_DIR=`pwd`
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105
 
2106
 
2107
 
2108
 
2109
 
2110
 
2111
 
2112 123 markom
cat >> confdefs.h <<\EOF
2113
#define HAS_EXECUTION 1
2114
EOF
2115 7 jrydberg
 
2116 371 markom
cat >> confdefs.h <<\EOF
2117
#define HAS_DEBUG 1
2118
EOF
2119 123 markom
 
2120 371 markom
 
2121 397 markom
INCLUDES="-I\${top_srcdir} -I\${top_srcdir}/cpu/common -I\${top_srcdir}/cpu/or1k \
2122 26 lampret
-I\${top_srcdir}/cpu/$CPU_ARCH -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
2123 103 lampret
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
2124 807 markom
-I\${top_srcdir}/pm -I\${top_srcdir}/pic -I\${top_srcdir}/debug \
2125
-I\${top_srcdir}/vapi -I\${top_srcdir}/support"
2126 7 jrydberg
 
2127
 
2128
trap '' 1 2 15
2129
cat > confcache <<\EOF
2130
# This file is a shell script that caches the results of configure
2131
# tests run on this system so they can be shared between configure
2132
# scripts and configure runs.  It is not useful on other systems.
2133
# If it contains results you don't want to keep, you may remove or edit it.
2134
#
2135
# By default, configure uses ./config.cache as the cache file,
2136
# creating it if it does not exist already.  You can give configure
2137
# the --cache-file=FILE option to use a different cache file; that is
2138
# what configure does when it calls configure scripts in
2139
# subdirectories, so they share the cache.
2140
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2141
# config.status only pays attention to the cache file if you give it the
2142
# --recheck option to rerun configure.
2143
#
2144
EOF
2145
# The following way of writing the cache mishandles newlines in values,
2146
# but we know of no workaround that is simple, portable, and efficient.
2147
# So, don't put newlines in cache variables' values.
2148
# Ultrix sh set writes to stderr and can't be redirected directly,
2149
# and sets the high bit in the cache file unless we assign to the vars.
2150
(set) 2>&1 |
2151
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2152
  *ac_space=\ *)
2153
    # `set' does not quote correctly, so add quotes (double-quote substitution
2154
    # turns \\\\ into \\, and sed turns \\ into \).
2155
    sed -n \
2156
      -e "s/'/'\\\\''/g" \
2157
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2158
    ;;
2159
  *)
2160
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2161
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2162
    ;;
2163
  esac >> confcache
2164
if cmp -s $cache_file confcache; then
2165
  :
2166
else
2167
  if test -w $cache_file; then
2168
    echo "updating cache $cache_file"
2169
    cat confcache > $cache_file
2170
  else
2171
    echo "not updating unwritable cache $cache_file"
2172
  fi
2173
fi
2174
rm -f confcache
2175
 
2176
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2177
 
2178
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2179
# Let make expand exec_prefix.
2180
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2181
 
2182
# Any assignment to VPATH causes Sun make to only execute
2183
# the first set of double-colon rules, so remove it if not needed.
2184
# If there is a colon in the path, we need to keep it.
2185
if test "x$srcdir" = x.; then
2186
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2187
fi
2188
 
2189
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2190
 
2191
DEFS=-DHAVE_CONFIG_H
2192
 
2193
# Without the "./", some shells look in PATH for config.status.
2194
: ${CONFIG_STATUS=./config.status}
2195
 
2196
echo creating $CONFIG_STATUS
2197
rm -f $CONFIG_STATUS
2198
cat > $CONFIG_STATUS <
2199
#! /bin/sh
2200
# Generated automatically by configure.
2201
# Run this file to recreate the current configuration.
2202
# This directory was configured as follows,
2203
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2204
#
2205
# $0 $ac_configure_args
2206
#
2207
# Compiler output produced by configure, useful for debugging
2208
# configure, is in ./config.log if it exists.
2209
 
2210
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2211
for ac_option
2212
do
2213
  case "\$ac_option" in
2214
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2215
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2216
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2217
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2218
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2219
    exit 0 ;;
2220
  -help | --help | --hel | --he | --h)
2221
    echo "\$ac_cs_usage"; exit 0 ;;
2222
  *) echo "\$ac_cs_usage"; exit 1 ;;
2223
  esac
2224
done
2225
 
2226
ac_given_srcdir=$srcdir
2227
ac_given_INSTALL="$INSTALL"
2228
 
2229
trap 'rm -fr `echo "Makefile bpb/Makefile cache/Makefile cpu/Makefile
2230 397 markom
        cpu/common/Makefile cpu/or32/Makefile
2231 221 markom
        cpu/or1k/Makefile cpu/dlx/Makefile debug/Makefile
2232 103 lampret
        support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile
2233 293 markom
        pm/Makefile pic/Makefile debug/Makefile vapi/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2234 7 jrydberg
EOF
2235
cat >> $CONFIG_STATUS <
2236
 
2237
# Protect against being on the right side of a sed subst in config.status.
2238
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2239
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2240
$ac_vpsub
2241
$extrasub
2242
s%@SHELL@%$SHELL%g
2243
s%@CFLAGS@%$CFLAGS%g
2244
s%@CPPFLAGS@%$CPPFLAGS%g
2245
s%@CXXFLAGS@%$CXXFLAGS%g
2246
s%@FFLAGS@%$FFLAGS%g
2247
s%@DEFS@%$DEFS%g
2248
s%@LDFLAGS@%$LDFLAGS%g
2249
s%@LIBS@%$LIBS%g
2250
s%@exec_prefix@%$exec_prefix%g
2251
s%@prefix@%$prefix%g
2252
s%@program_transform_name@%$program_transform_name%g
2253
s%@bindir@%$bindir%g
2254
s%@sbindir@%$sbindir%g
2255
s%@libexecdir@%$libexecdir%g
2256
s%@datadir@%$datadir%g
2257
s%@sysconfdir@%$sysconfdir%g
2258
s%@sharedstatedir@%$sharedstatedir%g
2259
s%@localstatedir@%$localstatedir%g
2260
s%@libdir@%$libdir%g
2261
s%@includedir@%$includedir%g
2262
s%@oldincludedir@%$oldincludedir%g
2263
s%@infodir@%$infodir%g
2264
s%@mandir@%$mandir%g
2265 11 jrydberg
s%@host@%$host%g
2266
s%@host_alias@%$host_alias%g
2267
s%@host_cpu@%$host_cpu%g
2268
s%@host_vendor@%$host_vendor%g
2269
s%@host_os@%$host_os%g
2270
s%@target@%$target%g
2271
s%@target_alias@%$target_alias%g
2272
s%@target_cpu@%$target_cpu%g
2273
s%@target_vendor@%$target_vendor%g
2274
s%@target_os@%$target_os%g
2275
s%@build@%$build%g
2276
s%@build_alias@%$build_alias%g
2277
s%@build_cpu@%$build_cpu%g
2278
s%@build_vendor@%$build_vendor%g
2279
s%@build_os@%$build_os%g
2280 7 jrydberg
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2281
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2282
s%@INSTALL_DATA@%$INSTALL_DATA%g
2283
s%@PACKAGE@%$PACKAGE%g
2284
s%@VERSION@%$VERSION%g
2285
s%@ACLOCAL@%$ACLOCAL%g
2286
s%@AUTOCONF@%$AUTOCONF%g
2287
s%@AUTOMAKE@%$AUTOMAKE%g
2288
s%@AUTOHEADER@%$AUTOHEADER%g
2289
s%@MAKEINFO@%$MAKEINFO%g
2290
s%@SET_MAKE@%$SET_MAKE%g
2291 28 lampret
s%@CPU_ARCH@%$CPU_ARCH%g
2292 7 jrydberg
s%@CC@%$CC%g
2293
s%@CPP@%$CPP%g
2294
s%@AR@%$AR%g
2295
s%@RANLIB@%$RANLIB%g
2296
s%@MAKE_SHELL@%$MAKE_SHELL%g
2297 706 markom
s%@SIMPLE_EXECUTION_TRUE@%$SIMPLE_EXECUTION_TRUE%g
2298
s%@SIMPLE_EXECUTION_FALSE@%$SIMPLE_EXECUTION_FALSE%g
2299 7 jrydberg
s%@BUILD_DIR@%$BUILD_DIR%g
2300
s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
2301
s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2302
s%@LOCAL_DEFS@%$LOCAL_DEFS%g
2303
s%@ARFLAGS@%$ARFLAGS%g
2304
s%@SUMVERSION@%$SUMVERSION%g
2305
s%@TERMCAP_LIB@%$TERMCAP_LIB%g
2306
s%@INCLUDES@%$INCLUDES%g
2307
 
2308
CEOF
2309
EOF
2310
 
2311
cat >> $CONFIG_STATUS <<\EOF
2312
 
2313
# Split the substitutions into bite-sized pieces for seds with
2314
# small command number limits, like on Digital OSF/1 and HP-UX.
2315
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2316
ac_file=1 # Number of current file.
2317
ac_beg=1 # First line for current file.
2318
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2319
ac_more_lines=:
2320
ac_sed_cmds=""
2321
while $ac_more_lines; do
2322
  if test $ac_beg -gt 1; then
2323
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2324
  else
2325
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2326
  fi
2327
  if test ! -s conftest.s$ac_file; then
2328
    ac_more_lines=false
2329
    rm -f conftest.s$ac_file
2330
  else
2331
    if test -z "$ac_sed_cmds"; then
2332
      ac_sed_cmds="sed -f conftest.s$ac_file"
2333
    else
2334
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2335
    fi
2336
    ac_file=`expr $ac_file + 1`
2337
    ac_beg=$ac_end
2338
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2339
  fi
2340
done
2341
if test -z "$ac_sed_cmds"; then
2342
  ac_sed_cmds=cat
2343
fi
2344
EOF
2345
 
2346
cat >> $CONFIG_STATUS <
2347
 
2348
CONFIG_FILES=\${CONFIG_FILES-"Makefile bpb/Makefile cache/Makefile cpu/Makefile
2349 397 markom
        cpu/common/Makefile cpu/or32/Makefile
2350 221 markom
        cpu/or1k/Makefile cpu/dlx/Makefile debug/Makefile
2351 103 lampret
        support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile
2352 293 markom
        pm/Makefile pic/Makefile debug/Makefile vapi/Makefile"}
2353 7 jrydberg
EOF
2354
cat >> $CONFIG_STATUS <<\EOF
2355
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2356
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2357
  case "$ac_file" in
2358
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2359
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2360
  *) ac_file_in="${ac_file}.in" ;;
2361
  esac
2362
 
2363
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2364
 
2365
  # Remove last slash and all that follows it.  Not all systems have dirname.
2366
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2367
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2368
    # The file is in a subdirectory.
2369
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2370
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2371
    # A "../" for each directory in $ac_dir_suffix.
2372
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2373
  else
2374
    ac_dir_suffix= ac_dots=
2375
  fi
2376
 
2377
  case "$ac_given_srcdir" in
2378
  .)  srcdir=.
2379
      if test -z "$ac_dots"; then top_srcdir=.
2380
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2381
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2382
  *) # Relative path.
2383
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2384
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2385
  esac
2386
 
2387
  case "$ac_given_INSTALL" in
2388
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2389
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2390
  esac
2391
 
2392
  echo creating "$ac_file"
2393
  rm -f "$ac_file"
2394
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2395
  case "$ac_file" in
2396
  *Makefile*) ac_comsub="1i\\
2397
# $configure_input" ;;
2398
  *) ac_comsub= ;;
2399
  esac
2400
 
2401
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2402
  sed -e "$ac_comsub
2403
s%@configure_input@%$configure_input%g
2404
s%@srcdir@%$srcdir%g
2405
s%@top_srcdir@%$top_srcdir%g
2406
s%@INSTALL@%$INSTALL%g
2407
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2408
fi; done
2409
rm -f conftest.s*
2410
 
2411
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2412
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2413
#
2414
# ac_d sets the value in "#define NAME VALUE" lines.
2415
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2416
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2417
ac_dC='\3'
2418
ac_dD='%g'
2419
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2420
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2421
ac_uB='\([      ]\)%\1#\2define\3'
2422
ac_uC=' '
2423
ac_uD='\4%g'
2424
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2425
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2426
ac_eB='$%\1#\2define\3'
2427
ac_eC=' '
2428
ac_eD='%g'
2429
 
2430
if test "${CONFIG_HEADERS+set}" != set; then
2431
EOF
2432
cat >> $CONFIG_STATUS <
2433
  CONFIG_HEADERS="config.h"
2434
EOF
2435
cat >> $CONFIG_STATUS <<\EOF
2436
fi
2437
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2438
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2439
  case "$ac_file" in
2440
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2441
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2442
  *) ac_file_in="${ac_file}.in" ;;
2443
  esac
2444
 
2445
  echo creating $ac_file
2446
 
2447
  rm -f conftest.frag conftest.in conftest.out
2448
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2449
  cat $ac_file_inputs > conftest.in
2450
 
2451
EOF
2452
 
2453
# Transform confdefs.h into a sed script conftest.vals that substitutes
2454
# the proper values into config.h.in to produce config.h.  And first:
2455
# Protect against being on the right side of a sed subst in config.status.
2456
# Protect against being in an unquoted here document in config.status.
2457
rm -f conftest.vals
2458
cat > conftest.hdr <<\EOF
2459
s/[\\&%]/\\&/g
2460
s%[\\$`]%\\&%g
2461
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2462
s%ac_d%ac_u%gp
2463
s%ac_u%ac_e%gp
2464
EOF
2465
sed -n -f conftest.hdr confdefs.h > conftest.vals
2466
rm -f conftest.hdr
2467
 
2468
# This sed command replaces #undef with comments.  This is necessary, for
2469
# example, in the case of _POSIX_SOURCE, which is predefined and required
2470
# on some systems where configure will not decide to define it.
2471
cat >> conftest.vals <<\EOF
2472
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2473
EOF
2474
 
2475
# Break up conftest.vals because some shells have a limit on
2476
# the size of here documents, and old seds have small limits too.
2477
 
2478
rm -f conftest.tail
2479
while :
2480
do
2481
  ac_lines=`grep -c . conftest.vals`
2482
  # grep -c gives empty output for an empty file on some AIX systems.
2483
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2484
  # Write a limited-size here document to conftest.frag.
2485
  echo '  cat > conftest.frag <> $CONFIG_STATUS
2486
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2487
  echo 'CEOF
2488
  sed -f conftest.frag conftest.in > conftest.out
2489
  rm -f conftest.in
2490
  mv conftest.out conftest.in
2491
' >> $CONFIG_STATUS
2492
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2493
  rm -f conftest.vals
2494
  mv conftest.tail conftest.vals
2495
done
2496
rm -f conftest.vals
2497
 
2498
cat >> $CONFIG_STATUS <<\EOF
2499
  rm -f conftest.frag conftest.h
2500
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2501
  cat conftest.in >> conftest.h
2502
  rm -f conftest.in
2503
  if cmp -s $ac_file conftest.h 2>/dev/null; then
2504
    echo "$ac_file is unchanged"
2505
    rm -f conftest.h
2506
  else
2507
    # Remove last slash and all that follows it.  Not all systems have dirname.
2508
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2509
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2510
      # The file is in a subdirectory.
2511
      test ! -d "$ac_dir" && mkdir "$ac_dir"
2512
    fi
2513
    rm -f $ac_file
2514
    mv conftest.h $ac_file
2515
  fi
2516
fi; done
2517
 
2518
EOF
2519
cat >> $CONFIG_STATUS <
2520
 
2521
 
2522
EOF
2523
cat >> $CONFIG_STATUS <<\EOF
2524
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2525
 
2526
# Makefile uses this timestamp file to record whether config.h is up to date.
2527
echo > stamp-h
2528
 
2529
exit 0
2530
EOF
2531
chmod +x $CONFIG_STATUS
2532
rm -fr confdefs* $ac_clean_files
2533
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2534
 

powered by: WebSVN 2.1.0

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