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=yes]"
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)"
27 --with-libldap=DIR Path to the libldap library [/usr/local/lib]"
29 --with-ldap-includes=DIR Path to the libldap include files [/usr/local/include]"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file=./config.cache
44 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=src/main.cpp
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
527 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
528 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
529 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536 ac_n= ac_c='\c' ac_t=
541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 # Find a good install program. We prefer a C program (faster),
560 # so one script is as good as another. But avoid the broken or
561 # incompatible versions:
562 # SysV /etc/install, /usr/sbin/install
563 # SunOS /usr/etc/install
566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
569 # ./install, which can be erroneously created by make from ./install.sh.
570 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
571 echo "configure:572: checking for a BSD compatible install" >&5
572 if test -z "$INSTALL"; then
573 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
577 for ac_dir in $PATH; do
578 # Account for people who put trailing slashes in PATH elements.
580 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
582 # OSF1 and SCO ODT 3.0 have their own names for install.
583 # Don't use installbsd from OSF since it installs stuff as root
585 for ac_prog in ginstall scoinst install; do
586 if test -f $ac_dir/$ac_prog; then
587 if test $ac_prog = install &&
588 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
589 # AIX install. It has an incompatible calling convention.
592 ac_cv_path_install="$ac_dir/$ac_prog -c"
603 if test "${ac_cv_path_install+set}" = set; then
604 INSTALL="$ac_cv_path_install"
606 # As a last resort, use the slow shell script. We don't cache a
607 # path for INSTALL within a source directory, because that will
608 # break other packages using the cache if that directory is
609 # removed, or if the path is relative.
610 INSTALL="$ac_install_sh"
613 echo "$ac_t""$INSTALL" 1>&6
615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
616 # It thinks the first close brace ends the variable substitution.
617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
623 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
624 echo "configure:625: checking whether build environment is sane" >&5
627 echo timestamp > conftestfile
628 # Do `set' in a subshell so we don't clobber the current shell's
629 # arguments. Must try -L first in case configure is actually a
630 # symlink; some systems play weird games with the mod time of symlinks
631 # (eg FreeBSD returns the mod time of the symlink's containing
634 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
635 if test "$*" = "X"; then
637 set X `ls -t $srcdir/configure conftestfile`
639 if test "$*" != "X $srcdir/configure conftestfile" \
640 && test "$*" != "X conftestfile $srcdir/configure"; then
642 # If neither matched, then we have a broken ls. This can happen
643 # if, for instance, CONFIG_SHELL is bash and it inherits a
644 # broken ls alias from the environment. This has actually
645 # happened. Such a system could not be considered "sane".
646 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
647 alias in your environment" 1>&2; exit 1; }
650 test "$2" = conftestfile
656 { echo "configure: error: newly created file is older than distributed files!
657 Check your system clock" 1>&2; exit 1; }
660 echo "$ac_t""yes" 1>&6
661 if test "$program_transform_name" = s,x,x,; then
662 program_transform_name=
664 # Double any \ or $. echo might interpret backslashes.
665 cat <<\EOF_SED > conftestsed
666 s,\\,\\\\,g; s,\$,$$,g
668 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
671 test "$program_prefix" != NONE &&
672 program_transform_name="s,^,${program_prefix},; $program_transform_name"
673 # Use a double $ so make ignores it.
674 test "$program_suffix" != NONE &&
675 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
677 # sed with no file args requires a program.
678 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
680 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
681 echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5
682 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
683 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 cat > conftestmake <<\EOF
688 @echo 'ac_maketemp="${MAKE}"'
690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
691 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
692 if test -n "$ac_maketemp"; then
693 eval ac_cv_prog_make_${ac_make}_set=yes
695 eval ac_cv_prog_make_${ac_make}_set=no
699 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
700 echo "$ac_t""yes" 1>&6
703 echo "$ac_t""no" 1>&6
704 SET_MAKE="MAKE=${MAKE-make}"
712 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
713 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
715 cat >> confdefs.h <<EOF
716 #define PACKAGE "$PACKAGE"
719 cat >> confdefs.h <<EOF
720 #define VERSION "$VERSION"
725 missing_dir=`cd $ac_aux_dir && pwd`
726 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
727 echo "configure:728: checking for working aclocal" >&5
728 # Run test in a subshell; some versions of sh will print an error if
729 # an executable is not found, even if stderr is redirected.
730 # Redirect stdin to placate older versions of autoconf. Sigh.
731 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
733 echo "$ac_t""found" 1>&6
735 ACLOCAL="$missing_dir/missing aclocal"
736 echo "$ac_t""missing" 1>&6
739 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
740 echo "configure:741: checking for working autoconf" >&5
741 # Run test in a subshell; some versions of sh will print an error if
742 # an executable is not found, even if stderr is redirected.
743 # Redirect stdin to placate older versions of autoconf. Sigh.
744 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
746 echo "$ac_t""found" 1>&6
748 AUTOCONF="$missing_dir/missing autoconf"
749 echo "$ac_t""missing" 1>&6
752 echo $ac_n "checking for working automake""... $ac_c" 1>&6
753 echo "configure:754: checking for working automake" >&5
754 # Run test in a subshell; some versions of sh will print an error if
755 # an executable is not found, even if stderr is redirected.
756 # Redirect stdin to placate older versions of autoconf. Sigh.
757 if (automake --version) < /dev/null > /dev/null 2>&1; then
759 echo "$ac_t""found" 1>&6
761 AUTOMAKE="$missing_dir/missing automake"
762 echo "$ac_t""missing" 1>&6
765 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
766 echo "configure:767: checking for working autoheader" >&5
767 # Run test in a subshell; some versions of sh will print an error if
768 # an executable is not found, even if stderr is redirected.
769 # Redirect stdin to placate older versions of autoconf. Sigh.
770 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
771 AUTOHEADER=autoheader
772 echo "$ac_t""found" 1>&6
774 AUTOHEADER="$missing_dir/missing autoheader"
775 echo "$ac_t""missing" 1>&6
778 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
779 echo "configure:780: checking for working makeinfo" >&5
780 # Run test in a subshell; some versions of sh will print an error if
781 # an executable is not found, even if stderr is redirected.
782 # Redirect stdin to placate older versions of autoconf. Sigh.
783 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
785 echo "$ac_t""found" 1>&6
787 MAKEINFO="$missing_dir/missing makeinfo"
788 echo "$ac_t""missing" 1>&6
797 # Find a good install program. We prefer a C program (faster),
798 # so one script is as good as another. But avoid the broken or
799 # incompatible versions:
800 # SysV /etc/install, /usr/sbin/install
801 # SunOS /usr/etc/install
804 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
805 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
806 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
807 # ./install, which can be erroneously created by make from ./install.sh.
808 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
809 echo "configure:810: checking for a BSD compatible install" >&5
810 if test -z "$INSTALL"; then
811 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
815 for ac_dir in $PATH; do
816 # Account for people who put trailing slashes in PATH elements.
818 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
820 # OSF1 and SCO ODT 3.0 have their own names for install.
821 # Don't use installbsd from OSF since it installs stuff as root
823 for ac_prog in ginstall scoinst install; do
824 if test -f $ac_dir/$ac_prog; then
825 if test $ac_prog = install &&
826 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
827 # AIX install. It has an incompatible calling convention.
830 ac_cv_path_install="$ac_dir/$ac_prog -c"
841 if test "${ac_cv_path_install+set}" = set; then
842 INSTALL="$ac_cv_path_install"
844 # As a last resort, use the slow shell script. We don't cache a
845 # path for INSTALL within a source directory, because that will
846 # break other packages using the cache if that directory is
847 # removed, or if the path is relative.
848 INSTALL="$ac_install_sh"
851 echo "$ac_t""$INSTALL" 1>&6
853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
854 # It thinks the first close brace ends the variable substitution.
855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
861 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
863 # Extract the first word of "$ac_prog", so it can be a program name with args.
864 set dummy $ac_prog; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 if test -n "$CXX"; then
871 ac_cv_prog_CXX="$CXX" # Let the user override the test.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 ac_cv_prog_CXX="$ac_prog"
885 CXX="$ac_cv_prog_CXX"
886 if test -n "$CXX"; then
887 echo "$ac_t""$CXX" 1>&6
889 echo "$ac_t""no" 1>&6
892 test -n "$CXX" && break
894 test -n "$CXX" || CXX="gcc"
897 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
898 echo "configure:899: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CXXCPP $CPPFLAGS'
903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cxx_cross
907 cat > conftest.$ac_ext << EOF
909 #line 910 "configure"
910 #include "confdefs.h"
912 int main(){return(0);}
914 if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
915 ac_cv_prog_cxx_works=yes
916 # If we can't run a trivial program, we are probably using a cross compiler.
917 if (./conftest; exit) 2>/dev/null; then
918 ac_cv_prog_cxx_cross=no
920 ac_cv_prog_cxx_cross=yes
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 ac_cv_prog_cxx_works=no
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CPP $CPPFLAGS'
931 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cc_cross
935 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
936 if test $ac_cv_prog_cxx_works = no; then
937 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
939 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
940 echo "configure:941: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
941 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
942 cross_compiling=$ac_cv_prog_cxx_cross
944 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
945 echo "configure:946: checking whether we are using GNU C++" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 cat > conftest.C <<EOF
954 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
961 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
963 if test $ac_cv_prog_gxx = yes; then
969 ac_test_CXXFLAGS="${CXXFLAGS+set}"
970 ac_save_CXXFLAGS="$CXXFLAGS"
972 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
973 echo "configure:974: checking whether ${CXX-g++} accepts -g" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 echo 'void f(){}' > conftest.cc
978 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
987 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
988 if test "$ac_test_CXXFLAGS" = set; then
989 CXXFLAGS="$ac_save_CXXFLAGS"
990 elif test $ac_cv_prog_cxx_g = yes; then
991 if test "$GXX" = yes; then
997 if test "$GXX" = yes; then
1004 # Check whether --enable-shared or --disable-shared was given.
1005 if test "${enable_shared+set}" = set; then
1006 enableval="$enable_shared"
1007 p=${PACKAGE-default}
1008 case "$enableval" in
1009 yes) enable_shared=yes ;;
1010 no) enable_shared=no ;;
1013 # Look at the argument we got. We use all the common list separators.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1015 for pkg in $enableval; do
1016 if test "X$pkg" = "X$p"; then
1027 # Check whether --enable-static or --disable-static was given.
1028 if test "${enable_static+set}" = set; then
1029 enableval="$enable_static"
1030 p=${PACKAGE-default}
1031 case "$enableval" in
1032 yes) enable_static=yes ;;
1033 no) enable_static=no ;;
1036 # Look at the argument we got. We use all the common list separators.
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1038 for pkg in $enableval; do
1039 if test "X$pkg" = "X$p"; then
1050 # Check whether --enable-fast-install or --disable-fast-install was given.
1051 if test "${enable_fast_install+set}" = set; then
1052 enableval="$enable_fast_install"
1053 p=${PACKAGE-default}
1054 case "$enableval" in
1055 yes) enable_fast_install=yes ;;
1056 no) enable_fast_install=no ;;
1058 enable_fast_install=no
1059 # Look at the argument we got. We use all the common list separators.
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1061 for pkg in $enableval; do
1062 if test "X$pkg" = "X$p"; then
1063 enable_fast_install=yes
1070 enable_fast_install=yes
1074 # Make sure we can run config.sub.
1075 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1076 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1079 echo $ac_n "checking host system type""... $ac_c" 1>&6
1080 echo "configure:1081: checking host system type" >&5
1083 case "$host_alias" in
1087 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1088 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1090 *) host_alias=$nonopt ;;
1094 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1095 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1096 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1097 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1098 echo "$ac_t""$host" 1>&6
1100 echo $ac_n "checking build system type""... $ac_c" 1>&6
1101 echo "configure:1102: checking build system type" >&5
1104 case "$build_alias" in
1107 NONE) build_alias=$host_alias ;;
1108 *) build_alias=$nonopt ;;
1112 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1113 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1114 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1115 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1116 echo "$ac_t""$build" 1>&6
1118 # Extract the first word of "ranlib", so it can be a program name with args.
1119 set dummy ranlib; ac_word=$2
1120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_word" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$RANLIB"; then
1126 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1133 ac_cv_prog_RANLIB="ranlib"
1138 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1141 RANLIB="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1145 echo "$ac_t""no" 1>&6
1148 # Extract the first word of "gcc", so it can be a program name with args.
1149 set dummy gcc; ac_word=$2
1150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1151 echo "configure:1152: checking for $ac_word" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 if test -n "$CC"; then
1156 ac_cv_prog_CC="$CC" # Let the user override the test.
1158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1160 for ac_dir in $ac_dummy; do
1161 test -z "$ac_dir" && ac_dir=.
1162 if test -f $ac_dir/$ac_word; then
1171 if test -n "$CC"; then
1172 echo "$ac_t""$CC" 1>&6
1174 echo "$ac_t""no" 1>&6
1177 if test -z "$CC"; then
1178 # Extract the first word of "cc", so it can be a program name with args.
1179 set dummy cc; ac_word=$2
1180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1181 echo "configure:1182: checking for $ac_word" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 if test -n "$CC"; then
1186 ac_cv_prog_CC="$CC" # Let the user override the test.
1188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1191 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 if test -f $ac_dir/$ac_word; then
1194 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1195 ac_prog_rejected=yes
1203 if test $ac_prog_rejected = yes; then
1204 # We found a bogon in the path, so make sure we never use it.
1205 set dummy $ac_cv_prog_CC
1207 if test $# -gt 0; then
1208 # We chose a different compiler from the bogus one.
1209 # However, it has the same basename, so the bogon will be chosen
1210 # first if we set CC to just the basename; use the full file name.
1212 set dummy "$ac_dir/$ac_word" "$@"
1220 if test -n "$CC"; then
1221 echo "$ac_t""$CC" 1>&6
1223 echo "$ac_t""no" 1>&6
1226 if test -z "$CC"; then
1227 case "`uname -s`" in
1229 # Extract the first word of "cl", so it can be a program name with args.
1230 set dummy cl; ac_word=$2
1231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1232 echo "configure:1233: checking for $ac_word" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 if test -n "$CC"; then
1237 ac_cv_prog_CC="$CC" # Let the user override the test.
1239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1241 for ac_dir in $ac_dummy; do
1242 test -z "$ac_dir" && ac_dir=.
1243 if test -f $ac_dir/$ac_word; then
1252 if test -n "$CC"; then
1253 echo "$ac_t""$CC" 1>&6
1255 echo "$ac_t""no" 1>&6
1260 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1263 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1264 echo "configure:1265: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1267 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1268 ac_cpp='$CPP $CPPFLAGS'
1269 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1270 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1271 cross_compiling=$ac_cv_prog_cc_cross
1273 cat > conftest.$ac_ext << EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1280 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1281 ac_cv_prog_cc_works=yes
1282 # If we can't run a trivial program, we are probably using a cross compiler.
1283 if (./conftest; exit) 2>/dev/null; then
1284 ac_cv_prog_cc_cross=no
1286 ac_cv_prog_cc_cross=yes
1289 echo "configure: failed program was:" >&5
1290 cat conftest.$ac_ext >&5
1291 ac_cv_prog_cc_works=no
1295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1299 cross_compiling=$ac_cv_prog_cc_cross
1301 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1302 if test $ac_cv_prog_cc_works = no; then
1303 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1305 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1306 echo "configure:1307: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1307 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1308 cross_compiling=$ac_cv_prog_cc_cross
1310 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether we are using GNU C" >&5
1312 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 cat > conftest.c <<EOF
1320 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1327 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1329 if test $ac_cv_prog_gcc = yes; then
1335 ac_test_CFLAGS="${CFLAGS+set}"
1336 ac_save_CFLAGS="$CFLAGS"
1338 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1339 echo "configure:1340: checking whether ${CC-cc} accepts -g" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 echo 'void f(){}' > conftest.c
1344 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1353 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1354 if test "$ac_test_CFLAGS" = set; then
1355 CFLAGS="$ac_save_CFLAGS"
1356 elif test $ac_cv_prog_cc_g = yes; then
1357 if test "$GCC" = yes; then
1363 if test "$GCC" = yes; then
1370 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1371 if test "${with_gnu_ld+set}" = set; then
1372 withval="$with_gnu_ld"
1373 test "$withval" = no || with_gnu_ld=yes
1379 if test "$ac_cv_prog_gcc" = yes; then
1380 # Check if gcc -print-prog-name=ld gives a path.
1381 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1382 echo "configure:1383: checking for ld used by GCC" >&5
1383 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1385 # Accept absolute paths.
1386 [\\/]* | [A-Za-z]:[\\/]*)
1387 re_direlt='/[^/][^/]*/\.\./'
1388 # Canonicalize the path of ld
1389 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1390 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1391 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1393 test -z "$LD" && LD="$ac_prog"
1396 # If it fails, then pretend we aren't using GCC.
1400 # If it is relative, then search for the first ld in PATH.
1404 elif test "$with_gnu_ld" = yes; then
1405 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1406 echo "configure:1407: checking for GNU ld" >&5
1408 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1409 echo "configure:1410: checking for non-GNU ld" >&5
1411 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -z "$LD"; then
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1416 for ac_dir in $PATH; do
1417 test -z "$ac_dir" && ac_dir=.
1418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1419 ac_cv_path_LD="$ac_dir/$ac_prog"
1420 # Check to see if the program is GNU ld. I'd rather use --version,
1421 # but apparently some GNU ld's only accept -v.
1422 # Break only if it was the GNU/non-GNU ld that we prefer.
1423 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1424 test "$with_gnu_ld" != no && break
1426 test "$with_gnu_ld" != yes && break
1432 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1437 if test -n "$LD"; then
1438 echo "$ac_t""$LD" 1>&6
1440 echo "$ac_t""no" 1>&6
1442 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1443 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1444 echo "configure:1445: checking if the linker ($LD) is GNU ld" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1449 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1450 ac_cv_prog_gnu_ld=yes
1452 ac_cv_prog_gnu_ld=no
1456 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1459 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1460 echo "configure:1461: checking for BSD-compatible nm" >&5
1461 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 if test -n "$NM"; then
1465 # Let the user override the test.
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1469 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1472 # Check to see if the nm accepts a BSD-compat flag.
1473 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1474 # nm: unknown option "B" ignored
1475 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1476 ac_cv_path_NM="$ac_dir/nm -B"
1478 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1479 ac_cv_path_NM="$ac_dir/nm -p"
1482 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1483 continue # so that we can try to find one that supports BSD flags
1488 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1493 echo "$ac_t""$NM" 1>&6
1495 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1496 echo "configure:1497: checking whether ln -s works" >&5
1497 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1501 if ln -s X conftestdata 2>/dev/null
1504 ac_cv_prog_LN_S="ln -s"
1509 LN_S="$ac_cv_prog_LN_S"
1510 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1511 echo "$ac_t""yes" 1>&6
1513 echo "$ac_t""no" 1>&6
1518 NONE) lt_target="$host" ;;
1519 *) lt_target="$target" ;;
1522 # Check for any special flags to pass to ltconfig.
1523 libtool_flags="--cache-file=$cache_file"
1524 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1525 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1526 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1527 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1528 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1531 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1532 if test "${enable_libtool_lock+set}" = set; then
1533 enableval="$enable_libtool_lock"
1537 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1538 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1540 # Some flags need to be propagated to the compiler or linker for good
1542 case "$lt_target" in
1544 # Find out which ABI we are using.
1545 echo '#line 1546 "configure"' > conftest.$ac_ext
1546 if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 case "`/usr/bin/file conftest.o`" in
1563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1564 SAVE_CFLAGS="$CFLAGS"
1565 CFLAGS="$CFLAGS -belf"
1566 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1567 echo "configure:1568: checking whether the C compiler needs -belf" >&5
1568 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1579 if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 lt_cv_cc_needs_belf=yes
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 lt_cv_cc_needs_belf=no
1591 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1592 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1593 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1594 CFLAGS="$SAVE_CFLAGS"
1602 # Save cache, so that ltconfig can load it
1603 cat > confcache <<\EOF
1604 # This file is a shell script that caches the results of configure
1605 # tests run on this system so they can be shared between configure
1606 # scripts and configure runs. It is not useful on other systems.
1607 # If it contains results you don't want to keep, you may remove or edit it.
1609 # By default, configure uses ./config.cache as the cache file,
1610 # creating it if it does not exist already. You can give configure
1611 # the --cache-file=FILE option to use a different cache file; that is
1612 # what configure does when it calls configure scripts in
1613 # subdirectories, so they share the cache.
1614 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1615 # config.status only pays attention to the cache file if you give it the
1616 # --recheck option to rerun configure.
1619 # The following way of writing the cache mishandles newlines in values,
1620 # but we know of no workaround that is simple, portable, and efficient.
1621 # So, don't put newlines in cache variables' values.
1622 # Ultrix sh set writes to stderr and can't be redirected directly,
1623 # and sets the high bit in the cache file unless we assign to the vars.
1625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1627 # `set' does not quote correctly, so add quotes (double-quote substitution
1628 # turns \\\\ into \\, and sed turns \\ into \).
1630 -e "s/'/'\\\\''/g" \
1631 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1634 # `set' quotes correctly as required by POSIX, so do not add quotes.
1635 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1638 if cmp -s $cache_file confcache; then
1641 if test -w $cache_file; then
1642 echo "updating cache $cache_file"
1643 cat confcache > $cache_file
1645 echo "not updating unwritable cache $cache_file"
1651 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1652 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1653 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1654 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1655 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1656 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1657 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1658 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1660 # Reload cache, that may have been modified by ltconfig
1661 if test -r "$cache_file"; then
1662 echo "loading cache $cache_file"
1665 echo "creating cache $cache_file"
1670 # This can be used to rebuild libtool when needed
1671 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1673 # Always use our own libtool.
1674 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1676 # Redirect the config.log output again, so that the ltconfig log is not
1677 # clobbered by the next message.
1678 exec 5>>./config.log
1680 # Check whether --enable-debug or --disable-debug was given.
1681 if test "${enable_debug+set}" = set; then
1682 enableval="$enable_debug"
1684 CXXFLAGS="-g -O0 -Wall"
1685 cat >> confdefs.h <<\EOF
1686 #define WITH_DEBUG 1
1698 # Check whether --with-libldap or --without-libldap was given.
1699 if test "${with_libldap+set}" = set; then
1700 withval="$with_libldap"
1702 LIBS="-L$with_libldap $LIBS "
1706 LIBS="-L/usr/local/lib $LIBS "
1712 # Check whether --with-ldap-includes or --without-ldap-includes was given.
1713 if test "${with_ldap_includes+set}" = set; then
1714 withval="$with_ldap_includes"
1716 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
1720 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
1725 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
1726 echo "configure:1727: checking for main in -lresolv" >&5
1727 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
1728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 ac_save_LIBS="$LIBS"
1732 LIBS="-lresolv $LIBS"
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1743 eval "ac_cv_lib_$ac_lib_var=yes"
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1748 eval "ac_cv_lib_$ac_lib_var=no"
1751 LIBS="$ac_save_LIBS"
1754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1755 echo "$ac_t""yes" 1>&6
1756 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1758 cat >> confdefs.h <<EOF
1759 #define $ac_tr_lib 1
1762 LIBS="-lresolv $LIBS"
1765 echo "$ac_t""no" 1>&6
1768 echo $ac_n "checking for ber_strdup in -llber""... $ac_c" 1>&6
1769 echo "configure:1770: checking for ber_strdup in -llber" >&5
1770 ac_lib_var=`echo lber'_'ber_strdup | sed 'y%./+-%__p_%'`
1771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 ac_save_LIBS="$LIBS"
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1790 eval "ac_cv_lib_$ac_lib_var=yes"
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 eval "ac_cv_lib_$ac_lib_var=no"
1798 LIBS="$ac_save_LIBS"
1801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1807 echo "$ac_t""no" 1>&6
1809 echo " didn't find ber_strdup in liblber !";
1810 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
1811 echo " or try the --with-libldap option.";
1816 echo $ac_n "checking for ldap_add_ext in -lldap""... $ac_c" 1>&6
1817 echo "configure:1818: checking for ldap_add_ext in -lldap" >&5
1818 ac_lib_var=`echo ldap'_'ldap_add_ext | sed 'y%./+-%__p_%'`
1819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 ac_save_LIBS="$LIBS"
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* Override any gcc2 internal prototype to avoid an error. */
1830 /* We use char because int might match the return type of a gcc2
1831 builtin and then its argument prototype would still apply. */
1832 char ldap_add_ext();
1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840 eval "ac_cv_lib_$ac_lib_var=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_lib_$ac_lib_var=no"
1848 LIBS="$ac_save_LIBS"
1851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1857 echo "$ac_t""no" 1>&6
1859 echo " didn't find ldap_add_ext in libldap !";
1860 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
1861 echo " or try the --with-libldap option.";
1866 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether time.h and sys/time.h may both be included" >&5
1868 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 #include <sys/types.h>
1875 #include <sys/time.h>
1881 if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1883 ac_cv_header_time=yes
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 ac_cv_header_time=no
1893 echo "$ac_t""$ac_cv_header_time" 1>&6
1894 if test $ac_cv_header_time = yes; then
1895 cat >> confdefs.h <<\EOF
1896 #define TIME_WITH_SYS_TIME 1
1901 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1902 echo "configure:1903: checking how to run the C preprocessor" >&5
1903 # On Suns, sometimes $CPP names a directory.
1904 if test -n "$CPP" && test -d "$CPP"; then
1907 if test -z "$CPP"; then
1908 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 # This must be in double quotes, not single quotes, because CPP may get
1912 # substituted into the Makefile and "${CC-cc}" will confuse make.
1914 # On the NeXT, cc -E runs the code through the compiler's parser,
1915 # not just through cpp.
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1932 CPP="${CC-cc} -E -traditional-cpp"
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1940 { (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1942 if test -z "$ac_err"; then
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 CPP="${CC-cc} -nologo -E"
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1973 ac_cv_prog_CPP="$CPP"
1975 CPP="$ac_cv_prog_CPP"
1977 ac_cv_prog_CPP="$CPP"
1979 echo "$ac_t""$CPP" 1>&6
1981 ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
1982 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
1983 echo "configure:1984: checking for ldap.h" >&5
1984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1993 { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1995 if test -z "$ac_err"; then
1997 eval "ac_cv_header_$ac_safe=yes"
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 eval "ac_cv_header_$ac_safe=no"
2007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2011 echo "$ac_t""no" 1>&6
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2020 egrep "ldap_add_ext" >/dev/null 2>&1; then
2028 echo " didn't find ldap_add_ext in ldap.h!";
2029 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
2030 echo " or try --with-ldap-includes option.";
2036 ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
2037 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
2038 echo "configure:2039: checking for lber.h" >&5
2039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2048 { (eval echo configure:2049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2050 if test -z "$ac_err"; then
2052 eval "ac_cv_header_$ac_safe=yes"
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2058 eval "ac_cv_header_$ac_safe=no"
2062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2063 echo "$ac_t""yes" 1>&6
2066 echo "$ac_t""no" 1>&6
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2075 egrep "ber_strdup" >/dev/null 2>&1; then
2083 echo " didn't find ber_strdup in lber.h!";
2084 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
2085 echo " or try --with-ldap-includes option.";
2095 cat > confcache <<\EOF
2096 # This file is a shell script that caches the results of configure
2097 # tests run on this system so they can be shared between configure
2098 # scripts and configure runs. It is not useful on other systems.
2099 # If it contains results you don't want to keep, you may remove or edit it.
2101 # By default, configure uses ./config.cache as the cache file,
2102 # creating it if it does not exist already. You can give configure
2103 # the --cache-file=FILE option to use a different cache file; that is
2104 # what configure does when it calls configure scripts in
2105 # subdirectories, so they share the cache.
2106 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2107 # config.status only pays attention to the cache file if you give it the
2108 # --recheck option to rerun configure.
2111 # The following way of writing the cache mishandles newlines in values,
2112 # but we know of no workaround that is simple, portable, and efficient.
2113 # So, don't put newlines in cache variables' values.
2114 # Ultrix sh set writes to stderr and can't be redirected directly,
2115 # and sets the high bit in the cache file unless we assign to the vars.
2117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2119 # `set' does not quote correctly, so add quotes (double-quote substitution
2120 # turns \\\\ into \\, and sed turns \\ into \).
2122 -e "s/'/'\\\\''/g" \
2123 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2126 # `set' quotes correctly as required by POSIX, so do not add quotes.
2127 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2130 if cmp -s $cache_file confcache; then
2133 if test -w $cache_file; then
2134 echo "updating cache $cache_file"
2135 cat confcache > $cache_file
2137 echo "not updating unwritable cache $cache_file"
2142 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2145 # Let make expand exec_prefix.
2146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2148 # Any assignment to VPATH causes Sun make to only execute
2149 # the first set of double-colon rules, so remove it if not needed.
2150 # If there is a colon in the path, we need to keep it.
2151 if test "x$srcdir" = x.; then
2152 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2155 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2157 DEFS=-DHAVE_CONFIG_H
2159 # Without the "./", some shells look in PATH for config.status.
2160 : ${CONFIG_STATUS=./config.status}
2162 echo creating $CONFIG_STATUS
2163 rm -f $CONFIG_STATUS
2164 cat > $CONFIG_STATUS <<EOF
2166 # Generated automatically by configure.
2167 # Run this file to recreate the current configuration.
2168 # This directory was configured as follows,
2169 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2171 # $0 $ac_configure_args
2173 # Compiler output produced by configure, useful for debugging
2174 # configure, is in ./config.log if it exists.
2176 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2179 case "\$ac_option" in
2180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2181 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2182 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2183 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2184 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2186 -help | --help | --hel | --he | --h)
2187 echo "\$ac_cs_usage"; exit 0 ;;
2188 *) echo "\$ac_cs_usage"; exit 1 ;;
2192 ac_given_srcdir=$srcdir
2193 ac_given_INSTALL="$INSTALL"
2195 trap 'rm -fr `echo "Makefile src/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2197 cat >> $CONFIG_STATUS <<EOF
2199 # Protect against being on the right side of a sed subst in config.status.
2200 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2201 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2205 s%@CFLAGS@%$CFLAGS%g
2206 s%@CPPFLAGS@%$CPPFLAGS%g
2207 s%@CXXFLAGS@%$CXXFLAGS%g
2208 s%@FFLAGS@%$FFLAGS%g
2210 s%@LDFLAGS@%$LDFLAGS%g
2212 s%@exec_prefix@%$exec_prefix%g
2213 s%@prefix@%$prefix%g
2214 s%@program_transform_name@%$program_transform_name%g
2215 s%@bindir@%$bindir%g
2216 s%@sbindir@%$sbindir%g
2217 s%@libexecdir@%$libexecdir%g
2218 s%@datadir@%$datadir%g
2219 s%@sysconfdir@%$sysconfdir%g
2220 s%@sharedstatedir@%$sharedstatedir%g
2221 s%@localstatedir@%$localstatedir%g
2222 s%@libdir@%$libdir%g
2223 s%@includedir@%$includedir%g
2224 s%@oldincludedir@%$oldincludedir%g
2225 s%@infodir@%$infodir%g
2226 s%@mandir@%$mandir%g
2227 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2228 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2229 s%@INSTALL_DATA@%$INSTALL_DATA%g
2230 s%@PACKAGE@%$PACKAGE%g
2231 s%@VERSION@%$VERSION%g
2232 s%@ACLOCAL@%$ACLOCAL%g
2233 s%@AUTOCONF@%$AUTOCONF%g
2234 s%@AUTOMAKE@%$AUTOMAKE%g
2235 s%@AUTOHEADER@%$AUTOHEADER%g
2236 s%@MAKEINFO@%$MAKEINFO%g
2237 s%@SET_MAKE@%$SET_MAKE%g
2240 s%@host_alias@%$host_alias%g
2241 s%@host_cpu@%$host_cpu%g
2242 s%@host_vendor@%$host_vendor%g
2243 s%@host_os@%$host_os%g
2245 s%@build_alias@%$build_alias%g
2246 s%@build_cpu@%$build_cpu%g
2247 s%@build_vendor@%$build_vendor%g
2248 s%@build_os@%$build_os%g
2249 s%@RANLIB@%$RANLIB%g
2252 s%@LIBTOOL@%$LIBTOOL%g
2258 cat >> $CONFIG_STATUS <<\EOF
2260 # Split the substitutions into bite-sized pieces for seds with
2261 # small command number limits, like on Digital OSF/1 and HP-UX.
2262 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2263 ac_file=1 # Number of current file.
2264 ac_beg=1 # First line for current file.
2265 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2268 while $ac_more_lines; do
2269 if test $ac_beg -gt 1; then
2270 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2272 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2274 if test ! -s conftest.s$ac_file; then
2276 rm -f conftest.s$ac_file
2278 if test -z "$ac_sed_cmds"; then
2279 ac_sed_cmds="sed -f conftest.s$ac_file"
2281 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2283 ac_file=`expr $ac_file + 1`
2285 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2288 if test -z "$ac_sed_cmds"; then
2293 cat >> $CONFIG_STATUS <<EOF
2295 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile"}
2297 cat >> $CONFIG_STATUS <<\EOF
2298 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2301 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2302 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2303 *) ac_file_in="${ac_file}.in" ;;
2306 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2308 # Remove last slash and all that follows it. Not all systems have dirname.
2309 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2310 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2311 # The file is in a subdirectory.
2312 test ! -d "$ac_dir" && mkdir "$ac_dir"
2313 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2314 # A "../" for each directory in $ac_dir_suffix.
2315 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2317 ac_dir_suffix= ac_dots=
2320 case "$ac_given_srcdir" in
2322 if test -z "$ac_dots"; then top_srcdir=.
2323 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2324 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2326 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2327 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2330 case "$ac_given_INSTALL" in
2331 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2332 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2335 echo creating "$ac_file"
2337 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2339 *Makefile*) ac_comsub="1i\\
2340 # $configure_input" ;;
2344 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2346 s%@configure_input@%$configure_input%g
2347 s%@srcdir@%$srcdir%g
2348 s%@top_srcdir@%$top_srcdir%g
2349 s%@INSTALL@%$INSTALL%g
2350 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2354 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2355 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2357 # ac_d sets the value in "#define NAME VALUE" lines.
2358 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2359 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2362 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2363 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2364 ac_uB='\([ ]\)%\1#\2define\3'
2367 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2368 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2369 ac_eB='$%\1#\2define\3'
2373 if test "${CONFIG_HEADERS+set}" != set; then
2375 cat >> $CONFIG_STATUS <<EOF
2376 CONFIG_HEADERS="src/config.h"
2378 cat >> $CONFIG_STATUS <<\EOF
2380 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2383 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2384 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2385 *) ac_file_in="${ac_file}.in" ;;
2388 echo creating $ac_file
2390 rm -f conftest.frag conftest.in conftest.out
2391 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2392 cat $ac_file_inputs > conftest.in
2396 # Transform confdefs.h into a sed script conftest.vals that substitutes
2397 # the proper values into config.h.in to produce config.h. And first:
2398 # Protect against being on the right side of a sed subst in config.status.
2399 # Protect against being in an unquoted here document in config.status.
2401 cat > conftest.hdr <<\EOF
2404 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2408 sed -n -f conftest.hdr confdefs.h > conftest.vals
2411 # This sed command replaces #undef with comments. This is necessary, for
2412 # example, in the case of _POSIX_SOURCE, which is predefined and required
2413 # on some systems where configure will not decide to define it.
2414 cat >> conftest.vals <<\EOF
2415 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2418 # Break up conftest.vals because some shells have a limit on
2419 # the size of here documents, and old seds have small limits too.
2424 ac_lines=`grep -c . conftest.vals`
2425 # grep -c gives empty output for an empty file on some AIX systems.
2426 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2427 # Write a limited-size here document to conftest.frag.
2428 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2429 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2431 sed -f conftest.frag conftest.in > conftest.out
2433 mv conftest.out conftest.in
2435 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2437 mv conftest.tail conftest.vals
2441 cat >> $CONFIG_STATUS <<\EOF
2442 rm -f conftest.frag conftest.h
2443 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2444 cat conftest.in >> conftest.h
2446 if cmp -s $ac_file conftest.h 2>/dev/null; then
2447 echo "$ac_file is unchanged"
2450 # Remove last slash and all that follows it. Not all systems have dirname.
2451 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2452 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2453 # The file is in a subdirectory.
2454 test ! -d "$ac_dir" && mkdir "$ac_dir"
2457 mv conftest.h $ac_file
2462 cat >> $CONFIG_STATUS <<EOF
2466 cat >> $CONFIG_STATUS <<\EOF
2467 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
2471 chmod +x $CONFIG_STATUS
2472 rm -fr confdefs* $ac_clean_files
2473 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1