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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_69/] [or1ksim/] [configure] - Blame information for rev 221

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
  --enable-profiling      generate profiling code"
18
ac_help="$ac_help
19
  --disable-debugmod      turns off debug module"
20 202 erez
ac_help="$ac_help
21
  --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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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
or16*)  CPU_ARCH=or16;
914
        ARCH_ISA=OR16;;
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
#line 1051 "configure"
1051 7 jrydberg
#include "confdefs.h"
1052
 
1053
main(){return(0);}
1054
EOF
1055 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
#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 202 erez
{ (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 202 erez
#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 202 erez
{ (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 202 erez
#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 202 erez
{ (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 202 erez
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 202 erez
#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 202 erez
{ (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 202 erez
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 202 erez
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 202 erez
#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 202 erez
#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 202 erez
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 202 erez
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 202 erez
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 202 erez
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 202 erez
#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 202 erez
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 202 erez
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 202 erez
#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 202 erez
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 202 erez
#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 202 erez
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 202 erez
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 202 erez
#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 202 erez
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 202 erez
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 202 erez
#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 202 erez
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 202 erez
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 202 erez
#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 202 erez
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 202 erez
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 202 erez
#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 202 erez
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
                termcap.h termios.h termio.h sys/file.h locale.h
1803
do
1804
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1805
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1806 202 erez
echo "configure:1807: checking for $ac_hdr" >&5
1807 7 jrydberg
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1808
  echo $ac_n "(cached) $ac_c" 1>&6
1809
else
1810
  cat > conftest.$ac_ext <
1811 202 erez
#line 1812 "configure"
1812 7 jrydberg
#include "confdefs.h"
1813
#include <$ac_hdr>
1814
EOF
1815
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1816 202 erez
{ (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1817 7 jrydberg
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1818
if test -z "$ac_err"; then
1819
  rm -rf conftest*
1820
  eval "ac_cv_header_$ac_safe=yes"
1821
else
1822
  echo "$ac_err" >&5
1823
  echo "configure: failed program was:" >&5
1824
  cat conftest.$ac_ext >&5
1825
  rm -rf conftest*
1826
  eval "ac_cv_header_$ac_safe=no"
1827
fi
1828
rm -f conftest*
1829
fi
1830
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1831
  echo "$ac_t""yes" 1>&6
1832
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1833
  cat >> confdefs.h <
1834
#define $ac_tr_hdr 1
1835
EOF
1836
 
1837
else
1838
  echo "$ac_t""no" 1>&6
1839
fi
1840
done
1841
 
1842
 
1843 202 erez
cat > conftest.$ac_ext <
1844
#line 1845 "configure"
1845
#include "confdefs.h"
1846
 
1847
int main() {
1848
long long ll; unsigned long long ull;
1849
; return 0; }
1850
EOF
1851
if { (eval echo configure:1852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1852
  rm -rf conftest*
1853
  cat >> confdefs.h <<\EOF
1854
#define CC_HAS_LONG_LONG 1
1855
EOF
1856
 
1857
else
1858
  echo "configure: failed program was:" >&5
1859
  cat conftest.$ac_ext >&5
1860
fi
1861
rm -f conftest*
1862
 
1863 17 jrydberg
# Check whether --enable-readline or --disable-readline was given.
1864
if test "${enable_readline+set}" = set; then
1865
  enableval="$enable_readline"
1866
  echo $ac_n "checking for add_history in -lreadline""... $ac_c" 1>&6
1867 214 erez
echo "configure:1868: checking for add_history in -lreadline" >&5
1868 17 jrydberg
ac_lib_var=`echo readline'_'add_history | sed 'y%./+-%__p_%'`
1869
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870
  echo $ac_n "(cached) $ac_c" 1>&6
1871
else
1872
  ac_save_LIBS="$LIBS"
1873
LIBS="-lreadline  $LIBS"
1874
cat > conftest.$ac_ext <
1875 214 erez
#line 1876 "configure"
1876 17 jrydberg
#include "confdefs.h"
1877
/* Override any gcc2 internal prototype to avoid an error.  */
1878
/* We use char because int might match the return type of a gcc2
1879
    builtin and then its argument prototype would still apply.  */
1880
char add_history();
1881
 
1882
int main() {
1883
add_history()
1884
; return 0; }
1885
EOF
1886 214 erez
if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 17 jrydberg
  rm -rf conftest*
1888
  eval "ac_cv_lib_$ac_lib_var=yes"
1889
else
1890
  echo "configure: failed program was:" >&5
1891
  cat conftest.$ac_ext >&5
1892
  rm -rf conftest*
1893
  eval "ac_cv_lib_$ac_lib_var=no"
1894
fi
1895
rm -f conftest*
1896
LIBS="$ac_save_LIBS"
1897
 
1898
fi
1899
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900
  echo "$ac_t""yes" 1>&6
1901
    ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/^a-zA-Z0-9_/_/g' \
1902
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1903
  cat >> confdefs.h <
1904
#define $ac_tr_lib 1
1905
EOF
1906
 
1907
  LIBS="-lreadline $LIBS"
1908
 
1909
else
1910
  echo "$ac_t""no" 1>&6
1911
fi
1912
 
1913
fi
1914
 
1915
 
1916 7 jrydberg
case "$host_os" in
1917
aix*)   prefer_curses=yes ;;
1918
esac
1919
 
1920
case "$host_cpu" in
1921
*cray*) LOCAL_CFLAGS=-DCRAY ;;
1922
esac
1923
 
1924
case "$host_os" in
1925
isc*)   LOCAL_CFLAGS=-Disc386 ;;
1926
esac
1927
 
1928 132 chris
case "$host_os" in
1929
solaris*) LIBS="-lsocket -lnsl" ;;
1930
esac
1931
 
1932 202 erez
 
1933 167 markom
echo $ac_n "checking whether to enable profiling""... $ac_c" 1>&6
1934 214 erez
echo "configure:1935: checking whether to enable profiling" >&5
1935 167 markom
# Check whether --enable-profiling or --disable-profiling was given.
1936
if test "${enable_profiling+set}" = set; then
1937
  enableval="$enable_profiling"
1938
 
1939
    case "$enableval" in
1940
        yes) profile="-pg" ;;
1941
    esac
1942
 
1943
fi
1944
 
1945
echo "$ac_t""${enable_profiling-no}" 1>&6
1946
 
1947
echo $ac_n "checking whether to disable CPU debugging module""... $ac_c" 1>&6
1948 214 erez
echo "configure:1949: checking whether to disable CPU debugging module" >&5
1949 167 markom
# Check whether --enable-debugmod or --disable-debugmod was given.
1950
if test "${enable_debugmod+set}" = set; then
1951
  enableval="$enable_debugmod"
1952
 
1953
    case "$enableval" in
1954
        no) debugmod="-DDEBUGMOD_OFF" ;;
1955
    esac
1956
 
1957
fi
1958
 
1959
echo "$ac_t""${disable_debugmod-no}" 1>&6
1960
 
1961 202 erez
 
1962
echo $ac_n "checking for implementation-specific data""... $ac_c" 1>&6
1963 214 erez
echo "configure:1964: checking for implementation-specific data" >&5
1964 202 erez
# Check whether --enable-impl or --disable-impl was given.
1965
if test "${enable_impl+set}" = set; then
1966
  enableval="$enable_impl"
1967
 
1968
    case "$enableval" in
1969
        no|default)        IMPL="DEFAULT" ;;
1970
        mp3)               IMPL="MP3"     ;;
1971
        bender)            IMPL="BENDER"  ;;
1972
        *)
1973
            echo "$ac_t""failed" 1>&6
1974
            { echo "configure: error: bad --enable-impl option" 1>&2; exit 1; }
1975
            ;;
1976
    esac
1977
 
1978
fi
1979
 
1980
echo "$ac_t""${IMPL=DEFAULT}" 1>&6
1981
if test "$IMPL" = "DEFAULT"
1982
then
1983
    echo "configure: warning: using default environment" 1>&2
1984
fi
1985
IMPL="-DIMPL_$IMPL"
1986
 
1987 7 jrydberg
BUILD_DIR=`pwd`
1988
 
1989
 
1990
 
1991
 
1992
 
1993
 
1994
 
1995
 
1996
 
1997
 
1998
 
1999
 
2000
 
2001
 
2002
 
2003
 
2004
 
2005 123 markom
cat >> confdefs.h <<\EOF
2006
#define HAS_EXECUTION 1
2007
EOF
2008 7 jrydberg
 
2009 123 markom
 
2010 26 lampret
INCLUDES="-I\${top_srcdir}/cpu/common -I\${top_srcdir}/cpu/or1k \
2011
-I\${top_srcdir}/cpu/$CPU_ARCH -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
2012 103 lampret
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
2013 221 markom
-I\${top_srcdir}/pm -I\${top_srcdir}/pic -I\${top_srcdir}/debug"
2014 7 jrydberg
 
2015
 
2016 167 markom
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
2017
test -n "$debugmod" && CFLAGS="$CFLAGS $debugmod"
2018 202 erez
CFLAGS="$CFLAGS $IMPL"
2019 7 jrydberg
 
2020
trap '' 1 2 15
2021
cat > confcache <<\EOF
2022
# This file is a shell script that caches the results of configure
2023
# tests run on this system so they can be shared between configure
2024
# scripts and configure runs.  It is not useful on other systems.
2025
# If it contains results you don't want to keep, you may remove or edit it.
2026
#
2027
# By default, configure uses ./config.cache as the cache file,
2028
# creating it if it does not exist already.  You can give configure
2029
# the --cache-file=FILE option to use a different cache file; that is
2030
# what configure does when it calls configure scripts in
2031
# subdirectories, so they share the cache.
2032
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2033
# config.status only pays attention to the cache file if you give it the
2034
# --recheck option to rerun configure.
2035
#
2036
EOF
2037
# The following way of writing the cache mishandles newlines in values,
2038
# but we know of no workaround that is simple, portable, and efficient.
2039
# So, don't put newlines in cache variables' values.
2040
# Ultrix sh set writes to stderr and can't be redirected directly,
2041
# and sets the high bit in the cache file unless we assign to the vars.
2042
(set) 2>&1 |
2043
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2044
  *ac_space=\ *)
2045
    # `set' does not quote correctly, so add quotes (double-quote substitution
2046
    # turns \\\\ into \\, and sed turns \\ into \).
2047
    sed -n \
2048
      -e "s/'/'\\\\''/g" \
2049
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2050
    ;;
2051
  *)
