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