OSDN Git Service

2000-06-22 Mo DeJong <mdejong@redhat.com>
[pf3gnuchains/sourceware.git] / libgui / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-maintainer-mode enable make rules and dependencies not useful
16                           (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 \
19     --enable-install-libgui Install libgui.a and library header files"
20 ac_help="$ac_help
21   --enable-ide            Enable IDE support"
22 ac_help="$ac_help
23   --with-tclconfig           directory containing tcl configuration (tclConfig.sh)"
24 ac_help="$ac_help
25   --with-tkconfig           directory containing tk configuration (tkConfig.sh)"
26 ac_help="$ac_help
27   --with-tclinclude       directory where tcl headers are"
28 ac_help="$ac_help
29   --with-tkinclude       directory where tk headers are"
30 ac_help="$ac_help
31   --with-itclconfig           directory containing itcl configuration (itclConfig.sh)"
32
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
36 build=NONE
37 cache_file=./config.cache
38 exec_prefix=NONE
39 host=NONE
40 no_create=
41 nonopt=NONE
42 no_recursion=
43 prefix=NONE
44 program_prefix=NONE
45 program_suffix=NONE
46 program_transform_name=s,x,x,
47 silent=
48 site=
49 sitefile=
50 srcdir=
51 target=NONE
52 verbose=
53 x_includes=NONE
54 x_libraries=NONE
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
67
68 # Initialize some other variables.
69 subdirs=
70 MFLAGS= MAKEFLAGS=
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
73 ac_max_here_lines=12
74
75 ac_prev=
76 for ac_option
77 do
78
79   # If the previous option needs an argument, assign it.
80   if test -n "$ac_prev"; then
81     eval "$ac_prev=\$ac_option"
82     ac_prev=
83     continue
84   fi
85
86   case "$ac_option" in
87   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88   *) ac_optarg= ;;
89   esac
90
91   # Accept the important Cygnus configure options, so we can diagnose typos.
92
93   case "$ac_option" in
94
95   -bindir | --bindir | --bindi | --bind | --bin | --bi)
96     ac_prev=bindir ;;
97   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98     bindir="$ac_optarg" ;;
99
100   -build | --build | --buil | --bui | --bu)
101     ac_prev=build ;;
102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103     build="$ac_optarg" ;;
104
105   -cache-file | --cache-file | --cache-fil | --cache-fi \
106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107     ac_prev=cache_file ;;
108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110     cache_file="$ac_optarg" ;;
111
112   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113     ac_prev=datadir ;;
114   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115   | --da=*)
116     datadir="$ac_optarg" ;;
117
118   -disable-* | --disable-*)
119     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120     # Reject names that are not valid shell variable names.
121     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123     fi
124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125     eval "enable_${ac_feature}=no" ;;
126
127   -enable-* | --enable-*)
128     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129     # Reject names that are not valid shell variable names.
130     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132     fi
133     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134     case "$ac_option" in
135       *=*) ;;
136       *) ac_optarg=yes ;;
137     esac
138     eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142   | --exec | --exe | --ex)
143     ac_prev=exec_prefix ;;
144   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146   | --exec=* | --exe=* | --ex=*)
147     exec_prefix="$ac_optarg" ;;
148
149   -gas | --gas | --ga | --g)
150     # Obsolete; use --with-gas.
151     with_gas=yes ;;
152
153   -help | --help | --hel | --he)
154     # Omit some internal or obsolete options to make the list less imposing.
155     # This message is too long to be a string in the A/UX 3.1 sh.
156     cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160   --cache-file=FILE       cache test results in FILE
161   --help                  print this message
162   --no-create             do not create output files
163   --quiet, --silent       do not print \`checking...' messages
164   --site-file=FILE        use FILE as the site file
165   --version               print the version of autoconf that created configure
166 Directory and file names:
167   --prefix=PREFIX         install architecture-independent files in PREFIX
168                           [$ac_default_prefix]
169   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
170                           [same as prefix]
171   --bindir=DIR            user executables in DIR [EPREFIX/bin]
172   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
173   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
174   --datadir=DIR           read-only architecture-independent data in DIR
175                           [PREFIX/share]
176   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
177   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
178                           [PREFIX/com]
179   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
180   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
181   --includedir=DIR        C header files in DIR [PREFIX/include]
182   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
183   --infodir=DIR           info documentation in DIR [PREFIX/info]
184   --mandir=DIR            man documentation in DIR [PREFIX/man]
185   --srcdir=DIR            find the sources in DIR [configure dir or ..]
186   --program-prefix=PREFIX prepend PREFIX to installed program names
187   --program-suffix=SUFFIX append SUFFIX to installed program names
188   --program-transform-name=PROGRAM
189                           run sed PROGRAM on installed program names
190 EOF
191     cat << EOF
192 Host type:
193   --build=BUILD           configure for building on BUILD [BUILD=HOST]
194   --host=HOST             configure for HOST [guessed]
195   --target=TARGET         configure for TARGET [TARGET=HOST]
196 Features and packages:
197   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
198   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
199   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
200   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
201   --x-includes=DIR        X include files are in DIR
202   --x-libraries=DIR       X library files are in DIR
203 EOF
204     if test -n "$ac_help"; then
205       echo "--enable and --with options recognized:$ac_help"
206     fi
207     exit 0 ;;
208
209   -host | --host | --hos | --ho)
210     ac_prev=host ;;
211   -host=* | --host=* | --hos=* | --ho=*)
212     host="$ac_optarg" ;;
213
214   -includedir | --includedir | --includedi | --included | --include \
215   | --includ | --inclu | --incl | --inc)
216     ac_prev=includedir ;;
217   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218   | --includ=* | --inclu=* | --incl=* | --inc=*)
219     includedir="$ac_optarg" ;;
220
221   -infodir | --infodir | --infodi | --infod | --info | --inf)
222     ac_prev=infodir ;;
223   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224     infodir="$ac_optarg" ;;
225
226   -libdir | --libdir | --libdi | --libd)
227     ac_prev=libdir ;;
228   -libdir=* | --libdir=* | --libdi=* | --libd=*)
229     libdir="$ac_optarg" ;;
230
231   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232   | --libexe | --libex | --libe)
233     ac_prev=libexecdir ;;
234   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235   | --libexe=* | --libex=* | --libe=*)
236     libexecdir="$ac_optarg" ;;
237
238   -localstatedir | --localstatedir | --localstatedi | --localstated \
239   | --localstate | --localstat | --localsta | --localst \
240   | --locals | --local | --loca | --loc | --lo)
241     ac_prev=localstatedir ;;
242   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245     localstatedir="$ac_optarg" ;;
246
247   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248     ac_prev=mandir ;;
249   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250     mandir="$ac_optarg" ;;
251
252   -nfp | --nfp | --nf)
253     # Obsolete; use --without-fp.
254     with_fp=no ;;
255
256   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257   | --no-cr | --no-c)
258     no_create=yes ;;
259
260   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262     no_recursion=yes ;;
263
264   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266   | --oldin | --oldi | --old | --ol | --o)
267     ac_prev=oldincludedir ;;
268   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271     oldincludedir="$ac_optarg" ;;
272
273   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274     ac_prev=prefix ;;
275   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276     prefix="$ac_optarg" ;;
277
278   -program-prefix | --program-prefix | --program-prefi | --program-pref \
279   | --program-pre | --program-pr | --program-p)
280     ac_prev=program_prefix ;;
281   -program-prefix=* | --program-prefix=* | --program-prefi=* \
282   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283     program_prefix="$ac_optarg" ;;
284
285   -program-suffix | --program-suffix | --program-suffi | --program-suff \
286   | --program-suf | --program-su | --program-s)
287     ac_prev=program_suffix ;;
288   -program-suffix=* | --program-suffix=* | --program-suffi=* \
289   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290     program_suffix="$ac_optarg" ;;
291
292   -program-transform-name | --program-transform-name \
293   | --program-transform-nam | --program-transform-na \
294   | --program-transform-n | --program-transform- \
295   | --program-transform | --program-transfor \
296   | --program-transfo | --program-transf \
297   | --program-trans | --program-tran \
298   | --progr-tra | --program-tr | --program-t)
299     ac_prev=program_transform_name ;;
300   -program-transform-name=* | --program-transform-name=* \
301   | --program-transform-nam=* | --program-transform-na=* \
302   | --program-transform-n=* | --program-transform-=* \
303   | --program-transform=* | --program-transfor=* \
304   | --program-transfo=* | --program-transf=* \
305   | --program-trans=* | --program-tran=* \
306   | --progr-tra=* | --program-tr=* | --program-t=*)
307     program_transform_name="$ac_optarg" ;;
308
309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310   | -silent | --silent | --silen | --sile | --sil)
311     silent=yes ;;
312
313   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314     ac_prev=sbindir ;;
315   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316   | --sbi=* | --sb=*)
317     sbindir="$ac_optarg" ;;
318
319   -sharedstatedir | --sharedstatedir | --sharedstatedi \
320   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321   | --sharedst | --shareds | --shared | --share | --shar \
322   | --sha | --sh)
323     ac_prev=sharedstatedir ;;
324   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327   | --sha=* | --sh=*)
328     sharedstatedir="$ac_optarg" ;;
329
330   -site | --site | --sit)
331     ac_prev=site ;;
332   -site=* | --site=* | --sit=*)
333     site="$ac_optarg" ;;
334
335   -site-file | --site-file | --site-fil | --site-fi | --site-f)
336     ac_prev=sitefile ;;
337   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
338     sitefile="$ac_optarg" ;;
339
340   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341     ac_prev=srcdir ;;
342   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343     srcdir="$ac_optarg" ;;
344
345   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346   | --syscon | --sysco | --sysc | --sys | --sy)
347     ac_prev=sysconfdir ;;
348   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350     sysconfdir="$ac_optarg" ;;
351
352   -target | --target | --targe | --targ | --tar | --ta | --t)
353     ac_prev=target ;;
354   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355     target="$ac_optarg" ;;
356
357   -v | -verbose | --verbose | --verbos | --verbo | --verb)
358     verbose=yes ;;
359
360   -version | --version | --versio | --versi | --vers)
361     echo "configure generated by autoconf version 2.13"
362     exit 0 ;;
363
364   -with-* | --with-*)
365     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366     # Reject names that are not valid shell variable names.
367     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369     fi
370     ac_package=`echo $ac_package| sed 's/-/_/g'`
371     case "$ac_option" in
372       *=*) ;;
373       *) ac_optarg=yes ;;
374     esac
375     eval "with_${ac_package}='$ac_optarg'" ;;
376
377   -without-* | --without-*)
378     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379     # Reject names that are not valid shell variable names.
380     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382     fi
383     ac_package=`echo $ac_package| sed 's/-/_/g'`
384     eval "with_${ac_package}=no" ;;
385
386   --x)
387     # Obsolete; use --with-x.
388     with_x=yes ;;
389
390   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391   | --x-incl | --x-inc | --x-in | --x-i)
392     ac_prev=x_includes ;;
393   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395     x_includes="$ac_optarg" ;;
396
397   -x-libraries | --x-libraries | --x-librarie | --x-librari \
398   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399     ac_prev=x_libraries ;;
400   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402     x_libraries="$ac_optarg" ;;
403
404   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405     ;;
406
407   *)
408     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409       echo "configure: warning: $ac_option: invalid host type" 1>&2
410     fi
411     if test "x$nonopt" != xNONE; then
412       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413     fi
414     nonopt="$ac_option"
415     ;;
416
417   esac
418 done
419
420 if test -n "$ac_prev"; then
421   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 fi
423
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425
426 # File descriptor usage:
427 # 0 standard input
428 # 1 file creation
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
435   exec 6>/dev/null
436 else
437   exec 6>&1
438 fi
439 exec 5>./config.log
440
441 echo "\
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
444 " 1>&5
445
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
448 ac_configure_args=
449 for ac_arg
450 do
451   case "$ac_arg" in
452   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453   | --no-cr | --no-c) ;;
454   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459   esac
460 done
461
462 # NLS nuisances.
463 # Only set these to C if already set.  These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
471
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 echo > confdefs.h
476
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=src/subcommand.h
480
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483   ac_srcdir_defaulted=yes
484   # Try the directory containing this script, then its parent.
485   ac_prog=$0
486   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488   srcdir=$ac_confdir
489   if test ! -r $srcdir/$ac_unique_file; then
490     srcdir=..
491   fi
492 else
493   ac_srcdir_defaulted=no
494 fi
495 if test ! -r $srcdir/$ac_unique_file; then
496   if test "$ac_srcdir_defaulted" = yes; then
497     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498   else
499     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500   fi
501 fi
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$sitefile"; then
506   if test -z "$CONFIG_SITE"; then
507     if test "x$prefix" != xNONE; then
508       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509     else
510       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511     fi
512   fi
513 else
514   CONFIG_SITE="$sitefile"
515 fi
516 for ac_site_file in $CONFIG_SITE; do
517   if test -r "$ac_site_file"; then
518     echo "loading site script $ac_site_file"
519     . "$ac_site_file"
520   fi
521 done
522
523 if test -r "$cache_file"; then
524   echo "loading cache $cache_file"
525   . $cache_file
526 else
527   echo "creating cache $cache_file"
528   > $cache_file
529 fi
530
531 ac_ext=c
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
537
538 ac_exeext=
539 ac_objext=o
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543     ac_n= ac_c='
544 ' ac_t='        '
545   else
546     ac_n=-n ac_c= ac_t=
547   fi
548 else
549   ac_n= ac_c='\c' ac_t=
550 fi
551
552
553 ac_aux_dir=
554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
555   if test -f $ac_dir/install-sh; then
556     ac_aux_dir=$ac_dir
557     ac_install_sh="$ac_aux_dir/install-sh -c"
558     break
559   elif test -f $ac_dir/install.sh; then
560     ac_aux_dir=$ac_dir
561     ac_install_sh="$ac_aux_dir/install.sh -c"
562     break
563   fi
564 done
565 if test -z "$ac_aux_dir"; then
566   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 fi
568 ac_config_guess=$ac_aux_dir/config.guess
569 ac_config_sub=$ac_aux_dir/config.sub
570 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571
572 # Find a good install program.  We prefer a C program (faster),
573 # so one script is as good as another.  But avoid the broken or
574 # incompatible versions:
575 # SysV /etc/install, /usr/sbin/install
576 # SunOS /usr/etc/install
577 # IRIX /sbin/install
578 # AIX /bin/install
579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
582 # ./install, which can be erroneously created by make from ./install.sh.
583 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
584 echo "configure:585: checking for a BSD compatible install" >&5
585 if test -z "$INSTALL"; then
586 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
587   echo $ac_n "(cached) $ac_c" 1>&6
588 else
589     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
590   for ac_dir in $PATH; do
591     # Account for people who put trailing slashes in PATH elements.
592     case "$ac_dir/" in
593     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
594     *)
595       # OSF1 and SCO ODT 3.0 have their own names for install.
596       # Don't use installbsd from OSF since it installs stuff as root
597       # by default.
598       for ac_prog in ginstall scoinst install; do
599         if test -f $ac_dir/$ac_prog; then
600           if test $ac_prog = install &&
601             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
602             # AIX install.  It has an incompatible calling convention.
603             :
604           else
605             ac_cv_path_install="$ac_dir/$ac_prog -c"
606             break 2
607           fi
608         fi
609       done
610       ;;
611     esac
612   done
613   IFS="$ac_save_IFS"
614
615 fi
616   if test "${ac_cv_path_install+set}" = set; then
617     INSTALL="$ac_cv_path_install"
618   else
619     # As a last resort, use the slow shell script.  We don't cache a
620     # path for INSTALL within a source directory, because that will
621     # break other packages using the cache if that directory is
622     # removed, or if the path is relative.
623     INSTALL="$ac_install_sh"
624   fi
625 fi
626 echo "$ac_t""$INSTALL" 1>&6
627
628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
629 # It thinks the first close brace ends the variable substitution.
630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631
632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
633
634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
635
636 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
637 echo "configure:638: checking whether build environment is sane" >&5
638 # Just in case
639 sleep 1
640 echo timestamp > conftestfile
641 # Do `set' in a subshell so we don't clobber the current shell's
642 # arguments.  Must try -L first in case configure is actually a
643 # symlink; some systems play weird games with the mod time of symlinks
644 # (eg FreeBSD returns the mod time of the symlink's containing
645 # directory).
646 if (
647    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
648    if test "$*" = "X"; then
649       # -L didn't work.
650       set X `ls -t $srcdir/configure conftestfile`
651    fi
652    if test "$*" != "X $srcdir/configure conftestfile" \
653       && test "$*" != "X conftestfile $srcdir/configure"; then
654
655       # If neither matched, then we have a broken ls.  This can happen
656       # if, for instance, CONFIG_SHELL is bash and it inherits a
657       # broken ls alias from the environment.  This has actually
658       # happened.  Such a system could not be considered "sane".
659       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
660 alias in your environment" 1>&2; exit 1; }
661    fi
662
663    test "$2" = conftestfile
664    )
665 then
666    # Ok.
667    :
668 else
669    { echo "configure: error: newly created file is older than distributed files!
670 Check your system clock" 1>&2; exit 1; }
671 fi
672 rm -f conftest*
673 echo "$ac_t""yes" 1>&6
674 if test "$program_transform_name" = s,x,x,; then
675   program_transform_name=
676 else
677   # Double any \ or $.  echo might interpret backslashes.
678   cat <<\EOF_SED > conftestsed
679 s,\\,\\\\,g; s,\$,$$,g
680 EOF_SED
681   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
682   rm -f conftestsed
683 fi
684 test "$program_prefix" != NONE &&
685   program_transform_name="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE &&
688   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
689
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
692
693 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
694 echo "configure:695: checking whether ${MAKE-make} sets \${MAKE}" >&5
695 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
696 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
697   echo $ac_n "(cached) $ac_c" 1>&6
698 else
699   cat > conftestmake <<\EOF
700 all:
701         @echo 'ac_maketemp="${MAKE}"'
702 EOF
703 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
704 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
705 if test -n "$ac_maketemp"; then
706   eval ac_cv_prog_make_${ac_make}_set=yes
707 else
708   eval ac_cv_prog_make_${ac_make}_set=no
709 fi
710 rm -f conftestmake
711 fi
712 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
713   echo "$ac_t""yes" 1>&6
714   SET_MAKE=
715 else
716   echo "$ac_t""no" 1>&6
717   SET_MAKE="MAKE=${MAKE-make}"
718 fi
719
720
721 PACKAGE=libgui
722
723 VERSION=0.0
724
725 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
726   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
727 fi
728 cat >> confdefs.h <<EOF
729 #define PACKAGE "$PACKAGE"
730 EOF
731
732 cat >> confdefs.h <<EOF
733 #define VERSION "$VERSION"
734 EOF
735
736
737
738 missing_dir=`cd $ac_aux_dir && pwd`
739 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
740 echo "configure:741: checking for working aclocal" >&5
741 # Run test in a subshell; some versions of sh will print an error if
742 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf.  Sigh.
744 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
745    ACLOCAL=aclocal
746    echo "$ac_t""found" 1>&6
747 else
748    ACLOCAL="$missing_dir/missing aclocal"
749    echo "$ac_t""missing" 1>&6
750 fi
751
752 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
753 echo "configure:754: checking for working autoconf" >&5
754 # Run test in a subshell; some versions of sh will print an error if
755 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf.  Sigh.
757 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
758    AUTOCONF=autoconf
759    echo "$ac_t""found" 1>&6
760 else
761    AUTOCONF="$missing_dir/missing autoconf"
762    echo "$ac_t""missing" 1>&6
763 fi
764
765 echo $ac_n "checking for working automake""... $ac_c" 1>&6
766 echo "configure:767: checking for working automake" >&5
767 # Run test in a subshell; some versions of sh will print an error if
768 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf.  Sigh.
770 if (automake --version) < /dev/null > /dev/null 2>&1; then
771    AUTOMAKE=automake
772    echo "$ac_t""found" 1>&6
773 else
774    AUTOMAKE="$missing_dir/missing automake"
775    echo "$ac_t""missing" 1>&6
776 fi
777
778 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
779 echo "configure:780: checking for working autoheader" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf.  Sigh.
783 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
784    AUTOHEADER=autoheader
785    echo "$ac_t""found" 1>&6
786 else
787    AUTOHEADER="$missing_dir/missing autoheader"
788    echo "$ac_t""missing" 1>&6
789 fi
790
791 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
792 echo "configure:793: checking for working makeinfo" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf.  Sigh.
796 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
797    MAKEINFO=makeinfo
798    echo "$ac_t""found" 1>&6
799 else
800    MAKEINFO="$missing_dir/missing makeinfo"
801    echo "$ac_t""missing" 1>&6
802 fi
803
804
805
806
807
808 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
809 echo "configure:810: checking whether to enable maintainer-specific portions of Makefiles" >&5
810     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
811 if test "${enable_maintainer_mode+set}" = set; then
812   enableval="$enable_maintainer_mode"
813   USE_MAINTAINER_MODE=$enableval
814 else
815   USE_MAINTAINER_MODE=no
816 fi
817
818   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
819   
820
821 if test $USE_MAINTAINER_MODE = yes; then
822   MAINTAINER_MODE_TRUE=
823   MAINTAINER_MODE_FALSE='#'
824 else
825   MAINTAINER_MODE_TRUE='#'
826   MAINTAINER_MODE_FALSE=
827 fi
828   MAINT=$MAINTAINER_MODE_TRUE
829   
830
831 # Extract the first word of "gcc", so it can be a program name with args.
832 set dummy gcc; ac_word=$2
833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
834 echo "configure:835: checking for $ac_word" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
836   echo $ac_n "(cached) $ac_c" 1>&6
837 else
838   if test -n "$CC"; then
839   ac_cv_prog_CC="$CC" # Let the user override the test.
840 else
841   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
842   ac_dummy="$PATH"
843   for ac_dir in $ac_dummy; do
844     test -z "$ac_dir" && ac_dir=.
845     if test -f $ac_dir/$ac_word; then
846       ac_cv_prog_CC="gcc"
847       break
848     fi
849   done
850   IFS="$ac_save_ifs"
851 fi
852 fi
853 CC="$ac_cv_prog_CC"
854 if test -n "$CC"; then
855   echo "$ac_t""$CC" 1>&6
856 else
857   echo "$ac_t""no" 1>&6
858 fi
859
860 if test -z "$CC"; then
861   # Extract the first word of "cc", so it can be a program name with args.
862 set dummy cc; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866   echo $ac_n "(cached) $ac_c" 1>&6
867 else
868   if test -n "$CC"; then
869   ac_cv_prog_CC="$CC" # Let the user override the test.
870 else
871   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
872   ac_prog_rejected=no
873   ac_dummy="$PATH"
874   for ac_dir in $ac_dummy; do
875     test -z "$ac_dir" && ac_dir=.
876     if test -f $ac_dir/$ac_word; then
877       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
878         ac_prog_rejected=yes
879         continue
880       fi
881       ac_cv_prog_CC="cc"
882       break
883     fi
884   done
885   IFS="$ac_save_ifs"
886 if test $ac_prog_rejected = yes; then
887   # We found a bogon in the path, so make sure we never use it.
888   set dummy $ac_cv_prog_CC
889   shift
890   if test $# -gt 0; then
891     # We chose a different compiler from the bogus one.
892     # However, it has the same basename, so the bogon will be chosen
893     # first if we set CC to just the basename; use the full file name.
894     shift
895     set dummy "$ac_dir/$ac_word" "$@"
896     shift
897     ac_cv_prog_CC="$@"
898   fi
899 fi
900 fi
901 fi
902 CC="$ac_cv_prog_CC"
903 if test -n "$CC"; then
904   echo "$ac_t""$CC" 1>&6
905 else
906   echo "$ac_t""no" 1>&6
907 fi
908
909   if test -z "$CC"; then
910     case "`uname -s`" in
911     *win32* | *WIN32*)
912       # Extract the first word of "cl", so it can be a program name with args.
913 set dummy cl; ac_word=$2
914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
915 echo "configure:916: checking for $ac_word" >&5
916 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
917   echo $ac_n "(cached) $ac_c" 1>&6
918 else
919   if test -n "$CC"; then
920   ac_cv_prog_CC="$CC" # Let the user override the test.
921 else
922   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
923   ac_dummy="$PATH"
924   for ac_dir in $ac_dummy; do
925     test -z "$ac_dir" && ac_dir=.
926     if test -f $ac_dir/$ac_word; then
927       ac_cv_prog_CC="cl"
928       break
929     fi
930   done
931   IFS="$ac_save_ifs"
932 fi
933 fi
934 CC="$ac_cv_prog_CC"
935 if test -n "$CC"; then
936   echo "$ac_t""$CC" 1>&6
937 else
938   echo "$ac_t""no" 1>&6
939 fi
940  ;;
941     esac
942   fi
943   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
944 fi
945
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
948
949 ac_ext=c
950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954 cross_compiling=$ac_cv_prog_cc_cross
955
956 cat > conftest.$ac_ext << EOF
957
958 #line 959 "configure"
959 #include "confdefs.h"
960
961 main(){return(0);}
962 EOF
963 if { (eval echo configure:964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
964   ac_cv_prog_cc_works=yes
965   # If we can't run a trivial program, we are probably using a cross compiler.
966   if (./conftest; exit) 2>/dev/null; then
967     ac_cv_prog_cc_cross=no
968   else
969     ac_cv_prog_cc_cross=yes
970   fi
971 else
972   echo "configure: failed program was:" >&5
973   cat conftest.$ac_ext >&5
974   ac_cv_prog_cc_works=no
975 fi
976 rm -fr conftest*
977 ac_ext=c
978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
979 ac_cpp='$CPP $CPPFLAGS'
980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
982 cross_compiling=$ac_cv_prog_cc_cross
983
984 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
985 if test $ac_cv_prog_cc_works = no; then
986   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
987 fi
988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
989 echo "configure:990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
990 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
991 cross_compiling=$ac_cv_prog_cc_cross
992
993 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
994 echo "configure:995: checking whether we are using GNU C" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
996   echo $ac_n "(cached) $ac_c" 1>&6
997 else
998   cat > conftest.c <<EOF
999 #ifdef __GNUC__
1000   yes;
1001 #endif
1002 EOF
1003 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1004   ac_cv_prog_gcc=yes
1005 else
1006   ac_cv_prog_gcc=no
1007 fi
1008 fi
1009
1010 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1011
1012 if test $ac_cv_prog_gcc = yes; then
1013   GCC=yes
1014 else
1015   GCC=
1016 fi
1017
1018 ac_test_CFLAGS="${CFLAGS+set}"
1019 ac_save_CFLAGS="$CFLAGS"
1020 CFLAGS=
1021 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether ${CC-cc} accepts -g" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1024   echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026   echo 'void f(){}' > conftest.c
1027 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1028   ac_cv_prog_cc_g=yes
1029 else
1030   ac_cv_prog_cc_g=no
1031 fi
1032 rm -f conftest*
1033
1034 fi
1035
1036 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1037 if test "$ac_test_CFLAGS" = set; then
1038   CFLAGS="$ac_save_CFLAGS"
1039 elif test $ac_cv_prog_cc_g = yes; then
1040   if test "$GCC" = yes; then
1041     CFLAGS="-g -O2"
1042   else
1043     CFLAGS="-g"
1044   fi
1045 else
1046   if test "$GCC" = yes; then
1047     CFLAGS="-O2"
1048   else
1049     CFLAGS=
1050   fi
1051 fi
1052
1053 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1054 echo "configure:1055: checking for Cygwin environment" >&5
1055 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1056   echo $ac_n "(cached) $ac_c" 1>&6
1057 else
1058   cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1061
1062 int main() {
1063
1064 #ifndef __CYGWIN__
1065 #define __CYGWIN__ __CYGWIN32__
1066 #endif
1067 return __CYGWIN__;
1068 ; return 0; }
1069 EOF
1070 if { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1071   rm -rf conftest*
1072   ac_cv_cygwin=yes
1073 else
1074   echo "configure: failed program was:" >&5
1075   cat conftest.$ac_ext >&5
1076   rm -rf conftest*
1077   ac_cv_cygwin=no
1078 fi
1079 rm -f conftest*
1080 rm -f conftest*
1081 fi
1082
1083 echo "$ac_t""$ac_cv_cygwin" 1>&6
1084 CYGWIN=
1085 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1086 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1087 echo "configure:1088: checking for mingw32 environment" >&5
1088 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1089   echo $ac_n "(cached) $ac_c" 1>&6
1090 else
1091   cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1094
1095 int main() {
1096 return __MINGW32__;
1097 ; return 0; }
1098 EOF
1099 if { (eval echo configure:1100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1100   rm -rf conftest*
1101   ac_cv_mingw32=yes
1102 else
1103   echo "configure: failed program was:" >&5
1104   cat conftest.$ac_ext >&5
1105   rm -rf conftest*
1106   ac_cv_mingw32=no
1107 fi
1108 rm -f conftest*
1109 rm -f conftest*
1110 fi
1111
1112 echo "$ac_t""$ac_cv_mingw32" 1>&6
1113 MINGW32=
1114 test "$ac_cv_mingw32" = yes && MINGW32=yes
1115
1116
1117 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1118 echo "configure:1119: checking for executable suffix" >&5
1119 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1120   echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1123   ac_cv_exeext=.exe
1124 else
1125   rm -f conftest*
1126   echo 'int main () { return 0; }' > conftest.$ac_ext
1127   ac_cv_exeext=
1128   if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1129     for file in conftest.*; do
1130       case $file in
1131       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1132       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1133       esac
1134     done
1135   else
1136     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1137   fi
1138   rm -f conftest*
1139   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1140 fi
1141 fi
1142
1143 EXEEXT=""
1144 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1145 echo "$ac_t""${ac_cv_exeext}" 1>&6
1146 ac_exeext=$EXEEXT
1147
1148 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1149 echo "configure:1150: checking for object suffix" >&5
1150 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1151   echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153   rm -f conftest*
1154 echo 'int i = 1;' > conftest.$ac_ext
1155 if { (eval echo configure:1156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1156   for ac_file in conftest.*; do
1157     case $ac_file in
1158     *.c) ;;
1159     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1160     esac
1161   done
1162 else
1163   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1164 fi
1165 rm -f conftest*
1166 fi
1167
1168 echo "$ac_t""$ac_cv_objext" 1>&6
1169 OBJEXT=$ac_cv_objext
1170 ac_objext=$ac_cv_objext
1171
1172 # Check whether --enable-install-libgui or --disable-install-libgui was given.
1173 if test "${enable_install_libgui+set}" = set; then
1174   enableval="$enable_install_libgui"
1175   :
1176 fi
1177
1178
1179
1180 if test x$cross_compiling = xyes; then
1181   CROSS_COMPILING_TRUE=
1182   CROSS_COMPILING_FALSE='#'
1183 else
1184   CROSS_COMPILING_TRUE='#'
1185   CROSS_COMPILING_FALSE=
1186 fi
1187
1188
1189 if test x$enable_install_libgui = xyes; then
1190   INSTALL_LIBGUI_TRUE=
1191   INSTALL_LIBGUI_FALSE='#'
1192 else
1193   INSTALL_LIBGUI_TRUE='#'
1194   INSTALL_LIBGUI_FALSE=
1195 fi
1196 # Extract the first word of "ranlib", so it can be a program name with args.
1197 set dummy ranlib; ac_word=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 echo "configure:1200: checking for $ac_word" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1201   echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203   if test -n "$RANLIB"; then
1204   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1205 else
1206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1207   ac_dummy="$PATH"
1208   for ac_dir in $ac_dummy; do
1209     test -z "$ac_dir" && ac_dir=.
1210     if test -f $ac_dir/$ac_word; then
1211       ac_cv_prog_RANLIB="ranlib"
1212       break
1213     fi
1214   done
1215   IFS="$ac_save_ifs"
1216   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1217 fi
1218 fi
1219 RANLIB="$ac_cv_prog_RANLIB"
1220 if test -n "$RANLIB"; then
1221   echo "$ac_t""$RANLIB" 1>&6
1222 else
1223   echo "$ac_t""no" 1>&6
1224 fi
1225
1226
1227 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1228 echo "configure:1229: checking how to run the C preprocessor" >&5
1229 # On Suns, sometimes $CPP names a directory.
1230 if test -n "$CPP" && test -d "$CPP"; then
1231   CPP=
1232 fi
1233 if test -z "$CPP"; then
1234 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1235   echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237     # This must be in double quotes, not single quotes, because CPP may get
1238   # substituted into the Makefile and "${CC-cc}" will confuse make.
1239   CPP="${CC-cc} -E"
1240   # On the NeXT, cc -E runs the code through the compiler's parser,
1241   # not just through cpp.
1242   cat > conftest.$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1245 #include <assert.h>
1246 Syntax Error
1247 EOF
1248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249 { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1251 if test -z "$ac_err"; then
1252   :
1253 else
1254   echo "$ac_err" >&5
1255   echo "configure: failed program was:" >&5
1256   cat conftest.$ac_ext >&5
1257   rm -rf conftest*
1258   CPP="${CC-cc} -E -traditional-cpp"
1259   cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1262 #include <assert.h>
1263 Syntax Error
1264 EOF
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1269   :
1270 else
1271   echo "$ac_err" >&5
1272   echo "configure: failed program was:" >&5
1273   cat conftest.$ac_ext >&5
1274   rm -rf conftest*
1275   CPP="${CC-cc} -nologo -E"
1276   cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 #include <assert.h>
1280 Syntax Error
1281 EOF
1282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1283 { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1285 if test -z "$ac_err"; then
1286   :
1287 else
1288   echo "$ac_err" >&5
1289   echo "configure: failed program was:" >&5
1290   cat conftest.$ac_ext >&5
1291   rm -rf conftest*
1292   CPP=/lib/cpp
1293 fi
1294 rm -f conftest*
1295 fi
1296 rm -f conftest*
1297 fi
1298 rm -f conftest*
1299   ac_cv_prog_CPP="$CPP"
1300 fi
1301   CPP="$ac_cv_prog_CPP"
1302 else
1303   ac_cv_prog_CPP="$CPP"
1304 fi
1305 echo "$ac_t""$CPP" 1>&6
1306
1307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1308 # for constant arguments.  Useless!
1309 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1310 echo "configure:1311: checking for working alloca.h" >&5
1311 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1312   echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314   cat > conftest.$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1317 #include <alloca.h>
1318 int main() {
1319 char *p = alloca(2 * sizeof(int));
1320 ; return 0; }
1321 EOF
1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1323   rm -rf conftest*
1324   ac_cv_header_alloca_h=yes
1325 else
1326   echo "configure: failed program was:" >&5
1327   cat conftest.$ac_ext >&5
1328   rm -rf conftest*
1329   ac_cv_header_alloca_h=no
1330 fi
1331 rm -f conftest*
1332 fi
1333
1334 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1335 if test $ac_cv_header_alloca_h = yes; then
1336   cat >> confdefs.h <<\EOF
1337 #define HAVE_ALLOCA_H 1
1338 EOF
1339
1340 fi
1341
1342 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1343 echo "configure:1344: checking for alloca" >&5
1344 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1345   echo $ac_n "(cached) $ac_c" 1>&6
1346 else
1347   cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1350
1351 #ifdef __GNUC__
1352 # define alloca __builtin_alloca
1353 #else
1354 # ifdef _MSC_VER
1355 #  include <malloc.h>
1356 #  define alloca _alloca
1357 # else
1358 #  if HAVE_ALLOCA_H
1359 #   include <alloca.h>
1360 #  else
1361 #   ifdef _AIX
1362  #pragma alloca
1363 #   else
1364 #    ifndef alloca /* predefined by HP cc +Olibcalls */
1365 char *alloca ();
1366 #    endif
1367 #   endif
1368 #  endif
1369 # endif
1370 #endif
1371
1372 int main() {
1373 char *p = (char *) alloca(1);
1374 ; return 0; }
1375 EOF
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377   rm -rf conftest*
1378   ac_cv_func_alloca_works=yes
1379 else
1380   echo "configure: failed program was:" >&5
1381   cat conftest.$ac_ext >&5
1382   rm -rf conftest*
1383   ac_cv_func_alloca_works=no
1384 fi
1385 rm -f conftest*
1386 fi
1387
1388 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1389 if test $ac_cv_func_alloca_works = yes; then
1390   cat >> confdefs.h <<\EOF
1391 #define HAVE_ALLOCA 1
1392 EOF
1393
1394 fi
1395
1396 if test $ac_cv_func_alloca_works = no; then
1397   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1398   # that cause trouble.  Some versions do not even contain alloca or
1399   # contain a buggy version.  If you still want to use their alloca,
1400   # use ar to extract alloca.o from them instead of compiling alloca.c.
1401   ALLOCA=alloca.${ac_objext}
1402   cat >> confdefs.h <<\EOF
1403 #define C_ALLOCA 1
1404 EOF
1405
1406
1407 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1408 echo "configure:1409: checking whether alloca needs Cray hooks" >&5
1409 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1410   echo $ac_n "(cached) $ac_c" 1>&6
1411 else
1412   cat > conftest.$ac_ext <<EOF
1413 #line 1414 "configure"
1414 #include "confdefs.h"
1415 #if defined(CRAY) && ! defined(CRAY2)
1416 webecray
1417 #else
1418 wenotbecray
1419 #endif
1420
1421 EOF
1422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1423   egrep "webecray" >/dev/null 2>&1; then
1424   rm -rf conftest*
1425   ac_cv_os_cray=yes
1426 else
1427   rm -rf conftest*
1428   ac_cv_os_cray=no
1429 fi
1430 rm -f conftest*
1431
1432 fi
1433
1434 echo "$ac_t""$ac_cv_os_cray" 1>&6
1435 if test $ac_cv_os_cray = yes; then
1436 for ac_func in _getb67 GETB67 getb67; do
1437   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1438 echo "configure:1439: checking for $ac_func" >&5
1439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1440   echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442   cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1445 /* System header to define __stub macros and hopefully few prototypes,
1446     which can conflict with char $ac_func(); below.  */
1447 #include <assert.h>
1448 /* Override any gcc2 internal prototype to avoid an error.  */
1449 /* We use char because int might match the return type of a gcc2
1450     builtin and then its argument prototype would still apply.  */
1451 char $ac_func();
1452
1453 int main() {
1454
1455 /* The GNU C library defines this for functions which it implements
1456     to always fail with ENOSYS.  Some functions are actually named
1457     something starting with __ and the normal name is an alias.  */
1458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1459 choke me
1460 #else
1461 $ac_func();
1462 #endif
1463
1464 ; return 0; }
1465 EOF
1466 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1467   rm -rf conftest*
1468   eval "ac_cv_func_$ac_func=yes"
1469 else
1470   echo "configure: failed program was:" >&5
1471   cat conftest.$ac_ext >&5
1472   rm -rf conftest*
1473   eval "ac_cv_func_$ac_func=no"
1474 fi
1475 rm -f conftest*
1476 fi
1477
1478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1479   echo "$ac_t""yes" 1>&6
1480   cat >> confdefs.h <<EOF
1481 #define CRAY_STACKSEG_END $ac_func
1482 EOF
1483
1484   break
1485 else
1486   echo "$ac_t""no" 1>&6
1487 fi
1488
1489 done
1490 fi
1491
1492 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1493 echo "configure:1494: checking stack direction for C alloca" >&5
1494 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1495   echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497   if test "$cross_compiling" = yes; then
1498   ac_cv_c_stack_direction=0
1499 else
1500   cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 find_stack_direction ()
1504 {
1505   static char *addr = 0;
1506   auto char dummy;
1507   if (addr == 0)
1508     {
1509       addr = &dummy;
1510       return find_stack_direction ();
1511     }
1512   else
1513     return (&dummy > addr) ? 1 : -1;
1514 }
1515 main ()
1516 {
1517   exit (find_stack_direction() < 0);
1518 }
1519 EOF
1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1521 then
1522   ac_cv_c_stack_direction=1
1523 else
1524   echo "configure: failed program was:" >&5
1525   cat conftest.$ac_ext >&5
1526   rm -fr conftest*
1527   ac_cv_c_stack_direction=-1
1528 fi
1529 rm -fr conftest*
1530 fi
1531
1532 fi
1533
1534 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1535 cat >> confdefs.h <<EOF
1536 #define STACK_DIRECTION $ac_cv_c_stack_direction
1537 EOF
1538
1539 fi
1540
1541 for ac_hdr in stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h
1542 do
1543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1545 echo "configure:1546: checking for $ac_hdr" >&5
1546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1547   echo $ac_n "(cached) $ac_c" 1>&6
1548 else
1549   cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <$ac_hdr>
1553 EOF
1554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1555 { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1557 if test -z "$ac_err"; then
1558   rm -rf conftest*
1559   eval "ac_cv_header_$ac_safe=yes"
1560 else
1561   echo "$ac_err" >&5
1562   echo "configure: failed program was:" >&5
1563   cat conftest.$ac_ext >&5
1564   rm -rf conftest*
1565   eval "ac_cv_header_$ac_safe=no"
1566 fi
1567 rm -f conftest*
1568 fi
1569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1570   echo "$ac_t""yes" 1>&6
1571     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1572   cat >> confdefs.h <<EOF
1573 #define $ac_tr_hdr 1
1574 EOF
1575  
1576 else
1577   echo "$ac_t""no" 1>&6
1578 fi
1579 done
1580
1581 for ac_func in raise strdup
1582 do
1583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_func" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1586   echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588   cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592     which can conflict with char $ac_func(); below.  */
1593 #include <assert.h>
1594 /* Override any gcc2 internal prototype to avoid an error.  */
1595 /* We use char because int might match the return type of a gcc2
1596     builtin and then its argument prototype would still apply.  */
1597 char $ac_func();
1598
1599 int main() {
1600
1601 /* The GNU C library defines this for functions which it implements
1602     to always fail with ENOSYS.  Some functions are actually named
1603     something starting with __ and the normal name is an alias.  */
1604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1605 choke me
1606 #else
1607 $ac_func();
1608 #endif
1609
1610 ; return 0; }
1611 EOF
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1613   rm -rf conftest*
1614   eval "ac_cv_func_$ac_func=yes"
1615 else
1616   echo "configure: failed program was:" >&5
1617   cat conftest.$ac_ext >&5
1618   rm -rf conftest*
1619   eval "ac_cv_func_$ac_func=no"
1620 fi
1621 rm -f conftest*
1622 fi
1623
1624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1625   echo "$ac_t""yes" 1>&6
1626     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1627   cat >> confdefs.h <<EOF
1628 #define $ac_tr_func 1
1629 EOF
1630  
1631 else
1632   echo "$ac_t""no" 1>&6
1633 fi
1634 done
1635
1636
1637 # Check whether --enable-ide or --disable-ide was given.
1638 if test "${enable_ide+set}" = set; then
1639   enableval="$enable_ide"
1640   case "${enableval}" in
1641   yes) ide=yes ;;
1642   no)  ide=no ;;
1643   *)   { echo "configure: error: bad value ${enableval} for enable-ide option" 1>&2; exit 1; } ;;
1644 esac
1645 else
1646   ide=no
1647 fi
1648
1649
1650
1651 if test x$ide = xyes; then
1652   IDE_ENABLED_TRUE=
1653   IDE_ENABLED_FALSE='#'
1654 else
1655   IDE_ENABLED_TRUE='#'
1656   IDE_ENABLED_FALSE=
1657 fi
1658 if test x$ide = xyes; then
1659   cat >> confdefs.h <<\EOF
1660 #define IDE_ENABLED 1
1661 EOF
1662
1663 fi
1664
1665 # If we have random, assume we have srandom.  If we have drand48,
1666 # assume we have srand48.  If we have rand, assume we have srand.
1667 for ac_func in random drand48 rand
1668 do
1669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_func" >&5
1671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1672   echo $ac_n "(cached) $ac_c" 1>&6
1673 else
1674   cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 /* System header to define __stub macros and hopefully few prototypes,
1678     which can conflict with char $ac_func(); below.  */
1679 #include <assert.h>
1680 /* Override any gcc2 internal prototype to avoid an error.  */
1681 /* We use char because int might match the return type of a gcc2
1682     builtin and then its argument prototype would still apply.  */
1683 char $ac_func();
1684
1685 int main() {
1686
1687 /* The GNU C library defines this for functions which it implements
1688     to always fail with ENOSYS.  Some functions are actually named
1689     something starting with __ and the normal name is an alias.  */
1690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1691 choke me
1692 #else
1693 $ac_func();
1694 #endif
1695
1696 ; return 0; }
1697 EOF
1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1699   rm -rf conftest*
1700   eval "ac_cv_func_$ac_func=yes"
1701 else
1702   echo "configure: failed program was:" >&5
1703   cat conftest.$ac_ext >&5
1704   rm -rf conftest*
1705   eval "ac_cv_func_$ac_func=no"
1706 fi
1707 rm -f conftest*
1708 fi
1709
1710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1711   echo "$ac_t""yes" 1>&6
1712     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1713   cat >> confdefs.h <<EOF
1714 #define $ac_tr_func 1
1715 EOF
1716  break
1717 else
1718   echo "$ac_t""no" 1>&6
1719 fi
1720 done
1721
1722
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include <string.h>
1727 EOF
1728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1729   egrep "strncasecmp" >/dev/null 2>&1; then
1730   rm -rf conftest*
1731   cat >> confdefs.h <<\EOF
1732 #define HAVE_STRNCASECMP_DECL 1
1733 EOF
1734
1735 fi
1736 rm -f conftest*
1737
1738
1739 # Tcl8.1 requires writable strings for gcc
1740
1741 if test "$GCC" = "yes"; then
1742    LIBGUI_CFLAGS=-fwritable-strings
1743 else
1744    LIBGUI_CFLAGS=
1745 fi
1746  
1747
1748 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
1749 echo "configure:1750: checking for cygwin32" >&5
1750 if eval "test \"`echo '$''{'ide_cv_os_cygwin32'+set}'`\" = set"; then
1751   echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753   cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756
1757 #ifdef __CYGWIN32__
1758 lose
1759 #endif
1760 EOF
1761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1762   egrep "lose" >/dev/null 2>&1; then
1763   rm -rf conftest*
1764   ide_cv_os_cygwin32=yes
1765 else
1766   rm -rf conftest*
1767   ide_cv_os_cygwin32=no
1768 fi
1769 rm -f conftest*
1770
1771 fi
1772
1773 echo "$ac_t""$ide_cv_os_cygwin32" 1>&6
1774 ac_win_build="no"
1775 if test x$ide_cv_os_cygwin32 = xyes; then
1776   ac_win_build="yes"
1777 fi
1778
1779 tmp="`cd $srcdir/library; pwd`"
1780 if test x"$ac_cv_prog_CC" = xcl ; then
1781   tmp2="`cygpath --windows $tmp`"
1782   LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
1783 else
1784   LIBGUI_LIBRARY_DIR=$tmp
1785 fi
1786
1787
1788 # Find the init.tcl file.
1789
1790 echo $ac_n "checking for init.tcl""... $ac_c" 1>&6
1791 echo "configure:1792: checking for init.tcl" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_tcl_libdir'+set}'`\" = set"; then
1793   echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795   
1796 if test -f $srcdir/../tcl/library/init.tcl ; then
1797   ac_cv_c_tcl_libdir=`cd $srcdir/../tcl/library; pwd`
1798 elif test -f $srcdir/../tcl8.1/library/init.tcl; then
1799   ac_cv_c_tcl_libdir=`cd $srcdir/../tcl8.1/library; pwd`
1800 fi
1801
1802 fi
1803
1804 echo "$ac_t""${ac_cv_c_tcl_libdir}" 1>&6
1805
1806 if test x"$ac_cv_prog_CC" = xcl; then
1807   tmp2="`cygpath --windows $ac_cv_c_tcl_libdir`"
1808   TCL_LIBRARY="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
1809 else
1810   TCL_LIBRARY=$ac_cv_c_tcl_libdir
1811 fi
1812
1813
1814 # Check for Tcl and Tk.
1815
1816 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1817 if test x"${no_tcl}" = x ; then
1818       no_tcl=true
1819     # Check whether --with-tclconfig or --without-tclconfig was given.
1820 if test "${with_tclconfig+set}" = set; then
1821   withval="$with_tclconfig"
1822   with_tclconfig=${withval}
1823 fi
1824
1825     echo $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
1826 echo "configure:1827: checking for Tcl configuration script" >&5
1827     if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
1828   echo $ac_n "(cached) $ac_c" 1>&6
1829 else
1830   
1831
1832         if test x"${with_tclconfig}" != x ; then
1833         if test -f "${with_tclconfig}/tclConfig.sh" ; then
1834             ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
1835         else
1836             { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
1837         fi
1838     fi
1839
1840         if test x"${ac_cv_c_tclconfig}" = x ; then
1841         for i in $dirlist; do
1842             if test -f $srcdir/$i/unix/tclConfig.sh ; then
1843                 ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)`
1844                 break
1845             fi
1846         done
1847     fi
1848         if test x"${ac_cv_c_tclconfig}" = x ; then
1849                 for i in $dirlist; do
1850             if test -n "`ls -dr $i/tcl* 2>/dev/null`" ; then
1851                 tclconfpath=$i
1852                 break
1853             fi
1854         done
1855
1856                         for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do
1857             if test -f $i/unix/tclConfig.sh ; then
1858                 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
1859                 break
1860             fi
1861         done
1862     fi
1863
1864             if test x"${ac_cv_c_tclconfig}" = x ; then
1865                 ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
1866         if test -f $ccpath/tclConfig.sh; then
1867             ac_cv_c_tclconfig=$ccpath
1868         fi
1869     fi
1870     
1871 fi
1872         
1873     if test x"${ac_cv_c_tclconfig}" = x ; then
1874         TCLCONFIG=""
1875         echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
1876     else
1877         no_tcl=""
1878         TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
1879         echo "$ac_t""${TCLCONFIG}" 1>&6
1880      fi
1881 fi
1882
1883
1884
1885     . $TCLCONFIG
1886
1887     
1888
1889     
1890     
1891     
1892
1893     
1894
1895
1896     
1897     
1898     
1899     
1900     
1901     
1902     
1903     
1904
1905
1906
1907
1908 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1909 if test x"${no_tk}" = x ; then
1910       no_tk=true
1911     # Check whether --with-tkconfig or --without-tkconfig was given.
1912 if test "${with_tkconfig+set}" = set; then
1913   withval="$with_tkconfig"
1914   with_tkconfig=${withval}
1915 fi
1916
1917     echo $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
1918 echo "configure:1919: checking for Tk configuration script" >&5
1919     if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
1920   echo $ac_n "(cached) $ac_c" 1>&6
1921 else
1922   
1923
1924         if test x"${with_tkconfig}" != x ; then
1925         if test -f "${with_tkconfig}/tkConfig.sh" ; then
1926             ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
1927         else
1928             { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
1929         fi
1930     fi
1931
1932         if test x"${ac_cv_c_tkconfig}" = x ; then
1933         for i in $dirlist; do
1934             if test -f $srcdir/$i/unix/tkConfig.sh ; then
1935                 ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
1936                 break
1937             fi
1938         done
1939     fi
1940         if test x"${ac_cv_c_tkconfig}" = x ; then
1941                 for i in $dirlist; do
1942             if test -n "`ls -dr $i/tk* 2>/dev/null`" ; then
1943                 tkconfpath=$i
1944                 break
1945             fi
1946         done
1947
1948                         for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do
1949             if test -f $i/unix/tkConfig.sh ; then
1950                 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
1951                 break
1952             fi
1953         done
1954     fi
1955
1956             if test x"${ac_cv_c_tkconfig}" = x ; then
1957                 ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/lib
1958         if test -f $ccpath/tkConfig.sh; then
1959             ac_cv_c_tkconfig=$ccpath
1960         fi
1961     fi
1962     
1963 fi
1964         
1965     if test x"${ac_cv_c_tkconfig}" = x ; then
1966         TKCONFIG=""
1967         echo "configure: warning: Can't find Tk configuration definitions" 1>&2
1968     else
1969         no_tk=""
1970         TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
1971         echo "$ac_t""${TKCONFIG}" 1>&6
1972      fi
1973 fi
1974
1975
1976
1977     if test -f "$TKCONFIG" ; then
1978       . $TKCONFIG
1979     fi
1980
1981     
1982     
1983
1984     
1985     
1986     
1987
1988     
1989     
1990     
1991     
1992     
1993
1994
1995 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
1996 no_tcl=true
1997 echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
1998 echo "configure:1999: checking for Tcl headers in the source tree" >&5
1999 # Check whether --with-tclinclude or --without-tclinclude was given.
2000 if test "${with_tclinclude+set}" = set; then
2001   withval="$with_tclinclude"
2002   with_tclinclude=${withval}
2003 fi
2004
2005 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2006   echo $ac_n "(cached) $ac_c" 1>&6
2007 else
2008   
2009 if test x"${with_tclinclude}" != x ; then
2010   if test -f ${with_tclinclude}/tcl.h ; then
2011     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
2012   elif test -f ${with_tclinclude}/generic/tcl.h ; then
2013     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
2014   else
2015     { echo "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; exit 1; }
2016   fi
2017 fi
2018
2019 if test x"${ac_cv_c_tclconfig}" != x ; then
2020   for i in $dirlist; do
2021     if test -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then
2022       ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwd)`
2023       break
2024     fi
2025   done
2026 fi
2027
2028 if test x"${ac_cv_c_tclh}" = x ; then
2029         for i in $dirlist; do
2030         if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
2031             tclpath=$srcdir/$i
2032             break
2033         fi
2034     done
2035
2036             for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
2037         if test -f $i/generic/tcl.h ; then
2038           ac_cv_c_tclh=`(cd $i/generic; pwd)`
2039           break
2040         fi
2041     done
2042 fi
2043
2044 if test x"${ac_cv_c_tclh}" = x ; then
2045         ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
2046     if test -f $ccpath/tcl.h; then
2047         ac_cv_c_tclh=$ccpath
2048     fi
2049 fi
2050
2051 if test x"${ac_cv_c_tclh}" = x ; then
2052    echo "$ac_t""none" 1>&6
2053    ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
2054 echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
2055 echo "configure:2056: checking for tcl.h" >&5
2056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2057   echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059   cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2062 #include <tcl.h>
2063 EOF
2064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2065 { (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2067 if test -z "$ac_err"; then
2068   rm -rf conftest*
2069   eval "ac_cv_header_$ac_safe=yes"
2070 else
2071   echo "$ac_err" >&5
2072   echo "configure: failed program was:" >&5
2073   cat conftest.$ac_ext >&5
2074   rm -rf conftest*
2075   eval "ac_cv_header_$ac_safe=no"
2076 fi
2077 rm -f conftest*
2078 fi
2079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2080   echo "$ac_t""yes" 1>&6
2081   ac_cv_c_tclh=installed
2082 else
2083   echo "$ac_t""no" 1>&6
2084 ac_cv_c_tclh=""
2085 fi
2086
2087 else
2088    echo "$ac_t""${ac_cv_c_tclh}" 1>&6
2089 fi
2090
2091 fi
2092
2093   TCLHDIR=""
2094 if test x"${ac_cv_c_tclh}" = x ; then
2095     { echo "configure: error: Can't find any Tcl headers" 1>&2; exit 1; }
2096 fi
2097 if test x"${ac_cv_c_tclh}" != x ; then
2098     no_tcl=""
2099     if test x"${ac_cv_c_tclh}" != x"installed" ; then
2100         if test x"${CC}" = xcl ; then
2101             tmp="`cygpath --windows ${ac_cv_c_tclh}`"
2102             ac_cv_c_tclh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
2103         fi
2104         echo "$ac_t""${ac_cv_c_tclh}" 1>&6
2105         TCLHDIR="-I${ac_cv_c_tclh}"
2106     fi
2107 fi
2108
2109
2110
2111 # FIXME: consider only doing this if --with-x given.
2112
2113 #
2114 # Ok, lets find the tk source trees so we can use the headers
2115 # If the directory (presumably symlink) named "tk" exists, use that one
2116 # in preference to any others.  Same logic is used when choosing library
2117 # and again with Tcl. The search order is the best place to look first, then in
2118 # decreasing significance. The loop breaks if the trigger file is found.
2119 # Note the gross little conversion here of srcdir by cd'ing to the found
2120 # directory. This converts the path from a relative to an absolute, so
2121 # recursive cache variables for the path will work right. We check all
2122 # the possible paths in one loop rather than many seperate loops to speed
2123 # things up.
2124 # the alternative search directory is involked by --with-tkinclude
2125 #
2126 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
2127 no_tk=true
2128 echo $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
2129 echo "configure:2130: checking for Tk headers in the source tree" >&5
2130 # Check whether --with-tkinclude or --without-tkinclude was given.
2131 if test "${with_tkinclude+set}" = set; then
2132   withval="$with_tkinclude"
2133   with_tkinclude=${withval}
2134 fi
2135
2136 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2137   echo $ac_n "(cached) $ac_c" 1>&6
2138 else
2139   
2140 if test x"${with_tkinclude}" != x ; then
2141   if test -f ${with_tkinclude}/tk.h ; then
2142     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
2143   elif test -f ${with_tkinclude}/generic/tk.h ; then
2144     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
2145   else
2146     { echo "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; exit 1; }
2147   fi
2148 fi
2149
2150 if test x"${ac_cv_c_tkconfig}" != x ; then
2151   for i in $dirlist; do
2152     if test -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then
2153       ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwd)`
2154       break
2155     fi
2156   done
2157 fi
2158
2159 if test x"${ac_cv_c_tkh}" = x ; then
2160         for i in $dirlist; do
2161         if test -n "`ls -dr $srcdir/$i/tk* 2>/dev/null`" ; then
2162             tkpath=$srcdir/$i
2163             break
2164         fi
2165     done
2166
2167             for i in `ls -dr $tkpath/tk* 2>/dev/null ` ; do
2168         if test -f $i/generic/tk.h ; then
2169           ac_cv_c_tkh=`(cd $i/generic; pwd)`
2170           break
2171         fi
2172     done
2173 fi
2174
2175 if test x"${ac_cv_c_tkh}" = x ; then
2176     echo "$ac_t""none" 1>&6
2177             ccpath=`which ${CC}  | sed -e 's:/bin/.*::'`/include
2178     if test -f $ccpath/tk.h; then
2179         ac_cv_c_tkh=$ccpath
2180     fi
2181 else
2182    echo "$ac_t""${ac_cv_c_tkh}" 1>&6
2183 fi
2184
2185 fi
2186
2187   TKHDIR=""
2188 if test x"${ac_cv_c_tkh}" = x ; then
2189     { echo "configure: error: Can't find any Tk headers" 1>&2; exit 1; }
2190 fi
2191 if test x"${ac_cv_c_tkh}" != x ; then
2192     no_tk=""
2193     if test x"${ac_cv_c_tkh}" != x"installed" ; then
2194         if test x"${CC}" = xcl ; then
2195             tmp="`cygpath --windows ${ac_cv_c_tkh}`"
2196             ac_cv_c_tkh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
2197         fi
2198         echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
2199         TKHDIR="-I${ac_cv_c_tkh}"
2200     fi
2201 fi
2202
2203
2204
2205
2206 #
2207 # Ok, lets find the itcl configuration
2208 # First, look for one uninstalled.  
2209 # the alternative search directory is invoked by --with-itclconfig
2210 #
2211
2212 if test x"${no_itcl}" = x ; then
2213   # we reset no_itcl in case something fails here
2214   no_itcl=true
2215   # Check whether --with-itclconfig or --without-itclconfig was given.
2216 if test "${with_itclconfig+set}" = set; then
2217   withval="$with_itclconfig"
2218   with_itclconfig=${withval}
2219 fi
2220
2221   echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
2222 echo "configure:2223: checking for Itcl configuration" >&5
2223   if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
2224   echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226   
2227
2228   # First check to see if --with-itclconfig was specified.
2229   if test x"${with_itclconfig}" != x ; then
2230     if test -f "${with_itclconfig}/itclConfig.sh" ; then
2231       ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
2232     else
2233       { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
2234     fi
2235   fi
2236
2237   # then check for a private itcl library
2238   if test x"${ac_cv_c_itclconfig}" = x ; then
2239     for i in \
2240                 ../itcl/itcl \
2241                 `ls -dr ../itcl/itcl[3]* 2>/dev/null` \
2242                 ../../itcl/itcl \
2243                 `ls -dr ../../itcl/itcl[3]* 2>/dev/null` \
2244                 ../../../itcl/itcl \
2245                 `ls -dr ../../../itcl/itcl[3]* 2>/dev/null` ; do
2246       if test -f "$i/itclConfig.sh" ; then
2247         ac_cv_c_itclconfig=`(cd $i; pwd)`
2248         break
2249       fi
2250     done
2251   fi
2252   # check in a few common install locations
2253   if test x"${ac_cv_c_itclconfig}" = x ; then
2254     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2255       if test -f "$i/itclConfig.sh" ; then
2256         ac_cv_c_itclconfig=`(cd $i; pwd)`
2257         break
2258       fi
2259     done
2260   fi
2261   # check in a few other private locations
2262   if test x"${ac_cv_c_itclconfig}" = x ; then
2263     for i in \
2264                 ${srcdir}/../itcl/itcl \
2265                 `ls -dr ${srcdir}/../itcl/itcl[3]* 2>/dev/null` ; do
2266       if test -f "$i/itcl/itclConfig.sh" ; then
2267         ac_cv_c_itclconfig=`(cd $i; pwd)`
2268         break
2269       fi
2270     done
2271   fi
2272   
2273 fi
2274
2275   if test x"${ac_cv_c_itclconfig}" = x ; then
2276     ITCLCONFIG="# no itcl configs found"
2277     echo "configure: warning: Can't find itcl configuration definitions" 1>&2
2278   else
2279     no_itcl=
2280     ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
2281     echo "$ac_t""found $ITCLCONFIG" 1>&6
2282   fi
2283 fi
2284
2285
2286
2287     if test -f "$ITCLCONFIG" ; then
2288       . $ITCLCONFIG
2289     fi
2290
2291     
2292     
2293     
2294     
2295
2296
2297
2298
2299 # Make sure we can run config.sub.
2300 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2301 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2302 fi
2303
2304 echo $ac_n "checking host system type""... $ac_c" 1>&6
2305 echo "configure:2306: checking host system type" >&5
2306
2307 host_alias=$host
2308 case "$host_alias" in
2309 NONE)
2310   case $nonopt in
2311   NONE)
2312     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2313     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2314     fi ;;
2315   *) host_alias=$nonopt ;;
2316   esac ;;
2317 esac
2318
2319 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2320 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2321 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2322 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2323 echo "$ac_t""$host" 1>&6
2324
2325 case ${host} in
2326 *cygwin*)       ITCL_DIR=itcl/itcl/win  ;;
2327 *)              ITCL_DIR=itcl/itcl/unix ;;
2328 esac
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343 if test x$TCL_SHARED_BUILD = x1; then
2344   TCL_SHARED_TRUE=
2345   TCL_SHARED_FALSE='#'
2346 else
2347   TCL_SHARED_TRUE='#'
2348   TCL_SHARED_FALSE=
2349 fi
2350
2351
2352
2353 trap '' 1 2 15
2354 cat > confcache <<\EOF
2355 # This file is a shell script that caches the results of configure
2356 # tests run on this system so they can be shared between configure
2357 # scripts and configure runs.  It is not useful on other systems.
2358 # If it contains results you don't want to keep, you may remove or edit it.
2359 #
2360 # By default, configure uses ./config.cache as the cache file,
2361 # creating it if it does not exist already.  You can give configure
2362 # the --cache-file=FILE option to use a different cache file; that is
2363 # what configure does when it calls configure scripts in
2364 # subdirectories, so they share the cache.
2365 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2366 # config.status only pays attention to the cache file if you give it the
2367 # --recheck option to rerun configure.
2368 #
2369 EOF
2370 # The following way of writing the cache mishandles newlines in values,
2371 # but we know of no workaround that is simple, portable, and efficient.
2372 # So, don't put newlines in cache variables' values.
2373 # Ultrix sh set writes to stderr and can't be redirected directly,
2374 # and sets the high bit in the cache file unless we assign to the vars.
2375 (set) 2>&1 |
2376   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2377   *ac_space=\ *)
2378     # `set' does not quote correctly, so add quotes (double-quote substitution
2379     # turns \\\\ into \\, and sed turns \\ into \).
2380     sed -n \
2381       -e "s/'/'\\\\''/g" \
2382       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2383     ;;
2384   *)
2385     # `set' quotes correctly as required by POSIX, so do not add quotes.
2386     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2387     ;;
2388   esac >> confcache
2389 if cmp -s $cache_file confcache; then
2390   :
2391 else
2392   if test -w $cache_file; then
2393     echo "updating cache $cache_file"
2394     cat confcache > $cache_file
2395   else
2396     echo "not updating unwritable cache $cache_file"
2397   fi
2398 fi
2399 rm -f confcache
2400
2401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2402
2403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2404 # Let make expand exec_prefix.
2405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2406
2407 # Any assignment to VPATH causes Sun make to only execute
2408 # the first set of double-colon rules, so remove it if not needed.
2409 # If there is a colon in the path, we need to keep it.
2410 if test "x$srcdir" = x.; then
2411   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2412 fi
2413
2414 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2415
2416 DEFS=-DHAVE_CONFIG_H
2417
2418 # Without the "./", some shells look in PATH for config.status.
2419 : ${CONFIG_STATUS=./config.status}
2420
2421 echo creating $CONFIG_STATUS
2422 rm -f $CONFIG_STATUS
2423 cat > $CONFIG_STATUS <<EOF
2424 #! /bin/sh
2425 # Generated automatically by configure.
2426 # Run this file to recreate the current configuration.
2427 # This directory was configured as follows,
2428 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2429 #
2430 # $0 $ac_configure_args
2431 #
2432 # Compiler output produced by configure, useful for debugging
2433 # configure, is in ./config.log if it exists.
2434
2435 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2436 for ac_option
2437 do
2438   case "\$ac_option" in
2439   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2440     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2441     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2442   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2443     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2444     exit 0 ;;
2445   -help | --help | --hel | --he | --h)
2446     echo "\$ac_cs_usage"; exit 0 ;;
2447   *) echo "\$ac_cs_usage"; exit 1 ;;
2448   esac
2449 done
2450
2451 ac_given_srcdir=$srcdir
2452 ac_given_INSTALL="$INSTALL"
2453
2454 trap 'rm -fr `echo "Makefile library/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2455 EOF
2456 cat >> $CONFIG_STATUS <<EOF
2457
2458 # Protect against being on the right side of a sed subst in config.status.
2459 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2460  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2461 $ac_vpsub
2462 $extrasub
2463 s%@SHELL@%$SHELL%g
2464 s%@CFLAGS@%$CFLAGS%g
2465 s%@CPPFLAGS@%$CPPFLAGS%g
2466 s%@CXXFLAGS@%$CXXFLAGS%g
2467 s%@FFLAGS@%$FFLAGS%g
2468 s%@DEFS@%$DEFS%g
2469 s%@LDFLAGS@%$LDFLAGS%g
2470 s%@LIBS@%$LIBS%g
2471 s%@exec_prefix@%$exec_prefix%g
2472 s%@prefix@%$prefix%g
2473 s%@program_transform_name@%$program_transform_name%g
2474 s%@bindir@%$bindir%g
2475 s%@sbindir@%$sbindir%g
2476 s%@libexecdir@%$libexecdir%g
2477 s%@datadir@%$datadir%g
2478 s%@sysconfdir@%$sysconfdir%g
2479 s%@sharedstatedir@%$sharedstatedir%g
2480 s%@localstatedir@%$localstatedir%g
2481 s%@libdir@%$libdir%g
2482 s%@includedir@%$includedir%g
2483 s%@oldincludedir@%$oldincludedir%g
2484 s%@infodir@%$infodir%g
2485 s%@mandir@%$mandir%g
2486 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2487 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2488 s%@INSTALL_DATA@%$INSTALL_DATA%g
2489 s%@PACKAGE@%$PACKAGE%g
2490 s%@VERSION@%$VERSION%g
2491 s%@ACLOCAL@%$ACLOCAL%g
2492 s%@AUTOCONF@%$AUTOCONF%g
2493 s%@AUTOMAKE@%$AUTOMAKE%g
2494 s%@AUTOHEADER@%$AUTOHEADER%g
2495 s%@MAKEINFO@%$MAKEINFO%g
2496 s%@SET_MAKE@%$SET_MAKE%g
2497 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2498 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2499 s%@MAINT@%$MAINT%g
2500 s%@CC@%$CC%g
2501 s%@EXEEXT@%$EXEEXT%g
2502 s%@OBJEXT@%$OBJEXT%g
2503 s%@CROSS_COMPILING_TRUE@%$CROSS_COMPILING_TRUE%g
2504 s%@CROSS_COMPILING_FALSE@%$CROSS_COMPILING_FALSE%g
2505 s%@INSTALL_LIBGUI_TRUE@%$INSTALL_LIBGUI_TRUE%g
2506 s%@INSTALL_LIBGUI_FALSE@%$INSTALL_LIBGUI_FALSE%g
2507 s%@RANLIB@%$RANLIB%g
2508 s%@CPP@%$CPP%g
2509 s%@ALLOCA@%$ALLOCA%g
2510 s%@IDE_ENABLED_TRUE@%$IDE_ENABLED_TRUE%g
2511 s%@IDE_ENABLED_FALSE@%$IDE_ENABLED_FALSE%g
2512 s%@LIBGUI_CFLAGS@%$LIBGUI_CFLAGS%g
2513 s%@LIBGUI_LIBRARY_DIR@%$LIBGUI_LIBRARY_DIR%g
2514 s%@TCL_LIBRARY@%$TCL_LIBRARY%g
2515 s%@TCLCONFIG@%$TCLCONFIG%g
2516 s%@TCL_DEFS@%$TCL_DEFS%g
2517 s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g
2518 s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g
2519 s%@TCL_LIBS@%$TCL_LIBS%g
2520 s%@TCL_CFLAGS@%$TCL_CFLAGS%g
2521 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
2522 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
2523 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
2524 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
2525 s%@TCL_RANLIB@%$TCL_RANLIB%g
2526 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2527 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
2528 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2529 s%@TKCONFIG@%$TKCONFIG%g
2530 s%@TK_VERSION@%$TK_VERSION%g
2531 s%@TK_DEFS@%$TK_DEFS%g
2532 s%@TK_LIB_FILE@%$TK_LIB_FILE%g
2533 s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g
2534 s%@TK_LIBS@%$TK_LIBS%g
2535 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
2536 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
2537 s%@TK_XLIBSW@%$TK_XLIBSW%g
2538 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
2539 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
2540 s%@TCLHDIR@%$TCLHDIR%g
2541 s%@TKHDIR@%$TKHDIR%g
2542 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
2543 s%@ITCL_SH@%$ITCL_SH%g
2544 s%@ITCL_LIB_FILE@%$ITCL_LIB_FILE%g
2545 s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g
2546 s%@host@%$host%g
2547 s%@host_alias@%$host_alias%g
2548 s%@host_cpu@%$host_cpu%g
2549 s%@host_vendor@%$host_vendor%g
2550 s%@host_os@%$host_os%g
2551 s%@ITCL_DIR@%$ITCL_DIR%g
2552 s%@TCL_SHARED_TRUE@%$TCL_SHARED_TRUE%g
2553 s%@TCL_SHARED_FALSE@%$TCL_SHARED_FALSE%g
2554 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
2555
2556 CEOF
2557 EOF
2558
2559 cat >> $CONFIG_STATUS <<\EOF
2560
2561 # Split the substitutions into bite-sized pieces for seds with
2562 # small command number limits, like on Digital OSF/1 and HP-UX.
2563 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2564 ac_file=1 # Number of current file.
2565 ac_beg=1 # First line for current file.
2566 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2567 ac_more_lines=:
2568 ac_sed_cmds=""
2569 while $ac_more_lines; do
2570   if test $ac_beg -gt 1; then
2571     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2572   else
2573     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2574   fi
2575   if test ! -s conftest.s$ac_file; then
2576     ac_more_lines=false
2577     rm -f conftest.s$ac_file
2578   else
2579     if test -z "$ac_sed_cmds"; then
2580       ac_sed_cmds="sed -f conftest.s$ac_file"
2581     else
2582       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2583     fi
2584     ac_file=`expr $ac_file + 1`
2585     ac_beg=$ac_end
2586     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2587   fi
2588 done
2589 if test -z "$ac_sed_cmds"; then
2590   ac_sed_cmds=cat
2591 fi
2592 EOF
2593
2594 cat >> $CONFIG_STATUS <<EOF
2595
2596 CONFIG_FILES=\${CONFIG_FILES-"Makefile library/Makefile src/Makefile"}
2597 EOF
2598 cat >> $CONFIG_STATUS <<\EOF
2599 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2600   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2601   case "$ac_file" in
2602   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2603        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2604   *) ac_file_in="${ac_file}.in" ;;
2605   esac
2606
2607   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2608
2609   # Remove last slash and all that follows it.  Not all systems have dirname.
2610   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2611   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2612     # The file is in a subdirectory.
2613     test ! -d "$ac_dir" && mkdir "$ac_dir"
2614     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2615     # A "../" for each directory in $ac_dir_suffix.
2616     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2617   else
2618     ac_dir_suffix= ac_dots=
2619   fi
2620
2621   case "$ac_given_srcdir" in
2622   .)  srcdir=.
2623       if test -z "$ac_dots"; then top_srcdir=.
2624       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2625   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2626   *) # Relative path.
2627     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2628     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2629   esac
2630
2631   case "$ac_given_INSTALL" in
2632   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2633   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2634   esac
2635
2636   echo creating "$ac_file"
2637   rm -f "$ac_file"
2638   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2639   case "$ac_file" in
2640   *Makefile*) ac_comsub="1i\\
2641 # $configure_input" ;;
2642   *) ac_comsub= ;;
2643   esac
2644
2645   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2646   sed -e "$ac_comsub
2647 s%@configure_input@%$configure_input%g
2648 s%@srcdir@%$srcdir%g
2649 s%@top_srcdir@%$top_srcdir%g
2650 s%@INSTALL@%$INSTALL%g
2651 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2652 fi; done
2653 rm -f conftest.s*
2654
2655 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2656 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2657 #
2658 # ac_d sets the value in "#define NAME VALUE" lines.
2659 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2660 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2661 ac_dC='\3'
2662 ac_dD='%g'
2663 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2664 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2665 ac_uB='\([      ]\)%\1#\2define\3'
2666 ac_uC=' '
2667 ac_uD='\4%g'
2668 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2669 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2670 ac_eB='$%\1#\2define\3'
2671 ac_eC=' '
2672 ac_eD='%g'
2673
2674 if test "${CONFIG_HEADERS+set}" != set; then
2675 EOF
2676 cat >> $CONFIG_STATUS <<EOF
2677   CONFIG_HEADERS="config.h"
2678 EOF
2679 cat >> $CONFIG_STATUS <<\EOF
2680 fi
2681 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2682   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2683   case "$ac_file" in
2684   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2685        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2686   *) ac_file_in="${ac_file}.in" ;;
2687   esac
2688
2689   echo creating $ac_file
2690
2691   rm -f conftest.frag conftest.in conftest.out
2692   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2693   cat $ac_file_inputs > conftest.in
2694
2695 EOF
2696
2697 # Transform confdefs.h into a sed script conftest.vals that substitutes
2698 # the proper values into config.h.in to produce config.h.  And first:
2699 # Protect against being on the right side of a sed subst in config.status.
2700 # Protect against being in an unquoted here document in config.status.
2701 rm -f conftest.vals
2702 cat > conftest.hdr <<\EOF
2703 s/[\\&%]/\\&/g
2704 s%[\\$`]%\\&%g
2705 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2706 s%ac_d%ac_u%gp
2707 s%ac_u%ac_e%gp
2708 EOF
2709 sed -n -f conftest.hdr confdefs.h > conftest.vals
2710 rm -f conftest.hdr
2711
2712 # This sed command replaces #undef with comments.  This is necessary, for
2713 # example, in the case of _POSIX_SOURCE, which is predefined and required
2714 # on some systems where configure will not decide to define it.
2715 cat >> conftest.vals <<\EOF
2716 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2717 EOF
2718
2719 # Break up conftest.vals because some shells have a limit on
2720 # the size of here documents, and old seds have small limits too.
2721
2722 rm -f conftest.tail
2723 while :
2724 do
2725   ac_lines=`grep -c . conftest.vals`
2726   # grep -c gives empty output for an empty file on some AIX systems.
2727   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2728   # Write a limited-size here document to conftest.frag.
2729   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2730   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2731   echo 'CEOF
2732   sed -f conftest.frag conftest.in > conftest.out
2733   rm -f conftest.in
2734   mv conftest.out conftest.in
2735 ' >> $CONFIG_STATUS
2736   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2737   rm -f conftest.vals
2738   mv conftest.tail conftest.vals
2739 done
2740 rm -f conftest.vals
2741
2742 cat >> $CONFIG_STATUS <<\EOF
2743   rm -f conftest.frag conftest.h
2744   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2745   cat conftest.in >> conftest.h
2746   rm -f conftest.in
2747   if cmp -s $ac_file conftest.h 2>/dev/null; then
2748     echo "$ac_file is unchanged"
2749     rm -f conftest.h
2750   else
2751     # Remove last slash and all that follows it.  Not all systems have dirname.
2752       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2753       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2754       # The file is in a subdirectory.
2755       test ! -d "$ac_dir" && mkdir "$ac_dir"
2756     fi
2757     rm -f $ac_file
2758     mv conftest.h $ac_file
2759   fi
2760 fi; done
2761
2762 EOF
2763 cat >> $CONFIG_STATUS <<EOF
2764
2765
2766 EOF
2767 cat >> $CONFIG_STATUS <<\EOF
2768 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2769
2770 exit 0
2771 EOF
2772 chmod +x $CONFIG_STATUS
2773 rm -fr confdefs* $ac_clean_files
2774 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2775
2776
2777
2778