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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [synth/] [arch/] [v2_0/] [host/] [configure] - Blame information for rev 592

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

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

powered by: WebSVN 2.1.0

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