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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_61/] [or1ksim/] [configure] - Blame information for rev 18

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

powered by: WebSVN 2.1.0

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