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 --with-yazconfig=DIR yaz-config in DIR (example /home/yaz-1.7)"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
61 # Initialize some other variables.
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 datadir="$ac_optarg" ;;
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host | --host | --hos | --ho)
203 -host=* | --host=* | --hos=* | --ho=*)
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
324 -site=* | --site=* | --sit=*)
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=configure.in
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532 ac_n= ac_c='\c' ac_t=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
540 ac_install_sh="$ac_aux_dir/install-sh -c"
542 elif test -f $ac_dir/install.sh; then
544 ac_install_sh="$ac_aux_dir/install.sh -c"
548 if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555 # Find a good install program. We prefer a C program (faster),
556 # so one script is as good as another. But avoid the broken or
557 # incompatible versions:
558 # SysV /etc/install, /usr/sbin/install
559 # SunOS /usr/etc/install
562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570 echo $ac_n "(cached) $ac_c" 1>&6
572 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
573 for ac_dir in $PATH; do
574 # Account for people who put trailing slashes in PATH elements.
576 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
578 # OSF1 and SCO ODT 3.0 have their own names for install.
579 # Don't use installbsd from OSF since it installs stuff as root
581 for ac_prog in ginstall scoinst install; do
582 if test -f $ac_dir/$ac_prog; then
583 if test $ac_prog = install &&
584 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
585 # AIX install. It has an incompatible calling convention.
588 ac_cv_path_install="$ac_dir/$ac_prog -c"
599 if test "${ac_cv_path_install+set}" = set; then
600 INSTALL="$ac_cv_path_install"
602 # As a last resort, use the slow shell script. We don't cache a
603 # path for INSTALL within a source directory, because that will
604 # break other packages using the cache if that directory is
605 # removed, or if the path is relative.
606 INSTALL="$ac_install_sh"
609 echo "$ac_t""$INSTALL" 1>&6
611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612 # It thinks the first close brace ends the variable substitution.
613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments. Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
630 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631 if test "$*" = "X"; then
633 set X `ls -t $srcdir/configure conftestfile`
635 if test "$*" != "X $srcdir/configure conftestfile" \
636 && test "$*" != "X conftestfile $srcdir/configure"; then
638 # If neither matched, then we have a broken ls. This can happen
639 # if, for instance, CONFIG_SHELL is bash and it inherits a
640 # broken ls alias from the environment. This has actually
641 # happened. Such a system could not be considered "sane".
642 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
646 test "$2" = conftestfile
652 { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658 program_transform_name=
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
667 test "$program_prefix" != NONE &&
668 program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 cat > conftestmake <<\EOF
684 @echo 'ac_maketemp="${MAKE}"'
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689 eval ac_cv_prog_make_${ac_make}_set=yes
691 eval ac_cv_prog_make_${ac_make}_set=no
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696 echo "$ac_t""yes" 1>&6
699 echo "$ac_t""no" 1>&6
700 SET_MAKE="MAKE=${MAKE-make}"
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf. Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729 echo "$ac_t""found" 1>&6
731 ACLOCAL="$missing_dir/missing aclocal"
732 echo "$ac_t""missing" 1>&6
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf. Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742 echo "$ac_t""found" 1>&6
744 AUTOCONF="$missing_dir/missing autoconf"
745 echo "$ac_t""missing" 1>&6
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf. Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
755 echo "$ac_t""found" 1>&6
757 AUTOMAKE="$missing_dir/missing automake"
758 echo "$ac_t""missing" 1>&6
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf. Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767 AUTOHEADER=autoheader
768 echo "$ac_t""found" 1>&6
770 AUTOHEADER="$missing_dir/missing autoheader"
771 echo "$ac_t""missing" 1>&6
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 MAKEINFO="$missing_dir/missing makeinfo"
784 echo "$ac_t""missing" 1>&6
789 # Extract the first word of "gcc", so it can be a program name with args.
790 set dummy gcc; ac_word=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 if test -n "$CC"; then
797 ac_cv_prog_CC="$CC" # Let the user override the test.
799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
801 for ac_dir in $ac_dummy; do
802 test -z "$ac_dir" && ac_dir=.
803 if test -f $ac_dir/$ac_word; then
812 if test -n "$CC"; then
813 echo "$ac_t""$CC" 1>&6
815 echo "$ac_t""no" 1>&6
818 if test -z "$CC"; then
819 # Extract the first word of "cc", so it can be a program name with args.
820 set dummy cc; ac_word=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 if test -n "$CC"; then
827 ac_cv_prog_CC="$CC" # Let the user override the test.
829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
835 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
844 if test $ac_prog_rejected = yes; then
845 # We found a bogon in the path, so make sure we never use it.
846 set dummy $ac_cv_prog_CC
848 if test $# -gt 0; then
849 # We chose a different compiler from the bogus one.
850 # However, it has the same basename, so the bogon will be chosen
851 # first if we set CC to just the basename; use the full file name.
853 set dummy "$ac_dir/$ac_word" "$@"
861 if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
864 echo "$ac_t""no" 1>&6
867 if test -z "$CC"; then
870 # Extract the first word of "cl", so it can be a program name with args.
871 set dummy cl; ac_word=$2
872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
873 echo "configure:874: checking for $ac_word" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
877 if test -n "$CC"; then
878 ac_cv_prog_CC="$CC" # Let the user override the test.
880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 for ac_dir in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir=.
884 if test -f $ac_dir/$ac_word; then
893 if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6
896 echo "$ac_t""no" 1>&6
901 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
909 ac_cpp='$CPP $CPPFLAGS'
910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912 cross_compiling=$ac_cv_prog_cc_cross
914 cat > conftest.$ac_ext << EOF
916 #line 917 "configure"
917 #include "confdefs.h"
921 if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
922 ac_cv_prog_cc_works=yes
923 # If we can't run a trivial program, we are probably using a cross compiler.
924 if (./conftest; exit) 2>/dev/null; then
925 ac_cv_prog_cc_cross=no
927 ac_cv_prog_cc_cross=yes
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 ac_cv_prog_cc_works=no
936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937 ac_cpp='$CPP $CPPFLAGS'
938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
943 if test $ac_cv_prog_cc_works = no; then
944 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
948 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
949 cross_compiling=$ac_cv_prog_cc_cross
951 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
952 echo "configure:953: checking whether we are using GNU C" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 cat > conftest.c <<EOF
961 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
968 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
970 if test $ac_cv_prog_gcc = yes; then
976 ac_test_CFLAGS="${CFLAGS+set}"
977 ac_save_CFLAGS="$CFLAGS"
979 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${CC-cc} accepts -g" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 echo 'void f(){}' > conftest.c
985 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
994 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
995 if test "$ac_test_CFLAGS" = set; then
996 CFLAGS="$ac_save_CFLAGS"
997 elif test $ac_cv_prog_cc_g = yes; then
998 if test "$GCC" = yes; then
1004 if test "$GCC" = yes; then
1011 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1012 echo "configure:1013: checking how to run the C preprocessor" >&5
1013 # On Suns, sometimes $CPP names a directory.
1014 if test -n "$CPP" && test -d "$CPP"; then
1017 if test -z "$CPP"; then
1018 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 # This must be in double quotes, not single quotes, because CPP may get
1022 # substituted into the Makefile and "${CC-cc}" will confuse make.
1024 # On the NeXT, cc -E runs the code through the compiler's parser,
1025 # not just through cpp.
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1039 echo "configure: failed program was:" >&5
1040 cat conftest.$ac_ext >&5
1042 CPP="${CC-cc} -E -traditional-cpp"
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1050 { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1052 if test -z "$ac_err"; then
1056 echo "configure: failed program was:" >&5
1057 cat conftest.$ac_ext >&5
1059 CPP="${CC-cc} -nologo -E"
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067 { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069 if test -z "$ac_err"; then
1073 echo "configure: failed program was:" >&5
1074 cat conftest.$ac_ext >&5
1083 ac_cv_prog_CPP="$CPP"
1085 CPP="$ac_cv_prog_CPP"
1087 ac_cv_prog_CPP="$CPP"
1089 echo "$ac_t""$CPP" 1>&6
1091 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1093 # Extract the first word of "$ac_prog", so it can be a program name with args.
1094 set dummy $ac_prog; ac_word=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 if test -n "$CXX"; then
1101 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1105 for ac_dir in $ac_dummy; do
1106 test -z "$ac_dir" && ac_dir=.
1107 if test -f $ac_dir/$ac_word; then
1108 ac_cv_prog_CXX="$ac_prog"
1115 CXX="$ac_cv_prog_CXX"
1116 if test -n "$CXX"; then
1117 echo "$ac_t""$CXX" 1>&6
1119 echo "$ac_t""no" 1>&6
1122 test -n "$CXX" && break
1124 test -n "$CXX" || CXX="gcc"
1127 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1131 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1132 ac_cpp='$CXXCPP $CPPFLAGS'
1133 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1134 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1135 cross_compiling=$ac_cv_prog_cxx_cross
1137 cat > conftest.$ac_ext << EOF
1139 #line 1140 "configure"
1140 #include "confdefs.h"
1142 int main(){return(0);}
1144 if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1145 ac_cv_prog_cxx_works=yes
1146 # If we can't run a trivial program, we are probably using a cross compiler.
1147 if (./conftest; exit) 2>/dev/null; then
1148 ac_cv_prog_cxx_cross=no
1150 ac_cv_prog_cxx_cross=yes
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1155 ac_cv_prog_cxx_works=no
1159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1160 ac_cpp='$CPP $CPPFLAGS'
1161 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1162 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1163 cross_compiling=$ac_cv_prog_cc_cross
1165 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1166 if test $ac_cv_prog_cxx_works = no; then
1167 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1169 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1171 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1172 cross_compiling=$ac_cv_prog_cxx_cross
1174 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether we are using GNU C++" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 cat > conftest.C <<EOF
1184 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1191 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1193 if test $ac_cv_prog_gxx = yes; then
1199 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1200 ac_save_CXXFLAGS="$CXXFLAGS"
1202 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether ${CXX-g++} accepts -g" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 echo 'void f(){}' > conftest.cc
1208 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1209 ac_cv_prog_cxx_g=yes
1217 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1218 if test "$ac_test_CXXFLAGS" = set; then
1219 CXXFLAGS="$ac_save_CXXFLAGS"
1220 elif test $ac_cv_prog_cxx_g = yes; then
1221 if test "$GXX" = yes; then
1227 if test "$GXX" = yes; then
1234 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1235 echo "configure:1236: checking for ANSI C header files" >&5
1236 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1248 { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1250 if test -z "$ac_err"; then
1252 ac_cv_header_stdc=yes
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1258 ac_cv_header_stdc=no
1262 if test $ac_cv_header_stdc = yes; then
1263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1264 cat > conftest.$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1270 egrep "memchr" >/dev/null 2>&1; then
1274 ac_cv_header_stdc=no
1280 if test $ac_cv_header_stdc = yes; then
1281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1288 egrep "free" >/dev/null 2>&1; then
1292 ac_cv_header_stdc=no
1298 if test $ac_cv_header_stdc = yes; then
1299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1300 if test "$cross_compiling" = yes; then
1303 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1307 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1308 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1310 int main () { int i; for (i = 0; i < 256; i++)
1311 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1315 if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1319 echo "configure: failed program was:" >&5
1320 cat conftest.$ac_ext >&5
1322 ac_cv_header_stdc=no
1330 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1331 if test $ac_cv_header_stdc = yes; then
1332 cat >> confdefs.h <<\EOF
1333 #define STDC_HEADERS 1
1338 # Check whether --enable-shared or --disable-shared was given.
1339 if test "${enable_shared+set}" = set; then
1340 enableval="$enable_shared"
1341 p=${PACKAGE-default}
1342 case "$enableval" in
1343 yes) enable_shared=yes ;;
1344 no) enable_shared=no ;;
1347 # Look at the argument we got. We use all the common list separators.
1348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1349 for pkg in $enableval; do
1350 if test "X$pkg" = "X$p"; then
1361 # Check whether --enable-static or --disable-static was given.
1362 if test "${enable_static+set}" = set; then
1363 enableval="$enable_static"
1364 p=${PACKAGE-default}
1365 case "$enableval" in
1366 yes) enable_static=yes ;;
1367 no) enable_static=no ;;
1370 # Look at the argument we got. We use all the common list separators.
1371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1372 for pkg in $enableval; do
1373 if test "X$pkg" = "X$p"; then
1384 # Check whether --enable-fast-install or --disable-fast-install was given.
1385 if test "${enable_fast_install+set}" = set; then
1386 enableval="$enable_fast_install"
1387 p=${PACKAGE-default}
1388 case "$enableval" in
1389 yes) enable_fast_install=yes ;;
1390 no) enable_fast_install=no ;;
1392 enable_fast_install=no
1393 # Look at the argument we got. We use all the common list separators.
1394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1395 for pkg in $enableval; do
1396 if test "X$pkg" = "X$p"; then
1397 enable_fast_install=yes
1404 enable_fast_install=yes
1408 # Make sure we can run config.sub.
1409 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1410 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1413 echo $ac_n "checking host system type""... $ac_c" 1>&6
1414 echo "configure:1415: checking host system type" >&5
1417 case "$host_alias" in
1421 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1422 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1424 *) host_alias=$nonopt ;;
1428 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1429 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$ac_t""$host" 1>&6
1434 echo $ac_n "checking build system type""... $ac_c" 1>&6
1435 echo "configure:1436: checking build system type" >&5
1438 case "$build_alias" in
1441 NONE) build_alias=$host_alias ;;
1442 *) build_alias=$nonopt ;;
1446 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1447 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$ac_t""$build" 1>&6
1452 # Extract the first word of "ranlib", so it can be a program name with args.
1453 set dummy ranlib; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$RANLIB"; then
1460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1464 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 if test -f $ac_dir/$ac_word; then
1467 ac_cv_prog_RANLIB="ranlib"
1472 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1475 RANLIB="$ac_cv_prog_RANLIB"
1476 if test -n "$RANLIB"; then
1477 echo "$ac_t""$RANLIB" 1>&6
1479 echo "$ac_t""no" 1>&6
1482 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1483 if test "${with_gnu_ld+set}" = set; then
1484 withval="$with_gnu_ld"
1485 test "$withval" = no || with_gnu_ld=yes
1491 if test "$ac_cv_prog_gcc" = yes; then
1492 # Check if gcc -print-prog-name=ld gives a path.
1493 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1494 echo "configure:1495: checking for ld used by GCC" >&5
1495 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1497 # Accept absolute paths.
1498 [\\/]* | [A-Za-z]:[\\/]*)
1499 re_direlt='/[^/][^/]*/\.\./'
1500 # Canonicalize the path of ld
1501 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1503 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1505 test -z "$LD" && LD="$ac_prog"
1508 # If it fails, then pretend we aren't using GCC.
1512 # If it is relative, then search for the first ld in PATH.
1516 elif test "$with_gnu_ld" = yes; then
1517 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1518 echo "configure:1519: checking for GNU ld" >&5
1520 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1521 echo "configure:1522: checking for non-GNU ld" >&5
1523 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 if test -z "$LD"; then
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1528 for ac_dir in $PATH; do
1529 test -z "$ac_dir" && ac_dir=.
1530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1531 ac_cv_path_LD="$ac_dir/$ac_prog"
1532 # Check to see if the program is GNU ld. I'd rather use --version,
1533 # but apparently some GNU ld's only accept -v.
1534 # Break only if it was the GNU/non-GNU ld that we prefer.
1535 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1536 test "$with_gnu_ld" != no && break
1538 test "$with_gnu_ld" != yes && break
1544 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1549 if test -n "$LD"; then
1550 echo "$ac_t""$LD" 1>&6
1552 echo "$ac_t""no" 1>&6
1554 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1556 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1557 echo "configure:1558: checking if the linker ($LD) is GNU ld" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1562 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1563 ac_cv_prog_gnu_ld=yes
1565 ac_cv_prog_gnu_ld=no
1569 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1572 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1573 echo "configure:1574: checking for BSD-compatible nm" >&5
1574 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 if test -n "$NM"; then
1578 # Let the user override the test.
1581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1582 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1583 test -z "$ac_dir" && ac_dir=.
1584 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1585 # Check to see if the nm accepts a BSD-compat flag.
1586 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1587 # nm: unknown option "B" ignored
1588 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1589 ac_cv_path_NM="$ac_dir/nm -B"
1591 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1592 ac_cv_path_NM="$ac_dir/nm -p"
1595 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1596 continue # so that we can try to find one that supports BSD flags
1601 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1606 echo "$ac_t""$NM" 1>&6
1609 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1610 echo "configure:1611: checking whether ln -s works" >&5
1611 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1615 if ln -s X conftestdata 2>/dev/null
1618 ac_cv_prog_LN_S="ln -s"
1623 LN_S="$ac_cv_prog_LN_S"
1624 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1625 echo "$ac_t""yes" 1>&6
1627 echo "$ac_t""no" 1>&6
1631 # Check for any special flags to pass to ltconfig.
1633 # the following will cause an existing older ltconfig to fail, so
1634 # we ignore this at the expense of the cache file... Checking this
1635 # will just take longer ... bummer!
1636 #libtool_flags="--cache-file=$cache_file"
1638 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1639 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1640 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1641 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1642 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1645 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1646 if test "${enable_libtool_lock+set}" = set; then
1647 enableval="$enable_libtool_lock"
1651 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1652 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1654 # Some flags need to be propagated to the compiler or linker for good
1658 # Find out which ABI we are using.
1659 echo '#line 1660 "configure"' > conftest.$ac_ext
1660 if { (eval echo configure:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1661 case "`/usr/bin/file conftest.o`" in
1677 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1678 SAVE_CFLAGS="$CFLAGS"
1679 CFLAGS="$CFLAGS -belf"
1680 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether the C compiler needs -belf" >&5
1682 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 lt_cv_cc_needs_belf=yes
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 lt_cv_cc_needs_belf=no
1705 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1706 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1707 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1708 CFLAGS="$SAVE_CFLAGS"
1716 # Save cache, so that ltconfig can load it
1717 cat > confcache <<\EOF
1718 # This file is a shell script that caches the results of configure
1719 # tests run on this system so they can be shared between configure
1720 # scripts and configure runs. It is not useful on other systems.
1721 # If it contains results you don't want to keep, you may remove or edit it.
1723 # By default, configure uses ./config.cache as the cache file,
1724 # creating it if it does not exist already. You can give configure
1725 # the --cache-file=FILE option to use a different cache file; that is
1726 # what configure does when it calls configure scripts in
1727 # subdirectories, so they share the cache.
1728 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1729 # config.status only pays attention to the cache file if you give it the
1730 # --recheck option to rerun configure.
1733 # The following way of writing the cache mishandles newlines in values,
1734 # but we know of no workaround that is simple, portable, and efficient.
1735 # So, don't put newlines in cache variables' values.
1736 # Ultrix sh set writes to stderr and can't be redirected directly,
1737 # and sets the high bit in the cache file unless we assign to the vars.
1739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1741 # `set' does not quote correctly, so add quotes (double-quote substitution
1742 # turns \\\\ into \\, and sed turns \\ into \).
1744 -e "s/'/'\\\\''/g" \
1745 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1748 # `set' quotes correctly as required by POSIX, so do not add quotes.
1749 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1752 if cmp -s $cache_file confcache; then
1755 if test -w $cache_file; then
1756 echo "updating cache $cache_file"
1757 cat confcache > $cache_file
1759 echo "not updating unwritable cache $cache_file"
1765 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1766 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1767 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1768 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1769 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1770 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1771 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1772 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1774 # Reload cache, that may have been modified by ltconfig
1775 if test -r "$cache_file"; then
1776 echo "loading cache $cache_file"
1779 echo "creating cache $cache_file"
1784 # This can be used to rebuild libtool when needed
1785 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1787 # Always use our own libtool.
1788 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1790 # Redirect the config.log output again, so that the ltconfig log is not
1791 # clobbered by the next message.
1792 exec 5>>./config.log
1802 # Check whether --with-yazconfig or --without-yazconfig was given.
1803 if test "${with_yazconfig+set}" = set; then
1804 withval="$with_yazconfig"
1808 if test "x$yazpath" != "xNONE"; then
1809 yazconfig=$yazpath/yaz-config
1811 for i in ../yaz* ../yaz; do
1813 if test -r $i/yaz-config; then
1814 yazconfig=$i/yaz-config
1818 if test "x$yazconfig" = "xNONE"; then
1819 # Extract the first word of "yaz-config", so it can be a program name with args.
1820 set dummy yaz-config; ac_word=$2
1821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1822 echo "configure:1823: checking for $ac_word" >&5
1823 if eval "test \"`echo '$''{'ac_cv_path_yazconfig'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 case "$yazconfig" in
1828 ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a path.
1831 ac_cv_path_yazconfig="$yazconfig" # Let the user override the test with a dos path.
1834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1836 for ac_dir in $ac_dummy; do
1837 test -z "$ac_dir" && ac_dir=.
1838 if test -f $ac_dir/$ac_word; then
1839 ac_cv_path_yazconfig="$ac_dir/$ac_word"
1844 test -z "$ac_cv_path_yazconfig" && ac_cv_path_yazconfig="NONE"
1848 yazconfig="$ac_cv_path_yazconfig"
1849 if test -n "$yazconfig"; then
1850 echo "$ac_t""$yazconfig" 1>&6
1852 echo "$ac_t""no" 1>&6
1857 echo $ac_n "checking for YAZ""... $ac_c" 1>&6
1858 echo "configure:1859: checking for YAZ" >&5
1859 if $yazconfig --version >/dev/null 2>&1; then
1860 YAZLIB=`$yazconfig --libs`
1861 # if this is empty, it's a simple version YAZ 1.6 script
1862 # so we have to source it instead...
1863 if test "X$YAZLIB" = "X"; then
1866 YAZLALIB=`$yazconfig --lalibs`
1867 YAZINC=`$yazconfig --cflags`
1868 YAZVERSION=`$yazconfig --version`
1870 echo "$ac_t""$yazconfig" 1>&6
1872 echo "$ac_t""Not found" 1>&6
1877 YAZPP_SRC_ROOT=`pwd`
1880 if test -f src/yaz++-config.in; then
1881 rm src/yaz++-config.in
1883 sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config.in >src/yaz++-config.in
1885 cat > confcache <<\EOF
1886 # This file is a shell script that caches the results of configure
1887 # tests run on this system so they can be shared between configure
1888 # scripts and configure runs. It is not useful on other systems.
1889 # If it contains results you don't want to keep, you may remove or edit it.
1891 # By default, configure uses ./config.cache as the cache file,
1892 # creating it if it does not exist already. You can give configure
1893 # the --cache-file=FILE option to use a different cache file; that is
1894 # what configure does when it calls configure scripts in
1895 # subdirectories, so they share the cache.
1896 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1897 # config.status only pays attention to the cache file if you give it the
1898 # --recheck option to rerun configure.
1901 # The following way of writing the cache mishandles newlines in values,
1902 # but we know of no workaround that is simple, portable, and efficient.
1903 # So, don't put newlines in cache variables' values.
1904 # Ultrix sh set writes to stderr and can't be redirected directly,
1905 # and sets the high bit in the cache file unless we assign to the vars.
1907 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1909 # `set' does not quote correctly, so add quotes (double-quote substitution
1910 # turns \\\\ into \\, and sed turns \\ into \).
1912 -e "s/'/'\\\\''/g" \
1913 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1916 # `set' quotes correctly as required by POSIX, so do not add quotes.
1917 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1920 if cmp -s $cache_file confcache; then
1923 if test -w $cache_file; then
1924 echo "updating cache $cache_file"
1925 cat confcache > $cache_file
1927 echo "not updating unwritable cache $cache_file"
1932 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1935 # Let make expand exec_prefix.
1936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1938 # Any assignment to VPATH causes Sun make to only execute
1939 # the first set of double-colon rules, so remove it if not needed.
1940 # If there is a colon in the path, we need to keep it.
1941 if test "x$srcdir" = x.; then
1942 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1945 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1947 # Transform confdefs.h into DEFS.
1948 # Protect against shell expansion while executing Makefile rules.
1949 # Protect against Makefile macro expansion.
1950 cat > conftest.defs <<\EOF
1951 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1952 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1957 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1961 # Without the "./", some shells look in PATH for config.status.
1962 : ${CONFIG_STATUS=./config.status}
1964 echo creating $CONFIG_STATUS
1965 rm -f $CONFIG_STATUS
1966 cat > $CONFIG_STATUS <<EOF
1968 # Generated automatically by configure.
1969 # Run this file to recreate the current configuration.
1970 # This directory was configured as follows,
1971 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1973 # $0 $ac_configure_args
1975 # Compiler output produced by configure, useful for debugging
1976 # configure, is in ./config.log if it exists.
1978 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1981 case "\$ac_option" in
1982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1983 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1984 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1985 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1986 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1988 -help | --help | --hel | --he | --h)
1989 echo "\$ac_cs_usage"; exit 0 ;;
1990 *) echo "\$ac_cs_usage"; exit 1 ;;
1994 ac_given_srcdir=$srcdir
1995 ac_given_INSTALL="$INSTALL"
1997 trap 'rm -fr `echo "
2001 include/yaz++/Makefile
2004 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2006 cat >> $CONFIG_STATUS <<EOF
2008 # Protect against being on the right side of a sed subst in config.status.
2009 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2010 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2014 s%@CFLAGS@%$CFLAGS%g
2015 s%@CPPFLAGS@%$CPPFLAGS%g
2016 s%@CXXFLAGS@%$CXXFLAGS%g
2017 s%@FFLAGS@%$FFLAGS%g
2019 s%@LDFLAGS@%$LDFLAGS%g
2021 s%@exec_prefix@%$exec_prefix%g
2022 s%@prefix@%$prefix%g
2023 s%@program_transform_name@%$program_transform_name%g
2024 s%@bindir@%$bindir%g
2025 s%@sbindir@%$sbindir%g
2026 s%@libexecdir@%$libexecdir%g
2027 s%@datadir@%$datadir%g
2028 s%@sysconfdir@%$sysconfdir%g
2029 s%@sharedstatedir@%$sharedstatedir%g
2030 s%@localstatedir@%$localstatedir%g
2031 s%@libdir@%$libdir%g
2032 s%@includedir@%$includedir%g
2033 s%@oldincludedir@%$oldincludedir%g
2034 s%@infodir@%$infodir%g
2035 s%@mandir@%$mandir%g
2036 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2037 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2038 s%@INSTALL_DATA@%$INSTALL_DATA%g
2039 s%@PACKAGE@%$PACKAGE%g
2040 s%@VERSION@%$VERSION%g
2041 s%@ACLOCAL@%$ACLOCAL%g
2042 s%@AUTOCONF@%$AUTOCONF%g
2043 s%@AUTOMAKE@%$AUTOMAKE%g
2044 s%@AUTOHEADER@%$AUTOHEADER%g
2045 s%@MAKEINFO@%$MAKEINFO%g
2046 s%@SET_MAKE@%$SET_MAKE%g
2051 s%@host_alias@%$host_alias%g
2052 s%@host_cpu@%$host_cpu%g
2053 s%@host_vendor@%$host_vendor%g
2054 s%@host_os@%$host_os%g
2056 s%@build_alias@%$build_alias%g
2057 s%@build_cpu@%$build_cpu%g
2058 s%@build_vendor@%$build_vendor%g
2059 s%@build_os@%$build_os%g
2060 s%@RANLIB@%$RANLIB%g
2064 s%@LIBTOOL@%$LIBTOOL%g
2065 s%@YAZLIB@%$YAZLIB%g
2066 s%@YAZLALIB@%$YAZLALIB%g
2067 s%@YAZINC@%$YAZINC%g
2068 s%@YAZVERSION@%$YAZVERSION%g
2069 s%@yazconfig@%$yazconfig%g
2070 s%@YAZPP_SRC_ROOT@%$YAZPP_SRC_ROOT%g
2075 cat >> $CONFIG_STATUS <<\EOF
2077 # Split the substitutions into bite-sized pieces for seds with
2078 # small command number limits, like on Digital OSF/1 and HP-UX.
2079 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2080 ac_file=1 # Number of current file.
2081 ac_beg=1 # First line for current file.
2082 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2085 while $ac_more_lines; do
2086 if test $ac_beg -gt 1; then
2087 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2089 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2091 if test ! -s conftest.s$ac_file; then
2093 rm -f conftest.s$ac_file
2095 if test -z "$ac_sed_cmds"; then
2096 ac_sed_cmds="sed -f conftest.s$ac_file"
2098 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2100 ac_file=`expr $ac_file + 1`
2102 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2105 if test -z "$ac_sed_cmds"; then
2110 cat >> $CONFIG_STATUS <<EOF
2112 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2115 include/yaz++/Makefile
2120 cat >> $CONFIG_STATUS <<\EOF
2121 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2124 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2125 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2126 *) ac_file_in="${ac_file}.in" ;;
2129 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2131 # Remove last slash and all that follows it. Not all systems have dirname.
2132 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2133 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2134 # The file is in a subdirectory.
2135 test ! -d "$ac_dir" && mkdir "$ac_dir"
2136 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2137 # A "../" for each directory in $ac_dir_suffix.
2138 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2140 ac_dir_suffix= ac_dots=
2143 case "$ac_given_srcdir" in
2145 if test -z "$ac_dots"; then top_srcdir=.
2146 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2147 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2149 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2150 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2153 case "$ac_given_INSTALL" in
2154 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2155 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2158 echo creating "$ac_file"
2160 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2162 *Makefile*) ac_comsub="1i\\
2163 # $configure_input" ;;
2167 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2169 s%@configure_input@%$configure_input%g
2170 s%@srcdir@%$srcdir%g
2171 s%@top_srcdir@%$top_srcdir%g
2172 s%@INSTALL@%$INSTALL%g
2173 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2178 cat >> $CONFIG_STATUS <<EOF
2181 cat >> $CONFIG_STATUS <<\EOF
2182 chmod +x yaz++-config src/yaz++-config
2185 chmod +x $CONFIG_STATUS
2186 rm -fr confdefs* $ac_clean_files
2187 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1