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"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='\c' ac_t=
534 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
535 if test -f $ac_dir/install-sh; then
537 ac_install_sh="$ac_aux_dir/install-sh -c"
539 elif test -f $ac_dir/install.sh; then
541 ac_install_sh="$ac_aux_dir/install.sh -c"
545 if test -z "$ac_aux_dir"; then
546 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
548 ac_config_guess=$ac_aux_dir/config.guess
549 ac_config_sub=$ac_aux_dir/config.sub
550 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
552 # Find a good install program. We prefer a C program (faster),
553 # so one script is as good as another. But avoid the broken or
554 # incompatible versions:
555 # SysV /etc/install, /usr/sbin/install
556 # SunOS /usr/etc/install
559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
562 # ./install, which can be erroneously created by make from ./install.sh.
563 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
564 echo "configure:565: checking for a BSD compatible install" >&5
565 if test -z "$INSTALL"; then
566 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
569 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
570 for ac_dir in $PATH; do
571 # Account for people who put trailing slashes in PATH elements.
573 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
575 # OSF1 and SCO ODT 3.0 have their own names for install.
576 # Don't use installbsd from OSF since it installs stuff as root
578 for ac_prog in ginstall scoinst install; do
579 if test -f $ac_dir/$ac_prog; then
580 if test $ac_prog = install &&
581 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
582 # AIX install. It has an incompatible calling convention.
585 ac_cv_path_install="$ac_dir/$ac_prog -c"
596 if test "${ac_cv_path_install+set}" = set; then
597 INSTALL="$ac_cv_path_install"
599 # As a last resort, use the slow shell script. We don't cache a
600 # path for INSTALL within a source directory, because that will
601 # break other packages using the cache if that directory is
602 # removed, or if the path is relative.
603 INSTALL="$ac_install_sh"
606 echo "$ac_t""$INSTALL" 1>&6
608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609 # It thinks the first close brace ends the variable substitution.
610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
616 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
617 echo "configure:618: checking whether build environment is sane" >&5
620 echo timestamp > conftestfile
621 # Do `set' in a subshell so we don't clobber the current shell's
622 # arguments. Must try -L first in case configure is actually a
623 # symlink; some systems play weird games with the mod time of symlinks
624 # (eg FreeBSD returns the mod time of the symlink's containing
627 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
628 if test "$*" = "X"; then
630 set X `ls -t $srcdir/configure conftestfile`
632 if test "$*" != "X $srcdir/configure conftestfile" \
633 && test "$*" != "X conftestfile $srcdir/configure"; then
635 # If neither matched, then we have a broken ls. This can happen
636 # if, for instance, CONFIG_SHELL is bash and it inherits a
637 # broken ls alias from the environment. This has actually
638 # happened. Such a system could not be considered "sane".
639 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
640 alias in your environment" 1>&2; exit 1; }
643 test "$2" = conftestfile
649 { echo "configure: error: newly created file is older than distributed files!
650 Check your system clock" 1>&2; exit 1; }
653 echo "$ac_t""yes" 1>&6
654 if test "$program_transform_name" = s,x,x,; then
655 program_transform_name=
657 # Double any \ or $. echo might interpret backslashes.
658 cat <<\EOF_SED > conftestsed
659 s,\\,\\\\,g; s,\$,$$,g
661 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
664 test "$program_prefix" != NONE &&
665 program_transform_name="s,^,${program_prefix},; $program_transform_name"
666 # Use a double $ so make ignores it.
667 test "$program_suffix" != NONE &&
668 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
670 # sed with no file args requires a program.
671 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
673 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
674 echo "configure:675: checking whether ${MAKE-make} sets \${MAKE}" >&5
675 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
676 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 cat > conftestmake <<\EOF
681 @echo 'ac_maketemp="${MAKE}"'
683 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
684 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
685 if test -n "$ac_maketemp"; then
686 eval ac_cv_prog_make_${ac_make}_set=yes
688 eval ac_cv_prog_make_${ac_make}_set=no
692 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
693 echo "$ac_t""yes" 1>&6
696 echo "$ac_t""no" 1>&6
697 SET_MAKE="MAKE=${MAKE-make}"
705 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
706 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
708 cat >> confdefs.h <<EOF
709 #define PACKAGE "$PACKAGE"
712 cat >> confdefs.h <<EOF
713 #define VERSION "$VERSION"
718 missing_dir=`cd $ac_aux_dir && pwd`
719 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
720 echo "configure:721: checking for working aclocal" >&5
721 # Run test in a subshell; some versions of sh will print an error if
722 # an executable is not found, even if stderr is redirected.
723 # Redirect stdin to placate older versions of autoconf. Sigh.
724 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
726 echo "$ac_t""found" 1>&6
728 ACLOCAL="$missing_dir/missing aclocal"
729 echo "$ac_t""missing" 1>&6
732 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
733 echo "configure:734: checking for working autoconf" >&5
734 # Run test in a subshell; some versions of sh will print an error if
735 # an executable is not found, even if stderr is redirected.
736 # Redirect stdin to placate older versions of autoconf. Sigh.
737 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
739 echo "$ac_t""found" 1>&6
741 AUTOCONF="$missing_dir/missing autoconf"
742 echo "$ac_t""missing" 1>&6
745 echo $ac_n "checking for working automake""... $ac_c" 1>&6
746 echo "configure:747: checking for working automake" >&5
747 # Run test in a subshell; some versions of sh will print an error if
748 # an executable is not found, even if stderr is redirected.
749 # Redirect stdin to placate older versions of autoconf. Sigh.
750 if (automake --version) < /dev/null > /dev/null 2>&1; then
752 echo "$ac_t""found" 1>&6
754 AUTOMAKE="$missing_dir/missing automake"
755 echo "$ac_t""missing" 1>&6
758 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
759 echo "configure:760: checking for working autoheader" >&5
760 # Run test in a subshell; some versions of sh will print an error if
761 # an executable is not found, even if stderr is redirected.
762 # Redirect stdin to placate older versions of autoconf. Sigh.
763 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
764 AUTOHEADER=autoheader
765 echo "$ac_t""found" 1>&6
767 AUTOHEADER="$missing_dir/missing autoheader"
768 echo "$ac_t""missing" 1>&6
771 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
772 echo "configure:773: checking for working makeinfo" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
778 echo "$ac_t""found" 1>&6
780 MAKEINFO="$missing_dir/missing makeinfo"
781 echo "$ac_t""missing" 1>&6
790 # Find a good install program. We prefer a C program (faster),
791 # so one script is as good as another. But avoid the broken or
792 # incompatible versions:
793 # SysV /etc/install, /usr/sbin/install
794 # SunOS /usr/etc/install
797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
800 # ./install, which can be erroneously created by make from ./install.sh.
801 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
802 echo "configure:803: checking for a BSD compatible install" >&5
803 if test -z "$INSTALL"; then
804 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
807 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
808 for ac_dir in $PATH; do
809 # Account for people who put trailing slashes in PATH elements.
811 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
813 # OSF1 and SCO ODT 3.0 have their own names for install.
814 # Don't use installbsd from OSF since it installs stuff as root
816 for ac_prog in ginstall scoinst install; do
817 if test -f $ac_dir/$ac_prog; then
818 if test $ac_prog = install &&
819 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
820 # AIX install. It has an incompatible calling convention.
823 ac_cv_path_install="$ac_dir/$ac_prog -c"
834 if test "${ac_cv_path_install+set}" = set; then
835 INSTALL="$ac_cv_path_install"
837 # As a last resort, use the slow shell script. We don't cache a
838 # path for INSTALL within a source directory, because that will
839 # break other packages using the cache if that directory is
840 # removed, or if the path is relative.
841 INSTALL="$ac_install_sh"
844 echo "$ac_t""$INSTALL" 1>&6
846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
847 # It thinks the first close brace ends the variable substitution.
848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
852 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
854 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
856 # Extract the first word of "$ac_prog", so it can be a program name with args.
857 set dummy $ac_prog; ac_word=$2
858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859 echo "configure:860: checking for $ac_word" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 if test -n "$CXX"; then
864 ac_cv_prog_CXX="$CXX" # Let the user override the test.
866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
868 for ac_dir in $ac_dummy; do
869 test -z "$ac_dir" && ac_dir=.
870 if test -f $ac_dir/$ac_word; then
871 ac_cv_prog_CXX="$ac_prog"
878 CXX="$ac_cv_prog_CXX"
879 if test -n "$CXX"; then
880 echo "$ac_t""$CXX" 1>&6
882 echo "$ac_t""no" 1>&6
885 test -n "$CXX" && break
887 test -n "$CXX" || CXX="gcc"
890 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
891 echo "configure:892: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
894 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CXXCPP $CPPFLAGS'
896 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cxx_cross
900 cat > conftest.$ac_ext << EOF
902 #line 903 "configure"
903 #include "confdefs.h"
905 int main(){return(0);}
907 if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
908 ac_cv_prog_cxx_works=yes
909 # If we can't run a trivial program, we are probably using a cross compiler.
910 if (./conftest; exit) 2>/dev/null; then
911 ac_cv_prog_cxx_cross=no
913 ac_cv_prog_cxx_cross=yes
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
918 ac_cv_prog_cxx_works=no
922 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
923 ac_cpp='$CPP $CPPFLAGS'
924 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
925 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
926 cross_compiling=$ac_cv_prog_cc_cross
928 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
929 if test $ac_cv_prog_cxx_works = no; then
930 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
932 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
933 echo "configure:934: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
934 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
935 cross_compiling=$ac_cv_prog_cxx_cross
937 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
938 echo "configure:939: checking whether we are using GNU C++" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 cat > conftest.C <<EOF
947 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
954 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
956 if test $ac_cv_prog_gxx = yes; then
962 ac_test_CXXFLAGS="${CXXFLAGS+set}"
963 ac_save_CXXFLAGS="$CXXFLAGS"
965 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
966 echo "configure:967: checking whether ${CXX-g++} accepts -g" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 echo 'void f(){}' > conftest.cc
971 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
980 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
981 if test "$ac_test_CXXFLAGS" = set; then
982 CXXFLAGS="$ac_save_CXXFLAGS"
983 elif test $ac_cv_prog_cxx_g = yes; then
984 if test "$GXX" = yes; then
990 if test "$GXX" = yes; then
997 # Extract the first word of "ranlib", so it can be a program name with args.
998 set dummy ranlib; ac_word=$2
999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1000 echo "configure:1001: checking for $ac_word" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 if test -n "$RANLIB"; then
1005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1009 for ac_dir in $ac_dummy; do
1010 test -z "$ac_dir" && ac_dir=.
1011 if test -f $ac_dir/$ac_word; then
1012 ac_cv_prog_RANLIB="ranlib"
1017 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1020 RANLIB="$ac_cv_prog_RANLIB"
1021 if test -n "$RANLIB"; then
1022 echo "$ac_t""$RANLIB" 1>&6
1024 echo "$ac_t""no" 1>&6
1027 # Check whether --enable-shared or --disable-shared was given.
1028 if test "${enable_shared+set}" = set; then
1029 enableval="$enable_shared"
1030 p=${PACKAGE-default}
1031 case "$enableval" in
1032 yes) enable_shared=yes ;;
1033 no) enable_shared=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-static or --disable-static was given.
1051 if test "${enable_static+set}" = set; then
1052 enableval="$enable_static"
1053 p=${PACKAGE-default}
1054 case "$enableval" in
1055 yes) enable_static=yes ;;
1056 no) enable_static=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
1073 # Check whether --enable-fast-install or --disable-fast-install was given.
1074 if test "${enable_fast_install+set}" = set; then
1075 enableval="$enable_fast_install"
1076 p=${PACKAGE-default}
1077 case "$enableval" in
1078 yes) enable_fast_install=yes ;;
1079 no) enable_fast_install=no ;;
1081 enable_fast_install=no
1082 # Look at the argument we got. We use all the common list separators.
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1084 for pkg in $enableval; do
1085 if test "X$pkg" = "X$p"; then
1086 enable_fast_install=yes
1093 enable_fast_install=yes
1097 # Make sure we can run config.sub.
1098 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1099 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1102 echo $ac_n "checking host system type""... $ac_c" 1>&6
1103 echo "configure:1104: checking host system type" >&5
1106 case "$host_alias" in
1110 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1111 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1113 *) host_alias=$nonopt ;;
1117 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1118 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1119 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1120 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1121 echo "$ac_t""$host" 1>&6
1123 echo $ac_n "checking build system type""... $ac_c" 1>&6
1124 echo "configure:1125: checking build system type" >&5
1127 case "$build_alias" in
1130 NONE) build_alias=$host_alias ;;
1131 *) build_alias=$nonopt ;;
1135 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1136 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1137 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1138 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1139 echo "$ac_t""$build" 1>&6
1141 # Extract the first word of "gcc", so it can be a program name with args.
1142 set dummy gcc; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1164 if test -n "$CC"; then
1165 echo "$ac_t""$CC" 1>&6
1167 echo "$ac_t""no" 1>&6
1170 if test -z "$CC"; then
1171 # Extract the first word of "cc", so it can be a program name with args.
1172 set dummy cc; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test -n "$CC"; then
1179 ac_cv_prog_CC="$CC" # Let the user override the test.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1184 for ac_dir in $ac_dummy; do
1185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1188 ac_prog_rejected=yes
1196 if test $ac_prog_rejected = yes; then
1197 # We found a bogon in the path, so make sure we never use it.
1198 set dummy $ac_cv_prog_CC
1200 if test $# -gt 0; then
1201 # We chose a different compiler from the bogus one.
1202 # However, it has the same basename, so the bogon will be chosen
1203 # first if we set CC to just the basename; use the full file name.
1205 set dummy "$ac_dir/$ac_word" "$@"
1213 if test -n "$CC"; then
1214 echo "$ac_t""$CC" 1>&6
1216 echo "$ac_t""no" 1>&6
1219 if test -z "$CC"; then
1220 case "`uname -s`" in
1222 # Extract the first word of "cl", so it can be a program name with args.
1223 set dummy cl; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$CC"; then
1230 ac_cv_prog_CC="$CC" # Let the user override the test.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1245 if test -n "$CC"; then
1246 echo "$ac_t""$CC" 1>&6
1248 echo "$ac_t""no" 1>&6
1253 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1256 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1257 echo "configure:1258: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1261 ac_cpp='$CPP $CPPFLAGS'
1262 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1263 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1264 cross_compiling=$ac_cv_prog_cc_cross
1266 cat > conftest.$ac_ext << EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1274 ac_cv_prog_cc_works=yes
1275 # If we can't run a trivial program, we are probably using a cross compiler.
1276 if (./conftest; exit) 2>/dev/null; then
1277 ac_cv_prog_cc_cross=no
1279 ac_cv_prog_cc_cross=yes
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1284 ac_cv_prog_cc_works=no
1288 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1291 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1292 cross_compiling=$ac_cv_prog_cc_cross
1294 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1295 if test $ac_cv_prog_cc_works = no; then
1296 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1298 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1299 echo "configure:1300: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1300 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1301 cross_compiling=$ac_cv_prog_cc_cross
1303 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether we are using GNU C" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 cat > conftest.c <<EOF
1313 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1320 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1322 if test $ac_cv_prog_gcc = yes; then
1328 ac_test_CFLAGS="${CFLAGS+set}"
1329 ac_save_CFLAGS="$CFLAGS"
1331 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether ${CC-cc} accepts -g" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 echo 'void f(){}' > conftest.c
1337 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1346 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1347 if test "$ac_test_CFLAGS" = set; then
1348 CFLAGS="$ac_save_CFLAGS"
1349 elif test $ac_cv_prog_cc_g = yes; then
1350 if test "$GCC" = yes; then
1356 if test "$GCC" = yes; then
1363 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1364 if test "${with_gnu_ld+set}" = set; then
1365 withval="$with_gnu_ld"
1366 test "$withval" = no || with_gnu_ld=yes
1372 if test "$ac_cv_prog_gcc" = yes; then
1373 # Check if gcc -print-prog-name=ld gives a path.
1374 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1375 echo "configure:1376: checking for ld used by GCC" >&5
1376 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1378 # Accept absolute paths.
1379 [\\/]* | [A-Za-z]:[\\/]*)
1380 re_direlt='/[^/][^/]*/\.\./'
1381 # Canonicalize the path of ld
1382 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1383 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1384 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1386 test -z "$LD" && LD="$ac_prog"
1389 # If it fails, then pretend we aren't using GCC.
1393 # If it is relative, then search for the first ld in PATH.
1397 elif test "$with_gnu_ld" = yes; then
1398 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1399 echo "configure:1400: checking for GNU ld" >&5
1401 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1402 echo "configure:1403: checking for non-GNU ld" >&5
1404 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 if test -z "$LD"; then
1408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1409 for ac_dir in $PATH; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1412 ac_cv_path_LD="$ac_dir/$ac_prog"
1413 # Check to see if the program is GNU ld. I'd rather use --version,
1414 # but apparently some GNU ld's only accept -v.
1415 # Break only if it was the GNU/non-GNU ld that we prefer.
1416 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1417 test "$with_gnu_ld" != no && break
1419 test "$with_gnu_ld" != yes && break
1425 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1430 if test -n "$LD"; then
1431 echo "$ac_t""$LD" 1>&6
1433 echo "$ac_t""no" 1>&6
1435 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1436 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1437 echo "configure:1438: checking if the linker ($LD) is GNU ld" >&5
1438 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1442 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1443 ac_cv_prog_gnu_ld=yes
1445 ac_cv_prog_gnu_ld=no
1449 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1452 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1453 echo "configure:1454: checking for BSD-compatible nm" >&5
1454 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 if test -n "$NM"; then
1458 # Let the user override the test.
1461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1462 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1465 # Check to see if the nm accepts a BSD-compat flag.
1466 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1467 # nm: unknown option "B" ignored
1468 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1469 ac_cv_path_NM="$ac_dir/nm -B"
1471 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1472 ac_cv_path_NM="$ac_dir/nm -p"
1475 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1476 continue # so that we can try to find one that supports BSD flags
1481 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1486 echo "$ac_t""$NM" 1>&6
1488 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1489 echo "configure:1490: checking whether ln -s works" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1494 if ln -s X conftestdata 2>/dev/null
1497 ac_cv_prog_LN_S="ln -s"
1502 LN_S="$ac_cv_prog_LN_S"
1503 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1504 echo "$ac_t""yes" 1>&6
1506 echo "$ac_t""no" 1>&6
1511 NONE) lt_target="$host" ;;
1512 *) lt_target="$target" ;;
1515 # Check for any special flags to pass to ltconfig.
1516 libtool_flags="--cache-file=$cache_file"
1517 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1518 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1519 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1520 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1521 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1524 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1525 if test "${enable_libtool_lock+set}" = set; then
1526 enableval="$enable_libtool_lock"
1530 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1531 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1533 # Some flags need to be propagated to the compiler or linker for good
1535 case "$lt_target" in
1537 # Find out which ABI we are using.
1538 echo '#line 1539 "configure"' > conftest.$ac_ext
1539 if { (eval echo configure:1540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1540 case "`/usr/bin/file conftest.o`" in
1556 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1557 SAVE_CFLAGS="$CFLAGS"
1558 CFLAGS="$CFLAGS -belf"
1559 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether the C compiler needs -belf" >&5
1561 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1572 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1574 lt_cv_cc_needs_belf=yes
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1579 lt_cv_cc_needs_belf=no
1584 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1585 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1586 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1587 CFLAGS="$SAVE_CFLAGS"
1595 # Save cache, so that ltconfig can load it
1598 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1599 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1600 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1601 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1602 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1603 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1604 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1605 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1607 # Reload cache, that may have been modified by ltconfig
1610 # This can be used to rebuild libtool when needed
1611 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1613 # Always use our own libtool.
1614 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1616 # Redirect the config.log output again, so that the ltconfig log is not
1617 # clobbered by the next message.
1618 exec 5>>./config.log
1620 # Check whether --enable-debug or --disable-debug was given.
1621 if test "${enable_debug+set}" = set; then
1622 enableval="$enable_debug"
1624 CXXFLAGS="-g -O0 -Wall"
1625 cat >> confdefs.h <<\EOF
1626 #define WITH_DEBUG 1
1638 # Check whether --with-libldap or --without-libldap was given.
1639 if test "${with_libldap+set}" = set; then
1640 withval="$with_libldap"
1642 LIBS="-L$with_libldap $LIBS "
1646 LIBS="-L/usr/local/lib $LIBS "
1652 # Check whether --with-ldap-includes or --without-ldap-includes was given.
1653 if test "${with_ldap_includes+set}" = set; then
1654 withval="$with_ldap_includes"
1656 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
1660 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
1665 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
1666 echo "configure:1667: checking for main in -lresolv" >&5
1667 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
1668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 ac_save_LIBS="$LIBS"
1672 LIBS="-lresolv $LIBS"
1673 cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 eval "ac_cv_lib_$ac_lib_var=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1688 eval "ac_cv_lib_$ac_lib_var=no"
1691 LIBS="$ac_save_LIBS"
1694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1695 echo "$ac_t""yes" 1>&6
1696 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1698 cat >> confdefs.h <<EOF
1699 #define $ac_tr_lib 1
1702 LIBS="-lresolv $LIBS"
1705 echo "$ac_t""no" 1>&6
1708 echo $ac_n "checking for ber_strdup in -llber""... $ac_c" 1>&6
1709 echo "configure:1710: checking for ber_strdup in -llber" >&5
1710 ac_lib_var=`echo lber'_'ber_strdup | sed 'y%./+-%__p_%'`
1711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 ac_save_LIBS="$LIBS"
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1719 /* Override any gcc2 internal prototype to avoid an error. */
1720 /* We use char because int might match the return type of a gcc2
1721 builtin and then its argument prototype would still apply. */
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730 eval "ac_cv_lib_$ac_lib_var=yes"
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 eval "ac_cv_lib_$ac_lib_var=no"
1738 LIBS="$ac_save_LIBS"
1741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1746 echo "$ac_t""no" 1>&6
1748 echo " didn't find ber_strdup in liblber !";
1749 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
1750 echo " or try the --with-libldap option.";
1755 echo $ac_n "checking for ldap_add_ext in -lldap""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ldap_add_ext in -lldap" >&5
1757 ac_lib_var=`echo ldap'_'ldap_add_ext | sed 'y%./+-%__p_%'`
1758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 ac_save_LIBS="$LIBS"
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1768 /* Override any gcc2 internal prototype to avoid an error. */
1769 /* We use char because int might match the return type of a gcc2
1770 builtin and then its argument prototype would still apply. */
1771 char ldap_add_ext();
1777 if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1779 eval "ac_cv_lib_$ac_lib_var=yes"
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1784 eval "ac_cv_lib_$ac_lib_var=no"
1787 LIBS="$ac_save_LIBS"
1790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1791 echo "$ac_t""yes" 1>&6
1795 echo "$ac_t""no" 1>&6
1797 echo " didn't find ldap_add_ext in libldap !";
1798 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
1799 echo " or try the --with-libldap option.";
1804 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether time.h and sys/time.h may both be included" >&5
1806 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 #include <sys/types.h>
1813 #include <sys/time.h>
1819 if { (eval echo configure:1820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1821 ac_cv_header_time=yes
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 ac_cv_header_time=no
1831 echo "$ac_t""$ac_cv_header_time" 1>&6
1832 if test $ac_cv_header_time = yes; then
1833 cat >> confdefs.h <<\EOF
1834 #define TIME_WITH_SYS_TIME 1
1839 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1840 echo "configure:1841: checking how to run the C preprocessor" >&5
1841 # On Suns, sometimes $CPP names a directory.
1842 if test -n "$CPP" && test -d "$CPP"; then
1845 if test -z "$CPP"; then
1846 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 # This must be in double quotes, not single quotes, because CPP may get
1850 # substituted into the Makefile and "${CC-cc}" will confuse make.
1852 # On the NeXT, cc -E runs the code through the compiler's parser,
1853 # not just through cpp.
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1861 { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1863 if test -z "$ac_err"; then
1867 echo "configure: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1870 CPP="${CC-cc} -E -traditional-cpp"
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1878 { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1880 if test -z "$ac_err"; then
1884 echo "configure: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1887 CPP="${CC-cc} -nologo -E"
1888 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1895 { (eval echo configure:1896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1897 if test -z "$ac_err"; then
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1911 ac_cv_prog_CPP="$CPP"
1913 CPP="$ac_cv_prog_CPP"
1915 ac_cv_prog_CPP="$CPP"
1917 echo "$ac_t""$CPP" 1>&6
1919 ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
1920 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
1921 echo "configure:1922: checking for ldap.h" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1935 eval "ac_cv_header_$ac_safe=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_header_$ac_safe=no"
1945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1949 echo "$ac_t""no" 1>&6
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1958 egrep "ldap_add_ext" >/dev/null 2>&1; then
1965 echo " didn't find ldap_add_ext in ldap.h!";
1966 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
1967 echo " or try --with-ldap-includes option.";
1973 ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
1974 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
1975 echo "configure:1976: checking for lber.h" >&5
1976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1987 if test -z "$ac_err"; then
1989 eval "ac_cv_header_$ac_safe=yes"
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1995 eval "ac_cv_header_$ac_safe=no"
1999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2000 echo "$ac_t""yes" 1>&6
2003 echo "$ac_t""no" 1>&6
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2012 egrep "ber_strdup" >/dev/null 2>&1; then
2019 echo " didn't find ber_strdup in lber.h!";
2020 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
2021 echo " or try --with-ldap-includes option.";
2032 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2035 # Let make expand exec_prefix.
2036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2038 # Any assignment to VPATH causes Sun make to only execute
2039 # the first set of double-colon rules, so remove it if not needed.
2040 # If there is a colon in the path, we need to keep it.
2041 if test "x$srcdir" = x.; then
2042 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2045 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2047 DEFS=-DHAVE_CONFIG_H
2049 # Without the "./", some shells look in PATH for config.status.
2050 : ${CONFIG_STATUS=./config.status}
2052 echo creating $CONFIG_STATUS
2053 rm -f $CONFIG_STATUS
2054 cat > $CONFIG_STATUS <<EOF
2056 # Generated automatically by configure.
2057 # Run this file to recreate the current configuration.
2058 # This directory was configured as follows,
2059 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2061 # $0 $ac_configure_args
2063 # Compiler output produced by configure, useful for debugging
2064 # configure, is in ./config.log if it exists.
2066 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2069 case "\$ac_option" in
2070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2071 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2072 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2073 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2074 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2076 -help | --help | --hel | --he | --h)
2077 echo "\$ac_cs_usage"; exit 0 ;;
2078 *) echo "\$ac_cs_usage"; exit 1 ;;
2082 ac_given_srcdir=$srcdir
2083 ac_given_INSTALL="$INSTALL"
2085 trap 'rm -fr `echo "Makefile src/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2087 cat >> $CONFIG_STATUS <<EOF
2089 # Protect against being on the right side of a sed subst in config.status.
2090 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2091 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2095 s%@CFLAGS@%$CFLAGS%g
2096 s%@CPPFLAGS@%$CPPFLAGS%g
2097 s%@CXXFLAGS@%$CXXFLAGS%g
2098 s%@FFLAGS@%$FFLAGS%g
2100 s%@LDFLAGS@%$LDFLAGS%g
2102 s%@exec_prefix@%$exec_prefix%g
2103 s%@prefix@%$prefix%g
2104 s%@program_transform_name@%$program_transform_name%g
2105 s%@bindir@%$bindir%g
2106 s%@sbindir@%$sbindir%g
2107 s%@libexecdir@%$libexecdir%g
2108 s%@datadir@%$datadir%g
2109 s%@sysconfdir@%$sysconfdir%g
2110 s%@sharedstatedir@%$sharedstatedir%g
2111 s%@localstatedir@%$localstatedir%g
2112 s%@libdir@%$libdir%g
2113 s%@includedir@%$includedir%g
2114 s%@oldincludedir@%$oldincludedir%g
2115 s%@infodir@%$infodir%g
2116 s%@mandir@%$mandir%g
2117 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2118 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2119 s%@INSTALL_DATA@%$INSTALL_DATA%g
2120 s%@PACKAGE@%$PACKAGE%g
2121 s%@VERSION@%$VERSION%g
2122 s%@ACLOCAL@%$ACLOCAL%g
2123 s%@AUTOCONF@%$AUTOCONF%g
2124 s%@AUTOMAKE@%$AUTOMAKE%g
2125 s%@AUTOHEADER@%$AUTOHEADER%g
2126 s%@MAKEINFO@%$MAKEINFO%g
2127 s%@SET_MAKE@%$SET_MAKE%g
2129 s%@RANLIB@%$RANLIB%g
2131 s%@host_alias@%$host_alias%g
2132 s%@host_cpu@%$host_cpu%g
2133 s%@host_vendor@%$host_vendor%g
2134 s%@host_os@%$host_os%g
2136 s%@build_alias@%$build_alias%g
2137 s%@build_cpu@%$build_cpu%g
2138 s%@build_vendor@%$build_vendor%g
2139 s%@build_os@%$build_os%g
2142 s%@LIBTOOL@%$LIBTOOL%g
2148 cat >> $CONFIG_STATUS <<\EOF
2150 # Split the substitutions into bite-sized pieces for seds with
2151 # small command number limits, like on Digital OSF/1 and HP-UX.
2152 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2153 ac_file=1 # Number of current file.
2154 ac_beg=1 # First line for current file.
2155 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2158 while $ac_more_lines; do
2159 if test $ac_beg -gt 1; then
2160 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2162 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2164 if test ! -s conftest.s$ac_file; then
2166 rm -f conftest.s$ac_file
2168 if test -z "$ac_sed_cmds"; then
2169 ac_sed_cmds="sed -f conftest.s$ac_file"
2171 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2173 ac_file=`expr $ac_file + 1`
2175 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2178 if test -z "$ac_sed_cmds"; then
2183 cat >> $CONFIG_STATUS <<EOF
2185 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile"}
2187 cat >> $CONFIG_STATUS <<\EOF
2188 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2191 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2192 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2193 *) ac_file_in="${ac_file}.in" ;;
2196 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2198 # Remove last slash and all that follows it. Not all systems have dirname.
2199 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2200 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2201 # The file is in a subdirectory.
2202 test ! -d "$ac_dir" && mkdir "$ac_dir"
2203 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2204 # A "../" for each directory in $ac_dir_suffix.
2205 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2207 ac_dir_suffix= ac_dots=
2210 case "$ac_given_srcdir" in
2212 if test -z "$ac_dots"; then top_srcdir=.
2213 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2214 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2216 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2217 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2220 case "$ac_given_INSTALL" in
2221 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2222 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2225 echo creating "$ac_file"
2227 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2229 *Makefile*) ac_comsub="1i\\
2230 # $configure_input" ;;
2234 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2236 s%@configure_input@%$configure_input%g
2237 s%@srcdir@%$srcdir%g
2238 s%@top_srcdir@%$top_srcdir%g
2239 s%@INSTALL@%$INSTALL%g
2240 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2244 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2245 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2247 # ac_d sets the value in "#define NAME VALUE" lines.
2248 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2249 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2252 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2253 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2254 ac_uB='\([ ]\)%\1#\2define\3'
2257 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2258 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2259 ac_eB='$%\1#\2define\3'
2263 if test "${CONFIG_HEADERS+set}" != set; then
2265 cat >> $CONFIG_STATUS <<EOF
2266 CONFIG_HEADERS="src/config.h"
2268 cat >> $CONFIG_STATUS <<\EOF
2270 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2273 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2274 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2275 *) ac_file_in="${ac_file}.in" ;;
2278 echo creating $ac_file
2280 rm -f conftest.frag conftest.in conftest.out
2281 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2282 cat $ac_file_inputs > conftest.in
2286 # Transform confdefs.h into a sed script conftest.vals that substitutes
2287 # the proper values into config.h.in to produce config.h. And first:
2288 # Protect against being on the right side of a sed subst in config.status.
2289 # Protect against being in an unquoted here document in config.status.
2291 cat > conftest.hdr <<\EOF
2294 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2298 sed -n -f conftest.hdr confdefs.h > conftest.vals
2301 # This sed command replaces #undef with comments. This is necessary, for
2302 # example, in the case of _POSIX_SOURCE, which is predefined and required
2303 # on some systems where configure will not decide to define it.
2304 cat >> conftest.vals <<\EOF
2305 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2308 # Break up conftest.vals because some shells have a limit on
2309 # the size of here documents, and old seds have small limits too.
2314 ac_lines=`grep -c . conftest.vals`
2315 # grep -c gives empty output for an empty file on some AIX systems.
2316 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2317 # Write a limited-size here document to conftest.frag.
2318 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2319 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2321 sed -f conftest.frag conftest.in > conftest.out
2323 mv conftest.out conftest.in
2325 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2327 mv conftest.tail conftest.vals
2331 cat >> $CONFIG_STATUS <<\EOF
2332 rm -f conftest.frag conftest.h
2333 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2334 cat conftest.in >> conftest.h
2336 if cmp -s $ac_file conftest.h 2>/dev/null; then
2337 echo "$ac_file is unchanged"
2340 # Remove last slash and all that follows it. Not all systems have dirname.
2341 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2342 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2343 # The file is in a subdirectory.
2344 test ! -d "$ac_dir" && mkdir "$ac_dir"
2347 mv conftest.h $ac_file
2352 cat >> $CONFIG_STATUS <<EOF
2356 cat >> $CONFIG_STATUS <<\EOF
2357 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
2361 chmod +x $CONFIG_STATUS
2362 rm -fr confdefs* $ac_clean_files
2363 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1