2052
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2053
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2054
    ;;
2055
  esac >> confcache
2056
if cmp -s $cache_file confcache; then
2057
  :
2058
else
2059
  if test -w $cache_file; then
2060
    echo "updating cache $cache_file"
2061
    cat confcache > $cache_file
2062
  else
2063
    echo "not updating unwritable cache $cache_file"
2064
  fi
2065
fi
2066
rm -f confcache
2067
 
2068
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2069
 
2070
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2071
# Let make expand exec_prefix.
2072
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2073
 
2074
# Any assignment to VPATH causes Sun make to only execute
2075
# the first set of double-colon rules, so remove it if not needed.
2076
# If there is a colon in the path, we need to keep it.
2077
if test "x$srcdir" = x.; then
2078
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2079
fi
2080
 
2081
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2082
 
2083
DEFS=-DHAVE_CONFIG_H
2084
 
2085
# Without the "./", some shells look in PATH for config.status.
2086
: ${CONFIG_STATUS=./config.status}
2087
 
2088
echo creating $CONFIG_STATUS
2089
rm -f $CONFIG_STATUS
2090
cat > $CONFIG_STATUS <
2091
#! /bin/sh
2092
# Generated automatically by configure.
2093
# Run this file to recreate the current configuration.
2094
# This directory was configured as follows,
2095
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2096
#
2097
# $0 $ac_configure_args
2098
#
2099
# Compiler output produced by configure, useful for debugging
2100
# configure, is in ./config.log if it exists.
2101
 
