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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [configure] - Blame information for rev 167

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

powered by: WebSVN 2.1.0

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