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

Subversion Repositories or1k

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

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

powered by: WebSVN 2.1.0

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