2102
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2103
for ac_option
2104
do
2105
  case "\$ac_option" in
2106
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2107
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2108
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2109
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2110
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2111
    exit 0 ;;
2112
  -help | --help | --hel | --he | --h)
2113
    echo "\$ac_cs_usage"; exit 0 ;;
2114
  *) echo "\$ac_cs_usage"; exit 1 ;;
2115
  esac
2116
done
2117
 
2118
ac_given_srcdir=$srcdir
2119
ac_given_INSTALL="$INSTALL"
2120
 
2121
trap 'rm -fr `echo "Makefile bpb/Makefile cache/Makefile cpu/Makefile
2122 18 lampret
        cpu/common/Makefile cpu/or32/Makefile cpu/or16/Makefile
2123 221 markom
        cpu/or1k/Makefile cpu/dlx/Makefile debug/Makefile
2124 103 lampret
        support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile
2125 221 markom
        pm/Makefile pic/Makefile debug/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2126 7 jrydberg
EOF
2127
cat >> $CONFIG_STATUS <
2128
 
2129
# Protect against being on the right side of a sed subst in config.status.
2130
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2131
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2132
$ac_vpsub
2133
$extrasub
2134
s%@SHELL@%$SHELL%g
2135
s%@CFLAGS@%$CFLAGS%g
2136
s%@CPPFLAGS@%$CPPFLAGS%g
2137
s%@CXXFLAGS@%$CXXFLAGS%g
2138
s%@FFLAGS@%$FFLAGS%g
2139
s%@DEFS@%$DEFS%g
2140
s%@LDFLAGS@%$LDFLAGS%g
2141
s%@LIBS@%$LIBS%g
2142
s%@exec_prefix@%$exec_prefix%g
2143
s%@prefix@%$prefix%g
2144
s%@program_transform_name@%$program_transform_name%g
2145
s%@bindir@%$bindir%g
2146
s%@sbindir@%$sbindir%g
2147
s%@libexecdir@%$libexecdir%g
2148
s%@datadir@%$datadir%g
2149
s%@sysconfdir@%$sysconfdir%g
2150
s%@sharedstatedir@%$sharedstatedir%g
2151
s%@localstatedir@%$localstatedir%g
2152
s%@libdir@%$libdir%g
2153
s%@includedir@%$includedir%g
2154
s%@oldincludedir@%$oldincludedir%g
2155
s%@infodir@%$infodir%g
2156
s%@mandir@%$mandir%g
2157 11 jrydberg
s%@host@%$host%g
2158
s%@host_alias@%$host_alias%g
2159
s%@host_cpu@%$host_cpu%g
2160
s%@host_vendor@%$host_vendor%g
2161
s%@host_os@%$host_os%g
2162
s%@target@%$target%g
2163
s%@target_alias@%$target_alias%g
2164
s%@target_cpu@%$target_cpu%g
2165
s%@target_vendor@%$target_vendor%g
2166
s%@target_os@%$target_os%g
2167
s%@build@%$build%g
2168
s%@build_alias@%$build_alias%g
2169
s%@build_cpu@%$build_cpu%g
2170
s%@build_vendor@%$build_vendor%g
2171
s%@build_os@%$build_os%g
2172 7 jrydberg
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2173
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2174
s%@INSTALL_DATA@%$INSTALL_DATA%g
2175
s%@PACKAGE@%$PACKAGE%g
2176
s%@VERSION@%$VERSION%g
2177
s%@ACLOCAL@%$ACLOCAL%g
2178
s%@AUTOCONF@%$AUTOCONF%g
2179
s%@AUTOMAKE@%$AUTOMAKE%g
2180
s%@AUTOHEADER@%$AUTOHEADER%g
2181
s%@MAKEINFO@%$MAKEINFO%g
2182
s%@SET_MAKE@%$SET_MAKE%g
2183 28 lampret
s%@CPU_ARCH@%$CPU_ARCH%g
2184 7 jrydberg
s%@CC@%$CC%g
2185
s%@CPP@%$CPP%g
2186
s%@AR@%$AR%g
2187
s%@RANLIB@%$RANLIB%g
2188
s%@MAKE_SHELL@%$MAKE_SHELL%g
2189 202 erez
s%@FPM@%$FPM%g
2190 7 jrydberg
s%@BUILD_DIR@%$BUILD_DIR%g
2191
s%@LOCAL_CFLAGS@%$LOCAL_CFLAGS%g
2192
s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2193
s%@LOCAL_DEFS@%$LOCAL_DEFS%g
2194
s%@ARFLAGS@%$ARFLAGS%g
2195
s%@SUMVERSION@%$SUMVERSION%g
2196
s%@TERMCAP_LIB@%$TERMCAP_LIB%g
2197
s%@INCLUDES@%$INCLUDES%g
2198
 
