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 --with-tcl directory containing tcl configuration (tclConfig.sh)"
17 --with-tk directory containing tk configuration (tkConfig.sh)"
19 --with-itcl=DIR use Itcl 3.0 binaries from DIR"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=generic/buttonbox.itk
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='\c' ac_t=
540 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}${PATCHLEVEL}
541 IWIDGETS_SRC_DIR=`pwd`
549 *win32* | *WIN32* | *CYGWIN_NT*|*CYGWIN_98*|*CYGWIN_95*)
562 #--------------------------------------------------------------------
563 # See if there was a command-line option for where Tcl is; if
564 # not, search for Tcl.
565 #--------------------------------------------------------------------
569 # Ok, lets find the tcl configuration
570 # First, look for one uninstalled.
571 # the alternative search directory is invoked by --with-tcl
574 if test x"${no_tcl}" = x ; then
575 # we reset no_tcl in case something fails here
577 # Check whether --with-tcl or --without-tcl was given.
578 if test "${with_tcl+set}" = set; then
580 with_tclconfig=${withval}
583 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
584 echo "configure:585: checking for Tcl configuration" >&5
585 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
590 # First check to see if --with-tcl was specified.
591 if test x"${with_tclconfig}" != x ; then
592 if test -f "${with_tclconfig}/tclConfig.sh" ; then
593 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
595 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
599 # then check for a private Tcl installation
600 if test x"${ac_cv_c_tclconfig}" = x ; then
603 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
605 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
607 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
608 if test -f "$i/unix/tclConfig.sh" ; then
609 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
615 # check in a few common install locations
616 if test x"${ac_cv_c_tclconfig}" = x ; then
617 for i in `ls -d ${prefix}/lib 2>/dev/null` \
618 `ls -d /usr/local/lib 2>/dev/null` ; do
619 if test -f "$i/tclConfig.sh" ; then
620 ac_cv_c_tclconfig=`(cd $i; pwd)`
626 # check in a few other private locations
627 if test x"${ac_cv_c_tclconfig}" = x ; then
630 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
631 if test -f "$i/unix/tclConfig.sh" ; then
632 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
641 if test x"${ac_cv_c_tclconfig}" = x ; then
642 TCL_BIN_DIR="# no Tcl configs found"
643 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
647 TCL_BIN_DIR=${ac_cv_c_tclconfig}
648 echo "$ac_t""found $TCL_BIN_DIR/tclConfig.sh" 1>&6
653 echo $ac_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh""... $ac_c" 1>&6
654 echo "configure:655: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
656 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
657 echo "$ac_t""loading" 1>&6
658 . $TCL_BIN_DIR/tclConfig.sh
660 echo "$ac_t""file not found" 1>&6
664 # The eval is required to do the TCL_DBGX substitution in the
665 # TCL_LIB_FILE variable
668 eval TCL_LIB_FILE=${TCL_LIB_FILE}
669 eval TCL_LIB_FLAG=${TCL_LIB_FLAG}
688 #--------------------------------------------------------------------
689 # See if there was a command-line option for where Tk is; if
690 # not, search for Tk.
691 #--------------------------------------------------------------------
695 # Ok, lets find the tk configuration
696 # First, look for one uninstalled.
697 # the alternative search directory is invoked by --with-tk
700 if test x"${no_tk}" = x ; then
701 # we reset no_tk in case something fails here
703 # Check whether --with-tk or --without-tk was given.
704 if test "${with_tk+set}" = set; then
706 with_tkconfig=${withval}
709 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
710 echo "configure:711: checking for Tk configuration" >&5
711 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
716 # First check to see if --with-tkconfig was specified.
717 if test x"${with_tkconfig}" != x ; then
718 if test -f "${with_tkconfig}/tkConfig.sh" ; then
719 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
721 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
725 # then check for a private Tk library
726 if test x"${ac_cv_c_tkconfig}" = x ; then
729 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
731 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
733 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
734 if test -f "$i/unix/tkConfig.sh" ; then
735 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
740 # check in a few common install locations
741 if test x"${ac_cv_c_tkconfig}" = x ; then
742 for i in `ls -d ${prefix}/lib 2>/dev/null` \
743 `ls -d /usr/local/lib 2>/dev/null` ; do
744 if test -f "$i/tkConfig.sh" ; then
745 ac_cv_c_tkconfig=`(cd $i; pwd)`
750 # check in a few other private locations
751 if test x"${ac_cv_c_tkconfig}" = x ; then
754 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
755 if test -f "$i/unix/tkConfig.sh" ; then
756 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
764 if test x"${ac_cv_c_tkconfig}" = x ; then
765 TK_BIN_DIR="# no Tk configs found"
766 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
770 TK_BIN_DIR=${ac_cv_c_tkconfig}
771 echo "$ac_t""found $TK_BIN_DIR/tkConfig.sh" 1>&6
777 echo $ac_n "checking for existence of $TK_BIN_DIR/tkConfig.sh""... $ac_c" 1>&6
778 echo "configure:779: checking for existence of $TK_BIN_DIR/tkConfig.sh" >&5
780 if test -f "$TK_BIN_DIR/tkConfig.sh" ; then
781 echo "$ac_t""loading" 1>&6
782 . $TK_BIN_DIR/tkConfig.sh
784 echo "$ac_t""could not find $TK_BIN_DIR/tkConfig.sh" 1>&6
793 #--------------------------------------------------------------------
794 # See if --with-itcl was specified to give the [incr Tcl] and [incr Tk]
795 # source code location. If not, then we'll assume that the Iwidgets
796 # package is being installed directly beneath the toplevel Itcl directory.
797 #--------------------------------------------------------------------
799 # Check whether --with-itcl or --without-itcl was given.
800 if test "${with_itcl+set}" = set; then
804 itcl_search=`cd ${IWIDGETS_SRC_DIR}/..; pwd`
809 if test -r $itcl_search/itcl/library/itcl.tcl; then
810 if test -r $itcl_search/itk/library/itk.tcl; then
811 if test -r $itcl_search/config/mkinstalldirs; then
812 ITCL_LIB_DIR=$itcl_search/itcl/library
813 ITCL_SRC_DIR=$itcl_search/itcl
814 ITK_LIB_DIR=$itcl_search/itk/library
815 ITK_SRC_DIR=$itcl_search/itk
820 if test -z "$ITCL_LIB_DIR"; then
821 { echo "configure: error: Can't find Itcl source. Use --with-itcl to specify the the toplevel incr Tcl directory on your system. (This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl, and config/mkinstalldirs.)" 1>&2; exit 1; }
825 #--------------------------------------------------------------------
826 # Needed for running the test suite
827 #--------------------------------------------------------------------
830 echo $ac_n "checking for tclsh""... $ac_c" 1>&6
831 echo "configure:832: checking for tclsh" >&5
833 if eval "test \"`echo '$''{'ac_cv_path_tclsh'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
837 search_path=`echo ${exec_prefix}/bin:${prefix}/bin:${TCL_BIN_DIR}:${TCL_BIN_DIR}/../bin:${PATH} | sed -e 's/:/ /g'`
838 for dir in $search_path ; do
839 for j in `ls -r $dir/tclsh[8-9]*${EXEEXT} 2> /dev/null` \
840 `ls -r $dir/tclsh*${EXEEXT} 2> /dev/null` ; do
841 if test x"$ac_cv_path_tclsh" = x ; then
842 if test -f "$j" ; then
853 if test -f "$ac_cv_path_tclsh" ; then
854 TCLSH_PROG=$ac_cv_path_tclsh
855 echo "$ac_t""$TCLSH_PROG" 1>&6
857 { echo "configure: error: No tclsh found in PATH: $search_path" 1>&2; exit 1; }
862 #--------------------------------------------------------------------
863 # Fill in template files with the proper info.
864 #--------------------------------------------------------------------
874 cat > confcache <<\EOF
875 # This file is a shell script that caches the results of configure
876 # tests run on this system so they can be shared between configure
877 # scripts and configure runs. It is not useful on other systems.
878 # If it contains results you don't want to keep, you may remove or edit it.
880 # By default, configure uses ./config.cache as the cache file,
881 # creating it if it does not exist already. You can give configure
882 # the --cache-file=FILE option to use a different cache file; that is
883 # what configure does when it calls configure scripts in
884 # subdirectories, so they share the cache.
885 # Giving --cache-file=/dev/null disables caching, for debugging configure.
886 # config.status only pays attention to the cache file if you give it the
887 # --recheck option to rerun configure.
890 # The following way of writing the cache mishandles newlines in values,
891 # but we know of no workaround that is simple, portable, and efficient.
892 # So, don't put newlines in cache variables' values.
893 # Ultrix sh set writes to stderr and can't be redirected directly,
894 # and sets the high bit in the cache file unless we assign to the vars.
896 case `(ac_space=' '; set | grep ac_space) 2>&1` in
898 # `set' does not quote correctly, so add quotes (double-quote substitution
899 # turns \\\\ into \\, and sed turns \\ into \).
902 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
905 # `set' quotes correctly as required by POSIX, so do not add quotes.
906 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
909 if cmp -s $cache_file confcache; then
912 if test -w $cache_file; then
913 echo "updating cache $cache_file"
914 cat confcache > $cache_file
916 echo "not updating unwritable cache $cache_file"
921 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
924 # Let make expand exec_prefix.
925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
927 # Any assignment to VPATH causes Sun make to only execute
928 # the first set of double-colon rules, so remove it if not needed.
929 # If there is a colon in the path, we need to keep it.
930 if test "x$srcdir" = x.; then
931 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
934 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
936 # Transform confdefs.h into DEFS.
937 # Protect against shell expansion while executing Makefile rules.
938 # Protect against Makefile macro expansion.
939 cat > conftest.defs <<\EOF
940 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
941 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
946 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
950 # Without the "./", some shells look in PATH for config.status.
951 : ${CONFIG_STATUS=./config.status}
953 echo creating $CONFIG_STATUS
955 cat > $CONFIG_STATUS <<EOF
957 # Generated automatically by configure.
958 # Run this file to recreate the current configuration.
959 # This directory was configured as follows,
960 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
962 # $0 $ac_configure_args
964 # Compiler output produced by configure, useful for debugging
965 # configure, is in ./config.log if it exists.
967 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
970 case "\$ac_option" in
971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
972 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
973 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
974 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
975 echo "$CONFIG_STATUS generated by autoconf version 2.13"
977 -help | --help | --hel | --he | --h)
978 echo "\$ac_cs_usage"; exit 0 ;;
979 *) echo "\$ac_cs_usage"; exit 1 ;;
983 ac_given_srcdir=$srcdir
985 trap 'rm -fr `echo "Makefile \
987 pkgIndex.tcl" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
989 cat >> $CONFIG_STATUS <<EOF
991 # Protect against being on the right side of a sed subst in config.status.
992 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
993 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
998 s%@CPPFLAGS@%$CPPFLAGS%g
999 s%@CXXFLAGS@%$CXXFLAGS%g
1000 s%@FFLAGS@%$FFLAGS%g
1002 s%@LDFLAGS@%$LDFLAGS%g
1004 s%@exec_prefix@%$exec_prefix%g
1005 s%@prefix@%$prefix%g
1006 s%@program_transform_name@%$program_transform_name%g
1007 s%@bindir@%$bindir%g
1008 s%@sbindir@%$sbindir%g
1009 s%@libexecdir@%$libexecdir%g
1010 s%@datadir@%$datadir%g
1011 s%@sysconfdir@%$sysconfdir%g
1012 s%@sharedstatedir@%$sharedstatedir%g
1013 s%@localstatedir@%$localstatedir%g
1014 s%@libdir@%$libdir%g
1015 s%@includedir@%$includedir%g
1016 s%@oldincludedir@%$oldincludedir%g
1017 s%@infodir@%$infodir%g
1018 s%@mandir@%$mandir%g
1019 s%@ITCL_VERSION@%$ITCL_VERSION%g
1020 s%@PACKAGE@%$PACKAGE%g
1021 s%@VERSION@%$VERSION%g
1022 s%@CYGPATH@%$CYGPATH%g
1023 s%@RELPATH@%$RELPATH%g
1024 s%@TCL_DBGX@%$TCL_DBGX%g
1025 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
1026 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
1027 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
1028 s%@TCL_LIBS@%$TCL_LIBS%g
1029 s%@TCL_DEFS@%$TCL_DEFS%g
1030 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
1031 s%@TCL_EXTRA_CFLAGS@%$TCL_EXTRA_CFLAGS%g
1032 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
1033 s%@TCL_STUB_LIB_FILE@%$TCL_STUB_LIB_FILE%g
1034 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
1035 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
1036 s%@TCL_STUB_LIB_SPEC@%$TCL_STUB_LIB_SPEC%g
1037 s%@TCL_BUILD_STUB_LIB_SPEC@%$TCL_BUILD_STUB_LIB_SPEC%g
1038 s%@TK_BIN_DIR@%$TK_BIN_DIR%g
1039 s%@TK_SRC_DIR@%$TK_SRC_DIR%g
1040 s%@TK_LIB_FILE@%$TK_LIB_FILE%g
1041 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
1042 s%@TCLSH_PROG@%$TCLSH_PROG%g
1043 s%@ITCL_LIB_DIR@%$ITCL_LIB_DIR%g
1044 s%@ITCL_SRC_DIR@%$ITCL_SRC_DIR%g
1045 s%@ITK_LIB_DIR@%$ITK_LIB_DIR%g
1046 s%@ITK_SRC_DIR@%$ITK_SRC_DIR%g
1047 s%@IWIDGETS_SRC_DIR@%$IWIDGETS_SRC_DIR%g
1052 cat >> $CONFIG_STATUS <<\EOF
1054 # Split the substitutions into bite-sized pieces for seds with
1055 # small command number limits, like on Digital OSF/1 and HP-UX.
1056 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1057 ac_file=1 # Number of current file.
1058 ac_beg=1 # First line for current file.
1059 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1062 while $ac_more_lines; do
1063 if test $ac_beg -gt 1; then
1064 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1066 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1068 if test ! -s conftest.s$ac_file; then
1070 rm -f conftest.s$ac_file
1072 if test -z "$ac_sed_cmds"; then
1073 ac_sed_cmds="sed -f conftest.s$ac_file"
1075 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1077 ac_file=`expr $ac_file + 1`
1079 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1082 if test -z "$ac_sed_cmds"; then
1087 cat >> $CONFIG_STATUS <<EOF
1089 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
1093 cat >> $CONFIG_STATUS <<\EOF
1094 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1097 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1098 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1099 *) ac_file_in="${ac_file}.in" ;;
1102 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1104 # Remove last slash and all that follows it. Not all systems have dirname.
1105 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1106 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1107 # The file is in a subdirectory.
1108 test ! -d "$ac_dir" && mkdir "$ac_dir"
1109 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1110 # A "../" for each directory in $ac_dir_suffix.
1111 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1113 ac_dir_suffix= ac_dots=
1116 case "$ac_given_srcdir" in
1118 if test -z "$ac_dots"; then top_srcdir=.
1119 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1120 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1122 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1123 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1127 echo creating "$ac_file"
1129 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1131 *Makefile*) ac_comsub="1i\\
1132 # $configure_input" ;;
1136 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1138 s%@configure_input@%$configure_input%g
1139 s%@srcdir@%$srcdir%g
1140 s%@top_srcdir@%$top_srcdir%g
1141 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1146 cat >> $CONFIG_STATUS <<EOF
1149 cat >> $CONFIG_STATUS <<\EOF
1153 chmod +x $CONFIG_STATUS
1154 rm -fr confdefs* $ac_clean_files
1155 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1