3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-yazconfig=DIR yaz-config in DIR (example /home/yaz-1.7)"
17 --disable-threads disable threads"
19 --with-tclconfig=DIR tclConfig.sh in DIR"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file=./config.cache
34 program_transform_name=s,x,x,
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=include/zebraver.h
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='\c' ac_t=
530 echo $ac_n "checking for package""... $ac_c" 1>&6
531 echo "configure:532: checking for package" >&5
532 if test -r ${srcdir}/LICENSE.zmbol; then
533 echo "$ac_t""Z'mbol" 1>&6
535 cat >> confdefs.h <<\EOF
540 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
541 if test -f $ac_dir/install-sh; then
543 ac_install_sh="$ac_aux_dir/install-sh -c"
545 elif test -f $ac_dir/install.sh; then
547 ac_install_sh="$ac_aux_dir/install.sh -c"
551 if test -z "$ac_aux_dir"; then
552 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
554 ac_config_guess=$ac_aux_dir/config.guess
555 ac_config_sub=$ac_aux_dir/config.sub
556 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558 # Find a good install program. We prefer a C program (faster),
559 # so one script is as good as another. But avoid the broken or
560 # incompatible versions:
561 # SysV /etc/install, /usr/sbin/install
562 # SunOS /usr/etc/install
565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
568 # ./install, which can be erroneously created by make from ./install.sh.
569 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
570 echo "configure:571: checking for a BSD compatible install" >&5
571 if test -z "$INSTALL"; then
572 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
573 echo $ac_n "(cached) $ac_c" 1>&6
575 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
576 for ac_dir in $PATH; do
577 # Account for people who put trailing slashes in PATH elements.
579 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
581 # OSF1 and SCO ODT 3.0 have their own names for install.
582 # Don't use installbsd from OSF since it installs stuff as root
584 for ac_prog in ginstall scoinst install; do
585 if test -f $ac_dir/$ac_prog; then
586 if test $ac_prog = install &&
587 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
588 # AIX install. It has an incompatible calling convention.
591 ac_cv_path_install="$ac_dir/$ac_prog -c"
602 if test "${ac_cv_path_install+set}" = set; then
603 INSTALL="$ac_cv_path_install"
605 # As a last resort, use the slow shell script. We don't cache a
606 # path for INSTALL within a source directory, because that will
607 # break other packages using the cache if that directory is
608 # removed, or if the path is relative.
609 INSTALL="$ac_install_sh"
612 echo "$ac_t""$INSTALL" 1>&6
614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
615 # It thinks the first close brace ends the variable substitution.
616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
622 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
623 echo "configure:624: checking whether build environment is sane" >&5
626 echo timestamp > conftestfile
627 # Do `set' in a subshell so we don't clobber the current shell's
628 # arguments. Must try -L first in case configure is actually a
629 # symlink; some systems play weird games with the mod time of symlinks
630 # (eg FreeBSD returns the mod time of the symlink's containing
633 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
634 if test "$*" = "X"; then
636 set X `ls -t $srcdir/configure conftestfile`
638 if test "$*" != "X $srcdir/configure conftestfile" \
639 && test "$*" != "X conftestfile $srcdir/configure"; then
641 # If neither matched, then we have a broken ls. This can happen
642 # if, for instance, CONFIG_SHELL is bash and it inherits a
643 # broken ls alias from the environment. This has actually
644 # happened. Such a system could not be considered "sane".
645 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
646 alias in your environment" 1>&2; exit 1; }
649 test "$2" = conftestfile
655 { echo "configure: error: newly created file is older than distributed files!
656 Check your system clock" 1>&2; exit 1; }
659 echo "$ac_t""yes" 1>&6
660 if test "$program_transform_name" = s,x,x,; then
661 program_transform_name=
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
670 test "$program_prefix" != NONE &&
671 program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
680 echo "configure:681: checking whether ${MAKE-make} sets \${MAKE}" >&5
681 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
682 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 cat > conftestmake <<\EOF
687 @echo 'ac_maketemp="${MAKE}"'
689 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
690 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
691 if test -n "$ac_maketemp"; then
692 eval ac_cv_prog_make_${ac_make}_set=yes
694 eval ac_cv_prog_make_${ac_make}_set=no
698 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
699 echo "$ac_t""yes" 1>&6
702 echo "$ac_t""no" 1>&6
703 SET_MAKE="MAKE=${MAKE-make}"
711 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
712 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
714 cat >> confdefs.h <<EOF
715 #define PACKAGE "$PACKAGE"
718 cat >> confdefs.h <<EOF
719 #define VERSION "$VERSION"
724 missing_dir=`cd $ac_aux_dir && pwd`
725 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
726 echo "configure:727: checking for working aclocal" >&5
727 # Run test in a subshell; some versions of sh will print an error if
728 # an executable is not found, even if stderr is redirected.
729 # Redirect stdin to placate older versions of autoconf. Sigh.
730 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
732 echo "$ac_t""found" 1>&6
734 ACLOCAL="$missing_dir/missing aclocal"
735 echo "$ac_t""missing" 1>&6
738 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
739 echo "configure:740: checking for working autoconf" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 AUTOCONF="$missing_dir/missing autoconf"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working automake""... $ac_c" 1>&6
752 echo "configure:753: checking for working automake" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (automake --version) < /dev/null > /dev/null 2>&1; then
758 echo "$ac_t""found" 1>&6
760 AUTOMAKE="$missing_dir/missing automake"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
765 echo "configure:766: checking for working autoheader" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
770 AUTOHEADER=autoheader
771 echo "$ac_t""found" 1>&6
773 AUTOHEADER="$missing_dir/missing autoheader"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
778 echo "configure:779: checking for working makeinfo" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
784 echo "$ac_t""found" 1>&6
786 MAKEINFO="$missing_dir/missing makeinfo"
787 echo "$ac_t""missing" 1>&6
792 echo "$ac_t""Zebra" 1>&6
794 cat >> confdefs.h <<\EOF
803 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
804 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
806 cat >> confdefs.h <<EOF
807 #define PACKAGE "$PACKAGE"
810 cat >> confdefs.h <<EOF
811 #define VERSION "$VERSION"
816 missing_dir=`cd $ac_aux_dir && pwd`
817 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
818 echo "configure:819: checking for working aclocal" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
824 echo "$ac_t""found" 1>&6
826 ACLOCAL="$missing_dir/missing aclocal"
827 echo "$ac_t""missing" 1>&6
830 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
831 echo "configure:832: checking for working autoconf" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
837 echo "$ac_t""found" 1>&6
839 AUTOCONF="$missing_dir/missing autoconf"
840 echo "$ac_t""missing" 1>&6
843 echo $ac_n "checking for working automake""... $ac_c" 1>&6
844 echo "configure:845: checking for working automake" >&5
845 # Run test in a subshell; some versions of sh will print an error if
846 # an executable is not found, even if stderr is redirected.
847 # Redirect stdin to placate older versions of autoconf. Sigh.
848 if (automake --version) < /dev/null > /dev/null 2>&1; then
850 echo "$ac_t""found" 1>&6
852 AUTOMAKE="$missing_dir/missing automake"
853 echo "$ac_t""missing" 1>&6
856 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
857 echo "configure:858: checking for working autoheader" >&5
858 # Run test in a subshell; some versions of sh will print an error if
859 # an executable is not found, even if stderr is redirected.
860 # Redirect stdin to placate older versions of autoconf. Sigh.
861 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
862 AUTOHEADER=autoheader
863 echo "$ac_t""found" 1>&6
865 AUTOHEADER="$missing_dir/missing autoheader"
866 echo "$ac_t""missing" 1>&6
869 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
870 echo "configure:871: checking for working makeinfo" >&5
871 # Run test in a subshell; some versions of sh will print an error if
872 # an executable is not found, even if stderr is redirected.
873 # Redirect stdin to placate older versions of autoconf. Sigh.
874 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
876 echo "$ac_t""found" 1>&6
878 MAKEINFO="$missing_dir/missing makeinfo"
879 echo "$ac_t""missing" 1>&6
883 if test ! -r ${srcdir}/isam; then
885 touch ${srcdir}/isam/Makefile.in
887 if test ! -r ${srcdir}/isamc; then
888 mkdir ${srcdir}/isamc
889 touch ${srcdir}/isamc/Makefile.in
891 if test ! -r ${srcdir}/isamb; then
892 mkdir ${srcdir}/isamb
893 touch ${srcdir}/isamb/Makefile.in
898 if test $PACKAGE = zmbol; then
909 # Extract the first word of "gcc", so it can be a program name with args.
910 set dummy gcc; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 if test -n "$CC"; then
917 ac_cv_prog_CC="$CC" # Let the user override the test.
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
921 for ac_dir in $ac_dummy; do
922 test -z "$ac_dir" && ac_dir=.
923 if test -f $ac_dir/$ac_word; then
932 if test -n "$CC"; then
933 echo "$ac_t""$CC" 1>&6
935 echo "$ac_t""no" 1>&6
938 if test -z "$CC"; then
939 # Extract the first word of "cc", so it can be a program name with args.
940 set dummy cc; ac_word=$2
941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
942 echo "configure:943: checking for $ac_word" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 if test -n "$CC"; then
947 ac_cv_prog_CC="$CC" # Let the user override the test.
949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
964 if test $ac_prog_rejected = yes; then
965 # We found a bogon in the path, so make sure we never use it.
966 set dummy $ac_cv_prog_CC
968 if test $# -gt 0; then
969 # We chose a different compiler from the bogus one.
970 # However, it has the same basename, so the bogon will be chosen
971 # first if we set CC to just the basename; use the full file name.
973 set dummy "$ac_dir/$ac_word" "$@"
981 if test -n "$CC"; then
982 echo "$ac_t""$CC" 1>&6
984 echo "$ac_t""no" 1>&6
987 if test -z "$CC"; then
990 # Extract the first word of "cl", so it can be a program name with args.
991 set dummy cl; ac_word=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC="$CC" # Let the user override the test.
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1021 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1024 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1029 ac_cpp='$CPP $CPPFLAGS'
1030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1032 cross_compiling=$ac_cv_prog_cc_cross
1034 cat > conftest.$ac_ext << EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1042 ac_cv_prog_cc_works=yes
1043 # If we can't run a trivial program, we are probably using a cross compiler.
1044 if (./conftest; exit) 2>/dev/null; then
1045 ac_cv_prog_cc_cross=no
1047 ac_cv_prog_cc_cross=yes
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1052 ac_cv_prog_cc_works=no
1056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1057 ac_cpp='$CPP $CPPFLAGS'
1058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1060 cross_compiling=$ac_cv_prog_cc_cross
1062 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1063 if test $ac_cv_prog_cc_works = no; then
1064 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1066 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1067 echo "configure:1068: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1068 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1069 cross_compiling=$ac_cv_prog_cc_cross
1071 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1072 echo "configure:1073: checking whether we are using GNU C" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 cat > conftest.c <<EOF
1081 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1088 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1090 if test $ac_cv_prog_gcc = yes; then
1096 ac_test_CFLAGS="${CFLAGS+set}"
1097 ac_save_CFLAGS="$CFLAGS"
1099 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether ${CC-cc} accepts -g" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 echo 'void f(){}' > conftest.c
1105 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1114 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1115 if test "$ac_test_CFLAGS" = set; then
1116 CFLAGS="$ac_save_CFLAGS"
1117 elif test $ac_cv_prog_cc_g = yes; then
1118 if test "$GCC" = yes; then
1124 if test "$GCC" = yes; then
1131 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1132 echo "configure:1133: checking how to run the C preprocessor" >&5
1133 # On Suns, sometimes $CPP names a directory.
1134 if test -n "$CPP" && test -d "$CPP"; then
1137 if test -z "$CPP"; then
1138 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 # This must be in double quotes, not single quotes, because CPP may get
1142 # substituted into the Makefile and "${CC-cc}" will confuse make.
1144 # On the NeXT, cc -E runs the code through the compiler's parser,
1145 # not just through cpp.
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153 { (eval echo configure:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1155 if test -z "$ac_err"; then
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1162 CPP="${CC-cc} -E -traditional-cpp"
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1170 { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1172 if test -z "$ac_err"; then
1176 echo "configure: failed program was:" >&5
1177 cat conftest.$ac_ext >&5
1179 CPP="${CC-cc} -nologo -E"
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1187 { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1189 if test -z "$ac_err"; then
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1203 ac_cv_prog_CPP="$CPP"
1205 CPP="$ac_cv_prog_CPP"
1207 ac_cv_prog_CPP="$CPP"
1209 echo "$ac_t""$CPP" 1>&6
1211 # Find a good install program. We prefer a C program (faster),
1212 # so one script is as good as another. But avoid the broken or
1213 # incompatible versions:
1214 # SysV /etc/install, /usr/sbin/install
1215 # SunOS /usr/etc/install
1216 # IRIX /sbin/install
1218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1221 # ./install, which can be erroneously created by make from ./install.sh.
1222 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1223 echo "configure:1224: checking for a BSD compatible install" >&5
1224 if test -z "$INSTALL"; then
1225 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1229 for ac_dir in $PATH; do
1230 # Account for people who put trailing slashes in PATH elements.
1232 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1234 # OSF1 and SCO ODT 3.0 have their own names for install.
1235 # Don't use installbsd from OSF since it installs stuff as root
1237 for ac_prog in ginstall scoinst install; do
1238 if test -f $ac_dir/$ac_prog; then
1239 if test $ac_prog = install &&
1240 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1241 # AIX install. It has an incompatible calling convention.
1244 ac_cv_path_install="$ac_dir/$ac_prog -c"
1255 if test "${ac_cv_path_install+set}" = set; then
1256 INSTALL="$ac_cv_path_install"
1258 # As a last resort, use the slow shell script. We don't cache a
1259 # path for INSTALL within a source directory, because that will
1260 # break other packages using the cache if that directory is
1261 # removed, or if the path is relative.
1262 INSTALL="$ac_install_sh"
1265 echo "$ac_t""$INSTALL" 1>&6
1267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1268 # It thinks the first close brace ends the variable substitution.
1269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1275 # Extract the first word of "ranlib", so it can be a program name with args.
1276 set dummy ranlib; ac_word=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$RANLIB"; then
1283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_RANLIB="ranlib"
1295 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1298 RANLIB="$ac_cv_prog_RANLIB"
1299 if test -n "$RANLIB"; then
1300 echo "$ac_t""$RANLIB" 1>&6
1302 echo "$ac_t""no" 1>&6
1313 # Check whether --with-yazconfig or --without-yazconfig was given.
1314 if test "${with_yazconfig+set}" = set; then
1315 withval="$with_yazconfig"
1319 if test "x$yazpath" != "xNONE"; then
1320 yazconfig=$yazpath/yaz-config
1322 for i in ../yaz* ../yaz; do
1324 if test -r $i/yaz-config; then
1325 yazconfig=$i/yaz-config
1329 if test "x$yazconfig" = "xNONE"; then
1330 # Extract the first word of "yaz-config", so it can be a program name with args.
1331 set dummy yaz-config; ac_word=$2
1332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_word" >&5
1334 if eval "test \"`echo '$''{'ac_cv_path_yazconfig'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 case "$yazconfig" in
1339 ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a path.
1342 ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a dos path.
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1347 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_path_yazconfig="$ac_dir/$ac_word"
1355 test -z "$ac_cv_path_yazconfig" && ac_cv_path_yazconfig="NONE"
1359 yazconfig="$ac_cv_path_yazconfig"
1360 if test -n "$yazconfig"; then
1361 echo "$ac_t""$yazconfig" 1>&6
1363 echo "$ac_t""no" 1>&6
1368 echo $ac_n "checking for YAZ""... $ac_c" 1>&6
1369 echo "configure:1370: checking for YAZ" >&5
1370 if $yazconfig --version >/dev/null 2>&1; then
1371 YAZLIB=`$yazconfig --libs`
1372 # if this is empty, it's a simple version YAZ 1.6 script
1373 # so we have to source it instead...
1374 if test "X$YAZLIB" = "X"; then
1377 YAZLALIB=`$yazconfig --lalibs`
1378 YAZINC=`$yazconfig --cflags`
1379 YAZVERSION=`$yazconfig --version`
1381 echo "$ac_t""$yazconfig" 1>&6
1383 echo "$ac_t""Not found" 1>&6
1388 # Check whether --enable-threads or --disable-threads was given.
1389 if test "${enable_threads+set}" = set; then
1390 enableval="$enable_threads"
1391 enable_threads=$enableval
1396 if test "$enable_threads" = "yes"; then
1397 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
1398 echo "configure:1399: checking for main in -lpthread" >&5
1399 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
1400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 ac_save_LIBS="$LIBS"
1404 LIBS="-lpthread $LIBS"
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1415 eval "ac_cv_lib_$ac_lib_var=yes"
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1420 eval "ac_cv_lib_$ac_lib_var=no"
1423 LIBS="$ac_save_LIBS"
1426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1427 echo "$ac_t""yes" 1>&6
1428 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1430 cat >> confdefs.h <<EOF
1431 #define $ac_tr_lib 1
1434 LIBS="-lpthread $LIBS"
1437 echo "$ac_t""no" 1>&6
1440 echo $ac_n "checking for working POSIX Threads""... $ac_c" 1>&6
1441 echo "configure:1442: checking for working POSIX Threads" >&5
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1445 #include <pthread.h>
1446 int func(void *p) { return 0; }
1450 pthread_t pthread_id;
1451 int r = pthread_create (&pthread_id, 0, func, 0);
1454 if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1464 if test "$thread_ok" = "yes"; then
1465 echo "$ac_t""yes" 1>&6
1466 cat >> confdefs.h <<\EOF
1467 #define HAVE_PTHREAD_H 1
1470 cat >> confdefs.h <<\EOF
1471 #define _REENTRANT 1
1475 echo "$ac_t""no" 1>&6
1481 # Check whether --with-tclconfig or --without-tclconfig was given.
1482 if test "${with_tclconfig+set}" = set; then
1483 withval="$with_tclconfig"
1487 if test "x$tclconfig" = xNONE; then
1488 saveprefix=${prefix}
1489 if test "x$prefix" = xNONE; then
1490 echo $ac_n "checking for prefix by $ac_c" 1>&6
1491 # Extract the first word of "tclsh", so it can be a program name with args.
1492 set dummy tclsh; ac_word=$2
1493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1494 echo "configure:1495: checking for $ac_word" >&5
1495 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1500 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
1503 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
1506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1508 for ac_dir in $ac_dummy; do
1509 test -z "$ac_dir" && ac_dir=.
1510 if test -f $ac_dir/$ac_word; then
1511 ac_cv_path_TCLSH="$ac_dir/$ac_word"
1519 TCLSH="$ac_cv_path_TCLSH"
1520 if test -n "$TCLSH"; then
1521 echo "$ac_t""$TCLSH" 1>&6
1523 echo "$ac_t""no" 1>&6
1526 if test -n "$ac_cv_path_TCLSH"; then
1527 prefix=`echo $ac_cv_path_TCLSH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
1531 tclconfig=${prefix}/lib
1532 prefix=${saveprefix}
1534 echo $ac_n "checking for Tcl""... $ac_c" 1>&6
1535 echo "configure:1536: checking for Tcl" >&5
1536 if test -r ${tclconfig}/tclConfig.sh; then
1537 . ${tclconfig}/tclConfig.sh
1538 if test -r ${tclconfig}/../generic/tcl.h; then
1539 TCL_INCLUDE=-I${tclconfig}/../generic
1540 TCL_LIB="$TCL_BUILD_LIB_SPEC $TCL_LIBS"
1542 TCL_INCLUDE=-I${TCL_PREFIX}/include
1543 TCL_LIB="$TCL_LIB_SPEC $TCL_LIBS"
1545 SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1546 SHLIB_LD=$TCL_SHLIB_LD
1547 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1548 SHLIB_VERSION=$TCL_SHLIB_VERSION
1549 echo "$ac_t""$TCL_VERSION" 1>&6
1550 cat >> confdefs.h <<\EOF
1551 #define HAVE_TCL_H 1
1555 echo "$ac_t""Not found" 1>&6
1556 cat >> confdefs.h <<\EOF
1557 #define HAVE_TCL_H 0
1561 for ac_hdr in sys/times.h
1563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_hdr" >&5
1566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1577 if test -z "$ac_err"; then
1579 eval "ac_cv_header_$ac_safe=yes"
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1585 eval "ac_cv_header_$ac_safe=no"
1589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1590 echo "$ac_t""yes" 1>&6
1591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1592 cat >> confdefs.h <<EOF
1593 #define $ac_tr_hdr 1
1597 echo "$ac_t""no" 1>&6
1601 echo $ac_n "checking for bzCompressInit in -lbz2""... $ac_c" 1>&6
1602 echo "configure:1603: checking for bzCompressInit in -lbz2" >&5
1603 ac_lib_var=`echo bz2'_'bzCompressInit | sed 'y%./+-%__p_%'`
1604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 ac_save_LIBS="$LIBS"
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 /* Override any gcc2 internal prototype to avoid an error. */
1613 /* We use char because int might match the return type of a gcc2
1614 builtin and then its argument prototype would still apply. */
1615 char bzCompressInit();
1621 if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1623 eval "ac_cv_lib_$ac_lib_var=yes"
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1628 eval "ac_cv_lib_$ac_lib_var=no"
1631 LIBS="$ac_save_LIBS"
1634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1635 echo "$ac_t""yes" 1>&6
1636 ac_tr_lib=HAVE_LIB`echo bz2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1637 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1638 cat >> confdefs.h <<EOF
1639 #define $ac_tr_lib 1
1645 echo "$ac_t""no" 1>&6
1648 if test "$ac_cv_lib_bz2_bzCompressInit" = "yes"; then
1649 for ac_hdr in bzlib.h
1651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_hdr" >&5
1654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1663 { (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1665 if test -z "$ac_err"; then
1667 eval "ac_cv_header_$ac_safe=yes"
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1673 eval "ac_cv_header_$ac_safe=no"
1677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1678 echo "$ac_t""yes" 1>&6
1679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1680 cat >> confdefs.h <<EOF
1681 #define $ac_tr_hdr 1
1685 echo "$ac_t""no" 1>&6
1690 echo $ac_n "checking for LFS""... $ac_c" 1>&6
1691 echo "configure:1692: checking for LFS" >&5
1692 if test "$cross_compiling" = yes; then
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 #define _FILE_OFFSET_BITS 64
1702 int main(int argc, char **argv)
1706 if (sizeof(off_t) == 8) {
1708 sprintf (tmp_str, "%Ld", o+o+o);
1709 if (!strcmp (tmp_str, "6000000000"))
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1728 if test "$bits" = "64"; then
1729 cat >> confdefs.h <<\EOF
1730 #define _FILE_OFFSET_BITS 64
1733 echo "$ac_t""yes" 1>&6
1735 echo "$ac_t""no" 1>&6
1737 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1738 echo "configure:1739: checking for ANSI C header files" >&5
1739 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1751 { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1753 if test -z "$ac_err"; then
1755 ac_cv_header_stdc=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 ac_cv_header_stdc=no
1765 if test $ac_cv_header_stdc = yes; then
1766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1767 cat > conftest.$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1773 egrep "memchr" >/dev/null 2>&1; then
1777 ac_cv_header_stdc=no
1783 if test $ac_cv_header_stdc = yes; then
1784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1791 egrep "free" >/dev/null 2>&1; then
1795 ac_cv_header_stdc=no
1801 if test $ac_cv_header_stdc = yes; then
1802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1803 if test "$cross_compiling" = yes; then
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1810 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1811 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1813 int main () { int i; for (i = 0; i < 256; i++)
1814 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 ac_cv_header_stdc=no
1833 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1834 if test $ac_cv_header_stdc = yes; then
1835 cat >> confdefs.h <<\EOF
1836 #define STDC_HEADERS 1
1841 if test "$ac_cv_header_stdc" = "no"; then
1842 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
1845 cat > confcache <<\EOF
1846 # This file is a shell script that caches the results of configure
1847 # tests run on this system so they can be shared between configure
1848 # scripts and configure runs. It is not useful on other systems.
1849 # If it contains results you don't want to keep, you may remove or edit it.
1851 # By default, configure uses ./config.cache as the cache file,
1852 # creating it if it does not exist already. You can give configure
1853 # the --cache-file=FILE option to use a different cache file; that is
1854 # what configure does when it calls configure scripts in
1855 # subdirectories, so they share the cache.
1856 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1857 # config.status only pays attention to the cache file if you give it the
1858 # --recheck option to rerun configure.
1861 # The following way of writing the cache mishandles newlines in values,
1862 # but we know of no workaround that is simple, portable, and efficient.
1863 # So, don't put newlines in cache variables' values.
1864 # Ultrix sh set writes to stderr and can't be redirected directly,
1865 # and sets the high bit in the cache file unless we assign to the vars.
1867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1869 # `set' does not quote correctly, so add quotes (double-quote substitution
1870 # turns \\\\ into \\, and sed turns \\ into \).
1872 -e "s/'/'\\\\''/g" \
1873 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1876 # `set' quotes correctly as required by POSIX, so do not add quotes.
1877 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1880 if cmp -s $cache_file confcache; then
1883 if test -w $cache_file; then
1884 echo "updating cache $cache_file"
1885 cat confcache > $cache_file
1887 echo "not updating unwritable cache $cache_file"
1892 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1895 # Let make expand exec_prefix.
1896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1898 # Any assignment to VPATH causes Sun make to only execute
1899 # the first set of double-colon rules, so remove it if not needed.
1900 # If there is a colon in the path, we need to keep it.
1901 if test "x$srcdir" = x.; then
1902 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1905 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1907 # Transform confdefs.h into DEFS.
1908 # Protect against shell expansion while executing Makefile rules.
1909 # Protect against Makefile macro expansion.
1910 cat > conftest.defs <<\EOF
1911 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1912 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1917 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1921 # Without the "./", some shells look in PATH for config.status.
1922 : ${CONFIG_STATUS=./config.status}
1924 echo creating $CONFIG_STATUS
1925 rm -f $CONFIG_STATUS
1926 cat > $CONFIG_STATUS <<EOF
1928 # Generated automatically by configure.
1929 # Run this file to recreate the current configuration.
1930 # This directory was configured as follows,
1931 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1933 # $0 $ac_configure_args
1935 # Compiler output produced by configure, useful for debugging
1936 # configure, is in ./config.log if it exists.
1938 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1941 case "\$ac_option" in
1942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1943 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1944 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1945 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1946 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1948 -help | --help | --hel | --he | --h)
1949 echo "\$ac_cs_usage"; exit 0 ;;
1950 *) echo "\$ac_cs_usage"; exit 1 ;;
1954 ac_given_srcdir=$srcdir
1955 ac_given_INSTALL="$INSTALL"
1957 trap 'rm -fr `echo "
1973 test/Makefile test/gils/Makefile test/usmarc/Makefile
1974 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1976 cat >> $CONFIG_STATUS <<EOF
1978 # Protect against being on the right side of a sed subst in config.status.
1979 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1980 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1984 s%@CFLAGS@%$CFLAGS%g
1985 s%@CPPFLAGS@%$CPPFLAGS%g
1986 s%@CXXFLAGS@%$CXXFLAGS%g
1987 s%@FFLAGS@%$FFLAGS%g
1989 s%@LDFLAGS@%$LDFLAGS%g
1991 s%@exec_prefix@%$exec_prefix%g
1992 s%@prefix@%$prefix%g
1993 s%@program_transform_name@%$program_transform_name%g
1994 s%@bindir@%$bindir%g
1995 s%@sbindir@%$sbindir%g
1996 s%@libexecdir@%$libexecdir%g
1997 s%@datadir@%$datadir%g
1998 s%@sysconfdir@%$sysconfdir%g
1999 s%@sharedstatedir@%$sharedstatedir%g
2000 s%@localstatedir@%$localstatedir%g
2001 s%@libdir@%$libdir%g
2002 s%@includedir@%$includedir%g
2003 s%@oldincludedir@%$oldincludedir%g
2004 s%@infodir@%$infodir%g
2005 s%@mandir@%$mandir%g
2006 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2007 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2008 s%@INSTALL_DATA@%$INSTALL_DATA%g
2009 s%@PACKAGE@%$PACKAGE%g
2010 s%@VERSION@%$VERSION%g
2011 s%@ACLOCAL@%$ACLOCAL%g
2012 s%@AUTOCONF@%$AUTOCONF%g
2013 s%@AUTOMAKE@%$AUTOMAKE%g
2014 s%@AUTOHEADER@%$AUTOHEADER%g
2015 s%@MAKEINFO@%$MAKEINFO%g
2016 s%@SET_MAKE@%$SET_MAKE%g
2017 s%@ISZMBOL_TRUE@%$ISZMBOL_TRUE%g
2018 s%@ISZMBOL_FALSE@%$ISZMBOL_FALSE%g
2019 s%@TCL_INCLUDE@%$TCL_INCLUDE%g
2020 s%@TCL_LIB@%$TCL_LIB%g
2021 s%@PROGPREFIX@%$PROGPREFIX%g
2024 s%@RANLIB@%$RANLIB%g
2025 s%@YAZLIB@%$YAZLIB%g
2026 s%@YAZLALIB@%$YAZLALIB%g
2027 s%@YAZINC@%$YAZINC%g
2028 s%@YAZVERSION@%$YAZVERSION%g
2029 s%@yazconfig@%$yazconfig%g
2035 cat >> $CONFIG_STATUS <<\EOF
2037 # Split the substitutions into bite-sized pieces for seds with
2038 # small command number limits, like on Digital OSF/1 and HP-UX.
2039 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2040 ac_file=1 # Number of current file.
2041 ac_beg=1 # First line for current file.
2042 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2045 while $ac_more_lines; do
2046 if test $ac_beg -gt 1; then
2047 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2049 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2051 if test ! -s conftest.s$ac_file; then
2053 rm -f conftest.s$ac_file
2055 if test -z "$ac_sed_cmds"; then
2056 ac_sed_cmds="sed -f conftest.s$ac_file"
2058 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2060 ac_file=`expr $ac_file + 1`
2062 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2065 if test -z "$ac_sed_cmds"; then
2070 cat >> $CONFIG_STATUS <<EOF
2072 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2087 test/Makefile test/gils/Makefile test/usmarc/Makefile
2090 cat >> $CONFIG_STATUS <<\EOF
2091 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2094 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2095 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2096 *) ac_file_in="${ac_file}.in" ;;
2099 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2101 # Remove last slash and all that follows it. Not all systems have dirname.
2102 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2103 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2104 # The file is in a subdirectory.
2105 test ! -d "$ac_dir" && mkdir "$ac_dir"
2106 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2107 # A "../" for each directory in $ac_dir_suffix.
2108 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2110 ac_dir_suffix= ac_dots=
2113 case "$ac_given_srcdir" in
2115 if test -z "$ac_dots"; then top_srcdir=.
2116 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2117 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2119 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2120 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2123 case "$ac_given_INSTALL" in
2124 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2125 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2128 echo creating "$ac_file"
2130 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2132 *Makefile*) ac_comsub="1i\\
2133 # $configure_input" ;;
2137 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2139 s%@configure_input@%$configure_input%g
2140 s%@srcdir@%$srcdir%g
2141 s%@top_srcdir@%$top_srcdir%g
2142 s%@INSTALL@%$INSTALL%g
2143 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2148 cat >> $CONFIG_STATUS <<EOF
2151 cat >> $CONFIG_STATUS <<\EOF
2155 chmod +x $CONFIG_STATUS
2156 rm -fr confdefs* $ac_clean_files
2157 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1