2199
CEOF
2200
EOF
2201
 
2202
cat >> $CONFIG_STATUS <<\EOF
2203
 
2204
# Split the substitutions into bite-sized pieces for seds with
2205
# small command number limits, like on Digital OSF/1 and HP-UX.
2206
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2207
ac_file=1 # Number of current file.
2208
ac_beg=1 # First line for current file.
2209
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2210
ac_more_lines=:
2211
ac_sed_cmds=""
2212
while $ac_more_lines; do
2213
  if test $ac_beg -gt 1; then
2214
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2215
  else
2216
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2217
  fi
2218
  if test ! -s conftest.s$ac_file; then
2219
    ac_more_lines=false
2220
    rm -f conftest.s$ac_file
2221
  else
2222
    if test -z "$ac_sed_cmds"; then
2223
      ac_sed_cmds="sed -f conftest.s$ac_file"
2224
    else
2225
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2226
    fi
2227
    ac_file=`expr $ac_file + 1`
2228
    ac_beg=$ac_end
2229
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2230
  fi
2231
done
2232
if test -z "$ac_sed_cmds"; then
2233
  ac_sed_cmds=cat
2234
fi
2235
EOF
2236
 
2237
cat >> $CONFIG_STATUS <
2238
 
2239
CONFIG_FILES=\${CONFIG_FILES-"Makefile bpb/Makefile cache/Makefile cpu/Makefile
2240 18 lampret
        cpu/common/Makefile cpu/or32/Makefile cpu/or16/Makefile
2241 221 markom
        cpu/or1k/Makefile cpu/dlx/Makefile debug/Makefile
2242 103 lampret
        support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile
2243 221 markom
        pm/Makefile pic/Makefile debug/Makefile"}
2244 7 jrydberg
EOF
2245
cat >> $CONFIG_STATUS <<\EOF
2246
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2247
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2248
  case "$ac_file" in
2249
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2250
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2251
  *) ac_file_in="${ac_file}.in" ;;
