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 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --disable-comp use old encoders, i.e. disable the YAZ ASN.1 Compiler"
27 --enable-tcpd[=PREFIX] enable TCP wrapper for server if available"
29 --disable-threads disable threads"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file=./config.cache
44 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=include/yaz/yaz-version.h
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='\c' ac_t=
541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 # Find a good install program. We prefer a C program (faster),
560 # so one script is as good as another. But avoid the broken or
561 # incompatible versions:
562 # SysV /etc/install, /usr/sbin/install
563 # SunOS /usr/etc/install
566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
569 # ./install, which can be erroneously created by make from ./install.sh.
570 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
571 echo "configure:572: checking for a BSD compatible install" >&5
572 if test -z "$INSTALL"; then
573 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
577 for ac_dir in $PATH; do
578 # Account for people who put trailing slashes in PATH elements.
580 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
582 # OSF1 and SCO ODT 3.0 have their own names for install.
583 # Don't use installbsd from OSF since it installs stuff as root
585 for ac_prog in ginstall scoinst install; do
586 if test -f $ac_dir/$ac_prog; then
587 if test $ac_prog = install &&
588 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
589 # AIX install. It has an incompatible calling convention.
592 ac_cv_path_install="$ac_dir/$ac_prog -c"
603 if test "${ac_cv_path_install+set}" = set; then
604 INSTALL="$ac_cv_path_install"
606 # As a last resort, use the slow shell script. We don't cache a
607 # path for INSTALL within a source directory, because that will
608 # break other packages using the cache if that directory is
609 # removed, or if the path is relative.
610 INSTALL="$ac_install_sh"
613 echo "$ac_t""$INSTALL" 1>&6
615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
616 # It thinks the first close brace ends the variable substitution.
617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
623 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624 echo "configure:625: checking whether build environment is sane" >&5
627 echo timestamp > conftestfile
628 # Do `set' in a subshell so we don't clobber the current shell's
629 # arguments. Must try -L first in case configure is actually a
630 # symlink; some systems play weird games with the mod time of symlinks
631 # (eg FreeBSD returns the mod time of the symlink's containing
634 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
635 if test "$*" = "X"; then
637 set X `ls -t $srcdir/configure conftestfile`
639 if test "$*" != "X $srcdir/configure conftestfile" \
640 && test "$*" != "X conftestfile $srcdir/configure"; then
642 # If neither matched, then we have a broken ls. This can happen
643 # if, for instance, CONFIG_SHELL is bash and it inherits a
644 # broken ls alias from the environment. This has actually
645 # happened. Such a system could not be considered "sane".
646 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
647 alias in your environment" 1>&2; exit 1; }
650 test "$2" = conftestfile
656 { echo "configure: error: newly created file is older than distributed files!
657 Check your system clock" 1>&2; exit 1; }
660 echo "$ac_t""yes" 1>&6
661 if test "$program_transform_name" = s,x,x,; then
662 program_transform_name=
664 # Double any \ or $. echo might interpret backslashes.
665 cat <<\EOF_SED > conftestsed
666 s,\\,\\\\,g; s,\$,$$,g
668 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
671 test "$program_prefix" != NONE &&
672 program_transform_name="s,^,${program_prefix},; $program_transform_name"
673 # Use a double $ so make ignores it.
674 test "$program_suffix" != NONE &&
675 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
677 # sed with no file args requires a program.
678 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
680 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
681 echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5
682 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
683 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 cat > conftestmake <<\EOF
688 @echo 'ac_maketemp="${MAKE}"'
690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
691 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
692 if test -n "$ac_maketemp"; then
693 eval ac_cv_prog_make_${ac_make}_set=yes
695 eval ac_cv_prog_make_${ac_make}_set=no
699 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
700 echo "$ac_t""yes" 1>&6
703 echo "$ac_t""no" 1>&6
704 SET_MAKE="MAKE=${MAKE-make}"
712 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
713 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
715 cat >> confdefs.h <<EOF
716 #define PACKAGE "$PACKAGE"
719 cat >> confdefs.h <<EOF
720 #define VERSION "$VERSION"
725 missing_dir=`cd $ac_aux_dir && pwd`
726 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
727 echo "configure:728: checking for working aclocal" >&5
728 # Run test in a subshell; some versions of sh will print an error if
729 # an executable is not found, even if stderr is redirected.
730 # Redirect stdin to placate older versions of autoconf. Sigh.
731 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
733 echo "$ac_t""found" 1>&6
735 ACLOCAL="$missing_dir/missing aclocal"
736 echo "$ac_t""missing" 1>&6
739 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
740 echo "configure:741: checking for working autoconf" >&5
741 # Run test in a subshell; some versions of sh will print an error if
742 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf. Sigh.
744 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
746 echo "$ac_t""found" 1>&6
748 AUTOCONF="$missing_dir/missing autoconf"
749 echo "$ac_t""missing" 1>&6
752 echo $ac_n "checking for working automake""... $ac_c" 1>&6
753 echo "configure:754: checking for working automake" >&5
754 # Run test in a subshell; some versions of sh will print an error if
755 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf. Sigh.
757 if (automake --version) < /dev/null > /dev/null 2>&1; then
759 echo "$ac_t""found" 1>&6
761 AUTOMAKE="$missing_dir/missing automake"
762 echo "$ac_t""missing" 1>&6
765 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
766 echo "configure:767: checking for working autoheader" >&5
767 # Run test in a subshell; some versions of sh will print an error if
768 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf. Sigh.
770 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
771 AUTOHEADER=autoheader
772 echo "$ac_t""found" 1>&6
774 AUTOHEADER="$missing_dir/missing autoheader"
775 echo "$ac_t""missing" 1>&6
778 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
779 echo "configure:780: checking for working makeinfo" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
785 echo "$ac_t""found" 1>&6
787 MAKEINFO="$missing_dir/missing makeinfo"
788 echo "$ac_t""missing" 1>&6
793 # Extract the first word of "gcc", so it can be a program name with args.
794 set dummy gcc; ac_word=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 if test -n "$CC"; then
801 ac_cv_prog_CC="$CC" # Let the user override the test.
803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
805 for ac_dir in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir=.
807 if test -f $ac_dir/$ac_word; then
816 if test -n "$CC"; then
817 echo "$ac_t""$CC" 1>&6
819 echo "$ac_t""no" 1>&6
822 if test -z "$CC"; then
823 # Extract the first word of "cc", so it can be a program name with args.
824 set dummy cc; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$CC"; then
831 ac_cv_prog_CC="$CC" # Let the user override the test.
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
839 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
848 if test $ac_prog_rejected = yes; then
849 # We found a bogon in the path, so make sure we never use it.
850 set dummy $ac_cv_prog_CC
852 if test $# -gt 0; then
853 # We chose a different compiler from the bogus one.
854 # However, it has the same basename, so the bogon will be chosen
855 # first if we set CC to just the basename; use the full file name.
857 set dummy "$ac_dir/$ac_word" "$@"
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
874 # Extract the first word of "cl", so it can be a program name with args.
875 set dummy cl; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
886 for ac_dir in $ac_dummy; do
887 test -z "$ac_dir" && ac_dir=.
888 if test -f $ac_dir/$ac_word; then
897 if test -n "$CC"; then
898 echo "$ac_t""$CC" 1>&6
900 echo "$ac_t""no" 1>&6
905 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
909 echo "configure:910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
912 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
913 ac_cpp='$CPP $CPPFLAGS'
914 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
915 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
916 cross_compiling=$ac_cv_prog_cc_cross
918 cat > conftest.$ac_ext << EOF
920 #line 921 "configure"
921 #include "confdefs.h"
925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
926 ac_cv_prog_cc_works=yes
927 # If we can't run a trivial program, we are probably using a cross compiler.
928 if (./conftest; exit) 2>/dev/null; then
929 ac_cv_prog_cc_cross=no
931 ac_cv_prog_cc_cross=yes
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
936 ac_cv_prog_cc_works=no
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling=$ac_cv_prog_cc_cross
946 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
947 if test $ac_cv_prog_cc_works = no; then
948 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
950 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
951 echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
952 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
956 echo "configure:957: checking whether we are using GNU C" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 cat > conftest.c <<EOF
965 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
972 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
974 if test $ac_cv_prog_gcc = yes; then
980 ac_test_CFLAGS="${CFLAGS+set}"
981 ac_save_CFLAGS="$CFLAGS"
983 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
984 echo "configure:985: checking whether ${CC-cc} accepts -g" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 echo 'void f(){}' > conftest.c
989 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
998 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
999 if test "$ac_test_CFLAGS" = set; then
1000 CFLAGS="$ac_save_CFLAGS"
1001 elif test $ac_cv_prog_cc_g = yes; then
1002 if test "$GCC" = yes; then
1008 if test "$GCC" = yes; then
1015 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1016 echo "configure:1017: checking how to run the C preprocessor" >&5
1017 # On Suns, sometimes $CPP names a directory.
1018 if test -n "$CPP" && test -d "$CPP"; then
1021 if test -z "$CPP"; then
1022 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 # This must be in double quotes, not single quotes, because CPP may get
1026 # substituted into the Makefile and "${CC-cc}" will confuse make.
1028 # On the NeXT, cc -E runs the code through the compiler's parser,
1029 # not just through cpp.
1030 cat > conftest.$ac_ext <<EOF
1031 #line 1032 "configure"
1032 #include "confdefs.h"
1036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1037 { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1039 if test -z "$ac_err"; then
1043 echo "configure: failed program was:" >&5
1044 cat conftest.$ac_ext >&5
1046 CPP="${CC-cc} -E -traditional-cpp"
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1054 { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1056 if test -z "$ac_err"; then
1060 echo "configure: failed program was:" >&5
1061 cat conftest.$ac_ext >&5
1063 CPP="${CC-cc} -nologo -E"
1064 cat > conftest.$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1071 { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1073 if test -z "$ac_err"; then
1077 echo "configure: failed program was:" >&5
1078 cat conftest.$ac_ext >&5
1087 ac_cv_prog_CPP="$CPP"
1089 CPP="$ac_cv_prog_CPP"
1091 ac_cv_prog_CPP="$CPP"
1093 echo "$ac_t""$CPP" 1>&6
1095 # Find a good install program. We prefer a C program (faster),
1096 # so one script is as good as another. But avoid the broken or
1097 # incompatible versions:
1098 # SysV /etc/install, /usr/sbin/install
1099 # SunOS /usr/etc/install
1100 # IRIX /sbin/install
1102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1105 # ./install, which can be erroneously created by make from ./install.sh.
1106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1107 echo "configure:1108: checking for a BSD compatible install" >&5
1108 if test -z "$INSTALL"; then
1109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1113 for ac_dir in $PATH; do
1114 # Account for people who put trailing slashes in PATH elements.
1116 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1118 # OSF1 and SCO ODT 3.0 have their own names for install.
1119 # Don't use installbsd from OSF since it installs stuff as root
1121 for ac_prog in ginstall scoinst install; do
1122 if test -f $ac_dir/$ac_prog; then
1123 if test $ac_prog = install &&
1124 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1125 # AIX install. It has an incompatible calling convention.
1128 ac_cv_path_install="$ac_dir/$ac_prog -c"
1139 if test "${ac_cv_path_install+set}" = set; then
1140 INSTALL="$ac_cv_path_install"
1142 # As a last resort, use the slow shell script. We don't cache a
1143 # path for INSTALL within a source directory, because that will
1144 # break other packages using the cache if that directory is
1145 # removed, or if the path is relative.
1146 INSTALL="$ac_install_sh"
1149 echo "$ac_t""$INSTALL" 1>&6
1151 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1152 # It thinks the first close brace ends the variable substitution.
1153 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1155 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1157 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1159 # Check whether --enable-shared or --disable-shared was given.
1160 if test "${enable_shared+set}" = set; then
1161 enableval="$enable_shared"
1162 p=${PACKAGE-default}
1163 case "$enableval" in
1164 yes) enable_shared=yes ;;
1165 no) enable_shared=no ;;
1168 # Look at the argument we got. We use all the common list separators.
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1170 for pkg in $enableval; do
1171 if test "X$pkg" = "X$p"; then
1182 # Check whether --enable-static or --disable-static was given.
1183 if test "${enable_static+set}" = set; then
1184 enableval="$enable_static"
1185 p=${PACKAGE-default}
1186 case "$enableval" in
1187 yes) enable_static=yes ;;
1188 no) enable_static=no ;;
1191 # Look at the argument we got. We use all the common list separators.
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1193 for pkg in $enableval; do
1194 if test "X$pkg" = "X$p"; then
1205 # Check whether --enable-fast-install or --disable-fast-install was given.
1206 if test "${enable_fast_install+set}" = set; then
1207 enableval="$enable_fast_install"
1208 p=${PACKAGE-default}
1209 case "$enableval" in
1210 yes) enable_fast_install=yes ;;
1211 no) enable_fast_install=no ;;
1213 enable_fast_install=no
1214 # Look at the argument we got. We use all the common list separators.
1215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1216 for pkg in $enableval; do
1217 if test "X$pkg" = "X$p"; then
1218 enable_fast_install=yes
1225 enable_fast_install=yes
1229 # Make sure we can run config.sub.
1230 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1231 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1234 echo $ac_n "checking host system type""... $ac_c" 1>&6
1235 echo "configure:1236: checking host system type" >&5
1238 case "$host_alias" in
1242 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1243 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1245 *) host_alias=$nonopt ;;
1249 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1250 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1251 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1252 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1253 echo "$ac_t""$host" 1>&6
1255 echo $ac_n "checking build system type""... $ac_c" 1>&6
1256 echo "configure:1257: checking build system type" >&5
1259 case "$build_alias" in
1262 NONE) build_alias=$host_alias ;;
1263 *) build_alias=$nonopt ;;
1267 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1268 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$ac_t""$build" 1>&6
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
1280 if test -n "$RANLIB"; then
1281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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"
1293 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1296 RANLIB="$ac_cv_prog_RANLIB"
1297 if test -n "$RANLIB"; then
1298 echo "$ac_t""$RANLIB" 1>&6
1300 echo "$ac_t""no" 1>&6
1303 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1304 if test "${with_gnu_ld+set}" = set; then
1305 withval="$with_gnu_ld"
1306 test "$withval" = no || with_gnu_ld=yes
1312 if test "$ac_cv_prog_gcc" = yes; then
1313 # Check if gcc -print-prog-name=ld gives a path.
1314 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1315 echo "configure:1316: checking for ld used by GCC" >&5
1316 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1318 # Accept absolute paths.
1319 [\\/]* | [A-Za-z]:[\\/]*)
1320 re_direlt='/[^/][^/]*/\.\./'
1321 # Canonicalize the path of ld
1322 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1323 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1324 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1326 test -z "$LD" && LD="$ac_prog"
1329 # If it fails, then pretend we aren't using GCC.
1333 # If it is relative, then search for the first ld in PATH.
1337 elif test "$with_gnu_ld" = yes; then
1338 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1339 echo "configure:1340: checking for GNU ld" >&5
1341 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1342 echo "configure:1343: checking for non-GNU ld" >&5
1344 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 if test -z "$LD"; then
1348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1349 for ac_dir in $PATH; do
1350 test -z "$ac_dir" && ac_dir=.
1351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1352 ac_cv_path_LD="$ac_dir/$ac_prog"
1353 # Check to see if the program is GNU ld. I'd rather use --version,
1354 # but apparently some GNU ld's only accept -v.
1355 # Break only if it was the GNU/non-GNU ld that we prefer.
1356 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1357 test "$with_gnu_ld" != no && break
1359 test "$with_gnu_ld" != yes && break
1365 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1370 if test -n "$LD"; then
1371 echo "$ac_t""$LD" 1>&6
1373 echo "$ac_t""no" 1>&6
1375 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1377 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1378 echo "configure:1379: checking if the linker ($LD) is GNU ld" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1383 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1384 ac_cv_prog_gnu_ld=yes
1386 ac_cv_prog_gnu_ld=no
1390 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1393 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1394 echo "configure:1395: checking for BSD-compatible nm" >&5
1395 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -n "$NM"; then
1399 # Let the user override the test.
1402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1403 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1404 test -z "$ac_dir" && ac_dir=.
1405 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1406 # Check to see if the nm accepts a BSD-compat flag.
1407 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1408 # nm: unknown option "B" ignored
1409 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1410 ac_cv_path_NM="$ac_dir/nm -B"
1412 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1413 ac_cv_path_NM="$ac_dir/nm -p"
1416 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1417 continue # so that we can try to find one that supports BSD flags
1422 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1427 echo "$ac_t""$NM" 1>&6
1430 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1431 echo "configure:1432: checking whether ln -s works" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1436 if ln -s X conftestdata 2>/dev/null
1439 ac_cv_prog_LN_S="ln -s"
1444 LN_S="$ac_cv_prog_LN_S"
1445 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1446 echo "$ac_t""yes" 1>&6
1448 echo "$ac_t""no" 1>&6
1452 # Check for any special flags to pass to ltconfig.
1454 # the following will cause an existing older ltconfig to fail, so
1455 # we ignore this at the expense of the cache file... Checking this
1456 # will just take longer ... bummer!
1457 #libtool_flags="--cache-file=$cache_file"
1459 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1460 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1461 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1462 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1463 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1466 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1467 if test "${enable_libtool_lock+set}" = set; then
1468 enableval="$enable_libtool_lock"
1472 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1473 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1475 # Some flags need to be propagated to the compiler or linker for good
1479 # Find out which ABI we are using.
1480 echo '#line 1481 "configure"' > conftest.$ac_ext
1481 if { (eval echo configure:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1482 case "`/usr/bin/file conftest.o`" in
1498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1499 SAVE_CFLAGS="$CFLAGS"
1500 CFLAGS="$CFLAGS -belf"
1501 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether the C compiler needs -belf" >&5
1503 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1516 lt_cv_cc_needs_belf=yes
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 lt_cv_cc_needs_belf=no
1526 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1529 CFLAGS="$SAVE_CFLAGS"
1537 # Save cache, so that ltconfig can load it
1538 cat > confcache <<\EOF
1539 # This file is a shell script that caches the results of configure
1540 # tests run on this system so they can be shared between configure
1541 # scripts and configure runs. It is not useful on other systems.
1542 # If it contains results you don't want to keep, you may remove or edit it.
1544 # By default, configure uses ./config.cache as the cache file,
1545 # creating it if it does not exist already. You can give configure
1546 # the --cache-file=FILE option to use a different cache file; that is
1547 # what configure does when it calls configure scripts in
1548 # subdirectories, so they share the cache.
1549 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1550 # config.status only pays attention to the cache file if you give it the
1551 # --recheck option to rerun configure.
1554 # The following way of writing the cache mishandles newlines in values,
1555 # but we know of no workaround that is simple, portable, and efficient.
1556 # So, don't put newlines in cache variables' values.
1557 # Ultrix sh set writes to stderr and can't be redirected directly,
1558 # and sets the high bit in the cache file unless we assign to the vars.
1560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1562 # `set' does not quote correctly, so add quotes (double-quote substitution
1563 # turns \\\\ into \\, and sed turns \\ into \).
1565 -e "s/'/'\\\\''/g" \
1566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1569 # `set' quotes correctly as required by POSIX, so do not add quotes.
1570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1573 if cmp -s $cache_file confcache; then
1576 if test -w $cache_file; then
1577 echo "updating cache $cache_file"
1578 cat confcache > $cache_file
1580 echo "not updating unwritable cache $cache_file"
1586 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1587 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1588 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1589 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1590 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1591 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1592 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1593 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1595 # Reload cache, that may have been modified by ltconfig
1596 if test -r "$cache_file"; then
1597 echo "loading cache $cache_file"
1600 echo "creating cache $cache_file"
1605 # This can be used to rebuild libtool when needed
1606 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1608 # Always use our own libtool.
1609 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1611 # Redirect the config.log output again, so that the ltconfig log is not
1612 # clobbered by the next message.
1613 exec 5>>./config.log
1618 # Check whether --enable-comp or --disable-comp was given.
1619 if test "${enable_comp+set}" = set; then
1620 enableval="$enable_comp"
1626 if test "$enable_comp" = "yes"; then
1629 ILLLIB=../ill/libill.la
1630 ASN_MAKEFILES="z39.50/Makefile ill/Makefile"
1636 ASN_MAKEFILES="asn/Makefile"
1639 echo $ac_n "checking whether proto.h needs to be generated""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether proto.h needs to be generated" >&5
1641 yaz_include=${srcdir}/include/yaz
1642 if test -r ${yaz_include}/proto.h && cmp -s ${yaz_include}/$HFILE ${yaz_include}/proto.h; then
1643 echo "$ac_t""no" 1>&6
1645 echo "$ac_t""yes" 1>&6
1646 cp -f ${yaz_include}/$HFILE ${yaz_include}/proto.h
1649 echo $ac_n "checking for connect""... $ac_c" 1>&6
1650 echo "configure:1651: checking for connect" >&5
1651 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 /* System header to define __stub macros and hopefully few prototypes,
1658 which can conflict with char connect(); below. */
1660 /* Override any gcc2 internal prototype to avoid an error. */
1661 /* We use char because int might match the return type of a gcc2
1662 builtin and then its argument prototype would still apply. */
1667 /* The GNU C library defines this for functions which it implements
1668 to always fail with ENOSYS. Some functions are actually named
1669 something starting with __ and the normal name is an alias. */
1670 #if defined (__stub_connect) || defined (__stub___connect)
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1680 eval "ac_cv_func_connect=yes"
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1685 eval "ac_cv_func_connect=no"
1690 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1691 echo "$ac_t""yes" 1>&6
1694 echo "$ac_t""no" 1>&6
1697 if test "$ac_cv_func_connect" = "no"; then
1698 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1699 echo "configure:1700: checking for main in -lsocket" >&5
1700 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 ac_save_LIBS="$LIBS"
1705 LIBS="-lsocket $LIBS"
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1714 if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1716 eval "ac_cv_lib_$ac_lib_var=yes"
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 eval "ac_cv_lib_$ac_lib_var=no"
1724 LIBS="$ac_save_LIBS"
1727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 LIBS="$LIBS -lsocket"
1731 echo "$ac_t""no" 1>&6
1736 if test "$checkBoth" = "1"; then
1738 LIBS="$LIBS -lsocket -lnsl"
1739 echo $ac_n "checking for accept""... $ac_c" 1>&6
1740 echo "configure:1741: checking for accept" >&5
1741 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char accept(); below. */
1750 /* Override any gcc2 internal prototype to avoid an error. */
1751 /* We use char because int might match the return type of a gcc2
1752 builtin and then its argument prototype would still apply. */
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined (__stub_accept) || defined (__stub___accept)
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 eval "ac_cv_func_accept=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_func_accept=no"
1780 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1784 echo "$ac_t""no" 1>&6
1789 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1790 echo "configure:1791: checking for gethostbyname" >&5
1791 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char gethostbyname(); below. */
1800 /* Override any gcc2 internal prototype to avoid an error. */
1801 /* We use char because int might match the return type of a gcc2
1802 builtin and then its argument prototype would still apply. */
1803 char gethostbyname();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820 eval "ac_cv_func_gethostbyname=yes"
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 eval "ac_cv_func_gethostbyname=no"
1830 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1834 echo "$ac_t""no" 1>&6
1835 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1836 echo "configure:1837: checking for main in -lnsl" >&5
1837 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 ac_save_LIBS="$LIBS"
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1851 if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1853 eval "ac_cv_lib_$ac_lib_var=yes"
1855 echo "configure: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1858 eval "ac_cv_lib_$ac_lib_var=no"
1861 LIBS="$ac_save_LIBS"
1864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1865 echo "$ac_t""yes" 1>&6
1868 echo "$ac_t""no" 1>&6
1874 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1875 echo "configure:1876: checking for readline in -lreadline" >&5
1876 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 ac_save_LIBS="$LIBS"
1881 LIBS="-lreadline $LIBS"
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 /* Override any gcc2 internal prototype to avoid an error. */
1886 /* We use char because int might match the return type of a gcc2
1887 builtin and then its argument prototype would still apply. */
1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1896 eval "ac_cv_lib_$ac_lib_var=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_lib_$ac_lib_var=no"
1904 LIBS="$ac_save_LIBS"
1907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 READLINE_LIBS="$READLINE_LIBS -lreadline"
1911 echo "$ac_t""no" 1>&6
1914 if test "$ac_cv_lib_readline_readline" = "no"; then
1915 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1916 echo "configure:1917: checking for readline in -lreadline" >&5
1917 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 ac_save_LIBS="$LIBS"
1922 LIBS="-lreadline $LIBS"
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 /* Override any gcc2 internal prototype to avoid an error. */
1927 /* We use char because int might match the return type of a gcc2
1928 builtin and then its argument prototype would still apply. */
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1937 eval "ac_cv_lib_$ac_lib_var=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_lib_$ac_lib_var=no"
1945 LIBS="$ac_save_LIBS"
1948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1949 echo "$ac_t""yes" 1>&6
1950 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
1952 echo "$ac_t""no" 1>&6
1956 echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
1957 echo "configure:1958: checking for add_history in -lhistory" >&5
1958 ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 ac_save_LIBS="$LIBS"
1963 LIBS="-lhistory $LIBS"
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 /* Override any gcc2 internal prototype to avoid an error. */
1968 /* We use char because int might match the return type of a gcc2
1969 builtin and then its argument prototype would still apply. */
1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1978 eval "ac_cv_lib_$ac_lib_var=yes"
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1983 eval "ac_cv_lib_$ac_lib_var=no"
1986 LIBS="$ac_save_LIBS"
1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1990 echo "$ac_t""yes" 1>&6
1991 READLINE_LIBS="$READLINE_LIBS -lhistory"
1993 echo "$ac_t""no" 1>&6
1996 if test "$ac_cv_lib_readline_readline" = "yes"; then
1997 for ac_hdr in readline/readline.h readline/history.h
1999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_hdr" >&5
2002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011 { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013 if test -z "$ac_err"; then
2015 eval "ac_cv_header_$ac_safe=yes"
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 eval "ac_cv_header_$ac_safe=no"
2025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2028 cat >> confdefs.h <<EOF
2029 #define $ac_tr_hdr 1
2033 echo "$ac_t""no" 1>&6
2038 for ac_func in vsnprintf gettimeofday
2040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_func" >&5
2042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 /* System header to define __stub macros and hopefully few prototypes,
2049 which can conflict with char $ac_func(); below. */
2051 /* Override any gcc2 internal prototype to avoid an error. */
2052 /* We use char because int might match the return type of a gcc2
2053 builtin and then its argument prototype would still apply. */
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2071 eval "ac_cv_func_$ac_func=yes"
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 eval "ac_cv_func_$ac_func=no"
2081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2082 echo "$ac_t""yes" 1>&6
2083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2084 cat >> confdefs.h <<EOF
2085 #define $ac_tr_func 1
2089 echo "$ac_t""no" 1>&6
2093 # Check whether --enable-tcpd or --disable-tcpd was given.
2094 if test "${enable_tcpd+set}" = set; then
2095 enableval="$enable_tcpd"
2099 if test "$enable_tcpd" != "no"; then
2101 oldCPPFLAGS=$CPPFLAGS
2102 if test "$enable_tcpd" != "yes"; then
2103 LIBS="$LIBS -L$enable_tcpd/lib"
2104 CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include"
2106 echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
2107 echo "configure:2108: checking for working tcpd.h" >&5
2108 LIBS="$LIBS -lwrap -lnsl"
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2114 int allow_severity = LOG_INFO;
2115 int deny_severity = LOG_WARNING;
2117 struct request_info request_info; int i;
2118 i = hosts_access(&request_info);
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2131 if test "$tcpd_ok" = "0"; then
2132 echo "$ac_t""no" 1>&6
2134 CPPFLAGS=$oldCPPFLAGS
2136 echo "$ac_t""yes" 1>&6
2137 cat >> confdefs.h <<\EOF
2138 #define HAVE_TCPD_H 1
2143 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2144 echo "configure:2145: checking for ANSI C header files" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159 if test -z "$ac_err"; then
2161 ac_cv_header_stdc=yes
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 ac_cv_header_stdc=no
2171 if test $ac_cv_header_stdc = yes; then
2172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2179 egrep "memchr" >/dev/null 2>&1; then
2183 ac_cv_header_stdc=no
2189 if test $ac_cv_header_stdc = yes; then
2190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197 egrep "free" >/dev/null 2>&1; then
2201 ac_cv_header_stdc=no
2207 if test $ac_cv_header_stdc = yes; then
2208 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2209 if test "$cross_compiling" = yes; then
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2216 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2217 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2219 int main () { int i; for (i = 0; i < 256; i++)
2220 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2231 ac_cv_header_stdc=no
2239 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2240 if test $ac_cv_header_stdc = yes; then
2241 cat >> confdefs.h <<\EOF
2242 #define STDC_HEADERS 1
2247 if test "$ac_cv_header_stdc" = "no"; then
2248 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
2250 # Check whether --enable-threads or --disable-threads was given.
2251 if test "${enable_threads+set}" = set; then
2252 enableval="$enable_threads"
2253 enable_threads=$enableval
2258 if test "$enable_threads" = "yes"; then
2259 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
2260 echo "configure:2261: checking for main in -lpthread" >&5
2261 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
2262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 ac_save_LIBS="$LIBS"
2266 LIBS="-lpthread $LIBS"
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2277 eval "ac_cv_lib_$ac_lib_var=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 eval "ac_cv_lib_$ac_lib_var=no"
2285 LIBS="$ac_save_LIBS"
2288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2292 cat >> confdefs.h <<EOF
2293 #define $ac_tr_lib 1
2296 LIBS="-lpthread $LIBS"
2299 echo "$ac_t""no" 1>&6
2302 echo $ac_n "checking for working POSIX Threads""... $ac_c" 1>&6
2303 echo "configure:2304: checking for working POSIX Threads" >&5
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <pthread.h>
2308 int func(void *p) { return 0; }
2312 pthread_t pthread_id;
2313 int r = pthread_create (&pthread_id, 0, func, 0);
2316 if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2326 if test "$thread_ok" = "yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 cat >> confdefs.h <<\EOF
2329 #define HAVE_PTHREAD_H 1
2332 cat >> confdefs.h <<\EOF
2333 #define _REENTRANT 1
2337 echo "$ac_t""no" 1>&6
2340 SUBDIRS_VAR="util odr $ASNMODULE $ILLMODULE zutil comstack ccl tab retrieval server include lib client ztest"
2343 cat > confcache <<\EOF
2344 # This file is a shell script that caches the results of configure
2345 # tests run on this system so they can be shared between configure
2346 # scripts and configure runs. It is not useful on other systems.
2347 # If it contains results you don't want to keep, you may remove or edit it.
2349 # By default, configure uses ./config.cache as the cache file,
2350 # creating it if it does not exist already. You can give configure
2351 # the --cache-file=FILE option to use a different cache file; that is
2352 # what configure does when it calls configure scripts in
2353 # subdirectories, so they share the cache.
2354 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2355 # config.status only pays attention to the cache file if you give it the
2356 # --recheck option to rerun configure.
2359 # The following way of writing the cache mishandles newlines in values,
2360 # but we know of no workaround that is simple, portable, and efficient.
2361 # So, don't put newlines in cache variables' values.
2362 # Ultrix sh set writes to stderr and can't be redirected directly,
2363 # and sets the high bit in the cache file unless we assign to the vars.
2365 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2367 # `set' does not quote correctly, so add quotes (double-quote substitution
2368 # turns \\\\ into \\, and sed turns \\ into \).
2370 -e "s/'/'\\\\''/g" \
2371 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2374 # `set' quotes correctly as required by POSIX, so do not add quotes.
2375 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2378 if cmp -s $cache_file confcache; then
2381 if test -w $cache_file; then
2382 echo "updating cache $cache_file"
2383 cat confcache > $cache_file
2385 echo "not updating unwritable cache $cache_file"
2390 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2393 # Let make expand exec_prefix.
2394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2396 # Any assignment to VPATH causes Sun make to only execute
2397 # the first set of double-colon rules, so remove it if not needed.
2398 # If there is a colon in the path, we need to keep it.
2399 if test "x$srcdir" = x.; then
2400 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2403 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2405 # Transform confdefs.h into DEFS.
2406 # Protect against shell expansion while executing Makefile rules.
2407 # Protect against Makefile macro expansion.
2408 cat > conftest.defs <<\EOF
2409 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2410 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2415 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2419 # Without the "./", some shells look in PATH for config.status.
2420 : ${CONFIG_STATUS=./config.status}
2422 echo creating $CONFIG_STATUS
2423 rm -f $CONFIG_STATUS
2424 cat > $CONFIG_STATUS <<EOF
2426 # Generated automatically by configure.
2427 # Run this file to recreate the current configuration.
2428 # This directory was configured as follows,
2429 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2431 # $0 $ac_configure_args
2433 # Compiler output produced by configure, useful for debugging
2434 # configure, is in ./config.log if it exists.
2436 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2439 case "\$ac_option" in
2440 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2441 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2442 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2443 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2444 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2446 -help | --help | --hel | --he | --h)
2447 echo "\$ac_cs_usage"; exit 0 ;;
2448 *) echo "\$ac_cs_usage"; exit 1 ;;
2452 ac_given_srcdir=$srcdir
2453 ac_given_INSTALL="$INSTALL"
2455 trap 'rm -fr `echo "
2469 include/yaz/Makefile
2474 lib/yaz-config" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2476 cat >> $CONFIG_STATUS <<EOF
2478 # Protect against being on the right side of a sed subst in config.status.
2479 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2480 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2484 s%@CFLAGS@%$CFLAGS%g
2485 s%@CPPFLAGS@%$CPPFLAGS%g
2486 s%@CXXFLAGS@%$CXXFLAGS%g
2487 s%@FFLAGS@%$FFLAGS%g
2489 s%@LDFLAGS@%$LDFLAGS%g
2491 s%@exec_prefix@%$exec_prefix%g
2492 s%@prefix@%$prefix%g
2493 s%@program_transform_name@%$program_transform_name%g
2494 s%@bindir@%$bindir%g
2495 s%@sbindir@%$sbindir%g
2496 s%@libexecdir@%$libexecdir%g
2497 s%@datadir@%$datadir%g
2498 s%@sysconfdir@%$sysconfdir%g
2499 s%@sharedstatedir@%$sharedstatedir%g
2500 s%@localstatedir@%$localstatedir%g
2501 s%@libdir@%$libdir%g
2502 s%@includedir@%$includedir%g
2503 s%@oldincludedir@%$oldincludedir%g
2504 s%@infodir@%$infodir%g
2505 s%@mandir@%$mandir%g
2506 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2507 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2508 s%@INSTALL_DATA@%$INSTALL_DATA%g
2509 s%@PACKAGE@%$PACKAGE%g
2510 s%@VERSION@%$VERSION%g
2511 s%@ACLOCAL@%$ACLOCAL%g
2512 s%@AUTOCONF@%$AUTOCONF%g
2513 s%@AUTOMAKE@%$AUTOMAKE%g
2514 s%@AUTOHEADER@%$AUTOHEADER%g
2515 s%@MAKEINFO@%$MAKEINFO%g
2516 s%@SET_MAKE@%$SET_MAKE%g
2517 s%@READLINE_LIBS@%$READLINE_LIBS%g
2521 s%@host_alias@%$host_alias%g
2522 s%@host_cpu@%$host_cpu%g
2523 s%@host_vendor@%$host_vendor%g
2524 s%@host_os@%$host_os%g
2526 s%@build_alias@%$build_alias%g
2527 s%@build_cpu@%$build_cpu%g
2528 s%@build_vendor@%$build_vendor%g
2529 s%@build_os@%$build_os%g
2530 s%@RANLIB@%$RANLIB%g
2534 s%@LIBTOOL@%$LIBTOOL%g
2535 s%@ASNMODULE@%$ASNMODULE%g
2536 s%@ILLMODULE@%$ILLMODULE%g
2537 s%@ILLLIB@%$ILLLIB%g
2538 s%@SUBDIRS_VAR@%$SUBDIRS_VAR%g
2543 cat >> $CONFIG_STATUS <<\EOF
2545 # Split the substitutions into bite-sized pieces for seds with
2546 # small command number limits, like on Digital OSF/1 and HP-UX.
2547 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2548 ac_file=1 # Number of current file.
2549 ac_beg=1 # First line for current file.
2550 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2553 while $ac_more_lines; do
2554 if test $ac_beg -gt 1; then
2555 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2557 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2559 if test ! -s conftest.s$ac_file; then
2561 rm -f conftest.s$ac_file
2563 if test -z "$ac_sed_cmds"; then
2564 ac_sed_cmds="sed -f conftest.s$ac_file"
2566 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2568 ac_file=`expr $ac_file + 1`
2570 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2573 if test -z "$ac_sed_cmds"; then
2578 cat >> $CONFIG_STATUS <<EOF
2580 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2593 include/yaz/Makefile
2600 cat >> $CONFIG_STATUS <<\EOF
2601 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2604 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2605 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2606 *) ac_file_in="${ac_file}.in" ;;
2609 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2611 # Remove last slash and all that follows it. Not all systems have dirname.
2612 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2613 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2614 # The file is in a subdirectory.
2615 test ! -d "$ac_dir" && mkdir "$ac_dir"
2616 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2617 # A "../" for each directory in $ac_dir_suffix.
2618 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2620 ac_dir_suffix= ac_dots=
2623 case "$ac_given_srcdir" in
2625 if test -z "$ac_dots"; then top_srcdir=.
2626 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2627 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2629 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2630 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2633 case "$ac_given_INSTALL" in
2634 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2635 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2638 echo creating "$ac_file"
2640 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2642 *Makefile*) ac_comsub="1i\\
2643 # $configure_input" ;;
2647 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2649 s%@configure_input@%$configure_input%g
2650 s%@srcdir@%$srcdir%g
2651 s%@top_srcdir@%$top_srcdir%g
2652 s%@INSTALL@%$INSTALL%g
2653 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2658 cat >> $CONFIG_STATUS <<EOF
2661 cat >> $CONFIG_STATUS <<\EOF
2662 chmod +x lib/yaz-config
2665 chmod +x $CONFIG_STATUS
2666 rm -fr confdefs* $ac_clean_files
2667 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1