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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_36/] [or1ksim/] [configure] - Blame information for rev 11

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

powered by: WebSVN 2.1.0

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