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

Subversion Repositories or1k

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

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

powered by: WebSVN 2.1.0

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