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 --with-tcl=<path> location of Tcl header and libraries"
24 --with-tcl-version=<vsn> version of Tcl to be used"
26 --with-tcl-header=<path> location of Tcl header"
28 --with-tcl-lib=<path> location of Tcl libraries"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=usbhost.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
541 for ac_dir in ../../../../../../acsupport $srcdir/../../../../../../acsupport; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in ../../../../../../acsupport $srcdir/../../../../../../acsupport" 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561 echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6
562 echo "configure:563: checking that a separate build tree is being used" >&5
564 if test "${srcdir}" = "." ; then
567 if test "${ecos_cwd}" = "${srcdir}" ; then
568 echo "$ac_t""no" 1>&6
569 { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; }
571 echo "$ac_t""yes" 1>&6
575 # Make sure we can run config.sub.
576 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
577 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580 echo $ac_n "checking host system type""... $ac_c" 1>&6
581 echo "configure:582: checking host system type" >&5
584 case "$host_alias" in
588 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
589 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
591 *) host_alias=$nonopt ;;
595 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
596 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
597 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
598 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
599 echo "$ac_t""$host" 1>&6
601 am__api_version="1.4"
602 # Find a good install program. We prefer a C program (faster),
603 # so one script is as good as another. But avoid the broken or
604 # incompatible versions:
605 # SysV /etc/install, /usr/sbin/install
606 # SunOS /usr/etc/install
609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
612 # ./install, which can be erroneously created by make from ./install.sh.
613 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
614 echo "configure:615: checking for a BSD compatible install" >&5
615 if test -z "$INSTALL"; then
616 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
619 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
620 for ac_dir in $PATH; do
621 # Account for people who put trailing slashes in PATH elements.
623 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
625 # OSF1 and SCO ODT 3.0 have their own names for install.
626 # Don't use installbsd from OSF since it installs stuff as root
628 for ac_prog in ginstall scoinst install; do
629 if test -f $ac_dir/$ac_prog; then
630 if test $ac_prog = install &&
631 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
632 # AIX install. It has an incompatible calling convention.
635 ac_cv_path_install="$ac_dir/$ac_prog -c"
646 if test "${ac_cv_path_install+set}" = set; then
647 INSTALL="$ac_cv_path_install"
649 # As a last resort, use the slow shell script. We don't cache a
650 # path for INSTALL within a source directory, because that will
651 # break other packages using the cache if that directory is
652 # removed, or if the path is relative.
653 INSTALL="$ac_install_sh"
656 echo "$ac_t""$INSTALL" 1>&6
658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
659 # It thinks the first close brace ends the variable substitution.
660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
666 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
667 echo "configure:668: checking whether build environment is sane" >&5
670 echo timestamp > conftestfile
671 # Do `set' in a subshell so we don't clobber the current shell's
672 # arguments. Must try -L first in case configure is actually a
673 # symlink; some systems play weird games with the mod time of symlinks
674 # (eg FreeBSD returns the mod time of the symlink's containing
677 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
678 if test "$*" = "X"; then
680 set X `ls -t $srcdir/configure conftestfile`
682 if test "$*" != "X $srcdir/configure conftestfile" \
683 && test "$*" != "X conftestfile $srcdir/configure"; then
685 # If neither matched, then we have a broken ls. This can happen
686 # if, for instance, CONFIG_SHELL is bash and it inherits a
687 # broken ls alias from the environment. This has actually
688 # happened. Such a system could not be considered "sane".
689 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
690 alias in your environment" 1>&2; exit 1; }
693 test "$2" = conftestfile
699 { echo "configure: error: newly created file is older than distributed files!
700 Check your system clock" 1>&2; exit 1; }
703 echo "$ac_t""yes" 1>&6
704 if test "$program_transform_name" = s,x,x,; then
705 program_transform_name=
707 # Double any \ or $. echo might interpret backslashes.
708 cat <<\EOF_SED > conftestsed
709 s,\\,\\\\,g; s,\$,$$,g
711 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
714 test "$program_prefix" != NONE &&
715 program_transform_name="s,^,${program_prefix},; $program_transform_name"
716 # Use a double $ so make ignores it.
717 test "$program_suffix" != NONE &&
718 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
720 # sed with no file args requires a program.
721 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
723 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
724 echo "configure:725: checking whether ${MAKE-make} sets \${MAKE}" >&5
725 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
726 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
729 cat > conftestmake <<\EOF
731 @echo 'ac_maketemp="${MAKE}"'
733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
734 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
735 if test -n "$ac_maketemp"; then
736 eval ac_cv_prog_make_${ac_make}_set=yes
738 eval ac_cv_prog_make_${ac_make}_set=no
742 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
743 echo "$ac_t""yes" 1>&6
746 echo "$ac_t""no" 1>&6
747 SET_MAKE="MAKE=${MAKE-make}"
755 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
756 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
761 missing_dir=`cd $ac_aux_dir && pwd`
762 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
763 echo "configure:764: checking for working aclocal-${am__api_version}" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
768 ACLOCAL=aclocal-${am__api_version}
769 echo "$ac_t""found" 1>&6
771 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
776 echo "configure:777: checking for working autoconf" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
782 echo "$ac_t""found" 1>&6
784 AUTOCONF="$missing_dir/missing autoconf"
785 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
789 echo "configure:790: checking for working automake-${am__api_version}" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
794 AUTOMAKE=automake-${am__api_version}
795 echo "$ac_t""found" 1>&6
797 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
798 echo "$ac_t""missing" 1>&6
801 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
802 echo "configure:803: checking for working autoheader" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
807 AUTOHEADER=autoheader
808 echo "$ac_t""found" 1>&6
810 AUTOHEADER="$missing_dir/missing autoheader"
811 echo "$ac_t""missing" 1>&6
814 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
815 echo "configure:816: checking for working makeinfo" >&5
816 # Run test in a subshell; some versions of sh will print an error if
817 # an executable is not found, even if stderr is redirected.
818 # Redirect stdin to placate older versions of autoconf. Sigh.
819 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
821 echo "$ac_t""found" 1>&6
823 MAKEINFO="$missing_dir/missing makeinfo"
824 echo "$ac_t""missing" 1>&6
828 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
829 echo "configure:830: checking whether to enable maintainer-specific portions of Makefiles" >&5
830 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
831 if test "${enable_maintainer_mode+set}" = set; then
832 enableval="$enable_maintainer_mode"
833 USE_MAINTAINER_MODE=$enableval
835 USE_MAINTAINER_MODE=no
838 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
841 if test $USE_MAINTAINER_MODE = yes; then
842 MAINTAINER_MODE_TRUE=
843 MAINTAINER_MODE_FALSE='#'
845 MAINTAINER_MODE_TRUE='#'
846 MAINTAINER_MODE_FALSE=
848 MAINT=$MAINTAINER_MODE_TRUE
853 *-*-linux-gnu* ) SUPPORTED="yes";;
857 if test "${SUPPORTED}" = "no" ; then
858 echo "configure: warning: USB testing is only supported on Linux hosts" 1>&2
860 # Extract the first word of "gcc", so it can be a program name with args.
861 set dummy gcc; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 if test -n "$CC"; then
868 ac_cv_prog_CC="$CC" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
872 for ac_dir in $ac_dummy; do
873 test -z "$ac_dir" && ac_dir=.
874 if test -f $ac_dir/$ac_word; then
883 if test -n "$CC"; then
884 echo "$ac_t""$CC" 1>&6
886 echo "$ac_t""no" 1>&6
889 if test -z "$CC"; then
890 # Extract the first word of "cc", so it can be a program name with args.
891 set dummy cc; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 if test -n "$CC"; then
898 ac_cv_prog_CC="$CC" # Let the user override the test.
900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
915 if test $ac_prog_rejected = yes; then
916 # We found a bogon in the path, so make sure we never use it.
917 set dummy $ac_cv_prog_CC
919 if test $# -gt 0; then
920 # We chose a different compiler from the bogus one.
921 # However, it has the same basename, so the bogon will be chosen
922 # first if we set CC to just the basename; use the full file name.
924 set dummy "$ac_dir/$ac_word" "$@"
932 if test -n "$CC"; then
933 echo "$ac_t""$CC" 1>&6
935 echo "$ac_t""no" 1>&6
938 if test -z "$CC"; then
941 # Extract the first word of "cl", so it can be a program name with args.
942 set dummy cl; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 if test -n "$CC"; then
949 ac_cv_prog_CC="$CC" # Let the user override the test.
951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
964 if test -n "$CC"; then
965 echo "$ac_t""$CC" 1>&6
967 echo "$ac_t""no" 1>&6
972 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
976 echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983 cross_compiling=$ac_cv_prog_cc_cross
985 cat > conftest.$ac_ext << EOF
987 #line 988 "configure"
988 #include "confdefs.h"
992 if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
993 ac_cv_prog_cc_works=yes
994 # If we can't run a trivial program, we are probably using a cross compiler.
995 if (./conftest; exit) 2>/dev/null; then
996 ac_cv_prog_cc_cross=no
998 ac_cv_prog_cc_cross=yes
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1003 ac_cv_prog_cc_works=no
1007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1008 ac_cpp='$CPP $CPPFLAGS'
1009 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1010 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1011 cross_compiling=$ac_cv_prog_cc_cross
1013 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1014 if test $ac_cv_prog_cc_works = no; then
1015 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1017 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1019 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1020 cross_compiling=$ac_cv_prog_cc_cross
1022 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether we are using GNU C" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 cat > conftest.c <<EOF
1032 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1039 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1041 if test $ac_cv_prog_gcc = yes; then
1047 ac_test_CFLAGS="${CFLAGS+set}"
1048 ac_save_CFLAGS="$CFLAGS"
1050 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1051 echo "configure:1052: checking whether ${CC-cc} accepts -g" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 echo 'void f(){}' > conftest.c
1056 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1065 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1066 if test "$ac_test_CFLAGS" = set; then
1067 CFLAGS="$ac_save_CFLAGS"
1068 elif test $ac_cv_prog_cc_g = yes; then
1069 if test "$GCC" = yes; then
1075 if test "$GCC" = yes; then
1082 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1084 # Extract the first word of "$ac_prog", so it can be a program name with args.
1085 set dummy $ac_prog; ac_word=$2
1086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087 echo "configure:1088: checking for $ac_word" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 if test -n "$CXX"; then
1092 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1096 for ac_dir in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_CXX="$ac_prog"
1106 CXX="$ac_cv_prog_CXX"
1107 if test -n "$CXX"; then
1108 echo "$ac_t""$CXX" 1>&6
1110 echo "$ac_t""no" 1>&6
1113 test -n "$CXX" && break
1115 test -n "$CXX" || CXX="gcc"
1118 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1123 ac_cpp='$CXXCPP $CPPFLAGS'
1124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1126 cross_compiling=$ac_cv_prog_cxx_cross
1128 cat > conftest.$ac_ext << EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1133 int main(){return(0);}
1135 if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1136 ac_cv_prog_cxx_works=yes
1137 # If we can't run a trivial program, we are probably using a cross compiler.
1138 if (./conftest; exit) 2>/dev/null; then
1139 ac_cv_prog_cxx_cross=no
1141 ac_cv_prog_cxx_cross=yes
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1146 ac_cv_prog_cxx_works=no
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp='$CPP $CPPFLAGS'
1152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling=$ac_cv_prog_cc_cross
1156 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1157 if test $ac_cv_prog_cxx_works = no; then
1158 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1160 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1162 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1163 cross_compiling=$ac_cv_prog_cxx_cross
1165 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether we are using GNU C++" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 cat > conftest.C <<EOF
1175 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1182 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1184 if test $ac_cv_prog_gxx = yes; then
1190 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1191 ac_save_CXXFLAGS="$CXXFLAGS"
1193 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether ${CXX-g++} accepts -g" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 echo 'void f(){}' > conftest.cc
1199 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1200 ac_cv_prog_cxx_g=yes
1208 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1209 if test "$ac_test_CXXFLAGS" = set; then
1210 CXXFLAGS="$ac_save_CXXFLAGS"
1211 elif test $ac_cv_prog_cxx_g = yes; then
1212 if test "$GXX" = yes; then
1218 if test "$GXX" = yes; then
1225 for ac_declaration in \
1227 '#include <stdlib.h>' \
1228 'extern "C" void std::exit (int) throw (); using std::exit;' \
1229 'extern "C" void std::exit (int); using std::exit;' \
1230 'extern "C" void exit (int) throw ();' \
1231 'extern "C" void exit (int);' \
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1243 if { (eval echo configure:1244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1252 cat > conftest.$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1260 if { (eval echo configure:1261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1264 echo "configure: failed program was:" >&5
1265 cat conftest.$ac_ext >&5
1269 if test -n "$ac_declaration"; then
1270 echo '#ifdef __cplusplus' >>confdefs.h
1271 echo $ac_declaration >>confdefs.h
1272 echo '#endif' >>confdefs.h
1276 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1277 echo "configure:1278: checking whether ln -s works" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1282 if ln -s X conftestdata 2>/dev/null
1285 ac_cv_prog_LN_S="ln -s"
1290 LN_S="$ac_cv_prog_LN_S"
1291 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1292 echo "$ac_t""yes" 1>&6
1294 echo "$ac_t""no" 1>&6
1297 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1298 echo "configure:1299: checking for object suffix" >&5
1299 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1303 echo 'int i = 1;' > conftest.$ac_ext
1304 if { (eval echo configure:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1305 for ac_file in conftest.*; do
1308 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1312 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1317 echo "$ac_t""$ac_cv_objext" 1>&6
1318 OBJEXT=$ac_cv_objext
1319 ac_objext=$ac_cv_objext
1321 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1322 echo "configure:1323: checking for Cygwin environment" >&5
1323 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1333 #define __CYGWIN__ __CYGWIN32__
1338 if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1351 echo "$ac_t""$ac_cv_cygwin" 1>&6
1353 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1354 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1355 echo "configure:1356: checking for mingw32 environment" >&5
1356 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 cat > conftest.$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1367 if { (eval echo configure:1368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1371 echo "configure: failed program was:" >&5
1372 cat conftest.$ac_ext >&5
1380 echo "$ac_t""$ac_cv_mingw32" 1>&6
1382 test "$ac_cv_mingw32" = yes && MINGW32=yes
1385 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1386 echo "configure:1387: checking for executable suffix" >&5
1387 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1394 echo 'int main () { return 0; }' > conftest.$ac_ext
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1397 for file in conftest.*; do
1399 *.c | *.o | *.obj) ;;
1400 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1404 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1407 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1412 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1413 echo "$ac_t""${ac_cv_exeext}" 1>&6
1433 echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6
1434 echo "configure:1435: checking "for Visual C++"" >&5
1436 if test "${CC}" = "cl" ; then
1439 MSVC_SRCDIR=${srcdir}
1443 if test "${MSVC}" = "yes" ; then
1444 MSVC_SRCDIR=`cygpath -w ${MSVC_SRCDIR} | tr \\\\\\\\ /`
1448 ecos_INCLUDES="${ecos_INCLUDES} \"-I${MSVC_SRCDIR}\""
1450 ecos_LIBS="advapi32.lib"
1454 if test "${MSVC}" = "yes"; then
1461 if test "${MSVC}" = "yes" ; then
1462 echo "$ac_t""unfortunately yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1473 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6
1474 echo "configure:1475: checking "the default compiler flags"" >&5
1476 ecosflags_enable_debug="no"
1477 # Check whether --enable-debug or --disable-debug was given.
1478 if test "${enable_debug+set}" = set; then
1479 enableval="$enable_debug"
1480 case "${enableval}" in
1481 yes) ecosflags_enable_debug="yes" ;;
1482 *) ecosflags_enable_debug="no" ;;
1487 ecosflags_enable_ansi="no"
1488 if test "${MSVC}" = "yes" ; then
1489 # Check whether --enable-ansi or --disable-ansi was given.
1490 if test "${enable_ansi+set}" = set; then
1491 enableval="$enable_ansi"
1492 case "${enableval}" in
1493 yes) ecosflags_enable_ansi="yes" ;;
1494 *) ecosflags_enable_ansi="no" ;;
1500 if test "${GCC}" = "yes" ; then
1501 ecos_CFLAGS="${ecos_CFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"
1502 ecos_CXXFLAGS="${ecos_CXXFLAGS} -pipe -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual"
1503 elif test "${MSVC}" = "yes" ; then
1504 ecos_CFLAGS="${ecos_CFLAGS} -nologo -W3"
1505 ecos_CXXFLAGS="${ecos_CXXFLAGS} -nologo -W3 -GR -GX"
1507 { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; }
1510 if test "${ecosflags_enable_debug}" = "yes" ; then
1511 if test "${GCC}" = "yes" ; then
1512 ecos_CFLAGS="${ecos_CFLAGS} -g -O0"
1513 ecos_CXXFLAGS="${ecos_CXXFLAGS} -g -O0"
1514 elif test "${MSVC}" = "yes" ; then
1515 ecos_CFLAGS="${ecos_CFLAGS} -MDd -Zi"
1516 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MDd -Zi"
1519 if test "${GCC}" = "yes" ; then
1520 ecos_CFLAGS="${ecos_CFLAGS} -O0"
1521 ecos_CXXFLAGS="${ecos_CXXFLAGS} -O0"
1522 elif test "${MSVC}" = "yes" ; then
1523 ecos_CFLAGS="${ecos_CFLAGS} -MD -O2"
1524 ecos_CXXFLAGS="${ecos_CXXFLAGS} -MD -O2"
1528 CFLAGS="${ac_save_CFLAGS}"
1529 CXXFLAGS="${ac_save_CXXFLAGS}"
1531 echo "$ac_t""done" 1>&6
1535 package_dir=`cd ${srcdir} && /bin/pwd`
1536 PACKAGE_VERSION=`dirname ${package_dir}`
1537 PACKAGE_VERSION=`basename ${PACKAGE_VERSION}`
1539 package_dir=`dirname ${package_dir}`
1540 package_dir=`dirname ${package_dir}`
1542 possibles="${package_dir}/.. ${package_dir}/../.. ${package_dir}/../../.. ${package_dir}/../../../.."
1543 possibles="${possibles} ${package_dir}/../../../../.. ${package_dir}/../../../../../.."
1546 for i in ${possibles}; do
1547 if test -d "$i/"acsupport""; then
1553 if test "${repository_root}" = "" ; then
1554 { echo "configure: error: Failed to identify this package's position within the eCos repository" 1>&2; exit 1; }
1556 ECOS_REPOSITORY=`cd "${repository_root}/packages/pkgconf/.." && /bin/pwd`
1558 PACKAGE_DIR=`echo ${package_dir} | sed -e "s:${ECOS_REPOSITORY}/::"`
1560 PACKAGE_INSTALL="${PACKAGE_DIR}/${PACKAGE_VERSION}"
1576 echo $ac_n "checking for Tcl installation""... $ac_c" 1>&6
1577 echo "configure:1578: checking for Tcl installation" >&5
1578 # Check whether --with-tcl or --without-tcl was given.
1579 if test "${with_tcl+set}" = set; then
1584 # Check whether --with-tcl-version or --without-tcl-version was given.
1585 if test "${with_tcl_version+set}" = set; then
1586 withval="$with_tcl_version"
1591 if test "${MSVC}" = "yes" ; then
1592 # Check whether --with-tcl-header or --without-tcl-header was given.
1593 if test "${with_tcl_header+set}" = set; then
1594 withval="$with_tcl_header"
1598 # Check whether --with-tcl-lib or --without-tcl-lib was given.
1599 if test "${with_tcl_lib+set}" = set; then
1600 withval="$with_tcl_lib"
1606 if test "${with_tcl_version+set}" != set ; then
1607 { echo "configure: error: You must specify a Tcl version using --with-tcl-version=<vsn>" 1>&2; exit 1; }
1609 if test "${with_tcl_header+set}" = set ; then
1610 ecos_tcl_incdir=${with_tcl_header}
1611 elif test "${with_tcl+set}" = set ; then
1612 ecos_tcl_incdir="${with_tcl}/include"
1614 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-header=<path>" 1>&2; exit 1; }
1616 if test "${with_tcl_lib+set}" = set; then
1617 ecos_tcl_libdir=${with_tcl_lib}
1618 elif test "${with_tcl+set}" = set; then
1619 ecos_tcl_libdir="${with_tcl}/lib"
1621 { echo "configure: error: You must specify a Tcl installation with either --with-tcl=<path> or --with-tcl-lib=<path>" 1>&2; exit 1; }
1624 if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
1625 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1631 if test "${MSVC}" = "yes" ; then
1632 ecos_tcl_incdir=`cygpath -w ${ecos_tcl_incdir} | tr \\\\\\\\ /`
1638 if test "${MSVC}" = "yes" ; then
1639 ecos_tcl_libdir=`cygpath -w ${ecos_tcl_libdir} | tr \\\\\\\\ /`
1642 ecos_INCLUDES="${ecos_INCLUDES} \"-I${ecos_tcl_incdir}\""
1643 ecos_LIBS="${ecos_LIBS} tcl${with_tcl_version}.lib"
1644 ecos_LDADD="${ecos_LDADD} \"-libpath=${ecos_tcl_libdir}\""
1650 if test "${with_tcl+set}" = set ; then
1651 possibles="${with_tcl}/lib"
1652 if test "${with_tcl_version+set}" = set ; then
1653 possibles="${possibles} ${with_tcl}/lib/tcl${with_tcl_version}"
1656 possibles="${possibles} ${prefix}/lib"
1657 if test "${with_tcl_version+set}" = set ; then
1658 possibles="${possibles} ${prefix}/lib/tcl${with_tcl_version}"
1660 possibles="${possibles} /usr/lib"
1661 if test "${with_tcl_version+set}" = set ; then
1662 possibles="${possibles} /usr/lib/tcl${with_tcl_version}"
1666 for i in ${possibles}; do
1667 if test -r "$i/"tclConfig.sh""; then
1673 if test \! -r "${tclconfig}/tclConfig.sh" ; then
1674 { echo "configure: error: unable to locate Tcl configuration file tclConfig.sh" 1>&2; exit 1; }
1676 . ${tclconfig}/tclConfig.sh
1678 if test -z "${TCL_INC_DIR}" ; then
1679 ecos_tcl_incdir="${TCL_PREFIX}/include"
1681 ecos_tcl_incdir="${TCL_INC_DIR}"
1683 if test \! -r "${ecos_tcl_incdir}/tcl.h" ; then
1684 { echo "configure: error: unable to locate Tcl header file tcl.h" 1>&2; exit 1; }
1686 if test "${ecos_tcl_incdir}" != "/usr/include" ; then
1687 ecos_INCLUDES="${ecos_INCLUDES} -I${ecos_tcl_incdir}"
1691 if test -z "${TCL_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
1694 for i in ${possibles}; do
1695 if test -r "$i/"libtcl${with_tcl_version}.a""; then
1701 if test -r "${libtcl}/libtcl${with_tcl_version}.a" ; then
1702 TCL_LIB_SPEC="-L${libtcl} -ltcl${with_tcl_version}"
1705 if test -z "${TCL_LIB_SPEC}" ; then
1708 for i in ${possibles}; do
1709 if test -r "$i/"libtcl.a""; then
1715 if test -r "${libtcl}/libtcl.a" ; then
1716 TCL_LIB_SPEC="-L${libtcl} -ltcl"
1719 if test -z "${TCL_LIB_SPEC}" ; then
1720 { echo "configure: error: ${tclconfig}/tclConfig.sh does not define TCL_LIB_SPEC" 1>&2; exit 1; }
1722 ecos_LIBS="${ecos_LIBS} ${TCL_LIB_SPEC}"
1724 possibles=`echo ${possibles} | sed -e 's,tcl,tk,g'`
1727 for i in ${possibles}; do
1728 if test -r "$i/"tkConfig.sh""; then
1734 if test \! -r "${tkconfig}/tkConfig.sh" ; then
1735 { echo "configure: error: unable to locate Tk config file tkConfig.sh" 1>&2; exit 1; }
1737 . ${tkconfig}/tkConfig.sh
1738 if test -z "${TK_INC_DIR}" ; then
1739 if test "${TK_PREFIX}" = "/usr" ; then
1740 ecos_tk_includes="${TK_XINCLUDES}"
1742 ecos_tk_includes="-I${TK_PREFIX}/include ${TK_XINCLUDES}"
1745 ecos_tk_includes="-I${TK_INC_DIR} ${TK_XINCLUDES}"
1748 if test -z "${TK_LIB_SPEC}" -a "${with_tcl_version+set}" = set ; then
1751 for i in ${possibles}; do
1752 if test -r "$i/"libtk${with_tcl_version}.a""; then
1758 if test -r "${libtk}/libtk${with_tcl_version}.a" ; then
1759 TK_LIB_SPEC="-L${libtk} -ltk${with_tcl_version}"
1762 if test -z "${TK_LIB_SPEC}" ; then
1765 for i in ${possibles}; do
1766 if test -r "$i/"libtk.a""; then
1772 if test -r "${libtk}/libtk.a" ; then
1773 TK_LIB_SPEC="-L${libtk} -ltk"
1776 if test -z "${TK_LIB_SPEC}" ; then
1777 { echo "configure: error: ${tkconfig}/tkConfig.sh does not define TK_LIB_SPEC" 1>&2; exit 1; }
1779 ecos_tk_libs="${TK_LIB_SPEC} ${TK_LIBS}"
1784 echo "$ac_t""-I${ecos_tcl_incdir} ${TCL_LIB_SPEC}" 1>&6
1788 if test "${TK_MAJOR_VERSION}" = "8" ; then
1789 if test ${TK_MINOR_VERSION} -lt 2 ; then
1790 echo "configure: warning: Version 8.2 or greater of Tcl/Tk is required" 1>&2
1794 if test "${SUPPORTED}" = "yes" ; then
1795 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1796 echo "configure:1797: checking how to run the C preprocessor" >&5
1797 # On Suns, sometimes $CPP names a directory.
1798 if test -n "$CPP" && test -d "$CPP"; then
1801 if test -z "$CPP"; then
1802 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 # This must be in double quotes, not single quotes, because CPP may get
1806 # substituted into the Makefile and "${CC-cc}" will confuse make.
1808 # On the NeXT, cc -E runs the code through the compiler's parser,
1809 # not just through cpp.
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1817 { (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1819 if test -z "$ac_err"; then
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 CPP="${CC-cc} -E -traditional-cpp"
1827 cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1834 { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1836 if test -z "$ac_err"; then
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 CPP="${CC-cc} -nologo -E"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1867 ac_cv_prog_CPP="$CPP"
1869 CPP="$ac_cv_prog_CPP"
1871 ac_cv_prog_CPP="$CPP"
1873 echo "$ac_t""$CPP" 1>&6
1875 for ac_hdr in "linux/usb.h" "linux/usbdevice_fs.h"
1877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_hdr" >&5
1880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1893 eval "ac_cv_header_$ac_safe=yes"
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 eval "ac_cv_header_$ac_safe=no"
1903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1906 cat >> confdefs.h <<EOF
1907 #define $ac_tr_hdr 1
1911 echo "$ac_t""no" 1>&6
1916 if test "${SUPPORTED}" = "no" ; then
1917 echo "configure: warning: Required Linux kernel functionality does not appear to be available" 1>&2
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1923 #include <linux/usbdevice_fs.h>
1927 static struct usbdevfs_ctrltransfer xx = { .bRequestType = 0 };
1931 if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1933 cat >> confdefs.h <<\EOF
1934 #define CYGBLD_USE_NEW_FIELD_NAMES 1
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1947 if test "${SUPPORTED}" = "no" ; then
1948 echo "configure: warning: The USB testing support cannot be built on this platform." 1>&2
1953 if test "${SUPPORTED}" = "yes"; then
1965 cat > confcache <<\EOF
1966 # This file is a shell script that caches the results of configure
1967 # tests run on this system so they can be shared between configure
1968 # scripts and configure runs. It is not useful on other systems.
1969 # If it contains results you don't want to keep, you may remove or edit it.
1971 # By default, configure uses ./config.cache as the cache file,
1972 # creating it if it does not exist already. You can give configure
1973 # the --cache-file=FILE option to use a different cache file; that is
1974 # what configure does when it calls configure scripts in
1975 # subdirectories, so they share the cache.
1976 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1977 # config.status only pays attention to the cache file if you give it the
1978 # --recheck option to rerun configure.
1981 # The following way of writing the cache mishandles newlines in values,
1982 # but we know of no workaround that is simple, portable, and efficient.
1983 # So, don't put newlines in cache variables' values.
1984 # Ultrix sh set writes to stderr and can't be redirected directly,
1985 # and sets the high bit in the cache file unless we assign to the vars.
1987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1989 # `set' does not quote correctly, so add quotes (double-quote substitution
1990 # turns \\\\ into \\, and sed turns \\ into \).
1992 -e "s/'/'\\\\''/g" \
1993 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1996 # `set' quotes correctly as required by POSIX, so do not add quotes.
1997 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2000 if cmp -s $cache_file confcache; then
2003 if test -w $cache_file; then
2004 echo "updating cache $cache_file"
2005 cat confcache > $cache_file
2007 echo "not updating unwritable cache $cache_file"
2012 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2015 # Let make expand exec_prefix.
2016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2018 # Any assignment to VPATH causes Sun make to only execute
2019 # the first set of double-colon rules, so remove it if not needed.
2020 # If there is a colon in the path, we need to keep it.
2021 if test "x$srcdir" = x.; then
2022 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2025 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2027 DEFS=-DHAVE_CONFIG_H
2029 # Without the "./", some shells look in PATH for config.status.
2030 : ${CONFIG_STATUS=./config.status}
2032 echo creating $CONFIG_STATUS
2033 rm -f $CONFIG_STATUS
2034 cat > $CONFIG_STATUS <<EOF
2036 # Generated automatically by configure.
2037 # Run this file to recreate the current configuration.
2038 # This directory was configured as follows,
2039 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2041 # $0 $ac_configure_args
2043 # Compiler output produced by configure, useful for debugging
2044 # configure, is in ./config.log if it exists.
2046 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2049 case "\$ac_option" in
2050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2051 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2052 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2053 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2054 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2056 -help | --help | --hel | --he | --h)
2057 echo "\$ac_cs_usage"; exit 0 ;;
2058 *) echo "\$ac_cs_usage"; exit 1 ;;
2062 ac_given_srcdir=$srcdir
2063 ac_given_INSTALL="$INSTALL"
2065 trap 'rm -fr `echo "Makefile:Makefile.in config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2067 cat >> $CONFIG_STATUS <<EOF
2069 # Protect against being on the right side of a sed subst in config.status.
2070 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2071 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2075 s%@CFLAGS@%$CFLAGS%g
2076 s%@CPPFLAGS@%$CPPFLAGS%g
2077 s%@CXXFLAGS@%$CXXFLAGS%g
2078 s%@FFLAGS@%$FFLAGS%g
2080 s%@LDFLAGS@%$LDFLAGS%g
2082 s%@exec_prefix@%$exec_prefix%g
2083 s%@prefix@%$prefix%g
2084 s%@program_transform_name@%$program_transform_name%g
2085 s%@bindir@%$bindir%g
2086 s%@sbindir@%$sbindir%g
2087 s%@libexecdir@%$libexecdir%g
2088 s%@datadir@%$datadir%g
2089 s%@sysconfdir@%$sysconfdir%g
2090 s%@sharedstatedir@%$sharedstatedir%g
2091 s%@localstatedir@%$localstatedir%g
2092 s%@libdir@%$libdir%g
2093 s%@includedir@%$includedir%g
2094 s%@oldincludedir@%$oldincludedir%g
2095 s%@infodir@%$infodir%g
2096 s%@mandir@%$mandir%g
2098 s%@host_alias@%$host_alias%g
2099 s%@host_cpu@%$host_cpu%g
2100 s%@host_vendor@%$host_vendor%g
2101 s%@host_os@%$host_os%g
2102 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2103 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2104 s%@INSTALL_DATA@%$INSTALL_DATA%g
2105 s%@PACKAGE@%$PACKAGE%g
2106 s%@VERSION@%$VERSION%g
2107 s%@ACLOCAL@%$ACLOCAL%g
2108 s%@AUTOCONF@%$AUTOCONF%g
2109 s%@AUTOMAKE@%$AUTOMAKE%g
2110 s%@AUTOHEADER@%$AUTOHEADER%g
2111 s%@MAKEINFO@%$MAKEINFO%g
2112 s%@SET_MAKE@%$SET_MAKE%g
2113 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2114 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2119 s%@OBJEXT@%$OBJEXT%g
2120 s%@EXEEXT@%$EXEEXT%g
2121 s%@ecos_CFLAGS@%$ecos_CFLAGS%g
2122 s%@ecos_CXXFLAGS@%$ecos_CXXFLAGS%g
2123 s%@ecos_LDADD@%$ecos_LDADD%g
2124 s%@ecos_INCLUDES@%$ecos_INCLUDES%g
2125 s%@ecos_LIBS@%$ecos_LIBS%g
2126 s%@MSVC_SRCDIR@%$MSVC_SRCDIR%g
2127 s%@MSVC_TRUE@%$MSVC_TRUE%g
2128 s%@MSVC_FALSE@%$MSVC_FALSE%g
2129 s%@ECOS_REPOSITORY@%$ECOS_REPOSITORY%g
2130 s%@PACKAGE_DIR@%$PACKAGE_DIR%g
2131 s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
2132 s%@PACKAGE_INSTALL@%$PACKAGE_INSTALL%g
2133 s%@ecos_tk_includes@%$ecos_tk_includes%g
2134 s%@ecos_tk_libs@%$ecos_tk_libs%g
2136 s%@SUPPORTED_TRUE@%$SUPPORTED_TRUE%g
2137 s%@SUPPORTED_FALSE@%$SUPPORTED_FALSE%g
2142 cat >> $CONFIG_STATUS <<\EOF
2144 # Split the substitutions into bite-sized pieces for seds with
2145 # small command number limits, like on Digital OSF/1 and HP-UX.
2146 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2147 ac_file=1 # Number of current file.
2148 ac_beg=1 # First line for current file.
2149 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2152 while $ac_more_lines; do
2153 if test $ac_beg -gt 1; then
2154 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2156 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2158 if test ! -s conftest.s$ac_file; then
2160 rm -f conftest.s$ac_file
2162 if test -z "$ac_sed_cmds"; then
2163 ac_sed_cmds="sed -f conftest.s$ac_file"
2165 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2167 ac_file=`expr $ac_file + 1`
2169 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2172 if test -z "$ac_sed_cmds"; then
2177 cat >> $CONFIG_STATUS <<EOF
2179 CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in"}
2181 cat >> $CONFIG_STATUS <<\EOF
2182 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2185 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2186 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2187 *) ac_file_in="${ac_file}.in" ;;
2190 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2192 # Remove last slash and all that follows it. Not all systems have dirname.
2193 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2194 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2195 # The file is in a subdirectory.
2196 test ! -d "$ac_dir" && mkdir "$ac_dir"
2197 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2198 # A "../" for each directory in $ac_dir_suffix.
2199 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2201 ac_dir_suffix= ac_dots=
2204 case "$ac_given_srcdir" in
2206 if test -z "$ac_dots"; then top_srcdir=.
2207 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2208 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2210 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2211 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2214 case "$ac_given_INSTALL" in
2215 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2216 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2219 echo creating "$ac_file"
2221 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2223 *Makefile*) ac_comsub="1i\\
2224 # $configure_input" ;;
2228 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2230 s%@configure_input@%$configure_input%g
2231 s%@srcdir@%$srcdir%g
2232 s%@top_srcdir@%$top_srcdir%g
2233 s%@INSTALL@%$INSTALL%g
2234 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2238 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2239 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2241 # ac_d sets the value in "#define NAME VALUE" lines.
2242 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2243 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2246 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2247 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2248 ac_uB='\([ ]\)%\1#\2define\3'
2251 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2252 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2253 ac_eB='$%\1#\2define\3'
2257 if test "${CONFIG_HEADERS+set}" != set; then
2259 cat >> $CONFIG_STATUS <<EOF
2260 CONFIG_HEADERS="config.h:config.h.in"
2262 cat >> $CONFIG_STATUS <<\EOF
2264 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2265 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2267 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2268 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2269 *) ac_file_in="${ac_file}.in" ;;
2272 echo creating $ac_file
2274 rm -f conftest.frag conftest.in conftest.out
2275 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2276 cat $ac_file_inputs > conftest.in
2280 # Transform confdefs.h into a sed script conftest.vals that substitutes
2281 # the proper values into config.h.in to produce config.h. And first:
2282 # Protect against being on the right side of a sed subst in config.status.
2283 # Protect against being in an unquoted here document in config.status.
2285 cat > conftest.hdr <<\EOF
2288 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2292 sed -n -f conftest.hdr confdefs.h > conftest.vals
2295 # This sed command replaces #undef with comments. This is necessary, for
2296 # example, in the case of _POSIX_SOURCE, which is predefined and required
2297 # on some systems where configure will not decide to define it.
2298 cat >> conftest.vals <<\EOF
2299 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2302 # Break up conftest.vals because some shells have a limit on
2303 # the size of here documents, and old seds have small limits too.
2308 ac_lines=`grep -c . conftest.vals`
2309 # grep -c gives empty output for an empty file on some AIX systems.
2310 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2311 # Write a limited-size here document to conftest.frag.
2312 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2313 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2315 sed -f conftest.frag conftest.in > conftest.out
2317 mv conftest.out conftest.in
2319 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2321 mv conftest.tail conftest.vals
2325 cat >> $CONFIG_STATUS <<\EOF
2326 rm -f conftest.frag conftest.h
2327 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2328 cat conftest.in >> conftest.h
2330 if cmp -s $ac_file conftest.h 2>/dev/null; then
2331 echo "$ac_file is unchanged"
2334 # Remove last slash and all that follows it. Not all systems have dirname.
2335 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2336 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2337 # The file is in a subdirectory.
2338 test ! -d "$ac_dir" && mkdir "$ac_dir"
2341 mv conftest.h $ac_file
2346 cat >> $CONFIG_STATUS <<EOF
2350 cat >> $CONFIG_STATUS <<\EOF
2351 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2355 chmod +x $CONFIG_STATUS
2356 rm -fr confdefs* $ac_clean_files
2357 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1