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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-debug do a debug rather than a release build"
20 --enable-ansi do an ANSI rather than a unicode build"
22 --disable-asserts disable all assertions"
24 --disable-preconditions disable a subset of the assertions"
26 --disable-postconditions disable a subset of the assertions"
28 --disable-invariants disable a subset of the assertions"
30 --disable-loopinvariants disable a subset of the assertions"
32 --disable-tracing disable tracing"
34 --disable-fntracing disable function entry/exit tracing"
36 --with-libcdl-header=<path> location of eCos libcdl headers"
38 --with-libcdl-lib=<path> location of eCos libcdl library"
40 --with-libcdl=<path> location of eCos libcdl installation"
42 --with-infra-header=<path> location of eCos infrastructure headers"
44 --with-infra-lib=<path> location of eCos infrastructure library"
46 --with-infra=<path> location of eCos infrastructure installation"
48 --with-tcl=<path> location of Tcl header and libraries"
50 --with-tcl-version=<vsn> version of Tcl to be used"
52 --with-tcl-header=<path> location of Tcl header"
54 --with-tcl-lib=<path> location of Tcl libraries"
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file=./config.cache
69 program_transform_name=s,x,x,
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'
90 # Initialize some other variables.
93 SHELL=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir | --bindir | --bindi | --bind | --bin | --bi)
119 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120 bindir="$ac_optarg" ;;
122 -build | --build | --buil | --bui | --bu)
124 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125 build="$ac_optarg" ;;
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" ;;
134 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
136 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
138 datadir="$ac_optarg" ;;
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; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
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; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
171 -gas | --gas | --ga | --g)
172 # Obsolete; use --with-gas.
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.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
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
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host | --host | --hos | --ho)
232 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
242 -infodir | --infodir | --infodi | --infod | --info | --inf)
244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245 infodir="$ac_optarg" ;;
247 -libdir | --libdir | --libdi | --libd)
249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
250 libdir="$ac_optarg" ;;
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" ;;
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" ;;
268 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
270 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271 mandir="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331 | -silent | --silent | --silen | --sile | --sil)
334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
338 sbindir="$ac_optarg" ;;
340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342 | --sharedst | --shareds | --shared | --share | --shar \
344 ac_prev=sharedstatedir ;;
345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
349 sharedstatedir="$ac_optarg" ;;
351 -site | --site | --sit)
353 -site=* | --site=* | --sit=*)
356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359 srcdir="$ac_optarg" ;;
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" ;;
368 -target | --target | --targe | --targ | --tar | --ta | --t)
370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371 target="$ac_optarg" ;;
373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
376 -version | --version | --versio | --versi | --vers)
377 echo "configure generated by autoconf version 2.13"
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; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
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" ;;
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" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
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
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
502 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted=no
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; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
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
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
561 ac_n= ac_c='\c' ac_t=
567 for ac_dir in ../../../../../acsupport $srcdir/../../../../../acsupport; do
568 if test -f $ac_dir/install-sh; then
570 ac_install_sh="$ac_aux_dir/install-sh -c"
572 elif test -f $ac_dir/install.sh; then
574 ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
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
590 if test "${srcdir}" = "." ; then
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; }
597 echo "$ac_t""yes" 1>&6
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; }
606 echo $ac_n "checking host system type""... $ac_c" 1>&6
607 echo "configure:608: checking host system type" >&5
610 case "$host_alias" in
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; }
617 *) host_alias=$nonopt ;;
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
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
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
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.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
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
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.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
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"
681 echo "$ac_t""$INSTALL" 1>&6
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}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
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
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
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; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
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"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
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
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
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
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
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; }
783 cat >> confdefs.h <<EOF
784 #define PACKAGE "$PACKAGE"
787 cat >> confdefs.h <<EOF
788 #define VERSION "$VERSION"
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
801 echo "$ac_t""found" 1>&6
803 ACLOCAL="$missing_dir/missing aclocal"
804 echo "$ac_t""missing" 1>&6
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
814 echo "$ac_t""found" 1>&6
816 AUTOCONF="$missing_dir/missing autoconf"
817 echo "$ac_t""missing" 1>&6
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
827 echo "$ac_t""found" 1>&6
829 AUTOMAKE="$missing_dir/missing automake"
830 echo "$ac_t""missing" 1>&6
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
842 AUTOHEADER="$missing_dir/missing autoheader"
843 echo "$ac_t""missing" 1>&6
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
853 echo "$ac_t""found" 1>&6
855 MAKEINFO="$missing_dir/missing makeinfo"
856 echo "$ac_t""missing" 1>&6
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
867 USE_MAINTAINER_MODE=no
870 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
873 if test $USE_MAINTAINER_MODE = yes; then
874 MAINTAINER_MODE_TRUE=
875 MAINTAINER_MODE_FALSE='#'
877 MAINTAINER_MODE_TRUE='#'
878 MAINTAINER_MODE_FALSE=
880 MAINT=$MAINTAINER_MODE_TRUE
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
891 if test -n "$CC"; then
892 ac_cv_prog_CC="$CC" # Let the user override the test.
894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
896 for ac_dir in $ac_dummy; do
897 test -z "$ac_dir" && ac_dir=.
898 if test -f $ac_dir/$ac_word; then
907 if test -n "$CC"; then
908 echo "$ac_t""$CC" 1>&6
910 echo "$ac_t""no" 1>&6
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
921 if test -n "$CC"; then
922 ac_cv_prog_CC="$CC" # Let the user override the test.
924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
948 set dummy "$ac_dir/$ac_word" "$@"
956 if test -n "$CC"; then
957 echo "$ac_t""$CC" 1>&6
959 echo "$ac_t""no" 1>&6
962 if test -z "$CC"; then
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
972 if test -n "$CC"; then
973 ac_cv_prog_CC="$CC" # Let the user override the test.
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
988 if test -n "$CC"; then
989 echo "$ac_t""$CC" 1>&6
991 echo "$ac_t""no" 1>&6
996 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
1009 cat > conftest.$ac_ext << EOF
1011 #line 1012 "configure"
1012 #include "confdefs.h"
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
1022 ac_cv_prog_cc_cross=yes
1025 echo "configure: failed program was:" >&5
1026 cat conftest.$ac_ext >&5
1027 ac_cv_prog_cc_works=no
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
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; }
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
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
1051 cat > conftest.c <<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
1063 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1065 if test $ac_cv_prog_gcc = yes; then
1071 ac_test_CFLAGS="${CFLAGS+set}"
1072 ac_save_CFLAGS="$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
1079 echo 'void f(){}' > conftest.c
1080 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
1099 if test "$GCC" = yes; then
1106 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
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
1115 if test -n "$CXX"; then
1116 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1130 CXX="$ac_cv_prog_CXX"
1131 if test -n "$CXX"; then
1132 echo "$ac_t""$CXX" 1>&6
1134 echo "$ac_t""no" 1>&6
1137 test -n "$CXX" && break
1139 test -n "$CXX" || CXX="gcc"
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
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
1152 cat > conftest.$ac_ext << EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1157 int main(){return(0);}
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
1165 ac_cv_prog_cxx_cross=yes
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1170 ac_cv_prog_cxx_works=no
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
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; }
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
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
1194 cat > conftest.C <<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
1206 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1208 if test $ac_cv_prog_gxx = yes; then
1214 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1215 ac_save_CXXFLAGS="$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
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
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
1242 if test "$GXX" = yes; then
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
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
1260 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1264 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1269 echo "$ac_t""$ac_cv_objext" 1>&6
1270 OBJEXT=$ac_cv_objext
1271 ac_objext=$ac_cv_objext
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
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1285 #define __CYGWIN__ __CYGWIN32__
1290 if { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1303 echo "$ac_t""$ac_cv_cygwin" 1>&6
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
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1319 if { (eval echo configure:1320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1332 echo "$ac_t""$ac_cv_mingw32" 1>&6
1334 test "$ac_cv_mingw32" = yes && MINGW32=yes
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
1342 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1346 echo 'int main () { return 0; }' > conftest.$ac_ext
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1349 for file in conftest.*; do
1351 *.$ac_ext | *.c | *.o | *.obj) ;;
1352 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1356 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1359 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1364 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1365 echo "$ac_t""${ac_cv_exeext}" 1>&6
1385 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1386 echo "configure:1387: checking "for Visual C++"" >&5
1388 if test "${CC}" = "cl" ; then
1391 MSVC_SRCDIR=${srcdir}
1395 if test "${MSVC}" = "yes" ; then
1396 MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1400 ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1402 ecos_LIBS="advapi32.lib"
1406 if test "${MSVC}" = "yes"; then
1413 if test "${MSVC}" = "yes" ; then
1414 echo "$ac_t""unfortunately yes" 1>&6
1416 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1426 echo "configure:1427: checking "the default compiler flags"" >&5
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" ;;
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" ;;
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"
1459 { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
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"
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"
1480 CFLAGS="${ac_save_CFLAGS}"
1481 CXXFLAGS="${ac_save_CXXFLAGS}"
1483 echo "$ac_t""done" 1>&6
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"
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"
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; } ;;
1518 if test "${ecosinfra_asserts}" = "yes"; then
1519 cat >> confdefs.h <<\EOF
1520 #define CYGDBG_USE_ASSERTS 1
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; } ;;
1535 if test "${ecosinfra_preconditions}" = "yes"; then
1536 cat >> confdefs.h <<\EOF
1537 #define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1
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; } ;;
1552 if test "${ecosinfra_postconditions}" = "yes"; then
1553 cat >> confdefs.h <<\EOF
1554 #define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1
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; } ;;
1569 if test "${ecosinfra_invariants}" = "yes"; then
1570 cat >> confdefs.h <<\EOF
1571 #define CYGDBG_INFRA_DEBUG_INVARIANTS 1
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; } ;;
1586 if test "${ecosinfra_loopinvariants}" = "yes"; then
1587 cat >> confdefs.h <<\EOF
1588 #define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1
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; } ;;
1603 if test "${ecosinfra_tracing}" = "yes"; then
1604 cat >> confdefs.h <<\EOF
1605 #define CYGDBG_USE_TRACING 1
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; } ;;
1620 if test "${ecosinfra_fntracing}" = "yes"; then
1621 cat >> confdefs.h <<\EOF
1622 #define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1
1628 echo $ac_n "checking for libcdl""... $ac_c" 1>&6
1629 echo "configure:1630: checking for libcdl" >&5
1632 possibles="${srcdir}/.. ${srcdir}/../.. ${srcdir}/../../.. ${srcdir}/../../../.. ${srcdir}/../../../../.."
1635 for i in ${possibles}; do
1636 if test -d "$i/"libcdl""; then
1642 if test "${libcdl_srcdir}" = "" ; then
1643 possibles="${srcdir}/../host ${srcdir}/../../host ${srcdir}/../../../host ${srcdir}/../../../../host ${srcdir}/../../../../../host ${srcdir}/../../../../../../host"
1646 for i in ${possibles}; do
1647 if test -d "$i/"libcdl""; then
1654 if test "${libcdl_srcdir}" != "" ; then
1655 libcdl_srcdir="${libcdl_srcdir}/libcdl"
1656 libcdl_srcdir=`cd ${libcdl_srcdir} && /bin/pwd`
1660 possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1663 for i in ${possibles}; do
1664 if test -d "$i/"libcdl""; then
1670 if test "${libcdl_builddir}" = "" ; then
1671 possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1674 for i in ${possibles}; do
1675 if test -d "$i/"libcdl""; then
1682 if test "${libcdl_builddir}" != "" ; then
1683 libcdl_builddir="${libcdl_builddir}/libcdl"
1684 libcdl_builddir=`cd ${libcdl_builddir} && /bin/pwd`
1687 ecos_libcdl_incdir=""
1688 ecos_libcdl_libdir=""
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"
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"
1703 # Check whether --with-libcdl or --without-libcdl was given.
1704 if test "${with_libcdl+set}" = set; then
1705 withval="$with_libcdl"
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}"
1717 if test \! -r "${ecos_libcdl_incdir}/cdl.hxx" ; then
1718 { echo "configure: error: libcdl headers not found" 1>&2; exit 1; }
1720 if test "${MSVC}" = "yes" ; then
1721 ecos_msvc_libcdl_incdir="${ecos_libcdl_incdir}"
1725 if test "${MSVC}" = "yes" ; then
1726 ecos_msvc_libcdl_incdir=`cygpath -w ${ecos_msvc_libcdl_incdir} | tr \\\\\\\\ /`
1729 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_libcdl_incdir}\""
1731 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_libcdl_incdir}"
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}"
1741 { echo "configure: error: libcdl library not found" 1>&2; exit 1; }
1743 if test "${MSVC}" = "yes" ; then
1744 ecos_msvc_libcdl_libdir=${ecos_libcdl_libdir}
1748 if test "${MSVC}" = "yes" ; then
1749 ecos_msvc_libcdl_libdir=`cygpath -w ${ecos_msvc_libcdl_libdir} | tr \\\\\\\\ /`
1752 ecos_LIBS="${ecos_LIBS} cdl.lib"
1753 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_libcdl_libdir}\""
1755 ecos_LIBS="${ecos_LIBS} -lcdl"
1756 ecos_LDADD="${ecos_LDADD} -L${ecos_libcdl_libdir}"
1761 echo "$ac_t""-I${ecos_libcdl_incdir} -L${ecos_libcdl_libdir}" 1>&6
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
1768 possibles=".. ../.. ../../.. ../../../.. ../../../../.."
1771 for i in ${possibles}; do
1772 if test -d "$i/"infra""; then
1778 if test "${infra_builddir}" = "" ; then
1779 possibles="../host ../../host ../../../host ../../../../host ../../../../../host ../../../../../../host"
1782 for i in ${possibles}; do
1783 if test -d "$i/"infra""; then
1790 if test "${infra_builddir}" != "" ; then
1791 infra_builddir="${infra_builddir}/infra"
1792 infra_builddir=`cd ${infra_builddir} && /bin/pwd`
1795 ecos_infra_incdir=""
1796 ecos_infra_libdir=""
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"
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"
1811 # Check whether --with-infra or --without-infra was given.
1812 if test "${with_infra+set}" = set; then
1813 withval="$with_infra"
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}"
1825 { echo "configure: error: infrastructure headers not found" 1>&2; exit 1; }
1827 if test "${MSVC}" = "yes" ; then
1828 ecos_msvc_infra_incdir=${ecos_infra_incdir}
1832 if test "${MSVC}" = "yes" ; then
1833 ecos_msvc_infra_incdir=`cygpath -w ${ecos_msvc_infra_incdir} | tr \\\\\\\\ /`
1836 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_msvc_infra_incdir}\""
1838 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_infra_incdir}"
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}"
1848 { echo "configure: error: infrastructure library not found" 1>&2; exit 1; }
1850 if test "${MSVC}" = "yes" ; then
1851 ecos_msvc_infra_libdir=${ecos_infra_libdir}
1855 if test "${MSVC}" = "yes" ; then
1856 ecos_msvc_infra_libdir=`cygpath -w ${ecos_msvc_infra_libdir} | tr \\\\\\\\ /`
1859 ecos_LIBS="${ecos_LIBS} cyginfra.lib"
1860 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_msvc_infra_libdir}\""
1862 ecos_LIBS="${ecos_LIBS} -lcyginfra"
1863 ecos_LDADD="${ecos_LDADD} -L${ecos_infra_libdir}"
1868 echo "$ac_t""-I${ecos_infra_incdir} -L${ecos_infra_libdir}" 1>&6
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
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"
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"
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"
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; }
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"
1916 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; }
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"
1923 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; }
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; }
1933 if test "${MSVC}" = "yes" ; then
1934 ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /`
1940 if test "${MSVC}" = "yes" ; then
1941 ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /`
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}\""
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}"
1958 possibles="${possibles} ${prefix}/lib"
1959 if test "${with_tcl_version+set}" = set ; then
1960 possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}"
1962 possibles="${possibles} /usr/lib"
1963 if test "${with_tcl_version+set}" = set ; then
1964 possibles="${possibles} /usr/lib/tcl${with_tcl_version}"
1968 for i in ${possibles}; do
1969 if test -r "$i/"tclConfig.sh""; then
1975 if test \! -r "${tclconfig}/tclConfig.sh" ; then
1976 { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; }
1978 . ${tclconfig}/tclConfig.sh
1980 if test -z "${TCL_INC_DIR}" ; then
1981 ecos_tcl_incdir="${TCL_PREFIX}/include"
1983 ecos_tcl_incdir="${TCL_INC_DIR}"
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; }
1988 if test "${ecos_tcl_incdir}" != "/usr/include" ; then
1989 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}"
1993 if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
1996 for i in ${possibles}; do
1997 if test -r "$i/"libtcl${with_tcl_version}.a""; then
2003 if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then
2004 TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}"
2007 if test -z "${TCL_LIB_SPEC}" ; then
2010 for i in ${possibles}; do
2011 if test -r "$i/"libtcl.a""; then
2017 if test -r "${libtcl}/libtcl.a" ; then
2018 TCL_LIB_SPEC="-L${libtcl} -ltcl"
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; }
2024 ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
2026 possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'`
2029 for i in ${possibles}; do
2030 if test -r "$i/"tkConfig.sh""; then
2036 if test \! -r "${tkconfig}/tkConfig.sh" ; then
2037 { echo "configure: error: unable to locate Tk config file tkConfig.sh" 1>&2; exit 1; }
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}"
2044 ecos_tk_includes="-I${TK_PREFIX}/include ${TK_XINCLUDES}"
2047 ecos_tk_includes="-I${TK_INC_DIR} ${TK_XINCLUDES}"
2050 if test -z "${TK_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
2053 for i in ${possibles}; do
2054 if test -r "$i/"libtk${with_tcl_version}.a""; then
2060 if test -r "${libtk}/libtk${with_tcl_version}.a" ; then
2061 TK_LIB_SPEC="-L${libtk} -ltk${with_tcl_version}"
2064 if test -z "${TK_LIB_SPEC}" ; then
2067 for i in ${possibles}; do
2068 if test -r "$i/"libtk.a""; then
2074 if test -r "${libtk}/libtk.a" ; then
2075 TK_LIB_SPEC="-L${libtk} -ltk"
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; }
2081 ecos_tk_libs="${TK_LIB_SPEC} ${TK_LIBS}"
2086 echo "$ac_t""-I${ecos_tcl_incdir} ${TCL_LIB_SPEC}" 1>&6
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.
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.
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.
2114 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2116 # `set' does not quote correctly, so add quotes (double-quote substitution
2117 # turns \\\\ into \\, and sed turns \\ into \).
2119 -e "s/'/'\\\\''/g" \
2120 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
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'
2127 if cmp -s $cache_file confcache; then
2130 if test -w $cache_file; then
2131 echo "updating cache $cache_file"
2132 cat confcache > $cache_file
2134 echo "not updating unwritable cache $cache_file"
2139 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2142 # Let make expand exec_prefix.
2143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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'
2152 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
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
2164 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2168 # Without the "./", some shells look in PATH for config.status.
2169 : ${CONFIG_STATUS=./config.status}
2171 echo creating $CONFIG_STATUS
2172 rm -f $CONFIG_STATUS
2173 cat > $CONFIG_STATUS <<EOF
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`:
2180 # $0 $ac_configure_args
2182 # Compiler output produced by configure, useful for debugging
2183 # configure, is in ./config.log if it exists.
2185 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
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"
2195 -help | --help | --hel | --he | --h)
2196 echo "\$ac_cs_usage"; exit 0 ;;
2197 *) echo "\$ac_cs_usage"; exit 1 ;;
2201 ac_given_srcdir=$srcdir
2202 ac_given_INSTALL="$INSTALL"
2204 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2206 cat >> $CONFIG_STATUS <<EOF
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
2214 s%@CFLAGS@%$CFLAGS%g
2215 s%@CPPFLAGS@%$CPPFLAGS%g
2216 s%@CXXFLAGS@%$CXXFLAGS%g
2217 s%@FFLAGS@%$FFLAGS%g
2219 s%@LDFLAGS@%$LDFLAGS%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
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
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
2277 cat >> $CONFIG_STATUS <<\EOF
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.
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
2291 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2293 if test ! -s conftest.s$ac_file; then
2295 rm -f conftest.s$ac_file
2297 if test -z "$ac_sed_cmds"; then
2298 ac_sed_cmds="sed -f conftest.s$ac_file"
2300 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2302 ac_file=`expr $ac_file + 1`
2304 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2307 if test -z "$ac_sed_cmds"; then
2312 cat >> $CONFIG_STATUS <<EOF
2314 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
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".
2320 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2321 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2322 *) ac_file_in="${ac_file}.in" ;;
2325 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
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'`
2336 ac_dir_suffix= ac_dots=
2339 case "$ac_given_srcdir" in
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" ;;
2345 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2346 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2349 case "$ac_given_INSTALL" in
2350 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2351 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2354 echo creating "$ac_file"
2356 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2358 *Makefile*) ac_comsub="1i\\
2359 # $configure_input" ;;
2363 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
2374 cat >> $CONFIG_STATUS <<EOF
2377 cat >> $CONFIG_STATUS <<\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