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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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