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 --with-openssl[=DIR] OpenSSL library in DIR"
29 --enable-tcpd[=PREFIX] enable TCP wrapper for server if available"
31 --disable-threads disable POSIX threads"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host | --host | --hos | --ho)
209 -host=* | --host=* | --hos=* | --ho=*)
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
224 -libdir | --libdir | --libdi | --libd)
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 sbindir="$ac_optarg" ;;
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 sharedstatedir="$ac_optarg" ;;
328 -site | --site | --sit)
330 -site=* | --site=* | --sit=*)
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
345 -target | --target | --targe | --targ | --tar | --ta | --t)
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.13"
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=include/yaz/yaz-version.h
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='\c' ac_t=
543 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544 if test -f $ac_dir/install-sh; then
546 ac_install_sh="$ac_aux_dir/install-sh -c"
548 elif test -f $ac_dir/install.sh; then
550 ac_install_sh="$ac_aux_dir/install.sh -c"
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561 # Find a good install program. We prefer a C program (faster),
562 # so one script is as good as another. But avoid the broken or
563 # incompatible versions:
564 # SysV /etc/install, /usr/sbin/install
565 # SunOS /usr/etc/install
568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
571 # ./install, which can be erroneously created by make from ./install.sh.
572 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
573 echo "configure:574: checking for a BSD compatible install" >&5
574 if test -z "$INSTALL"; then
575 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
578 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
579 for ac_dir in $PATH; do
580 # Account for people who put trailing slashes in PATH elements.
582 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
584 # OSF1 and SCO ODT 3.0 have their own names for install.
585 # Don't use installbsd from OSF since it installs stuff as root
587 for ac_prog in ginstall scoinst install; do
588 if test -f $ac_dir/$ac_prog; then
589 if test $ac_prog = install &&
590 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
591 # AIX install. It has an incompatible calling convention.
594 ac_cv_path_install="$ac_dir/$ac_prog -c"
605 if test "${ac_cv_path_install+set}" = set; then
606 INSTALL="$ac_cv_path_install"
608 # As a last resort, use the slow shell script. We don't cache a
609 # path for INSTALL within a source directory, because that will
610 # break other packages using the cache if that directory is
611 # removed, or if the path is relative.
612 INSTALL="$ac_install_sh"
615 echo "$ac_t""$INSTALL" 1>&6
617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
618 # It thinks the first close brace ends the variable substitution.
619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
625 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
626 echo "configure:627: checking whether build environment is sane" >&5
629 echo timestamp > conftestfile
630 # Do `set' in a subshell so we don't clobber the current shell's
631 # arguments. Must try -L first in case configure is actually a
632 # symlink; some systems play weird games with the mod time of symlinks
633 # (eg FreeBSD returns the mod time of the symlink's containing
636 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
637 if test "$*" = "X"; then
639 set X `ls -t $srcdir/configure conftestfile`
641 if test "$*" != "X $srcdir/configure conftestfile" \
642 && test "$*" != "X conftestfile $srcdir/configure"; then
644 # If neither matched, then we have a broken ls. This can happen
645 # if, for instance, CONFIG_SHELL is bash and it inherits a
646 # broken ls alias from the environment. This has actually
647 # happened. Such a system could not be considered "sane".
648 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
649 alias in your environment" 1>&2; exit 1; }
652 test "$2" = conftestfile
658 { echo "configure: error: newly created file is older than distributed files!
659 Check your system clock" 1>&2; exit 1; }
662 echo "$ac_t""yes" 1>&6
663 if test "$program_transform_name" = s,x,x,; then
664 program_transform_name=
666 # Double any \ or $. echo might interpret backslashes.
667 cat <<\EOF_SED > conftestsed
668 s,\\,\\\\,g; s,\$,$$,g
670 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
673 test "$program_prefix" != NONE &&
674 program_transform_name="s,^,${program_prefix},; $program_transform_name"
675 # Use a double $ so make ignores it.
676 test "$program_suffix" != NONE &&
677 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
679 # sed with no file args requires a program.
680 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
682 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
683 echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
684 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
685 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 cat > conftestmake <<\EOF
690 @echo 'ac_maketemp="${MAKE}"'
692 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
693 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
694 if test -n "$ac_maketemp"; then
695 eval ac_cv_prog_make_${ac_make}_set=yes
697 eval ac_cv_prog_make_${ac_make}_set=no
701 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
702 echo "$ac_t""yes" 1>&6
705 echo "$ac_t""no" 1>&6
706 SET_MAKE="MAKE=${MAKE-make}"
714 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
715 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
717 cat >> confdefs.h <<EOF
718 #define PACKAGE "$PACKAGE"
721 cat >> confdefs.h <<EOF
722 #define VERSION "$VERSION"
727 missing_dir=`cd $ac_aux_dir && pwd`
728 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
729 echo "configure:730: checking for working aclocal" >&5
730 # Run test in a subshell; some versions of sh will print an error if
731 # an executable is not found, even if stderr is redirected.
732 # Redirect stdin to placate older versions of autoconf. Sigh.
733 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
735 echo "$ac_t""found" 1>&6
737 ACLOCAL="$missing_dir/missing aclocal"
738 echo "$ac_t""missing" 1>&6
741 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
742 echo "configure:743: checking for working autoconf" >&5
743 # Run test in a subshell; some versions of sh will print an error if
744 # an executable is not found, even if stderr is redirected.
745 # Redirect stdin to placate older versions of autoconf. Sigh.
746 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
748 echo "$ac_t""found" 1>&6
750 AUTOCONF="$missing_dir/missing autoconf"
751 echo "$ac_t""missing" 1>&6
754 echo $ac_n "checking for working automake""... $ac_c" 1>&6
755 echo "configure:756: checking for working automake" >&5
756 # Run test in a subshell; some versions of sh will print an error if
757 # an executable is not found, even if stderr is redirected.
758 # Redirect stdin to placate older versions of autoconf. Sigh.
759 if (automake --version) < /dev/null > /dev/null 2>&1; then
761 echo "$ac_t""found" 1>&6
763 AUTOMAKE="$missing_dir/missing automake"
764 echo "$ac_t""missing" 1>&6
767 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
768 echo "configure:769: checking for working autoheader" >&5
769 # Run test in a subshell; some versions of sh will print an error if
770 # an executable is not found, even if stderr is redirected.
771 # Redirect stdin to placate older versions of autoconf. Sigh.
772 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
773 AUTOHEADER=autoheader
774 echo "$ac_t""found" 1>&6
776 AUTOHEADER="$missing_dir/missing autoheader"
777 echo "$ac_t""missing" 1>&6
780 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
781 echo "configure:782: checking for working makeinfo" >&5
782 # Run test in a subshell; some versions of sh will print an error if
783 # an executable is not found, even if stderr is redirected.
784 # Redirect stdin to placate older versions of autoconf. Sigh.
785 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
787 echo "$ac_t""found" 1>&6
789 MAKEINFO="$missing_dir/missing makeinfo"
790 echo "$ac_t""missing" 1>&6
795 # Extract the first word of "gcc", so it can be a program name with args.
796 set dummy gcc; ac_word=$2
797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
798 echo "configure:799: checking for $ac_word" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 if test -n "$CC"; then
803 ac_cv_prog_CC="$CC" # Let the user override the test.
805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
807 for ac_dir in $ac_dummy; do
808 test -z "$ac_dir" && ac_dir=.
809 if test -f $ac_dir/$ac_word; then
818 if test -n "$CC"; then
819 echo "$ac_t""$CC" 1>&6
821 echo "$ac_t""no" 1>&6
824 if test -z "$CC"; then
825 # Extract the first word of "cc", so it can be a program name with args.
826 set dummy cc; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$CC"; then
833 ac_cv_prog_CC="$CC" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
850 if test $ac_prog_rejected = yes; then
851 # We found a bogon in the path, so make sure we never use it.
852 set dummy $ac_cv_prog_CC
854 if test $# -gt 0; then
855 # We chose a different compiler from the bogus one.
856 # However, it has the same basename, so the bogon will be chosen
857 # first if we set CC to just the basename; use the full file name.
859 set dummy "$ac_dir/$ac_word" "$@"
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 if test -z "$CC"; then
876 # Extract the first word of "cl", so it can be a program name with args.
877 set dummy cl; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
899 if test -n "$CC"; then
900 echo "$ac_t""$CC" 1>&6
902 echo "$ac_t""no" 1>&6
907 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
911 echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
915 ac_cpp='$CPP $CPPFLAGS'
916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
918 cross_compiling=$ac_cv_prog_cc_cross
920 cat > conftest.$ac_ext << EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 if { (eval echo configure:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
928 ac_cv_prog_cc_works=yes
929 # If we can't run a trivial program, we are probably using a cross compiler.
930 if (./conftest; exit) 2>/dev/null; then
931 ac_cv_prog_cc_cross=no
933 ac_cv_prog_cc_cross=yes
936 echo "configure: failed program was:" >&5
937 cat conftest.$ac_ext >&5
938 ac_cv_prog_cc_works=no
942 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943 ac_cpp='$CPP $CPPFLAGS'
944 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946 cross_compiling=$ac_cv_prog_cc_cross
948 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
949 if test $ac_cv_prog_cc_works = no; then
950 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
954 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
958 echo "configure:959: checking whether we are using GNU C" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 cat > conftest.c <<EOF
967 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
974 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
976 if test $ac_cv_prog_gcc = yes; then
982 ac_test_CFLAGS="${CFLAGS+set}"
983 ac_save_CFLAGS="$CFLAGS"
985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
986 echo "configure:987: checking whether ${CC-cc} accepts -g" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 echo 'void f(){}' > conftest.c
991 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1000 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1001 if test "$ac_test_CFLAGS" = set; then
1002 CFLAGS="$ac_save_CFLAGS"
1003 elif test $ac_cv_prog_cc_g = yes; then
1004 if test "$GCC" = yes; then
1010 if test "$GCC" = yes; then
1017 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1018 echo "configure:1019: checking how to run the C preprocessor" >&5
1019 # On Suns, sometimes $CPP names a directory.
1020 if test -n "$CPP" && test -d "$CPP"; then
1023 if test -z "$CPP"; then
1024 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 # This must be in double quotes, not single quotes, because CPP may get
1028 # substituted into the Makefile and "${CC-cc}" will confuse make.
1030 # On the NeXT, cc -E runs the code through the compiler's parser,
1031 # not just through cpp.
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039 { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1041 if test -z "$ac_err"; then
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1048 CPP="${CC-cc} -E -traditional-cpp"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1056 { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1058 if test -z "$ac_err"; then
1062 echo "configure: failed program was:" >&5
1063 cat conftest.$ac_ext >&5
1065 CPP="${CC-cc} -nologo -E"
1066 cat > conftest.$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1073 { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1075 if test -z "$ac_err"; then
1079 echo "configure: failed program was:" >&5
1080 cat conftest.$ac_ext >&5
1089 ac_cv_prog_CPP="$CPP"
1091 CPP="$ac_cv_prog_CPP"
1093 ac_cv_prog_CPP="$CPP"
1095 echo "$ac_t""$CPP" 1>&6
1097 # Find a good install program. We prefer a C program (faster),
1098 # so one script is as good as another. But avoid the broken or
1099 # incompatible versions:
1100 # SysV /etc/install, /usr/sbin/install
1101 # SunOS /usr/etc/install
1102 # IRIX /sbin/install
1104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1107 # ./install, which can be erroneously created by make from ./install.sh.
1108 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1109 echo "configure:1110: checking for a BSD compatible install" >&5
1110 if test -z "$INSTALL"; then
1111 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1115 for ac_dir in $PATH; do
1116 # Account for people who put trailing slashes in PATH elements.
1118 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1120 # OSF1 and SCO ODT 3.0 have their own names for install.
1121 # Don't use installbsd from OSF since it installs stuff as root
1123 for ac_prog in ginstall scoinst install; do
1124 if test -f $ac_dir/$ac_prog; then
1125 if test $ac_prog = install &&
1126 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1127 # AIX install. It has an incompatible calling convention.
1130 ac_cv_path_install="$ac_dir/$ac_prog -c"
1141 if test "${ac_cv_path_install+set}" = set; then
1142 INSTALL="$ac_cv_path_install"
1144 # As a last resort, use the slow shell script. We don't cache a
1145 # path for INSTALL within a source directory, because that will
1146 # break other packages using the cache if that directory is
1147 # removed, or if the path is relative.
1148 INSTALL="$ac_install_sh"
1151 echo "$ac_t""$INSTALL" 1>&6
1153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1154 # It thinks the first close brace ends the variable substitution.
1155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1161 # Check whether --enable-shared or --disable-shared was given.
1162 if test "${enable_shared+set}" = set; then
1163 enableval="$enable_shared"
1164 p=${PACKAGE-default}
1165 case "$enableval" in
1166 yes) enable_shared=yes ;;
1167 no) enable_shared=no ;;
1170 # Look at the argument we got. We use all the common list separators.
1171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1172 for pkg in $enableval; do
1173 if test "X$pkg" = "X$p"; then
1184 # Check whether --enable-static or --disable-static was given.
1185 if test "${enable_static+set}" = set; then
1186 enableval="$enable_static"
1187 p=${PACKAGE-default}
1188 case "$enableval" in
1189 yes) enable_static=yes ;;
1190 no) enable_static=no ;;
1193 # Look at the argument we got. We use all the common list separators.
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1195 for pkg in $enableval; do
1196 if test "X$pkg" = "X$p"; then
1207 # Check whether --enable-fast-install or --disable-fast-install was given.
1208 if test "${enable_fast_install+set}" = set; then
1209 enableval="$enable_fast_install"
1210 p=${PACKAGE-default}
1211 case "$enableval" in
1212 yes) enable_fast_install=yes ;;
1213 no) enable_fast_install=no ;;
1215 enable_fast_install=no
1216 # Look at the argument we got. We use all the common list separators.
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1218 for pkg in $enableval; do
1219 if test "X$pkg" = "X$p"; then
1220 enable_fast_install=yes
1227 enable_fast_install=yes
1231 # Make sure we can run config.sub.
1232 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1233 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1236 echo $ac_n "checking host system type""... $ac_c" 1>&6
1237 echo "configure:1238: checking host system type" >&5
1240 case "$host_alias" in
1244 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1245 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1247 *) host_alias=$nonopt ;;
1251 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1252 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1253 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1254 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1255 echo "$ac_t""$host" 1>&6
1257 echo $ac_n "checking build system type""... $ac_c" 1>&6
1258 echo "configure:1259: checking build system type" >&5
1261 case "$build_alias" in
1264 NONE) build_alias=$host_alias ;;
1265 *) build_alias=$nonopt ;;
1269 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1270 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1271 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1272 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1273 echo "$ac_t""$build" 1>&6
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
1305 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1306 if test "${with_gnu_ld+set}" = set; then
1307 withval="$with_gnu_ld"
1308 test "$withval" = no || with_gnu_ld=yes
1314 if test "$ac_cv_prog_gcc" = yes; then
1315 # Check if gcc -print-prog-name=ld gives a path.
1316 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1317 echo "configure:1318: checking for ld used by GCC" >&5
1318 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1320 # Accept absolute paths.
1321 [\\/]* | [A-Za-z]:[\\/]*)
1322 re_direlt='/[^/][^/]*/\.\./'
1323 # Canonicalize the path of ld
1324 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1326 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1328 test -z "$LD" && LD="$ac_prog"
1331 # If it fails, then pretend we aren't using GCC.
1335 # If it is relative, then search for the first ld in PATH.
1339 elif test "$with_gnu_ld" = yes; then
1340 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1341 echo "configure:1342: checking for GNU ld" >&5
1343 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1344 echo "configure:1345: checking for non-GNU ld" >&5
1346 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -z "$LD"; then
1350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1351 for ac_dir in $PATH; do
1352 test -z "$ac_dir" && ac_dir=.
1353 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1354 ac_cv_path_LD="$ac_dir/$ac_prog"
1355 # Check to see if the program is GNU ld. I'd rather use --version,
1356 # but apparently some GNU ld's only accept -v.
1357 # Break only if it was the GNU/non-GNU ld that we prefer.
1358 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1359 test "$with_gnu_ld" != no && break
1361 test "$with_gnu_ld" != yes && break
1367 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1372 if test -n "$LD"; then
1373 echo "$ac_t""$LD" 1>&6
1375 echo "$ac_t""no" 1>&6
1377 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1379 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1380 echo "configure:1381: checking if the linker ($LD) is GNU ld" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1385 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1386 ac_cv_prog_gnu_ld=yes
1388 ac_cv_prog_gnu_ld=no
1392 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1395 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1396 echo "configure:1397: checking for BSD-compatible nm" >&5
1397 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 if test -n "$NM"; then
1401 # Let the user override the test.
1404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1405 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1408 # Check to see if the nm accepts a BSD-compat flag.
1409 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1410 # nm: unknown option "B" ignored
1411 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1412 ac_cv_path_NM="$ac_dir/nm -B"
1414 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1415 ac_cv_path_NM="$ac_dir/nm -p"
1418 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1419 continue # so that we can try to find one that supports BSD flags
1424 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1429 echo "$ac_t""$NM" 1>&6
1432 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether ln -s works" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1438 if ln -s X conftestdata 2>/dev/null
1441 ac_cv_prog_LN_S="ln -s"
1446 LN_S="$ac_cv_prog_LN_S"
1447 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1448 echo "$ac_t""yes" 1>&6
1450 echo "$ac_t""no" 1>&6
1454 # Check for any special flags to pass to ltconfig.
1456 # the following will cause an existing older ltconfig to fail, so
1457 # we ignore this at the expense of the cache file... Checking this
1458 # will just take longer ... bummer!
1459 #libtool_flags="--cache-file=$cache_file"
1461 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1462 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1463 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1464 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1465 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1468 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1469 if test "${enable_libtool_lock+set}" = set; then
1470 enableval="$enable_libtool_lock"
1474 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1475 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1477 # Some flags need to be propagated to the compiler or linker for good
1481 # Find out which ABI we are using.
1482 echo '#line 1483 "configure"' > conftest.$ac_ext
1483 if { (eval echo configure:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 case "`/usr/bin/file conftest.o`" in
1500 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1501 SAVE_CFLAGS="$CFLAGS"
1502 CFLAGS="$CFLAGS -belf"
1503 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1504 echo "configure:1505: checking whether the C compiler needs -belf" >&5
1505 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 cat > conftest.$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1518 lt_cv_cc_needs_belf=yes
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1523 lt_cv_cc_needs_belf=no
1528 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1531 CFLAGS="$SAVE_CFLAGS"
1539 # Save cache, so that ltconfig can load it
1540 cat > confcache <<\EOF
1541 # This file is a shell script that caches the results of configure
1542 # tests run on this system so they can be shared between configure
1543 # scripts and configure runs. It is not useful on other systems.
1544 # If it contains results you don't want to keep, you may remove or edit it.
1546 # By default, configure uses ./config.cache as the cache file,
1547 # creating it if it does not exist already. You can give configure
1548 # the --cache-file=FILE option to use a different cache file; that is
1549 # what configure does when it calls configure scripts in
1550 # subdirectories, so they share the cache.
1551 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1552 # config.status only pays attention to the cache file if you give it the
1553 # --recheck option to rerun configure.
1556 # The following way of writing the cache mishandles newlines in values,
1557 # but we know of no workaround that is simple, portable, and efficient.
1558 # So, don't put newlines in cache variables' values.
1559 # Ultrix sh set writes to stderr and can't be redirected directly,
1560 # and sets the high bit in the cache file unless we assign to the vars.
1562 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1564 # `set' does not quote correctly, so add quotes (double-quote substitution
1565 # turns \\\\ into \\, and sed turns \\ into \).
1567 -e "s/'/'\\\\''/g" \
1568 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1571 # `set' quotes correctly as required by POSIX, so do not add quotes.
1572 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1575 if cmp -s $cache_file confcache; then
1578 if test -w $cache_file; then
1579 echo "updating cache $cache_file"
1580 cat confcache > $cache_file
1582 echo "not updating unwritable cache $cache_file"
1588 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1589 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1590 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1591 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1592 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1593 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1594 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1595 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1597 # Reload cache, that may have been modified by ltconfig
1598 if test -r "$cache_file"; then
1599 echo "loading cache $cache_file"
1602 echo "creating cache $cache_file"
1607 # This can be used to rebuild libtool when needed
1608 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1610 # Always use our own libtool.
1611 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1613 # Redirect the config.log output again, so that the ltconfig log is not
1614 # clobbered by the next message.
1615 exec 5>>./config.log
1620 # Check whether --enable-comp or --disable-comp was given.
1621 if test "${enable_comp+set}" = set; then
1622 enableval="$enable_comp"
1628 if test "$enable_comp" = "yes"; then
1631 ILLLIB=../ill/libill.la
1632 ASN_MAKEFILES="z39.50/Makefile ill/Makefile"
1633 HFILE=${srcdir}/include/yaz/z-proto.h
1638 ASN_MAKEFILES="asn/Makefile"
1639 HFILE=${srcdir}/asn/prt-proto.h
1641 echo $ac_n "checking whether proto.h needs to be generated""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether proto.h needs to be generated" >&5
1643 yaz_include=${srcdir}/include/yaz
1644 if test -r ${yaz_include}/proto.h && cmp -s $HFILE ${yaz_include}/proto.h; then
1645 echo "$ac_t""no" 1>&6
1647 echo "$ac_t""yes" 1>&6
1648 cp -f $HFILE ${yaz_include}/proto.h
1649 if test "$enable_comp" != "yes"; then
1650 cp ${srcdir}/asn/*.h ${yaz_include}
1654 echo $ac_n "checking for connect""... $ac_c" 1>&6
1655 echo "configure:1656: checking for connect" >&5
1656 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1662 /* System header to define __stub macros and hopefully few prototypes,
1663 which can conflict with char connect(); below. */
1665 /* Override any gcc2 internal prototype to avoid an error. */
1666 /* We use char because int might match the return type of a gcc2
1667 builtin and then its argument prototype would still apply. */
1672 /* The GNU C library defines this for functions which it implements
1673 to always fail with ENOSYS. Some functions are actually named
1674 something starting with __ and the normal name is an alias. */
1675 #if defined (__stub_connect) || defined (__stub___connect)
1683 if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1685 eval "ac_cv_func_connect=yes"
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1690 eval "ac_cv_func_connect=no"
1695 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1699 echo "$ac_t""no" 1>&6
1702 if test "$ac_cv_func_connect" = "no"; then
1703 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1704 echo "configure:1705: checking for main in -lsocket" >&5
1705 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 ac_save_LIBS="$LIBS"
1710 LIBS="-lsocket $LIBS"
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1719 if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1726 eval "ac_cv_lib_$ac_lib_var=no"
1729 LIBS="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 LIBS="$LIBS -lsocket"
1736 echo "$ac_t""no" 1>&6
1741 if test "$checkBoth" = "1"; then
1743 LIBS="$LIBS -lsocket -lnsl"
1744 echo $ac_n "checking for accept""... $ac_c" 1>&6
1745 echo "configure:1746: checking for accept" >&5
1746 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char accept(); below. */
1755 /* Override any gcc2 internal prototype to avoid an error. */
1756 /* We use char because int might match the return type of a gcc2
1757 builtin and then its argument prototype would still apply. */
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined (__stub_accept) || defined (__stub___accept)
1773 if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775 eval "ac_cv_func_accept=yes"
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1780 eval "ac_cv_func_accept=no"
1785 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1786 echo "$ac_t""yes" 1>&6
1789 echo "$ac_t""no" 1>&6
1794 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1795 echo "configure:1796: checking for gethostbyname" >&5
1796 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char gethostbyname(); below. */
1805 /* Override any gcc2 internal prototype to avoid an error. */
1806 /* We use char because int might match the return type of a gcc2
1807 builtin and then its argument prototype would still apply. */
1808 char gethostbyname();
1812 /* The GNU C library defines this for functions which it implements
1813 to always fail with ENOSYS. Some functions are actually named
1814 something starting with __ and the normal name is an alias. */
1815 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1823 if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825 eval "ac_cv_func_gethostbyname=yes"
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 eval "ac_cv_func_gethostbyname=no"
1835 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1839 echo "$ac_t""no" 1>&6
1840 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1841 echo "configure:1842: checking for main in -lnsl" >&5
1842 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 ac_save_LIBS="$LIBS"
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1858 eval "ac_cv_lib_$ac_lib_var=yes"
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 eval "ac_cv_lib_$ac_lib_var=no"
1866 LIBS="$ac_save_LIBS"
1869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1870 echo "$ac_t""yes" 1>&6
1873 echo "$ac_t""no" 1>&6
1879 # Check whether --with-openssl or --without-openssl was given.
1880 if test "${with_openssl+set}" = set; then
1881 withval="$with_openssl"
1885 if test "$openssl" = "yes"; then
1886 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
1887 echo "configure:1888: checking for main in -lcrypto" >&5
1888 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
1889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 ac_save_LIBS="$LIBS"
1893 LIBS="-lcrypto $LIBS"
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1902 if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1904 eval "ac_cv_lib_$ac_lib_var=yes"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1909 eval "ac_cv_lib_$ac_lib_var=no"
1912 LIBS="$ac_save_LIBS"
1915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1917 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1918 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1919 cat >> confdefs.h <<EOF
1920 #define $ac_tr_lib 1
1923 LIBS="-lcrypto $LIBS"
1926 echo "$ac_t""no" 1>&6
1929 echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
1930 echo "configure:1931: checking for SSL_new in -lssl" >&5
1931 ac_lib_var=`echo ssl'_'SSL_new | sed 'y%./+-%__p_%'`
1932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 ac_save_LIBS="$LIBS"
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 /* Override any gcc2 internal prototype to avoid an error. */
1941 /* We use char because int might match the return type of a gcc2
1942 builtin and then its argument prototype would still apply. */
1949 if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1951 eval "ac_cv_lib_$ac_lib_var=yes"
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 eval "ac_cv_lib_$ac_lib_var=no"
1959 LIBS="$ac_save_LIBS"
1962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1963 echo "$ac_t""yes" 1>&6
1964 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1966 cat >> confdefs.h <<EOF
1967 #define $ac_tr_lib 1
1973 echo "$ac_t""no" 1>&6
1976 if test "$ac_cv_lib_ssl_SSL_new" = "yes"; then
1977 for ac_hdr in openssl/ssl.h
1979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_hdr" >&5
1982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1991 { (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1993 if test -z "$ac_err"; then
1995 eval "ac_cv_header_$ac_safe=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 eval "ac_cv_header_$ac_safe=no"
2005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2008 cat >> confdefs.h <<EOF
2009 #define $ac_tr_hdr 1
2013 echo "$ac_t""no" 1>&6
2020 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2021 echo "configure:2022: checking for readline in -lreadline" >&5
2022 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 ac_save_LIBS="$LIBS"
2027 LIBS="-lreadline $LIBS"
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2042 eval "ac_cv_lib_$ac_lib_var=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2047 eval "ac_cv_lib_$ac_lib_var=no"
2050 LIBS="$ac_save_LIBS"
2053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 READLINE_LIBS="$READLINE_LIBS -lreadline"
2057 echo "$ac_t""no" 1>&6
2060 if test "$ac_cv_lib_readline_readline" = "no"; then
2061 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2062 echo "configure:2063: checking for readline in -lreadline" >&5
2063 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 ac_save_LIBS="$LIBS"
2068 LIBS="-lreadline $LIBS"
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 /* Override any gcc2 internal prototype to avoid an error. */
2073 /* We use char because int might match the return type of a gcc2
2074 builtin and then its argument prototype would still apply. */
2081 if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2083 eval "ac_cv_lib_$ac_lib_var=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 eval "ac_cv_lib_$ac_lib_var=no"
2091 LIBS="$ac_save_LIBS"
2094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2095 echo "$ac_t""yes" 1>&6
2096 READLINE_LIBS="$READLINE_LIBS -lreadline -ltermcap"
2098 echo "$ac_t""no" 1>&6
2102 echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
2103 echo "configure:2104: checking for add_history in -lhistory" >&5
2104 ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
2105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 ac_save_LIBS="$LIBS"
2109 LIBS="-lhistory $LIBS"
2110 cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 /* Override any gcc2 internal prototype to avoid an error. */
2114 /* We use char because int might match the return type of a gcc2
2115 builtin and then its argument prototype would still apply. */
2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2124 eval "ac_cv_lib_$ac_lib_var=yes"
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2129 eval "ac_cv_lib_$ac_lib_var=no"
2132 LIBS="$ac_save_LIBS"
2135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 READLINE_LIBS="$READLINE_LIBS -lhistory"
2139 echo "$ac_t""no" 1>&6
2142 if test "$ac_cv_lib_readline_readline" = "yes"; then
2143 for ac_hdr in readline/readline.h readline/history.h
2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_hdr" >&5
2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #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 eval "ac_cv_header_$ac_safe=yes"
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 eval "ac_cv_header_$ac_safe=no"
2171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2174 cat >> confdefs.h <<EOF
2175 #define $ac_tr_hdr 1
2179 echo "$ac_t""no" 1>&6
2184 for ac_func in vsnprintf gettimeofday
2186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_func" >&5
2188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char $ac_func(); below. */
2197 /* Override any gcc2 internal prototype to avoid an error. */
2198 /* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */
2204 /* The GNU C library defines this for functions which it implements
2205 to always fail with ENOSYS. Some functions are actually named
2206 something starting with __ and the normal name is an alias. */
2207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 eval "ac_cv_func_$ac_func=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 eval "ac_cv_func_$ac_func=no"
2227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2230 cat >> confdefs.h <<EOF
2231 #define $ac_tr_func 1
2235 echo "$ac_t""no" 1>&6
2239 # Check whether --enable-tcpd or --disable-tcpd was given.
2240 if test "${enable_tcpd+set}" = set; then
2241 enableval="$enable_tcpd"
2245 if test "$enable_tcpd" != ""; then
2247 oldCPPFLAGS=$CPPFLAGS
2248 if test "$enable_tcpd" != "yes"; then
2249 LIBS="$LIBS -L$enable_tcpd/lib"
2250 CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include"
2252 echo $ac_n "checking for working tcpd.h""... $ac_c" 1>&6
2253 echo "configure:2254: checking for working tcpd.h" >&5
2254 LIBS="$LIBS -lwrap -lnsl"
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2260 int allow_severity = LOG_INFO;
2261 int deny_severity = LOG_WARNING;
2263 struct request_info request_info; int i;
2264 i = hosts_access(&request_info);
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2277 if test "$tcpd_ok" = "0"; then
2278 echo "$ac_t""no" 1>&6
2280 CPPFLAGS=$oldCPPFLAGS
2282 echo "$ac_t""yes" 1>&6
2283 cat >> confdefs.h <<\EOF
2284 #define HAVE_TCPD_H 1
2289 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2290 echo "configure:2291: checking for ANSI C header files" >&5
2291 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2303 { (eval echo configure:2304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2305 if test -z "$ac_err"; then
2307 ac_cv_header_stdc=yes
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2313 ac_cv_header_stdc=no
2317 if test $ac_cv_header_stdc = yes; then
2318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2325 egrep "memchr" >/dev/null 2>&1; then
2329 ac_cv_header_stdc=no
2335 if test $ac_cv_header_stdc = yes; then
2336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2343 egrep "free" >/dev/null 2>&1; then
2347 ac_cv_header_stdc=no
2353 if test $ac_cv_header_stdc = yes; then
2354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2355 if test "$cross_compiling" = yes; then
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2362 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2363 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2365 int main () { int i; for (i = 0; i < 256; i++)
2366 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 ac_cv_header_stdc=no
2385 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2386 if test $ac_cv_header_stdc = yes; then
2387 cat >> confdefs.h <<\EOF
2388 #define STDC_HEADERS 1
2393 if test "$ac_cv_header_stdc" = "no"; then
2394 echo "configure: warning: Your system doesn't seem to support ANSI C" 1>&2
2396 # Check whether --enable-threads or --disable-threads was given.
2397 if test "${enable_threads+set}" = set; then
2398 enableval="$enable_threads"
2399 enable_threads=$enableval
2405 if test "$enable_threads" = "yes"; then
2407 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
2408 echo "configure:2409: checking for main in -lpthread" >&5
2409 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
2410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 ac_save_LIBS="$LIBS"
2414 LIBS="-lpthread $LIBS"
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2423 if { (eval echo configure:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2425 eval "ac_cv_lib_$ac_lib_var=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 eval "ac_cv_lib_$ac_lib_var=no"
2433 LIBS="$ac_save_LIBS"
2436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2437 echo "$ac_t""yes" 1>&6
2438 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2440 cat >> confdefs.h <<EOF
2441 #define $ac_tr_lib 1
2444 LIBS="-lpthread $LIBS"
2447 echo "$ac_t""no" 1>&6
2450 echo $ac_n "checking for working POSIX Threads""... $ac_c" 1>&6
2451 echo "configure:2452: checking for working POSIX Threads" >&5
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 #include <pthread.h>
2456 void *func(void *p) { return 0; }
2460 pthread_t pthread_id;
2461 pthread_create (&pthread_id, 0, func, 0);
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2474 if test "$thread_ok" = "yes"; then
2476 echo "$ac_t""yes" 1>&6
2480 echo "$ac_t""no" 1>&6
2487 if test $HAVETHREADS = "1"; then
2496 SUBDIRS_VAR="util odr $ASNMODULE $ILLMODULE zutil comstack ccl tab retrieval server include lib client ztest"
2498 if test -f lib/yaz-config.in; then
2499 rm lib/yaz-config.in
2501 sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz-config.in >lib/yaz-config.in
2503 cat > confcache <<\EOF
2504 # This file is a shell script that caches the results of configure
2505 # tests run on this system so they can be shared between configure
2506 # scripts and configure runs. It is not useful on other systems.
2507 # If it contains results you don't want to keep, you may remove or edit it.
2509 # By default, configure uses ./config.cache as the cache file,
2510 # creating it if it does not exist already. You can give configure
2511 # the --cache-file=FILE option to use a different cache file; that is
2512 # what configure does when it calls configure scripts in
2513 # subdirectories, so they share the cache.
2514 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2515 # config.status only pays attention to the cache file if you give it the
2516 # --recheck option to rerun configure.
2519 # The following way of writing the cache mishandles newlines in values,
2520 # but we know of no workaround that is simple, portable, and efficient.
2521 # So, don't put newlines in cache variables' values.
2522 # Ultrix sh set writes to stderr and can't be redirected directly,
2523 # and sets the high bit in the cache file unless we assign to the vars.
2525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2527 # `set' does not quote correctly, so add quotes (double-quote substitution
2528 # turns \\\\ into \\, and sed turns \\ into \).
2530 -e "s/'/'\\\\''/g" \
2531 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2534 # `set' quotes correctly as required by POSIX, so do not add quotes.
2535 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2538 if cmp -s $cache_file confcache; then
2541 if test -w $cache_file; then
2542 echo "updating cache $cache_file"
2543 cat confcache > $cache_file
2545 echo "not updating unwritable cache $cache_file"
2550 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2553 # Let make expand exec_prefix.
2554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2556 # Any assignment to VPATH causes Sun make to only execute
2557 # the first set of double-colon rules, so remove it if not needed.
2558 # If there is a colon in the path, we need to keep it.
2559 if test "x$srcdir" = x.; then
2560 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2563 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2565 # Transform confdefs.h into DEFS.
2566 # Protect against shell expansion while executing Makefile rules.
2567 # Protect against Makefile macro expansion.
2568 cat > conftest.defs <<\EOF
2569 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2570 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2575 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2579 # Without the "./", some shells look in PATH for config.status.
2580 : ${CONFIG_STATUS=./config.status}
2582 echo creating $CONFIG_STATUS
2583 rm -f $CONFIG_STATUS
2584 cat > $CONFIG_STATUS <<EOF
2586 # Generated automatically by configure.
2587 # Run this file to recreate the current configuration.
2588 # This directory was configured as follows,
2589 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2591 # $0 $ac_configure_args
2593 # Compiler output produced by configure, useful for debugging
2594 # configure, is in ./config.log if it exists.
2596 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2599 case "\$ac_option" in
2600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2601 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2602 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2603 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2604 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2606 -help | --help | --hel | --he | --h)
2607 echo "\$ac_cs_usage"; exit 0 ;;
2608 *) echo "\$ac_cs_usage"; exit 1 ;;
2612 ac_given_srcdir=$srcdir
2613 ac_given_INSTALL="$INSTALL"
2615 trap 'rm -fr `echo "
2629 include/yaz/Makefile
2636 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2638 cat >> $CONFIG_STATUS <<EOF
2640 # Protect against being on the right side of a sed subst in config.status.
2641 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2642 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2646 s%@CFLAGS@%$CFLAGS%g
2647 s%@CPPFLAGS@%$CPPFLAGS%g
2648 s%@CXXFLAGS@%$CXXFLAGS%g
2649 s%@FFLAGS@%$FFLAGS%g
2651 s%@LDFLAGS@%$LDFLAGS%g
2653 s%@exec_prefix@%$exec_prefix%g
2654 s%@prefix@%$prefix%g
2655 s%@program_transform_name@%$program_transform_name%g
2656 s%@bindir@%$bindir%g
2657 s%@sbindir@%$sbindir%g
2658 s%@libexecdir@%$libexecdir%g
2659 s%@datadir@%$datadir%g
2660 s%@sysconfdir@%$sysconfdir%g
2661 s%@sharedstatedir@%$sharedstatedir%g
2662 s%@localstatedir@%$localstatedir%g
2663 s%@libdir@%$libdir%g
2664 s%@includedir@%$includedir%g
2665 s%@oldincludedir@%$oldincludedir%g
2666 s%@infodir@%$infodir%g
2667 s%@mandir@%$mandir%g
2668 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2669 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2670 s%@INSTALL_DATA@%$INSTALL_DATA%g
2671 s%@PACKAGE@%$PACKAGE%g
2672 s%@VERSION@%$VERSION%g
2673 s%@ACLOCAL@%$ACLOCAL%g
2674 s%@AUTOCONF@%$AUTOCONF%g
2675 s%@AUTOMAKE@%$AUTOMAKE%g
2676 s%@AUTOHEADER@%$AUTOHEADER%g
2677 s%@MAKEINFO@%$MAKEINFO%g
2678 s%@SET_MAKE@%$SET_MAKE%g
2679 s%@READLINE_LIBS@%$READLINE_LIBS%g
2683 s%@host_alias@%$host_alias%g
2684 s%@host_cpu@%$host_cpu%g
2685 s%@host_vendor@%$host_vendor%g
2686 s%@host_os@%$host_os%g
2688 s%@build_alias@%$build_alias%g
2689 s%@build_cpu@%$build_cpu%g
2690 s%@build_vendor@%$build_vendor%g
2691 s%@build_os@%$build_os%g
2692 s%@RANLIB@%$RANLIB%g
2696 s%@LIBTOOL@%$LIBTOOL%g
2697 s%@ASNMODULE@%$ASNMODULE%g
2698 s%@ILLMODULE@%$ILLMODULE%g
2699 s%@ILLLIB@%$ILLLIB%g
2700 s%@LIBTHREAD@%$LIBTHREAD%g
2701 s%@ISTHR_TRUE@%$ISTHR_TRUE%g
2702 s%@ISTHR_FALSE@%$ISTHR_FALSE%g
2703 s%@YAZ_SRC_ROOT@%$YAZ_SRC_ROOT%g
2704 s%@SUBDIRS_VAR@%$SUBDIRS_VAR%g
2709 cat >> $CONFIG_STATUS <<\EOF
2711 # Split the substitutions into bite-sized pieces for seds with
2712 # small command number limits, like on Digital OSF/1 and HP-UX.
2713 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2714 ac_file=1 # Number of current file.
2715 ac_beg=1 # First line for current file.
2716 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2719 while $ac_more_lines; do
2720 if test $ac_beg -gt 1; then
2721 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2723 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2725 if test ! -s conftest.s$ac_file; then
2727 rm -f conftest.s$ac_file
2729 if test -z "$ac_sed_cmds"; then
2730 ac_sed_cmds="sed -f conftest.s$ac_file"
2732 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2734 ac_file=`expr $ac_file + 1`
2736 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2739 if test -z "$ac_sed_cmds"; then
2744 cat >> $CONFIG_STATUS <<EOF
2746 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2759 include/yaz/Makefile
2768 cat >> $CONFIG_STATUS <<\EOF
2769 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2772 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2773 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2774 *) ac_file_in="${ac_file}.in" ;;
2777 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2779 # Remove last slash and all that follows it. Not all systems have dirname.
2780 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2781 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2782 # The file is in a subdirectory.
2783 test ! -d "$ac_dir" && mkdir "$ac_dir"
2784 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2785 # A "../" for each directory in $ac_dir_suffix.
2786 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2788 ac_dir_suffix= ac_dots=
2791 case "$ac_given_srcdir" in
2793 if test -z "$ac_dots"; then top_srcdir=.
2794 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2795 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2797 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2798 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2801 case "$ac_given_INSTALL" in
2802 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2803 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2806 echo creating "$ac_file"
2808 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2810 *Makefile*) ac_comsub="1i\\
2811 # $configure_input" ;;
2815 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2817 s%@configure_input@%$configure_input%g
2818 s%@srcdir@%$srcdir%g
2819 s%@top_srcdir@%$top_srcdir%g
2820 s%@INSTALL@%$INSTALL%g
2821 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2826 cat >> $CONFIG_STATUS <<EOF
2829 cat >> $CONFIG_STATUS <<\EOF
2830 chmod +x yaz-config lib/yaz-config
2833 chmod +x $CONFIG_STATUS
2834 rm -fr confdefs* $ac_clean_files
2835 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1