Using yaz.m4 for aclocal.m4.
[ir-tcl-moved-to-github.git] / 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   --with-buildroot        RPM Build root"
16 ac_help="$ac_help
17   --with-yazconfig=DIR    yaz-config in DIR (example /home/yaz-1.7)"
18 ac_help="$ac_help
19   --with-tclconfig=DIR    tclConfig.sh/tkConfig.sh in DIR (example /usr/lib)"
20 ac_help="$ac_help
21   --with-x                use the X Window System"
22
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
26 build=NONE
27 cache_file=./config.cache
28 exec_prefix=NONE
29 host=NONE
30 no_create=
31 nonopt=NONE
32 no_recursion=
33 prefix=NONE
34 program_prefix=NONE
35 program_suffix=NONE
36 program_transform_name=s,x,x,
37 silent=
38 site=
39 srcdir=
40 target=NONE
41 verbose=
42 x_includes=NONE
43 x_libraries=NONE
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
56
57 # Initialize some other variables.
58 subdirs=
59 MFLAGS= MAKEFLAGS=
60 SHELL=${CONFIG_SHELL-/bin/sh}
61 # Maximum number of lines to put in a shell here document.
62 ac_max_here_lines=12
63
64 ac_prev=
65 for ac_option
66 do
67
68   # If the previous option needs an argument, assign it.
69   if test -n "$ac_prev"; then
70     eval "$ac_prev=\$ac_option"
71     ac_prev=
72     continue
73   fi
74
75   case "$ac_option" in
76   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77   *) ac_optarg= ;;
78   esac
79
80   # Accept the important Cygnus configure options, so we can diagnose typos.
81
82   case "$ac_option" in
83
84   -bindir | --bindir | --bindi | --bind | --bin | --bi)
85     ac_prev=bindir ;;
86   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87     bindir="$ac_optarg" ;;
88
89   -build | --build | --buil | --bui | --bu)
90     ac_prev=build ;;
91   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92     build="$ac_optarg" ;;
93
94   -cache-file | --cache-file | --cache-fil | --cache-fi \
95   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96     ac_prev=cache_file ;;
97   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99     cache_file="$ac_optarg" ;;
100
101   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102     ac_prev=datadir ;;
103   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104   | --da=*)
105     datadir="$ac_optarg" ;;
106
107   -disable-* | --disable-*)
108     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109     # Reject names that are not valid shell variable names.
110     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112     fi
113     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114     eval "enable_${ac_feature}=no" ;;
115
116   -enable-* | --enable-*)
117     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118     # Reject names that are not valid shell variable names.
119     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121     fi
122     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123     case "$ac_option" in
124       *=*) ;;
125       *) ac_optarg=yes ;;
126     esac
127     eval "enable_${ac_feature}='$ac_optarg'" ;;
128
129   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131   | --exec | --exe | --ex)
132     ac_prev=exec_prefix ;;
133   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135   | --exec=* | --exe=* | --ex=*)
136     exec_prefix="$ac_optarg" ;;
137
138   -gas | --gas | --ga | --g)
139     # Obsolete; use --with-gas.
140     with_gas=yes ;;
141
142   -help | --help | --hel | --he)
143     # Omit some internal or obsolete options to make the list less imposing.
144     # This message is too long to be a string in the A/UX 3.1 sh.
145     cat << EOF
146 Usage: configure [options] [host]
147 Options: [defaults in brackets after descriptions]
148 Configuration:
149   --cache-file=FILE       cache test results in FILE
150   --help                  print this message
151   --no-create             do not create output files
152   --quiet, --silent       do not print \`checking...' messages
153   --version               print the version of autoconf that created configure
154 Directory and file names:
155   --prefix=PREFIX         install architecture-independent files in PREFIX
156                           [$ac_default_prefix]
157   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158                           [same as prefix]
159   --bindir=DIR            user executables in DIR [EPREFIX/bin]
160   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162   --datadir=DIR           read-only architecture-independent data in DIR
163                           [PREFIX/share]
164   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166                           [PREFIX/com]
167   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169   --includedir=DIR        C header files in DIR [PREFIX/include]
170   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171   --infodir=DIR           info documentation in DIR [PREFIX/info]
172   --mandir=DIR            man documentation in DIR [PREFIX/man]
173   --srcdir=DIR            find the sources in DIR [configure dir or ..]
174   --program-prefix=PREFIX prepend PREFIX to installed program names
175   --program-suffix=SUFFIX append SUFFIX to installed program names
176   --program-transform-name=PROGRAM
177                           run sed PROGRAM on installed program names
178 EOF
179     cat << EOF
180 Host type:
181   --build=BUILD           configure for building on BUILD [BUILD=HOST]
182   --host=HOST             configure for HOST [guessed]
183   --target=TARGET         configure for TARGET [TARGET=HOST]
184 Features and packages:
185   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189   --x-includes=DIR        X include files are in DIR
190   --x-libraries=DIR       X library files are in DIR
191 EOF
192     if test -n "$ac_help"; then
193       echo "--enable and --with options recognized:$ac_help"
194     fi
195     exit 0 ;;
196
197   -host | --host | --hos | --ho)
198     ac_prev=host ;;
199   -host=* | --host=* | --hos=* | --ho=*)
200     host="$ac_optarg" ;;
201
202   -includedir | --includedir | --includedi | --included | --include \
203   | --includ | --inclu | --incl | --inc)
204     ac_prev=includedir ;;
205   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206   | --includ=* | --inclu=* | --incl=* | --inc=*)
207     includedir="$ac_optarg" ;;
208
209   -infodir | --infodir | --infodi | --infod | --info | --inf)
210     ac_prev=infodir ;;
211   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212     infodir="$ac_optarg" ;;
213
214   -libdir | --libdir | --libdi | --libd)
215     ac_prev=libdir ;;
216   -libdir=* | --libdir=* | --libdi=* | --libd=*)
217     libdir="$ac_optarg" ;;
218
219   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220   | --libexe | --libex | --libe)
221     ac_prev=libexecdir ;;
222   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223   | --libexe=* | --libex=* | --libe=*)
224     libexecdir="$ac_optarg" ;;
225
226   -localstatedir | --localstatedir | --localstatedi | --localstated \
227   | --localstate | --localstat | --localsta | --localst \
228   | --locals | --local | --loca | --loc | --lo)
229     ac_prev=localstatedir ;;
230   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233     localstatedir="$ac_optarg" ;;
234
235   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236     ac_prev=mandir ;;
237   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238     mandir="$ac_optarg" ;;
239
240   -nfp | --nfp | --nf)
241     # Obsolete; use --without-fp.
242     with_fp=no ;;
243
244   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245   | --no-cr | --no-c)
246     no_create=yes ;;
247
248   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250     no_recursion=yes ;;
251
252   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254   | --oldin | --oldi | --old | --ol | --o)
255     ac_prev=oldincludedir ;;
256   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259     oldincludedir="$ac_optarg" ;;
260
261   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262     ac_prev=prefix ;;
263   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264     prefix="$ac_optarg" ;;
265
266   -program-prefix | --program-prefix | --program-prefi | --program-pref \
267   | --program-pre | --program-pr | --program-p)
268     ac_prev=program_prefix ;;
269   -program-prefix=* | --program-prefix=* | --program-prefi=* \
270   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271     program_prefix="$ac_optarg" ;;
272
273   -program-suffix | --program-suffix | --program-suffi | --program-suff \
274   | --program-suf | --program-su | --program-s)
275     ac_prev=program_suffix ;;
276   -program-suffix=* | --program-suffix=* | --program-suffi=* \
277   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278     program_suffix="$ac_optarg" ;;
279
280   -program-transform-name | --program-transform-name \
281   | --program-transform-nam | --program-transform-na \
282   | --program-transform-n | --program-transform- \
283   | --program-transform | --program-transfor \
284   | --program-transfo | --program-transf \
285   | --program-trans | --program-tran \
286   | --progr-tra | --program-tr | --program-t)
287     ac_prev=program_transform_name ;;
288   -program-transform-name=* | --program-transform-name=* \
289   | --program-transform-nam=* | --program-transform-na=* \
290   | --program-transform-n=* | --program-transform-=* \
291   | --program-transform=* | --program-transfor=* \
292   | --program-transfo=* | --program-transf=* \
293   | --program-trans=* | --program-tran=* \
294   | --progr-tra=* | --program-tr=* | --program-t=*)
295     program_transform_name="$ac_optarg" ;;
296
297   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298   | -silent | --silent | --silen | --sile | --sil)
299     silent=yes ;;
300
301   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302     ac_prev=sbindir ;;
303   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304   | --sbi=* | --sb=*)
305     sbindir="$ac_optarg" ;;
306
307   -sharedstatedir | --sharedstatedir | --sharedstatedi \
308   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309   | --sharedst | --shareds | --shared | --share | --shar \
310   | --sha | --sh)
311     ac_prev=sharedstatedir ;;
312   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315   | --sha=* | --sh=*)
316     sharedstatedir="$ac_optarg" ;;
317
318   -site | --site | --sit)
319     ac_prev=site ;;
320   -site=* | --site=* | --sit=*)
321     site="$ac_optarg" ;;
322
323   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324     ac_prev=srcdir ;;
325   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326     srcdir="$ac_optarg" ;;
327
328   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329   | --syscon | --sysco | --sysc | --sys | --sy)
330     ac_prev=sysconfdir ;;
331   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333     sysconfdir="$ac_optarg" ;;
334
335   -target | --target | --targe | --targ | --tar | --ta | --t)
336     ac_prev=target ;;
337   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338     target="$ac_optarg" ;;
339
340   -v | -verbose | --verbose | --verbos | --verbo | --verb)
341     verbose=yes ;;
342
343   -version | --version | --versio | --versi | --vers)
344     echo "configure generated by autoconf version 2.13"
345     exit 0 ;;
346
347   -with-* | --with-*)
348     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349     # Reject names that are not valid shell variable names.
350     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352     fi
353     ac_package=`echo $ac_package| sed 's/-/_/g'`
354     case "$ac_option" in
355       *=*) ;;
356       *) ac_optarg=yes ;;
357     esac
358     eval "with_${ac_package}='$ac_optarg'" ;;
359
360   -without-* | --without-*)
361     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362     # Reject names that are not valid shell variable names.
363     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365     fi
366     ac_package=`echo $ac_package| sed 's/-/_/g'`
367     eval "with_${ac_package}=no" ;;
368
369   --x)
370     # Obsolete; use --with-x.
371     with_x=yes ;;
372
373   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374   | --x-incl | --x-inc | --x-in | --x-i)
375     ac_prev=x_includes ;;
376   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378     x_includes="$ac_optarg" ;;
379
380   -x-libraries | --x-libraries | --x-librarie | --x-librari \
381   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382     ac_prev=x_libraries ;;
383   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385     x_libraries="$ac_optarg" ;;
386
387   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388     ;;
389
390   *)
391     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392       echo "configure: warning: $ac_option: invalid host type" 1>&2
393     fi
394     if test "x$nonopt" != xNONE; then
395       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396     fi
397     nonopt="$ac_option"
398     ;;
399
400   esac
401 done
402
403 if test -n "$ac_prev"; then
404   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 fi
406
407 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
409 # File descriptor usage:
410 # 0 standard input
411 # 1 file creation
412 # 2 errors and warnings
413 # 3 some systems may open it to /dev/tty
414 # 4 used on the Kubota Titan
415 # 6 checking for... messages and results
416 # 5 compiler messages saved in config.log
417 if test "$silent" = yes; then
418   exec 6>/dev/null
419 else
420   exec 6>&1
421 fi
422 exec 5>./config.log
423
424 echo "\
425 This file contains any messages produced by compilers while
426 running configure, to aid debugging if configure makes a mistake.
427 " 1>&5
428
429 # Strip out --no-create and --no-recursion so they do not pile up.
430 # Also quote any args containing shell metacharacters.
431 ac_configure_args=
432 for ac_arg
433 do
434   case "$ac_arg" in
435   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436   | --no-cr | --no-c) ;;
437   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442   esac
443 done
444
445 # NLS nuisances.
446 # Only set these to C if already set.  These must not be set unconditionally
447 # because not all systems understand e.g. LANG=C (notably SCO).
448 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449 # Non-C LC_CTYPE values break the ctype check.
450 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
451 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
454
455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
456 rm -rf conftest* confdefs.h
457 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 echo > confdefs.h
459
460 # A filename unique to this package, relative to the directory that
461 # configure is in, which we can look for to find out if srcdir is correct.
462 ac_unique_file=ir-tcl.h
463
464 # Find the source files, if location was not specified.
465 if test -z "$srcdir"; then
466   ac_srcdir_defaulted=yes
467   # Try the directory containing this script, then its parent.
468   ac_prog=$0
469   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471   srcdir=$ac_confdir
472   if test ! -r $srcdir/$ac_unique_file; then
473     srcdir=..
474   fi
475 else
476   ac_srcdir_defaulted=no
477 fi
478 if test ! -r $srcdir/$ac_unique_file; then
479   if test "$ac_srcdir_defaulted" = yes; then
480     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481   else
482     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483   fi
484 fi
485 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
487 # Prefer explicitly selected file to automatically selected ones.
488 if test -z "$CONFIG_SITE"; then
489   if test "x$prefix" != xNONE; then
490     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491   else
492     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493   fi
494 fi
495 for ac_site_file in $CONFIG_SITE; do
496   if test -r "$ac_site_file"; then
497     echo "loading site script $ac_site_file"
498     . "$ac_site_file"
499   fi
500 done
501
502 if test -r "$cache_file"; then
503   echo "loading cache $cache_file"
504   . $cache_file
505 else
506   echo "creating cache $cache_file"
507   > $cache_file
508 fi
509
510 ac_ext=c
511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512 ac_cpp='$CPP $CPPFLAGS'
513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515 cross_compiling=$ac_cv_prog_cc_cross
516
517 ac_exeext=
518 ac_objext=o
519 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522     ac_n= ac_c='
523 ' ac_t='        '
524   else
525     ac_n=-n ac_c= ac_t=
526   fi
527 else
528   ac_n= ac_c='\c' ac_t=
529 fi
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545 # Check whether --with-build-root or --without-build-root was given.
546 if test "${with_build_root+set}" = set; then
547   withval="$with_build_root"
548   build_root=$withval
549 else
550   build_root=""
551 fi
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
637         
638         
639         
640         
641         yazconfig=NONE
642         yazpath=NONE
643         # Check whether --with-yazconfig or --without-yazconfig was given.
644 if test "${with_yazconfig+set}" = set; then
645   withval="$with_yazconfig"
646   yazpath=$withval
647 fi
648
649         if test "x$yazpath" != "xNONE"; then
650                 yazconfig=$yazpath/yaz-config
651         else
652                 for i in ../yaz* ../yaz; do
653                         if test -d $i; then
654                                 if test -r $i/yaz-config; then
655                                         yazconfig=$i/yaz-config
656                                 fi
657                         fi
658                 done
659                 if test "x$yazconfig" = "xNONE"; then
660                         # Extract the first word of "yaz-config", so it can be a program name with args.
661 set dummy yaz-config; ac_word=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"`echo '$''{'ac_cv_path_yazconfig'+set}'`\" = set"; then
665   echo $ac_n "(cached) $ac_c" 1>&6
666 else
667   case "$yazconfig" in
668   /*)
669   ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a path.
670   ;;
671   ?:/*)                  
672   ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a dos path.
673   ;;
674   *)
675   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
676   ac_dummy="$PATH"
677   for ac_dir in $ac_dummy; do 
678     test -z "$ac_dir" && ac_dir=.
679     if test -f $ac_dir/$ac_word; then
680       ac_cv_path_yazconfig="$ac_dir/$ac_word"
681       break
682     fi
683   done
684   IFS="$ac_save_ifs"
685   test -z "$ac_cv_path_yazconfig" && ac_cv_path_yazconfig="NONE"
686   ;;
687 esac
688 fi
689 yazconfig="$ac_cv_path_yazconfig"
690 if test -n "$yazconfig"; then
691   echo "$ac_t""$yazconfig" 1>&6
692 else
693   echo "$ac_t""no" 1>&6
694 fi
695
696                 fi
697         fi
698         echo $ac_n "checking for YAZ""... $ac_c" 1>&6
699 echo "configure:700: checking for YAZ" >&5
700         if $yazconfig --version >/dev/null 2>&1; then
701                 YAZLIB=`$yazconfig --libs`
702                 # if this is empty, it's a simple version YAZ 1.6 script
703                 # so we have to source it instead...
704                 if test "X$YAZLIB" = "X"; then
705                         . $yazconfig
706                 else
707                         YAZLALIB=`$yazconfig --lalibs`
708                         YAZINC=`$yazconfig --cflags`
709                         YAZVERSION=`$yazconfig --version`
710                 fi
711                 echo "$ac_t""$yazconfig" 1>&6
712         else
713                 echo "$ac_t""Not found" 1>&6
714                 YAZVERSION=NONE
715         fi
716
717 tclconfig=NONE
718 tryprefix=NONE
719 # Check whether --with-tclconfig or --without-tclconfig was given.
720 if test "${with_tclconfig+set}" = set; then
721   withval="$with_tclconfig"
722   tclconfig=$withval
723 fi
724
725 if test "x$tclconfig" = xNONE; then
726         saveprefix=${prefix}
727         if test "x$prefix" = xNONE; then
728 echo $ac_n "checking for prefix by $ac_c" 1>&6
729 # Extract the first word of "tclsh", so it can be a program name with args.
730 set dummy tclsh; ac_word=$2
731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
732 echo "configure:733: checking for $ac_word" >&5
733 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
734   echo $ac_n "(cached) $ac_c" 1>&6
735 else
736   case "$TCLSH" in
737   /*)
738   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
739   ;;
740   ?:/*)                  
741   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
742   ;;
743   *)
744   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
745   ac_dummy="$PATH"
746   for ac_dir in $ac_dummy; do 
747     test -z "$ac_dir" && ac_dir=.
748     if test -f $ac_dir/$ac_word; then
749       ac_cv_path_TCLSH="$ac_dir/$ac_word"
750       break
751     fi
752   done
753   IFS="$ac_save_ifs"
754   ;;
755 esac
756 fi
757 TCLSH="$ac_cv_path_TCLSH"
758 if test -n "$TCLSH"; then
759   echo "$ac_t""$TCLSH" 1>&6
760 else
761   echo "$ac_t""no" 1>&6
762 fi
763
764   if test -n "$ac_cv_path_TCLSH"; then
765     prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
766   fi
767 fi
768
769         if test "x$prefix" = xNONE; then
770                 if test "x$prefix" = xNONE; then
771 echo $ac_n "checking for prefix by $ac_c" 1>&6
772 # Extract the first word of "tclsh8.2", so it can be a program name with args.
773 set dummy tclsh8.2; ac_word=$2
774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775 echo "configure:776: checking for $ac_word" >&5
776 if eval "test \"`echo '$''{'ac_cv_path_TCLSH8.2'+set}'`\" = set"; then
777   echo $ac_n "(cached) $ac_c" 1>&6
778 else
779   case "$TCLSH8.2" in
780   /*)
781   ac_cv_path_TCLSH8.2="$TCLSH8.2" # Let the user override the test with a path.
782   ;;
783   ?:/*)                  
784   ac_cv_path_TCLSH8.2="$TCLSH8.2" # Let the user override the test with a dos path.
785   ;;
786   *)
787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
788   ac_dummy="$PATH"
789   for ac_dir in $ac_dummy; do 
790     test -z "$ac_dir" && ac_dir=.
791     if test -f $ac_dir/$ac_word; then
792       ac_cv_path_TCLSH8.2="$ac_dir/$ac_word"
793       break
794     fi
795   done
796   IFS="$ac_save_ifs"
797   ;;
798 esac
799 fi
800 TCLSH8.2="$ac_cv_path_TCLSH8.2"
801 if test -n "$TCLSH8.2"; then
802   echo "$ac_t""$TCLSH8.2" 1>&6
803 else
804   echo "$ac_t""no" 1>&6
805 fi
806
807   if test -n "$ac_cv_path_TCLSH8.2"; then
808     prefix=`echo $ac_cv_path_TCLSH8.2|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
809   fi
810 fi
811
812         fi
813         if test "x$prefix" = xNONE; then
814                 if test "x$prefix" = xNONE; then
815 echo $ac_n "checking for prefix by $ac_c" 1>&6
816 # Extract the first word of "tclsh8.1", so it can be a program name with args.
817 set dummy tclsh8.1; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_path_TCLSH8.1'+set}'`\" = set"; then
821   echo $ac_n "(cached) $ac_c" 1>&6
822 else
823   case "$TCLSH8.1" in
824   /*)
825   ac_cv_path_TCLSH8.1="$TCLSH8.1" # Let the user override the test with a path.
826   ;;
827   ?:/*)                  
828   ac_cv_path_TCLSH8.1="$TCLSH8.1" # Let the user override the test with a dos path.
829   ;;
830   *)
831   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
832   ac_dummy="$PATH"
833   for ac_dir in $ac_dummy; do 
834     test -z "$ac_dir" && ac_dir=.
835     if test -f $ac_dir/$ac_word; then
836       ac_cv_path_TCLSH8.1="$ac_dir/$ac_word"
837       break
838     fi
839   done
840   IFS="$ac_save_ifs"
841   ;;
842 esac
843 fi
844 TCLSH8.1="$ac_cv_path_TCLSH8.1"
845 if test -n "$TCLSH8.1"; then
846   echo "$ac_t""$TCLSH8.1" 1>&6
847 else
848   echo "$ac_t""no" 1>&6
849 fi
850
851   if test -n "$ac_cv_path_TCLSH8.1"; then
852     prefix=`echo $ac_cv_path_TCLSH8.1|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
853   fi
854 fi
855
856         fi
857         if test "x$prefix" = xNONE; then
858                 if test "x$prefix" = xNONE; then
859 echo $ac_n "checking for prefix by $ac_c" 1>&6
860 # Extract the first word of "tclsh8.0", so it can be a program name with args.
861 set dummy tclsh8.0; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_path_TCLSH8.0'+set}'`\" = set"; then
865   echo $ac_n "(cached) $ac_c" 1>&6
866 else
867   case "$TCLSH8.0" in
868   /*)
869   ac_cv_path_TCLSH8.0="$TCLSH8.0" # Let the user override the test with a path.
870   ;;
871   ?:/*)                  
872   ac_cv_path_TCLSH8.0="$TCLSH8.0" # Let the user override the test with a dos path.
873   ;;
874   *)
875   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
876   ac_dummy="$PATH"
877   for ac_dir in $ac_dummy; do 
878     test -z "$ac_dir" && ac_dir=.
879     if test -f $ac_dir/$ac_word; then
880       ac_cv_path_TCLSH8.0="$ac_dir/$ac_word"
881       break
882     fi
883   done
884   IFS="$ac_save_ifs"
885   ;;
886 esac
887 fi
888 TCLSH8.0="$ac_cv_path_TCLSH8.0"
889 if test -n "$TCLSH8.0"; then
890   echo "$ac_t""$TCLSH8.0" 1>&6
891 else
892   echo "$ac_t""no" 1>&6
893 fi
894
895   if test -n "$ac_cv_path_TCLSH8.0"; then
896     prefix=`echo $ac_cv_path_TCLSH8.0|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
897   fi
898 fi
899
900         fi
901         if test "x$prefix" = xNONE; then
902                 if test "x$prefix" = xNONE; then
903 echo $ac_n "checking for prefix by $ac_c" 1>&6
904 # Extract the first word of "tclsh7.6", so it can be a program name with args.
905 set dummy tclsh7.6; ac_word=$2
906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
907 echo "configure:908: checking for $ac_word" >&5
908 if eval "test \"`echo '$''{'ac_cv_path_TCLSH7.6'+set}'`\" = set"; then
909   echo $ac_n "(cached) $ac_c" 1>&6
910 else
911   case "$TCLSH7.6" in
912   /*)
913   ac_cv_path_TCLSH7.6="$TCLSH7.6" # Let the user override the test with a path.
914   ;;
915   ?:/*)                  
916   ac_cv_path_TCLSH7.6="$TCLSH7.6" # Let the user override the test with a dos path.
917   ;;
918   *)
919   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
920   ac_dummy="$PATH"
921   for ac_dir in $ac_dummy; do 
922     test -z "$ac_dir" && ac_dir=.
923     if test -f $ac_dir/$ac_word; then
924       ac_cv_path_TCLSH7.6="$ac_dir/$ac_word"
925       break
926     fi
927   done
928   IFS="$ac_save_ifs"
929   ;;
930 esac
931 fi
932 TCLSH7.6="$ac_cv_path_TCLSH7.6"
933 if test -n "$TCLSH7.6"; then
934   echo "$ac_t""$TCLSH7.6" 1>&6
935 else
936   echo "$ac_t""no" 1>&6
937 fi
938
939   if test -n "$ac_cv_path_TCLSH7.6"; then
940     prefix=`echo $ac_cv_path_TCLSH7.6|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
941   fi
942 fi
943
944         fi
945         if test "x$prefix" = xNONE; then
946                 if test "x$prefix" = xNONE; then
947 echo $ac_n "checking for prefix by $ac_c" 1>&6
948 # Extract the first word of "tclsh7.5", so it can be a program name with args.
949 set dummy tclsh7.5; ac_word=$2
950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 echo "configure:952: checking for $ac_word" >&5
952 if eval "test \"`echo '$''{'ac_cv_path_TCLSH7.5'+set}'`\" = set"; then
953   echo $ac_n "(cached) $ac_c" 1>&6
954 else
955   case "$TCLSH7.5" in
956   /*)
957   ac_cv_path_TCLSH7.5="$TCLSH7.5" # Let the user override the test with a path.
958   ;;
959   ?:/*)                  
960   ac_cv_path_TCLSH7.5="$TCLSH7.5" # Let the user override the test with a dos path.
961   ;;
962   *)
963   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
964   ac_dummy="$PATH"
965   for ac_dir in $ac_dummy; do 
966     test -z "$ac_dir" && ac_dir=.
967     if test -f $ac_dir/$ac_word; then
968       ac_cv_path_TCLSH7.5="$ac_dir/$ac_word"
969       break
970     fi
971   done
972   IFS="$ac_save_ifs"
973   ;;
974 esac
975 fi
976 TCLSH7.5="$ac_cv_path_TCLSH7.5"
977 if test -n "$TCLSH7.5"; then
978   echo "$ac_t""$TCLSH7.5" 1>&6
979 else
980   echo "$ac_t""no" 1>&6
981 fi
982
983   if test -n "$ac_cv_path_TCLSH7.5"; then
984     prefix=`echo $ac_cv_path_TCLSH7.5|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
985   fi
986 fi
987
988         fi
989         if test "x$prefix" = xNONE; then
990                 prefix=/usr/local
991         fi
992         tclconfig=${prefix}/lib
993         tryprefix=${prefix}
994         prefix=${saveprefix}
995 fi
996 if test -r ${tclconfig}/tclConfig.sh; then
997         echo $ac_n "checking for Tcl""... $ac_c" 1>&6
998 echo "configure:999: checking for Tcl" >&5
999         . ${tclconfig}/tclConfig.sh
1000         TCLLIB="${TCL_LIB_SPEC} ${TCL_LIBS}"
1001         if test "${TCL_PREFIX}" = "/usr"; then
1002                 TCLINC=""
1003         else
1004                 TCLINC=-I${TCL_PREFIX}/include
1005         fi
1006         RANLIB=$TCL_RANLIB
1007         SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1008         SHLIB_LD=$TCL_SHLIB_LD
1009         SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1010         SHLIB_VERSION=$TCL_SHLIB_VERSION
1011         SHLIB_IRTCL=irtcl${TCL_SHLIB_SUFFIX}
1012         ALL_SPEC="irtcl${TCL_SHLIB_SUFFIX} libirtcl.a"
1013         echo "$ac_t""$TCL_VERSION" 1>&6
1014         CC=$TCL_CC
1015 else
1016         # Extract the first word of "gcc", so it can be a program name with args.
1017 set dummy gcc; ac_word=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1021   echo $ac_n "(cached) $ac_c" 1>&6
1022 else
1023   if test -n "$CC"; then
1024   ac_cv_prog_CC="$CC" # Let the user override the test.
1025 else
1026   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1027   ac_dummy="$PATH"
1028   for ac_dir in $ac_dummy; do
1029     test -z "$ac_dir" && ac_dir=.
1030     if test -f $ac_dir/$ac_word; then
1031       ac_cv_prog_CC="gcc"
1032       break
1033     fi
1034   done
1035   IFS="$ac_save_ifs"
1036 fi
1037 fi
1038 CC="$ac_cv_prog_CC"
1039 if test -n "$CC"; then
1040   echo "$ac_t""$CC" 1>&6
1041 else
1042   echo "$ac_t""no" 1>&6
1043 fi
1044
1045 if test -z "$CC"; then
1046   # Extract the first word of "cc", so it can be a program name with args.
1047 set dummy cc; ac_word=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1051   echo $ac_n "(cached) $ac_c" 1>&6
1052 else
1053   if test -n "$CC"; then
1054   ac_cv_prog_CC="$CC" # Let the user override the test.
1055 else
1056   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1057   ac_prog_rejected=no
1058   ac_dummy="$PATH"
1059   for ac_dir in $ac_dummy; do
1060     test -z "$ac_dir" && ac_dir=.
1061     if test -f $ac_dir/$ac_word; then
1062       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1063         ac_prog_rejected=yes
1064         continue
1065       fi
1066       ac_cv_prog_CC="cc"
1067       break
1068     fi
1069   done
1070   IFS="$ac_save_ifs"
1071 if test $ac_prog_rejected = yes; then
1072   # We found a bogon in the path, so make sure we never use it.
1073   set dummy $ac_cv_prog_CC
1074   shift
1075   if test $# -gt 0; then
1076     # We chose a different compiler from the bogus one.
1077     # However, it has the same basename, so the bogon will be chosen
1078     # first if we set CC to just the basename; use the full file name.
1079     shift
1080     set dummy "$ac_dir/$ac_word" "$@"
1081     shift
1082     ac_cv_prog_CC="$@"
1083   fi
1084 fi
1085 fi
1086 fi
1087 CC="$ac_cv_prog_CC"
1088 if test -n "$CC"; then
1089   echo "$ac_t""$CC" 1>&6
1090 else
1091   echo "$ac_t""no" 1>&6
1092 fi
1093
1094   if test -z "$CC"; then
1095     case "`uname -s`" in
1096     *win32* | *WIN32*)
1097       # Extract the first word of "cl", so it can be a program name with args.
1098 set dummy cl; ac_word=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1102   echo $ac_n "(cached) $ac_c" 1>&6
1103 else
1104   if test -n "$CC"; then
1105   ac_cv_prog_CC="$CC" # Let the user override the test.
1106 else
1107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1108   ac_dummy="$PATH"
1109   for ac_dir in $ac_dummy; do
1110     test -z "$ac_dir" && ac_dir=.
1111     if test -f $ac_dir/$ac_word; then
1112       ac_cv_prog_CC="cl"
1113       break
1114     fi
1115   done
1116   IFS="$ac_save_ifs"
1117 fi
1118 fi
1119 CC="$ac_cv_prog_CC"
1120 if test -n "$CC"; then
1121   echo "$ac_t""$CC" 1>&6
1122 else
1123   echo "$ac_t""no" 1>&6
1124 fi
1125  ;;
1126     esac
1127   fi
1128   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1129 fi
1130
1131 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1133
1134 ac_ext=c
1135 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1136 ac_cpp='$CPP $CPPFLAGS'
1137 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1138 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1139 cross_compiling=$ac_cv_prog_cc_cross
1140
1141 cat > conftest.$ac_ext << EOF
1142
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145
1146 main(){return(0);}
1147 EOF
1148 if { (eval echo configure:1149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1149   ac_cv_prog_cc_works=yes
1150   # If we can't run a trivial program, we are probably using a cross compiler.
1151   if (./conftest; exit) 2>/dev/null; then
1152     ac_cv_prog_cc_cross=no
1153   else
1154     ac_cv_prog_cc_cross=yes
1155   fi
1156 else
1157   echo "configure: failed program was:" >&5
1158   cat conftest.$ac_ext >&5
1159   ac_cv_prog_cc_works=no
1160 fi
1161 rm -fr conftest*
1162 ac_ext=c
1163 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1164 ac_cpp='$CPP $CPPFLAGS'
1165 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1166 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1167 cross_compiling=$ac_cv_prog_cc_cross
1168
1169 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1170 if test $ac_cv_prog_cc_works = no; then
1171   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1172 fi
1173 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1175 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1176 cross_compiling=$ac_cv_prog_cc_cross
1177
1178 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether we are using GNU C" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   cat > conftest.c <<EOF
1184 #ifdef __GNUC__
1185   yes;
1186 #endif
1187 EOF
1188 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1189   ac_cv_prog_gcc=yes
1190 else
1191   ac_cv_prog_gcc=no
1192 fi
1193 fi
1194
1195 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1196
1197 if test $ac_cv_prog_gcc = yes; then
1198   GCC=yes
1199 else
1200   GCC=
1201 fi
1202
1203 ac_test_CFLAGS="${CFLAGS+set}"
1204 ac_save_CFLAGS="$CFLAGS"
1205 CFLAGS=
1206 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether ${CC-cc} accepts -g" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1209   echo $ac_n "(cached) $ac_c" 1>&6
1210 else
1211   echo 'void f(){}' > conftest.c
1212 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1213   ac_cv_prog_cc_g=yes
1214 else
1215   ac_cv_prog_cc_g=no
1216 fi
1217 rm -f conftest*
1218
1219 fi
1220
1221 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1222 if test "$ac_test_CFLAGS" = set; then
1223   CFLAGS="$ac_save_CFLAGS"
1224 elif test $ac_cv_prog_cc_g = yes; then
1225   if test "$GCC" = yes; then
1226     CFLAGS="-g -O2"
1227   else
1228     CFLAGS="-g"
1229   fi
1230 else
1231   if test "$GCC" = yes; then
1232     CFLAGS="-O2"
1233   else
1234     CFLAGS=
1235   fi
1236 fi
1237
1238         SHLIB_CFLAGS=""
1239         SHLIB_LD="shared-linker"
1240         SHLIB_SUFFIX=""
1241         SHLIB_VERSION=""
1242         SHLIB_IRTCL="irtcl-shared"
1243         # Extract the first word of "ranlib", so it can be a program name with args.
1244 set dummy ranlib; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1248   echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250   if test -n "$RANLIB"; then
1251   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1252 else
1253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1254   ac_dummy="$PATH"
1255   for ac_dir in $ac_dummy; do
1256     test -z "$ac_dir" && ac_dir=.
1257     if test -f $ac_dir/$ac_word; then
1258       ac_cv_prog_RANLIB="ranlib"
1259       break
1260     fi
1261   done
1262   IFS="$ac_save_ifs"
1263   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1264 fi
1265 fi
1266 RANLIB="$ac_cv_prog_RANLIB"
1267 if test -n "$RANLIB"; then
1268   echo "$ac_t""$RANLIB" 1>&6
1269 else
1270   echo "$ac_t""no" 1>&6
1271 fi
1272
1273         echo $ac_n "checking for Tcl""... $ac_c" 1>&6
1274 echo "configure:1275: checking for Tcl" >&5
1275         TCL_VERSION=nope
1276         for i in "" 7.4 7.5 7.6 8.0; do
1277                 if test -r ${tryprefix}/lib/libtcl${i}.a; then
1278                         TCL_VERSION=$i
1279                 fi
1280         done
1281         if test "$TCL_VERSION" = nope; then
1282                 echo "configure: warning: Didn't find Tcl" 1>&2
1283                 TCL_LIB_SPEC=-ltcl
1284                 TCLINC=" # -I.. Tcl/Tk include path"
1285         else
1286                 if test "$TCL_VERSION" = ""; then
1287                         echo "$ac_t""7.3" 1>&6
1288                 else
1289                         echo "$ac_t""$TCL_VERSION" 1>&6
1290                 fi
1291                 TCL_LIB_SPEC=${tryprefix}/lib/libtcl${TCL_VERSION}.a
1292                 TCLINC=-I${tryprefix}/include
1293         fi
1294         TCLLIB="${TCL_LIB_SPEC} ${LIBS} -lm"
1295         ALL_SPEC="ir-tcl ir-tk"
1296 fi
1297
1298
1299 if test -r ${tclconfig}/tkConfig.sh; then
1300         echo $ac_n "checking for Tk""... $ac_c" 1>&6
1301 echo "configure:1302: checking for Tk" >&5
1302         . ${tclconfig}/tkConfig.sh
1303         echo "$ac_t""$TK_VERSION" 1>&6
1304         TKINC=${TK_XINCLUDES}
1305         TKLIB="${TK_LIB_SPEC} ${TCL_LIB_SPEC} ${TK_LIBS}"
1306         IRCLIENT_SHELL=wish${TK_VERSION}
1307 else
1308         echo $ac_n "checking for Tk""... $ac_c" 1>&6
1309 echo "configure:1310: checking for Tk" >&5
1310         TK_VERSION=nope
1311         for i in "" 4.0 4.1 4.2 8.0; do
1312                 if test -r ${tryprefix}/lib/libtk${i}.a; then
1313                         TK_VERSION=$i
1314                 fi
1315         done
1316         if test "$TK_VERSION" = nope; then
1317                 echo "configure: warning: Didn't find Tk" 1>&2
1318                 TKLIB=-ltk
1319         else
1320                 TKLIB=${tryprefix}/lib/libtk${TK_VERSION}.a
1321                 if test "$TK_VERSION" = ""; then
1322                         echo "$ac_t""3.x" 1>&6
1323                 else
1324                         echo "$ac_t""$TK_VERSION" 1>&6
1325                 fi
1326         fi
1327         echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1328 echo "configure:1329: checking how to run the C preprocessor" >&5
1329 # On Suns, sometimes $CPP names a directory.
1330 if test -n "$CPP" && test -d "$CPP"; then
1331   CPP=
1332 fi
1333 if test -z "$CPP"; then
1334 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1335   echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337     # This must be in double quotes, not single quotes, because CPP may get
1338   # substituted into the Makefile and "${CC-cc}" will confuse make.
1339   CPP="${CC-cc} -E"
1340   # On the NeXT, cc -E runs the code through the compiler's parser,
1341   # not just through cpp.
1342   cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1345 #include <assert.h>
1346 Syntax Error
1347 EOF
1348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1349 { (eval echo configure:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1351 if test -z "$ac_err"; then
1352   :
1353 else
1354   echo "$ac_err" >&5
1355   echo "configure: failed program was:" >&5
1356   cat conftest.$ac_ext >&5
1357   rm -rf conftest*
1358   CPP="${CC-cc} -E -traditional-cpp"
1359   cat > conftest.$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1362 #include <assert.h>
1363 Syntax Error
1364 EOF
1365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1366 { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1368 if test -z "$ac_err"; then
1369   :
1370 else
1371   echo "$ac_err" >&5
1372   echo "configure: failed program was:" >&5
1373   cat conftest.$ac_ext >&5
1374   rm -rf conftest*
1375   CPP="${CC-cc} -nologo -E"
1376   cat > conftest.$ac_ext <<EOF
1377 #line 1378 "configure"
1378 #include "confdefs.h"
1379 #include <assert.h>
1380 Syntax Error
1381 EOF
1382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1383 { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1385 if test -z "$ac_err"; then
1386   :
1387 else
1388   echo "$ac_err" >&5
1389   echo "configure: failed program was:" >&5
1390   cat conftest.$ac_ext >&5
1391   rm -rf conftest*
1392   CPP=/lib/cpp
1393 fi
1394 rm -f conftest*
1395 fi
1396 rm -f conftest*
1397 fi
1398 rm -f conftest*
1399   ac_cv_prog_CPP="$CPP"
1400 fi
1401   CPP="$ac_cv_prog_CPP"
1402 else
1403   ac_cv_prog_CPP="$CPP"
1404 fi
1405 echo "$ac_t""$CPP" 1>&6
1406
1407 # If we find X, set shell vars x_includes and x_libraries to the
1408 # paths, otherwise set no_x=yes.
1409 # Uses ac_ vars as temps to allow command line to override cache and checks.
1410 # --without-x overrides everything else, but does not touch the cache.
1411 echo $ac_n "checking for X""... $ac_c" 1>&6
1412 echo "configure:1413: checking for X" >&5
1413
1414 # Check whether --with-x or --without-x was given.
1415 if test "${with_x+set}" = set; then
1416   withval="$with_x"
1417   :
1418 fi
1419
1420 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1421 if test "x$with_x" = xno; then
1422   # The user explicitly disabled X.
1423   have_x=disabled
1424 else
1425   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1426     # Both variables are already set.
1427     have_x=yes
1428   else
1429 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1430   echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432   # One or both of the vars are not set, and there is no cached value.
1433 ac_x_includes=NO ac_x_libraries=NO
1434 rm -fr conftestdir
1435 if mkdir conftestdir; then
1436   cd conftestdir
1437   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1438   cat > Imakefile <<'EOF'
1439 acfindx:
1440         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1441 EOF
1442   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1443     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1444     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1445     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1446     for ac_extension in a so sl; do
1447       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1448         test -f $ac_im_libdir/libX11.$ac_extension; then
1449         ac_im_usrlibdir=$ac_im_libdir; break
1450       fi
1451     done
1452     # Screen out bogus values from the imake configuration.  They are
1453     # bogus both because they are the default anyway, and because
1454     # using them would break gcc on systems where it needs fixed includes.
1455     case "$ac_im_incroot" in
1456         /usr/include) ;;
1457         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1458     esac
1459     case "$ac_im_usrlibdir" in
1460         /usr/lib | /lib) ;;
1461         *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1462     esac
1463   fi
1464   cd ..
1465   rm -fr conftestdir
1466 fi
1467
1468 if test "$ac_x_includes" = NO; then
1469   # Guess where to find include files, by looking for this one X11 .h file.
1470   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1471
1472   # First, try using that file with no special directory specified.
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 #include <$x_direct_test_include>
1477 EOF
1478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1479 { (eval echo configure:1480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1481 if test -z "$ac_err"; then
1482   rm -rf conftest*
1483   # We can compile using X headers with no special include directory.
1484 ac_x_includes=
1485 else
1486   echo "$ac_err" >&5
1487   echo "configure: failed program was:" >&5
1488   cat conftest.$ac_ext >&5
1489   rm -rf conftest*
1490   # Look for the header file in a standard set of common directories.
1491 # Check X11 before X11Rn because it is often a symlink to the current release.
1492   for ac_dir in               \
1493     /usr/X11/include          \
1494     /usr/X11R6/include        \
1495     /usr/X11R5/include        \
1496     /usr/X11R4/include        \
1497                               \
1498     /usr/include/X11          \
1499     /usr/include/X11R6        \
1500     /usr/include/X11R5        \
1501     /usr/include/X11R4        \
1502                               \
1503     /usr/local/X11/include    \
1504     /usr/local/X11R6/include  \
1505     /usr/local/X11R5/include  \
1506     /usr/local/X11R4/include  \
1507                               \
1508     /usr/local/include/X11    \
1509     /usr/local/include/X11R6  \
1510     /usr/local/include/X11R5  \
1511     /usr/local/include/X11R4  \
1512                               \
1513     /usr/X386/include         \
1514     /usr/x386/include         \
1515     /usr/XFree86/include/X11  \
1516                               \
1517     /usr/include              \
1518     /usr/local/include        \
1519     /usr/unsupported/include  \
1520     /usr/athena/include       \
1521     /usr/local/x11r5/include  \
1522     /usr/lpp/Xamples/include  \
1523                               \
1524     /usr/openwin/include      \
1525     /usr/openwin/share/include \
1526     ; \
1527   do
1528     if test -r "$ac_dir/$x_direct_test_include"; then
1529       ac_x_includes=$ac_dir
1530       break
1531     fi
1532   done
1533 fi
1534 rm -f conftest*
1535 fi # $ac_x_includes = NO
1536
1537 if test "$ac_x_libraries" = NO; then
1538   # Check for the libraries.
1539
1540   test -z "$x_direct_test_library" && x_direct_test_library=Xt
1541   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1542
1543   # See if we find them without any special options.
1544   # Don't add to $LIBS permanently.
1545   ac_save_LIBS="$LIBS"
1546   LIBS="-l$x_direct_test_library $LIBS"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550
1551 int main() {
1552 ${x_direct_test_function}()
1553 ; return 0; }
1554 EOF
1555 if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1556   rm -rf conftest*
1557   LIBS="$ac_save_LIBS"
1558 # We can link X programs with no special library path.
1559 ac_x_libraries=
1560 else
1561   echo "configure: failed program was:" >&5
1562   cat conftest.$ac_ext >&5
1563   rm -rf conftest*
1564   LIBS="$ac_save_LIBS"
1565 # First see if replacing the include by lib works.
1566 # Check X11 before X11Rn because it is often a symlink to the current release.
1567 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1568     /usr/X11/lib          \
1569     /usr/X11R6/lib        \
1570     /usr/X11R5/lib        \
1571     /usr/X11R4/lib        \
1572                           \
1573     /usr/lib/X11          \
1574     /usr/lib/X11R6        \
1575     /usr/lib/X11R5        \
1576     /usr/lib/X11R4        \
1577                           \
1578     /usr/local/X11/lib    \
1579     /usr/local/X11R6/lib  \
1580     /usr/local/X11R5/lib  \
1581     /usr/local/X11R4/lib  \
1582                           \
1583     /usr/local/lib/X11    \
1584     /usr/local/lib/X11R6  \
1585     /usr/local/lib/X11R5  \
1586     /usr/local/lib/X11R4  \
1587                           \
1588     /usr/X386/lib         \
1589     /usr/x386/lib         \
1590     /usr/XFree86/lib/X11  \
1591                           \
1592     /usr/lib              \
1593     /usr/local/lib        \
1594     /usr/unsupported/lib  \
1595     /usr/athena/lib       \
1596     /usr/local/x11r5/lib  \
1597     /usr/lpp/Xamples/lib  \
1598     /lib/usr/lib/X11      \
1599                           \
1600     /usr/openwin/lib      \
1601     /usr/openwin/share/lib \
1602     ; \
1603 do
1604   for ac_extension in a so sl; do
1605     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1606       ac_x_libraries=$ac_dir
1607       break 2
1608     fi
1609   done
1610 done
1611 fi
1612 rm -f conftest*
1613 fi # $ac_x_libraries = NO
1614
1615 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1616   # Didn't find X anywhere.  Cache the known absence of X.
1617   ac_cv_have_x="have_x=no"
1618 else
1619   # Record where we found X for the cache.
1620   ac_cv_have_x="have_x=yes \
1621                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1622 fi
1623 fi
1624   fi
1625   eval "$ac_cv_have_x"
1626 fi # $with_x != no
1627
1628 if test "$have_x" != yes; then
1629   echo "$ac_t""$have_x" 1>&6
1630   no_x=yes
1631 else
1632   # If each of the values was on the command line, it overrides each guess.
1633   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1634   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1635   # Update the cache value to reflect the command line values.
1636   ac_cv_have_x="have_x=yes \
1637                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1638   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1639 fi
1640
1641         not_really_there=""
1642         if test "$no_x" = ""; then
1643                 if test "$x_includes" = ""; then
1644                         cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <X11/XIntrinsic.h>
1648 EOF
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1652 if test -z "$ac_err"; then
1653   :
1654 else
1655   echo "$ac_err" >&5
1656   echo "configure: failed program was:" >&5
1657   cat conftest.$ac_ext >&5
1658   rm -rf conftest*
1659   not_really_there="yes"
1660 fi
1661 rm -f conftest*
1662                 else
1663                         if test ! -r $x_includes/X11/Intrinsic.h; then
1664                                 not_really_there="yes"
1665                         fi
1666                 fi
1667         fi
1668         if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
1669                 echo checking for X11 header files
1670                 XINCLUDES="# no special path needed"
1671                 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1674 #include <X11/Intrinsic.h>
1675 EOF
1676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1677 { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1679 if test -z "$ac_err"; then
1680   :
1681 else
1682   echo "$ac_err" >&5
1683   echo "configure: failed program was:" >&5
1684   cat conftest.$ac_ext >&5
1685   rm -rf conftest*
1686   XINCLUDES="nope"
1687 fi
1688 rm -f conftest*
1689                 if test "$XINCLUDES" = nope; then dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include"
1690                         for i in $dirs ; do
1691                                 if test -r $i/X11/Intrinsic.h; then
1692                                         XINCLUDES=" -I$i"
1693                                 fi
1694                         done
1695                 fi
1696         else
1697                 if test "$x_includes" != ""; then
1698                         XINCLUDES=-I$x_includes
1699                 else
1700                         XINCLUDES="# no special path needed"
1701                 fi
1702         fi
1703         if test "$XINCLUDES" = nope; then
1704                 echo "Warning:  couldn't find any X11 include files."
1705                 XINCLUDES="# no include files found"
1706         fi
1707         if test "$no_x" = yes; then
1708                 XLIBSW=nope
1709                 if test "$XLIBSW" = nope; then
1710                         dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
1711                 for i in $dirs ; do
1712                         if test -r $i/libX11.a; then
1713                                 XLIBSW="-L$i -lX11"
1714                         fi
1715                 done
1716         fi
1717         else
1718                 if test "$x_libraries" = ""; then
1719                         XLIBSW=-lX11
1720                 else
1721                         XLIBSW="-L$x_libraries -lX11"
1722                 fi
1723         fi
1724         if test "$XLIBSW" = nope ; then
1725                 echo $ac_n "checking for XCreateWindow in -lXwindow""... $ac_c" 1>&6
1726 echo "configure:1727: checking for XCreateWindow in -lXwindow" >&5
1727 ac_lib_var=`echo Xwindow'_'XCreateWindow | sed 'y%./+-%__p_%'`
1728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1729   echo $ac_n "(cached) $ac_c" 1>&6
1730 else
1731   ac_save_LIBS="$LIBS"
1732 LIBS="-lXwindow  $LIBS"
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1736 /* Override any gcc2 internal prototype to avoid an error.  */
1737 /* We use char because int might match the return type of a gcc2
1738     builtin and then its argument prototype would still apply.  */
1739 char XCreateWindow();
1740
1741 int main() {
1742 XCreateWindow()
1743 ; return 0; }
1744 EOF
1745 if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746   rm -rf conftest*
1747   eval "ac_cv_lib_$ac_lib_var=yes"
1748 else
1749   echo "configure: failed program was:" >&5
1750   cat conftest.$ac_ext >&5
1751   rm -rf conftest*
1752   eval "ac_cv_lib_$ac_lib_var=no"
1753 fi
1754 rm -f conftest*
1755 LIBS="$ac_save_LIBS"
1756
1757 fi
1758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1759   echo "$ac_t""yes" 1>&6
1760   XLIBSW=-lXwindow
1761 else
1762   echo "$ac_t""no" 1>&6
1763 fi
1764
1765         fi
1766         if test "$XLIBSW" = nope ; then
1767                 echo "Warning:  couldn't find the X11 library archive.  Using -lX11."
1768                 XLIBSW=-lX11
1769         fi
1770         TKINC=$XINCLUDES
1771         TKLIB="${TKLIB} ${XLIBSW} ${TCLLIB}"
1772         IRCLIENT_SHELL=ir-tk
1773 fi
1774 trap '' 1 2 15
1775 cat > confcache <<\EOF
1776 # This file is a shell script that caches the results of configure
1777 # tests run on this system so they can be shared between configure
1778 # scripts and configure runs.  It is not useful on other systems.
1779 # If it contains results you don't want to keep, you may remove or edit it.
1780 #
1781 # By default, configure uses ./config.cache as the cache file,
1782 # creating it if it does not exist already.  You can give configure
1783 # the --cache-file=FILE option to use a different cache file; that is
1784 # what configure does when it calls configure scripts in
1785 # subdirectories, so they share the cache.
1786 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1787 # config.status only pays attention to the cache file if you give it the
1788 # --recheck option to rerun configure.
1789 #
1790 EOF
1791 # The following way of writing the cache mishandles newlines in values,
1792 # but we know of no workaround that is simple, portable, and efficient.
1793 # So, don't put newlines in cache variables' values.
1794 # Ultrix sh set writes to stderr and can't be redirected directly,
1795 # and sets the high bit in the cache file unless we assign to the vars.
1796 (set) 2>&1 |
1797   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1798   *ac_space=\ *)
1799     # `set' does not quote correctly, so add quotes (double-quote substitution
1800     # turns \\\\ into \\, and sed turns \\ into \).
1801     sed -n \
1802       -e "s/'/'\\\\''/g" \
1803       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1804     ;;
1805   *)
1806     # `set' quotes correctly as required by POSIX, so do not add quotes.
1807     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1808     ;;
1809   esac >> confcache
1810 if cmp -s $cache_file confcache; then
1811   :
1812 else
1813   if test -w $cache_file; then
1814     echo "updating cache $cache_file"
1815     cat confcache > $cache_file
1816   else
1817     echo "not updating unwritable cache $cache_file"
1818   fi
1819 fi
1820 rm -f confcache
1821
1822 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1823
1824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1825 # Let make expand exec_prefix.
1826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1827
1828 # Any assignment to VPATH causes Sun make to only execute
1829 # the first set of double-colon rules, so remove it if not needed.
1830 # If there is a colon in the path, we need to keep it.
1831 if test "x$srcdir" = x.; then
1832   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1833 fi
1834
1835 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1836
1837 # Transform confdefs.h into DEFS.
1838 # Protect against shell expansion while executing Makefile rules.
1839 # Protect against Makefile macro expansion.
1840 cat > conftest.defs <<\EOF
1841 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1842 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1843 s%\[%\\&%g
1844 s%\]%\\&%g
1845 s%\$%$$%g
1846 EOF
1847 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1848 rm -f conftest.defs
1849
1850
1851 # Without the "./", some shells look in PATH for config.status.
1852 : ${CONFIG_STATUS=./config.status}
1853
1854 echo creating $CONFIG_STATUS
1855 rm -f $CONFIG_STATUS
1856 cat > $CONFIG_STATUS <<EOF
1857 #! /bin/sh
1858 # Generated automatically by configure.
1859 # Run this file to recreate the current configuration.
1860 # This directory was configured as follows,
1861 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1862 #
1863 # $0 $ac_configure_args
1864 #
1865 # Compiler output produced by configure, useful for debugging
1866 # configure, is in ./config.log if it exists.
1867
1868 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1869 for ac_option
1870 do
1871   case "\$ac_option" in
1872   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1873     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1874     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1875   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1876     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1877     exit 0 ;;
1878   -help | --help | --hel | --he | --h)
1879     echo "\$ac_cs_usage"; exit 0 ;;
1880   *) echo "\$ac_cs_usage"; exit 1 ;;
1881   esac
1882 done
1883
1884 ac_given_srcdir=$srcdir
1885 ac_given_INSTALL="$INSTALL"
1886
1887 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1888 EOF
1889 cat >> $CONFIG_STATUS <<EOF
1890
1891 # Protect against being on the right side of a sed subst in config.status.
1892 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1893  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1894 $ac_vpsub
1895 $extrasub
1896 s%@SHELL@%$SHELL%g
1897 s%@CFLAGS@%$CFLAGS%g
1898 s%@CPPFLAGS@%$CPPFLAGS%g
1899 s%@CXXFLAGS@%$CXXFLAGS%g
1900 s%@FFLAGS@%$FFLAGS%g
1901 s%@DEFS@%$DEFS%g
1902 s%@LDFLAGS@%$LDFLAGS%g
1903 s%@LIBS@%$LIBS%g
1904 s%@exec_prefix@%$exec_prefix%g
1905 s%@prefix@%$prefix%g
1906 s%@program_transform_name@%$program_transform_name%g
1907 s%@bindir@%$bindir%g
1908 s%@sbindir@%$sbindir%g
1909 s%@libexecdir@%$libexecdir%g
1910 s%@datadir@%$datadir%g
1911 s%@sysconfdir@%$sysconfdir%g
1912 s%@sharedstatedir@%$sharedstatedir%g
1913 s%@localstatedir@%$localstatedir%g
1914 s%@libdir@%$libdir%g
1915 s%@includedir@%$includedir%g
1916 s%@oldincludedir@%$oldincludedir%g
1917 s%@infodir@%$infodir%g
1918 s%@mandir@%$mandir%g
1919 s%@CC@%$CC%g
1920 s%@TCLLIB@%$TCLLIB%g
1921 s%@TKLIB@%$TKLIB%g
1922 s%@TCLINC@%$TCLINC%g
1923 s%@TKINC@%$TKINC%g
1924 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
1925 s%@SHLIB_LD@%$SHLIB_LD%g
1926 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
1927 s%@SHLIB_VERSION@%$SHLIB_VERSION%g
1928 s%@SHLIB_IRTCL@%$SHLIB_IRTCL%g
1929 s%@ALL_SPEC@%$ALL_SPEC%g
1930 s%@IRCLIENT_SHELL@%$IRCLIENT_SHELL%g
1931 s%@build_root@%$build_root%g
1932 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1933 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1934 s%@INSTALL_DATA@%$INSTALL_DATA%g
1935 s%@YAZLIB@%$YAZLIB%g
1936 s%@YAZLALIB@%$YAZLALIB%g
1937 s%@YAZINC@%$YAZINC%g
1938 s%@YAZVERSION@%$YAZVERSION%g
1939 s%@yazconfig@%$yazconfig%g
1940 s%@TCLSH@%$TCLSH%g
1941 s%@TCLSH8.2@%$TCLSH8.2%g
1942 s%@TCLSH8.1@%$TCLSH8.1%g
1943 s%@TCLSH8.0@%$TCLSH8.0%g
1944 s%@TCLSH7.6@%$TCLSH7.6%g
1945 s%@TCLSH7.5@%$TCLSH7.5%g
1946 s%@RANLIB@%$RANLIB%g
1947 s%@CPP@%$CPP%g
1948
1949 CEOF
1950 EOF
1951
1952 cat >> $CONFIG_STATUS <<\EOF
1953
1954 # Split the substitutions into bite-sized pieces for seds with
1955 # small command number limits, like on Digital OSF/1 and HP-UX.
1956 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1957 ac_file=1 # Number of current file.
1958 ac_beg=1 # First line for current file.
1959 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1960 ac_more_lines=:
1961 ac_sed_cmds=""
1962 while $ac_more_lines; do
1963   if test $ac_beg -gt 1; then
1964     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1965   else
1966     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1967   fi
1968   if test ! -s conftest.s$ac_file; then
1969     ac_more_lines=false
1970     rm -f conftest.s$ac_file
1971   else
1972     if test -z "$ac_sed_cmds"; then
1973       ac_sed_cmds="sed -f conftest.s$ac_file"
1974     else
1975       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1976     fi
1977     ac_file=`expr $ac_file + 1`
1978     ac_beg=$ac_end
1979     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1980   fi
1981 done
1982 if test -z "$ac_sed_cmds"; then
1983   ac_sed_cmds=cat
1984 fi
1985 EOF
1986
1987 cat >> $CONFIG_STATUS <<EOF
1988
1989 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1990 EOF
1991 cat >> $CONFIG_STATUS <<\EOF
1992 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1993   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1994   case "$ac_file" in
1995   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1996        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1997   *) ac_file_in="${ac_file}.in" ;;
1998   esac
1999
2000   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2001
2002   # Remove last slash and all that follows it.  Not all systems have dirname.
2003   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2004   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2005     # The file is in a subdirectory.
2006     test ! -d "$ac_dir" && mkdir "$ac_dir"
2007     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2008     # A "../" for each directory in $ac_dir_suffix.
2009     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2010   else
2011     ac_dir_suffix= ac_dots=
2012   fi
2013
2014   case "$ac_given_srcdir" in
2015   .)  srcdir=.
2016       if test -z "$ac_dots"; then top_srcdir=.
2017       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2018   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2019   *) # Relative path.
2020     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2021     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2022   esac
2023
2024   case "$ac_given_INSTALL" in
2025   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2026   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2027   esac
2028
2029   echo creating "$ac_file"
2030   rm -f "$ac_file"
2031   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2032   case "$ac_file" in
2033   *Makefile*) ac_comsub="1i\\
2034 # $configure_input" ;;
2035   *) ac_comsub= ;;
2036   esac
2037
2038   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2039   sed -e "$ac_comsub
2040 s%@configure_input@%$configure_input%g
2041 s%@srcdir@%$srcdir%g
2042 s%@top_srcdir@%$top_srcdir%g
2043 s%@INSTALL@%$INSTALL%g
2044 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2045 fi; done
2046 rm -f conftest.s*
2047
2048 EOF
2049 cat >> $CONFIG_STATUS <<EOF
2050
2051 EOF
2052 cat >> $CONFIG_STATUS <<\EOF
2053
2054 exit 0
2055 EOF
2056 chmod +x $CONFIG_STATUS
2057 rm -fr confdefs* $ac_clean_files
2058 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2059