2252
  esac
2253
 
2254
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2255
 
2256
  # Remove last slash and all that follows it.  Not all systems have dirname.
2257
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2258
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2259
    # The file is in a subdirectory.
2260
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2261
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2262
    # A "../" for each directory in $ac_dir_suffix.
2263
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2264
  else
2265
    ac_dir_suffix= ac_dots=
2266
  fi
2267
 
2268
  case "$ac_given_srcdir" in
2269
  .)  srcdir=.
2270
      if test -z "$ac_dots"; then top_srcdir=.
2271
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2272
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2273
  *) # Relative path.
2274
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2275
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2276
  esac
2277
 
2278
  case "$ac_given_INSTALL" in
2279
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2280
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2281
  esac
2282
 
2283
  echo creating "$ac_file"
2284
  rm -f "$ac_file"
2285
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2286
  case "$ac_file" in
2287
  *Makefile*) ac_comsub="1i\\
2288
# $configure_input" ;;
2289
  *) ac_comsub= ;;
2290
  esac
2291
 
2292
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2293
  sed -e "$ac_comsub
2294
s%@configure_input@%$configure_input%g
2295
s%@srcdir@%$srcdir%g
2296
s%@top_srcdir@%$top_srcdir%g
2297
s%@INSTALL@%$INSTALL%g
2298
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2299
fi; done
2300
rm -f conftest.s*
2301
 
