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