2302
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2303
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2304
#
2305
# ac_d sets the value in "#define NAME VALUE" lines.
2306
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2307
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2308
ac_dC='\3'
2309
ac_dD='%g'
2310
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2311
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2312
ac_uB='\([      ]\)%\1#\2define\3'
2313
ac_uC=' '
2314
ac_uD='\4%g'
2315
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2316
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2317
ac_eB='$%\1#\2define\3'
2318
ac_eC=' '
2319
ac_eD='%g'
2320
 
2321
if test "${CONFIG_HEADERS+set}" != set; then
2322
EOF
2323
cat >> $CONFIG_STATUS <
2324
  CONFIG_HEADERS="config.h"
2325
EOF
2326
cat >> $CONFIG_STATUS <<\EOF
2327
fi
2328
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2329
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2330
  case "$ac_file" in
2331
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2332
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2333
  *) ac_file_in="${ac_file}.in" ;;
2334
  esac
2335
 
2336
  echo creating $ac_file
2337
 
2338
  rm -f conftest.frag conftest.in conftest.out
2339
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2340
  cat $ac_file_inputs > conftest.in
2341
 
2342
EOF
2343
 
2344
# Transform confdefs.h into a sed script conftest.vals that substitutes
2345
# the proper values into config.h.in to produce config.h.  And first:
2346
# Protect against being on the right side of a sed subst in config.status.
2347
# Protect against being in an unquoted here document in config.status.
2348
rm -f conftest.vals
2349
cat > conftest.hdr <<\EOF
2350
s/[\\&%]/\\&/g
2351
s%[\\$`]%\\&%g
2352
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2353
s%ac_d%ac_u%gp
2354
s%ac_u%ac_e%gp
2355
EOF
2356
sed -n -f conftest.hdr confdefs.h > conftest.vals
2357
rm -f conftest.hdr
2358
 
2359
# This sed command replaces #undef with comments.  This is necessary, for
2360
# example, in the case of _POSIX_SOURCE, which is predefined and required
2361
# on some systems where configure will not decide to define it.
2362
cat >> conftest.vals <<\EOF
2363
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2364
EOF
2365
 
2366
# Break up conftest.vals because some shells have a limit on
2367
# the size of here documents, and old seds have small limits too.
2368
 
2369
rm -f conftest.tail
2370
while :
2371
do
2372
  ac_lines=`grep -c . conftest.vals`
2373
  # grep -c gives empty output for an empty file on some AIX systems.
2374
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2375
  # Write a limited-size here document to conftest.frag.
2376
  echo '  cat > conftest.frag <> $CONFIG_STATUS
2377
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2378
  echo 'CEOF
2379
  sed -f conftest.frag conftest.in > conftest.out
2380
  rm -f conftest.in
2381
  mv conftest.out conftest.in
2382
' >> $CONFIG_STATUS
2383
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2384
  rm -f conftest.vals
2385
  mv conftest.tail conftest.vals
2386
done
2387
rm -f conftest.vals
2388
 
2389
cat >> $CONFIG_STATUS <<\EOF
2390
  rm -f conftest.frag conftest.h
2391
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2392
  cat conftest.in >> conftest.h
2393
  rm -f conftest.in
2394
  if cmp -s $ac_file conftest.h 2>/dev/null; then
2395
    echo "$ac_file is unchanged"
2396
    rm -f conftest.h
2397
  else
2398
    # Remove last slash and all that follows it.  Not all systems have dirname.
2399
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2400
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2401
      # The file is in a subdirectory.
2402
      test ! -d "$ac_dir" && mkdir "$ac_dir"
2403
    fi
2404
    rm -f $ac_file
2405
    mv conftest.h $ac_file
2406
  fi
2407
fi; done
2408
 
2409
EOF
2410
cat >> $CONFIG_STATUS <
2411
 
2412
 
2413
EOF
2414
cat >> $CONFIG_STATUS <<\EOF
2415
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2416
 
2417
# Makefile uses this timestamp file to record whether config.h is up to date.
2418
echo > stamp-h
2419
 
2420
exit 0
2421
EOF
2422
chmod +x $CONFIG_STATUS
2423
rm -fr confdefs* $ac_clean_files
2424
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2425
 

powered by: WebSVN 2.1.0

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