]> git.sur5r.net Git - openldap/blob - configure
Import ITS#4439 (slapd not responding) fix for BDB/HDB cache from HEAD
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631 2006/02/27 10:20:08 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-aci          enable per-object ACIs (experimental) [no]
1019     --enable-cleartext    enable cleartext passwords [yes]
1020     --enable-crypt        enable crypt(3) passwords [no]
1021     --enable-lmpasswd     enable LAN Manager passwords [no]
1022     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1023     --enable-modules      enable dynamic module support [no]
1024     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1025     --enable-rlookups     enable reverse lookups of client hostnames [no]
1026     --enable-slapi        enable SLAPI support (experimental) [no]
1027     --enable-slp          enable SLPv2 support [no]
1028     --enable-wrappers     enable tcp wrapper support [no]
1029
1030 SLAPD Backend Options:
1031     --enable-backends     enable all available backends no|yes|mod
1032     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1033     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1034     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1035     --enable-ldap         enable ldap backend no|yes|mod [no]
1036     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1037       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1039     --enable-meta         enable metadirectory backend no|yes|mod [no]
1040     --enable-monitor      enable monitor backend no|yes|mod [yes]
1041     --enable-null         enable null backend no|yes|mod [no]
1042     --enable-passwd       enable passwd backend no|yes|mod [no]
1043     --enable-perl         enable perl backend no|yes|mod [no]
1044     --enable-relay        enable relay backend no|yes|mod [yes]
1045     --enable-shell        enable shell backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1052     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1053     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1054     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1055     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1056     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1057     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1058     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1059     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1060     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1061     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1062     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1063     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1064     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1065
1066 SLURPD (Replication Daemon) Options:
1067   --enable-slurpd         enable building slurpd [auto]
1068
1069 Library Generation & Linking Options
1070   --enable-static[=PKGS]
1071                           build static libraries [default=yes]
1072   --enable-shared[=PKGS]
1073                           build shared libraries [default=yes]
1074   --enable-fast-install[=PKGS]
1075                           optimize for fast installation [default=yes]
1076   --disable-dependency-tracking  speeds up one-time build
1077   --enable-dependency-tracking   do not reject slow dependency extractors
1078   --disable-libtool-lock  avoid locking (might break parallel builds)
1079
1080 Optional Packages:
1081   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1082   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1083   --with-subdir=DIR       change default subdirectory used for installs
1084   --with-cyrus-sasl       with Cyrus SASL support [auto]
1085   --with-fetch            with fetch(3) URL support [auto]
1086   --with-threads          with threads [auto]
1087   --with-tls              with TLS/SSL support [auto]
1088   --with-yielding-select  with implicitly yielding select [auto]
1089   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1090
1091   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092   --with-pic              try to use only PIC/non-PIC objects [default=use
1093                           both]
1094   --with-tags[=TAGS]
1095                           include additional configurations [automatic]
1096
1097 See INSTALL file for further details.
1098
1099 Some influential environment variables:
1100   CC          C compiler command
1101   CFLAGS      C compiler flags
1102   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103               nonstandard directory <lib dir>
1104   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105               headers in a nonstandard directory <include dir>
1106   CPP         C preprocessor
1107
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1110
1111 _ACEOF
1112 fi
1113
1114 if test "$ac_init_help" = "recursive"; then
1115   # If there are subdirs, report their specific --help.
1116   ac_popdir=`pwd`
1117   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118     test -d $ac_dir || continue
1119     ac_builddir=.
1120
1121 if test "$ac_dir" != .; then
1122   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123   # A "../" for each directory in $ac_dir_suffix.
1124   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 else
1126   ac_dir_suffix= ac_top_builddir=
1127 fi
1128
1129 case $srcdir in
1130   .)  # No --srcdir option.  We are building in place.
1131     ac_srcdir=.
1132     if test -z "$ac_top_builddir"; then
1133        ac_top_srcdir=.
1134     else
1135        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136     fi ;;
1137   [\\/]* | ?:[\\/]* )  # Absolute path.
1138     ac_srcdir=$srcdir$ac_dir_suffix;
1139     ac_top_srcdir=$srcdir ;;
1140   *) # Relative path.
1141     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143 esac
1144
1145 # Do not use `cd foo && pwd` to compute absolute paths, because
1146 # the directories may not exist.
1147 case `pwd` in
1148 .) ac_abs_builddir="$ac_dir";;
1149 *)
1150   case "$ac_dir" in
1151   .) ac_abs_builddir=`pwd`;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154   esac;;
1155 esac
1156 case $ac_abs_builddir in
1157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *)
1159   case ${ac_top_builddir}. in
1160   .) ac_abs_top_builddir=$ac_abs_builddir;;
1161   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163   esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_srcdir=$ac_srcdir;;
1167 *)
1168   case $ac_srcdir in
1169   .) ac_abs_srcdir=$ac_abs_builddir;;
1170   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172   esac;;
1173 esac
1174 case $ac_abs_builddir in
1175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *)
1177   case $ac_top_srcdir in
1178   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181   esac;;
1182 esac
1183
1184     cd $ac_dir
1185     # Check for guested configure; otherwise get Cygnus style configure.
1186     if test -f $ac_srcdir/configure.gnu; then
1187       echo
1188       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1189     elif test -f $ac_srcdir/configure; then
1190       echo
1191       $SHELL $ac_srcdir/configure  --help=recursive
1192     elif test -f $ac_srcdir/configure.ac ||
1193            test -f $ac_srcdir/configure.in; then
1194       echo
1195       $ac_configure --help
1196     else
1197       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198     fi
1199     cd $ac_popdir
1200   done
1201 fi
1202
1203 test -n "$ac_init_help" && exit 0
1204 if $ac_init_version; then
1205   cat <<\_ACEOF
1206
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1210
1211 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1212 Restrictions apply, see COPYRIGHT and LICENSE files.
1213 _ACEOF
1214   exit 0
1215 fi
1216 exec 5>config.log
1217 cat >&5 <<_ACEOF
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1220
1221 It was created by $as_me, which was
1222 generated by GNU Autoconf 2.59.  Invocation command line was
1223
1224   $ $0 $@
1225
1226 _ACEOF
1227 {
1228 cat <<_ASUNAME
1229 ## --------- ##
1230 ## Platform. ##
1231 ## --------- ##
1232
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1241
1242 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1243 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1246 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1247 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1248 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1249
1250 _ASUNAME
1251
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 for as_dir in $PATH
1254 do
1255   IFS=$as_save_IFS
1256   test -z "$as_dir" && as_dir=.
1257   echo "PATH: $as_dir"
1258 done
1259
1260 } >&5
1261
1262 cat >&5 <<_ACEOF
1263
1264
1265 ## ----------- ##
1266 ## Core tests. ##
1267 ## ----------- ##
1268
1269 _ACEOF
1270
1271
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1277 ac_configure_args=
1278 ac_configure_args0=
1279 ac_configure_args1=
1280 ac_sep=
1281 ac_must_keep_next=false
1282 for ac_pass in 1 2
1283 do
1284   for ac_arg
1285   do
1286     case $ac_arg in
1287     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289     | -silent | --silent | --silen | --sile | --sil)
1290       continue ;;
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     esac
1294     case $ac_pass in
1295     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296     2)
1297       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298       if test $ac_must_keep_next = true; then
1299         ac_must_keep_next=false # Got value, back to normal.
1300       else
1301         case $ac_arg in
1302           *=* | --config-cache | -C | -disable-* | --disable-* \
1303           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305           | -with-* | --with-* | -without-* | --without-* | --x)
1306             case "$ac_configure_args0 " in
1307               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308             esac
1309             ;;
1310           -* ) ac_must_keep_next=true ;;
1311         esac
1312       fi
1313       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314       # Get rid of the leading space.
1315       ac_sep=" "
1316       ;;
1317     esac
1318   done
1319 done
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log.  We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329   # Save into config.log some information that might help in debugging.
1330   {
1331     echo
1332
1333     cat <<\_ASBOX
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1337 _ASBOX
1338     echo
1339     # The following way of writing the cache mishandles newlines in values,
1340 {
1341   (set) 2>&1 |
1342     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343     *ac_space=\ *)
1344       sed -n \
1345         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347       ;;
1348     *)
1349       sed -n \
1350         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351       ;;
1352     esac;
1353 }
1354     echo
1355
1356     cat <<\_ASBOX
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1360 _ASBOX
1361     echo
1362     for ac_var in $ac_subst_vars
1363     do
1364       eval ac_val=$`echo $ac_var`
1365       echo "$ac_var='"'"'$ac_val'"'"'"
1366     done | sort
1367     echo
1368
1369     if test -n "$ac_subst_files"; then
1370       cat <<\_ASBOX
1371 ## ------------- ##
1372 ## Output files. ##
1373 ## ------------- ##
1374 _ASBOX
1375       echo
1376       for ac_var in $ac_subst_files
1377       do
1378         eval ac_val=$`echo $ac_var`
1379         echo "$ac_var='"'"'$ac_val'"'"'"
1380       done | sort
1381       echo
1382     fi
1383
1384     if test -s confdefs.h; then
1385       cat <<\_ASBOX
1386 ## ----------- ##
1387 ## confdefs.h. ##
1388 ## ----------- ##
1389 _ASBOX
1390       echo
1391       sed "/^$/d" confdefs.h | sort
1392       echo
1393     fi
1394     test "$ac_signal" != 0 &&
1395       echo "$as_me: caught signal $ac_signal"
1396     echo "$as_me: exit $exit_status"
1397   } >&5
1398   rm -f core *.core &&
1399   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400     exit $exit_status
1401      ' 0
1402 for ac_signal in 1 2 13 15; do
1403   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 done
1405 ac_signal=0
1406
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410 echo >confdefs.h
1411
1412 # Predefined preprocessor variables.
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 _ACEOF
1432
1433
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436 _ACEOF
1437
1438
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442   if test "x$prefix" != xNONE; then
1443     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444   else
1445     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446   fi
1447 fi
1448 for ac_site_file in $CONFIG_SITE; do
1449   if test -r "$ac_site_file"; then
1450     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452     sed 's/^/| /' "$ac_site_file" >&5
1453     . "$ac_site_file"
1454   fi
1455 done
1456
1457
1458 # Check that the precious variables saved in the cache have kept the same
1459 # value.
1460 ac_cache_corrupted=false
1461 for ac_var in `(set) 2>&1 |
1462                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1463   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464   eval ac_new_set=\$ac_env_${ac_var}_set
1465   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466   eval ac_new_val="\$ac_env_${ac_var}_value"
1467   case $ac_old_set,$ac_new_set in
1468     set,)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,set)
1473       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475       ac_cache_corrupted=: ;;
1476     ,);;
1477     *)
1478       if test "x$ac_old_val" != "x$ac_new_val"; then
1479         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1480 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1481         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1482 echo "$as_me:   former value:  $ac_old_val" >&2;}
1483         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1484 echo "$as_me:   current value: $ac_new_val" >&2;}
1485         ac_cache_corrupted=:
1486       fi;;
1487   esac
1488   # Pass precious variables to config.status.
1489   if test "$ac_new_set" = set; then
1490     case $ac_new_val in
1491     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493     *) ac_arg=$ac_var=$ac_new_val ;;
1494     esac
1495     case " $ac_configure_args " in
1496       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1497       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498     esac
1499   fi
1500 done
1501 if $ac_cache_corrupted; then
1502   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508
1509 ac_ext=c
1510 ac_cpp='$CPP $CPPFLAGS'
1511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557 ac_aux_dir=
1558 for ac_dir in build $srcdir/build; do
1559   if test -f $ac_dir/install-sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install-sh -c"
1562     break
1563   elif test -f $ac_dir/install.sh; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/install.sh -c"
1566     break
1567   elif test -f $ac_dir/shtool; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/shtool install -c"
1570     break
1571   fi
1572 done
1573 if test -z "$ac_aux_dir"; then
1574   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576    { (exit 1); exit 1; }; }
1577 fi
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586    { (exit 1); exit 1; }; }
1587 fi
1588
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590         ac_cv_shtool="$ac_aux_dir/shtool"
1591 else
1592         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 SHTOOL="$ac_cv_shtool"
1598
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1601
1602 OPENLDAP_CVS=""
1603 if test -d $ac_aux_dir/CVS; then
1604         OPENLDAP_CVS="(from CVS sources) "
1605 fi
1606
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613    { (exit 1); exit 1; }; }
1614
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622   ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626    { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648   ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652    { (exit 1); exit 1; }; }
1653
1654 fi
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661
1662
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670   ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674    { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688   test "$program_prefix$program_suffix$program_transform_name" = \
1689     NONENONEs,x,x, &&
1690   program_prefix=${target_alias}-
1691
1692 am__api_version="1.9"
1693 # Find a good install program.  We prefer a C program (faster),
1694 # so one script is as good as another.  But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1699 # AIX /bin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   # Account for people who put trailing slashes in PATH elements.
1718 case $as_dir/ in
1719   ./ | .// | /cC/* | \
1720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1722   /usr/ucb/* ) ;;
1723   *)
1724     # OSF1 and SCO ODT 3.0 have their own names for install.
1725     # Don't use installbsd from OSF since it installs stuff as root
1726     # by default.
1727     for ac_prog in ginstall scoinst install; do
1728       for ac_exec_ext in '' $ac_executable_extensions; do
1729         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730           if test $ac_prog = install &&
1731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # AIX install.  It has an incompatible calling convention.
1733             :
1734           elif test $ac_prog = install &&
1735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # program-specific install script used by HP pwplus--don't use.
1737             :
1738           else
1739             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1740             break 3
1741           fi
1742         fi
1743       done
1744     done
1745     ;;
1746 esac
1747 done
1748
1749
1750 fi
1751   if test "${ac_cv_path_install+set}" = set; then
1752     INSTALL=$ac_cv_path_install
1753   else
1754     # As a last resort, use the slow shell script.  We don't cache a
1755     # path for INSTALL within a source directory, because that will
1756     # break other packages using the cache if that directory is
1757     # removed, or if the path is relative.
1758     INSTALL=$ac_install_sh
1759   fi
1760 fi
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1763
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1774 # Just in case
1775 sleep 1
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments.  Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1781 # directory).
1782 if (
1783    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784    if test "$*" = "X"; then
1785       # -L didn't work.
1786       set X `ls -t $srcdir/configure conftest.file`
1787    fi
1788    rm -f conftest.file
1789    if test "$*" != "X $srcdir/configure conftest.file" \
1790       && test "$*" != "X conftest.file $srcdir/configure"; then
1791
1792       # If neither matched, then we have a broken ls.  This can happen
1793       # if, for instance, CONFIG_SHELL is bash and it inherits a
1794       # broken ls alias from the environment.  This has actually
1795       # happened.  Such a system could not be considered "sane".
1796       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&2;}
1800    { (exit 1); exit 1; }; }
1801    fi
1802
1803    test "$2" = conftest.file
1804    )
1805 then
1806    # Ok.
1807    :
1808 else
1809    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $.  echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1826 _ACEOF
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1828 rm conftest.sed
1829
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1832
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836   am_missing_run="$MISSING --run "
1837 else
1838   am_missing_run=
1839   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1841 fi
1842
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844   # We used to keeping the `.' as first argument, in order to
1845   # allow $(mkdir_p) to be used without argument.  As in
1846   #   $(mkdir_p) $(somedir)
1847   # where $(somedir) is conditionally defined.  However this is wrong
1848   # for two reasons:
1849   #  1. if the package is installed by a user who cannot write `.'
1850   #     make install will fail,
1851   #  2. the above comment should most certainly read
1852   #     $(mkdir_p) $(DESTDIR)$(somedir)
1853   #     so it does not work when $(somedir) is undefined and
1854   #     $(DESTDIR) is not.
1855   #  To support the latter case, we have to write
1856   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857   #  so the `.' trick is pointless.
1858   mkdir_p='mkdir -p --'
1859 else
1860   # On NextStep and OpenStep, the `mkdir' command does not
1861   # recognize any option.  It will interpret all options as
1862   # directories to create, and then abort because `.' already
1863   # exists.
1864   for d in ./-p ./--version;
1865   do
1866     test -d $d && rmdir $d
1867   done
1868   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869   if test -f "$ac_aux_dir/mkinstalldirs"; then
1870     mkdir_p='$(mkinstalldirs)'
1871   else
1872     mkdir_p='$(install_sh) -d'
1873   fi
1874 fi
1875
1876 for ac_prog in gawk mawk nawk awk
1877 do
1878   # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$AWK"; then
1886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_AWK="$ac_prog"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 AWK=$ac_cv_prog_AWK
1905 if test -n "$AWK"; then
1906   echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   test -n "$AWK" && break
1914 done
1915
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.make <<\_ACEOF
1923 all:
1924         @echo 'ac_maketemp="$(MAKE)"'
1925 _ACEOF
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929   eval ac_cv_prog_make_${ac_make}_set=yes
1930 else
1931   eval ac_cv_prog_make_${ac_make}_set=no
1932 fi
1933 rm -f conftest.make
1934 fi
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936   echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1938   SET_MAKE=
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942   SET_MAKE="MAKE=${MAKE-make}"
1943 fi
1944
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1948   am__leading_dot=.
1949 else
1950   am__leading_dot=_
1951 fi
1952 rmdir .tst 2>/dev/null
1953
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956    test -f $srcdir/config.status; then
1957   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964   if (cygpath --version) >/dev/null 2>/dev/null; then
1965     CYGPATH_W='cygpath -w'
1966   else
1967     CYGPATH_W=echo
1968   fi
1969 fi
1970
1971
1972 # Define the identity of the package.
1973  PACKAGE=$OL_PACKAGE
1974  VERSION=$OL_VERSION
1975
1976
1977 # Some tools Automake needs.
1978
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1980
1981
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1983
1984
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1986
1987
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1989
1990
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'.  However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000   if test -n "$ac_tool_prefix"; then
2001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$STRIP"; then
2009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029   echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$ac_cv_prog_STRIP"; then
2038   ac_ct_STRIP=$STRIP
2039   # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$ac_ct_STRIP"; then
2047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_ac_ct_STRIP="strip"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2064 fi
2065 fi
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   STRIP=$ac_ct_STRIP
2076 else
2077   STRIP="$ac_cv_prog_STRIP"
2078 fi
2079
2080 fi
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082
2083 # We need awk for the "check" target.  The system "awk" is bad on
2084 # some platforms.
2085 # Always define AMTAR for backward compatibility.
2086
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2090
2091
2092
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2097 _ACEOF
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2102 _ACEOF
2103
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2108 _ACEOF
2109
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2113 _ACEOF
2114
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2118 _ACEOF
2119
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2123 _ACEOF
2124
2125
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2131
2132
2133
2134
2135
2136
2137
2138           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139
2140           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141
2142           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2143
2144
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147
2148
2149 top_builddir=`pwd`
2150
2151 ldap_subdir="/openldap"
2152
2153
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156   withval="$with_subdir"
2157   case "$withval" in
2158         no) ldap_subdir=""
2159                 ;;
2160         yes)
2161                 ;;
2162         /*|\\*)
2163                 ldap_subdir="$withval"
2164                 ;;
2165         *)
2166                 ldap_subdir="/$withval"
2167                 ;;
2168 esac
2169
2170 fi;
2171
2172 # OpenLDAP --enable-debug
2173
2174         # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176   enableval="$enable_debug"
2177
2178         ol_arg=invalid
2179         for ol_val in auto yes no ; do
2180                 if test "$enableval" = "$ol_val" ; then
2181                         ol_arg="$ol_val"
2182                 fi
2183         done
2184         if test "$ol_arg" = "invalid" ; then
2185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187    { (exit 1); exit 1; }; }
2188         fi
2189         ol_enable_debug="$ol_arg"
2190
2191 else
2192         ol_enable_debug=yes
2193 fi;
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2196
2197         # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199   enableval="$enable_dynamic"
2200
2201         ol_arg=invalid
2202         for ol_val in auto yes no ; do
2203                 if test "$enableval" = "$ol_val" ; then
2204                         ol_arg="$ol_val"
2205                 fi
2206         done
2207         if test "$ol_arg" = "invalid" ; then
2208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210    { (exit 1); exit 1; }; }
2211         fi
2212         ol_enable_dynamic="$ol_arg"
2213
2214 else
2215         ol_enable_dynamic=no
2216 fi;
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2219
2220         # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222   enableval="$enable_syslog"
2223
2224         ol_arg=invalid
2225         for ol_val in auto yes no ; do
2226                 if test "$enableval" = "$ol_val" ; then
2227                         ol_arg="$ol_val"
2228                 fi
2229         done
2230         if test "$ol_arg" = "invalid" ; then
2231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233    { (exit 1); exit 1; }; }
2234         fi
2235         ol_enable_syslog="$ol_arg"
2236
2237 else
2238         ol_enable_syslog=auto
2239 fi;
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2242
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle=yes
2262 fi;
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2267
2268         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270   enableval="$enable_ipv6"
2271
2272         ol_arg=invalid
2273         for ol_val in auto yes no ; do
2274                 if test "$enableval" = "$ol_val" ; then
2275                         ol_arg="$ol_val"
2276                 fi
2277         done
2278         if test "$ol_arg" = "invalid" ; then
2279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281    { (exit 1); exit 1; }; }
2282         fi
2283         ol_enable_ipv6="$ol_arg"
2284
2285 else
2286         ol_enable_ipv6=auto
2287 fi;
2288 # end --enable-ipv6
2289 # OpenLDAP --enable-local
2290
2291         # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293   enableval="$enable_local"
2294
2295         ol_arg=invalid
2296         for ol_val in auto yes no ; do
2297                 if test "$enableval" = "$ol_val" ; then
2298                         ol_arg="$ol_val"
2299                 fi
2300         done
2301         if test "$ol_arg" = "invalid" ; then
2302                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304    { (exit 1); exit 1; }; }
2305         fi
2306         ol_enable_local="$ol_arg"
2307
2308 else
2309         ol_enable_local=auto
2310 fi;
2311 # end --enable-local
2312
2313 # OpenLDAP --with-cyrus_sasl
2314
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317   withval="$with_cyrus_sasl"
2318
2319         ol_arg=invalid
2320         for ol_val in auto yes no  ; do
2321                 if test "$withval" = "$ol_val" ; then
2322                         ol_arg="$ol_val"
2323                 fi
2324         done
2325         if test "$ol_arg" = "invalid" ; then
2326                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328    { (exit 1); exit 1; }; }
2329         fi
2330         ol_with_cyrus_sasl="$ol_arg"
2331
2332 else
2333         ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2335
2336 # OpenLDAP --with-fetch
2337
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340   withval="$with_fetch"
2341
2342         ol_arg=invalid
2343         for ol_val in auto yes no  ; do
2344                 if test "$withval" = "$ol_val" ; then
2345                         ol_arg="$ol_val"
2346                 fi
2347         done
2348         if test "$ol_arg" = "invalid" ; then
2349                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351    { (exit 1); exit 1; }; }
2352         fi
2353         ol_with_fetch="$ol_arg"
2354
2355 else
2356         ol_with_fetch="auto"
2357 fi; # end --with-fetch
2358
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2361
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364   withval="$with_threads"
2365
2366         ol_arg=invalid
2367         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_threads="$ol_arg"
2378
2379 else
2380         ol_with_threads="auto"
2381 fi; # end --with-threads
2382
2383 # OpenLDAP --with-tls
2384
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2387   withval="$with_tls"
2388
2389         ol_arg=invalid
2390         for ol_val in auto openssl yes no  ; do
2391                 if test "$withval" = "$ol_val" ; then
2392                         ol_arg="$ol_val"
2393                 fi
2394         done
2395         if test "$ol_arg" = "invalid" ; then
2396                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398    { (exit 1); exit 1; }; }
2399         fi
2400         ol_with_tls="$ol_arg"
2401
2402 else
2403         ol_with_tls="auto"
2404 fi; # end --with-tls
2405
2406 # OpenLDAP --with-yielding_select
2407
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410   withval="$with_yielding_select"
2411
2412         ol_arg=invalid
2413         for ol_val in auto yes no manual  ; do
2414                 if test "$withval" = "$ol_val" ; then
2415                         ol_arg="$ol_val"
2416                 fi
2417         done
2418         if test "$ol_arg" = "invalid" ; then
2419                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421    { (exit 1); exit 1; }; }
2422         fi
2423         ol_with_yielding_select="$ol_arg"
2424
2425 else
2426         ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2428
2429 # OpenLDAP --with-mp
2430
2431 # Check whether --with-mp or --without-mp was given.
2432 if test "${with_mp+set}" = set; then
2433   withval="$with_mp"
2434
2435         ol_arg=invalid
2436         for ol_val in auto longlong long bignum gmp yes no ; do
2437                 if test "$withval" = "$ol_val" ; then
2438                         ol_arg="$ol_val"
2439                 fi
2440         done
2441         if test "$ol_arg" = "invalid" ; then
2442                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2443 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2444    { (exit 1); exit 1; }; }
2445         fi
2446         ol_with_mp="$ol_arg"
2447
2448 else
2449         ol_with_mp="auto"
2450 fi; # end --with-mp
2451
2452
2453
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456   enableval="$enable_xxslapdoptions"
2457
2458 fi;
2459 # OpenLDAP --enable-slapd
2460
2461         # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463   enableval="$enable_slapd"
2464
2465         ol_arg=invalid
2466         for ol_val in auto yes no ; do
2467                 if test "$enableval" = "$ol_val" ; then
2468                         ol_arg="$ol_val"
2469                 fi
2470         done
2471         if test "$ol_arg" = "invalid" ; then
2472                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474    { (exit 1); exit 1; }; }
2475         fi
2476         ol_enable_slapd="$ol_arg"
2477
2478 else
2479         ol_enable_slapd=yes
2480 fi;
2481 # end --enable-slapd
2482 # OpenLDAP --enable-aci
2483
2484         # Check whether --enable-aci or --disable-aci was given.
2485 if test "${enable_aci+set}" = set; then
2486   enableval="$enable_aci"
2487
2488         ol_arg=invalid
2489         for ol_val in auto yes no ; do
2490                 if test "$enableval" = "$ol_val" ; then
2491                         ol_arg="$ol_val"
2492                 fi
2493         done
2494         if test "$ol_arg" = "invalid" ; then
2495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2497    { (exit 1); exit 1; }; }
2498         fi
2499         ol_enable_aci="$ol_arg"
2500
2501 else
2502         ol_enable_aci=no
2503 fi;
2504 # end --enable-aci
2505 # OpenLDAP --enable-cleartext
2506
2507         # Check whether --enable-cleartext or --disable-cleartext was given.
2508 if test "${enable_cleartext+set}" = set; then
2509   enableval="$enable_cleartext"
2510
2511         ol_arg=invalid
2512         for ol_val in auto yes no ; do
2513                 if test "$enableval" = "$ol_val" ; then
2514                         ol_arg="$ol_val"
2515                 fi
2516         done
2517         if test "$ol_arg" = "invalid" ; then
2518                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2520    { (exit 1); exit 1; }; }
2521         fi
2522         ol_enable_cleartext="$ol_arg"
2523
2524 else
2525         ol_enable_cleartext=yes
2526 fi;
2527 # end --enable-cleartext
2528 # OpenLDAP --enable-crypt
2529
2530         # Check whether --enable-crypt or --disable-crypt was given.
2531 if test "${enable_crypt+set}" = set; then
2532   enableval="$enable_crypt"
2533
2534         ol_arg=invalid
2535         for ol_val in auto yes no ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_crypt="$ol_arg"
2546
2547 else
2548         ol_enable_crypt=no
2549 fi;
2550 # end --enable-crypt
2551 # OpenLDAP --enable-lmpasswd
2552
2553         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2554 if test "${enable_lmpasswd+set}" = set; then
2555   enableval="$enable_lmpasswd"
2556
2557         ol_arg=invalid
2558         for ol_val in auto yes no ; do
2559                 if test "$enableval" = "$ol_val" ; then
2560                         ol_arg="$ol_val"
2561                 fi
2562         done
2563         if test "$ol_arg" = "invalid" ; then
2564                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2566    { (exit 1); exit 1; }; }
2567         fi
2568         ol_enable_lmpasswd="$ol_arg"
2569
2570 else
2571         ol_enable_lmpasswd=no
2572 fi;
2573 # end --enable-lmpasswd
2574 # OpenLDAP --enable-spasswd
2575
2576         # Check whether --enable-spasswd or --disable-spasswd was given.
2577 if test "${enable_spasswd+set}" = set; then
2578   enableval="$enable_spasswd"
2579
2580         ol_arg=invalid
2581         for ol_val in auto yes no ; do
2582                 if test "$enableval" = "$ol_val" ; then
2583                         ol_arg="$ol_val"
2584                 fi
2585         done
2586         if test "$ol_arg" = "invalid" ; then
2587                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2589    { (exit 1); exit 1; }; }
2590         fi
2591         ol_enable_spasswd="$ol_arg"
2592
2593 else
2594         ol_enable_spasswd=no
2595 fi;
2596 # end --enable-spasswd
2597 # OpenLDAP --enable-modules
2598
2599         # Check whether --enable-modules or --disable-modules was given.
2600 if test "${enable_modules+set}" = set; then
2601   enableval="$enable_modules"
2602
2603         ol_arg=invalid
2604         for ol_val in auto yes no ; do
2605                 if test "$enableval" = "$ol_val" ; then
2606                         ol_arg="$ol_val"
2607                 fi
2608         done
2609         if test "$ol_arg" = "invalid" ; then
2610                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2612    { (exit 1); exit 1; }; }
2613         fi
2614         ol_enable_modules="$ol_arg"
2615
2616 else
2617         ol_enable_modules=no
2618 fi;
2619 # end --enable-modules
2620 ol_enable_multimaster=${ol_enable_multimaster-no}
2621 # OpenLDAP --enable-rewrite
2622
2623         # Check whether --enable-rewrite or --disable-rewrite was given.
2624 if test "${enable_rewrite+set}" = set; then
2625   enableval="$enable_rewrite"
2626
2627         ol_arg=invalid
2628         for ol_val in auto yes no ; do
2629                 if test "$enableval" = "$ol_val" ; then
2630                         ol_arg="$ol_val"
2631                 fi
2632         done
2633         if test "$ol_arg" = "invalid" ; then
2634                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2636    { (exit 1); exit 1; }; }
2637         fi
2638         ol_enable_rewrite="$ol_arg"
2639
2640 else
2641         ol_enable_rewrite=auto
2642 fi;
2643 # end --enable-rewrite
2644 # OpenLDAP --enable-rlookups
2645
2646         # Check whether --enable-rlookups or --disable-rlookups was given.
2647 if test "${enable_rlookups+set}" = set; then
2648   enableval="$enable_rlookups"
2649
2650         ol_arg=invalid
2651         for ol_val in auto yes no ; do
2652                 if test "$enableval" = "$ol_val" ; then
2653                         ol_arg="$ol_val"
2654                 fi
2655         done
2656         if test "$ol_arg" = "invalid" ; then
2657                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2659    { (exit 1); exit 1; }; }
2660         fi
2661         ol_enable_rlookups="$ol_arg"
2662
2663 else
2664         ol_enable_rlookups=no
2665 fi;
2666 # end --enable-rlookups
2667 # OpenLDAP --enable-slapi
2668
2669         # Check whether --enable-slapi or --disable-slapi was given.
2670 if test "${enable_slapi+set}" = set; then
2671   enableval="$enable_slapi"
2672
2673         ol_arg=invalid
2674         for ol_val in auto yes no ; do
2675                 if test "$enableval" = "$ol_val" ; then
2676                         ol_arg="$ol_val"
2677                 fi
2678         done
2679         if test "$ol_arg" = "invalid" ; then
2680                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2682    { (exit 1); exit 1; }; }
2683         fi
2684         ol_enable_slapi="$ol_arg"
2685
2686 else
2687         ol_enable_slapi=no
2688 fi;
2689 # end --enable-slapi
2690 # OpenLDAP --enable-slp
2691
2692         # Check whether --enable-slp or --disable-slp was given.
2693 if test "${enable_slp+set}" = set; then
2694   enableval="$enable_slp"
2695
2696         ol_arg=invalid
2697         for ol_val in auto yes no ; do
2698                 if test "$enableval" = "$ol_val" ; then
2699                         ol_arg="$ol_val"
2700                 fi
2701         done
2702         if test "$ol_arg" = "invalid" ; then
2703                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2705    { (exit 1); exit 1; }; }
2706         fi
2707         ol_enable_slp="$ol_arg"
2708
2709 else
2710         ol_enable_slp=no
2711 fi;
2712 # end --enable-slp
2713 # OpenLDAP --enable-wrappers
2714
2715         # Check whether --enable-wrappers or --disable-wrappers was given.
2716 if test "${enable_wrappers+set}" = set; then
2717   enableval="$enable_wrappers"
2718
2719         ol_arg=invalid
2720         for ol_val in auto yes no ; do
2721                 if test "$enableval" = "$ol_val" ; then
2722                         ol_arg="$ol_val"
2723                 fi
2724         done
2725         if test "$ol_arg" = "invalid" ; then
2726                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2728    { (exit 1); exit 1; }; }
2729         fi
2730         ol_enable_wrappers="$ol_arg"
2731
2732 else
2733         ol_enable_wrappers=no
2734 fi;
2735 # end --enable-wrappers
2736
2737 Backends="bdb \
2738         dnssrv \
2739         hdb \
2740         ldap \
2741         ldbm \
2742         meta \
2743         monitor \
2744         null \
2745         passwd \
2746         perl \
2747         relay \
2748         shell \
2749         sql"
2750
2751 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2752 if test "${enable_xxslapbackends+set}" = set; then
2753   enableval="$enable_xxslapbackends"
2754
2755 fi;
2756
2757 # OpenLDAP --enable-backends
2758
2759         # Check whether --enable-backends or --disable-backends was given.
2760 if test "${enable_backends+set}" = set; then
2761   enableval="$enable_backends"
2762
2763         ol_arg=invalid
2764         for ol_val in no yes mod ; do
2765                 if test "$enableval" = "$ol_val" ; then
2766                         ol_arg="$ol_val"
2767                 fi
2768         done
2769         if test "$ol_arg" = "invalid" ; then
2770                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2771 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2772    { (exit 1); exit 1; }; }
2773         fi
2774         ol_enable_backends="$ol_arg"
2775
2776 fi;
2777 # end --enable-backends
2778 # OpenLDAP --enable-bdb
2779
2780         # Check whether --enable-bdb or --disable-bdb was given.
2781 if test "${enable_bdb+set}" = set; then
2782   enableval="$enable_bdb"
2783
2784         ol_arg=invalid
2785         for ol_val in no yes mod ; do
2786                 if test "$enableval" = "$ol_val" ; then
2787                         ol_arg="$ol_val"
2788                 fi
2789         done
2790         if test "$ol_arg" = "invalid" ; then
2791                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2793    { (exit 1); exit 1; }; }
2794         fi
2795         ol_enable_bdb="$ol_arg"
2796
2797 else
2798         ol_enable_bdb=${ol_enable_backends:-yes}
2799 fi;
2800 # end --enable-bdb
2801 # OpenLDAP --enable-dnssrv
2802
2803         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2804 if test "${enable_dnssrv+set}" = set; then
2805   enableval="$enable_dnssrv"
2806
2807         ol_arg=invalid
2808         for ol_val in no yes mod ; do
2809                 if test "$enableval" = "$ol_val" ; then
2810                         ol_arg="$ol_val"
2811                 fi
2812         done
2813         if test "$ol_arg" = "invalid" ; then
2814                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2815 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2816    { (exit 1); exit 1; }; }
2817         fi
2818         ol_enable_dnssrv="$ol_arg"
2819
2820 else
2821         ol_enable_dnssrv=${ol_enable_backends:-no}
2822 fi;
2823 # end --enable-dnssrv
2824 # OpenLDAP --enable-hdb
2825
2826         # Check whether --enable-hdb or --disable-hdb was given.
2827 if test "${enable_hdb+set}" = set; then
2828   enableval="$enable_hdb"
2829
2830         ol_arg=invalid
2831         for ol_val in no yes mod ; do
2832                 if test "$enableval" = "$ol_val" ; then
2833                         ol_arg="$ol_val"
2834                 fi
2835         done
2836         if test "$ol_arg" = "invalid" ; then
2837                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2839    { (exit 1); exit 1; }; }
2840         fi
2841         ol_enable_hdb="$ol_arg"
2842
2843 else
2844         ol_enable_hdb=${ol_enable_backends:-yes}
2845 fi;
2846 # end --enable-hdb
2847 # OpenLDAP --enable-ldap
2848
2849         # Check whether --enable-ldap or --disable-ldap was given.
2850 if test "${enable_ldap+set}" = set; then
2851   enableval="$enable_ldap"
2852
2853         ol_arg=invalid
2854         for ol_val in no yes mod ; do
2855                 if test "$enableval" = "$ol_val" ; then
2856                         ol_arg="$ol_val"
2857                 fi
2858         done
2859         if test "$ol_arg" = "invalid" ; then
2860                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2862    { (exit 1); exit 1; }; }
2863         fi
2864         ol_enable_ldap="$ol_arg"
2865
2866 else
2867         ol_enable_ldap=${ol_enable_backends:-no}
2868 fi;
2869 # end --enable-ldap
2870 # OpenLDAP --enable-ldbm
2871
2872         # Check whether --enable-ldbm or --disable-ldbm was given.
2873 if test "${enable_ldbm+set}" = set; then
2874   enableval="$enable_ldbm"
2875
2876         ol_arg=invalid
2877         for ol_val in no yes mod ; do
2878                 if test "$enableval" = "$ol_val" ; then
2879                         ol_arg="$ol_val"
2880                 fi
2881         done
2882         if test "$ol_arg" = "invalid" ; then
2883                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2885    { (exit 1); exit 1; }; }
2886         fi
2887         ol_enable_ldbm="$ol_arg"
2888
2889 else
2890         ol_enable_ldbm=${ol_enable_backends:-no}
2891 fi;
2892 # end --enable-ldbm
2893
2894 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2895 if test "${with_ldbm_api+set}" = set; then
2896   withval="$with_ldbm_api"
2897
2898         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2899 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2900         enable_ldbm_api="$with_ldbm_api"
2901 fi;
2902 # OpenLDAP --enable-ldbm_api
2903
2904         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2905 if test "${enable_ldbm_api+set}" = set; then
2906   enableval="$enable_ldbm_api"
2907
2908         ol_arg=invalid
2909         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2910                 if test "$enableval" = "$ol_val" ; then
2911                         ol_arg="$ol_val"
2912                 fi
2913         done
2914         if test "$ol_arg" = "invalid" ; then
2915                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2916 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2917    { (exit 1); exit 1; }; }
2918         fi
2919         ol_enable_ldbm_api="$ol_arg"
2920
2921 else
2922         ol_enable_ldbm_api=auto
2923 fi;
2924 # end --enable-ldbm_api
2925
2926
2927 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2928 if test "${with_ldbm_type+set}" = set; then
2929   withval="$with_ldbm_type"
2930
2931         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2932 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2933         enable_ldbm_type="$with_ldbm_type"
2934 fi;
2935 # OpenLDAP --enable-ldbm_type
2936
2937         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2938 if test "${enable_ldbm_type+set}" = set; then
2939   enableval="$enable_ldbm_type"
2940
2941         ol_arg=invalid
2942         for ol_val in auto btree hash ; do
2943                 if test "$enableval" = "$ol_val" ; then
2944                         ol_arg="$ol_val"
2945                 fi
2946         done
2947         if test "$ol_arg" = "invalid" ; then
2948                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2949 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2950    { (exit 1); exit 1; }; }
2951         fi
2952         ol_enable_ldbm_type="$ol_arg"
2953
2954 else
2955         ol_enable_ldbm_type=auto
2956 fi;
2957 # end --enable-ldbm_type
2958
2959 # OpenLDAP --enable-meta
2960
2961         # Check whether --enable-meta or --disable-meta was given.
2962 if test "${enable_meta+set}" = set; then
2963   enableval="$enable_meta"
2964
2965         ol_arg=invalid
2966         for ol_val in no yes mod ; do
2967                 if test "$enableval" = "$ol_val" ; then
2968                         ol_arg="$ol_val"
2969                 fi
2970         done
2971         if test "$ol_arg" = "invalid" ; then
2972                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2974    { (exit 1); exit 1; }; }
2975         fi
2976         ol_enable_meta="$ol_arg"
2977
2978 else
2979         ol_enable_meta=${ol_enable_backends:-no}
2980 fi;
2981 # end --enable-meta
2982 # OpenLDAP --enable-monitor
2983
2984         # Check whether --enable-monitor or --disable-monitor was given.
2985 if test "${enable_monitor+set}" = set; then
2986   enableval="$enable_monitor"
2987
2988         ol_arg=invalid
2989         for ol_val in no yes mod ; do
2990                 if test "$enableval" = "$ol_val" ; then
2991                         ol_arg="$ol_val"
2992                 fi
2993         done
2994         if test "$ol_arg" = "invalid" ; then
2995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2997    { (exit 1); exit 1; }; }
2998         fi
2999         ol_enable_monitor="$ol_arg"
3000
3001 else
3002         ol_enable_monitor=${ol_enable_backends:-yes}
3003 fi;
3004 # end --enable-monitor
3005 # OpenLDAP --enable-null
3006
3007         # Check whether --enable-null or --disable-null was given.
3008 if test "${enable_null+set}" = set; then
3009   enableval="$enable_null"
3010
3011         ol_arg=invalid
3012         for ol_val in no yes mod ; do
3013                 if test "$enableval" = "$ol_val" ; then
3014                         ol_arg="$ol_val"
3015                 fi
3016         done
3017         if test "$ol_arg" = "invalid" ; then
3018                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3020    { (exit 1); exit 1; }; }
3021         fi
3022         ol_enable_null="$ol_arg"
3023
3024 else
3025         ol_enable_null=${ol_enable_backends:-no}
3026 fi;
3027 # end --enable-null
3028 # OpenLDAP --enable-passwd
3029
3030         # Check whether --enable-passwd or --disable-passwd was given.
3031 if test "${enable_passwd+set}" = set; then
3032   enableval="$enable_passwd"
3033
3034         ol_arg=invalid
3035         for ol_val in no yes mod ; do
3036                 if test "$enableval" = "$ol_val" ; then
3037                         ol_arg="$ol_val"
3038                 fi
3039         done
3040         if test "$ol_arg" = "invalid" ; then
3041                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3043    { (exit 1); exit 1; }; }
3044         fi
3045         ol_enable_passwd="$ol_arg"
3046
3047 else
3048         ol_enable_passwd=${ol_enable_backends:-no}
3049 fi;
3050 # end --enable-passwd
3051 # OpenLDAP --enable-perl
3052
3053         # Check whether --enable-perl or --disable-perl was given.
3054 if test "${enable_perl+set}" = set; then
3055   enableval="$enable_perl"
3056
3057         ol_arg=invalid
3058         for ol_val in no yes mod ; do
3059                 if test "$enableval" = "$ol_val" ; then
3060                         ol_arg="$ol_val"
3061                 fi
3062         done
3063         if test "$ol_arg" = "invalid" ; then
3064                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3066    { (exit 1); exit 1; }; }
3067         fi
3068         ol_enable_perl="$ol_arg"
3069
3070 else
3071         ol_enable_perl=${ol_enable_backends:-no}
3072 fi;
3073 # end --enable-perl
3074 # OpenLDAP --enable-relay
3075
3076         # Check whether --enable-relay or --disable-relay was given.
3077 if test "${enable_relay+set}" = set; then
3078   enableval="$enable_relay"
3079
3080         ol_arg=invalid
3081         for ol_val in no yes mod ; do
3082                 if test "$enableval" = "$ol_val" ; then
3083                         ol_arg="$ol_val"
3084                 fi
3085         done
3086         if test "$ol_arg" = "invalid" ; then
3087                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3088 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3089    { (exit 1); exit 1; }; }
3090         fi
3091         ol_enable_relay="$ol_arg"
3092
3093 else
3094         ol_enable_relay=${ol_enable_backends:-yes}
3095 fi;
3096 # end --enable-relay
3097 # OpenLDAP --enable-shell
3098
3099         # Check whether --enable-shell or --disable-shell was given.
3100 if test "${enable_shell+set}" = set; then
3101   enableval="$enable_shell"
3102
3103         ol_arg=invalid
3104         for ol_val in no yes mod ; do
3105                 if test "$enableval" = "$ol_val" ; then
3106                         ol_arg="$ol_val"
3107                 fi
3108         done
3109         if test "$ol_arg" = "invalid" ; then
3110                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3111 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3112    { (exit 1); exit 1; }; }
3113         fi
3114         ol_enable_shell="$ol_arg"
3115
3116 else
3117         ol_enable_shell=${ol_enable_backends:-no}
3118 fi;
3119 # end --enable-shell
3120 # OpenLDAP --enable-sql
3121
3122         # Check whether --enable-sql or --disable-sql was given.
3123 if test "${enable_sql+set}" = set; then
3124   enableval="$enable_sql"
3125
3126         ol_arg=invalid
3127         for ol_val in no yes mod ; do
3128                 if test "$enableval" = "$ol_val" ; then
3129                         ol_arg="$ol_val"
3130                 fi
3131         done
3132         if test "$ol_arg" = "invalid" ; then
3133                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3134 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3135    { (exit 1); exit 1; }; }
3136         fi
3137         ol_enable_sql="$ol_arg"
3138
3139 else
3140         ol_enable_sql=${ol_enable_backends:-no}
3141 fi;
3142 # end --enable-sql
3143
3144 Overlays="accesslog \
3145         auditlog \
3146         denyop \
3147         dyngroup \
3148         dynlist \
3149         lastmod \
3150         ppolicy \
3151         proxycache \
3152         refint \
3153         retcode \
3154         rwm \
3155         syncprov \
3156         translucent \
3157         unique \
3158         valsort"
3159
3160 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3161 if test "${enable_xxslapoverlays+set}" = set; then
3162   enableval="$enable_xxslapoverlays"
3163
3164 fi;
3165
3166 # OpenLDAP --enable-overlays
3167
3168         # Check whether --enable-overlays or --disable-overlays was given.
3169 if test "${enable_overlays+set}" = set; then
3170   enableval="$enable_overlays"
3171
3172         ol_arg=invalid
3173         for ol_val in no yes mod ; do
3174                 if test "$enableval" = "$ol_val" ; then
3175                         ol_arg="$ol_val"
3176                 fi
3177         done
3178         if test "$ol_arg" = "invalid" ; then
3179                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3181    { (exit 1); exit 1; }; }
3182         fi
3183         ol_enable_overlays="$ol_arg"
3184
3185 fi;
3186 # end --enable-overlays
3187 # OpenLDAP --enable-accesslog
3188
3189         # Check whether --enable-accesslog or --disable-accesslog was given.
3190 if test "${enable_accesslog+set}" = set; then
3191   enableval="$enable_accesslog"
3192
3193         ol_arg=invalid
3194         for ol_val in no yes mod ; do
3195                 if test "$enableval" = "$ol_val" ; then
3196                         ol_arg="$ol_val"
3197                 fi
3198         done
3199         if test "$ol_arg" = "invalid" ; then
3200                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3201 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3202    { (exit 1); exit 1; }; }
3203         fi
3204         ol_enable_accesslog="$ol_arg"
3205
3206 else
3207         ol_enable_accesslog=${ol_enable_overlays:-no}
3208 fi;
3209 # end --enable-accesslog
3210
3211 # OpenLDAP --enable-auditlog
3212
3213         # Check whether --enable-auditlog or --disable-auditlog was given.
3214 if test "${enable_auditlog+set}" = set; then
3215   enableval="$enable_auditlog"
3216
3217         ol_arg=invalid
3218         for ol_val in no yes mod ; do
3219                 if test "$enableval" = "$ol_val" ; then
3220                         ol_arg="$ol_val"
3221                 fi
3222         done
3223         if test "$ol_arg" = "invalid" ; then
3224                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3226    { (exit 1); exit 1; }; }
3227         fi
3228         ol_enable_auditlog="$ol_arg"
3229
3230 else
3231         ol_enable_auditlog=${ol_enable_overlays:-no}
3232 fi;
3233 # end --enable-auditlog
3234
3235 # OpenLDAP --enable-denyop
3236
3237         # Check whether --enable-denyop or --disable-denyop was given.
3238 if test "${enable_denyop+set}" = set; then
3239   enableval="$enable_denyop"
3240
3241         ol_arg=invalid
3242         for ol_val in no yes mod ; do
3243                 if test "$enableval" = "$ol_val" ; then
3244                         ol_arg="$ol_val"
3245                 fi
3246         done
3247         if test "$ol_arg" = "invalid" ; then
3248                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3249 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3250    { (exit 1); exit 1; }; }
3251         fi
3252         ol_enable_denyop="$ol_arg"
3253
3254 else
3255         ol_enable_denyop=${ol_enable_overlays:-no}
3256 fi;
3257 # end --enable-denyop
3258
3259 # OpenLDAP --enable-dyngroup
3260
3261         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3262 if test "${enable_dyngroup+set}" = set; then
3263   enableval="$enable_dyngroup"
3264
3265         ol_arg=invalid
3266         for ol_val in no yes mod ; do
3267                 if test "$enableval" = "$ol_val" ; then
3268                         ol_arg="$ol_val"
3269                 fi
3270         done
3271         if test "$ol_arg" = "invalid" ; then
3272                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3274    { (exit 1); exit 1; }; }
3275         fi
3276         ol_enable_dyngroup="$ol_arg"
3277
3278 else
3279         ol_enable_dyngroup=${ol_enable_overlays:-no}
3280 fi;
3281 # end --enable-dyngroup
3282
3283 # OpenLDAP --enable-dynlist
3284
3285         # Check whether --enable-dynlist or --disable-dynlist was given.
3286 if test "${enable_dynlist+set}" = set; then
3287   enableval="$enable_dynlist"
3288
3289         ol_arg=invalid
3290         for ol_val in no yes mod ; do
3291                 if test "$enableval" = "$ol_val" ; then
3292                         ol_arg="$ol_val"
3293                 fi
3294         done
3295         if test "$ol_arg" = "invalid" ; then
3296                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3298    { (exit 1); exit 1; }; }
3299         fi
3300         ol_enable_dynlist="$ol_arg"
3301
3302 else
3303         ol_enable_dynlist=${ol_enable_overlays:-no}
3304 fi;
3305 # end --enable-dynlist
3306
3307 # OpenLDAP --enable-lastmod
3308
3309         # Check whether --enable-lastmod or --disable-lastmod was given.
3310 if test "${enable_lastmod+set}" = set; then
3311   enableval="$enable_lastmod"
3312
3313         ol_arg=invalid
3314         for ol_val in no yes mod ; do
3315                 if test "$enableval" = "$ol_val" ; then
3316                         ol_arg="$ol_val"
3317                 fi
3318         done
3319         if test "$ol_arg" = "invalid" ; then
3320                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_lastmod="$ol_arg"
3325
3326 else
3327         ol_enable_lastmod=${ol_enable_overlays:-no}
3328 fi;
3329 # end --enable-lastmod
3330
3331 # OpenLDAP --enable-ppolicy
3332
3333         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3334 if test "${enable_ppolicy+set}" = set; then
3335   enableval="$enable_ppolicy"
3336
3337         ol_arg=invalid
3338         for ol_val in no yes mod ; do
3339                 if test "$enableval" = "$ol_val" ; then
3340                         ol_arg="$ol_val"
3341                 fi
3342         done
3343         if test "$ol_arg" = "invalid" ; then
3344                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3346    { (exit 1); exit 1; }; }
3347         fi
3348         ol_enable_ppolicy="$ol_arg"
3349
3350 else
3351         ol_enable_ppolicy=${ol_enable_overlays:-no}
3352 fi;
3353 # end --enable-ppolicy
3354
3355 # OpenLDAP --enable-proxycache
3356
3357         # Check whether --enable-proxycache or --disable-proxycache was given.
3358 if test "${enable_proxycache+set}" = set; then
3359   enableval="$enable_proxycache"
3360
3361         ol_arg=invalid
3362         for ol_val in no yes mod ; do
3363                 if test "$enableval" = "$ol_val" ; then
3364                         ol_arg="$ol_val"
3365                 fi
3366         done
3367         if test "$ol_arg" = "invalid" ; then
3368                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3369 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3370    { (exit 1); exit 1; }; }
3371         fi
3372         ol_enable_proxycache="$ol_arg"
3373
3374 else
3375         ol_enable_proxycache=${ol_enable_overlays:-no}
3376 fi;
3377 # end --enable-proxycache
3378
3379 # OpenLDAP --enable-refint
3380
3381         # Check whether --enable-refint or --disable-refint was given.
3382 if test "${enable_refint+set}" = set; then
3383   enableval="$enable_refint"
3384
3385         ol_arg=invalid
3386         for ol_val in no yes mod ; do
3387                 if test "$enableval" = "$ol_val" ; then
3388                         ol_arg="$ol_val"
3389                 fi
3390         done
3391         if test "$ol_arg" = "invalid" ; then
3392                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3393 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3394    { (exit 1); exit 1; }; }
3395         fi
3396         ol_enable_refint="$ol_arg"
3397
3398 else
3399         ol_enable_refint=${ol_enable_overlays:-no}
3400 fi;
3401 # end --enable-refint
3402
3403 # OpenLDAP --enable-retcode
3404
3405         # Check whether --enable-retcode or --disable-retcode was given.
3406 if test "${enable_retcode+set}" = set; then
3407   enableval="$enable_retcode"
3408
3409         ol_arg=invalid
3410         for ol_val in no yes mod ; do
3411                 if test "$enableval" = "$ol_val" ; then
3412                         ol_arg="$ol_val"
3413                 fi
3414         done
3415         if test "$ol_arg" = "invalid" ; then
3416                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3418    { (exit 1); exit 1; }; }
3419         fi
3420         ol_enable_retcode="$ol_arg"
3421
3422 else
3423         ol_enable_retcode=${ol_enable_overlays:-no}
3424 fi;
3425 # end --enable-retcode
3426
3427 # OpenLDAP --enable-rwm
3428
3429         # Check whether --enable-rwm or --disable-rwm was given.
3430 if test "${enable_rwm+set}" = set; then
3431   enableval="$enable_rwm"
3432
3433         ol_arg=invalid
3434         for ol_val in no yes mod ; do
3435                 if test "$enableval" = "$ol_val" ; then
3436                         ol_arg="$ol_val"
3437                 fi
3438         done
3439         if test "$ol_arg" = "invalid" ; then
3440                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3442    { (exit 1); exit 1; }; }
3443         fi
3444         ol_enable_rwm="$ol_arg"
3445
3446 else
3447         ol_enable_rwm=${ol_enable_overlays:-no}
3448 fi;
3449 # end --enable-rwm
3450
3451 # OpenLDAP --enable-syncprov
3452
3453         # Check whether --enable-syncprov or --disable-syncprov was given.
3454 if test "${enable_syncprov+set}" = set; then
3455   enableval="$enable_syncprov"
3456
3457         ol_arg=invalid
3458         for ol_val in no yes mod ; do
3459                 if test "$enableval" = "$ol_val" ; then
3460                         ol_arg="$ol_val"
3461                 fi
3462         done
3463         if test "$ol_arg" = "invalid" ; then
3464                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3465 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3466    { (exit 1); exit 1; }; }
3467         fi
3468         ol_enable_syncprov="$ol_arg"
3469
3470 else
3471         ol_enable_syncprov=${ol_enable_overlays:-yes}
3472 fi;
3473 # end --enable-syncprov
3474
3475 # OpenLDAP --enable-translucent
3476
3477         # Check whether --enable-translucent or --disable-translucent was given.
3478 if test "${enable_translucent+set}" = set; then
3479   enableval="$enable_translucent"
3480
3481         ol_arg=invalid
3482         for ol_val in no yes mod ; do
3483                 if test "$enableval" = "$ol_val" ; then
3484                         ol_arg="$ol_val"
3485                 fi
3486         done
3487         if test "$ol_arg" = "invalid" ; then
3488                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3489 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3490    { (exit 1); exit 1; }; }
3491         fi
3492         ol_enable_translucent="$ol_arg"
3493
3494 else
3495         ol_enable_translucent=${ol_enable_overlays:-no}
3496 fi;
3497 # end --enable-translucent
3498
3499 # OpenLDAP --enable-unique
3500
3501         # Check whether --enable-unique or --disable-unique was given.
3502 if test "${enable_unique+set}" = set; then
3503   enableval="$enable_unique"
3504
3505         ol_arg=invalid
3506         for ol_val in no yes mod ; do
3507                 if test "$enableval" = "$ol_val" ; then
3508                         ol_arg="$ol_val"
3509                 fi
3510         done
3511         if test "$ol_arg" = "invalid" ; then
3512                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3513 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3514    { (exit 1); exit 1; }; }
3515         fi
3516         ol_enable_unique="$ol_arg"
3517
3518 else
3519         ol_enable_unique=${ol_enable_overlays:-no}
3520 fi;
3521 # end --enable-unique
3522
3523 # OpenLDAP --enable-valsort
3524
3525         # Check whether --enable-valsort or --disable-valsort was given.
3526 if test "${enable_valsort+set}" = set; then
3527   enableval="$enable_valsort"
3528
3529         ol_arg=invalid
3530         for ol_val in no yes mod ; do
3531                 if test "$enableval" = "$ol_val" ; then
3532                         ol_arg="$ol_val"
3533                 fi
3534         done
3535         if test "$ol_arg" = "invalid" ; then
3536                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3537 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3538    { (exit 1); exit 1; }; }
3539         fi
3540         ol_enable_valsort="$ol_arg"
3541
3542 else
3543         ol_enable_valsort=${ol_enable_overlays:-no}
3544 fi;
3545 # end --enable-valsort
3546
3547
3548 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3549 if test "${enable_xxslurpdoptions+set}" = set; then
3550   enableval="$enable_xxslurpdoptions"
3551
3552 fi;
3553 # OpenLDAP --enable-slurpd
3554
3555         # Check whether --enable-slurpd or --disable-slurpd was given.
3556 if test "${enable_slurpd+set}" = set; then
3557   enableval="$enable_slurpd"
3558
3559         ol_arg=invalid
3560         for ol_val in auto yes no ; do
3561                 if test "$enableval" = "$ol_val" ; then
3562                         ol_arg="$ol_val"
3563                 fi
3564         done
3565         if test "$ol_arg" = "invalid" ; then
3566                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3567 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3568    { (exit 1); exit 1; }; }
3569         fi
3570         ol_enable_slurpd="$ol_arg"
3571
3572 else
3573         ol_enable_slurpd=auto
3574 fi;
3575 # end --enable-slurpd
3576
3577 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3578 if test "${enable_xxliboptions+set}" = set; then
3579   enableval="$enable_xxliboptions"
3580
3581 fi;
3582 # Check whether --enable-static or --disable-static was given.
3583 if test "${enable_static+set}" = set; then
3584   enableval="$enable_static"
3585   p=${PACKAGE-default}
3586     case $enableval in
3587     yes) enable_static=yes ;;
3588     no) enable_static=no ;;
3589     *)
3590      enable_static=no
3591       # Look at the argument we got.  We use all the common list separators.
3592       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3593       for pkg in $enableval; do
3594         IFS="$lt_save_ifs"
3595         if test "X$pkg" = "X$p"; then
3596           enable_static=yes
3597         fi
3598       done
3599       IFS="$lt_save_ifs"
3600       ;;
3601     esac
3602 else
3603   enable_static=yes
3604 fi;
3605
3606 # Check whether --enable-shared or --disable-shared was given.
3607 if test "${enable_shared+set}" = set; then
3608   enableval="$enable_shared"
3609   p=${PACKAGE-default}
3610     case $enableval in
3611     yes) enable_shared=yes ;;
3612     no) enable_shared=no ;;
3613     *)
3614       enable_shared=no
3615       # Look at the argument we got.  We use all the common list separators.
3616       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617       for pkg in $enableval; do
3618         IFS="$lt_save_ifs"
3619         if test "X$pkg" = "X$p"; then
3620           enable_shared=yes
3621         fi
3622       done
3623       IFS="$lt_save_ifs"
3624       ;;
3625     esac
3626 else
3627   enable_shared=yes
3628 fi;
3629
3630
3631
3632 # validate options
3633 if test $ol_enable_slapd = no ; then
3634                 if test $ol_enable_slapi = yes ; then
3635                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3636 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3637         fi
3638         case "$ol_enable_backends" in yes | mod)
3639                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3640 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3641         esac
3642         for i in $Backends; do
3643                 eval "ol_tmp=\$ol_enable_$i"
3644                 if test $ol_tmp != no ; then
3645                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3647                         eval "ol_enable_$i=no"
3648                 fi
3649         done
3650         if test $ol_enable_modules = yes ; then
3651                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3652 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3653         fi
3654         if test $ol_enable_multimaster = yes ; then
3655                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3657         fi
3658         if test $ol_enable_wrappers = yes ; then
3659                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3661         fi
3662         if test $ol_enable_rlookups = yes ; then
3663                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3665         fi
3666         if test $ol_enable_aci = yes ; then
3667                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3668 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3669         fi
3670         if test $ol_enable_ldbm_api != auto ; then
3671                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3672 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3673         fi
3674         if test $ol_enable_ldbm_type != auto ; then
3675                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3677         fi
3678         if test $ol_enable_slurpd = yes ; then
3679                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3680 echo "$as_me: error: slurpd requires slapd" >&2;}
3681    { (exit 1); exit 1; }; }
3682         fi
3683         if test $ol_enable_rewrite = yes ; then
3684                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3686         fi
3687                 case "$ol_enable_overlays" in yes | mod)
3688                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3690         esac
3691         for i in $Overlays; do
3692                 eval "ol_tmp=\$ol_enable_$i"
3693                 if test $ol_tmp != no ; then
3694                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3696                         eval "ol_enable_$i=no"
3697                 fi
3698         done
3699
3700         # force settings to no
3701         ol_enable_slapi=no
3702
3703         ol_enable_backends=
3704         ol_enable_overlays=
3705         ol_enable_modules=no
3706         ol_enable_multimaster=no
3707         ol_enable_rlookups=no
3708         ol_enable_aci=no
3709         ol_enable_wrappers=no
3710
3711         ol_enable_ldbm_api=no
3712         ol_enable_ldbm_type=no
3713
3714         ol_enable_slurpd=no
3715
3716         ol_enable_rewrite=no
3717
3718 elif test $ol_enable_ldbm = no ; then
3719
3720         if test $ol_enable_ldbm_api != auto ; then
3721                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3722 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3723         fi
3724
3725         if test $ol_enable_ldbm_type != auto ; then
3726                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3727 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3728         fi
3729
3730         if test $ol_enable_modules != yes &&
3731            test $ol_enable_bdb = no &&
3732            test $ol_enable_dnssrv = no &&
3733            test $ol_enable_hdb = no &&
3734            test $ol_enable_ldap = no &&
3735            test $ol_enable_meta = no &&
3736            test $ol_enable_monitor = no &&
3737            test $ol_enable_null = no &&
3738            test $ol_enable_passwd = no &&
3739            test $ol_enable_perl = no &&
3740            test $ol_enable_relay = no &&
3741            test $ol_enable_shell = no &&
3742            test $ol_enable_sql = no ; then
3743
3744                 if test $ol_enable_slapd = yes ; then
3745                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3746 echo "$as_me: error: slapd requires a backend" >&2;}
3747    { (exit 1); exit 1; }; }
3748                 else
3749                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3750 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3751                         ol_enable_slapd=no
3752                 fi
3753         fi
3754
3755         ol_enable_ldbm_api=no
3756         ol_enable_ldbm_type=no
3757
3758         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3759                 ol_enable_ldbm_api=berkeley
3760         fi
3761
3762 else
3763                 if test $ol_enable_ldbm_api = gdbm &&
3764            test $ol_enable_ldbm_type = btree ; then
3765                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3766 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3767    { (exit 1); exit 1; }; }
3768         fi
3769         if test $ol_enable_ldbm_api = mdbm &&
3770            test $ol_enable_ldbm_type = btree ; then
3771                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3772 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3773    { (exit 1); exit 1; }; }
3774         fi
3775         if test $ol_enable_ldbm_api = ndbm &&
3776            test $ol_enable_ldbm_type = btree ; then
3777                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3778 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3779    { (exit 1); exit 1; }; }
3780         fi
3781
3782         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3783                 if test $ol_enable_ldbm_api = auto ; then
3784                         ol_enable_ldbm_api=berkeley
3785                 elif test $ol_enable_ldbm_api != berkeley ; then
3786                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3787 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3788    { (exit 1); exit 1; }; }
3789                 fi
3790         fi
3791 fi
3792
3793 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3794         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3795 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 if test $ol_enable_slurpd = yes ; then
3800                 if test $ol_with_threads = no ; then
3801                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3802 echo "$as_me: error: slurpd requires threads" >&2;}
3803    { (exit 1); exit 1; }; }
3804         fi
3805 fi
3806
3807 if test $ol_enable_lmpasswd = yes ; then
3808         if test $ol_with_tls = no ; then
3809                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811    { (exit 1); exit 1; }; }
3812         fi
3813 fi
3814
3815 if test $ol_enable_kbind = yes ; then
3816         if test $ol_with_kerberos = no ; then
3817                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3818 echo "$as_me: error: options require --with-kerberos" >&2;}
3819    { (exit 1); exit 1; }; }
3820         elif test $ol_with_kerberos = auto ; then
3821                 ol_with_kerberos=yes
3822         fi
3823
3824 elif test $ol_enable_kbind = no ; then
3825         if test $ol_with_kerberos = auto ; then
3826                 ol_with_kerberos=no
3827         elif test $ol_with_kerberos != no ; then
3828                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3829 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3830                 ol_with_kerberos=no
3831         fi
3832 fi
3833
3834 if test $ol_enable_spasswd = yes ; then
3835         if test $ol_with_cyrus_sasl = no ; then
3836                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3837 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3838    { (exit 1); exit 1; }; }
3839         fi
3840         ol_with_cyrus_sasl=yes
3841 fi
3842
3843 echo "$as_me:$LINENO: result: done" >&5
3844 echo "${ECHO_T}done" >&6
3845
3846 LDAP_LIBS=
3847 LDBM_LIBS=
3848 LTHREAD_LIBS=
3849 LUTIL_LIBS=
3850
3851 SLAPD_LIBS=
3852 SLURPD_LIBS=
3853
3854 BUILD_SLAPD=no
3855 BUILD_SLURPD=no
3856
3857 BUILD_THREAD=no
3858
3859 BUILD_SLAPI=no
3860 SLAPD_SLAPI_DEPEND=
3861
3862 BUILD_BDB=no
3863 BUILD_DNSSRV=no
3864 BUILD_HDB=no
3865 BUILD_LDAP=no
3866 BUILD_LDBM=no
3867 BUILD_META=no
3868 BUILD_MONITOR=no
3869 BUILD_NULL=no
3870 BUILD_PASSWD=no
3871 BUILD_PERL=no
3872 BUILD_RELAY=no
3873 BUILD_SHELL=no
3874 BUILD_SQL=no
3875
3876 BUILD_ACCESSLOG=no
3877 BUILD_AUDITLOG=no
3878 BUILD_DENYOP=no
3879 BUILD_DYNGROUP=no
3880 BUILD_DYNLIST=no
3881 BUILD_LASTMOD=no
3882 BUILD_PPOLICY=no
3883 BUILD_PROXYCACHE=no
3884 BUILD_REFINT=no
3885 BUILD_RETCODE=no
3886 BUILD_RWM=no
3887 BUILD_SYNCPROV=no
3888 BUILD_TRANSLUCENT=no
3889 BUILD_UNIQUE=no
3890 BUILD_VALSORT=no
3891
3892 SLAPD_STATIC_OVERLAYS=
3893 SLAPD_DYNAMIC_OVERLAYS=
3894
3895 SLAPD_MODULES_LDFLAGS=
3896 SLAPD_MODULES_CPPFLAGS=
3897
3898 SLAPD_STATIC_BACKENDS=back-ldif
3899 SLAPD_DYNAMIC_BACKENDS=
3900
3901 SLAPD_PERL_LDFLAGS=
3902 MOD_PERL_LDFLAGS=
3903 PERL_CPPFLAGS=
3904
3905 SLAPD_SQL_LDFLAGS=
3906 SLAPD_SQL_LIBS=
3907 SLAPD_SQL_INCLUDES=
3908
3909 KRB4_LIBS=
3910 KRB5_LIBS=
3911 SASL_LIBS=
3912 TLS_LIBS=
3913 MODULES_LIBS=
3914 SLAPI_LIBS=
3915 LIBSLAPI=
3916 LIBSLAPITOOLS=
3917 AUTH_LIBS=
3918
3919 SLAPD_SLP_LIBS=
3920 SLAPD_GMP_LIBS=
3921
3922
3923
3924 cat >>confdefs.h <<\_ACEOF
3925 #define HAVE_MKVERSION 1
3926 _ACEOF
3927
3928
3929
3930
3931 ol_aix_threads=no
3932 case "$target" in
3933 *-*-aix*)       if test -z "$CC" ; then
3934                 case "$ol_with_threads" in
3935                 auto | yes |  posix) ol_aix_threads=yes ;;
3936                 esac
3937         fi
3938 ;;
3939 esac
3940
3941 if test $ol_aix_threads = yes ; then
3942         if test -z "${CC}" ; then
3943                 for ac_prog in cc_r xlc_r cc
3944 do
3945   # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_CC+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test -n "$CC"; then
3953   ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_prog_CC="$ac_prog"
3963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967 done
3968
3969 fi
3970 fi
3971 CC=$ac_cv_prog_CC
3972 if test -n "$CC"; then
3973   echo "$as_me:$LINENO: result: $CC" >&5
3974 echo "${ECHO_T}$CC" >&6
3975 else
3976   echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980   test -n "$CC" && break
3981 done
3982
3983
3984                 if test "$CC" = cc ; then
3985                                                 if test $ol_with_threads != auto ; then
3986                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3987 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3988    { (exit 1); exit 1; }; }
3989                         else
3990                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3991 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3992                         fi
3993                         ol_with_threads=no
3994                 fi
3995         fi
3996
3997         case ${CC} in cc_r | xlc_r)
3998                 ol_with_threads=posix
3999                 ol_cv_pthread_create=yes
4000                 ;;
4001         esac
4002 fi
4003
4004 if test -z "${CC}"; then
4005         for ac_prog in cc gcc
4006 do
4007   # Extract the first word of "$ac_prog", so it can be a program name with args.
4008 set dummy $ac_prog; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_CC+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$CC"; then
4015   ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_CC="$ac_prog"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031 fi
4032 fi
4033 CC=$ac_cv_prog_CC
4034 if test -n "$CC"; then
4035   echo "$as_me:$LINENO: result: $CC" >&5
4036 echo "${ECHO_T}$CC" >&6
4037 else
4038   echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040 fi
4041
4042   test -n "$CC" && break
4043 done
4044 test -n "$CC" || CC="missing"
4045
4046
4047         if test "${CC}" = "missing" ; then
4048                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4049 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4050    { (exit 1); exit 1; }; }
4051         fi
4052 fi
4053
4054 if test -z "${AR}"; then
4055         for ac_prog in ar gar
4056 do
4057   # Extract the first word of "$ac_prog", so it can be a program name with args.
4058 set dummy $ac_prog; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_prog_AR+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   if test -n "$AR"; then
4065   ac_cv_prog_AR="$AR" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072   for ac_exec_ext in '' $ac_executable_extensions; do
4073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074     ac_cv_prog_AR="$ac_prog"
4075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076     break 2
4077   fi
4078 done
4079 done
4080
4081 fi
4082 fi
4083 AR=$ac_cv_prog_AR
4084 if test -n "$AR"; then
4085   echo "$as_me:$LINENO: result: $AR" >&5
4086 echo "${ECHO_T}$AR" >&6
4087 else
4088   echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4090 fi
4091
4092   test -n "$AR" && break
4093 done
4094 test -n "$AR" || AR="missing"
4095
4096
4097         if test "${AR}" = "missing" ; then
4098                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4099 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4100    { (exit 1); exit 1; }; }
4101         fi
4102 fi
4103
4104
4105
4106
4107
4108 # Check whether --enable-fast-install or --disable-fast-install was given.
4109 if test "${enable_fast_install+set}" = set; then
4110   enableval="$enable_fast_install"
4111   p=${PACKAGE-default}
4112     case $enableval in
4113     yes) enable_fast_install=yes ;;
4114     no) enable_fast_install=no ;;
4115     *)
4116       enable_fast_install=no
4117       # Look at the argument we got.  We use all the common list separators.
4118       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4119       for pkg in $enableval; do
4120         IFS="$lt_save_ifs"
4121         if test "X$pkg" = "X$p"; then
4122           enable_fast_install=yes
4123         fi
4124       done
4125       IFS="$lt_save_ifs"
4126       ;;
4127     esac
4128 else
4129   enable_fast_install=yes
4130 fi;
4131
4132 DEPDIR="${am__leading_dot}deps"
4133
4134           ac_config_commands="$ac_config_commands depfiles"
4135
4136
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4139 am__doit:
4140         @echo done
4141 .PHONY: am__doit
4142 END
4143 # If we don't find an include directive, just comment out the code.
4144 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4145 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4146 am__include="#"
4147 am__quote=
4148 _am_result=none
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # We grep out `Entering directory' and `Leaving directory'
4152 # messages which can occur if `w' ends up in MAKEFLAGS.
4153 # In particular we don't look at `^make:' because GNU make might
4154 # be invoked under some other name (usually "gmake"), in which
4155 # case it prints its new name instead of `make'.
4156 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4157    am__include=include
4158    am__quote=
4159    _am_result=GNU
4160 fi
4161 # Now try BSD make style include.
4162 if test "$am__include" = "#"; then
4163    echo '.include "confinc"' > confmf
4164    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4165       am__include=.include
4166       am__quote="\""
4167       _am_result=BSD
4168    fi
4169 fi
4170
4171
4172 echo "$as_me:$LINENO: result: $_am_result" >&5
4173 echo "${ECHO_T}$_am_result" >&6
4174 rm -f confinc confmf
4175
4176 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then
4178   enableval="$enable_dependency_tracking"
4179
4180 fi;
4181 if test "x$enable_dependency_tracking" != xno; then
4182   am_depcomp="$ac_aux_dir/depcomp"
4183   AMDEPBACKSLASH='\'
4184 fi
4185
4186
4187 if test "x$enable_dependency_tracking" != xno; then
4188   AMDEP_TRUE=
4189   AMDEP_FALSE='#'
4190 else
4191   AMDEP_TRUE='#'
4192   AMDEP_FALSE=
4193 fi
4194
4195
4196
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 if test -n "$ac_tool_prefix"; then
4203   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$CC"; then
4211   ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231   echo "$as_me:$LINENO: result: $CC" >&5
4232 echo "${ECHO_T}$CC" >&6
4233 else
4234   echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4236 fi
4237
4238 fi
4239 if test -z "$ac_cv_prog_CC"; then
4240   ac_ct_CC=$CC
4241   # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$ac_ct_CC"; then
4249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258     ac_cv_prog_ac_ct_CC="gcc"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264
4265 fi
4266 fi
4267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4270 echo "${ECHO_T}$ac_ct_CC" >&6
4271 else
4272   echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4274 fi
4275
4276   CC=$ac_ct_CC
4277 else
4278   CC="$ac_cv_prog_CC"
4279 fi
4280
4281 if test -z "$CC"; then
4282   if test -n "$ac_tool_prefix"; then
4283   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}cc; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_CC+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   if test -n "$CC"; then
4291   ac_cv_prog_CC="$CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_prog_CC="${ac_tool_prefix}cc"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306
4307 fi
4308 fi
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311   echo "$as_me:$LINENO: result: $CC" >&5
4312 echo "${ECHO_T}$CC" >&6
4313 else
4314   echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4316 fi
4317
4318 fi
4319 if test -z "$ac_cv_prog_CC"; then
4320   ac_ct_CC=$CC
4321   # Extract the first word of "cc", so it can be a program name with args.
4322 set dummy cc; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   if test -n "$ac_ct_CC"; then
4329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_prog_ac_ct_CC="cc"
4339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343 done
4344
4345 fi
4346 fi
4347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4350 echo "${ECHO_T}$ac_ct_CC" >&6
4351 else
4352   echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4354 fi
4355
4356   CC=$ac_ct_CC
4357 else
4358   CC="$ac_cv_prog_CC"
4359 fi
4360
4361 fi
4362 if test -z "$CC"; then
4363   # Extract the first word of "cc", so it can be a program name with args.
4364 set dummy cc; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_prog_CC+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   if test -n "$CC"; then
4371   ac_cv_prog_CC="$CC" # Let the user override the test.
4372 else
4373   ac_prog_rejected=no
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4382        ac_prog_rejected=yes
4383        continue
4384      fi
4385     ac_cv_prog_CC="cc"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391
4392 if test $ac_prog_rejected = yes; then
4393   # We found a bogon in the path, so make sure we never use it.
4394   set dummy $ac_cv_prog_CC
4395   shift
4396   if test $# != 0; then
4397     # We chose a different compiler from the bogus one.
4398     # However, it has the same basename, so the bogon will be chosen
4399     # first if we set CC to just the basename; use the full file name.
4400     shift
4401     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4402   fi
4403 fi
4404 fi
4405 fi
4406 CC=$ac_cv_prog_CC
4407 if test -n "$CC"; then
4408   echo "$as_me:$LINENO: result: $CC" >&5
4409 echo "${ECHO_T}$CC" >&6
4410 else
4411   echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4413 fi
4414
4415 fi
4416 if test -z "$CC"; then
4417   if test -n "$ac_tool_prefix"; then
4418   for ac_prog in cl
4419   do
4420     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_CC+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   if test -n "$CC"; then
4428   ac_cv_prog_CC="$CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443
4444 fi
4445 fi
4446 CC=$ac_cv_prog_CC
4447 if test -n "$CC"; then
4448   echo "$as_me:$LINENO: result: $CC" >&5
4449 echo "${ECHO_T}$CC" >&6
4450 else
4451   echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4453 fi
4454
4455     test -n "$CC" && break
4456   done
4457 fi
4458 if test -z "$CC"; then
4459   ac_ct_CC=$CC
4460   for ac_prog in cl
4461 do
4462   # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy $ac_prog; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -n "$ac_ct_CC"; then
4470   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   for ac_exec_ext in '' $ac_executable_extensions; do
4478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479     ac_cv_prog_ac_ct_CC="$ac_prog"
4480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481     break 2
4482   fi
4483 done
4484 done
4485
4486 fi
4487 fi
4488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4489 if test -n "$ac_ct_CC"; then
4490   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4491 echo "${ECHO_T}$ac_ct_CC" >&6
4492 else
4493   echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4495 fi
4496
4497   test -n "$ac_ct_CC" && break
4498 done
4499
4500   CC=$ac_ct_CC
4501 fi
4502
4503 fi
4504
4505
4506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details." >&5
4508 echo "$as_me: error: no acceptable C compiler found in \$PATH
4509 See \`config.log' for more details." >&2;}
4510    { (exit 1); exit 1; }; }
4511
4512 # Provide some information about the compiler.
4513 echo "$as_me:$LINENO:" \
4514      "checking for C compiler version" >&5
4515 ac_compiler=`set X $ac_compile; echo $2`
4516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4517   (eval $ac_compiler --version </dev/null >&5) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }
4521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4522   (eval $ac_compiler -v </dev/null >&5) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }
4526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4527   (eval $ac_compiler -V </dev/null >&5) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }
4531
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538
4539 int
4540 main ()
4541 {
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 ac_clean_files_save=$ac_clean_files
4548 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4549 # Try to create an executable without -o first, disregard a.out.
4550 # It will help us diagnose broken compilers, and finding out an intuition
4551 # of exeext.
4552 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4553 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4554 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4556   (eval $ac_link_default) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; then
4560   # Find the output, starting from the most likely.  This scheme is
4561 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4562 # resort.
4563
4564 # Be careful to initialize this variable, since it used to be cached.
4565 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4566 ac_cv_exeext=
4567 # b.out is created by i960 compilers.
4568 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4569 do
4570   test -f "$ac_file" || continue
4571   case $ac_file in
4572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4573         ;;
4574     conftest.$ac_ext )
4575         # This is the source file.
4576         ;;
4577     [ab].out )
4578         # We found the default executable, but exeext='' is most
4579         # certainly right.
4580         break;;
4581     *.* )
4582         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583         # FIXME: I believe we export ac_cv_exeext for Libtool,
4584         # but it would be cool to find out if it's true.  Does anybody
4585         # maintain Libtool? --akim.
4586         export ac_cv_exeext
4587         break;;
4588     * )
4589         break;;
4590   esac
4591 done
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4597 See \`config.log' for more details." >&5
4598 echo "$as_me: error: C compiler cannot create executables
4599 See \`config.log' for more details." >&2;}
4600    { (exit 77); exit 77; }; }
4601 fi
4602
4603 ac_exeext=$ac_cv_exeext
4604 echo "$as_me:$LINENO: result: $ac_file" >&5
4605 echo "${ECHO_T}$ac_file" >&6
4606
4607 # Check the compiler produces executables we can run.  If not, either
4608 # the compiler is broken, or we cross compile.
4609 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4612 # If not cross compiling, check that we can run a simple program.
4613 if test "$cross_compiling" != yes; then
4614   if { ac_try='./$ac_file'
4615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616   (eval $ac_try) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620     cross_compiling=no
4621   else
4622     if test "$cross_compiling" = maybe; then
4623         cross_compiling=yes
4624     else
4625         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4626 If you meant to cross compile, use \`--host'.
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot run C compiled programs.
4629 If you meant to cross compile, use \`--host'.
4630 See \`config.log' for more details." >&2;}
4631    { (exit 1); exit 1; }; }
4632     fi
4633   fi
4634 fi
4635 echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6
4637
4638 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4639 ac_clean_files=$ac_clean_files_save
4640 # Check the compiler produces executables we can run.  If not, either
4641 # the compiler is broken, or we cross compile.
4642 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4643 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4644 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4645 echo "${ECHO_T}$cross_compiling" >&6
4646
4647 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4648 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650   (eval $ac_link) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; then
4654   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4655 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4656 # work properly (i.e., refer to `conftest.exe'), while it won't with
4657 # `rm'.
4658 for ac_file in conftest.exe conftest conftest.*; do
4659   test -f "$ac_file" || continue
4660   case $ac_file in
4661     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4662     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4663           export ac_cv_exeext
4664           break;;
4665     * ) break;;
4666   esac
4667 done
4668 else
4669   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4670 See \`config.log' for more details." >&5
4671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4672 See \`config.log' for more details." >&2;}
4673    { (exit 1); exit 1; }; }
4674 fi
4675
4676 rm -f conftest$ac_cv_exeext
4677 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4678 echo "${ECHO_T}$ac_cv_exeext" >&6
4679
4680 rm -f conftest.$ac_ext
4681 EXEEXT=$ac_cv_exeext
4682 ac_exeext=$EXEEXT
4683 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4684 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4685 if test "${ac_cv_objext+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694
4695 int
4696 main ()
4697 {
4698
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.o conftest.obj
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705   (eval $ac_compile) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; then
4709   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4710   case $ac_file in
4711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4712     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4713        break;;
4714   esac
4715 done
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4723 See \`config.log' for more details." >&2;}
4724    { (exit 1); exit 1; }; }
4725 fi
4726
4727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4730 echo "${ECHO_T}$ac_cv_objext" >&6
4731 OBJEXT=$ac_cv_objext
4732 ac_objext=$OBJEXT
4733 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744
4745 int
4746 main ()
4747 {
4748 #ifndef __GNUC__
4749        choke me
4750 #endif
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758   (eval $ac_compile) 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } &&
4765          { ac_try='test -z "$ac_c_werror_flag"
4766                          || test ! -s conftest.err'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; } &&
4772          { ac_try='test -s conftest.$ac_objext'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; }; then
4778   ac_compiler_gnu=yes
4779 else
4780   echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 ac_compiler_gnu=no
4784 fi
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4787
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4791 GCC=`test $ac_compiler_gnu = yes && echo yes`
4792 ac_test_CFLAGS=${CFLAGS+set}
4793 ac_save_CFLAGS=$CFLAGS
4794 CFLAGS="-g"
4795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4797 if test "${ac_cv_prog_cc_g+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806
4807 int
4808 main ()
4809 {
4810
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817   (eval $ac_compile) 2>conftest.er1
4818   ac_status=$?
4819   grep -v '^ *+' conftest.er1 >conftest.err
4820   rm -f conftest.er1
4821   cat conftest.err >&5
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } &&
4824          { ac_try='test -z "$ac_c_werror_flag"
4825                          || test ! -s conftest.err'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; } &&
4831          { ac_try='test -s conftest.$ac_objext'
4832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833   (eval $ac_try) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; }; then
4837   ac_cv_prog_cc_g=yes
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_cv_prog_cc_g=no
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 fi
4846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4848 if test "$ac_test_CFLAGS" = set; then
4849   CFLAGS=$ac_save_CFLAGS
4850 elif test $ac_cv_prog_cc_g = yes; then
4851   if test "$GCC" = yes; then
4852     CFLAGS="-g -O2"
4853   else
4854     CFLAGS="-g"
4855   fi
4856 else
4857   if test "$GCC" = yes; then
4858     CFLAGS="-O2"
4859   else
4860     CFLAGS=
4861   fi
4862 fi
4863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   ac_cv_prog_cc_stdc=no
4869 ac_save_CC=$CC
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876 #include <stdarg.h>
4877 #include <stdio.h>
4878 #include <sys/types.h>
4879 #include <sys/stat.h>
4880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4881 struct buf { int x; };
4882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4883 static char *e (p, i)
4884      char **p;
4885      int i;
4886 {
4887   return p[i];
4888 }
4889 static char *f (char * (*g) (char **, int), char **p, ...)
4890 {
4891   char *s;
4892   va_list v;
4893   va_start (v,p);
4894   s = g (p, va_arg (v,int));
4895   va_end (v);
4896   return s;
4897 }
4898
4899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4900    function prototypes and stuff, but not '\xHH' hex character constants.
4901    These don't provoke an error unfortunately, instead are silently treated
4902    as 'x'.  The following induces an error, until -std1 is added to get
4903    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4904    array size at least.  It's necessary to write '\x00'==0 to get something
4905    that's true only with -std1.  */
4906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4907
4908 int test (int i, double x);
4909 struct s1 {int (*f) (int a);};
4910 struct s2 {int (*f) (double a);};
4911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4912 int argc;
4913 char **argv;
4914 int
4915 main ()
4916 {
4917 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4918   ;
4919   return 0;
4920 }
4921 _ACEOF
4922 # Don't try gcc -ansi; that turns off useful extensions and
4923 # breaks some systems' header files.
4924 # AIX                   -qlanglvl=ansi
4925 # Ultrix and OSF/1      -std1
4926 # HP-UX 10.20 and later -Ae
4927 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4928 # SVR4                  -Xc -D__EXTENSIONS__
4929 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4930 do
4931   CC="$ac_save_CC $ac_arg"
4932   rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } &&
4941          { ac_try='test -z "$ac_c_werror_flag"
4942                          || test ! -s conftest.err'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; } &&
4948          { ac_try='test -s conftest.$ac_objext'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   ac_cv_prog_cc_stdc=$ac_arg
4955 break
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 fi
4961 rm -f conftest.err conftest.$ac_objext
4962 done
4963 rm -f conftest.$ac_ext conftest.$ac_objext
4964 CC=$ac_save_CC
4965
4966 fi
4967
4968 case "x$ac_cv_prog_cc_stdc" in
4969   x|xno)
4970     echo "$as_me:$LINENO: result: none needed" >&5
4971 echo "${ECHO_T}none needed" >&6 ;;
4972   *)
4973     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4975     CC="$CC $ac_cv_prog_cc_stdc" ;;
4976 esac
4977
4978 # Some people use a C++ compiler to compile C.  Since we use `exit',
4979 # in C++ we need to declare it.  In case someone uses the same compiler
4980 # for both compiling C and C++ we need to have the C++ compiler decide
4981 # the declaration of exit, since it's the most demanding environment.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 #ifndef __cplusplus
4984   choke me
4985 #endif
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989   (eval $ac_compile) 2>conftest.er1
4990   ac_status=$?
4991   grep -v '^ *+' conftest.er1 >conftest.err
4992   rm -f conftest.er1
4993   cat conftest.err >&5
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); } &&
4996          { ac_try='test -z "$ac_c_werror_flag"
4997                          || test ! -s conftest.err'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; } &&
5003          { ac_try='test -s conftest.$ac_objext'
5004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005   (eval $ac_try) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   for ac_declaration in \
5010    '' \
5011    'extern "C" void std::exit (int) throw (); using std::exit;' \
5012    'extern "C" void std::exit (int); using std::exit;' \
5013    'extern "C" void exit (int) throw ();' \
5014    'extern "C" void exit (int);' \
5015    'void exit (int);'
5016 do
5017   cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 $ac_declaration
5024 #include <stdlib.h>
5025 int
5026 main ()
5027 {
5028 exit (42);
5029   ;
5030   return 0;
5031 }
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035   (eval $ac_compile) 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } &&
5042          { ac_try='test -z "$ac_c_werror_flag"
5043                          || test ! -s conftest.err'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; } &&
5049          { ac_try='test -s conftest.$ac_objext'
5050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051   (eval $ac_try) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; }; then
5055   :
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 continue
5061 fi
5062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063   cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h.  */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h.  */
5069 $ac_declaration
5070 int
5071 main ()
5072 {
5073 exit (42);
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080   (eval $ac_compile) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -z "$ac_c_werror_flag"
5088                          || test ! -s conftest.err'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; } &&
5094          { ac_try='test -s conftest.$ac_objext'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; }; then
5100   break
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 fi
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 done
5108 rm -f conftest*
5109 if test -n "$ac_declaration"; then
5110   echo '#ifdef __cplusplus' >>confdefs.h
5111   echo $ac_declaration      >>confdefs.h
5112   echo '#endif'             >>confdefs.h
5113 fi
5114
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 fi
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121 ac_ext=c
5122 ac_cpp='$CPP $CPPFLAGS'
5123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126
5127 depcc="$CC"   am_compiler_list=
5128
5129 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5130 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5131 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5135   # We make a subdir and do the tests there.  Otherwise we can end up
5136   # making bogus files that we don't know about and never remove.  For
5137   # instance it was reported that on HP-UX the gcc test will end up
5138   # making a dummy file named `D' -- because `-MD' means `put the output
5139   # in D'.
5140   mkdir conftest.dir
5141   # Copy depcomp to subdir because otherwise we won't find it if we're
5142   # using a relative directory.
5143   cp "$am_depcomp" conftest.dir
5144   cd conftest.dir
5145   # We will build objects and dependencies in a subdirectory because
5146   # it helps to detect inapplicable dependency modes.  For instance
5147   # both Tru64's cc and ICC support -MD to output dependencies as a
5148   # side effect of compilation, but ICC will put the dependencies in
5149   # the current directory while Tru64 will put them in the object
5150   # directory.
5151   mkdir sub
5152
5153   am_cv_CC_dependencies_compiler_type=none
5154   if test "$am_compiler_list" = ""; then
5155      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5156   fi
5157   for depmode in $am_compiler_list; do
5158     # Setup a source with many dependencies, because some compilers
5159     # like to wrap large dependency lists on column 80 (with \), and
5160     # we should not choose a depcomp mode which is confused by this.
5161     #
5162     # We need to recreate these files for each test, as the compiler may
5163     # overwrite some of them when testing with obscure command lines.
5164     # This happens at least with the AIX C compiler.
5165     : > sub/conftest.c
5166     for i in 1 2 3 4 5 6; do
5167       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5168       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5169       # Solaris 8's {/usr,}/bin/sh.
5170       touch sub/conftst$i.h
5171     done
5172     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5173
5174     case $depmode in
5175     nosideeffect)
5176       # after this tag, mechanisms are not by side-effect, so they'll
5177       # only be used when explicitly requested
5178       if test "x$enable_dependency_tracking" = xyes; then
5179         continue
5180       else
5181         break
5182       fi
5183       ;;
5184     none) break ;;
5185     esac
5186     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5187     # mode.  It turns out that the SunPro C++ compiler does not properly
5188     # handle `-M -o', and we need to detect this.
5189     if depmode=$depmode \
5190        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5191        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5192        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5193          >/dev/null 2>conftest.err &&
5194        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5195        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5196        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5197       # icc doesn't choke on unknown options, it will just issue warnings
5198       # or remarks (even with -Werror).  So we grep stderr for any message
5199       # that says an option was ignored or not supported.
5200       # When given -MP, icc 7.0 and 7.1 complain thusly:
5201       #   icc: Command line warning: ignoring option '-M'; no argument required
5202       # The diagnosis changed in icc 8.0:
5203       #   icc: Command line remark: option '-MP' not supported
5204       if (grep 'ignoring option' conftest.err ||
5205           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5206         am_cv_CC_dependencies_compiler_type=$depmode
5207         break
5208       fi
5209     fi
5210   done
5211
5212   cd ..
5213   rm -rf conftest.dir
5214 else
5215   am_cv_CC_dependencies_compiler_type=none
5216 fi
5217
5218 fi
5219 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5220 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5222
5223
5224
5225 if
5226   test "x$enable_dependency_tracking" != xno \
5227   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5228   am__fastdepCC_TRUE=
5229   am__fastdepCC_FALSE='#'
5230 else
5231   am__fastdepCC_TRUE='#'
5232   am__fastdepCC_FALSE=
5233 fi
5234
5235
5236 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5237 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5238 if test "${lt_cv_path_SED+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   # Loop through the user's path and test for sed and gsed.
5242 # Then use that list of sed's as ones to test for truncation.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for lt_ac_prog in sed gsed; do
5249     for ac_exec_ext in '' $ac_executable_extensions; do
5250       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5251         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5252       fi
5253     done
5254   done
5255 done
5256 lt_ac_max=0
5257 lt_ac_count=0
5258 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5259 # along with /bin/sed that truncates output.
5260 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5261   test ! -f $lt_ac_sed && continue
5262   cat /dev/null > conftest.in
5263   lt_ac_count=0
5264   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5265   # Check for GNU sed and select it if it is found.
5266   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5267     lt_cv_path_SED=$lt_ac_sed
5268     break
5269   fi
5270   while true; do
5271     cat conftest.in conftest.in >conftest.tmp
5272     mv conftest.tmp conftest.in
5273     cp conftest.in conftest.nl
5274     echo >>conftest.nl
5275     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5276     cmp -s conftest.out conftest.nl || break
5277     # 10000 chars as input seems more than enough
5278     test $lt_ac_count -gt 10 && break
5279     lt_ac_count=`expr $lt_ac_count + 1`
5280     if test $lt_ac_count -gt $lt_ac_max; then
5281       lt_ac_max=$lt_ac_count
5282       lt_cv_path_SED=$lt_ac_sed
5283     fi
5284   done
5285 done
5286
5287 fi
5288
5289 SED=$lt_cv_path_SED
5290 echo "$as_me:$LINENO: result: $SED" >&5
5291 echo "${ECHO_T}$SED" >&6
5292
5293 echo "$as_me:$LINENO: checking for egrep" >&5
5294 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5295 if test "${ac_cv_prog_egrep+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5299     then ac_cv_prog_egrep='grep -E'
5300     else ac_cv_prog_egrep='egrep'
5301     fi
5302 fi
5303 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5304 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5305  EGREP=$ac_cv_prog_egrep
5306
5307
5308
5309 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5310 if test "${with_gnu_ld+set}" = set; then
5311   withval="$with_gnu_ld"
5312   test "$withval" = no || with_gnu_ld=yes
5313 else
5314   with_gnu_ld=no
5315 fi;
5316 ac_prog=ld
5317 if test "$GCC" = yes; then
5318   # Check if gcc -print-prog-name=ld gives a path.
5319   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5320 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5321   case $host in
5322   *-*-mingw*)
5323     # gcc leaves a trailing carriage return which upsets mingw
5324     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5325   *)
5326     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5327   esac
5328   case $ac_prog in
5329     # Accept absolute paths.
5330     [\\/]* | ?:[\\/]*)
5331       re_direlt='/[^/][^/]*/\.\./'
5332       # Canonicalize the pathname of ld
5333       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5334       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5335         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5336       done
5337       test -z "$LD" && LD="$ac_prog"
5338       ;;
5339   "")
5340     # If it fails, then pretend we aren't using GCC.
5341     ac_prog=ld
5342     ;;
5343   *)
5344     # If it is relative, then search for the first ld in PATH.
5345     with_gnu_ld=unknown
5346     ;;
5347   esac
5348 elif test "$with_gnu_ld" = yes; then
5349   echo "$as_me:$LINENO: checking for GNU ld" >&5
5350 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5351 else
5352   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5353 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5354 fi
5355 if test "${lt_cv_path_LD+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   if test -z "$LD"; then
5359   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5360   for ac_dir in $PATH; do
5361     IFS="$lt_save_ifs"
5362     test -z "$ac_dir" && ac_dir=.
5363     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5364       lt_cv_path_LD="$ac_dir/$ac_prog"
5365       # Check to see if the program is GNU ld.  I'd rather use --version,
5366       # but apparently some variants of GNU ld only accept -v.
5367       # Break only if it was the GNU/non-GNU ld that we prefer.
5368       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5369       *GNU* | *'with BFD'*)
5370         test "$with_gnu_ld" != no && break
5371         ;;
5372       *)
5373         test "$with_gnu_ld" != yes && break
5374         ;;
5375       esac
5376     fi
5377   done
5378   IFS="$lt_save_ifs"
5379 else
5380   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5381 fi
5382 fi
5383
5384 LD="$lt_cv_path_LD"
5385 if test -n "$LD"; then
5386   echo "$as_me:$LINENO: result: $LD" >&5
5387 echo "${ECHO_T}$LD" >&6
5388 else
5389   echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5391 fi
5392 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5393 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5394    { (exit 1); exit 1; }; }
5395 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5396 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5397 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5401 case `$LD -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403   lt_cv_prog_gnu_ld=yes
5404   ;;
5405 *)
5406   lt_cv_prog_gnu_ld=no
5407   ;;
5408 esac
5409 fi
5410 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5411 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5412 with_gnu_ld=$lt_cv_prog_gnu_ld
5413
5414
5415 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5416 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5417 if test "${lt_cv_ld_reload_flag+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   lt_cv_ld_reload_flag='-r'
5421 fi
5422 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5423 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5424 reload_flag=$lt_cv_ld_reload_flag
5425 case $reload_flag in
5426 "" | " "*) ;;
5427 *) reload_flag=" $reload_flag" ;;
5428 esac
5429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5430 case $host_os in
5431   darwin*)
5432     if test "$GCC" = yes; then
5433       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5434     else
5435       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5436     fi
5437     ;;
5438 esac
5439
5440 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5441 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5442 if test "${lt_cv_path_NM+set}" = set; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445   if test -n "$NM"; then
5446   # Let the user override the test.
5447   lt_cv_path_NM="$NM"
5448 else
5449   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5451     IFS="$lt_save_ifs"
5452     test -z "$ac_dir" && ac_dir=.
5453     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5454     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455       # Check to see if the nm accepts a BSD-compat flag.
5456       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457       #   nm: unknown option "B" ignored
5458       # Tru64's nm complains that /dev/null is an invalid object file
5459       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460       */dev/null* | *'Invalid file or object type'*)
5461         lt_cv_path_NM="$tmp_nm -B"
5462         break
5463         ;;
5464       *)
5465         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5466         */dev/null*)
5467           lt_cv_path_NM="$tmp_nm -p"
5468           break
5469           ;;
5470         *)
5471           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472           continue # so that we can try to find one that supports BSD flags
5473           ;;
5474         esac
5475       esac
5476     fi
5477   done
5478   IFS="$lt_save_ifs"
5479   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5480 fi
5481 fi
5482 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5483 echo "${ECHO_T}$lt_cv_path_NM" >&6
5484 NM="$lt_cv_path_NM"
5485
5486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5488 LN_S=$as_ln_s
5489 if test "$LN_S" = "ln -s"; then
5490   echo "$as_me:$LINENO: result: yes" >&5
5491 echo "${ECHO_T}yes" >&6
5492 else
5493   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5494 echo "${ECHO_T}no, using $LN_S" >&6
5495 fi
5496
5497 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5498 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5499 if test "${lt_cv_deplibs_check_method+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   lt_cv_file_magic_cmd='$MAGIC_CMD'
5503 lt_cv_file_magic_test_file=
5504 lt_cv_deplibs_check_method='unknown'
5505 # Need to set the preceding variable on all platforms that support
5506 # interlibrary dependencies.
5507 # 'none' -- dependencies not supported.
5508 # `unknown' -- same as none, but documents that we really don't know.
5509 # 'pass_all' -- all dependencies passed with no checks.
5510 # 'test_compile' -- check by making test program.
5511 # 'file_magic [[regex]]' -- check by looking for files in library path
5512 # which responds to the $file_magic_cmd with a given extended regex.
5513 # If you have `file' or equivalent on your system and you're not sure
5514 # whether `pass_all' will *always* work, you probably want this one.
5515
5516 case $host_os in
5517 aix4* | aix5*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 beos*)
5522   lt_cv_deplibs_check_method=pass_all
5523   ;;
5524
5525 bsdi[45]*)
5526   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5527   lt_cv_file_magic_cmd='/usr/bin/file -L'
5528   lt_cv_file_magic_test_file=/shlib/libc.so
5529   ;;
5530
5531 cygwin*)
5532   # func_win32_libid is a shell function defined in ltmain.sh
5533   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5534   lt_cv_file_magic_cmd='func_win32_libid'
5535   ;;
5536
5537 mingw* | pw32*)
5538   # Base MSYS/MinGW do not provide the 'file' command needed by
5539   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5540   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5541   lt_cv_file_magic_cmd='$OBJDUMP -f'
5542   ;;
5543
5544 darwin* | rhapsody*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 freebsd* | kfreebsd*-gnu | dragonfly*)
5549   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5550     case $host_cpu in
5551     i*86 )
5552       # Not sure whether the presence of OpenBSD here was a mistake.
5553       # Let's accept both of them until this is cleared up.
5554       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5555       lt_cv_file_magic_cmd=/usr/bin/file
5556       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5557       ;;
5558     esac
5559   else
5560     lt_cv_deplibs_check_method=pass_all
5561   fi
5562   ;;
5563
5564 gnu*)
5565   lt_cv_deplibs_check_method=pass_all
5566   ;;
5567
5568 hpux10.20* | hpux11*)
5569   lt_cv_file_magic_cmd=/usr/bin/file
5570   case $host_cpu in
5571   ia64*)
5572     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5573     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5574     ;;
5575   hppa*64*)
5576     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5577     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5578     ;;
5579   *)
5580     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5581     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5582     ;;
5583   esac
5584   ;;
5585
5586 irix5* | irix6* | nonstopux*)
5587   case $LD in
5588   *-32|*"-32 ") libmagic=32-bit;;
5589   *-n32|*"-n32 ") libmagic=N32;;
5590   *-64|*"-64 ") libmagic=64-bit;;
5591   *) libmagic=never-match;;
5592   esac
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595
5596 # This must be Linux ELF.
5597 linux*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 netbsd*)
5602   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5603     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5604   else
5605     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5606   fi
5607   ;;
5608
5609 newos6*)
5610   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611   lt_cv_file_magic_cmd=/usr/bin/file
5612   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5613   ;;
5614
5615 nto-qnx*)
5616   lt_cv_deplibs_check_method=unknown
5617   ;;
5618
5619 openbsd*)
5620   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5622   else
5623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624   fi
5625   ;;
5626
5627 osf3* | osf4* | osf5*)
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 sco3.2v5*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 solaris*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5640   case $host_vendor in
5641   motorola)
5642     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5643     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5644     ;;
5645   ncr)
5646     lt_cv_deplibs_check_method=pass_all
5647     ;;
5648   sequent)
5649     lt_cv_file_magic_cmd='/bin/file'
5650     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5651     ;;
5652   sni)
5653     lt_cv_file_magic_cmd='/bin/file'
5654     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5655     lt_cv_file_magic_test_file=/lib/libc.so
5656     ;;
5657   siemens)
5658     lt_cv_deplibs_check_method=pass_all
5659     ;;
5660   esac
5661   ;;
5662
5663 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666 esac
5667
5668 fi
5669 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5671 file_magic_cmd=$lt_cv_file_magic_cmd
5672 deplibs_check_method=$lt_cv_deplibs_check_method
5673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5674
5675
5676
5677
5678 # If no C compiler was specified, use CC.
5679 LTCC=${LTCC-"$CC"}
5680
5681 # Allow CC to be a program name with arguments.
5682 compiler=$CC
5683
5684
5685 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5686 if test "${enable_libtool_lock+set}" = set; then
5687   enableval="$enable_libtool_lock"
5688
5689 fi;
5690 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5691
5692 # Some flags need to be propagated to the compiler or linker for good
5693 # libtool support.
5694 case $host in
5695 ia64-*-hpux*)
5696   # Find out which ABI we are using.
5697   echo 'int i;' > conftest.$ac_ext
5698   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699   (eval $ac_compile) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; then
5703     case `/usr/bin/file conftest.$ac_objext` in
5704     *ELF-32*)
5705       HPUX_IA64_MODE="32"
5706       ;;
5707     *ELF-64*)
5708       HPUX_IA64_MODE="64"
5709       ;;
5710     esac
5711   fi
5712   rm -rf conftest*
5713   ;;
5714 *-*-irix6*)
5715   # Find out which ABI we are using.
5716   echo '#line 5716 "configure"' > conftest.$ac_ext
5717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718   (eval $ac_compile) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; then
5722    if test "$lt_cv_prog_gnu_ld" = yes; then
5723     case `/usr/bin/file conftest.$ac_objext` in
5724     *32-bit*)
5725       LD="${LD-ld} -melf32bsmip"
5726       ;;
5727     *N32*)
5728       LD="${LD-ld} -melf32bmipn32"
5729       ;;
5730     *64-bit*)
5731       LD="${LD-ld} -melf64bmip"
5732       ;;
5733     esac
5734    else
5735     case `/usr/bin/file conftest.$ac_objext` in
5736     *32-bit*)
5737       LD="${LD-ld} -32"
5738       ;;
5739     *N32*)
5740       LD="${LD-ld} -n32"
5741       ;;
5742     *64-bit*)
5743       LD="${LD-ld} -64"
5744       ;;
5745     esac
5746    fi
5747   fi
5748   rm -rf conftest*
5749   ;;
5750
5751 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5752   # Find out which ABI we are using.
5753   echo 'int i;' > conftest.$ac_ext
5754   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755   (eval $ac_compile) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; then
5759     case `/usr/bin/file conftest.o` in
5760     *32-bit*)
5761       case $host in
5762         x86_64-*linux*)
5763           LD="${LD-ld} -m elf_i386"
5764           ;;
5765         ppc64-*linux*|powerpc64-*linux*)
5766           LD="${LD-ld} -m elf32ppclinux"
5767           ;;
5768         s390x-*linux*)
5769           LD="${LD-ld} -m elf_s390"
5770           ;;
5771         sparc64-*linux*)
5772           LD="${LD-ld} -m elf32_sparc"
5773           ;;
5774       esac
5775       ;;
5776     *64-bit*)
5777       case $host in
5778         x86_64-*linux*)
5779           LD="${LD-ld} -m elf_x86_64"
5780           ;;
5781         ppc*-*linux*|powerpc*-*linux*)
5782           LD="${LD-ld} -m elf64ppc"
5783           ;;
5784         s390*-*linux*)
5785           LD="${LD-ld} -m elf64_s390"
5786           ;;
5787         sparc*-*linux*)
5788           LD="${LD-ld} -m elf64_sparc"
5789           ;;
5790       esac
5791       ;;
5792     esac
5793   fi
5794   rm -rf conftest*
5795   ;;
5796
5797 *-*-sco3.2v5*)
5798   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5799   SAVE_CFLAGS="$CFLAGS"
5800   CFLAGS="$CFLAGS -belf"
5801   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5802 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5803 if test "${lt_cv_cc_needs_belf+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   ac_ext=c
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812      cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h.  */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h.  */
5818
5819 int
5820 main ()
5821 {
5822
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829   (eval $ac_link) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_c_werror_flag"
5837                          || test ! -s conftest.err'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; } &&
5843          { ac_try='test -s conftest$ac_exeext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   lt_cv_cc_needs_belf=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 lt_cv_cc_needs_belf=no
5855 fi
5856 rm -f conftest.err conftest.$ac_objext \
5857       conftest$ac_exeext conftest.$ac_ext
5858      ac_ext=c
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863
5864 fi
5865 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5866 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5867   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5868     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5869     CFLAGS="$SAVE_CFLAGS"
5870   fi
5871   ;;
5872 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5873   if test -n "$ac_tool_prefix"; then
5874   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$DLLTOOL"; then
5882   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897
5898 fi
5899 fi
5900 DLLTOOL=$ac_cv_prog_DLLTOOL
5901 if test -n "$DLLTOOL"; then
5902   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5903 echo "${ECHO_T}$DLLTOOL" >&6
5904 else
5905   echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909 fi
5910 if test -z "$ac_cv_prog_DLLTOOL"; then
5911   ac_ct_DLLTOOL=$DLLTOOL
5912   # Extract the first word of "dlltool", so it can be a program name with args.
5913 set dummy dlltool; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$ac_ct_DLLTOOL"; then
5920   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5937 fi
5938 fi
5939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5940 if test -n "$ac_ct_DLLTOOL"; then
5941   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5942 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948   DLLTOOL=$ac_ct_DLLTOOL
5949 else
5950   DLLTOOL="$ac_cv_prog_DLLTOOL"
5951 fi
5952
5953   if test -n "$ac_tool_prefix"; then
5954   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}as; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_AS+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   if test -n "$AS"; then
5962   ac_cv_prog_AS="$AS" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_exec_ext in '' $ac_executable_extensions; do
5970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971     ac_cv_prog_AS="${ac_tool_prefix}as"
5972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976 done
5977
5978 fi
5979 fi
5980 AS=$ac_cv_prog_AS
5981 if test -n "$AS"; then
5982   echo "$as_me:$LINENO: result: $AS" >&5
5983 echo "${ECHO_T}$AS" >&6
5984 else
5985   echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5987 fi
5988
5989 fi
5990 if test -z "$ac_cv_prog_AS"; then
5991   ac_ct_AS=$AS
5992   # Extract the first word of "as", so it can be a program name with args.
5993 set dummy as; ac_word=$2
5994 echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   if test -n "$ac_ct_AS"; then
6000   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007   for ac_exec_ext in '' $ac_executable_extensions; do
6008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009     ac_cv_prog_ac_ct_AS="as"
6010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014 done
6015
6016   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6017 fi
6018 fi
6019 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6020 if test -n "$ac_ct_AS"; then
6021   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6022 echo "${ECHO_T}$ac_ct_AS" >&6
6023 else
6024   echo "$as_me:$LINENO: result: no" >&5
6025 echo "${ECHO_T}no" >&6
6026 fi
6027
6028   AS=$ac_ct_AS
6029 else
6030   AS="$ac_cv_prog_AS"
6031 fi
6032
6033   if test -n "$ac_tool_prefix"; then
6034   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6036 echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6038 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   if test -n "$OBJDUMP"; then
6042   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049   for ac_exec_ext in '' $ac_executable_extensions; do
6050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056 done
6057
6058 fi
6059 fi
6060 OBJDUMP=$ac_cv_prog_OBJDUMP
6061 if test -n "$OBJDUMP"; then
6062   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6063 echo "${ECHO_T}$OBJDUMP" >&6
6064 else
6065   echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6
6067 fi
6068
6069 fi
6070 if test -z "$ac_cv_prog_OBJDUMP"; then
6071   ac_ct_OBJDUMP=$OBJDUMP
6072   # Extract the first word of "objdump", so it can be a program name with args.
6073 set dummy objdump; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   if test -n "$ac_ct_OBJDUMP"; then
6080   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087   for ac_exec_ext in '' $ac_executable_extensions; do
6088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094 done
6095
6096   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6097 fi
6098 fi
6099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6100 if test -n "$ac_ct_OBJDUMP"; then
6101   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6102 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6103 else
6104   echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6
6106 fi
6107
6108   OBJDUMP=$ac_ct_OBJDUMP
6109 else
6110   OBJDUMP="$ac_cv_prog_OBJDUMP"
6111 fi
6112
6113   ;;
6114
6115 esac
6116
6117 need_locks="$enable_libtool_lock"
6118
6119
6120 ac_ext=c
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6125 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6127 # On Suns, sometimes $CPP names a directory.
6128 if test -n "$CPP" && test -d "$CPP"; then
6129   CPP=
6130 fi
6131 if test -z "$CPP"; then
6132   if test "${ac_cv_prog_CPP+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135       # Double quotes because CPP needs to be expanded
6136     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6137     do
6138       ac_preproc_ok=false
6139 for ac_c_preproc_warn_flag in '' yes
6140 do
6141   # Use a header file that comes with gcc, so configuring glibc
6142   # with a fresh cross-compiler works.
6143   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6144   # <limits.h> exists even on freestanding compilers.
6145   # On the NeXT, cc -E runs the code through the compiler's parser,
6146   # not just through cpp. "Syntax error" is here to catch this case.
6147   cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #ifdef __STDC__
6154 # include <limits.h>
6155 #else
6156 # include <assert.h>
6157 #endif
6158                      Syntax error
6159 _ACEOF
6160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } >/dev/null; then
6168   if test -s conftest.err; then
6169     ac_cpp_err=$ac_c_preproc_warn_flag
6170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6171   else
6172     ac_cpp_err=
6173   fi
6174 else
6175   ac_cpp_err=yes
6176 fi
6177 if test -z "$ac_cpp_err"; then
6178   :
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183   # Broken: fails on valid input.
6184 continue
6185 fi
6186 rm -f conftest.err conftest.$ac_ext
6187
6188   # OK, works on sane cases.  Now check whether non-existent headers
6189   # can be detected and how.
6190   cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196 #include <ac_nonexistent.h>
6197 _ACEOF
6198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6200   ac_status=$?
6201   grep -v '^ *+' conftest.er1 >conftest.err
6202   rm -f conftest.er1
6203   cat conftest.err >&5
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } >/dev/null; then
6206   if test -s conftest.err; then
6207     ac_cpp_err=$ac_c_preproc_warn_flag
6208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6209   else
6210     ac_cpp_err=
6211   fi
6212 else
6213   ac_cpp_err=yes
6214 fi
6215 if test -z "$ac_cpp_err"; then
6216   # Broken: success on invalid input.
6217 continue
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222   # Passes both tests.
6223 ac_preproc_ok=:
6224 break
6225 fi
6226 rm -f conftest.err conftest.$ac_ext
6227
6228 done
6229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6230 rm -f conftest.err conftest.$ac_ext
6231 if $ac_preproc_ok; then
6232   break
6233 fi
6234
6235     done
6236     ac_cv_prog_CPP=$CPP
6237
6238 fi
6239   CPP=$ac_cv_prog_CPP
6240 else
6241   ac_cv_prog_CPP=$CPP
6242 fi
6243 echo "$as_me:$LINENO: result: $CPP" >&5
6244 echo "${ECHO_T}$CPP" >&6
6245 ac_preproc_ok=false
6246 for ac_c_preproc_warn_flag in '' yes
6247 do
6248   # Use a header file that comes with gcc, so configuring glibc
6249   # with a fresh cross-compiler works.
6250   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6251   # <limits.h> exists even on freestanding compilers.
6252   # On the NeXT, cc -E runs the code through the compiler's parser,
6253   # not just through cpp. "Syntax error" is here to catch this case.
6254   cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260 #ifdef __STDC__
6261 # include <limits.h>
6262 #else
6263 # include <assert.h>
6264 #endif
6265                      Syntax error
6266 _ACEOF
6267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } >/dev/null; then
6275   if test -s conftest.err; then
6276     ac_cpp_err=$ac_c_preproc_warn_flag
6277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6278   else
6279     ac_cpp_err=
6280   fi
6281 else
6282   ac_cpp_err=yes
6283 fi
6284 if test -z "$ac_cpp_err"; then
6285   :
6286 else
6287   echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290   # Broken: fails on valid input.
6291 continue
6292 fi
6293 rm -f conftest.err conftest.$ac_ext
6294
6295   # OK, works on sane cases.  Now check whether non-existent headers
6296   # can be detected and how.
6297   cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 #include <ac_nonexistent.h>
6304 _ACEOF
6305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6307   ac_status=$?
6308   grep -v '^ *+' conftest.er1 >conftest.err
6309   rm -f conftest.er1
6310   cat conftest.err >&5
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } >/dev/null; then
6313   if test -s conftest.err; then
6314     ac_cpp_err=$ac_c_preproc_warn_flag
6315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6316   else
6317     ac_cpp_err=
6318   fi
6319 else
6320   ac_cpp_err=yes
6321 fi
6322 if test -z "$ac_cpp_err"; then
6323   # Broken: success on invalid input.
6324 continue
6325 else
6326   echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329   # Passes both tests.
6330 ac_preproc_ok=:
6331 break
6332 fi
6333 rm -f conftest.err conftest.$ac_ext
6334
6335 done
6336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6337 rm -f conftest.err conftest.$ac_ext
6338 if $ac_preproc_ok; then
6339   :
6340 else
6341   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6342 See \`config.log' for more details." >&5
6343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6344 See \`config.log' for more details." >&2;}
6345    { (exit 1); exit 1; }; }
6346 fi
6347
6348 ac_ext=c
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353
6354
6355 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6356 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6357 if test "${ac_cv_header_stdc+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 #include <stdlib.h>
6367 #include <stdarg.h>
6368 #include <string.h>
6369 #include <float.h>
6370
6371 int
6372 main ()
6373 {
6374
6375   ;
6376   return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381   (eval $ac_compile) 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } &&
6388          { ac_try='test -z "$ac_c_werror_flag"
6389                          || test ! -s conftest.err'
6390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391   (eval $ac_try) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }; } &&
6395          { ac_try='test -s conftest.$ac_objext'
6396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397   (eval $ac_try) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; }; then
6401   ac_cv_header_stdc=yes
6402 else
6403   echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ac_cv_header_stdc=no
6407 fi
6408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409
6410 if test $ac_cv_header_stdc = yes; then
6411   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6412   cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h.  */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h.  */
6418 #include <string.h>
6419
6420 _ACEOF
6421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422   $EGREP "memchr" >/dev/null 2>&1; then
6423   :
6424 else
6425   ac_cv_header_stdc=no
6426 fi
6427 rm -f conftest*
6428
6429 fi
6430
6431 if test $ac_cv_header_stdc = yes; then
6432   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6433   cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h.  */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h.  */
6439 #include <stdlib.h>
6440
6441 _ACEOF
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443   $EGREP "free" >/dev/null 2>&1; then
6444   :
6445 else
6446   ac_cv_header_stdc=no
6447 fi
6448 rm -f conftest*
6449
6450 fi
6451
6452 if test $ac_cv_header_stdc = yes; then
6453   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6454   if test "$cross_compiling" = yes; then
6455   :
6456 else
6457   cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 #include <ctype.h>
6464 #if ((' ' & 0x0FF) == 0x020)
6465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6467 #else
6468 # define ISLOWER(c) \
6469                    (('a' <= (c) && (c) <= 'i') \
6470                      || ('j' <= (c) && (c) <= 'r') \
6471                      || ('s' <= (c) && (c) <= 'z'))
6472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6473 #endif
6474
6475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6476 int
6477 main ()
6478 {
6479   int i;
6480   for (i = 0; i < 256; i++)
6481     if (XOR (islower (i), ISLOWER (i))
6482         || toupper (i) != TOUPPER (i))
6483       exit(2);
6484   exit (0);
6485 }
6486 _ACEOF
6487 rm -f conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489   (eval $ac_link) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494   (eval $ac_try) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; }; then
6498   :
6499 else
6500   echo "$as_me: program exited with status $ac_status" >&5
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ( exit $ac_status )
6505 ac_cv_header_stdc=no
6506 fi
6507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6508 fi
6509 fi
6510 fi
6511 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6512 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6513 if test $ac_cv_header_stdc = yes; then
6514
6515 cat >>confdefs.h <<\_ACEOF
6516 #define STDC_HEADERS 1
6517 _ACEOF
6518
6519 fi
6520
6521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532                   inttypes.h stdint.h unistd.h
6533 do
6534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546 $ac_includes_default
6547
6548 #include <$ac_header>
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552   (eval $ac_compile) 2>conftest.er1
6553   ac_status=$?
6554   grep -v '^ *+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } &&
6559          { ac_try='test -z "$ac_c_werror_flag"
6560                          || test ! -s conftest.err'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; } &&
6566          { ac_try='test -s conftest.$ac_objext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   eval "$as_ac_Header=yes"
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 eval "$as_ac_Header=no"
6578 fi
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584   cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6586 _ACEOF
6587
6588 fi
6589
6590 done
6591
6592
6593
6594 for ac_header in dlfcn.h
6595 do
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598   echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 fi
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6605 else
6606   # Is the header compilable?
6607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h.  */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h.  */
6615 $ac_includes_default
6616 #include <$ac_header>
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620   (eval $ac_compile) 2>conftest.er1
6621   ac_status=$?
6622   grep -v '^ *+' conftest.er1 >conftest.err
6623   rm -f conftest.er1
6624   cat conftest.err >&5
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); } &&
6627          { ac_try='test -z "$ac_c_werror_flag"
6628                          || test ! -s conftest.err'
6629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630   (eval $ac_try) 2>&5
6631   ac_status=$?
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); }; } &&
6634          { ac_try='test -s conftest.$ac_objext'
6635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636   (eval $ac_try) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; }; then
6640   ac_header_compiler=yes
6641 else
6642   echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_header_compiler=no
6646 fi
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6649 echo "${ECHO_T}$ac_header_compiler" >&6
6650
6651 # Is the header present?
6652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660 #include <$ac_header>
6661 _ACEOF
6662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664   ac_status=$?
6665   grep -v '^ *+' conftest.er1 >conftest.err
6666   rm -f conftest.er1
6667   cat conftest.err >&5
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); } >/dev/null; then
6670   if test -s conftest.err; then
6671     ac_cpp_err=$ac_c_preproc_warn_flag
6672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6673   else
6674     ac_cpp_err=
6675   fi
6676 else
6677   ac_cpp_err=yes
6678 fi
6679 if test -z "$ac_cpp_err"; then
6680   ac_header_preproc=yes
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685   ac_header_preproc=no
6686 fi
6687 rm -f conftest.err conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6689 echo "${ECHO_T}$ac_header_preproc" >&6
6690
6691 # So?  What about this header?
6692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6693   yes:no: )
6694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6698     ac_header_preproc=yes
6699     ;;
6700   no:yes:* )
6701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6713     (
6714       cat <<\_ASBOX
6715 ## --------------------------------------------- ##
6716 ## Report this to <http://www.openldap.org/its/> ##
6717 ## --------------------------------------------- ##
6718 _ASBOX
6719     ) |
6720       sed "s/^/$as_me: WARNING:     /" >&2
6721     ;;
6722 esac
6723 echo "$as_me:$LINENO: checking for $ac_header" >&5
6724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   eval "$as_ac_Header=\$ac_header_preproc"
6729 fi
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732
6733 fi
6734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735   cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 _ACEOF
6738
6739 fi
6740
6741 done
6742
6743
6744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6745
6746 # find the maximum length of command line arguments
6747 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6748 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6749 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752     i=0
6753   teststring="ABCD"
6754
6755   case $build_os in
6756   msdosdjgpp*)
6757     # On DJGPP, this test can blow up pretty badly due to problems in libc
6758     # (any single argument exceeding 2000 bytes causes a buffer overrun
6759     # during glob expansion).  Even if it were fixed, the result of this
6760     # check would be larger than it should be.
6761     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6762     ;;
6763
6764   gnu*)
6765     # Under GNU Hurd, this test is not required because there is
6766     # no limit to the length of command line arguments.
6767     # Libtool will interpret -1 as no limit whatsoever
6768     lt_cv_sys_max_cmd_len=-1;
6769     ;;
6770
6771   cygwin* | mingw*)
6772     # On Win9x/ME, this test blows up -- it succeeds, but takes
6773     # about 5 minutes as the teststring grows exponentially.
6774     # Worse, since 9x/ME are not pre-emptively multitasking,
6775     # you end up with a "frozen" computer, even though with patience
6776     # the test eventually succeeds (with a max line length of 256k).
6777     # Instead, let's just punt: use the minimum linelength reported by
6778     # all of the supported platforms: 8192 (on NT/2K/XP).
6779     lt_cv_sys_max_cmd_len=8192;
6780     ;;
6781
6782   amigaos*)
6783     # On AmigaOS with pdksh, this test takes hours, literally.
6784     # So we just punt and use a minimum line length of 8192.
6785     lt_cv_sys_max_cmd_len=8192;
6786     ;;
6787
6788   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6789     # This has been around since 386BSD, at least.  Likely further.
6790     if test -x /sbin/sysctl; then
6791       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6792     elif test -x /usr/sbin/sysctl; then
6793       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6794     else
6795       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6796     fi
6797     # And add a safety zone
6798     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6799     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6800     ;;
6801   osf*)
6802     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6803     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6804     # nice to cause kernel panics so lets avoid the loop below.
6805     # First set a reasonable default.
6806     lt_cv_sys_max_cmd_len=16384
6807     #
6808     if test -x /sbin/sysconfig; then
6809       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6810         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6811       esac
6812     fi
6813     ;;
6814   *)
6815     # If test is not a shell built-in, we'll probably end up computing a
6816     # maximum length that is only half of the actual maximum length, but
6817     # we can't tell.
6818     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6819     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6820                = "XX$teststring") >/dev/null 2>&1 &&
6821             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6822             lt_cv_sys_max_cmd_len=$new_result &&
6823             test $i != 17 # 1/2 MB should be enough
6824     do
6825       i=`expr $i + 1`
6826       teststring=$teststring$teststring
6827     done
6828     teststring=
6829     # Add a significant safety factor because C++ compilers can tack on massive
6830     # amounts of additional arguments before passing them to the linker.
6831     # It appears as though 1/2 is a usable value.
6832     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6833     ;;
6834   esac
6835
6836 fi
6837
6838 if test -n $lt_cv_sys_max_cmd_len ; then
6839   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6841 else
6842   echo "$as_me:$LINENO: result: none" >&5
6843 echo "${ECHO_T}none" >&6
6844 fi
6845
6846
6847
6848
6849 # Check for command to grab the raw symbol name followed by C symbol from nm.
6850 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855
6856 # These are sane defaults that work on at least a few old systems.
6857 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6858
6859 # Character class describing NM global symbol codes.
6860 symcode='[BCDEGRST]'
6861
6862 # Regexp to match symbols that can be accessed directly from C.
6863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6864
6865 # Transform an extracted symbol line into a proper C declaration
6866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6867
6868 # Transform an extracted symbol line into symbol name and symbol address
6869 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6870
6871 # Define system-specific variables.
6872 case $host_os in
6873 aix*)
6874   symcode='[BCDT]'
6875   ;;
6876 cygwin* | mingw* | pw32*)
6877   symcode='[ABCDGISTW]'
6878   ;;
6879 hpux*) # Its linker distinguishes data from code symbols
6880   if test "$host_cpu" = ia64; then
6881     symcode='[ABCDEGRST]'
6882   fi
6883   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6884   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6885   ;;
6886 linux*)
6887   if test "$host_cpu" = ia64; then
6888     symcode='[ABCDGIRSTW]'
6889     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6890     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6891   fi
6892   ;;
6893 irix* | nonstopux*)
6894   symcode='[BCDEGRST]'
6895   ;;
6896 osf*)
6897   symcode='[BCDEGQRST]'
6898   ;;
6899 solaris* | sysv5*)
6900   symcode='[BDRT]'
6901   ;;
6902 sysv4)
6903   symcode='[DFNSTU]'
6904   ;;
6905 esac
6906
6907 # Handle CRLF in mingw tool chain
6908 opt_cr=
6909 case $build_os in
6910 mingw*)
6911   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6912   ;;
6913 esac
6914
6915 # If we're using GNU nm, then use its standard symbol codes.
6916 case `$NM -V 2>&1` in
6917 *GNU* | *'with BFD'*)
6918   symcode='[ABCDGIRSTW]' ;;
6919 esac
6920
6921 # Try without a prefix undercore, then with it.
6922 for ac_symprfx in "" "_"; do
6923
6924   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6925   symxfrm="\\1 $ac_symprfx\\2 \\2"
6926
6927   # Write the raw and C identifiers.
6928   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6929
6930   # Check to see that the pipe works correctly.
6931   pipe_works=no
6932
6933   rm -f conftest*
6934   cat > conftest.$ac_ext <<EOF
6935 #ifdef __cplusplus
6936 extern "C" {
6937 #endif
6938 char nm_test_var;
6939 void nm_test_func(){}
6940 #ifdef __cplusplus
6941 }
6942 #endif
6943 int main(){nm_test_var='a';nm_test_func();return(0);}
6944 EOF
6945
6946   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947   (eval $ac_compile) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); }; then
6951     # Now try to grab the symbols.
6952     nlist=conftest.nm
6953     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6954   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } && test -s "$nlist"; then
6958       # Try sorting and uniquifying the output.
6959       if sort "$nlist" | uniq > "$nlist"T; then
6960         mv -f "$nlist"T "$nlist"
6961       else
6962         rm -f "$nlist"T
6963       fi
6964
6965       # Make sure that we snagged all the symbols we need.
6966       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6967         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6968           cat <<EOF > conftest.$ac_ext
6969 #ifdef __cplusplus
6970 extern "C" {
6971 #endif
6972
6973 EOF
6974           # Now generate the symbol file.
6975           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6976
6977           cat <<EOF >> conftest.$ac_ext
6978 #if defined (__STDC__) && __STDC__
6979 # define lt_ptr_t void *
6980 #else
6981 # define lt_ptr_t char *
6982 # define const
6983 #endif
6984
6985 /* The mapping between symbol names and symbols. */
6986 const struct {
6987   const char *name;
6988   lt_ptr_t address;
6989 }
6990 lt_preloaded_symbols[] =
6991 {
6992 EOF
6993           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6994           cat <<\EOF >> conftest.$ac_ext
6995   {0, (lt_ptr_t) 0}
6996 };
6997
6998 #ifdef __cplusplus
6999 }
7000 #endif
7001 EOF
7002           # Now try linking the two files.
7003           mv conftest.$ac_objext conftstm.$ac_objext
7004           lt_save_LIBS="$LIBS"
7005           lt_save_CFLAGS="$CFLAGS"
7006           LIBS="conftstm.$ac_objext"
7007           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7008           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009   (eval $ac_link) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7013             pipe_works=yes
7014           fi
7015           LIBS="$lt_save_LIBS"
7016           CFLAGS="$lt_save_CFLAGS"
7017         else
7018           echo "cannot find nm_test_func in $nlist" >&5
7019         fi
7020       else
7021         echo "cannot find nm_test_var in $nlist" >&5
7022       fi
7023     else
7024       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7025     fi
7026   else
7027     echo "$progname: failed program was:" >&5
7028     cat conftest.$ac_ext >&5
7029   fi
7030   rm -f conftest* conftst*
7031
7032   # Do not use the global_symbol_pipe unless it works.
7033   if test "$pipe_works" = yes; then
7034     break
7035   else
7036     lt_cv_sys_global_symbol_pipe=
7037   fi
7038 done
7039
7040 fi
7041
7042 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7043   lt_cv_sys_global_symbol_to_cdecl=
7044 fi
7045 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7046   echo "$as_me:$LINENO: result: failed" >&5
7047 echo "${ECHO_T}failed" >&6
7048 else
7049   echo "$as_me:$LINENO: result: ok" >&5
7050 echo "${ECHO_T}ok" >&6
7051 fi
7052
7053 echo "$as_me:$LINENO: checking for objdir" >&5
7054 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7055 if test "${lt_cv_objdir+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   rm -f .libs 2>/dev/null
7059 mkdir .libs 2>/dev/null
7060 if test -d .libs; then
7061   lt_cv_objdir=.libs
7062 else
7063   # MS-DOS does not allow filenames that begin with a dot.
7064   lt_cv_objdir=_libs
7065 fi
7066 rmdir .libs 2>/dev/null
7067 fi
7068 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7069 echo "${ECHO_T}$lt_cv_objdir" >&6
7070 objdir=$lt_cv_objdir
7071
7072
7073
7074
7075
7076 case $host_os in
7077 aix3*)
7078   # AIX sometimes has problems with the GCC collect2 program.  For some
7079   # reason, if we set the COLLECT_NAMES environment variable, the problems
7080   # vanish in a puff of smoke.
7081   if test "X${COLLECT_NAMES+set}" != Xset; then
7082     COLLECT_NAMES=
7083     export COLLECT_NAMES
7084   fi
7085   ;;
7086 esac
7087
7088 # Sed substitution that helps us do robust quoting.  It backslashifies
7089 # metacharacters that are still active within double-quoted strings.
7090 Xsed='sed -e 1s/^X//'
7091 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7092
7093 # Same as above, but do not quote variable references.
7094 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7095
7096 # Sed substitution to delay expansion of an escaped shell variable in a
7097 # double_quote_subst'ed string.
7098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7099
7100 # Sed substitution to avoid accidental globbing in evaled expressions
7101 no_glob_subst='s/\*/\\\*/g'
7102
7103 # Constants:
7104 rm="rm -f"
7105
7106 # Global variables:
7107 default_ofile=libtool
7108 can_build_shared=yes
7109
7110 # All known linkers require a `.a' archive for static linking (except MSVC,
7111 # which needs '.lib').
7112 libext=a
7113 ltmain="$ac_aux_dir/ltmain.sh"
7114 ofile="$default_ofile"
7115 with_gnu_ld="$lt_cv_prog_gnu_ld"
7116
7117 if test -n "$ac_tool_prefix"; then
7118   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}ar; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_AR+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   if test -n "$AR"; then
7126   ac_cv_prog_AR="$AR" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133   for ac_exec_ext in '' $ac_executable_extensions; do
7134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135     ac_cv_prog_AR="${ac_tool_prefix}ar"
7136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140 done
7141
7142 fi
7143 fi
7144 AR=$ac_cv_prog_AR
7145 if test -n "$AR"; then
7146   echo "$as_me:$LINENO: result: $AR" >&5
7147 echo "${ECHO_T}$AR" >&6
7148 else
7149   echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7151 fi
7152
7153 fi
7154 if test -z "$ac_cv_prog_AR"; then
7155   ac_ct_AR=$AR
7156   # Extract the first word of "ar", so it can be a program name with args.
7157 set dummy ar; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   if test -n "$ac_ct_AR"; then
7164   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171   for ac_exec_ext in '' $ac_executable_extensions; do
7172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_prog_ac_ct_AR="ar"
7174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178 done
7179
7180   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7181 fi
7182 fi
7183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7184 if test -n "$ac_ct_AR"; then
7185   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186 echo "${ECHO_T}$ac_ct_AR" >&6
7187 else
7188   echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190 fi
7191
7192   AR=$ac_ct_AR
7193 else
7194   AR="$ac_cv_prog_AR"
7195 fi
7196
7197 if test -n "$ac_tool_prefix"; then
7198   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7200 echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202 if test "${ac_cv_prog_RANLIB+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   if test -n "$RANLIB"; then
7206   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213   for ac_exec_ext in '' $ac_executable_extensions; do
7214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220 done
7221
7222 fi
7223 fi
7224 RANLIB=$ac_cv_prog_RANLIB
7225 if test -n "$RANLIB"; then
7226   echo "$as_me:$LINENO: result: $RANLIB" >&5
7227 echo "${ECHO_T}$RANLIB" >&6
7228 else
7229   echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7231 fi
7232
7233 fi
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235   ac_ct_RANLIB=$RANLIB
7236   # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   if test -n "$ac_ct_RANLIB"; then
7244   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251   for ac_exec_ext in '' $ac_executable_extensions; do
7252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253     ac_cv_prog_ac_ct_RANLIB="ranlib"
7254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258 done
7259
7260   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7261 fi
7262 fi
7263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7264 if test -n "$ac_ct_RANLIB"; then
7265   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7266 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7267 else
7268   echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270 fi
7271
7272   RANLIB=$ac_ct_RANLIB
7273 else
7274   RANLIB="$ac_cv_prog_RANLIB"
7275 fi
7276
7277 if test -n "$ac_tool_prefix"; then
7278   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}strip; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_prog_STRIP+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   if test -n "$STRIP"; then
7286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293   for ac_exec_ext in '' $ac_executable_extensions; do
7294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300 done
7301
7302 fi
7303 fi
7304 STRIP=$ac_cv_prog_STRIP
7305 if test -n "$STRIP"; then
7306   echo "$as_me:$LINENO: result: $STRIP" >&5
7307 echo "${ECHO_T}$STRIP" >&6
7308 else
7309   echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7311 fi
7312
7313 fi
7314 if test -z "$ac_cv_prog_STRIP"; then
7315   ac_ct_STRIP=$STRIP
7316   # Extract the first word of "strip", so it can be a program name with args.
7317 set dummy strip; ac_word=$2
7318 echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   if test -n "$ac_ct_STRIP"; then
7324   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331   for ac_exec_ext in '' $ac_executable_extensions; do
7332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333     ac_cv_prog_ac_ct_STRIP="strip"
7334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338 done
7339
7340   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7341 fi
7342 fi
7343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7344 if test -n "$ac_ct_STRIP"; then
7345   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7346 echo "${ECHO_T}$ac_ct_STRIP" >&6
7347 else
7348   echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350 fi
7351
7352   STRIP=$ac_ct_STRIP
7353 else
7354   STRIP="$ac_cv_prog_STRIP"
7355 fi
7356
7357
7358 old_CC="$CC"
7359 old_CFLAGS="$CFLAGS"
7360
7361 # Set sane defaults for various variables
7362 test -z "$AR" && AR=ar
7363 test -z "$AR_FLAGS" && AR_FLAGS=cru
7364 test -z "$AS" && AS=as
7365 test -z "$CC" && CC=cc
7366 test -z "$LTCC" && LTCC=$CC
7367 test -z "$DLLTOOL" && DLLTOOL=dlltool
7368 test -z "$LD" && LD=ld
7369 test -z "$LN_S" && LN_S="ln -s"
7370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7371 test -z "$NM" && NM=nm
7372 test -z "$SED" && SED=sed
7373 test -z "$OBJDUMP" && OBJDUMP=objdump
7374 test -z "$RANLIB" && RANLIB=:
7375 test -z "$STRIP" && STRIP=:
7376 test -z "$ac_objext" && ac_objext=o
7377
7378 # Determine commands to create old-style static archives.
7379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7380 old_postinstall_cmds='chmod 644 $oldlib'
7381 old_postuninstall_cmds=
7382
7383 if test -n "$RANLIB"; then
7384   case $host_os in
7385   openbsd*)
7386     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7387     ;;
7388   *)
7389     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7390     ;;
7391   esac
7392   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7393 fi
7394
7395 for cc_temp in $compiler""; do
7396   case $cc_temp in
7397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7399     \-*) ;;
7400     *) break;;
7401   esac
7402 done
7403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7404
7405
7406 # Only perform the check for file, if the check method requires it
7407 case $deplibs_check_method in
7408 file_magic*)
7409   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7410     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7411 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7412 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   case $MAGIC_CMD in
7416 [\\/*] |  ?:[\\/]*)
7417   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7418   ;;
7419 *)
7420   lt_save_MAGIC_CMD="$MAGIC_CMD"
7421   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7422   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7423   for ac_dir in $ac_dummy; do
7424     IFS="$lt_save_ifs"
7425     test -z "$ac_dir" && ac_dir=.
7426     if test -f $ac_dir/${ac_tool_prefix}file; then
7427       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7428       if test -n "$file_magic_test_file"; then
7429         case $deplibs_check_method in
7430         "file_magic "*)
7431           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7432           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7434             $EGREP "$file_magic_regex" > /dev/null; then
7435             :
7436           else
7437             cat <<EOF 1>&2
7438
7439 *** Warning: the command libtool uses to detect shared libraries,
7440 *** $file_magic_cmd, produces output that libtool cannot recognize.
7441 *** The result is that libtool may fail to recognize shared libraries
7442 *** as such.  This will affect the creation of libtool libraries that
7443 *** depend on shared libraries, but programs linked with such libtool
7444 *** libraries will work regardless of this problem.  Nevertheless, you
7445 *** may want to report the problem to your system manager and/or to
7446 *** bug-libtool@gnu.org
7447
7448 EOF
7449           fi ;;
7450         esac
7451       fi
7452       break
7453     fi
7454   done
7455   IFS="$lt_save_ifs"
7456   MAGIC_CMD="$lt_save_MAGIC_CMD"
7457   ;;
7458 esac
7459 fi
7460
7461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7462 if test -n "$MAGIC_CMD"; then
7463   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7464 echo "${ECHO_T}$MAGIC_CMD" >&6
7465 else
7466   echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7468 fi
7469
7470 if test -z "$lt_cv_path_MAGIC_CMD"; then
7471   if test -n "$ac_tool_prefix"; then
7472     echo "$as_me:$LINENO: checking for file" >&5
7473 echo $ECHO_N "checking for file... $ECHO_C" >&6
7474 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   case $MAGIC_CMD in
7478 [\\/*] |  ?:[\\/]*)
7479   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7480   ;;
7481 *)
7482   lt_save_MAGIC_CMD="$MAGIC_CMD"
7483   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7484   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7485   for ac_dir in $ac_dummy; do
7486     IFS="$lt_save_ifs"
7487     test -z "$ac_dir" && ac_dir=.
7488     if test -f $ac_dir/file; then
7489       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7490       if test -n "$file_magic_test_file"; then
7491         case $deplibs_check_method in
7492         "file_magic "*)
7493           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7494           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7495           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7496             $EGREP "$file_magic_regex" > /dev/null; then
7497             :
7498           else
7499             cat <<EOF 1>&2
7500
7501 *** Warning: the command libtool uses to detect shared libraries,
7502 *** $file_magic_cmd, produces output that libtool cannot recognize.
7503 *** The result is that libtool may fail to recognize shared libraries
7504 *** as such.  This will affect the creation of libtool libraries that
7505 *** depend on shared libraries, but programs linked with such libtool
7506 *** libraries will work regardless of this problem.  Nevertheless, you
7507 *** may want to report the problem to your system manager and/or to
7508 *** bug-libtool@gnu.org
7509
7510 EOF
7511           fi ;;
7512         esac
7513       fi
7514       break
7515     fi
7516   done
7517   IFS="$lt_save_ifs"
7518   MAGIC_CMD="$lt_save_MAGIC_CMD"
7519   ;;
7520 esac
7521 fi
7522
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if test -n "$MAGIC_CMD"; then
7525   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7526 echo "${ECHO_T}$MAGIC_CMD" >&6
7527 else
7528   echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530 fi
7531
7532   else
7533     MAGIC_CMD=:
7534   fi
7535 fi
7536
7537   fi
7538   ;;
7539 esac
7540
7541 enable_dlopen=yes
7542 enable_win32_dll=yes
7543
7544 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7545 if test "${enable_libtool_lock+set}" = set; then
7546   enableval="$enable_libtool_lock"
7547
7548 fi;
7549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7550
7551
7552 # Check whether --with-pic or --without-pic was given.
7553 if test "${with_pic+set}" = set; then
7554   withval="$with_pic"
7555   pic_mode="$withval"
7556 else
7557   pic_mode=default
7558 fi;
7559 test -z "$pic_mode" && pic_mode=default
7560
7561 # Use C for the default configuration in the libtool script
7562 tagname=
7563 lt_save_CC="$CC"
7564 ac_ext=c
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569
7570
7571 # Source file extension for C test sources.
7572 ac_ext=c
7573
7574 # Object file extension for compiled C test sources.
7575 objext=o
7576 objext=$objext
7577
7578 # Code to be used in simple compile tests
7579 lt_simple_compile_test_code="int some_variable = 0;\n"
7580
7581 # Code to be used in simple link tests
7582 lt_simple_link_test_code='int main(){return(0);}\n'
7583
7584
7585 # If no C compiler was specified, use CC.
7586 LTCC=${LTCC-"$CC"}
7587
7588 # Allow CC to be a program name with arguments.
7589 compiler=$CC
7590
7591
7592 # save warnings/boilerplate of simple test code
7593 ac_outfile=conftest.$ac_objext
7594 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7596 _lt_compiler_boilerplate=`cat conftest.err`
7597 $rm conftest*
7598
7599 ac_outfile=conftest.$ac_objext
7600 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7602 _lt_linker_boilerplate=`cat conftest.err`
7603 $rm conftest*
7604
7605
7606 #
7607 # Check for any special shared library compilation flags.
7608 #
7609 lt_prog_cc_shlib=
7610 if test "$GCC" = no; then
7611   case $host_os in
7612   sco3.2v5*)
7613     lt_prog_cc_shlib='-belf'
7614     ;;
7615   esac
7616 fi
7617 if test -n "$lt_prog_cc_shlib"; then
7618   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7619 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7620   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7621   else
7622     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7623 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7624     lt_cv_prog_cc_can_build_shared=no
7625   fi
7626 fi
7627
7628
7629 #
7630 # Check to make sure the static flag actually works.
7631 #
7632 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7633 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7634 if test "${lt_prog_compiler_static_works+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   lt_prog_compiler_static_works=no
7638    save_LDFLAGS="$LDFLAGS"
7639    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7640    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7641    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7642      # The linker can only warn and ignore the option if not recognized
7643      # So say no if there are warnings
7644      if test -s conftest.err; then
7645        # Append any errors to the config.log.
7646        cat conftest.err 1>&5
7647        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7648        $SED '/^$/d' conftest.err >conftest.er2
7649        if diff conftest.exp conftest.er2 >/dev/null; then
7650          lt_prog_compiler_static_works=yes
7651        fi
7652      else
7653        lt_prog_compiler_static_works=yes
7654      fi
7655    fi
7656    $rm conftest*
7657    LDFLAGS="$save_LDFLAGS"
7658
7659 fi
7660 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7661 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7662
7663 if test x"$lt_prog_compiler_static_works" = xyes; then
7664     :
7665 else
7666     lt_prog_compiler_static=
7667 fi
7668
7669
7670
7671
7672 lt_prog_compiler_no_builtin_flag=
7673
7674 if test "$GCC" = yes; then
7675   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7676
7677
7678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   lt_cv_prog_compiler_rtti_exceptions=no
7684   ac_outfile=conftest.$ac_objext
7685    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7686    lt_compiler_flag="-fno-rtti -fno-exceptions"
7687    # Insert the option either (1) after the last *FLAGS variable, or
7688    # (2) before a word containing "conftest.", or (3) at the end.
7689    # Note that $ac_compile itself does not contain backslashes and begins
7690    # with a dollar sign (not a hyphen), so the echo should work correctly.
7691    # The option is referenced via a variable to avoid confusing sed.
7692    lt_compile=`echo "$ac_compile" | $SED \
7693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695    -e 's:$: $lt_compiler_flag:'`
7696    (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697    (eval "$lt_compile" 2>conftest.err)
7698    ac_status=$?
7699    cat conftest.err >&5
7700    echo "$as_me:7700: \$? = $ac_status" >&5
7701    if (exit $ac_status) && test -s "$ac_outfile"; then
7702      # The compiler can only warn and ignore the option if not recognized
7703      # So say no if there are warnings other than the usual output.
7704      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7705      $SED '/^$/d' conftest.err >conftest.er2
7706      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7707        lt_cv_prog_compiler_rtti_exceptions=yes
7708      fi
7709    fi
7710    $rm conftest*
7711
7712 fi
7713 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7715
7716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7718 else
7719     :
7720 fi
7721
7722 fi
7723
7724 lt_prog_compiler_wl=
7725 lt_prog_compiler_pic=
7726 lt_prog_compiler_static=
7727
7728 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7730
7731   if test "$GCC" = yes; then
7732     lt_prog_compiler_wl='-Wl,'
7733     lt_prog_compiler_static='-static'
7734
7735     case $host_os in
7736       aix*)
7737       # All AIX code is PIC.
7738       if test "$host_cpu" = ia64; then
7739         # AIX 5 now supports IA64 processor
7740         lt_prog_compiler_static='-Bstatic'
7741       fi
7742       ;;
7743
7744     amigaos*)
7745       # FIXME: we need at least 68020 code to build shared libraries, but
7746       # adding the `-m68020' flag to GCC prevents building anything better,
7747       # like `-m68040'.
7748       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7749       ;;
7750
7751     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7752       # PIC is the default for these OSes.
7753       ;;
7754
7755     mingw* | pw32* | os2*)
7756       # This hack is so that the source file can tell whether it is being
7757       # built for inclusion in a dll (and should export symbols for example).
7758       lt_prog_compiler_pic='-DDLL_EXPORT'
7759       ;;
7760
7761     darwin* | rhapsody*)
7762       # PIC is the default on this platform
7763       # Common symbols not allowed in MH_DYLIB files
7764       lt_prog_compiler_pic='-fno-common'
7765       ;;
7766
7767     msdosdjgpp*)
7768       # Just because we use GCC doesn't mean we suddenly get shared libraries
7769       # on systems that don't support them.
7770       lt_prog_compiler_can_build_shared=no
7771       enable_shared=no
7772       ;;
7773
7774     sysv4*MP*)
7775       if test -d /usr/nec; then
7776         lt_prog_compiler_pic=-Kconform_pic
7777       fi
7778       ;;
7779
7780     hpux*)
7781       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7782       # not for PA HP-UX.
7783       case $host_cpu in
7784       hppa*64*|ia64*)
7785         # +Z the default
7786         ;;
7787       *)
7788         lt_prog_compiler_pic='-fPIC'
7789         ;;
7790       esac
7791       ;;
7792
7793     *)
7794       lt_prog_compiler_pic='-fPIC'
7795       ;;
7796     esac
7797   else
7798     # PORTME Check for flag to pass linker flags through the system compiler.
7799     case $host_os in
7800     aix*)
7801       lt_prog_compiler_wl='-Wl,'
7802       if test "$host_cpu" = ia64; then
7803         # AIX 5 now supports IA64 processor
7804         lt_prog_compiler_static='-Bstatic'
7805       else
7806         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7807       fi
7808       ;;
7809       darwin*)
7810         # PIC is the default on this platform
7811         # Common symbols not allowed in MH_DYLIB files
7812        case $cc_basename in
7813          xlc*)
7814          lt_prog_compiler_pic='-qnocommon'
7815          lt_prog_compiler_wl='-Wl,'
7816          ;;
7817        esac
7818        ;;
7819
7820     mingw* | pw32* | os2*)
7821       # This hack is so that the source file can tell whether it is being
7822       # built for inclusion in a dll (and should export symbols for example).
7823       lt_prog_compiler_pic='-DDLL_EXPORT'
7824       ;;
7825
7826     hpux9* | hpux10* | hpux11*)
7827       lt_prog_compiler_wl='-Wl,'
7828       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7829       # not for PA HP-UX.
7830       case $host_cpu in
7831       hppa*64*|ia64*)
7832         # +Z the default
7833         ;;
7834       *)
7835         lt_prog_compiler_pic='+Z'
7836         ;;
7837       esac
7838       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7839       lt_prog_compiler_static='${wl}-a ${wl}archive'
7840       ;;
7841
7842     irix5* | irix6* | nonstopux*)
7843       lt_prog_compiler_wl='-Wl,'
7844       # PIC (with -KPIC) is the default.
7845       lt_prog_compiler_static='-non_shared'
7846       ;;
7847
7848     newsos6)
7849       lt_prog_compiler_pic='-KPIC'
7850       lt_prog_compiler_static='-Bstatic'
7851       ;;
7852
7853     linux*)
7854       case $cc_basename in
7855       icc* | ecc*)
7856         lt_prog_compiler_wl='-Wl,'
7857         lt_prog_compiler_pic='-KPIC'
7858         lt_prog_compiler_static='-static'
7859         ;;
7860       pgcc* | pgf77* | pgf90* | pgf95*)
7861         # Portland Group compilers (*not* the Pentium gcc compiler,
7862         # which looks to be a dead project)
7863         lt_prog_compiler_wl='-Wl,'
7864         lt_prog_compiler_pic='-fpic'
7865         lt_prog_compiler_static='-Bstatic'
7866         ;;
7867       ccc*)
7868         lt_prog_compiler_wl='-Wl,'
7869         # All Alpha code is PIC.
7870         lt_prog_compiler_static='-non_shared'
7871         ;;
7872       esac
7873       ;;
7874
7875     osf3* | osf4* | osf5*)
7876       lt_prog_compiler_wl='-Wl,'
7877       # All OSF/1 code is PIC.
7878       lt_prog_compiler_static='-non_shared'
7879       ;;
7880
7881     sco3.2v5*)
7882       lt_prog_compiler_pic='-Kpic'
7883       lt_prog_compiler_static='-dn'
7884       ;;
7885
7886     solaris*)
7887       lt_prog_compiler_pic='-KPIC'
7888       lt_prog_compiler_static='-Bstatic'
7889       case $cc_basename in
7890       f77* | f90* | f95*)
7891         lt_prog_compiler_wl='-Qoption ld ';;
7892       *)
7893         lt_prog_compiler_wl='-Wl,';;
7894       esac
7895       ;;
7896
7897     sunos4*)
7898       lt_prog_compiler_wl='-Qoption ld '
7899       lt_prog_compiler_pic='-PIC'
7900       lt_prog_compiler_static='-Bstatic'
7901       ;;
7902
7903     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7904       lt_prog_compiler_wl='-Wl,'
7905       lt_prog_compiler_pic='-KPIC'
7906       lt_prog_compiler_static='-Bstatic'
7907       ;;
7908
7909     sysv4*MP*)
7910       if test -d /usr/nec ;then
7911         lt_prog_compiler_pic='-Kconform_pic'
7912         lt_prog_compiler_static='-Bstatic'
7913       fi
7914       ;;
7915
7916     unicos*)
7917       lt_prog_compiler_wl='-Wl,'
7918       lt_prog_compiler_can_build_shared=no
7919       ;;
7920
7921     uts4*)
7922       lt_prog_compiler_pic='-pic'
7923       lt_prog_compiler_static='-Bstatic'
7924       ;;
7925
7926     *)
7927       lt_prog_compiler_can_build_shared=no
7928       ;;
7929     esac
7930   fi
7931
7932 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7933 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7934
7935 #
7936 # Check to make sure the PIC flag actually works.
7937 #
7938 if test -n "$lt_prog_compiler_pic"; then
7939
7940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7942 if test "${lt_prog_compiler_pic_works+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   lt_prog_compiler_pic_works=no
7946   ac_outfile=conftest.$ac_objext
7947    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7948    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7949    # Insert the option either (1) after the last *FLAGS variable, or
7950    # (2) before a word containing "conftest.", or (3) at the end.
7951    # Note that $ac_compile itself does not contain backslashes and begins
7952    # with a dollar sign (not a hyphen), so the echo should work correctly.
7953    # The option is referenced via a variable to avoid confusing sed.
7954    lt_compile=`echo "$ac_compile" | $SED \
7955    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7957    -e 's:$: $lt_compiler_flag:'`
7958    (eval echo "\"\$as_me:7958: $lt_compile\"" >&5)
7959    (eval "$lt_compile" 2>conftest.err)
7960    ac_status=$?
7961    cat conftest.err >&5
7962    echo "$as_me:7962: \$? = $ac_status" >&5
7963    if (exit $ac_status) && test -s "$ac_outfile"; then
7964      # The compiler can only warn and ignore the option if not recognized
7965      # So say no if there are warnings other than the usual output.
7966      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7967      $SED '/^$/d' conftest.err >conftest.er2
7968      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7969        lt_prog_compiler_pic_works=yes
7970      fi
7971    fi
7972    $rm conftest*
7973
7974 fi
7975 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7976 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7977
7978 if test x"$lt_prog_compiler_pic_works" = xyes; then
7979     case $lt_prog_compiler_pic in
7980      "" | " "*) ;;
7981      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7982      esac
7983 else
7984     lt_prog_compiler_pic=
7985      lt_prog_compiler_can_build_shared=no
7986 fi
7987
7988 fi
7989 case $host_os in
7990   # For platforms which do not support PIC, -DPIC is meaningless:
7991   *djgpp*)
7992     lt_prog_compiler_pic=
7993     ;;
7994   *)
7995     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7996     ;;
7997 esac
7998
7999 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   lt_cv_prog_compiler_c_o=no
8005    $rm -r conftest 2>/dev/null
8006    mkdir conftest
8007    cd conftest
8008    mkdir out
8009    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8010
8011    lt_compiler_flag="-o out/conftest2.$ac_objext"
8012    # Insert the option either (1) after the last *FLAGS variable, or
8013    # (2) before a word containing "conftest.", or (3) at the end.
8014    # Note that $ac_compile itself does not contain backslashes and begins
8015    # with a dollar sign (not a hyphen), so the echo should work correctly.
8016    lt_compile=`echo "$ac_compile" | $SED \
8017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019    -e 's:$: $lt_compiler_flag:'`
8020    (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021    (eval "$lt_compile" 2>out/conftest.err)
8022    ac_status=$?
8023    cat out/conftest.err >&5
8024    echo "$as_me:8024: \$? = $ac_status" >&5
8025    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8026    then
8027      # The compiler can only warn and ignore the option if not recognized
8028      # So say no if there are warnings
8029      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8030      $SED '/^$/d' out/conftest.err >out/conftest.er2
8031      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8032        lt_cv_prog_compiler_c_o=yes
8033      fi
8034    fi
8035    chmod u+w . 2>&5
8036    $rm conftest*
8037    # SGI C++ compiler will create directory out/ii_files/ for
8038    # template instantiation
8039    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8040    $rm out/* && rmdir out
8041    cd ..
8042    rmdir conftest
8043    $rm conftest*
8044
8045 fi
8046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8048
8049
8050 hard_links="nottested"
8051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8052   # do not overwrite the value of need_locks provided by the user
8053   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8055   hard_links=yes
8056   $rm conftest*
8057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058   touch conftest.a
8059   ln conftest.a conftest.b 2>&5 || hard_links=no
8060   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8061   echo "$as_me:$LINENO: result: $hard_links" >&5
8062 echo "${ECHO_T}$hard_links" >&6
8063   if test "$hard_links" = no; then
8064     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8066     need_locks=warn
8067   fi
8068 else
8069   need_locks=no
8070 fi
8071
8072 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8074
8075   runpath_var=
8076   allow_undefined_flag=
8077   enable_shared_with_static_runtimes=no
8078   archive_cmds=
8079   archive_expsym_cmds=
8080   old_archive_From_new_cmds=
8081   old_archive_from_expsyms_cmds=
8082   export_dynamic_flag_spec=
8083   whole_archive_flag_spec=
8084   thread_safe_flag_spec=
8085   hardcode_libdir_flag_spec=
8086   hardcode_libdir_flag_spec_ld=
8087   hardcode_libdir_separator=
8088   hardcode_direct=no
8089   hardcode_minus_L=no
8090   hardcode_shlibpath_var=unsupported
8091   link_all_deplibs=unknown
8092   hardcode_automatic=no
8093   module_cmds=
8094   module_expsym_cmds=
8095   always_export_symbols=no
8096   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8097   # include_expsyms should be a list of space-separated symbols to be *always*
8098   # included in the symbol list
8099   include_expsyms=
8100   # exclude_expsyms can be an extended regexp of symbols to exclude
8101   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8102   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8103   # as well as any symbol that contains `d'.
8104   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8105   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8106   # platforms (ab)use it in PIC code, but their linkers get confused if
8107   # the symbol is explicitly referenced.  Since portable code cannot
8108   # rely on this symbol name, it's probably fine to never include it in
8109   # preloaded symbol tables.
8110   extract_expsyms_cmds=
8111   # Just being paranoid about ensuring that cc_basename is set.
8112   for cc_temp in $compiler""; do
8113   case $cc_temp in
8114     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8115     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8116     \-*) ;;
8117     *) break;;
8118   esac
8119 done
8120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8121
8122   case $host_os in
8123   cygwin* | mingw* | pw32*)
8124     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125     # When not using gcc, we currently assume that we are using
8126     # Microsoft Visual C++.
8127     if test "$GCC" != yes; then
8128       with_gnu_ld=no
8129     fi
8130     ;;
8131   openbsd*)
8132     with_gnu_ld=no
8133     ;;
8134   esac
8135
8136   ld_shlibs=yes
8137   if test "$with_gnu_ld" = yes; then
8138     # If archive_cmds runs LD, not CC, wlarc should be empty
8139     wlarc='${wl}'
8140
8141     # Set some defaults for GNU ld with shared library support. These
8142     # are reset later if shared libraries are not supported. Putting them
8143     # here allows them to be overridden if necessary.
8144     runpath_var=LD_RUN_PATH
8145     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8146     export_dynamic_flag_spec='${wl}--export-dynamic'
8147     # ancient GNU ld didn't support --whole-archive et. al.
8148     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8149         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8150       else
8151         whole_archive_flag_spec=
8152     fi
8153     supports_anon_versioning=no
8154     case `$LD -v 2>/dev/null` in
8155       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8156       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8157       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8158       *\ 2.11.*) ;; # other 2.11 versions
8159       *) supports_anon_versioning=yes ;;
8160     esac
8161
8162     # See if GNU ld supports shared libraries.
8163     case $host_os in
8164     aix3* | aix4* | aix5*)
8165       # On AIX/PPC, the GNU linker is very broken
8166       if test "$host_cpu" != ia64; then
8167         ld_shlibs=no
8168         cat <<EOF 1>&2
8169
8170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8171 *** to be unable to reliably create shared libraries on AIX.
8172 *** Therefore, libtool is disabling shared libraries support.  If you
8173 *** really care for shared libraries, you may want to modify your PATH
8174 *** so that a non-GNU linker is found, and then restart.
8175
8176 EOF
8177       fi
8178       ;;
8179
8180     amigaos*)
8181       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8182       hardcode_libdir_flag_spec='-L$libdir'
8183       hardcode_minus_L=yes
8184
8185       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8186       # that the semantics of dynamic libraries on AmigaOS, at least up
8187       # to version 4, is to share data among multiple programs linked
8188       # with the same dynamic library.  Since this doesn't match the
8189       # behavior of shared libraries on other platforms, we can't use
8190       # them.
8191       ld_shlibs=no
8192       ;;
8193
8194     beos*)
8195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8196         allow_undefined_flag=unsupported
8197         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8198         # support --undefined.  This deserves some investigation.  FIXME
8199         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200       else
8201         ld_shlibs=no
8202       fi
8203       ;;
8204
8205     cygwin* | mingw* | pw32*)
8206       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8207       # as there is no search path for DLLs.
8208       hardcode_libdir_flag_spec='-L$libdir'
8209       allow_undefined_flag=unsupported
8210       always_export_symbols=no
8211       enable_shared_with_static_runtimes=yes
8212       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8213
8214       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8215         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8216         # If the export-symbols file already is a .def file (1st line
8217         # is EXPORTS), use it as is; otherwise, prepend...
8218         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8219           cp $export_symbols $output_objdir/$soname.def;
8220         else
8221           echo EXPORTS > $output_objdir/$soname.def;
8222           cat $export_symbols >> $output_objdir/$soname.def;
8223         fi~
8224         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8225       else
8226         ld_shlibs=no
8227       fi
8228       ;;
8229
8230     linux*)
8231       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232         tmp_addflag=
8233         case $cc_basename,$host_cpu in
8234         pgcc*)                          # Portland Group C compiler
8235           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8236           tmp_addflag=' $pic_flag'
8237           ;;
8238         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8239           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8240           tmp_addflag=' $pic_flag -Mnomain' ;;
8241         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8242           tmp_addflag=' -i_dynamic' ;;
8243         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8244           tmp_addflag=' -i_dynamic -nofor_main' ;;
8245         ifc* | ifort*)                  # Intel Fortran compiler
8246           tmp_addflag=' -nofor_main' ;;
8247         esac
8248         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249
8250         if test $supports_anon_versioning = yes; then
8251           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8252   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8253   $echo "local: *; };" >> $output_objdir/$libname.ver~
8254           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8255         fi
8256       else
8257         ld_shlibs=no
8258       fi
8259       ;;
8260
8261     netbsd*)
8262       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8264         wlarc=
8265       else
8266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268       fi
8269       ;;
8270
8271     solaris* | sysv5*)
8272       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8273         ld_shlibs=no
8274         cat <<EOF 1>&2
8275
8276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8277 *** create shared libraries on Solaris systems.  Therefore, libtool
8278 *** is disabling shared libraries support.  We urge you to upgrade GNU
8279 *** binutils to release 2.9.1 or newer.  Another option is to modify
8280 *** your PATH or compiler configuration so that the native linker is
8281 *** used, and then restart.
8282
8283 EOF
8284       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287       else
8288         ld_shlibs=no
8289       fi
8290       ;;
8291
8292     sunos4*)
8293       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8294       wlarc=
8295       hardcode_direct=yes
8296       hardcode_shlibpath_var=no
8297       ;;
8298
8299     *)
8300       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8303       else
8304         ld_shlibs=no
8305       fi
8306       ;;
8307     esac
8308
8309     if test "$ld_shlibs" = no; then
8310       runpath_var=
8311       hardcode_libdir_flag_spec=
8312       export_dynamic_flag_spec=
8313       whole_archive_flag_spec=
8314     fi
8315   else
8316     # PORTME fill in a description of your system's linker (not GNU ld)
8317     case $host_os in
8318     aix3*)
8319       allow_undefined_flag=unsupported
8320       always_export_symbols=yes
8321       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8322       # Note: this linker hardcodes the directories in LIBPATH if there
8323       # are no directories specified by -L.
8324       hardcode_minus_L=yes
8325       if test "$GCC" = yes && test -z "$link_static_flag"; then
8326         # Neither direct hardcoding nor static linking is supported with a
8327         # broken collect2.
8328         hardcode_direct=unsupported
8329       fi
8330       ;;
8331
8332     aix4* | aix5*)
8333       if test "$host_cpu" = ia64; then
8334         # On IA64, the linker does run time linking by default, so we don't
8335         # have to do anything special.
8336         aix_use_runtimelinking=no
8337         exp_sym_flag='-Bexport'
8338         no_entry_flag=""
8339       else
8340         # If we're using GNU nm, then we don't want the "-C" option.
8341         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8342         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8343           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8344         else
8345           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8346         fi
8347         aix_use_runtimelinking=no
8348
8349         # Test if we are trying to use run time linking or normal
8350         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8351         # need to do runtime linking.
8352         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8353           for ld_flag in $LDFLAGS; do
8354           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8355             aix_use_runtimelinking=yes
8356             break
8357           fi
8358           done
8359         esac
8360
8361         exp_sym_flag='-bexport'
8362         no_entry_flag='-bnoentry'
8363       fi
8364
8365       # When large executables or shared objects are built, AIX ld can
8366       # have problems creating the table of contents.  If linking a library
8367       # or program results in "error TOC overflow" add -mminimal-toc to
8368       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8369       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8370
8371       archive_cmds=''
8372       hardcode_direct=yes
8373       hardcode_libdir_separator=':'
8374       link_all_deplibs=yes
8375
8376       if test "$GCC" = yes; then
8377         case $host_os in aix4.[012]|aix4.[012].*)
8378         # We only want to do this on AIX 4.2 and lower, the check
8379         # below for broken collect2 doesn't work under 4.3+
8380           collect2name=`${CC} -print-prog-name=collect2`
8381           if test -f "$collect2name" && \
8382            strings "$collect2name" | grep resolve_lib_name >/dev/null
8383           then
8384           # We have reworked collect2
8385           hardcode_direct=yes
8386           else
8387           # We have old collect2
8388           hardcode_direct=unsupported
8389           # It fails to find uninstalled libraries when the uninstalled
8390           # path is not listed in the libpath.  Setting hardcode_minus_L
8391           # to unsupported forces relinking
8392           hardcode_minus_L=yes
8393           hardcode_libdir_flag_spec='-L$libdir'
8394           hardcode_libdir_separator=
8395           fi
8396         esac
8397         shared_flag='-shared'
8398         if test "$aix_use_runtimelinking" = yes; then
8399           shared_flag="$shared_flag "'${wl}-G'
8400         fi
8401       else
8402         # not using gcc
8403         if test "$host_cpu" = ia64; then
8404         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8405         # chokes on -Wl,-G. The following line is correct:
8406           shared_flag='-G'
8407         else
8408         if test "$aix_use_runtimelinking" = yes; then
8409             shared_flag='${wl}-G'
8410           else
8411             shared_flag='${wl}-bM:SRE'
8412         fi
8413         fi
8414       fi
8415
8416       # It seems that -bexpall does not export symbols beginning with
8417       # underscore (_), so it is better to generate a list of symbols to export.
8418       always_export_symbols=yes
8419       if test "$aix_use_runtimelinking" = yes; then
8420         # Warning - without using the other runtime loading flags (-brtl),
8421         # -berok will link without error, but may produce a broken library.
8422         allow_undefined_flag='-berok'
8423        # Determine the default libpath from the value encoded in an empty executable.
8424        cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 int
8432 main ()
8433 {
8434
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441   (eval $ac_link) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"
8449                          || test ! -s conftest.err'
8450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451   (eval $ac_try) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461
8462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8463 }'`
8464 # Check for a 64-bit object if we didn't find anything.
8465 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8466 }'`; fi
8467 else
8468   echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 fi
8472 rm -f conftest.err conftest.$ac_objext \
8473       conftest$ac_exeext conftest.$ac_ext
8474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8475
8476        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8477         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8478        else
8479         if test "$host_cpu" = ia64; then
8480           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8481           allow_undefined_flag="-z nodefs"
8482           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8483         else
8484          # Determine the default libpath from the value encoded in an empty executable.
8485          cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491
8492 int
8493 main ()
8494 {
8495
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502   (eval $ac_link) 2>conftest.er1
8503   ac_status=$?
8504   grep -v '^ *+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } &&
8509          { ac_try='test -z "$ac_c_werror_flag"
8510                          || test ! -s conftest.err'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; } &&
8516          { ac_try='test -s conftest$ac_exeext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522
8523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8524 }'`
8525 # Check for a 64-bit object if we didn't find anything.
8526 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8527 }'`; fi
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 fi
8533 rm -f conftest.err conftest.$ac_objext \
8534       conftest$ac_exeext conftest.$ac_ext
8535 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8536
8537          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8538           # Warning - without using the other run time loading flags,
8539           # -berok will link without error, but may produce a broken library.
8540           no_undefined_flag=' ${wl}-bernotok'
8541           allow_undefined_flag=' ${wl}-berok'
8542           # -bexpall does not export symbols beginning with underscore (_)
8543           always_export_symbols=yes
8544           # Exported symbols can be pulled into shared objects from archives
8545           whole_archive_flag_spec=' '
8546           archive_cmds_need_lc=yes
8547           # This is similar to how AIX traditionally builds its shared libraries.
8548           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8549         fi
8550       fi
8551       ;;
8552
8553     amigaos*)
8554       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8555       hardcode_libdir_flag_spec='-L$libdir'
8556       hardcode_minus_L=yes
8557       # see comment about different semantics on the GNU ld section
8558       ld_shlibs=no
8559       ;;
8560
8561     bsdi[45]*)
8562       export_dynamic_flag_spec=-rdynamic
8563       ;;
8564
8565     cygwin* | mingw* | pw32*)
8566       # When not using gcc, we currently assume that we are using
8567       # Microsoft Visual C++.
8568       # hardcode_libdir_flag_spec is actually meaningless, as there is
8569       # no search path for DLLs.
8570       hardcode_libdir_flag_spec=' '
8571       allow_undefined_flag=unsupported
8572       # Tell ltmain to make .lib files, not .a files.
8573       libext=lib
8574       # Tell ltmain to make .dll files, not .so files.
8575       shrext_cmds=".dll"
8576       # FIXME: Setting linknames here is a bad hack.
8577       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8578       # The linker will automatically build a .lib file if we build a DLL.
8579       old_archive_From_new_cmds='true'
8580       # FIXME: Should let the user specify the lib program.
8581       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8582       fix_srcfile_path='`cygpath -w "$srcfile"`'
8583       enable_shared_with_static_runtimes=yes
8584       ;;
8585
8586     darwin* | rhapsody*)
8587       case $host_os in
8588         rhapsody* | darwin1.[012])
8589          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8590          ;;
8591        *) # Darwin 1.3 on
8592          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8593            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8594          else
8595            case ${MACOSX_DEPLOYMENT_TARGET} in
8596              10.[012])
8597                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8598                ;;
8599              10.*)
8600                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8601                ;;
8602            esac
8603          fi
8604          ;;
8605       esac
8606       archive_cmds_need_lc=no
8607       hardcode_direct=no
8608       hardcode_automatic=yes
8609       hardcode_shlibpath_var=unsupported
8610       whole_archive_flag_spec=''
8611       link_all_deplibs=yes
8612     if test "$GCC" = yes ; then
8613         output_verbose_link_cmd='echo'
8614         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8615       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8616       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8617       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8618       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8619     else
8620       case $cc_basename in
8621         xlc*)
8622          output_verbose_link_cmd='echo'
8623          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8624          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8625           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8626          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8627           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8628           ;;
8629        *)
8630          ld_shlibs=no
8631           ;;
8632       esac
8633     fi
8634       ;;
8635
8636     dgux*)
8637       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638       hardcode_libdir_flag_spec='-L$libdir'
8639       hardcode_shlibpath_var=no
8640       ;;
8641
8642     freebsd1*)
8643       ld_shlibs=no
8644       ;;
8645
8646     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8647     # support.  Future versions do this automatically, but an explicit c++rt0.o
8648     # does not break anything, and helps significantly (at the cost of a little
8649     # extra space).
8650     freebsd2.2*)
8651       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8652       hardcode_libdir_flag_spec='-R$libdir'
8653       hardcode_direct=yes
8654       hardcode_shlibpath_var=no
8655       ;;
8656
8657     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8658     freebsd2*)
8659       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660       hardcode_direct=yes
8661       hardcode_minus_L=yes
8662       hardcode_shlibpath_var=no
8663       ;;
8664
8665     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8666     freebsd* | kfreebsd*-gnu | dragonfly*)
8667       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8668       hardcode_libdir_flag_spec='-R$libdir'
8669       hardcode_direct=yes
8670       hardcode_shlibpath_var=no
8671       ;;
8672
8673     hpux9*)
8674       if test "$GCC" = yes; then
8675         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8676       else
8677         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8678       fi
8679       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8680       hardcode_libdir_separator=:
8681       hardcode_direct=yes
8682
8683       # hardcode_minus_L: Not really in the search PATH,
8684       # but as the default location of the library.
8685       hardcode_minus_L=yes
8686       export_dynamic_flag_spec='${wl}-E'
8687       ;;
8688
8689     hpux10* | hpux11*)
8690       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8691         case $host_cpu in
8692         hppa*64*|ia64*)
8693           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8694           ;;
8695         *)
8696           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697           ;;
8698         esac
8699       else
8700         case $host_cpu in
8701         hppa*64*|ia64*)
8702           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8703           ;;
8704         *)
8705           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8706           ;;
8707         esac
8708       fi
8709       if test "$with_gnu_ld" = no; then
8710         case $host_cpu in
8711         hppa*64*)
8712           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713           hardcode_libdir_flag_spec_ld='+b $libdir'
8714           hardcode_libdir_separator=:
8715           hardcode_direct=no
8716           hardcode_shlibpath_var=no
8717           ;;
8718         ia64*)
8719           hardcode_libdir_flag_spec='-L$libdir'
8720           hardcode_direct=no
8721           hardcode_shlibpath_var=no
8722
8723           # hardcode_minus_L: Not really in the search PATH,
8724           # but as the default location of the library.
8725           hardcode_minus_L=yes
8726           ;;
8727         *)
8728           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729           hardcode_libdir_separator=:
8730           hardcode_direct=yes
8731           export_dynamic_flag_spec='${wl}-E'
8732
8733           # hardcode_minus_L: Not really in the search PATH,
8734           # but as the default location of the library.
8735           hardcode_minus_L=yes
8736           ;;
8737         esac
8738       fi
8739       ;;
8740
8741     irix5* | irix6* | nonstopux*)
8742       if test "$GCC" = yes; then
8743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8744       else
8745         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8746         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8747       fi
8748       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749       hardcode_libdir_separator=:
8750       link_all_deplibs=yes
8751       ;;
8752
8753     netbsd*)
8754       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8756       else
8757         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8758       fi
8759       hardcode_libdir_flag_spec='-R$libdir'
8760       hardcode_direct=yes
8761       hardcode_shlibpath_var=no
8762       ;;
8763
8764     newsos6)
8765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766       hardcode_direct=yes
8767       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768       hardcode_libdir_separator=:
8769       hardcode_shlibpath_var=no
8770       ;;
8771
8772     openbsd*)
8773       hardcode_direct=yes
8774       hardcode_shlibpath_var=no
8775       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8776         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8778         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8779         export_dynamic_flag_spec='${wl}-E'
8780       else
8781        case $host_os in
8782          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8783            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784            hardcode_libdir_flag_spec='-R$libdir'
8785            ;;
8786          *)
8787            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8788            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8789            ;;
8790        esac
8791       fi
8792       ;;
8793
8794     os2*)
8795       hardcode_libdir_flag_spec='-L$libdir'
8796       hardcode_minus_L=yes
8797       allow_undefined_flag=unsupported
8798       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8799       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8800       ;;
8801
8802     osf3*)
8803       if test "$GCC" = yes; then
8804         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8806       else
8807         allow_undefined_flag=' -expect_unresolved \*'
8808         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8809       fi
8810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811       hardcode_libdir_separator=:
8812       ;;
8813
8814     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8815       if test "$GCC" = yes; then
8816         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8817         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8818         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819       else
8820         allow_undefined_flag=' -expect_unresolved \*'
8821         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8822         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8823         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8824
8825         # Both c and cxx compiler support -rpath directly
8826         hardcode_libdir_flag_spec='-rpath $libdir'
8827       fi
8828       hardcode_libdir_separator=:
8829       ;;
8830
8831     sco3.2v5*)
8832       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833       hardcode_shlibpath_var=no
8834       export_dynamic_flag_spec='${wl}-Bexport'
8835       runpath_var=LD_RUN_PATH
8836       hardcode_runpath_var=yes
8837       ;;
8838
8839     solaris*)
8840       no_undefined_flag=' -z text'
8841       if test "$GCC" = yes; then
8842         wlarc='${wl}'
8843         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8845           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8846       else
8847         wlarc=''
8848         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8851       fi
8852       hardcode_libdir_flag_spec='-R$libdir'
8853       hardcode_shlibpath_var=no
8854       case $host_os in
8855       solaris2.[0-5] | solaris2.[0-5].*) ;;
8856       *)
8857         # The compiler driver will combine linker options so we
8858         # cannot just pass the convience library names through
8859         # without $wl, iff we do not link with $LD.
8860         # Luckily, gcc supports the same syntax we need for Sun Studio.
8861         # Supported since Solaris 2.6 (maybe 2.5.1?)
8862         case $wlarc in
8863         '')
8864           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8865         *)
8866           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8867         esac ;;
8868       esac
8869       link_all_deplibs=yes
8870       ;;
8871
8872     sunos4*)
8873       if test "x$host_vendor" = xsequent; then
8874         # Use $CC to link under sequent, because it throws in some extra .o
8875         # files that make .init and .fini sections work.
8876         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8877       else
8878         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8879       fi
8880       hardcode_libdir_flag_spec='-L$libdir'
8881       hardcode_direct=yes
8882       hardcode_minus_L=yes
8883       hardcode_shlibpath_var=no
8884       ;;
8885
8886     sysv4)
8887       case $host_vendor in
8888         sni)
8889           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890           hardcode_direct=yes # is this really true???
8891         ;;
8892         siemens)
8893           ## LD is ld it makes a PLAMLIB
8894           ## CC just makes a GrossModule.
8895           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8896           reload_cmds='$CC -r -o $output$reload_objs'
8897           hardcode_direct=no
8898         ;;
8899         motorola)
8900           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8902         ;;
8903       esac
8904       runpath_var='LD_RUN_PATH'
8905       hardcode_shlibpath_var=no
8906       ;;
8907
8908     sysv4.3*)
8909       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8910       hardcode_shlibpath_var=no
8911       export_dynamic_flag_spec='-Bexport'
8912       ;;
8913
8914     sysv4*MP*)
8915       if test -d /usr/nec; then
8916         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917         hardcode_shlibpath_var=no
8918         runpath_var=LD_RUN_PATH
8919         hardcode_runpath_var=yes
8920         ld_shlibs=yes
8921       fi
8922       ;;
8923
8924     sysv4.2uw2*)
8925       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8926       hardcode_direct=yes
8927       hardcode_minus_L=no
8928       hardcode_shlibpath_var=no
8929       hardcode_runpath_var=yes
8930       runpath_var=LD_RUN_PATH
8931       ;;
8932
8933    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8934       no_undefined_flag='${wl}-z ${wl}text'
8935       if test "$GCC" = yes; then
8936         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8937       else
8938         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8939       fi
8940       runpath_var='LD_RUN_PATH'
8941       hardcode_shlibpath_var=no
8942       ;;
8943
8944     sysv5*)
8945       no_undefined_flag=' -z text'
8946       # $CC -shared without GNU ld will not create a library from C++
8947       # object files and a static libstdc++, better avoid it by now
8948       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8950                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8951       hardcode_libdir_flag_spec=
8952       hardcode_shlibpath_var=no
8953       runpath_var='LD_RUN_PATH'
8954       ;;
8955
8956     uts4*)
8957       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958       hardcode_libdir_flag_spec='-L$libdir'
8959       hardcode_shlibpath_var=no
8960       ;;
8961
8962     *)
8963       ld_shlibs=no
8964       ;;
8965     esac
8966   fi
8967
8968 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8969 echo "${ECHO_T}$ld_shlibs" >&6
8970 test "$ld_shlibs" = no && can_build_shared=no
8971
8972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8973 if test "$GCC" = yes; then
8974   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8975 fi
8976
8977 #
8978 # Do we need to explicitly link libc?
8979 #
8980 case "x$archive_cmds_need_lc" in
8981 x|xyes)
8982   # Assume -lc should be added
8983   archive_cmds_need_lc=yes
8984
8985   if test "$enable_shared" = yes && test "$GCC" = yes; then
8986     case $archive_cmds in
8987     *'~'*)
8988       # FIXME: we may have to deal with multi-command sequences.
8989       ;;
8990     '$CC '*)
8991       # Test whether the compiler implicitly links with -lc since on some
8992       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8993       # to ld, don't add -lc before -lgcc.
8994       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8996       $rm conftest*
8997       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8998
8999       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000   (eval $ac_compile) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } 2>conftest.err; then
9004         soname=conftest
9005         lib=conftest
9006         libobjs=conftest.$ac_objext
9007         deplibs=
9008         wl=$lt_prog_compiler_wl
9009         compiler_flags=-v
9010         linker_flags=-v
9011         verstring=
9012         output_objdir=.
9013         libname=conftest
9014         lt_save_allow_undefined_flag=$allow_undefined_flag
9015         allow_undefined_flag=
9016         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }
9021         then
9022           archive_cmds_need_lc=no
9023         else
9024           archive_cmds_need_lc=yes
9025         fi
9026         allow_undefined_flag=$lt_save_allow_undefined_flag
9027       else
9028         cat conftest.err 1>&5
9029       fi
9030       $rm conftest*
9031       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9033       ;;
9034     esac
9035   fi
9036   ;;
9037 esac
9038
9039 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9041 library_names_spec=
9042 libname_spec='lib$name'
9043 soname_spec=
9044 shrext_cmds=".so"
9045 postinstall_cmds=
9046 postuninstall_cmds=
9047 finish_cmds=
9048 finish_eval=
9049 shlibpath_var=
9050 shlibpath_overrides_runpath=unknown
9051 version_type=none
9052 dynamic_linker="$host_os ld.so"
9053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9054 if test "$GCC" = yes; then
9055   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9056   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9057     # if the path contains ";" then we assume it to be the separator
9058     # otherwise default to the standard path separator (i.e. ":") - it is
9059     # assumed that no part of a normal pathname contains ";" but that should
9060     # okay in the real world where ";" in dirpaths is itself problematic.
9061     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9062   else
9063     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9064   fi
9065 else
9066   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9067 fi
9068 need_lib_prefix=unknown
9069 hardcode_into_libs=no
9070
9071 # when you set need_version to no, make sure it does not cause -set_version
9072 # flags to be left without arguments
9073 need_version=unknown
9074
9075 case $host_os in
9076 aix3*)
9077   version_type=linux
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9079   shlibpath_var=LIBPATH
9080
9081   # AIX 3 has no versioning support, so we append a major version to the name.
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   ;;
9084
9085 aix4* | aix5*)
9086   version_type=linux
9087   need_lib_prefix=no
9088   need_version=no
9089   hardcode_into_libs=yes
9090   if test "$host_cpu" = ia64; then
9091     # AIX 5 supports IA64
9092     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9093     shlibpath_var=LD_LIBRARY_PATH
9094   else
9095     # With GCC up to 2.95.x, collect2 would create an import file
9096     # for dependence libraries.  The import file would start with
9097     # the line `#! .'.  This would cause the generated library to
9098     # depend on `.', always an invalid library.  This was fixed in
9099     # development snapshots of GCC prior to 3.0.
9100     case $host_os in
9101       aix4 | aix4.[01] | aix4.[01].*)
9102       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9103            echo ' yes '
9104            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9105         :
9106       else
9107         can_build_shared=no
9108       fi
9109       ;;
9110     esac
9111     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9112     # soname into executable. Probably we can add versioning support to
9113     # collect2, so additional links can be useful in future.
9114     if test "$aix_use_runtimelinking" = yes; then
9115       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9116       # instead of lib<name>.a to let people know that these are not
9117       # typical AIX shared libraries.
9118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119     else
9120       # We preserve .a as extension for shared libraries through AIX4.2
9121       # and later when we are not doing run time linking.
9122       library_names_spec='${libname}${release}.a $libname.a'
9123       soname_spec='${libname}${release}${shared_ext}$major'
9124     fi
9125     shlibpath_var=LIBPATH
9126   fi
9127   ;;
9128
9129 amigaos*)
9130   library_names_spec='$libname.ixlibrary $libname.a'
9131   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9132   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9133   ;;
9134
9135 beos*)
9136   library_names_spec='${libname}${shared_ext}'
9137   dynamic_linker="$host_os ld.so"
9138   shlibpath_var=LIBRARY_PATH
9139   ;;
9140
9141 bsdi[45]*)
9142   version_type=linux
9143   need_version=no
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145   soname_spec='${libname}${release}${shared_ext}$major'
9146   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9149   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9150   # the default ld.so.conf also contains /usr/contrib/lib and
9151   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9152   # libtool to hard-code these into programs
9153   ;;
9154
9155 cygwin* | mingw* | pw32*)
9156   version_type=windows
9157   shrext_cmds=".dll"
9158   need_version=no
9159   need_lib_prefix=no
9160
9161   case $GCC,$host_os in
9162   yes,cygwin* | yes,mingw* | yes,pw32*)
9163     library_names_spec='$libname.dll.a'
9164     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9165     postinstall_cmds='base_file=`basename \${file}`~
9166       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9167       dldir=$destdir/`dirname \$dlpath`~
9168       test -d \$dldir || mkdir -p \$dldir~
9169       $install_prog $dir/$dlname \$dldir/$dlname~
9170       chmod a+x \$dldir/$dlname'
9171     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9172       dlpath=$dir/\$dldll~
9173        $rm \$dlpath'
9174     shlibpath_overrides_runpath=yes
9175
9176     case $host_os in
9177     cygwin*)
9178       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9179       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9181       ;;
9182     mingw*)
9183       # MinGW DLLs use traditional 'lib' prefix
9184       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9185       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9187         # It is most probably a Windows format PATH printed by
9188         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9189         # path with ; separators, and with drive letters. We can handle the
9190         # drive letters (cygwin fileutils understands them), so leave them,
9191         # especially as we might pass files found there to a mingw objdump,
9192         # which wouldn't understand a cygwinified path. Ahh.
9193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9194       else
9195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9196       fi
9197       ;;
9198     pw32*)
9199       # pw32 DLLs use 'pw' prefix rather than 'lib'
9200       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201       ;;
9202     esac
9203     ;;
9204
9205   *)
9206     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9207     ;;
9208   esac
9209   dynamic_linker='Win32 ld.exe'
9210   # FIXME: first we should search . and the directory the executable is in
9211   shlibpath_var=PATH
9212   ;;
9213
9214 darwin* | rhapsody*)
9215   dynamic_linker="$host_os dyld"
9216   version_type=darwin
9217   need_lib_prefix=no
9218   need_version=no
9219   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9220   soname_spec='${libname}${release}${major}$shared_ext'
9221   shlibpath_overrides_runpath=yes
9222   shlibpath_var=DYLD_LIBRARY_PATH
9223   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9224   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9225   if test "$GCC" = yes; then
9226     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9227   else
9228     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9229   fi
9230   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9231   ;;
9232
9233 dgux*)
9234   version_type=linux
9235   need_lib_prefix=no
9236   need_version=no
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9238   soname_spec='${libname}${release}${shared_ext}$major'
9239   shlibpath_var=LD_LIBRARY_PATH
9240   ;;
9241
9242 freebsd1*)
9243   dynamic_linker=no
9244   ;;
9245
9246 kfreebsd*-gnu)
9247   version_type=linux
9248   need_lib_prefix=no
9249   need_version=no
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   shlibpath_var=LD_LIBRARY_PATH
9253   shlibpath_overrides_runpath=no
9254   hardcode_into_libs=yes
9255   dynamic_linker='GNU ld.so'
9256   ;;
9257
9258 freebsd* | dragonfly*)
9259   # DragonFly does not have aout.  When/if they implement a new
9260   # versioning mechanism, adjust this.
9261   if test -x /usr/bin/objformat; then
9262     objformat=`/usr/bin/objformat`
9263   else
9264     case $host_os in
9265     freebsd[123]*) objformat=aout ;;
9266     *) objformat=elf ;;
9267     esac
9268   fi
9269   version_type=freebsd-$objformat
9270   case $version_type in
9271     freebsd-elf*)
9272       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9273       need_version=no
9274       need_lib_prefix=no
9275       ;;
9276     freebsd-*)
9277       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9278       need_version=yes
9279       ;;
9280   esac
9281   shlibpath_var=LD_LIBRARY_PATH
9282   case $host_os in
9283   freebsd2*)
9284     shlibpath_overrides_runpath=yes
9285     ;;
9286   freebsd3.[01]* | freebsdelf3.[01]*)
9287     shlibpath_overrides_runpath=yes
9288     hardcode_into_libs=yes
9289     ;;
9290   *) # from 3.2 on
9291     shlibpath_overrides_runpath=no
9292     hardcode_into_libs=yes
9293     ;;
9294   esac
9295   ;;
9296
9297 gnu*)
9298   version_type=linux
9299   need_lib_prefix=no
9300   need_version=no
9301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9302   soname_spec='${libname}${release}${shared_ext}$major'
9303   shlibpath_var=LD_LIBRARY_PATH
9304   hardcode_into_libs=yes
9305   ;;
9306
9307 hpux9* | hpux10* | hpux11*)
9308   # Give a soname corresponding to the major version so that dld.sl refuses to
9309   # link against other versions.
9310   version_type=sunos
9311   need_lib_prefix=no
9312   need_version=no
9313   case $host_cpu in
9314   ia64*)
9315     shrext_cmds='.so'
9316     hardcode_into_libs=yes
9317     dynamic_linker="$host_os dld.so"
9318     shlibpath_var=LD_LIBRARY_PATH
9319     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321     soname_spec='${libname}${release}${shared_ext}$major'
9322     if test "X$HPUX_IA64_MODE" = X32; then
9323       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9324     else
9325       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9326     fi
9327     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9328     ;;
9329    hppa*64*)
9330      shrext_cmds='.sl'
9331      hardcode_into_libs=yes
9332      dynamic_linker="$host_os dld.sl"
9333      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9334      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336      soname_spec='${libname}${release}${shared_ext}$major'
9337      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9338      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9339      ;;
9340    *)
9341     shrext_cmds='.sl'
9342     dynamic_linker="$host_os dld.sl"
9343     shlibpath_var=SHLIB_PATH
9344     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346     soname_spec='${libname}${release}${shared_ext}$major'
9347     ;;
9348   esac
9349   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9350   postinstall_cmds='chmod 555 $lib'
9351   ;;
9352
9353 irix5* | irix6* | nonstopux*)
9354   case $host_os in
9355     nonstopux*) version_type=nonstopux ;;
9356     *)
9357         if test "$lt_cv_prog_gnu_ld" = yes; then
9358                 version_type=linux
9359         else
9360                 version_type=irix
9361         fi ;;
9362   esac
9363   need_lib_prefix=no
9364   need_version=no
9365   soname_spec='${libname}${release}${shared_ext}$major'
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9367   case $host_os in
9368   irix5* | nonstopux*)
9369     libsuff= shlibsuff=
9370     ;;
9371   *)
9372     case $LD in # libtool.m4 will add one of these switches to LD
9373     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9374       libsuff= shlibsuff= libmagic=32-bit;;
9375     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9376       libsuff=32 shlibsuff=N32 libmagic=N32;;
9377     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9378       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9379     *) libsuff= shlibsuff= libmagic=never-match;;
9380     esac
9381     ;;
9382   esac
9383   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9384   shlibpath_overrides_runpath=no
9385   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9386   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9387   hardcode_into_libs=yes
9388   ;;
9389
9390 # No shared lib support for Linux oldld, aout, or coff.
9391 linux*oldld* | linux*aout* | linux*coff*)
9392   dynamic_linker=no
9393   ;;
9394
9395 # This must be Linux ELF.
9396 linux*)
9397   version_type=linux
9398   need_lib_prefix=no
9399   need_version=no
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401   soname_spec='${libname}${release}${shared_ext}$major'
9402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   shlibpath_overrides_runpath=no
9405   # This implies no fast_install, which is unacceptable.
9406   # Some rework will be needed to allow for fast_install
9407   # before this can be enabled.
9408   hardcode_into_libs=yes
9409
9410   # Append ld.so.conf contents to the search path
9411   if test -f /etc/ld.so.conf; then
9412     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9413     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9414   fi
9415
9416   # We used to test for /lib/ld.so.1 and disable shared libraries on
9417   # powerpc, because MkLinux only supported shared libraries with the
9418   # GNU dynamic linker.  Since this was broken with cross compilers,
9419   # most powerpc-linux boxes support dynamic linking these days and
9420   # people can always --disable-shared, the test was removed, and we
9421   # assume the GNU/Linux dynamic linker is in use.
9422   dynamic_linker='GNU/Linux ld.so'
9423   ;;
9424
9425 knetbsd*-gnu)
9426   version_type=linux
9427   need_lib_prefix=no
9428   need_version=no
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   shlibpath_overrides_runpath=no
9433   hardcode_into_libs=yes
9434   dynamic_linker='GNU ld.so'
9435   ;;
9436
9437 netbsd*)
9438   version_type=sunos
9439   need_lib_prefix=no
9440   need_version=no
9441   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444     dynamic_linker='NetBSD (a.out) ld.so'
9445   else
9446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447     soname_spec='${libname}${release}${shared_ext}$major'
9448     dynamic_linker='NetBSD ld.elf_so'
9449   fi
9450   shlibpath_var=LD_LIBRARY_PATH
9451   shlibpath_overrides_runpath=yes
9452   hardcode_into_libs=yes
9453   ;;
9454
9455 newsos6)
9456   version_type=linux
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=yes
9460   ;;
9461
9462 nto-qnx*)
9463   version_type=linux
9464   need_lib_prefix=no
9465   need_version=no
9466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467   soname_spec='${libname}${release}${shared_ext}$major'
9468   shlibpath_var=LD_LIBRARY_PATH
9469   shlibpath_overrides_runpath=yes
9470   ;;
9471
9472 openbsd*)
9473   version_type=sunos
9474   need_lib_prefix=no
9475   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9476   case $host_os in
9477     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9478     *)                         need_version=no  ;;
9479   esac
9480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9482   shlibpath_var=LD_LIBRARY_PATH
9483   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9484     case $host_os in
9485       openbsd2.[89] | openbsd2.[89].*)
9486         shlibpath_overrides_runpath=no
9487         ;;
9488       *)
9489         shlibpath_overrides_runpath=yes
9490         ;;
9491       esac
9492   else
9493     shlibpath_overrides_runpath=yes
9494   fi
9495   ;;
9496
9497 os2*)
9498   libname_spec='$name'
9499   shrext_cmds=".dll"
9500   need_lib_prefix=no
9501   library_names_spec='$libname${shared_ext} $libname.a'
9502   dynamic_linker='OS/2 ld.exe'
9503   shlibpath_var=LIBPATH
9504   ;;
9505
9506 osf3* | osf4* | osf5*)
9507   version_type=osf
9508   need_lib_prefix=no
9509   need_version=no
9510   soname_spec='${libname}${release}${shared_ext}$major'
9511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9514   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9515   ;;
9516
9517 sco3.2v5*)
9518   version_type=osf
9519   soname_spec='${libname}${release}${shared_ext}$major'
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521   shlibpath_var=LD_LIBRARY_PATH
9522   ;;
9523
9524 solaris*)
9525   version_type=linux
9526   need_lib_prefix=no
9527   need_version=no
9528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529   soname_spec='${libname}${release}${shared_ext}$major'
9530   shlibpath_var=LD_LIBRARY_PATH
9531   shlibpath_overrides_runpath=yes
9532   hardcode_into_libs=yes
9533   # ldd complains unless libraries are executable
9534   postinstall_cmds='chmod +x $lib'
9535   ;;
9536
9537 sunos4*)
9538   version_type=sunos
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9540   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9541   shlibpath_var=LD_LIBRARY_PATH
9542   shlibpath_overrides_runpath=yes
9543   if test "$with_gnu_ld" = yes; then
9544     need_lib_prefix=no
9545   fi
9546   need_version=yes
9547   ;;
9548
9549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9550   version_type=linux
9551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552   soname_spec='${libname}${release}${shared_ext}$major'
9553   shlibpath_var=LD_LIBRARY_PATH
9554   case $host_vendor in
9555     sni)
9556       shlibpath_overrides_runpath=no
9557       need_lib_prefix=no
9558       export_dynamic_flag_spec='${wl}-Blargedynsym'
9559       runpath_var=LD_RUN_PATH
9560       ;;
9561     siemens)
9562       need_lib_prefix=no
9563       ;;
9564     motorola)
9565       need_lib_prefix=no
9566       need_version=no
9567       shlibpath_overrides_runpath=no
9568       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9569       ;;
9570   esac
9571   ;;
9572
9573 sysv4*MP*)
9574   if test -d /usr/nec ;then
9575     version_type=linux
9576     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9577     soname_spec='$libname${shared_ext}.$major'
9578     shlibpath_var=LD_LIBRARY_PATH
9579   fi
9580   ;;
9581
9582 uts4*)
9583   version_type=linux
9584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585   soname_spec='${libname}${release}${shared_ext}$major'
9586   shlibpath_var=LD_LIBRARY_PATH
9587   ;;
9588
9589 *)
9590   dynamic_linker=no
9591   ;;
9592 esac
9593 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9594 echo "${ECHO_T}$dynamic_linker" >&6
9595 test "$dynamic_linker" = no && can_build_shared=no
9596
9597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9599 hardcode_action=
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601    test -n "$runpath_var" || \
9602    test "X$hardcode_automatic" = "Xyes" ; then
9603
9604   # We can hardcode non-existant directories.
9605   if test "$hardcode_direct" != no &&
9606      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607      # have to relink, otherwise we might link with an installed library
9608      # when we should be linking with a yet-to-be-installed one
9609      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610      test "$hardcode_minus_L" != no; then
9611     # Linking always hardcodes the temporary library directory.
9612     hardcode_action=relink
9613   else
9614     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615     hardcode_action=immediate
9616   fi
9617 else
9618   # We cannot hardcode anything, or else we can only hardcode existing
9619   # directories.
9620   hardcode_action=unsupported
9621 fi
9622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9623 echo "${ECHO_T}$hardcode_action" >&6
9624
9625 if test "$hardcode_action" = relink; then
9626   # Fast installation is not supported
9627   enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629      test "$enable_shared" = no; then
9630   # Fast installation is not necessary
9631   enable_fast_install=needless
9632 fi
9633
9634 striplib=
9635 old_striplib=
9636 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641   echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6
9643 else
9644 # FIXME - insert some real tests, host_os isn't really good enough
9645   case $host_os in
9646    darwin*)
9647        if test -n "$STRIP" ; then
9648          striplib="$STRIP -x"
9649          echo "$as_me:$LINENO: result: yes" >&5
9650 echo "${ECHO_T}yes" >&6
9651        else
9652   echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6
9654 fi
9655        ;;
9656    *)
9657   echo "$as_me:$LINENO: result: no" >&5
9658 echo "${ECHO_T}no" >&6
9659     ;;
9660   esac
9661 fi
9662
9663 if test "x$enable_dlopen" != xyes; then
9664   enable_dlopen=unknown
9665   enable_dlopen_self=unknown
9666   enable_dlopen_self_static=unknown
9667 else
9668   lt_cv_dlopen=no
9669   lt_cv_dlopen_libs=
9670
9671   case $host_os in
9672   beos*)
9673     lt_cv_dlopen="load_add_on"
9674     lt_cv_dlopen_libs=
9675     lt_cv_dlopen_self=yes
9676     ;;
9677
9678   mingw* | pw32*)
9679     lt_cv_dlopen="LoadLibrary"
9680     lt_cv_dlopen_libs=
9681    ;;
9682
9683   cygwin*)
9684     lt_cv_dlopen="dlopen"
9685     lt_cv_dlopen_libs=
9686    ;;
9687
9688   darwin*)
9689   # if libdl is installed we need to link against it
9690     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   ac_check_lib_save_LIBS=$LIBS
9696 LIBS="-ldl  $LIBS"
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703
9704 /* Override any gcc2 internal prototype to avoid an error.  */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 /* We use char because int might match the return type of a gcc2
9709    builtin and then its argument prototype would still apply.  */
9710 char dlopen ();
9711 int
9712 main ()
9713 {
9714 dlopen ();
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721   (eval $ac_link) 2>conftest.er1
9722   ac_status=$?
9723   grep -v '^ *+' conftest.er1 >conftest.err
9724   rm -f conftest.er1
9725   cat conftest.err >&5
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); } &&
9728          { ac_try='test -z "$ac_c_werror_flag"
9729                          || test ! -s conftest.err'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; } &&
9735          { ac_try='test -s conftest$ac_exeext'
9736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737   (eval $ac_try) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); }; }; then
9741   ac_cv_lib_dl_dlopen=yes
9742 else
9743   echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 ac_cv_lib_dl_dlopen=no
9747 fi
9748 rm -f conftest.err conftest.$ac_objext \
9749       conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9751 fi
9752 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9753 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9754 if test $ac_cv_lib_dl_dlopen = yes; then
9755   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9756 else
9757
9758     lt_cv_dlopen="dyld"
9759     lt_cv_dlopen_libs=
9760     lt_cv_dlopen_self=yes
9761
9762 fi
9763
9764    ;;
9765
9766   *)
9767     echo "$as_me:$LINENO: checking for shl_load" >&5
9768 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9769 if test "${ac_cv_func_shl_load+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9780 #define shl_load innocuous_shl_load
9781
9782 /* System header to define __stub macros and hopefully few prototypes,
9783     which can conflict with char shl_load (); below.
9784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785     <limits.h> exists even on freestanding compilers.  */
9786
9787 #ifdef __STDC__
9788 # include <limits.h>
9789 #else
9790 # include <assert.h>
9791 #endif
9792
9793 #undef shl_load
9794
9795 /* Override any gcc2 internal prototype to avoid an error.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 {
9799 #endif
9800 /* We use char because int might match the return type of a gcc2
9801    builtin and then its argument prototype would still apply.  */
9802 char shl_load ();
9803 /* The GNU C library defines this for functions which it implements
9804     to always fail with ENOSYS.  Some functions are actually named
9805     something starting with __ and the normal name is an alias.  */
9806 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9807 choke me
9808 #else
9809 char (*f) () = shl_load;
9810 #endif
9811 #ifdef __cplusplus
9812 }
9813 #endif
9814
9815 int
9816 main ()
9817 {
9818 return f != shl_load;
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825   (eval $ac_link) 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag"
9833                          || test ! -s conftest.err'
9834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835   (eval $ac_try) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; } &&
9839          { ac_try='test -s conftest$ac_exeext'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   ac_cv_func_shl_load=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 ac_cv_func_shl_load=no
9851 fi
9852 rm -f conftest.err conftest.$ac_objext \
9853       conftest$ac_exeext conftest.$ac_ext
9854 fi
9855 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9857 if test $ac_cv_func_shl_load = yes; then
9858   lt_cv_dlopen="shl_load"
9859 else
9860   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-ldld  $LIBS"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873
9874 /* Override any gcc2 internal prototype to avoid an error.  */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879    builtin and then its argument prototype would still apply.  */
9880 char shl_load ();
9881 int
9882 main ()
9883 {
9884 shl_load ();
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891   (eval $ac_link) 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } &&
9898          { ac_try='test -z "$ac_c_werror_flag"
9899                          || test ! -s conftest.err'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; } &&
9905          { ac_try='test -s conftest$ac_exeext'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; }; then
9911   ac_cv_lib_dld_shl_load=yes
9912 else
9913   echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 ac_cv_lib_dld_shl_load=no
9917 fi
9918 rm -f conftest.err conftest.$ac_objext \
9919       conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9921 fi
9922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9923 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9924 if test $ac_cv_lib_dld_shl_load = yes; then
9925   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9926 else
9927   echo "$as_me:$LINENO: checking for dlopen" >&5
9928 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9929 if test "${ac_cv_func_dlopen+set}" = set; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9940 #define dlopen innocuous_dlopen
9941
9942 /* System header to define __stub macros and hopefully few prototypes,
9943     which can conflict with char dlopen (); below.
9944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945     <limits.h> exists even on freestanding compilers.  */
9946
9947 #ifdef __STDC__
9948 # include <limits.h>
9949 #else
9950 # include <assert.h>
9951 #endif
9952
9953 #undef dlopen
9954
9955 /* Override any gcc2 internal prototype to avoid an error.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 {
9959 #endif
9960 /* We use char because int might match the return type of a gcc2
9961    builtin and then its argument prototype would still apply.  */
9962 char dlopen ();
9963 /* The GNU C library defines this for functions which it implements
9964     to always fail with ENOSYS.  Some functions are actually named
9965     something starting with __ and the normal name is an alias.  */
9966 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9967 choke me
9968 #else
9969 char (*f) () = dlopen;
9970 #endif
9971 #ifdef __cplusplus
9972 }
9973 #endif
9974
9975 int
9976 main ()
9977 {
9978 return f != dlopen;
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985   (eval $ac_link) 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -z "$ac_c_werror_flag"
9993                          || test ! -s conftest.err'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; } &&
9999          { ac_try='test -s conftest$ac_exeext'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_func_dlopen=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_cv_func_dlopen=no
10011 fi
10012 rm -f conftest.err conftest.$ac_objext \
10013       conftest$ac_exeext conftest.$ac_ext
10014 fi
10015 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10016 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10017 if test $ac_cv_func_dlopen = yes; then
10018   lt_cv_dlopen="dlopen"
10019 else
10020   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldl  $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 /* Override any gcc2 internal prototype to avoid an error.  */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 /* We use char because int might match the return type of a gcc2
10039    builtin and then its argument prototype would still apply.  */
10040 char dlopen ();
10041 int
10042 main ()
10043 {
10044 dlopen ();
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051   (eval $ac_link) 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag"
10059                          || test ! -s conftest.err'
10060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061   (eval $ac_try) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); }; } &&
10065          { ac_try='test -s conftest$ac_exeext'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   ac_cv_lib_dl_dlopen=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_cv_lib_dl_dlopen=no
10077 fi
10078 rm -f conftest.err conftest.$ac_objext \
10079       conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10081 fi
10082 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10084 if test $ac_cv_lib_dl_dlopen = yes; then
10085   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10086 else
10087   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lsvld  $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100
10101 /* Override any gcc2 internal prototype to avoid an error.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 /* We use char because int might match the return type of a gcc2
10106    builtin and then its argument prototype would still apply.  */
10107 char dlopen ();
10108 int
10109 main ()
10110 {
10111 dlopen ();
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118   (eval $ac_link) 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } &&
10125          { ac_try='test -z "$ac_c_werror_flag"
10126                          || test ! -s conftest.err'
10127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128   (eval $ac_try) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; } &&
10132          { ac_try='test -s conftest$ac_exeext'
10133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134   (eval $ac_try) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); }; }; then
10138   ac_cv_lib_svld_dlopen=yes
10139 else
10140   echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143 ac_cv_lib_svld_dlopen=no
10144 fi
10145 rm -f conftest.err conftest.$ac_objext \
10146       conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10148 fi
10149 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10150 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10151 if test $ac_cv_lib_svld_dlopen = yes; then
10152   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10153 else
10154   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10155 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10156 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   ac_check_lib_save_LIBS=$LIBS
10160 LIBS="-ldld  $LIBS"
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h.  */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h.  */
10167
10168 /* Override any gcc2 internal prototype to avoid an error.  */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 /* We use char because int might match the return type of a gcc2
10173    builtin and then its argument prototype would still apply.  */
10174 char dld_link ();
10175 int
10176 main ()
10177 {
10178 dld_link ();
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185   (eval $ac_link) 2>conftest.er1
10186   ac_status=$?
10187   grep -v '^ *+' conftest.er1 >conftest.err
10188   rm -f conftest.er1
10189   cat conftest.err >&5
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } &&
10192          { ac_try='test -z "$ac_c_werror_flag"
10193                          || test ! -s conftest.err'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; } &&
10199          { ac_try='test -s conftest$ac_exeext'
10200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201   (eval $ac_try) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   ac_cv_lib_dld_dld_link=yes
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 ac_cv_lib_dld_dld_link=no
10211 fi
10212 rm -f conftest.err conftest.$ac_objext \
10213       conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10218 if test $ac_cv_lib_dld_dld_link = yes; then
10219   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10220 fi
10221
10222
10223 fi
10224
10225
10226 fi
10227
10228
10229 fi
10230
10231
10232 fi
10233
10234
10235 fi
10236
10237     ;;
10238   esac
10239
10240   if test "x$lt_cv_dlopen" != xno; then
10241     enable_dlopen=yes
10242   else
10243     enable_dlopen=no
10244   fi
10245
10246   case $lt_cv_dlopen in
10247   dlopen)
10248     save_CPPFLAGS="$CPPFLAGS"
10249     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10250
10251     save_LDFLAGS="$LDFLAGS"
10252     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10253
10254     save_LIBS="$LIBS"
10255     LIBS="$lt_cv_dlopen_libs $LIBS"
10256
10257     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10258 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10259 if test "${lt_cv_dlopen_self+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262           if test "$cross_compiling" = yes; then :
10263   lt_cv_dlopen_self=cross
10264 else
10265   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10266   lt_status=$lt_dlunknown
10267   cat > conftest.$ac_ext <<EOF
10268 #line 10268 "configure"
10269 #include "confdefs.h"
10270
10271 #if HAVE_DLFCN_H
10272 #include <dlfcn.h>
10273 #endif
10274
10275 #include <stdio.h>
10276
10277 #ifdef RTLD_GLOBAL
10278 #  define LT_DLGLOBAL           RTLD_GLOBAL
10279 #else
10280 #  ifdef DL_GLOBAL
10281 #    define LT_DLGLOBAL         DL_GLOBAL
10282 #  else
10283 #    define LT_DLGLOBAL         0
10284 #  endif
10285 #endif
10286
10287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10288    find out it does not work in some platform. */
10289 #ifndef LT_DLLAZY_OR_NOW
10290 #  ifdef RTLD_LAZY
10291 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10292 #  else
10293 #    ifdef DL_LAZY
10294 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10295 #    else
10296 #      ifdef RTLD_NOW
10297 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10298 #      else
10299 #        ifdef DL_NOW
10300 #          define LT_DLLAZY_OR_NOW      DL_NOW
10301 #        else
10302 #          define LT_DLLAZY_OR_NOW      0
10303 #        endif
10304 #      endif
10305 #    endif
10306 #  endif
10307 #endif
10308
10309 #ifdef __cplusplus
10310 extern "C" void exit (int);
10311 #endif
10312
10313 void fnord() { int i=42;}
10314 int main ()
10315 {
10316   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10317   int status = $lt_dlunknown;
10318
10319   if (self)
10320     {
10321       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10322       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10323       /* dlclose (self); */
10324     }
10325
10326     exit (status);
10327 }
10328 EOF
10329   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330   (eval $ac_link) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10334     (./conftest; exit; ) >&5 2>/dev/null
10335     lt_status=$?
10336     case x$lt_status in
10337       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10338       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10339       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10340     esac
10341   else :
10342     # compilation failed
10343     lt_cv_dlopen_self=no
10344   fi
10345 fi
10346 rm -fr conftest*
10347
10348
10349 fi
10350 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10351 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10352
10353     if test "x$lt_cv_dlopen_self" = xyes; then
10354       LDFLAGS="$LDFLAGS $link_static_flag"
10355       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10356 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10357 if test "${lt_cv_dlopen_self_static+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360           if test "$cross_compiling" = yes; then :
10361   lt_cv_dlopen_self_static=cross
10362 else
10363   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10364   lt_status=$lt_dlunknown
10365   cat > conftest.$ac_ext <<EOF
10366 #line 10366 "configure"
10367 #include "confdefs.h"
10368
10369 #if HAVE_DLFCN_H
10370 #include <dlfcn.h>
10371 #endif
10372
10373 #include <stdio.h>
10374
10375 #ifdef RTLD_GLOBAL
10376 #  define LT_DLGLOBAL           RTLD_GLOBAL
10377 #else
10378 #  ifdef DL_GLOBAL
10379 #    define LT_DLGLOBAL         DL_GLOBAL
10380 #  else
10381 #    define LT_DLGLOBAL         0
10382 #  endif
10383 #endif
10384
10385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10386    find out it does not work in some platform. */
10387 #ifndef LT_DLLAZY_OR_NOW
10388 #  ifdef RTLD_LAZY
10389 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10390 #  else
10391 #    ifdef DL_LAZY
10392 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10393 #    else
10394 #      ifdef RTLD_NOW
10395 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10396 #      else
10397 #        ifdef DL_NOW
10398 #          define LT_DLLAZY_OR_NOW      DL_NOW
10399 #        else
10400 #          define LT_DLLAZY_OR_NOW      0
10401 #        endif
10402 #      endif
10403 #    endif
10404 #  endif
10405 #endif
10406
10407 #ifdef __cplusplus
10408 extern "C" void exit (int);
10409 #endif
10410
10411 void fnord() { int i=42;}
10412 int main ()
10413 {
10414   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10415   int status = $lt_dlunknown;
10416
10417   if (self)
10418     {
10419       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10420       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10421       /* dlclose (self); */
10422     }
10423
10424     exit (status);
10425 }
10426 EOF
10427   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428   (eval $ac_link) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432     (./conftest; exit; ) >&5 2>/dev/null
10433     lt_status=$?
10434     case x$lt_status in
10435       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10436       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10437       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10438     esac
10439   else :
10440     # compilation failed
10441     lt_cv_dlopen_self_static=no
10442   fi
10443 fi
10444 rm -fr conftest*
10445
10446
10447 fi
10448 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10449 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10450     fi
10451
10452     CPPFLAGS="$save_CPPFLAGS"
10453     LDFLAGS="$save_LDFLAGS"
10454     LIBS="$save_LIBS"
10455     ;;
10456   esac
10457
10458   case $lt_cv_dlopen_self in
10459   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10460   *) enable_dlopen_self=unknown ;;
10461   esac
10462
10463   case $lt_cv_dlopen_self_static in
10464   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10465   *) enable_dlopen_self_static=unknown ;;
10466   esac
10467 fi
10468
10469
10470 # Report which librarie types wil actually be built
10471 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10472 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10473 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10474 echo "${ECHO_T}$can_build_shared" >&6
10475
10476 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10477 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10478 test "$can_build_shared" = "no" && enable_shared=no
10479
10480 # On AIX, shared libraries and static libraries use the same namespace, and
10481 # are all built from PIC.
10482 case $host_os in
10483 aix3*)
10484   test "$enable_shared" = yes && enable_static=no
10485   if test -n "$RANLIB"; then
10486     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10487     postinstall_cmds='$RANLIB $lib'
10488   fi
10489   ;;
10490
10491 aix4* | aix5*)
10492   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10493     test "$enable_shared" = yes && enable_static=no
10494   fi
10495     ;;
10496 esac
10497 echo "$as_me:$LINENO: result: $enable_shared" >&5
10498 echo "${ECHO_T}$enable_shared" >&6
10499
10500 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10501 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10502 # Make sure either enable_shared or enable_static is yes.
10503 test "$enable_shared" = yes || enable_static=yes
10504 echo "$as_me:$LINENO: result: $enable_static" >&5
10505 echo "${ECHO_T}$enable_static" >&6
10506
10507 # The else clause should only fire when bootstrapping the
10508 # libtool distribution, otherwise you forgot to ship ltmain.sh
10509 # with your package, and you will get complaints that there are
10510 # no rules to generate ltmain.sh.
10511 if test -f "$ltmain"; then
10512   # See if we are running on zsh, and set the options which allow our commands through
10513   # without removal of \ escapes.
10514   if test -n "${ZSH_VERSION+set}" ; then
10515     setopt NO_GLOB_SUBST
10516   fi
10517   # Now quote all the things that may contain metacharacters while being
10518   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10519   # variables and quote the copies for generation of the libtool script.
10520   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10521     SED SHELL STRIP \
10522     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10523     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10524     deplibs_check_method reload_flag reload_cmds need_locks \
10525     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10526     lt_cv_sys_global_symbol_to_c_name_address \
10527     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10528     old_postinstall_cmds old_postuninstall_cmds \
10529     compiler \
10530     CC \
10531     LD \
10532     lt_prog_compiler_wl \
10533     lt_prog_compiler_pic \
10534     lt_prog_compiler_static \
10535     lt_prog_compiler_no_builtin_flag \
10536     export_dynamic_flag_spec \
10537     thread_safe_flag_spec \
10538     whole_archive_flag_spec \
10539     enable_shared_with_static_runtimes \
10540     old_archive_cmds \
10541     old_archive_from_new_cmds \
10542     predep_objects \
10543     postdep_objects \
10544     predeps \
10545     postdeps \
10546     compiler_lib_search_path \
10547     archive_cmds \
10548     archive_expsym_cmds \
10549     postinstall_cmds \
10550     postuninstall_cmds \
10551     old_archive_from_expsyms_cmds \
10552     allow_undefined_flag \
10553     no_undefined_flag \
10554     export_symbols_cmds \
10555     hardcode_libdir_flag_spec \
10556     hardcode_libdir_flag_spec_ld \
10557     hardcode_libdir_separator \
10558     hardcode_automatic \
10559     module_cmds \
10560     module_expsym_cmds \
10561     lt_cv_prog_compiler_c_o \
10562     exclude_expsyms \
10563     include_expsyms; do
10564
10565     case $var in
10566     old_archive_cmds | \
10567     old_archive_from_new_cmds | \
10568     archive_cmds | \
10569     archive_expsym_cmds | \
10570     module_cmds | \
10571     module_expsym_cmds | \
10572     old_archive_from_expsyms_cmds | \
10573     export_symbols_cmds | \
10574     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10575     postinstall_cmds | postuninstall_cmds | \
10576     old_postinstall_cmds | old_postuninstall_cmds | \
10577     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10578       # Double-quote double-evaled strings.
10579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10580       ;;
10581     *)
10582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10583       ;;
10584     esac
10585   done
10586
10587   case $lt_echo in
10588   *'\$0 --fallback-echo"')
10589     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10590     ;;
10591   esac
10592
10593 cfgfile="${ofile}T"
10594   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10595   $rm -f "$cfgfile"
10596   { echo "$as_me:$LINENO: creating $ofile" >&5
10597 echo "$as_me: creating $ofile" >&6;}
10598
10599   cat <<__EOF__ >> "$cfgfile"
10600 #! $SHELL
10601
10602 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10603 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10605 #
10606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10607 # Free Software Foundation, Inc.
10608 #
10609 # This file is part of GNU Libtool:
10610 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10611 #
10612 # This program is free software; you can redistribute it and/or modify
10613 # it under the terms of the GNU General Public License as published by
10614 # the Free Software Foundation; either version 2 of the License, or
10615 # (at your option) any later version.
10616 #
10617 # This program is distributed in the hope that it will be useful, but
10618 # WITHOUT ANY WARRANTY; without even the implied warranty of
10619 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10620 # General Public License for more details.
10621 #
10622 # You should have received a copy of the GNU General Public License
10623 # along with this program; if not, write to the Free Software
10624 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10625 #
10626 # As a special exception to the GNU General Public License, if you
10627 # distribute this file as part of a program that contains a
10628 # configuration script generated by Autoconf, you may include it under
10629 # the same distribution terms that you use for the rest of that program.
10630
10631 # A sed program that does not truncate output.
10632 SED=$lt_SED
10633
10634 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10635 Xsed="$SED -e 1s/^X//"
10636
10637 # The HP-UX ksh and POSIX shell print the target directory to stdout
10638 # if CDPATH is set.
10639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10640
10641 # The names of the tagged configurations supported by this script.
10642 available_tags=
10643
10644 # ### BEGIN LIBTOOL CONFIG
10645
10646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10647
10648 # Shell to use when invoking shell scripts.
10649 SHELL=$lt_SHELL
10650
10651 # Whether or not to build shared libraries.
10652 build_libtool_libs=$enable_shared
10653
10654 # Whether or not to build static libraries.
10655 build_old_libs=$enable_static
10656
10657 # Whether or not to add -lc for building shared libraries.
10658 build_libtool_need_lc=$archive_cmds_need_lc
10659
10660 # Whether or not to disallow shared libs when runtime libs are static
10661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10662
10663 # Whether or not to optimize for fast installation.
10664 fast_install=$enable_fast_install
10665
10666 # The host system.
10667 host_alias=$host_alias
10668 host=$host
10669 host_os=$host_os
10670
10671 # The build system.
10672 build_alias=$build_alias
10673 build=$build
10674 build_os=$build_os
10675
10676 # An echo program that does not interpret backslashes.
10677 echo=$lt_echo
10678
10679 # The archiver.
10680 AR=$lt_AR
10681 AR_FLAGS=$lt_AR_FLAGS
10682
10683 # A C compiler.
10684 LTCC=$lt_LTCC
10685
10686 # A language-specific compiler.
10687 CC=$lt_compiler
10688
10689 # Is the compiler the GNU C compiler?
10690 with_gcc=$GCC
10691
10692 # An ERE matcher.
10693 EGREP=$lt_EGREP
10694
10695 # The linker used to build libraries.
10696 LD=$lt_LD
10697
10698 # Whether we need hard or soft links.
10699 LN_S=$lt_LN_S
10700
10701 # A BSD-compatible nm program.
10702 NM=$lt_NM
10703
10704 # A symbol stripping program
10705 STRIP=$lt_STRIP
10706
10707 # Used to examine libraries when file_magic_cmd begins "file"
10708 MAGIC_CMD=$MAGIC_CMD
10709
10710 # Used on cygwin: DLL creation program.
10711 DLLTOOL="$DLLTOOL"
10712
10713 # Used on cygwin: object dumper.
10714 OBJDUMP="$OBJDUMP"
10715
10716 # Used on cygwin: assembler.
10717 AS="$AS"
10718
10719 # The name of the directory that contains temporary libtool files.
10720 objdir=$objdir
10721
10722 # How to create reloadable object files.
10723 reload_flag=$lt_reload_flag
10724 reload_cmds=$lt_reload_cmds
10725
10726 # How to pass a linker flag through the compiler.
10727 wl=$lt_lt_prog_compiler_wl
10728
10729 # Object file suffix (normally "o").
10730 objext="$ac_objext"
10731
10732 # Old archive suffix (normally "a").
10733 libext="$libext"
10734
10735 # Shared library suffix (normally ".so").
10736 shrext_cmds='$shrext_cmds'
10737
10738 # Executable file suffix (normally "").
10739 exeext="$exeext"
10740
10741 # Additional compiler flags for building library objects.
10742 pic_flag=$lt_lt_prog_compiler_pic
10743 pic_mode=$pic_mode
10744
10745 # What is the maximum length of a command?
10746 max_cmd_len=$lt_cv_sys_max_cmd_len
10747
10748 # Does compiler simultaneously support -c and -o options?
10749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10750
10751 # Must we lock files when doing compilation?
10752 need_locks=$lt_need_locks
10753
10754 # Do we need the lib prefix for modules?
10755 need_lib_prefix=$need_lib_prefix
10756
10757 # Do we need a version for libraries?
10758 need_version=$need_version
10759
10760 # Whether dlopen is supported.
10761 dlopen_support=$enable_dlopen
10762
10763 # Whether dlopen of programs is supported.
10764 dlopen_self=$enable_dlopen_self
10765
10766 # Whether dlopen of statically linked programs is supported.
10767 dlopen_self_static=$enable_dlopen_self_static
10768
10769 # Compiler flag to prevent dynamic linking.
10770 link_static_flag=$lt_lt_prog_compiler_static
10771
10772 # Compiler flag to turn off builtin functions.
10773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10774
10775 # Compiler flag to allow reflexive dlopens.
10776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10777
10778 # Compiler flag to generate shared objects directly from archives.
10779 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10780
10781 # Compiler flag to generate thread-safe objects.
10782 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10783
10784 # Library versioning type.
10785 version_type=$version_type
10786
10787 # Format of library name prefix.
10788 libname_spec=$lt_libname_spec
10789
10790 # List of archive names.  First name is the real one, the rest are links.
10791 # The last name is the one that the linker finds with -lNAME.
10792 library_names_spec=$lt_library_names_spec
10793
10794 # The coded name of the library, if different from the real name.
10795 soname_spec=$lt_soname_spec
10796
10797 # Commands used to build and install an old-style archive.
10798 RANLIB=$lt_RANLIB
10799 old_archive_cmds=$lt_old_archive_cmds
10800 old_postinstall_cmds=$lt_old_postinstall_cmds
10801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10802
10803 # Create an old-style archive from a shared archive.
10804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10805
10806 # Create a temporary old-style archive to link instead of a shared archive.
10807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10808
10809 # Commands used to build and install a shared archive.
10810 archive_cmds=$lt_archive_cmds
10811 archive_expsym_cmds=$lt_archive_expsym_cmds
10812 postinstall_cmds=$lt_postinstall_cmds
10813 postuninstall_cmds=$lt_postuninstall_cmds
10814
10815 # Commands used to build a loadable module (assumed same as above if empty)
10816 module_cmds=$lt_module_cmds
10817 module_expsym_cmds=$lt_module_expsym_cmds
10818
10819 # Commands to strip libraries.
10820 old_striplib=$lt_old_striplib
10821 striplib=$lt_striplib
10822
10823 # Dependencies to place before the objects being linked to create a
10824 # shared library.
10825 predep_objects=$lt_predep_objects
10826
10827 # Dependencies to place after the objects being linked to create a
10828 # shared library.
10829 postdep_objects=$lt_postdep_objects
10830
10831 # Dependencies to place before the objects being linked to create a
10832 # shared library.
10833 predeps=$lt_predeps
10834
10835 # Dependencies to place after the objects being linked to create a
10836 # shared library.
10837 postdeps=$lt_postdeps
10838
10839 # The library search path used internally by the compiler when linking
10840 # a shared library.
10841 compiler_lib_search_path=$lt_compiler_lib_search_path
10842
10843 # Method to check whether dependent libraries are shared objects.
10844 deplibs_check_method=$lt_deplibs_check_method
10845
10846 # Command to use when deplibs_check_method == file_magic.
10847 file_magic_cmd=$lt_file_magic_cmd
10848
10849 # Flag that allows shared libraries with undefined symbols to be built.
10850 allow_undefined_flag=$lt_allow_undefined_flag
10851
10852 # Flag that forces no undefined symbols.
10853 no_undefined_flag=$lt_no_undefined_flag
10854
10855 # Commands used to finish a libtool library installation in a directory.
10856 finish_cmds=$lt_finish_cmds
10857
10858 # Same as above, but a single script fragment to be evaled but not shown.
10859 finish_eval=$lt_finish_eval
10860
10861 # Take the output of nm and produce a listing of raw symbols and C names.
10862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10863
10864 # Transform the output of nm in a proper C declaration
10865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10866
10867 # Transform the output of nm in a C name address pair
10868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10869
10870 # This is the shared library runtime path variable.
10871 runpath_var=$runpath_var
10872
10873 # This is the shared library path variable.
10874 shlibpath_var=$shlibpath_var
10875
10876 # Is shlibpath searched before the hard-coded library search path?
10877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10878
10879 # How to hardcode a shared library path into an executable.
10880 hardcode_action=$hardcode_action
10881
10882 # Whether we should hardcode library paths into libraries.
10883 hardcode_into_libs=$hardcode_into_libs
10884
10885 # Flag to hardcode \$libdir into a binary during linking.
10886 # This must work even if \$libdir does not exist.
10887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10888
10889 # If ld is used when linking, flag to hardcode \$libdir into
10890 # a binary during linking. This must work even if \$libdir does
10891 # not exist.
10892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10893
10894 # Whether we need a single -rpath flag with a separated argument.
10895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10896
10897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10898 # resulting binary.
10899 hardcode_direct=$hardcode_direct
10900
10901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10902 # resulting binary.
10903 hardcode_minus_L=$hardcode_minus_L
10904
10905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10906 # the resulting binary.
10907 hardcode_shlibpath_var=$hardcode_shlibpath_var
10908
10909 # Set to yes if building a shared library automatically hardcodes DIR into the library
10910 # and all subsequent libraries and executables linked against it.
10911 hardcode_automatic=$hardcode_automatic
10912
10913 # Variables whose values should be saved in libtool wrapper scripts and
10914 # restored at relink time.
10915 variables_saved_for_relink="$variables_saved_for_relink"
10916
10917 # Whether libtool must link a program against all its dependency libraries.
10918 link_all_deplibs=$link_all_deplibs
10919
10920 # Compile-time system search path for libraries
10921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10922
10923 # Run-time system search path for libraries
10924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10925
10926 # Fix the shell variable \$srcfile for the compiler.
10927 fix_srcfile_path="$fix_srcfile_path"
10928
10929 # Set to yes if exported symbols are required.
10930 always_export_symbols=$always_export_symbols
10931
10932 # The commands to list exported symbols.
10933 export_symbols_cmds=$lt_export_symbols_cmds
10934
10935 # The commands to extract the exported symbol list from a shared archive.
10936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10937
10938 # Symbols that should not be listed in the preloaded symbols.
10939 exclude_expsyms=$lt_exclude_expsyms
10940
10941 # Symbols that must always be exported.
10942 include_expsyms=$lt_include_expsyms
10943
10944 # ### END LIBTOOL CONFIG
10945
10946 __EOF__
10947
10948
10949   case $host_os in
10950   aix3*)
10951     cat <<\EOF >> "$cfgfile"
10952
10953 # AIX sometimes has problems with the GCC collect2 program.  For some
10954 # reason, if we set the COLLECT_NAMES environment variable, the problems
10955 # vanish in a puff of smoke.
10956 if test "X${COLLECT_NAMES+set}" != Xset; then
10957   COLLECT_NAMES=
10958   export COLLECT_NAMES
10959 fi
10960 EOF
10961     ;;
10962   esac
10963
10964   # We use sed instead of cat because bash on DJGPP gets confused if
10965   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10966   # text mode, it properly converts lines to CR/LF.  This bash problem
10967   # is reportedly fixed, but why not run on old versions too?
10968   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10969
10970   mv -f "$cfgfile" "$ofile" || \
10971     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10972   chmod +x "$ofile"
10973
10974 else
10975   # If there is no Makefile yet, we rely on a make rule to execute
10976   # `config.status --recheck' to rerun these tests and create the
10977   # libtool script then.
10978   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10979   if test -f "$ltmain_in"; then
10980     test -f Makefile && make "$ltmain"
10981   fi
10982 fi
10983
10984
10985 ac_ext=c
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10990
10991 CC="$lt_save_CC"
10992
10993
10994 # Check whether --with-tags or --without-tags was given.
10995 if test "${with_tags+set}" = set; then
10996   withval="$with_tags"
10997   tagnames="$withval"
10998 fi;
10999
11000 if test -f "$ltmain" && test -n "$tagnames"; then
11001   if test ! -f "${ofile}"; then
11002     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11003 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11004   fi
11005
11006   if test -z "$LTCC"; then
11007     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11008     if test -z "$LTCC"; then
11009       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11010 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11011     else
11012       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11013 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11014     fi
11015   fi
11016
11017   # Extract list of available tagged configurations in $ofile.
11018   # Note that this assumes the entire list is on one line.
11019   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11020
11021   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11022   for tagname in $tagnames; do
11023     IFS="$lt_save_ifs"
11024     # Check whether tagname contains only valid characters
11025     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11026     "") ;;
11027     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11028 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11029    { (exit 1); exit 1; }; }
11030         ;;
11031     esac
11032
11033     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11034     then
11035       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11036 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11037    { (exit 1); exit 1; }; }
11038     fi
11039
11040     # Update the list of available tags.
11041     if test -n "$tagname"; then
11042       echo appending configuration tag \"$tagname\" to $ofile
11043
11044       case $tagname in
11045       CXX)
11046         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11047             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11048             (test "X$CXX" != "Xg++"))) ; then
11049           :
11050         else
11051           tagname=""
11052         fi
11053         ;;
11054
11055       F77)
11056         if test -n "$F77" && test "X$F77" != "Xno"; then
11057           :
11058         else
11059           tagname=""
11060         fi
11061         ;;
11062
11063       GCJ)
11064         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11065           :
11066         else
11067           tagname=""
11068         fi
11069         ;;
11070
11071       RC)
11072
11073
11074
11075 # Source file extension for RC test sources.
11076 ac_ext=rc
11077
11078 # Object file extension for compiled RC test sources.
11079 objext=o
11080 objext_RC=$objext
11081
11082 # Code to be used in simple compile tests
11083 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11084
11085 # Code to be used in simple link tests
11086 lt_simple_link_test_code="$lt_simple_compile_test_code"
11087
11088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11089
11090 # If no C compiler was specified, use CC.
11091 LTCC=${LTCC-"$CC"}
11092
11093 # Allow CC to be a program name with arguments.
11094 compiler=$CC
11095
11096
11097 # save warnings/boilerplate of simple test code
11098 ac_outfile=conftest.$ac_objext
11099 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11101 _lt_compiler_boilerplate=`cat conftest.err`
11102 $rm conftest*
11103
11104 ac_outfile=conftest.$ac_objext
11105 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11107 _lt_linker_boilerplate=`cat conftest.err`
11108 $rm conftest*
11109
11110
11111 # Allow CC to be a program name with arguments.
11112 lt_save_CC="$CC"
11113 CC=${RC-"windres"}
11114 compiler=$CC
11115 compiler_RC=$CC
11116 for cc_temp in $compiler""; do
11117   case $cc_temp in
11118     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11119     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11120     \-*) ;;
11121     *) break;;
11122   esac
11123 done
11124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11125
11126 lt_cv_prog_compiler_c_o_RC=yes
11127
11128 # The else clause should only fire when bootstrapping the
11129 # libtool distribution, otherwise you forgot to ship ltmain.sh
11130 # with your package, and you will get complaints that there are
11131 # no rules to generate ltmain.sh.
11132 if test -f "$ltmain"; then
11133   # See if we are running on zsh, and set the options which allow our commands through
11134   # without removal of \ escapes.
11135   if test -n "${ZSH_VERSION+set}" ; then
11136     setopt NO_GLOB_SUBST
11137   fi
11138   # Now quote all the things that may contain metacharacters while being
11139   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11140   # variables and quote the copies for generation of the libtool script.
11141   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11142     SED SHELL STRIP \
11143     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11144     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11145     deplibs_check_method reload_flag reload_cmds need_locks \
11146     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11147     lt_cv_sys_global_symbol_to_c_name_address \
11148     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11149     old_postinstall_cmds old_postuninstall_cmds \
11150     compiler_RC \
11151     CC_RC \
11152     LD_RC \
11153     lt_prog_compiler_wl_RC \
11154     lt_prog_compiler_pic_RC \
11155     lt_prog_compiler_static_RC \
11156     lt_prog_compiler_no_builtin_flag_RC \
11157     export_dynamic_flag_spec_RC \
11158     thread_safe_flag_spec_RC \
11159     whole_archive_flag_spec_RC \
11160     enable_shared_with_static_runtimes_RC \
11161     old_archive_cmds_RC \
11162     old_archive_from_new_cmds_RC \
11163     predep_objects_RC \
11164     postdep_objects_RC \
11165     predeps_RC \
11166     postdeps_RC \
11167     compiler_lib_search_path_RC \
11168     archive_cmds_RC \
11169     archive_expsym_cmds_RC \
11170     postinstall_cmds_RC \
11171     postuninstall_cmds_RC \
11172     old_archive_from_expsyms_cmds_RC \
11173     allow_undefined_flag_RC \
11174     no_undefined_flag_RC \
11175     export_symbols_cmds_RC \
11176     hardcode_libdir_flag_spec_RC \
11177     hardcode_libdir_flag_spec_ld_RC \
11178     hardcode_libdir_separator_RC \
11179     hardcode_automatic_RC \
11180     module_cmds_RC \
11181     module_expsym_cmds_RC \
11182     lt_cv_prog_compiler_c_o_RC \
11183     exclude_expsyms_RC \
11184     include_expsyms_RC; do
11185
11186     case $var in
11187     old_archive_cmds_RC | \
11188     old_archive_from_new_cmds_RC | \
11189     archive_cmds_RC | \
11190     archive_expsym_cmds_RC | \
11191     module_cmds_RC | \
11192     module_expsym_cmds_RC | \
11193     old_archive_from_expsyms_cmds_RC | \
11194     export_symbols_cmds_RC | \
11195     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11196     postinstall_cmds | postuninstall_cmds | \
11197     old_postinstall_cmds | old_postuninstall_cmds | \
11198     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11199       # Double-quote double-evaled strings.
11200       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11201       ;;
11202     *)
11203       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11204       ;;
11205     esac
11206   done
11207
11208   case $lt_echo in
11209   *'\$0 --fallback-echo"')
11210     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11211     ;;
11212   esac
11213
11214 cfgfile="$ofile"
11215
11216   cat <<__EOF__ >> "$cfgfile"
11217 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11218
11219 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11220
11221 # Shell to use when invoking shell scripts.
11222 SHELL=$lt_SHELL
11223
11224 # Whether or not to build shared libraries.
11225 build_libtool_libs=$enable_shared
11226
11227 # Whether or not to build static libraries.
11228 build_old_libs=$enable_static
11229
11230 # Whether or not to add -lc for building shared libraries.
11231 build_libtool_need_lc=$archive_cmds_need_lc_RC
11232
11233 # Whether or not to disallow shared libs when runtime libs are static
11234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11235
11236 # Whether or not to optimize for fast installation.
11237 fast_install=$enable_fast_install
11238
11239 # The host system.
11240 host_alias=$host_alias
11241 host=$host
11242 host_os=$host_os
11243
11244 # The build system.
11245 build_alias=$build_alias
11246 build=$build
11247 build_os=$build_os
11248
11249 # An echo program that does not interpret backslashes.
11250 echo=$lt_echo
11251
11252 # The archiver.
11253 AR=$lt_AR
11254 AR_FLAGS=$lt_AR_FLAGS
11255
11256 # A C compiler.
11257 LTCC=$lt_LTCC
11258
11259 # A language-specific compiler.
11260 CC=$lt_compiler_RC
11261
11262 # Is the compiler the GNU C compiler?
11263 with_gcc=$GCC_RC
11264
11265 # An ERE matcher.
11266 EGREP=$lt_EGREP
11267
11268 # The linker used to build libraries.
11269 LD=$lt_LD_RC
11270
11271 # Whether we need hard or soft links.
11272 LN_S=$lt_LN_S
11273
11274 # A BSD-compatible nm program.
11275 NM=$lt_NM
11276
11277 # A symbol stripping program
11278 STRIP=$lt_STRIP
11279
11280 # Used to examine libraries when file_magic_cmd begins "file"
11281 MAGIC_CMD=$MAGIC_CMD
11282
11283 # Used on cygwin: DLL creation program.
11284 DLLTOOL="$DLLTOOL"
11285
11286 # Used on cygwin: object dumper.
11287 OBJDUMP="$OBJDUMP"
11288
11289 # Used on cygwin: assembler.
11290 AS="$AS"
11291
11292 # The name of the directory that contains temporary libtool files.
11293 objdir=$objdir
11294
11295 # How to create reloadable object files.
11296 reload_flag=$lt_reload_flag
11297 reload_cmds=$lt_reload_cmds
11298
11299 # How to pass a linker flag through the compiler.
11300 wl=$lt_lt_prog_compiler_wl_RC
11301
11302 # Object file suffix (normally "o").
11303 objext="$ac_objext"
11304
11305 # Old archive suffix (normally "a").
11306 libext="$libext"
11307
11308 # Shared library suffix (normally ".so").
11309 shrext_cmds='$shrext_cmds'
11310
11311 # Executable file suffix (normally "").
11312 exeext="$exeext"
11313
11314 # Additional compiler flags for building library objects.
11315 pic_flag=$lt_lt_prog_compiler_pic_RC
11316 pic_mode=$pic_mode
11317
11318 # What is the maximum length of a command?
11319 max_cmd_len=$lt_cv_sys_max_cmd_len
11320
11321 # Does compiler simultaneously support -c and -o options?
11322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11323
11324 # Must we lock files when doing compilation?
11325 need_locks=$lt_need_locks
11326
11327 # Do we need the lib prefix for modules?
11328 need_lib_prefix=$need_lib_prefix
11329
11330 # Do we need a version for libraries?
11331 need_version=$need_version
11332
11333 # Whether dlopen is supported.
11334 dlopen_support=$enable_dlopen
11335
11336 # Whether dlopen of programs is supported.
11337 dlopen_self=$enable_dlopen_self
11338
11339 # Whether dlopen of statically linked programs is supported.
11340 dlopen_self_static=$enable_dlopen_self_static
11341
11342 # Compiler flag to prevent dynamic linking.
11343 link_static_flag=$lt_lt_prog_compiler_static_RC
11344
11345 # Compiler flag to turn off builtin functions.
11346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11347
11348 # Compiler flag to allow reflexive dlopens.
11349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11350
11351 # Compiler flag to generate shared objects directly from archives.
11352 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11353
11354 # Compiler flag to generate thread-safe objects.
11355 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11356
11357 # Library versioning type.
11358 version_type=$version_type
11359
11360 # Format of library name prefix.
11361 libname_spec=$lt_libname_spec
11362
11363 # List of archive names.  First name is the real one, the rest are links.
11364 # The last name is the one that the linker finds with -lNAME.
11365 library_names_spec=$lt_library_names_spec
11366
11367 # The coded name of the library, if different from the real name.
11368 soname_spec=$lt_soname_spec
11369
11370 # Commands used to build and install an old-style archive.
11371 RANLIB=$lt_RANLIB
11372 old_archive_cmds=$lt_old_archive_cmds_RC
11373 old_postinstall_cmds=$lt_old_postinstall_cmds
11374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11375
11376 # Create an old-style archive from a shared archive.
11377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11378
11379 # Create a temporary old-style archive to link instead of a shared archive.
11380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11381
11382 # Commands used to build and install a shared archive.
11383 archive_cmds=$lt_archive_cmds_RC
11384 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11385 postinstall_cmds=$lt_postinstall_cmds
11386 postuninstall_cmds=$lt_postuninstall_cmds
11387
11388 # Commands used to build a loadable module (assumed same as above if empty)
11389 module_cmds=$lt_module_cmds_RC
11390 module_expsym_cmds=$lt_module_expsym_cmds_RC
11391
11392 # Commands to strip libraries.
11393 old_striplib=$lt_old_striplib
11394 striplib=$lt_striplib
11395
11396 # Dependencies to place before the objects being linked to create a
11397 # shared library.
11398 predep_objects=$lt_predep_objects_RC
11399
11400 # Dependencies to place after the objects being linked to create a
11401 # shared library.
11402 postdep_objects=$lt_postdep_objects_RC
11403
11404 # Dependencies to place before the objects being linked to create a
11405 # shared library.
11406 predeps=$lt_predeps_RC
11407
11408 # Dependencies to place after the objects being linked to create a
11409 # shared library.
11410 postdeps=$lt_postdeps_RC
11411
11412 # The library search path used internally by the compiler when linking
11413 # a shared library.
11414 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11415
11416 # Method to check whether dependent libraries are shared objects.
11417 deplibs_check_method=$lt_deplibs_check_method
11418
11419 # Command to use when deplibs_check_method == file_magic.
11420 file_magic_cmd=$lt_file_magic_cmd
11421
11422 # Flag that allows shared libraries with undefined symbols to be built.
11423 allow_undefined_flag=$lt_allow_undefined_flag_RC
11424
11425 # Flag that forces no undefined symbols.
11426 no_undefined_flag=$lt_no_undefined_flag_RC
11427
11428 # Commands used to finish a libtool library installation in a directory.
11429 finish_cmds=$lt_finish_cmds
11430
11431 # Same as above, but a single script fragment to be evaled but not shown.
11432 finish_eval=$lt_finish_eval
11433
11434 # Take the output of nm and produce a listing of raw symbols and C names.
11435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11436
11437 # Transform the output of nm in a proper C declaration
11438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11439
11440 # Transform the output of nm in a C name address pair
11441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11442
11443 # This is the shared library runtime path variable.
11444 runpath_var=$runpath_var
11445
11446 # This is the shared library path variable.
11447 shlibpath_var=$shlibpath_var
11448
11449 # Is shlibpath searched before the hard-coded library search path?
11450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11451
11452 # How to hardcode a shared library path into an executable.
11453 hardcode_action=$hardcode_action_RC
11454
11455 # Whether we should hardcode library paths into libraries.
11456 hardcode_into_libs=$hardcode_into_libs
11457
11458 # Flag to hardcode \$libdir into a binary during linking.
11459 # This must work even if \$libdir does not exist.
11460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11461
11462 # If ld is used when linking, flag to hardcode \$libdir into
11463 # a binary during linking. This must work even if \$libdir does
11464 # not exist.
11465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11466
11467 # Whether we need a single -rpath flag with a separated argument.
11468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11469
11470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11471 # resulting binary.
11472 hardcode_direct=$hardcode_direct_RC
11473
11474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11475 # resulting binary.
11476 hardcode_minus_L=$hardcode_minus_L_RC
11477
11478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11479 # the resulting binary.
11480 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11481
11482 # Set to yes if building a shared library automatically hardcodes DIR into the library
11483 # and all subsequent libraries and executables linked against it.
11484 hardcode_automatic=$hardcode_automatic_RC
11485
11486 # Variables whose values should be saved in libtool wrapper scripts and
11487 # restored at relink time.
11488 variables_saved_for_relink="$variables_saved_for_relink"
11489
11490 # Whether libtool must link a program against all its dependency libraries.
11491 link_all_deplibs=$link_all_deplibs_RC
11492
11493 # Compile-time system search path for libraries
11494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11495
11496 # Run-time system search path for libraries
11497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11498
11499 # Fix the shell variable \$srcfile for the compiler.
11500 fix_srcfile_path="$fix_srcfile_path_RC"
11501
11502 # Set to yes if exported symbols are required.
11503 always_export_symbols=$always_export_symbols_RC
11504
11505 # The commands to list exported symbols.
11506 export_symbols_cmds=$lt_export_symbols_cmds_RC
11507
11508 # The commands to extract the exported symbol list from a shared archive.
11509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11510
11511 # Symbols that should not be listed in the preloaded symbols.
11512 exclude_expsyms=$lt_exclude_expsyms_RC
11513
11514 # Symbols that must always be exported.
11515 include_expsyms=$lt_include_expsyms_RC
11516
11517 # ### END LIBTOOL TAG CONFIG: $tagname
11518
11519 __EOF__
11520
11521
11522 else
11523   # If there is no Makefile yet, we rely on a make rule to execute
11524   # `config.status --recheck' to rerun these tests and create the
11525   # libtool script then.
11526   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11527   if test -f "$ltmain_in"; then
11528     test -f Makefile && make "$ltmain"
11529   fi
11530 fi
11531
11532
11533 ac_ext=c
11534 ac_cpp='$CPP $CPPFLAGS'
11535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11538
11539 CC="$lt_save_CC"
11540
11541         ;;
11542
11543       *)
11544         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11545 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11546    { (exit 1); exit 1; }; }
11547         ;;
11548       esac
11549
11550       # Append the new tag name to the list of available tags.
11551       if test -n "$tagname" ; then
11552       available_tags="$available_tags $tagname"
11553     fi
11554     fi
11555   done
11556   IFS="$lt_save_ifs"
11557
11558   # Now substitute the updated list of available tags.
11559   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11560     mv "${ofile}T" "$ofile"
11561     chmod +x "$ofile"
11562   else
11563     rm -f "${ofile}T"
11564     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11565 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11566    { (exit 1); exit 1; }; }
11567   fi
11568 fi
11569
11570
11571
11572 # This can be used to rebuild libtool when needed
11573 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11574
11575 # Always use our own libtool.
11576 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11577
11578 # Prevent multiple expansion
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589 ol_link_perl=no
11590 if test $ol_enable_perl != no ; then
11591         # Extract the first word of "perl", so it can be a program name with args.
11592 set dummy perl; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_path_PERLBIN+set}" = set; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   case $PERLBIN in
11599   [\\/]* | ?:[\\/]*)
11600   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11601   ;;
11602   *)
11603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11605 do
11606   IFS=$as_save_IFS
11607   test -z "$as_dir" && as_dir=.
11608   for ac_exec_ext in '' $ac_executable_extensions; do
11609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11612     break 2
11613   fi
11614 done
11615 done
11616
11617   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11618   ;;
11619 esac
11620 fi
11621 PERLBIN=$ac_cv_path_PERLBIN
11622
11623 if test -n "$PERLBIN"; then
11624   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11625 echo "${ECHO_T}$PERLBIN" >&6
11626 else
11627   echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6
11629 fi
11630
11631
11632         if test "no$PERLBIN" = "no" ; then
11633                 if test $ol_enable_perl = yes ; then
11634                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11635 echo "$as_me: error: could not locate perl" >&2;}
11636    { (exit 1); exit 1; }; }
11637                 fi
11638
11639         else
11640                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11641                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11642
11643                 if test x"$ol_enable_perl" = "xyes" ; then
11644                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11645                 else
11646                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11647                 fi
11648                                 ol_link_perl=yes
11649         fi
11650 fi
11651
11652 ac_ext=c
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11658 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11659 # On Suns, sometimes $CPP names a directory.
11660 if test -n "$CPP" && test -d "$CPP"; then
11661   CPP=
11662 fi
11663 if test -z "$CPP"; then
11664   if test "${ac_cv_prog_CPP+set}" = set; then
11665   echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667       # Double quotes because CPP needs to be expanded
11668     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11669     do
11670       ac_preproc_ok=false
11671 for ac_c_preproc_warn_flag in '' yes
11672 do
11673   # Use a header file that comes with gcc, so configuring glibc
11674   # with a fresh cross-compiler works.
11675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676   # <limits.h> exists even on freestanding compilers.
11677   # On the NeXT, cc -E runs the code through the compiler's parser,
11678   # not just through cpp. "Syntax error" is here to catch this case.
11679   cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 #ifdef __STDC__
11686 # include <limits.h>
11687 #else
11688 # include <assert.h>
11689 #endif
11690                      Syntax error
11691 _ACEOF
11692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } >/dev/null; then
11700   if test -s conftest.err; then
11701     ac_cpp_err=$ac_c_preproc_warn_flag
11702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11703   else
11704     ac_cpp_err=
11705   fi
11706 else
11707   ac_cpp_err=yes
11708 fi
11709 if test -z "$ac_cpp_err"; then
11710   :
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715   # Broken: fails on valid input.
11716 continue
11717 fi
11718 rm -f conftest.err conftest.$ac_ext
11719
11720   # OK, works on sane cases.  Now check whether non-existent headers
11721   # can be detected and how.
11722   cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h.  */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h.  */
11728 #include <ac_nonexistent.h>
11729 _ACEOF
11730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11731   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11732   ac_status=$?
11733   grep -v '^ *+' conftest.er1 >conftest.err
11734   rm -f conftest.er1
11735   cat conftest.err >&5
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); } >/dev/null; then
11738   if test -s conftest.err; then
11739     ac_cpp_err=$ac_c_preproc_warn_flag
11740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741   else
11742     ac_cpp_err=
11743   fi
11744 else
11745   ac_cpp_err=yes
11746 fi
11747 if test -z "$ac_cpp_err"; then
11748   # Broken: success on invalid input.
11749 continue
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754   # Passes both tests.
11755 ac_preproc_ok=:
11756 break
11757 fi
11758 rm -f conftest.err conftest.$ac_ext
11759
11760 done
11761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11762 rm -f conftest.err conftest.$ac_ext
11763 if $ac_preproc_ok; then
11764   break
11765 fi
11766
11767     done
11768     ac_cv_prog_CPP=$CPP
11769
11770 fi
11771   CPP=$ac_cv_prog_CPP
11772 else
11773   ac_cv_prog_CPP=$CPP
11774 fi
11775 echo "$as_me:$LINENO: result: $CPP" >&5
11776 echo "${ECHO_T}$CPP" >&6
11777 ac_preproc_ok=false
11778 for ac_c_preproc_warn_flag in '' yes
11779 do
11780   # Use a header file that comes with gcc, so configuring glibc
11781   # with a fresh cross-compiler works.
11782   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783   # <limits.h> exists even on freestanding compilers.
11784   # On the NeXT, cc -E runs the code through the compiler's parser,
11785   # not just through cpp. "Syntax error" is here to catch this case.
11786   cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h.  */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h.  */
11792 #ifdef __STDC__
11793 # include <limits.h>
11794 #else
11795 # include <assert.h>
11796 #endif
11797                      Syntax error
11798 _ACEOF
11799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } >/dev/null; then
11807   if test -s conftest.err; then
11808     ac_cpp_err=$ac_c_preproc_warn_flag
11809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11810   else
11811     ac_cpp_err=
11812   fi
11813 else
11814   ac_cpp_err=yes
11815 fi
11816 if test -z "$ac_cpp_err"; then
11817   :
11818 else
11819   echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822   # Broken: fails on valid input.
11823 continue
11824 fi
11825 rm -f conftest.err conftest.$ac_ext
11826
11827   # OK, works on sane cases.  Now check whether non-existent headers
11828   # can be detected and how.
11829   cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 #include <ac_nonexistent.h>
11836 _ACEOF
11837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11839   ac_status=$?
11840   grep -v '^ *+' conftest.er1 >conftest.err
11841   rm -f conftest.er1
11842   cat conftest.err >&5
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); } >/dev/null; then
11845   if test -s conftest.err; then
11846     ac_cpp_err=$ac_c_preproc_warn_flag
11847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11848   else
11849     ac_cpp_err=
11850   fi
11851 else
11852   ac_cpp_err=yes
11853 fi
11854 if test -z "$ac_cpp_err"; then
11855   # Broken: success on invalid input.
11856 continue
11857 else
11858   echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861   # Passes both tests.
11862 ac_preproc_ok=:
11863 break
11864 fi
11865 rm -f conftest.err conftest.$ac_ext
11866
11867 done
11868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11869 rm -f conftest.err conftest.$ac_ext
11870 if $ac_preproc_ok; then
11871   :
11872 else
11873   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11874 See \`config.log' for more details." >&5
11875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11876 See \`config.log' for more details." >&2;}
11877    { (exit 1); exit 1; }; }
11878 fi
11879
11880 ac_ext=c
11881 ac_cpp='$CPP $CPPFLAGS'
11882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
11886
11887 case $host_os in
11888   *mingw32* ) ac_cv_mingw32=yes ;;
11889   *cygwin* ) ac_cv_cygwin=yes ;;
11890 esac
11891
11892
11893
11894
11895 cat >>confdefs.h <<_ACEOF
11896 #define EXEEXT "${EXEEXT}"
11897 _ACEOF
11898
11899
11900 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11901 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11902 if test "${ac_cv_lib_be_be_app+set}" = set; then
11903   echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905   ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lbe -lroot -lnet $LIBS"
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913
11914 /* Override any gcc2 internal prototype to avoid an error.  */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
11918 /* We use char because int might match the return type of a gcc2
11919    builtin and then its argument prototype would still apply.  */
11920 char be_app ();
11921 int
11922 main ()
11923 {
11924 be_app ();
11925   ;
11926   return 0;
11927 }
11928 _ACEOF
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931   (eval $ac_link) 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } &&
11938          { ac_try='test -z "$ac_c_werror_flag"
11939                          || test ! -s conftest.err'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; } &&
11945          { ac_try='test -s conftest$ac_exeext'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; }; then
11951   ac_cv_lib_be_be_app=yes
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 ac_cv_lib_be_be_app=no
11957 fi
11958 rm -f conftest.err conftest.$ac_objext \
11959       conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11961 fi
11962 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11963 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11964 if test $ac_cv_lib_be_be_app = yes; then
11965   LIBS="$LIBS -lbe -lroot -lnet"
11966 else
11967   :
11968 fi
11969
11970
11971 ac_ext=c
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11976 if test -n "$ac_tool_prefix"; then
11977   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11979 echo "$as_me:$LINENO: checking for $ac_word" >&5
11980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11981 if test "${ac_cv_prog_CC+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   if test -n "$CC"; then
11985   ac_cv_prog_CC="$CC" # Let the user override the test.
11986 else
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11989 do
11990   IFS=$as_save_IFS
11991   test -z "$as_dir" && as_dir=.
11992   for ac_exec_ext in '' $ac_executable_extensions; do
11993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11996     break 2
11997   fi
11998 done
11999 done
12000
12001 fi
12002 fi
12003 CC=$ac_cv_prog_CC
12004 if test -n "$CC"; then
12005   echo "$as_me:$LINENO: result: $CC" >&5
12006 echo "${ECHO_T}$CC" >&6
12007 else
12008   echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6
12010 fi
12011
12012 fi
12013 if test -z "$ac_cv_prog_CC"; then
12014   ac_ct_CC=$CC
12015   # Extract the first word of "gcc", so it can be a program name with args.
12016 set dummy gcc; ac_word=$2
12017 echo "$as_me:$LINENO: checking for $ac_word" >&5
12018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   if test -n "$ac_ct_CC"; then
12023   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12024 else
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12027 do
12028   IFS=$as_save_IFS
12029   test -z "$as_dir" && as_dir=.
12030   for ac_exec_ext in '' $ac_executable_extensions; do
12031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032     ac_cv_prog_ac_ct_CC="gcc"
12033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12034     break 2
12035   fi
12036 done
12037 done
12038
12039 fi
12040 fi
12041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12042 if test -n "$ac_ct_CC"; then
12043   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12044 echo "${ECHO_T}$ac_ct_CC" >&6
12045 else
12046   echo "$as_me:$LINENO: result: no" >&5
12047 echo "${ECHO_T}no" >&6
12048 fi
12049
12050   CC=$ac_ct_CC
12051 else
12052   CC="$ac_cv_prog_CC"
12053 fi
12054
12055 if test -z "$CC"; then
12056   if test -n "$ac_tool_prefix"; then
12057   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12058 set dummy ${ac_tool_prefix}cc; ac_word=$2
12059 echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061 if test "${ac_cv_prog_CC+set}" = set; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   if test -n "$CC"; then
12065   ac_cv_prog_CC="$CC" # Let the user override the test.
12066 else
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070   IFS=$as_save_IFS
12071   test -z "$as_dir" && as_dir=.
12072   for ac_exec_ext in '' $ac_executable_extensions; do
12073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074     ac_cv_prog_CC="${ac_tool_prefix}cc"
12075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12076     break 2
12077   fi
12078 done
12079 done
12080
12081 fi
12082 fi
12083 CC=$ac_cv_prog_CC
12084 if test -n "$CC"; then
12085   echo "$as_me:$LINENO: result: $CC" >&5
12086 echo "${ECHO_T}$CC" >&6
12087 else
12088   echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6
12090 fi
12091
12092 fi
12093 if test -z "$ac_cv_prog_CC"; then
12094   ac_ct_CC=$CC
12095   # Extract the first word of "cc", so it can be a program name with args.
12096 set dummy cc; ac_word=$2
12097 echo "$as_me:$LINENO: checking for $ac_word" >&5
12098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   if test -n "$ac_ct_CC"; then
12103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108   IFS=$as_save_IFS
12109   test -z "$as_dir" && as_dir=.
12110   for ac_exec_ext in '' $ac_executable_extensions; do
12111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112     ac_cv_prog_ac_ct_CC="cc"
12113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12114     break 2
12115   fi
12116 done
12117 done
12118
12119 fi
12120 fi
12121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12122 if test -n "$ac_ct_CC"; then
12123   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12124 echo "${ECHO_T}$ac_ct_CC" >&6
12125 else
12126   echo "$as_me:$LINENO: result: no" >&5
12127 echo "${ECHO_T}no" >&6
12128 fi
12129
12130   CC=$ac_ct_CC
12131 else
12132   CC="$ac_cv_prog_CC"
12133 fi
12134
12135 fi
12136 if test -z "$CC"; then
12137   # Extract the first word of "cc", so it can be a program name with args.
12138 set dummy cc; ac_word=$2
12139 echo "$as_me:$LINENO: checking for $ac_word" >&5
12140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12141 if test "${ac_cv_prog_CC+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   if test -n "$CC"; then
12145   ac_cv_prog_CC="$CC" # Let the user override the test.
12146 else
12147   ac_prog_rejected=no
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151   IFS=$as_save_IFS
12152   test -z "$as_dir" && as_dir=.
12153   for ac_exec_ext in '' $ac_executable_extensions; do
12154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12156        ac_prog_rejected=yes
12157        continue
12158      fi
12159     ac_cv_prog_CC="cc"
12160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12161     break 2
12162   fi
12163 done
12164 done
12165
12166 if test $ac_prog_rejected = yes; then
12167   # We found a bogon in the path, so make sure we never use it.
12168   set dummy $ac_cv_prog_CC
12169   shift
12170   if test $# != 0; then
12171     # We chose a different compiler from the bogus one.
12172     # However, it has the same basename, so the bogon will be chosen
12173     # first if we set CC to just the basename; use the full file name.
12174     shift
12175     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12176   fi
12177 fi
12178 fi
12179 fi
12180 CC=$ac_cv_prog_CC
12181 if test -n "$CC"; then
12182   echo "$as_me:$LINENO: result: $CC" >&5
12183 echo "${ECHO_T}$CC" >&6
12184 else
12185   echo "$as_me:$LINENO: result: no" >&5
12186 echo "${ECHO_T}no" >&6
12187 fi
12188
12189 fi
12190 if test -z "$CC"; then
12191   if test -n "$ac_tool_prefix"; then
12192   for ac_prog in cl
12193   do
12194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12196 echo "$as_me:$LINENO: checking for $ac_word" >&5
12197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12198 if test "${ac_cv_prog_CC+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   if test -n "$CC"; then
12202   ac_cv_prog_CC="$CC" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209   for ac_exec_ext in '' $ac_executable_extensions; do
12210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216 done
12217
12218 fi
12219 fi
12220 CC=$ac_cv_prog_CC
12221 if test -n "$CC"; then
12222   echo "$as_me:$LINENO: result: $CC" >&5
12223 echo "${ECHO_T}$CC" >&6
12224 else
12225   echo "$as_me:$LINENO: result: no" >&5
12226 echo "${ECHO_T}no" >&6
12227 fi
12228
12229     test -n "$CC" && break
12230   done
12231 fi
12232 if test -z "$CC"; then
12233   ac_ct_CC=$CC
12234   for ac_prog in cl
12235 do
12236   # Extract the first word of "$ac_prog", so it can be a program name with args.
12237 set dummy $ac_prog; ac_word=$2
12238 echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12241   echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243   if test -n "$ac_ct_CC"; then
12244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249   IFS=$as_save_IFS
12250   test -z "$as_dir" && as_dir=.
12251   for ac_exec_ext in '' $ac_executable_extensions; do
12252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253     ac_cv_prog_ac_ct_CC="$ac_prog"
12254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255     break 2
12256   fi
12257 done
12258 done
12259
12260 fi
12261 fi
12262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12263 if test -n "$ac_ct_CC"; then
12264   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12265 echo "${ECHO_T}$ac_ct_CC" >&6
12266 else
12267   echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12269 fi
12270
12271   test -n "$ac_ct_CC" && break
12272 done
12273
12274   CC=$ac_ct_CC
12275 fi
12276
12277 fi
12278
12279
12280 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12281 See \`config.log' for more details." >&5
12282 echo "$as_me: error: no acceptable C compiler found in \$PATH
12283 See \`config.log' for more details." >&2;}
12284    { (exit 1); exit 1; }; }
12285
12286 # Provide some information about the compiler.
12287 echo "$as_me:$LINENO:" \
12288      "checking for C compiler version" >&5
12289 ac_compiler=`set X $ac_compile; echo $2`
12290 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12291   (eval $ac_compiler --version </dev/null >&5) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }
12295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12296   (eval $ac_compiler -v </dev/null >&5) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }
12300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12301   (eval $ac_compiler -V </dev/null >&5) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }
12305
12306 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12307 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311   cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317
12318 int
12319 main ()
12320 {
12321 #ifndef __GNUC__
12322        choke me
12323 #endif
12324
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331   (eval $ac_compile) 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -z "$ac_c_werror_flag"
12339                          || test ! -s conftest.err'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; } &&
12345          { ac_try='test -s conftest.$ac_objext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   ac_compiler_gnu=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 ac_compiler_gnu=no
12357 fi
12358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12360
12361 fi
12362 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12363 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12364 GCC=`test $ac_compiler_gnu = yes && echo yes`
12365 ac_test_CFLAGS=${CFLAGS+set}
12366 ac_save_CFLAGS=$CFLAGS
12367 CFLAGS="-g"
12368 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12369 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12370 if test "${ac_cv_prog_cc_g+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379
12380 int
12381 main ()
12382 {
12383
12384   ;
12385   return 0;
12386 }
12387 _ACEOF
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390   (eval $ac_compile) 2>conftest.er1
12391   ac_status=$?
12392   grep -v '^ *+' conftest.er1 >conftest.err
12393   rm -f conftest.er1
12394   cat conftest.err >&5
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); } &&
12397          { ac_try='test -z "$ac_c_werror_flag"
12398                          || test ! -s conftest.err'
12399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400   (eval $ac_try) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; } &&
12404          { ac_try='test -s conftest.$ac_objext'
12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406   (eval $ac_try) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; }; then
12410   ac_cv_prog_cc_g=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_cv_prog_cc_g=no
12416 fi
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12418 fi
12419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12420 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12421 if test "$ac_test_CFLAGS" = set; then
12422   CFLAGS=$ac_save_CFLAGS
12423 elif test $ac_cv_prog_cc_g = yes; then
12424   if test "$GCC" = yes; then
12425     CFLAGS="-g -O2"
12426   else
12427     CFLAGS="-g"
12428   fi
12429 else
12430   if test "$GCC" = yes; then
12431     CFLAGS="-O2"
12432   else
12433     CFLAGS=
12434   fi
12435 fi
12436 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12437 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12438 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   ac_cv_prog_cc_stdc=no
12442 ac_save_CC=$CC
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449 #include <stdarg.h>
12450 #include <stdio.h>
12451 #include <sys/types.h>
12452 #include <sys/stat.h>
12453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12454 struct buf { int x; };
12455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12456 static char *e (p, i)
12457      char **p;
12458      int i;
12459 {
12460   return p[i];
12461 }
12462 static char *f (char * (*g) (char **, int), char **p, ...)
12463 {
12464   char *s;
12465   va_list v;
12466   va_start (v,p);
12467   s = g (p, va_arg (v,int));
12468   va_end (v);
12469   return s;
12470 }
12471
12472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12473    function prototypes and stuff, but not '\xHH' hex character constants.
12474    These don't provoke an error unfortunately, instead are silently treated
12475    as 'x'.  The following induces an error, until -std1 is added to get
12476    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12477    array size at least.  It's necessary to write '\x00'==0 to get something
12478    that's true only with -std1.  */
12479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12480
12481 int test (int i, double x);
12482 struct s1 {int (*f) (int a);};
12483 struct s2 {int (*f) (double a);};
12484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12485 int argc;
12486 char **argv;
12487 int
12488 main ()
12489 {
12490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 # Don't try gcc -ansi; that turns off useful extensions and
12496 # breaks some systems' header files.
12497 # AIX                   -qlanglvl=ansi
12498 # Ultrix and OSF/1      -std1
12499 # HP-UX 10.20 and later -Ae
12500 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12501 # SVR4                  -Xc -D__EXTENSIONS__
12502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12503 do
12504   CC="$ac_save_CC $ac_arg"
12505   rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507   (eval $ac_compile) 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -z "$ac_c_werror_flag"
12515                          || test ! -s conftest.err'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; } &&
12521          { ac_try='test -s conftest.$ac_objext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_prog_cc_stdc=$ac_arg
12528 break
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 fi
12534 rm -f conftest.err conftest.$ac_objext
12535 done
12536 rm -f conftest.$ac_ext conftest.$ac_objext
12537 CC=$ac_save_CC
12538
12539 fi
12540
12541 case "x$ac_cv_prog_cc_stdc" in
12542   x|xno)
12543     echo "$as_me:$LINENO: result: none needed" >&5
12544 echo "${ECHO_T}none needed" >&6 ;;
12545   *)
12546     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12547 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12548     CC="$CC $ac_cv_prog_cc_stdc" ;;
12549 esac
12550
12551 # Some people use a C++ compiler to compile C.  Since we use `exit',
12552 # in C++ we need to declare it.  In case someone uses the same compiler
12553 # for both compiling C and C++ we need to have the C++ compiler decide
12554 # the declaration of exit, since it's the most demanding environment.
12555 cat >conftest.$ac_ext <<_ACEOF
12556 #ifndef __cplusplus
12557   choke me
12558 #endif
12559 _ACEOF
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562   (eval $ac_compile) 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -z "$ac_c_werror_flag"
12570                          || test ! -s conftest.err'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; } &&
12576          { ac_try='test -s conftest.$ac_objext'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   for ac_declaration in \
12583    '' \
12584    'extern "C" void std::exit (int) throw (); using std::exit;' \
12585    'extern "C" void std::exit (int); using std::exit;' \
12586    'extern "C" void exit (int) throw ();' \
12587    'extern "C" void exit (int);' \
12588    'void exit (int);'
12589 do
12590   cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h.  */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h.  */
12596 $ac_declaration
12597 #include <stdlib.h>
12598 int
12599 main ()
12600 {
12601 exit (42);
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608   (eval $ac_compile) 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } &&
12615          { ac_try='test -z "$ac_c_werror_flag"
12616                          || test ! -s conftest.err'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; } &&
12622          { ac_try='test -s conftest.$ac_objext'
12623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624   (eval $ac_try) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; }; then
12628   :
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633 continue
12634 fi
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636   cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h.  */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h.  */
12642 $ac_declaration
12643 int
12644 main ()
12645 {
12646 exit (42);
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653   (eval $ac_compile) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_c_werror_flag"
12661                          || test ! -s conftest.err'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; } &&
12667          { ac_try='test -s conftest.$ac_objext'
12668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669   (eval $ac_try) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; }; then
12673   break
12674 else
12675   echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 fi
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680 done
12681 rm -f conftest*
12682 if test -n "$ac_declaration"; then
12683   echo '#ifdef __cplusplus' >>confdefs.h
12684   echo $ac_declaration      >>confdefs.h
12685   echo '#endif'             >>confdefs.h
12686 fi
12687
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 fi
12693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12694 ac_ext=c
12695 ac_cpp='$CPP $CPPFLAGS'
12696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12699
12700 depcc="$CC"   am_compiler_list=
12701
12702 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12703 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12705   echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12708   # We make a subdir and do the tests there.  Otherwise we can end up
12709   # making bogus files that we don't know about and never remove.  For
12710   # instance it was reported that on HP-UX the gcc test will end up
12711   # making a dummy file named `D' -- because `-MD' means `put the output
12712   # in D'.
12713   mkdir conftest.dir
12714   # Copy depcomp to subdir because otherwise we won't find it if we're
12715   # using a relative directory.
12716   cp "$am_depcomp" conftest.dir
12717   cd conftest.dir
12718   # We will build objects and dependencies in a subdirectory because
12719   # it helps to detect inapplicable dependency modes.  For instance
12720   # both Tru64's cc and ICC support -MD to output dependencies as a
12721   # side effect of compilation, but ICC will put the dependencies in
12722   # the current directory while Tru64 will put them in the object
12723   # directory.
12724   mkdir sub
12725
12726   am_cv_CC_dependencies_compiler_type=none
12727   if test "$am_compiler_list" = ""; then
12728      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12729   fi
12730   for depmode in $am_compiler_list; do
12731     # Setup a source with many dependencies, because some compilers
12732     # like to wrap large dependency lists on column 80 (with \), and
12733     # we should not choose a depcomp mode which is confused by this.
12734     #
12735     # We need to recreate these files for each test, as the compiler may
12736     # overwrite some of them when testing with obscure command lines.
12737     # This happens at least with the AIX C compiler.
12738     : > sub/conftest.c
12739     for i in 1 2 3 4 5 6; do
12740       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12741       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12742       # Solaris 8's {/usr,}/bin/sh.
12743       touch sub/conftst$i.h
12744     done
12745     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12746
12747     case $depmode in
12748     nosideeffect)
12749       # after this tag, mechanisms are not by side-effect, so they'll
12750       # only be used when explicitly requested
12751       if test "x$enable_dependency_tracking" = xyes; then
12752         continue
12753       else
12754         break
12755       fi
12756       ;;
12757     none) break ;;
12758     esac
12759     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12760     # mode.  It turns out that the SunPro C++ compiler does not properly
12761     # handle `-M -o', and we need to detect this.
12762     if depmode=$depmode \
12763        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12764        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12765        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12766          >/dev/null 2>conftest.err &&
12767        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12768        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12769        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12770       # icc doesn't choke on unknown options, it will just issue warnings
12771       # or remarks (even with -Werror).  So we grep stderr for any message
12772       # that says an option was ignored or not supported.
12773       # When given -MP, icc 7.0 and 7.1 complain thusly:
12774       #   icc: Command line warning: ignoring option '-M'; no argument required
12775       # The diagnosis changed in icc 8.0:
12776       #   icc: Command line remark: option '-MP' not supported
12777       if (grep 'ignoring option' conftest.err ||
12778           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12779         am_cv_CC_dependencies_compiler_type=$depmode
12780         break
12781       fi
12782     fi
12783   done
12784
12785   cd ..
12786   rm -rf conftest.dir
12787 else
12788   am_cv_CC_dependencies_compiler_type=none
12789 fi
12790
12791 fi
12792 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12793 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12795
12796
12797
12798 if
12799   test "x$enable_dependency_tracking" != xno \
12800   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12801   am__fastdepCC_TRUE=
12802   am__fastdepCC_FALSE='#'
12803 else
12804   am__fastdepCC_TRUE='#'
12805   am__fastdepCC_FALSE=
12806 fi
12807
12808
12809 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12810         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12811 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12812    { (exit 1); exit 1; }; }
12813 fi
12814
12815 # test for make depend flag
12816 OL_MKDEP=
12817 OL_MKDEP_FLAGS=
12818 if test -z "${MKDEP}"; then
12819         OL_MKDEP="${CC-cc}"
12820         if test -z "${MKDEP_FLAGS}"; then
12821                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12822 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12823 if test "${ol_cv_mkdep+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826
12827                         ol_cv_mkdep=no
12828                         for flag in "-M" "-xM"; do
12829                                 cat > conftest.c <<EOF
12830  noCode;
12831 EOF
12832                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; } \
12838                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12839                                 then
12840                                         if test ! -f conftest."${ac_object}" ; then
12841                                                 ol_cv_mkdep=$flag
12842                                                 OL_MKDEP_FLAGS="$flag"
12843                                                 break
12844                                         fi
12845                                 fi
12846                         done
12847                         rm -f conftest*
12848
12849 fi
12850 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12851 echo "${ECHO_T}$ol_cv_mkdep" >&6
12852         else
12853                 cc_cv_mkdep=yes
12854                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12855         fi
12856 else
12857         cc_cv_mkdep=yes
12858         OL_MKDEP="${MKDEP}"
12859         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12860 fi
12861
12862
12863
12864 if test "${ol_cv_mkdep}" = no ; then
12865         # this will soon become an error
12866         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12867 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12868 fi
12869
12870 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12871 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12872 if test "${ac_cv_lib_s_afopen+set}" = set; then
12873   echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875   ac_check_lib_save_LIBS=$LIBS
12876 LIBS="-ls  $LIBS"
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883
12884 /* Override any gcc2 internal prototype to avoid an error.  */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 /* We use char because int might match the return type of a gcc2
12889    builtin and then its argument prototype would still apply.  */
12890 char afopen ();
12891 int
12892 main ()
12893 {
12894 afopen ();
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901   (eval $ac_link) 2>conftest.er1
12902   ac_status=$?
12903   grep -v '^ *+' conftest.er1 >conftest.err
12904   rm -f conftest.er1
12905   cat conftest.err >&5
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -z "$ac_c_werror_flag"
12909                          || test ! -s conftest.err'
12910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911   (eval $ac_try) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; } &&
12915          { ac_try='test -s conftest$ac_exeext'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   ac_cv_lib_s_afopen=yes
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 ac_cv_lib_s_afopen=no
12927 fi
12928 rm -f conftest.err conftest.$ac_objext \
12929       conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12931 fi
12932 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12933 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12934 if test $ac_cv_lib_s_afopen = yes; then
12935
12936         AUTH_LIBS=-ls
12937
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_AIX_SECURITY 1
12940 _ACEOF
12941
12942
12943 fi
12944
12945
12946 case "$target" in
12947 *-ibm-openedition)
12948         ac_cv_func_getopt=no
12949
12950 cat >>confdefs.h <<\_ACEOF
12951 #define BOTH_STRINGS_H 1
12952 _ACEOF
12953
12954         ;;
12955 esac
12956
12957 ol_link_modules=no
12958 WITH_MODULES_ENABLED=no
12959 if test $ol_enable_modules != no ; then
12960
12961 for ac_header in ltdl.h
12962 do
12963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12965   echo "$as_me:$LINENO: checking for $ac_header" >&5
12966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 fi
12970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12972 else
12973   # Is the header compilable?
12974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982 $ac_includes_default
12983 #include <$ac_header>
12984 _ACEOF
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987   (eval $ac_compile) 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag"
12995                          || test ! -s conftest.err'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; } &&
13001          { ac_try='test -s conftest.$ac_objext'
13002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003   (eval $ac_try) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_header_compiler=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_header_compiler=no
13013 fi
13014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13016 echo "${ECHO_T}$ac_header_compiler" >&6
13017
13018 # Is the header present?
13019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h.  */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h.  */
13027 #include <$ac_header>
13028 _ACEOF
13029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } >/dev/null; then
13037   if test -s conftest.err; then
13038     ac_cpp_err=$ac_c_preproc_warn_flag
13039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13040   else
13041     ac_cpp_err=
13042   fi
13043 else
13044   ac_cpp_err=yes
13045 fi
13046 if test -z "$ac_cpp_err"; then
13047   ac_header_preproc=yes
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052   ac_header_preproc=no
13053 fi
13054 rm -f conftest.err conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13056 echo "${ECHO_T}$ac_header_preproc" >&6
13057
13058 # So?  What about this header?
13059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13060   yes:no: )
13061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13065     ac_header_preproc=yes
13066     ;;
13067   no:yes:* )
13068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13080     (
13081       cat <<\_ASBOX
13082 ## --------------------------------------------- ##
13083 ## Report this to <http://www.openldap.org/its/> ##
13084 ## --------------------------------------------- ##
13085 _ASBOX
13086     ) |
13087       sed "s/^/$as_me: WARNING:     /" >&2
13088     ;;
13089 esac
13090 echo "$as_me:$LINENO: checking for $ac_header" >&5
13091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   eval "$as_ac_Header=\$ac_header_preproc"
13096 fi
13097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13099
13100 fi
13101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13102   cat >>confdefs.h <<_ACEOF
13103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13104 _ACEOF
13105
13106 fi
13107
13108 done
13109
13110
13111         if test $ac_cv_header_ltdl_h = no ; then
13112                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13113 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13114    { (exit 1); exit 1; }; }
13115         fi
13116
13117         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13118 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13119 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-lltdl  $LIBS"
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h.  */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h.  */
13130
13131 /* Override any gcc2 internal prototype to avoid an error.  */
13132 #ifdef __cplusplus
13133 extern "C"
13134 #endif
13135 /* We use char because int might match the return type of a gcc2
13136    builtin and then its argument prototype would still apply.  */
13137 char lt_dlinit ();
13138 int
13139 main ()
13140 {
13141 lt_dlinit ();
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148   (eval $ac_link) 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } &&
13155          { ac_try='test -z "$ac_c_werror_flag"
13156                          || test ! -s conftest.err'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; } &&
13162          { ac_try='test -s conftest$ac_exeext'
13163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164   (eval $ac_try) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }; then
13168   ac_cv_lib_ltdl_lt_dlinit=yes
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 ac_cv_lib_ltdl_lt_dlinit=no
13174 fi
13175 rm -f conftest.err conftest.$ac_objext \
13176       conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13178 fi
13179 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13180 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13181 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13182
13183                 MODULES_LIBS=-lltdl
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_LIBLTDL 1
13187 _ACEOF
13188
13189
13190 fi
13191
13192
13193         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13194                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13195 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13196    { (exit 1); exit 1; }; }
13197         fi
13198         ol_link_modules=yes
13199         WITH_MODULES_ENABLED=yes
13200
13201 else
13202         for i in $Backends; do
13203                 eval "ol_tmp=\$ol_enable_$i"
13204                 if test $ol_tmp = mod ; then
13205                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13206 echo "$as_me: WARNING: building static $i backend" >&2;}
13207                         eval "ol_enable_$i=yes"
13208                 fi
13209         done
13210         for i in $Overlays; do
13211                 eval "ol_tmp=\$ol_enable_$i"
13212                 if test $ol_tmp = mod ; then
13213                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13214 echo "$as_me: WARNING: building static $i overlay" >&2;}
13215                         eval "ol_enable_$i=yes"
13216                 fi
13217         done
13218 fi
13219
13220 # test for EBCDIC
13221 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13222 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13223 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226
13227         cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233
13234 #if !('M' == 0xd4)
13235 #include <__ASCII__/generate_error.h>
13236 #endif
13237
13238 _ACEOF
13239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } >/dev/null; then
13247   if test -s conftest.err; then
13248     ac_cpp_err=$ac_c_preproc_warn_flag
13249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13250   else
13251     ac_cpp_err=
13252   fi
13253 else
13254   ac_cpp_err=yes
13255 fi
13256 if test -z "$ac_cpp_err"; then
13257   ol_cv_cpp_ebcdic=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262   ol_cv_cpp_ebcdic=no
13263 fi
13264 rm -f conftest.err conftest.$ac_ext
13265 fi
13266 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13267 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13268 if test $ol_cv_cpp_ebcdic = yes ; then
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_EBCDIC 1
13272 _ACEOF
13273
13274 fi
13275
13276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13278 if test "${ol_cv_header_stdc+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 #include <stdlib.h>
13288 #include <stdarg.h>
13289 #include <string.h>
13290 #include <float.h>
13291 _ACEOF
13292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13294   ac_status=$?
13295   grep -v '^ *+' conftest.er1 >conftest.err
13296   rm -f conftest.er1
13297   cat conftest.err >&5
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } >/dev/null; then
13300   if test -s conftest.err; then
13301     ac_cpp_err=$ac_c_preproc_warn_flag
13302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13303   else
13304     ac_cpp_err=
13305   fi
13306 else
13307   ac_cpp_err=yes
13308 fi
13309 if test -z "$ac_cpp_err"; then
13310   ol_cv_header_stdc=yes
13311 else
13312   echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13314
13315   ol_cv_header_stdc=no
13316 fi
13317 rm -f conftest.err conftest.$ac_ext
13318
13319 if test $ol_cv_header_stdc = yes; then
13320   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327 #include <string.h>
13328
13329 _ACEOF
13330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13331   $EGREP "memchr" >/dev/null 2>&1; then
13332   :
13333 else
13334   ol_cv_header_stdc=no
13335 fi
13336 rm -f conftest*
13337
13338 fi
13339
13340 if test $ol_cv_header_stdc = yes; then
13341   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h.  */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h.  */
13348 #include <stdlib.h>
13349
13350 _ACEOF
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352   $EGREP "free" >/dev/null 2>&1; then
13353   :
13354 else
13355   ol_cv_header_stdc=no
13356 fi
13357 rm -f conftest*
13358
13359 fi
13360
13361 if test $ol_cv_header_stdc = yes; then
13362   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13363 if test "$cross_compiling" = yes; then
13364   :
13365 else
13366   cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h.  */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h.  */
13372 #include <ctype.h>
13373 #ifndef HAVE_EBCDIC
13374 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13375 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13376 #else
13377 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13378                 || ('j' <= (c) && (c) <= 'r') \
13379                 || ('s' <= (c) && (c) <= 'z'))
13380 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13381 #endif
13382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13383 int main () { int i; for (i = 0; i < 256; i++)
13384 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13385 exit (0); }
13386
13387 _ACEOF
13388 rm -f conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390   (eval $ac_link) 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395   (eval $ac_try) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   :
13400 else
13401   echo "$as_me: program exited with status $ac_status" >&5
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ( exit $ac_status )
13406 ol_cv_header_stdc=no
13407 fi
13408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13409 fi
13410 fi
13411 fi
13412 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13413 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13414 if test $ol_cv_header_stdc = yes; then
13415   cat >>confdefs.h <<\_ACEOF
13416 #define STDC_HEADERS 1
13417 _ACEOF
13418
13419 fi
13420 ac_cv_header_stdc=disable
13421
13422
13423 if test $ol_cv_header_stdc != yes; then
13424         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13425 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13426 fi
13427
13428
13429
13430
13431
13432
13433 ac_header_dirent=no
13434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13435   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13436 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447 #include <sys/types.h>
13448 #include <$ac_hdr>
13449
13450 int
13451 main ()
13452 {
13453 if ((DIR *) 0)
13454 return 0;
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461   (eval $ac_compile) 2>conftest.er1
13462   ac_status=$?
13463   grep -v '^ *+' conftest.er1 >conftest.err
13464   rm -f conftest.er1
13465   cat conftest.err >&5
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -z "$ac_c_werror_flag"
13469                          || test ! -s conftest.err'
13470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471   (eval $ac_try) 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); }; } &&
13475          { ac_try='test -s conftest.$ac_objext'
13476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477   (eval $ac_try) 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); }; }; then
13481   eval "$as_ac_Header=yes"
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 eval "$as_ac_Header=no"
13487 fi
13488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13489 fi
13490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13493   cat >>confdefs.h <<_ACEOF
13494 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13495 _ACEOF
13496
13497 ac_header_dirent=$ac_hdr; break
13498 fi
13499
13500 done
13501 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13502 if test $ac_header_dirent = dirent.h; then
13503   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13504 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13505 if test "${ac_cv_search_opendir+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   ac_func_search_save_LIBS=$LIBS
13509 ac_cv_search_opendir=no
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516
13517 /* Override any gcc2 internal prototype to avoid an error.  */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 /* We use char because int might match the return type of a gcc2
13522    builtin and then its argument prototype would still apply.  */
13523 char opendir ();
13524 int
13525 main ()
13526 {
13527 opendir ();
13528   ;
13529   return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534   (eval $ac_link) 2>conftest.er1
13535   ac_status=$?
13536   grep -v '^ *+' conftest.er1 >conftest.err
13537   rm -f conftest.er1
13538   cat conftest.err >&5
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -z "$ac_c_werror_flag"
13542                          || test ! -s conftest.err'
13543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544   (eval $ac_try) 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; } &&
13548          { ac_try='test -s conftest$ac_exeext'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; }; then
13554   ac_cv_search_opendir="none required"
13555 else
13556   echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559 fi
13560 rm -f conftest.err conftest.$ac_objext \
13561       conftest$ac_exeext conftest.$ac_ext
13562 if test "$ac_cv_search_opendir" = no; then
13563   for ac_lib in dir; do
13564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13565     cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h.  */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h.  */
13571
13572 /* Override any gcc2 internal prototype to avoid an error.  */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 /* We use char because int might match the return type of a gcc2
13577    builtin and then its argument prototype would still apply.  */
13578 char opendir ();
13579 int
13580 main ()
13581 {
13582 opendir ();
13583   ;
13584   return 0;
13585 }
13586 _ACEOF
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589   (eval $ac_link) 2>conftest.er1
13590   ac_status=$?
13591   grep -v '^ *+' conftest.er1 >conftest.err
13592   rm -f conftest.er1
13593   cat conftest.err >&5
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); } &&
13596          { ac_try='test -z "$ac_c_werror_flag"
13597                          || test ! -s conftest.err'
13598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599   (eval $ac_try) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }; } &&
13603          { ac_try='test -s conftest$ac_exeext'
13604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605   (eval $ac_try) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; }; then
13609   ac_cv_search_opendir="-l$ac_lib"
13610 break
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 fi
13616 rm -f conftest.err conftest.$ac_objext \
13617       conftest$ac_exeext conftest.$ac_ext
13618   done
13619 fi
13620 LIBS=$ac_func_search_save_LIBS
13621 fi
13622 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13623 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13624 if test "$ac_cv_search_opendir" != no; then
13625   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13626
13627 fi
13628
13629 else
13630   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13631 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13632 if test "${ac_cv_search_opendir+set}" = set; then
13633   echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635   ac_func_search_save_LIBS=$LIBS
13636 ac_cv_search_opendir=no
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643
13644 /* Override any gcc2 internal prototype to avoid an error.  */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 /* We use char because int might match the return type of a gcc2
13649    builtin and then its argument prototype would still apply.  */
13650 char opendir ();
13651 int
13652 main ()
13653 {
13654 opendir ();
13655   ;
13656   return 0;
13657 }
13658 _ACEOF
13659 rm -f conftest.$ac_objext conftest$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661   (eval $ac_link) 2>conftest.er1
13662   ac_status=$?
13663   grep -v '^ *+' conftest.er1 >conftest.err
13664   rm -f conftest.er1
13665   cat conftest.err >&5
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } &&
13668          { ac_try='test -z "$ac_c_werror_flag"
13669                          || test ! -s conftest.err'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; } &&
13675          { ac_try='test -s conftest$ac_exeext'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_cv_search_opendir="none required"
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 fi
13687 rm -f conftest.err conftest.$ac_objext \
13688       conftest$ac_exeext conftest.$ac_ext
13689 if test "$ac_cv_search_opendir" = no; then
13690   for ac_lib in x; do
13691     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13692     cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h.  */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h.  */
13698
13699 /* Override any gcc2 internal prototype to avoid an error.  */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 /* We use char because int might match the return type of a gcc2
13704    builtin and then its argument prototype would still apply.  */
13705 char opendir ();
13706 int
13707 main ()
13708 {
13709 opendir ();
13710   ;
13711   return 0;
13712 }
13713 _ACEOF
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716   (eval $ac_link) 2>conftest.er1
13717   ac_status=$?
13718   grep -v '^ *+' conftest.er1 >conftest.err
13719   rm -f conftest.er1
13720   cat conftest.err >&5
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } &&
13723          { ac_try='test -z "$ac_c_werror_flag"
13724                          || test ! -s conftest.err'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; } &&
13730          { ac_try='test -s conftest$ac_exeext'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; }; then
13736   ac_cv_search_opendir="-l$ac_lib"
13737 break
13738 else
13739   echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 fi
13743 rm -f conftest.err conftest.$ac_objext \
13744       conftest$ac_exeext conftest.$ac_ext
13745   done
13746 fi
13747 LIBS=$ac_func_search_save_LIBS
13748 fi
13749 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13750 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13751 if test "$ac_cv_search_opendir" != no; then
13752   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13753
13754 fi
13755
13756 fi
13757
13758 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13759 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13760 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h.  */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h.  */
13769 #include <sys/types.h>
13770 #include <sys/wait.h>
13771 #ifndef WEXITSTATUS
13772 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13773 #endif
13774 #ifndef WIFEXITED
13775 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13776 #endif
13777
13778 int
13779 main ()
13780 {
13781   int s;
13782   wait (&s);
13783   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790   (eval $ac_compile) 2>conftest.er1
13791   ac_status=$?
13792   grep -v '^ *+' conftest.er1 >conftest.err
13793   rm -f conftest.er1
13794   cat conftest.err >&5
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } &&
13797          { ac_try='test -z "$ac_c_werror_flag"
13798                          || test ! -s conftest.err'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_cv_header_sys_wait_h=yes
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ac_cv_header_sys_wait_h=no
13816 fi
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13818 fi
13819 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13820 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13821 if test $ac_cv_header_sys_wait_h = yes; then
13822
13823 cat >>confdefs.h <<\_ACEOF
13824 #define HAVE_SYS_WAIT_H 1
13825 _ACEOF
13826
13827 fi
13828
13829 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13830 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13831 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13832   echo $ECHO_N "(cached) $ECHO_C" >&6
13833 else
13834   cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h.  */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h.  */
13840 #include <sys/types.h>
13841 #include <termios.h>
13842 #ifdef TIOCGWINSZ
13843   yes
13844 #endif
13845
13846 _ACEOF
13847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13848   $EGREP "yes" >/dev/null 2>&1; then
13849   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13850 else
13851   ac_cv_sys_tiocgwinsz_in_termios_h=no
13852 fi
13853 rm -f conftest*
13854
13855 fi
13856 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13857 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13858
13859 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13860   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13861 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13862 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 #include <sys/types.h>
13872 #include <sys/ioctl.h>
13873 #ifdef TIOCGWINSZ
13874   yes
13875 #endif
13876
13877 _ACEOF
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879   $EGREP "yes" >/dev/null 2>&1; then
13880   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13881 else
13882   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13883 fi
13884 rm -f conftest*
13885
13886 fi
13887 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13888 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13889
13890   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13891
13892 cat >>confdefs.h <<\_ACEOF
13893 #define GWINSZ_IN_SYS_IOCTL 1
13894 _ACEOF
13895
13896   fi
13897 fi
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946 for ac_header in \
13947         arpa/inet.h             \
13948         arpa/nameser.h  \
13949         assert.h                \
13950         bits/types.h    \
13951         conio.h                 \
13952         crypt.h                 \
13953         direct.h                \
13954         errno.h                 \
13955         fcntl.h                 \
13956         filio.h                 \
13957         getopt.h                \
13958         grp.h                   \
13959         io.h                    \
13960         libutil.h               \
13961         limits.h                \
13962         locale.h                \
13963         malloc.h                \
13964         memory.h                \
13965         psap.h                  \
13966         pwd.h                   \
13967         process.h               \
13968         sgtty.h                 \
13969         shadow.h                \
13970         stddef.h                \
13971         string.h                \
13972         strings.h               \
13973         sysexits.h              \
13974         sys/file.h              \
13975         sys/filio.h             \
13976         sys/errno.h             \
13977         sys/ioctl.h             \
13978         sys/param.h             \
13979         sys/resource.h  \
13980         sys/select.h    \
13981         sys/socket.h    \
13982         sys/stat.h              \
13983         sys/syslog.h    \
13984         sys/time.h              \
13985         sys/types.h             \
13986         sys/uio.h               \
13987         syslog.h                \
13988         termios.h               \
13989         unistd.h                \
13990         utime.h                 \
13991         winsock.h               \
13992         winsock2.h              \
13993
13994 do
13995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13997   echo "$as_me:$LINENO: checking for $ac_header" >&5
13998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14000   echo $ECHO_N "(cached) $ECHO_C" >&6
14001 fi
14002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14004 else
14005   # Is the header compilable?
14006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014 $ac_includes_default
14015 #include <$ac_header>
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019   (eval $ac_compile) 2>conftest.er1
14020   ac_status=$?
14021   grep -v '^ *+' conftest.er1 >conftest.err
14022   rm -f conftest.er1
14023   cat conftest.err >&5
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); } &&
14026          { ac_try='test -z "$ac_c_werror_flag"
14027                          || test ! -s conftest.err'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; } &&
14033          { ac_try='test -s conftest.$ac_objext'
14034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035   (eval $ac_try) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); }; }; then
14039   ac_header_compiler=yes
14040 else
14041   echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ac_header_compiler=no
14045 fi
14046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14048 echo "${ECHO_T}$ac_header_compiler" >&6
14049
14050 # Is the header present?
14051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14053 cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059 #include <$ac_header>
14060 _ACEOF
14061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } >/dev/null; then
14069   if test -s conftest.err; then
14070     ac_cpp_err=$ac_c_preproc_warn_flag
14071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14072   else
14073     ac_cpp_err=
14074   fi
14075 else
14076   ac_cpp_err=yes
14077 fi
14078 if test -z "$ac_cpp_err"; then
14079   ac_header_preproc=yes
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084   ac_header_preproc=no
14085 fi
14086 rm -f conftest.err conftest.$ac_ext
14087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14088 echo "${ECHO_T}$ac_header_preproc" >&6
14089
14090 # So?  What about this header?
14091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14092   yes:no: )
14093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14097     ac_header_preproc=yes
14098     ;;
14099   no:yes:* )
14100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14112     (
14113       cat <<\_ASBOX
14114 ## --------------------------------------------- ##
14115 ## Report this to <http://www.openldap.org/its/> ##
14116 ## --------------------------------------------- ##
14117 _ASBOX
14118     ) |
14119       sed "s/^/$as_me: WARNING:     /" >&2
14120     ;;
14121 esac
14122 echo "$as_me:$LINENO: checking for $ac_header" >&5
14123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14125   echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127   eval "$as_ac_Header=\$ac_header_preproc"
14128 fi
14129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14131
14132 fi
14133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14134   cat >>confdefs.h <<_ACEOF
14135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14136 _ACEOF
14137
14138 fi
14139
14140 done
14141
14142
14143
14144 for ac_header in resolv.h
14145 do
14146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14147 echo "$as_me:$LINENO: checking for $ac_header" >&5
14148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14150   echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152   cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158 $ac_includes_default
14159 #include <netinet/in.h>
14160
14161
14162 #include <$ac_header>
14163 _ACEOF
14164 rm -f conftest.$ac_objext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14166   (eval $ac_compile) 2>conftest.er1
14167   ac_status=$?
14168   grep -v '^ *+' conftest.er1 >conftest.err
14169   rm -f conftest.er1
14170   cat conftest.err >&5
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); } &&
14173          { ac_try='test -z "$ac_c_werror_flag"
14174                          || test ! -s conftest.err'
14175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176   (eval $ac_try) 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; } &&
14180          { ac_try='test -s conftest.$ac_objext'
14181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182   (eval $ac_try) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; }; then
14186   eval "$as_ac_Header=yes"
14187 else
14188   echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 eval "$as_ac_Header=no"
14192 fi
14193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14194 fi
14195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14198   cat >>confdefs.h <<_ACEOF
14199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14200 _ACEOF
14201
14202 fi
14203
14204 done
14205
14206
14207
14208 for ac_header in netinet/tcp.h
14209 do
14210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14211 echo "$as_me:$LINENO: checking for $ac_header" >&5
14212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14214   echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216   cat >conftest.$ac_ext <<_ACEOF
14217 /* confdefs.h.  */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h.  */
14222 $ac_includes_default
14223 #include <netinet/in.h>
14224
14225
14226 #include <$ac_header>
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230   (eval $ac_compile) 2>conftest.er1
14231   ac_status=$?
14232   grep -v '^ *+' conftest.er1 >conftest.err
14233   rm -f conftest.er1
14234   cat conftest.err >&5
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); } &&
14237          { ac_try='test -z "$ac_c_werror_flag"
14238                          || test ! -s conftest.err'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; } &&
14244          { ac_try='test -s conftest.$ac_objext'
14245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246   (eval $ac_try) 2>&5
14247   ac_status=$?
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); }; }; then
14250   eval "$as_ac_Header=yes"
14251 else
14252   echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14254
14255 eval "$as_ac_Header=no"
14256 fi
14257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14258 fi
14259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14262   cat >>confdefs.h <<_ACEOF
14263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14264 _ACEOF
14265
14266 fi
14267
14268 done
14269
14270
14271
14272 for ac_header in sys/ucred.h
14273 do
14274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14275 echo "$as_me:$LINENO: checking for $ac_header" >&5
14276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280   cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286 $ac_includes_default
14287 #ifdef HAVE_SYS_PARAM_H
14288 #include <sys/param.h>
14289 #endif
14290
14291
14292 #include <$ac_header>
14293 _ACEOF
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296   (eval $ac_compile) 2>conftest.er1
14297   ac_status=$?
14298   grep -v '^ *+' conftest.er1 >conftest.err
14299   rm -f conftest.er1
14300   cat conftest.err >&5
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); } &&
14303          { ac_try='test -z "$ac_c_werror_flag"
14304                          || test ! -s conftest.err'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; } &&
14310          { ac_try='test -s conftest.$ac_objext'
14311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312   (eval $ac_try) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316   eval "$as_ac_Header=yes"
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321 eval "$as_ac_Header=no"
14322 fi
14323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14324 fi
14325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14328   cat >>confdefs.h <<_ACEOF
14329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14330 _ACEOF
14331
14332 fi
14333
14334 done
14335
14336
14337
14338
14339
14340 for ac_func in sigaction sigset
14341 do
14342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14343 echo "$as_me:$LINENO: checking for $ac_func" >&5
14344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14345 if eval "test \"\${$as_ac_var+set}\" = set"; then
14346   echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348   cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h.  */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h.  */
14354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14356 #define $ac_func innocuous_$ac_func
14357
14358 /* System header to define __stub macros and hopefully few prototypes,
14359     which can conflict with char $ac_func (); below.
14360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14361     <limits.h> exists even on freestanding compilers.  */
14362
14363 #ifdef __STDC__
14364 # include <limits.h>
14365 #else
14366 # include <assert.h>
14367 #endif
14368
14369 #undef $ac_func
14370
14371 /* Override any gcc2 internal prototype to avoid an error.  */
14372 #ifdef __cplusplus
14373 extern "C"
14374 {
14375 #endif
14376 /* We use char because int might match the return type of a gcc2
14377    builtin and then its argument prototype would still apply.  */
14378 char $ac_func ();
14379 /* The GNU C library defines this for functions which it implements
14380     to always fail with ENOSYS.  Some functions are actually named
14381     something starting with __ and the normal name is an alias.  */
14382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14383 choke me
14384 #else
14385 char (*f) () = $ac_func;
14386 #endif
14387 #ifdef __cplusplus
14388 }
14389 #endif
14390
14391 int
14392 main ()
14393 {
14394 return f != $ac_func;
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401   (eval $ac_link) 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } &&
14408          { ac_try='test -z "$ac_c_werror_flag"
14409                          || test ! -s conftest.err'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; } &&
14415          { ac_try='test -s conftest$ac_exeext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   eval "$as_ac_var=yes"
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 eval "$as_ac_var=no"
14427 fi
14428 rm -f conftest.err conftest.$ac_objext \
14429       conftest$ac_exeext conftest.$ac_ext
14430 fi
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14433 if test `eval echo '${'$as_ac_var'}'` = yes; then
14434   cat >>confdefs.h <<_ACEOF
14435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14436 _ACEOF
14437
14438 fi
14439 done
14440
14441
14442 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14443
14444 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14445 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14446 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   ac_check_lib_save_LIBS=$LIBS
14450 LIBS="-lV3  $LIBS"
14451 cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457
14458 /* Override any gcc2 internal prototype to avoid an error.  */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 /* We use char because int might match the return type of a gcc2
14463    builtin and then its argument prototype would still apply.  */
14464 char sigset ();
14465 int
14466 main ()
14467 {
14468 sigset ();
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14475   (eval $ac_link) 2>conftest.er1
14476   ac_status=$?
14477   grep -v '^ *+' conftest.er1 >conftest.err
14478   rm -f conftest.er1
14479   cat conftest.err >&5
14480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); } &&
14482          { ac_try='test -z "$ac_c_werror_flag"
14483                          || test ! -s conftest.err'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; } &&
14489          { ac_try='test -s conftest$ac_exeext'
14490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491   (eval $ac_try) 2>&5
14492   ac_status=$?
14493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); }; }; then
14495   ac_cv_lib_V3_sigset=yes
14496 else
14497   echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500 ac_cv_lib_V3_sigset=no
14501 fi
14502 rm -f conftest.err conftest.$ac_objext \
14503       conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14505 fi
14506 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14507 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14508 if test $ac_cv_lib_V3_sigset = yes; then
14509   cat >>confdefs.h <<_ACEOF
14510 #define HAVE_LIBV3 1
14511 _ACEOF
14512
14513   LIBS="-lV3 $LIBS"
14514
14515 fi
14516
14517 fi
14518
14519 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14520 echo "$as_me:$LINENO: checking for winsock" >&5
14521 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14522 if test "${ol_cv_winsock+set}" = set; then
14523   echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525   save_LIBS="$LIBS"
14526 for curlib in ws2_32 wsock32; do
14527         LIBS="$LIBS -l$curlib"
14528         cat >conftest.$ac_ext <<_ACEOF
14529 /* confdefs.h.  */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h.  */
14534 #include <winsock.h>
14535
14536 int
14537 main ()
14538 {
14539
14540                         socket(0,0,0);
14541                         select(0,NULL,NULL,NULL,NULL);
14542                         closesocket(0);
14543                         gethostname(NULL,0);
14544
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551   (eval $ac_link) 2>conftest.er1
14552   ac_status=$?
14553   grep -v '^ *+' conftest.er1 >conftest.err
14554   rm -f conftest.er1
14555   cat conftest.err >&5
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); } &&
14558          { ac_try='test -z "$ac_c_werror_flag"
14559                          || test ! -s conftest.err'
14560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14561   (eval $ac_try) 2>&5
14562   ac_status=$?
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); }; } &&
14565          { ac_try='test -s conftest$ac_exeext'
14566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567   (eval $ac_try) 2>&5
14568   ac_status=$?
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); }; }; then
14571   ol_cv_winsock=yes
14572 else
14573   echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14575
14576 ol_cv_winsock=no
14577 fi
14578 rm -f conftest.err conftest.$ac_objext \
14579       conftest$ac_exeext conftest.$ac_ext
14580
14581         if test $ol_cv_winsock = yes; then
14582
14583 cat >>confdefs.h <<\_ACEOF
14584 #define HAVE_WINSOCK 1
14585 _ACEOF
14586
14587                 ac_cv_func_socket=yes
14588                 ac_cv_func_select=yes
14589                 ac_cv_func_closesocket=yes
14590                 ac_cv_func_gethostname=yes
14591                 if test $curlib = ws2_32; then
14592                         ol_cv_winsock=winsock2
14593
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_WINSOCK2 1
14596 _ACEOF
14597
14598                 fi
14599                 break
14600         fi
14601         LIBS="$save_LIBS"
14602 done
14603 fi
14604 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14605 echo "${ECHO_T}$ol_cv_winsock" >&6
14606 fi
14607
14608
14609 echo "$as_me:$LINENO: checking for socket" >&5
14610 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14611 if test "${ac_cv_func_socket+set}" = set; then
14612   echo $ECHO_N "(cached) $ECHO_C" >&6
14613 else
14614   cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14622 #define socket innocuous_socket
14623
14624 /* System header to define __stub macros and hopefully few prototypes,
14625     which can conflict with char socket (); below.
14626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14627     <limits.h> exists even on freestanding compilers.  */
14628
14629 #ifdef __STDC__
14630 # include <limits.h>
14631 #else
14632 # include <assert.h>
14633 #endif
14634
14635 #undef socket
14636
14637 /* Override any gcc2 internal prototype to avoid an error.  */
14638 #ifdef __cplusplus
14639 extern "C"
14640 {
14641 #endif
14642 /* We use char because int might match the return type of a gcc2
14643    builtin and then its argument prototype would still apply.  */
14644 char socket ();
14645 /* The GNU C library defines this for functions which it implements
14646     to always fail with ENOSYS.  Some functions are actually named
14647     something starting with __ and the normal name is an alias.  */
14648 #if defined (__stub_socket) || defined (__stub___socket)
14649 choke me
14650 #else
14651 char (*f) () = socket;
14652 #endif
14653 #ifdef __cplusplus
14654 }
14655 #endif
14656
14657 int
14658 main ()
14659 {
14660 return f != socket;
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667   (eval $ac_link) 2>conftest.er1
14668   ac_status=$?
14669   grep -v '^ *+' conftest.er1 >conftest.err
14670   rm -f conftest.er1
14671   cat conftest.err >&5
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -z "$ac_c_werror_flag"
14675                          || test ! -s conftest.err'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; } &&
14681          { ac_try='test -s conftest$ac_exeext'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; }; then
14687   ac_cv_func_socket=yes
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_cv_func_socket=no
14693 fi
14694 rm -f conftest.err conftest.$ac_objext \
14695       conftest$ac_exeext conftest.$ac_ext
14696 fi
14697 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14698 echo "${ECHO_T}$ac_cv_func_socket" >&6
14699 if test $ac_cv_func_socket = yes; then
14700   :
14701 else
14702
14703
14704 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14705 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14706 if test "${ac_cv_lib_socket_main+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709   ac_check_lib_save_LIBS=$LIBS
14710 LIBS="-lsocket  $LIBS"
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h.  */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h.  */
14717
14718
14719 int
14720 main ()
14721 {
14722 main ();
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727 rm -f conftest.$ac_objext conftest$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729   (eval $ac_link) 2>conftest.er1
14730   ac_status=$?
14731   grep -v '^ *+' conftest.er1 >conftest.err
14732   rm -f conftest.er1
14733   cat conftest.err >&5
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } &&
14736          { ac_try='test -z "$ac_c_werror_flag"
14737                          || test ! -s conftest.err'
14738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739   (eval $ac_try) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; } &&
14743          { ac_try='test -s conftest$ac_exeext'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; }; then
14749   ac_cv_lib_socket_main=yes
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_cv_lib_socket_main=no
14755 fi
14756 rm -f conftest.err conftest.$ac_objext \
14757       conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14761 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14762 if test $ac_cv_lib_socket_main = yes; then
14763   cat >>confdefs.h <<_ACEOF
14764 #define HAVE_LIBSOCKET 1
14765 _ACEOF
14766
14767   LIBS="-lsocket $LIBS"
14768
14769 fi
14770
14771
14772 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14773 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14774 if test "${ac_cv_lib_net_main+set}" = set; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777   ac_check_lib_save_LIBS=$LIBS
14778 LIBS="-lnet  $LIBS"
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785
14786
14787 int
14788 main ()
14789 {
14790 main ();
14791   ;
14792   return 0;
14793 }
14794 _ACEOF
14795 rm -f conftest.$ac_objext conftest$ac_exeext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14797   (eval $ac_link) 2>conftest.er1
14798   ac_status=$?
14799   grep -v '^ *+' conftest.er1 >conftest.err
14800   rm -f conftest.er1
14801   cat conftest.err >&5
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); } &&
14804          { ac_try='test -z "$ac_c_werror_flag"
14805                          || test ! -s conftest.err'
14806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807   (eval $ac_try) 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); }; } &&
14811          { ac_try='test -s conftest$ac_exeext'
14812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813   (eval $ac_try) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; }; then
14817   ac_cv_lib_net_main=yes
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822 ac_cv_lib_net_main=no
14823 fi
14824 rm -f conftest.err conftest.$ac_objext \
14825       conftest$ac_exeext conftest.$ac_ext
14826 LIBS=$ac_check_lib_save_LIBS
14827 fi
14828 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14829 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14830 if test $ac_cv_lib_net_main = yes; then
14831   cat >>confdefs.h <<_ACEOF
14832 #define HAVE_LIBNET 1
14833 _ACEOF
14834
14835   LIBS="-lnet $LIBS"
14836
14837 fi
14838
14839
14840 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14841 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14842 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14843   echo $ECHO_N "(cached) $ECHO_C" >&6
14844 else
14845   ac_check_lib_save_LIBS=$LIBS
14846 LIBS="-lnsl_s  $LIBS"
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h.  */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h.  */
14853
14854
14855 int
14856 main ()
14857 {
14858 main ();
14859   ;
14860   return 0;
14861 }
14862 _ACEOF
14863 rm -f conftest.$ac_objext conftest$ac_exeext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865   (eval $ac_link) 2>conftest.er1
14866   ac_status=$?
14867   grep -v '^ *+' conftest.er1 >conftest.err
14868   rm -f conftest.er1
14869   cat conftest.err >&5
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); } &&
14872          { ac_try='test -z "$ac_c_werror_flag"
14873                          || test ! -s conftest.err'
14874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875   (eval $ac_try) 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; } &&
14879          { ac_try='test -s conftest$ac_exeext'
14880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881   (eval $ac_try) 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); }; }; then
14885   ac_cv_lib_nsl_s_main=yes
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890 ac_cv_lib_nsl_s_main=no
14891 fi
14892 rm -f conftest.err conftest.$ac_objext \
14893       conftest$ac_exeext conftest.$ac_ext
14894 LIBS=$ac_check_lib_save_LIBS
14895 fi
14896 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14897 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14898 if test $ac_cv_lib_nsl_s_main = yes; then
14899   cat >>confdefs.h <<_ACEOF
14900 #define HAVE_LIBNSL_S 1
14901 _ACEOF
14902
14903   LIBS="-lnsl_s $LIBS"
14904
14905 fi
14906
14907
14908 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14909 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14910 if test "${ac_cv_lib_nsl_main+set}" = set; then
14911   echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913   ac_check_lib_save_LIBS=$LIBS
14914 LIBS="-lnsl  $LIBS"
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h.  */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h.  */
14921
14922
14923 int
14924 main ()
14925 {
14926 main ();
14927   ;
14928   return 0;
14929 }
14930 _ACEOF
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933   (eval $ac_link) 2>conftest.er1
14934   ac_status=$?
14935   grep -v '^ *+' conftest.er1 >conftest.err
14936   rm -f conftest.er1
14937   cat conftest.err >&5
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); } &&
14940          { ac_try='test -z "$ac_c_werror_flag"
14941                          || test ! -s conftest.err'
14942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943   (eval $ac_try) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); }; } &&
14947          { ac_try='test -s conftest$ac_exeext'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; }; then
14953   ac_cv_lib_nsl_main=yes
14954 else
14955   echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 ac_cv_lib_nsl_main=no
14959 fi
14960 rm -f conftest.err conftest.$ac_objext \
14961       conftest$ac_exeext conftest.$ac_ext
14962 LIBS=$ac_check_lib_save_LIBS
14963 fi
14964 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14965 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14966 if test $ac_cv_lib_nsl_main = yes; then
14967   cat >>confdefs.h <<_ACEOF
14968 #define HAVE_LIBNSL 1
14969 _ACEOF
14970
14971   LIBS="-lnsl $LIBS"
14972
14973 fi
14974
14975
14976 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14977 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14978 if test "${ac_cv_lib_inet_socket+set}" = set; then
14979   echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981   ac_check_lib_save_LIBS=$LIBS
14982 LIBS="-linet  $LIBS"
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989
14990 /* Override any gcc2 internal prototype to avoid an error.  */
14991 #ifdef __cplusplus
14992 extern "C"
14993 #endif
14994 /* We use char because int might match the return type of a gcc2
14995    builtin and then its argument prototype would still apply.  */
14996 char socket ();
14997 int
14998 main ()
14999 {
15000 socket ();
15001   ;
15002   return 0;
15003 }
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007   (eval $ac_link) 2>conftest.er1
15008   ac_status=$?
15009   grep -v '^ *+' conftest.er1 >conftest.err
15010   rm -f conftest.er1
15011   cat conftest.err >&5
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); } &&
15014          { ac_try='test -z "$ac_c_werror_flag"
15015                          || test ! -s conftest.err'
15016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017   (eval $ac_try) 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; } &&
15021          { ac_try='test -s conftest$ac_exeext'
15022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023   (eval $ac_try) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; }; then
15027   ac_cv_lib_inet_socket=yes
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032 ac_cv_lib_inet_socket=no
15033 fi
15034 rm -f conftest.err conftest.$ac_objext \
15035       conftest$ac_exeext conftest.$ac_ext
15036 LIBS=$ac_check_lib_save_LIBS
15037 fi
15038 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15039 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15040 if test $ac_cv_lib_inet_socket = yes; then
15041   cat >>confdefs.h <<_ACEOF
15042 #define HAVE_LIBINET 1
15043 _ACEOF
15044
15045   LIBS="-linet $LIBS"
15046
15047 fi
15048
15049
15050 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15051 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15052 if test "${ac_cv_lib_gen_main+set}" = set; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-lgen  $LIBS"
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063
15064
15065 int
15066 main ()
15067 {
15068 main ();
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15075   (eval $ac_link) 2>conftest.er1
15076   ac_status=$?
15077   grep -v '^ *+' conftest.er1 >conftest.err
15078   rm -f conftest.er1
15079   cat conftest.err >&5
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } &&
15082          { ac_try='test -z "$ac_c_werror_flag"
15083                          || test ! -s conftest.err'
15084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085   (eval $ac_try) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }; } &&
15089          { ac_try='test -s conftest$ac_exeext'
15090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091   (eval $ac_try) 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; }; then
15095   ac_cv_lib_gen_main=yes
15096 else
15097   echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15099
15100 ac_cv_lib_gen_main=no
15101 fi
15102 rm -f conftest.err conftest.$ac_objext \
15103       conftest$ac_exeext conftest.$ac_ext
15104 LIBS=$ac_check_lib_save_LIBS
15105 fi
15106 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15107 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15108 if test $ac_cv_lib_gen_main = yes; then
15109   cat >>confdefs.h <<_ACEOF
15110 #define HAVE_LIBGEN 1
15111 _ACEOF
15112
15113   LIBS="-lgen $LIBS"
15114
15115 fi
15116
15117
15118 fi
15119
15120
15121 echo "$as_me:$LINENO: checking for select" >&5
15122 echo $ECHO_N "checking for select... $ECHO_C" >&6
15123 if test "${ac_cv_func_select+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126   cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h.  */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h.  */
15132 /* Define select to an innocuous variant, in case <limits.h> declares select.
15133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15134 #define select innocuous_select
15135
15136 /* System header to define __stub macros and hopefully few prototypes,
15137     which can conflict with char select (); below.
15138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15139     <limits.h> exists even on freestanding compilers.  */
15140
15141 #ifdef __STDC__
15142 # include <limits.h>
15143 #else
15144 # include <assert.h>
15145 #endif
15146
15147 #undef select
15148
15149 /* Override any gcc2 internal prototype to avoid an error.  */
15150 #ifdef __cplusplus
15151 extern "C"
15152 {
15153 #endif
15154 /* We use char because int might match the return type of a gcc2
15155    builtin and then its argument prototype would still apply.  */
15156 char select ();
15157 /* The GNU C library defines this for functions which it implements
15158     to always fail with ENOSYS.  Some functions are actually named
15159     something starting with __ and the normal name is an alias.  */
15160 #if defined (__stub_select) || defined (__stub___select)
15161 choke me
15162 #else
15163 char (*f) () = select;
15164 #endif
15165 #ifdef __cplusplus
15166 }
15167 #endif
15168
15169 int
15170 main ()
15171 {
15172 return f != select;
15173   ;
15174   return 0;
15175 }
15176 _ACEOF
15177 rm -f conftest.$ac_objext conftest$ac_exeext
15178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15179   (eval $ac_link) 2>conftest.er1
15180   ac_status=$?
15181   grep -v '^ *+' conftest.er1 >conftest.err
15182   rm -f conftest.er1
15183   cat conftest.err >&5
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); } &&
15186          { ac_try='test -z "$ac_c_werror_flag"
15187                          || test ! -s conftest.err'
15188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189   (eval $ac_try) 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; } &&
15193          { ac_try='test -s conftest$ac_exeext'
15194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195   (eval $ac_try) 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); }; }; then
15199   ac_cv_func_select=yes
15200 else
15201   echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15203
15204 ac_cv_func_select=no
15205 fi
15206 rm -f conftest.err conftest.$ac_objext \
15207       conftest$ac_exeext conftest.$ac_ext
15208 fi
15209 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15210 echo "${ECHO_T}$ac_cv_func_select" >&6
15211 if test $ac_cv_func_select = yes; then
15212   :
15213 else
15214   { { echo "$as_me:$LINENO: error: select() required." >&5
15215 echo "$as_me: error: select() required." >&2;}
15216    { (exit 1); exit 1; }; }
15217 fi
15218
15219
15220 if test "${ac_cv_header_winsock_h}" != yes; then
15221
15222
15223 for ac_header in sys/select.h sys/socket.h
15224 do
15225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15227   echo "$as_me:$LINENO: checking for $ac_header" >&5
15228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 fi
15232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15234 else
15235   # Is the header compilable?
15236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244 $ac_includes_default
15245 #include <$ac_header>
15246 _ACEOF
15247 rm -f conftest.$ac_objext
15248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249   (eval $ac_compile) 2>conftest.er1
15250   ac_status=$?
15251   grep -v '^ *+' conftest.er1 >conftest.err
15252   rm -f conftest.er1
15253   cat conftest.err >&5
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } &&
15256          { ac_try='test -z "$ac_c_werror_flag"
15257                          || test ! -s conftest.err'
15258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259   (eval $ac_try) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }; } &&
15263          { ac_try='test -s conftest.$ac_objext'
15264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15265   (eval $ac_try) 2>&5
15266   ac_status=$?
15267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); }; }; then
15269   ac_header_compiler=yes
15270 else
15271   echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ac_header_compiler=no
15275 fi
15276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15278 echo "${ECHO_T}$ac_header_compiler" >&6
15279
15280 # Is the header present?
15281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15283 cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 #include <$ac_header>
15290 _ACEOF
15291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15293   ac_status=$?
15294   grep -v '^ *+' conftest.er1 >conftest.err
15295   rm -f conftest.er1
15296   cat conftest.err >&5
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); } >/dev/null; then
15299   if test -s conftest.err; then
15300     ac_cpp_err=$ac_c_preproc_warn_flag
15301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15302   else
15303     ac_cpp_err=
15304   fi
15305 else
15306   ac_cpp_err=yes
15307 fi
15308 if test -z "$ac_cpp_err"; then
15309   ac_header_preproc=yes
15310 else
15311   echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314   ac_header_preproc=no
15315 fi
15316 rm -f conftest.err conftest.$ac_ext
15317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15318 echo "${ECHO_T}$ac_header_preproc" >&6
15319
15320 # So?  What about this header?
15321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15322   yes:no: )
15323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15327     ac_header_preproc=yes
15328     ;;
15329   no:yes:* )
15330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15332     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15333 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15336     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15337 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15342     (
15343       cat <<\_ASBOX
15344 ## --------------------------------------------- ##
15345 ## Report this to <http://www.openldap.org/its/> ##
15346 ## --------------------------------------------- ##
15347 _ASBOX
15348     ) |
15349       sed "s/^/$as_me: WARNING:     /" >&2
15350     ;;
15351 esac
15352 echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355   echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357   eval "$as_ac_Header=\$ac_header_preproc"
15358 fi
15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15361
15362 fi
15363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15364   cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15366 _ACEOF
15367
15368 fi
15369
15370 done
15371
15372 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15373 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15374 if test "${ac_cv_func_select_args+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15378  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15379   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15380    cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h.  */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h.  */
15386 $ac_includes_default
15387 #if HAVE_SYS_SELECT_H
15388 # include <sys/select.h>
15389 #endif
15390 #if HAVE_SYS_SOCKET_H
15391 # include <sys/socket.h>
15392 #endif
15393
15394 int
15395 main ()
15396 {
15397 extern int select ($ac_arg1,
15398                                             $ac_arg234, $ac_arg234, $ac_arg234,
15399                                             $ac_arg5);
15400   ;
15401   return 0;
15402 }
15403 _ACEOF
15404 rm -f conftest.$ac_objext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15406   (eval $ac_compile) 2>conftest.er1
15407   ac_status=$?
15408   grep -v '^ *+' conftest.er1 >conftest.err
15409   rm -f conftest.er1
15410   cat conftest.err >&5
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); } &&
15413          { ac_try='test -z "$ac_c_werror_flag"
15414                          || test ! -s conftest.err'
15415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416   (eval $ac_try) 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; } &&
15420          { ac_try='test -s conftest.$ac_objext'
15421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422   (eval $ac_try) 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; }; then
15426   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 fi
15432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15433   done
15434  done
15435 done
15436 # Provide a safe default value.
15437 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15438
15439 fi
15440 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15441 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15442 ac_save_IFS=$IFS; IFS=','
15443 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15444 IFS=$ac_save_IFS
15445 shift
15446
15447 cat >>confdefs.h <<_ACEOF
15448 #define SELECT_TYPE_ARG1 $1
15449 _ACEOF
15450
15451
15452 cat >>confdefs.h <<_ACEOF
15453 #define SELECT_TYPE_ARG234 ($2)
15454 _ACEOF
15455
15456
15457 cat >>confdefs.h <<_ACEOF
15458 #define SELECT_TYPE_ARG5 ($3)
15459 _ACEOF
15460
15461 rm -f conftest*
15462
15463 fi
15464
15465
15466
15467 for ac_func in poll
15468 do
15469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15470 echo "$as_me:$LINENO: checking for $ac_func" >&5
15471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15472 if eval "test \"\${$as_ac_var+set}\" = set"; then
15473   echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475   cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h.  */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h.  */
15481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15483 #define $ac_func innocuous_$ac_func
15484
15485 /* System header to define __stub macros and hopefully few prototypes,
15486     which can conflict with char $ac_func (); below.
15487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15488     <limits.h> exists even on freestanding compilers.  */
15489
15490 #ifdef __STDC__
15491 # include <limits.h>
15492 #else
15493 # include <assert.h>
15494 #endif
15495
15496 #undef $ac_func
15497
15498 /* Override any gcc2 internal prototype to avoid an error.  */
15499 #ifdef __cplusplus
15500 extern "C"
15501 {
15502 #endif
15503 /* We use char because int might match the return type of a gcc2
15504    builtin and then its argument prototype would still apply.  */
15505 char $ac_func ();
15506 /* The GNU C library defines this for functions which it implements
15507     to always fail with ENOSYS.  Some functions are actually named
15508     something starting with __ and the normal name is an alias.  */
15509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15510 choke me
15511 #else
15512 char (*f) () = $ac_func;
15513 #endif
15514 #ifdef __cplusplus
15515 }
15516 #endif
15517
15518 int
15519 main ()
15520 {
15521 return f != $ac_func;
15522   ;
15523   return 0;
15524 }
15525 _ACEOF
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528   (eval $ac_link) 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -z "$ac_c_werror_flag"
15536                          || test ! -s conftest.err'
15537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538   (eval $ac_try) 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); }; } &&
15542          { ac_try='test -s conftest$ac_exeext'
15543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544   (eval $ac_try) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }; then
15548   eval "$as_ac_var=yes"
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553 eval "$as_ac_var=no"
15554 fi
15555 rm -f conftest.err conftest.$ac_objext \
15556       conftest$ac_exeext conftest.$ac_ext
15557 fi
15558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15560 if test `eval echo '${'$as_ac_var'}'` = yes; then
15561   cat >>confdefs.h <<_ACEOF
15562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15563 _ACEOF
15564
15565 fi
15566 done
15567
15568
15569 for ac_header in poll.h
15570 do
15571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573   echo "$as_me:$LINENO: checking for $ac_header" >&5
15574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15576   echo $ECHO_N "(cached) $ECHO_C" >&6
15577 fi
15578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15580 else
15581   # Is the header compilable?
15582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15584 cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h.  */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h.  */
15590 $ac_includes_default
15591 #include <$ac_header>
15592 _ACEOF
15593 rm -f conftest.$ac_objext
15594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15595   (eval $ac_compile) 2>conftest.er1
15596   ac_status=$?
15597   grep -v '^ *+' conftest.er1 >conftest.err
15598   rm -f conftest.er1
15599   cat conftest.err >&5
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } &&
15602          { ac_try='test -z "$ac_c_werror_flag"
15603                          || test ! -s conftest.err'
15604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605   (eval $ac_try) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }; } &&
15609          { ac_try='test -s conftest.$ac_objext'
15610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611   (eval $ac_try) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; }; then
15615   ac_header_compiler=yes
15616 else
15617   echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15619
15620 ac_header_compiler=no
15621 fi
15622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15624 echo "${ECHO_T}$ac_header_compiler" >&6
15625
15626 # Is the header present?
15627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h.  */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h.  */
15635 #include <$ac_header>
15636 _ACEOF
15637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15639   ac_status=$?
15640   grep -v '^ *+' conftest.er1 >conftest.err
15641   rm -f conftest.er1
15642   cat conftest.err >&5
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); } >/dev/null; then
15645   if test -s conftest.err; then
15646     ac_cpp_err=$ac_c_preproc_warn_flag
15647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15648   else
15649     ac_cpp_err=
15650   fi
15651 else
15652   ac_cpp_err=yes
15653 fi
15654 if test -z "$ac_cpp_err"; then
15655   ac_header_preproc=yes
15656 else
15657   echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660   ac_header_preproc=no
15661 fi
15662 rm -f conftest.err conftest.$ac_ext
15663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15664 echo "${ECHO_T}$ac_header_preproc" >&6
15665
15666 # So?  What about this header?
15667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15668   yes:no: )
15669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673     ac_header_preproc=yes
15674     ;;
15675   no:yes:* )
15676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15688     (
15689       cat <<\_ASBOX
15690 ## --------------------------------------------- ##
15691 ## Report this to <http://www.openldap.org/its/> ##
15692 ## --------------------------------------------- ##
15693 _ASBOX
15694     ) |
15695       sed "s/^/$as_me: WARNING:     /" >&2
15696     ;;
15697 esac
15698 echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703   eval "$as_ac_Header=\$ac_header_preproc"
15704 fi
15705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15707
15708 fi
15709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15710   cat >>confdefs.h <<_ACEOF
15711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15712 _ACEOF
15713
15714 fi
15715
15716 done
15717
15718
15719
15720 for ac_header in sys/epoll.h
15721 do
15722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724   echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727   echo $ECHO_N "(cached) $ECHO_C" >&6
15728 fi
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15731 else
15732   # Is the header compilable?
15733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h.  */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h.  */
15741 $ac_includes_default
15742 #include <$ac_header>
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746   (eval $ac_compile) 2>conftest.er1
15747   ac_status=$?
15748   grep -v '^ *+' conftest.er1 >conftest.err
15749   rm -f conftest.er1
15750   cat conftest.err >&5
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); } &&
15753          { ac_try='test -z "$ac_c_werror_flag"
15754                          || test ! -s conftest.err'
15755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756   (eval $ac_try) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); }; } &&
15760          { ac_try='test -s conftest.$ac_objext'
15761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762   (eval $ac_try) 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); }; }; then
15766   ac_header_compiler=yes
15767 else
15768   echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_header_compiler=no
15772 fi
15773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6
15776
15777 # Is the header present?
15778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h.  */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h.  */
15786 #include <$ac_header>
15787 _ACEOF
15788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15790   ac_status=$?
15791   grep -v '^ *+' conftest.er1 >conftest.err
15792   rm -f conftest.er1
15793   cat conftest.err >&5
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); } >/dev/null; then
15796   if test -s conftest.err; then
15797     ac_cpp_err=$ac_c_preproc_warn_flag
15798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15799   else
15800     ac_cpp_err=
15801   fi
15802 else
15803   ac_cpp_err=yes
15804 fi
15805 if test -z "$ac_cpp_err"; then
15806   ac_header_preproc=yes
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811   ac_header_preproc=no
15812 fi
15813 rm -f conftest.err conftest.$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815 echo "${ECHO_T}$ac_header_preproc" >&6
15816
15817 # So?  What about this header?
15818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15819   yes:no: )
15820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824     ac_header_preproc=yes
15825     ;;
15826   no:yes:* )
15827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15839     (
15840       cat <<\_ASBOX
15841 ## --------------------------------------------- ##
15842 ## Report this to <http://www.openldap.org/its/> ##
15843 ## --------------------------------------------- ##
15844 _ASBOX
15845     ) |
15846       sed "s/^/$as_me: WARNING:     /" >&2
15847     ;;
15848 esac
15849 echo "$as_me:$LINENO: checking for $ac_header" >&5
15850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15852   echo $ECHO_N "(cached) $ECHO_C" >&6
15853 else
15854   eval "$as_ac_Header=\$ac_header_preproc"
15855 fi
15856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15858
15859 fi
15860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15861   cat >>confdefs.h <<_ACEOF
15862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15863 _ACEOF
15864
15865 fi
15866
15867 done
15868
15869 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15870 echo "$as_me:$LINENO: checking for epoll system call" >&5
15871 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15872 if test "$cross_compiling" = yes; then
15873   echo "$as_me:$LINENO: result: no" >&5
15874 echo "${ECHO_T}no" >&6
15875 else
15876   cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 int main(int argc, char *argv)
15883 {
15884         int epfd = epoll_create(256);
15885         exit (epfd == -1 ? 1 : 0);
15886 }
15887 _ACEOF
15888 rm -f conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890   (eval $ac_link) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   echo "$as_me:$LINENO: result: yes" >&5
15900 echo "${ECHO_T}yes" >&6
15901
15902 cat >>confdefs.h <<\_ACEOF
15903 #define HAVE_EPOLL 1
15904 _ACEOF
15905
15906 else
15907   echo "$as_me: program exited with status $ac_status" >&5
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15910
15911 ( exit $ac_status )
15912 echo "$as_me:$LINENO: result: no" >&5
15913 echo "${ECHO_T}no" >&6
15914 fi
15915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15916 fi
15917 fi
15918
15919 # strerror checks
15920 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15921 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15922 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15923   echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925
15926         cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932
15933 #include <stdio.h>
15934 #include <sys/types.h>
15935 #include <errno.h>
15936 #ifdef WINNT
15937 #include <stdlib.h>
15938 #endif
15939 int
15940 main ()
15941 {
15942 char *c = (char *) *sys_errlist
15943   ;
15944   return 0;
15945 }
15946 _ACEOF
15947 rm -f conftest.$ac_objext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949   (eval $ac_compile) 2>conftest.er1
15950   ac_status=$?
15951   grep -v '^ *+' conftest.er1 >conftest.err
15952   rm -f conftest.er1
15953   cat conftest.err >&5
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } &&
15956          { ac_try='test -z "$ac_c_werror_flag"
15957                          || test ! -s conftest.err'
15958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959   (eval $ac_try) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; } &&
15963          { ac_try='test -s conftest.$ac_objext'
15964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965   (eval $ac_try) 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; }; then
15969   ol_cv_dcl_sys_errlist=yes
15970         ol_cv_have_sys_errlist=yes
15971 else
15972   echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 ol_cv_dcl_sys_errlist=no
15976 fi
15977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15978 fi
15979 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15980 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15981 #
15982 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15983 if test $ol_cv_dcl_sys_errlist = no ; then
15984
15985 cat >>confdefs.h <<\_ACEOF
15986 #define DECL_SYS_ERRLIST 1
15987 _ACEOF
15988
15989
15990         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15991 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15992 if test "${ol_cv_have_sys_errlist+set}" = set; then
15993   echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995
15996                 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h.  */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h.  */
16002 #include <errno.h>
16003 int
16004 main ()
16005 {
16006 char *c = (char *) *sys_errlist
16007   ;
16008   return 0;
16009 }
16010 _ACEOF
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16013   (eval $ac_link) 2>conftest.er1
16014   ac_status=$?
16015   grep -v '^ *+' conftest.er1 >conftest.err
16016   rm -f conftest.er1
16017   cat conftest.err >&5
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); } &&
16020          { ac_try='test -z "$ac_c_werror_flag"
16021                          || test ! -s conftest.err'
16022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023   (eval $ac_try) 2>&5
16024   ac_status=$?
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); }; } &&
16027          { ac_try='test -s conftest$ac_exeext'
16028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029   (eval $ac_try) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; }; then
16033   ol_cv_have_sys_errlist=yes
16034 else
16035   echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038 ol_cv_have_sys_errlist=no
16039 fi
16040 rm -f conftest.err conftest.$ac_objext \
16041       conftest$ac_exeext conftest.$ac_ext
16042 fi
16043 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16044 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16045 fi
16046 if test $ol_cv_have_sys_errlist = yes ; then
16047
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE_SYS_ERRLIST 1
16050 _ACEOF
16051
16052 fi
16053
16054
16055 for ac_func in strerror strerror_r
16056 do
16057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16058 echo "$as_me:$LINENO: checking for $ac_func" >&5
16059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16060 if eval "test \"\${$as_ac_var+set}\" = set"; then
16061   echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063   cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16071 #define $ac_func innocuous_$ac_func
16072
16073 /* System header to define __stub macros and hopefully few prototypes,
16074     which can conflict with char $ac_func (); below.
16075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16076     <limits.h> exists even on freestanding compilers.  */
16077
16078 #ifdef __STDC__
16079 # include <limits.h>
16080 #else
16081 # include <assert.h>
16082 #endif
16083
16084 #undef $ac_func
16085
16086 /* Override any gcc2 internal prototype to avoid an error.  */
16087 #ifdef __cplusplus
16088 extern "C"
16089 {
16090 #endif
16091 /* We use char because int might match the return type of a gcc2
16092    builtin and then its argument prototype would still apply.  */
16093 char $ac_func ();
16094 /* The GNU C library defines this for functions which it implements
16095     to always fail with ENOSYS.  Some functions are actually named
16096     something starting with __ and the normal name is an alias.  */
16097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16098 choke me
16099 #else
16100 char (*f) () = $ac_func;
16101 #endif
16102 #ifdef __cplusplus
16103 }
16104 #endif
16105
16106 int
16107 main ()
16108 {
16109 return f != $ac_func;
16110   ;
16111   return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16116   (eval $ac_link) 2>conftest.er1
16117   ac_status=$?
16118   grep -v '^ *+' conftest.er1 >conftest.err
16119   rm -f conftest.er1
16120   cat conftest.err >&5
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); } &&
16123          { ac_try='test -z "$ac_c_werror_flag"
16124                          || test ! -s conftest.err'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; } &&
16130          { ac_try='test -s conftest$ac_exeext'
16131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132   (eval $ac_try) 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); }; }; then
16136   eval "$as_ac_var=yes"
16137 else
16138   echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 eval "$as_ac_var=no"
16142 fi
16143 rm -f conftest.err conftest.$ac_objext \
16144       conftest$ac_exeext conftest.$ac_ext
16145 fi
16146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16148 if test `eval echo '${'$as_ac_var'}'` = yes; then
16149   cat >>confdefs.h <<_ACEOF
16150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16151 _ACEOF
16152
16153 fi
16154 done
16155
16156 ol_cv_func_strerror_r=no
16157 if test "${ac_cv_func_strerror_r}" = yes ; then
16158         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16159 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16160 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163
16164         cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h.  */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h.  */
16170 #include <string.h>
16171 _ACEOF
16172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173   $EGREP "strerror_r" >/dev/null 2>&1; then
16174   ol_decl_strerror_r=yes
16175 else
16176   ol_decl_strerror_r=no
16177 fi
16178 rm -f conftest*
16179
16180         if test $ol_decl_strerror_r = yes ; then
16181                 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187 #include <string.h>
16188 int
16189 main ()
16190 {
16191    /* from autoconf 2.59 */
16192                                 char buf[100];
16193                                 char x = *strerror_r (0, buf, sizeof buf);
16194                                 char *p = strerror_r (0, buf, sizeof buf);
16195
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202   (eval $ac_compile) 2>conftest.er1
16203   ac_status=$?
16204   grep -v '^ *+' conftest.er1 >conftest.err
16205   rm -f conftest.er1
16206   cat conftest.err >&5
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); } &&
16209          { ac_try='test -z "$ac_c_werror_flag"
16210                          || test ! -s conftest.err'
16211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212   (eval $ac_try) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; } &&
16216          { ac_try='test -s conftest.$ac_objext'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; }; then
16222   ol_cv_nonposix_strerror_r=yes
16223 else
16224   echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ol_cv_nonposix_strerror_r=no
16228 fi
16229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16230         else
16231                 if test "$cross_compiling" = yes; then
16232   ol_cv_nonposix_strerror=no
16233 else
16234   cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240
16241                         main() {
16242                                 char buf[100];
16243                                 buf[0] = 0;
16244                                 strerror_r( 1, buf, sizeof buf );
16245                                 exit( buf[0] == 0 );
16246                         }
16247
16248 _ACEOF
16249 rm -f conftest$ac_exeext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16251   (eval $ac_link) 2>&5
16252   ac_status=$?
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256   (eval $ac_try) 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }; then
16260   ol_cv_nonposix_strerror_r=yes
16261 else
16262   echo "$as_me: program exited with status $ac_status" >&5
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ( exit $ac_status )
16267 ol_cv_nonposix_strerror=no
16268 fi
16269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16270 fi
16271         fi
16272
16273 fi
16274 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16275 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16276 if test $ol_cv_nonposix_strerror_r = yes ; then
16277
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_NONPOSIX_STRERROR_R 1
16280 _ACEOF
16281
16282 fi
16283
16284 elif test "${ac_cv_func_strerror}" = no ; then
16285         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16286 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16287 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16288   echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290
16291         cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h.  */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h.  */
16297
16298 #include <stdio.h>
16299 #include <sys/types.h>
16300 #include <errno.h>
16301 #ifdef WINNT
16302 #include <stdlib.h>
16303 #endif
16304 int
16305 main ()
16306 {
16307 char *c = (char *) *sys_errlist
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext
16313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16314   (eval $ac_compile) 2>conftest.er1
16315   ac_status=$?
16316   grep -v '^ *+' conftest.er1 >conftest.err
16317   rm -f conftest.er1
16318   cat conftest.err >&5
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } &&
16321          { ac_try='test -z "$ac_c_werror_flag"
16322                          || test ! -s conftest.err'
16323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324   (eval $ac_try) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }; } &&
16328          { ac_try='test -s conftest.$ac_objext'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334   ol_cv_dcl_sys_errlist=yes
16335         ol_cv_have_sys_errlist=yes
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ol_cv_dcl_sys_errlist=no
16341 fi
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 fi
16344 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16345 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16346 #
16347 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16348 if test $ol_cv_dcl_sys_errlist = no ; then
16349
16350 cat >>confdefs.h <<\_ACEOF
16351 #define DECL_SYS_ERRLIST 1
16352 _ACEOF
16353
16354
16355         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16356 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16357 if test "${ol_cv_have_sys_errlist+set}" = set; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360
16361                 cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 #include <errno.h>
16368 int
16369 main ()
16370 {
16371 char *c = (char *) *sys_errlist
16372   ;
16373   return 0;
16374 }
16375 _ACEOF
16376 rm -f conftest.$ac_objext conftest$ac_exeext
16377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16378   (eval $ac_link) 2>conftest.er1
16379   ac_status=$?
16380   grep -v '^ *+' conftest.er1 >conftest.err
16381   rm -f conftest.er1
16382   cat conftest.err >&5
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } &&
16385          { ac_try='test -z "$ac_c_werror_flag"
16386                          || test ! -s conftest.err'
16387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388   (eval $ac_try) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; } &&
16392          { ac_try='test -s conftest$ac_exeext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   ol_cv_have_sys_errlist=yes
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 ol_cv_have_sys_errlist=no
16404 fi
16405 rm -f conftest.err conftest.$ac_objext \
16406       conftest$ac_exeext conftest.$ac_ext
16407 fi
16408 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16409 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16410 fi
16411 if test $ol_cv_have_sys_errlist = yes ; then
16412
16413 cat >>confdefs.h <<\_ACEOF
16414 #define HAVE_SYS_ERRLIST 1
16415 _ACEOF
16416
16417 fi
16418
16419 fi
16420
16421
16422
16423 for ac_header in regex.h
16424 do
16425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16427   echo "$as_me:$LINENO: checking for $ac_header" >&5
16428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16430   echo $ECHO_N "(cached) $ECHO_C" >&6
16431 fi
16432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16434 else
16435   # Is the header compilable?
16436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444 $ac_includes_default
16445 #include <$ac_header>
16446 _ACEOF
16447 rm -f conftest.$ac_objext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449   (eval $ac_compile) 2>conftest.er1
16450   ac_status=$?
16451   grep -v '^ *+' conftest.er1 >conftest.err
16452   rm -f conftest.er1
16453   cat conftest.err >&5
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); } &&
16456          { ac_try='test -z "$ac_c_werror_flag"
16457                          || test ! -s conftest.err'
16458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459   (eval $ac_try) 2>&5
16460   ac_status=$?
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); }; } &&
16463          { ac_try='test -s conftest.$ac_objext'
16464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465   (eval $ac_try) 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); }; }; then
16469   ac_header_compiler=yes
16470 else
16471   echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16473
16474 ac_header_compiler=no
16475 fi
16476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16478 echo "${ECHO_T}$ac_header_compiler" >&6
16479
16480 # Is the header present?
16481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h.  */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h.  */
16489 #include <$ac_header>
16490 _ACEOF
16491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } >/dev/null; then
16499   if test -s conftest.err; then
16500     ac_cpp_err=$ac_c_preproc_warn_flag
16501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16502   else
16503     ac_cpp_err=
16504   fi
16505 else
16506   ac_cpp_err=yes
16507 fi
16508 if test -z "$ac_cpp_err"; then
16509   ac_header_preproc=yes
16510 else
16511   echo "$as_me: failed program was:" >&5
16512 sed 's/^/| /' conftest.$ac_ext >&5
16513
16514   ac_header_preproc=no
16515 fi
16516 rm -f conftest.err conftest.$ac_ext
16517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16518 echo "${ECHO_T}$ac_header_preproc" >&6
16519
16520 # So?  What about this header?
16521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16522   yes:no: )
16523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16527     ac_header_preproc=yes
16528     ;;
16529   no:yes:* )
16530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16542     (
16543       cat <<\_ASBOX
16544 ## --------------------------------------------- ##
16545 ## Report this to <http://www.openldap.org/its/> ##
16546 ## --------------------------------------------- ##
16547 _ASBOX
16548     ) |
16549       sed "s/^/$as_me: WARNING:     /" >&2
16550     ;;
16551 esac
16552 echo "$as_me:$LINENO: checking for $ac_header" >&5
16553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   eval "$as_ac_Header=\$ac_header_preproc"
16558 fi
16559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16561
16562 fi
16563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16564   cat >>confdefs.h <<_ACEOF
16565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16566 _ACEOF
16567
16568 fi
16569
16570 done
16571
16572 if test "$ac_cv_header_regex_h" != yes ; then
16573         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16574 echo "$as_me: error: POSIX regex.h required." >&2;}
16575    { (exit 1); exit 1; }; }
16576 fi
16577 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16578 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16579 if test "${ac_cv_search_regfree+set}" = set; then
16580   echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582   ac_func_search_save_LIBS=$LIBS
16583 ac_cv_search_regfree=no
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h.  */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h.  */
16590
16591 /* Override any gcc2 internal prototype to avoid an error.  */
16592 #ifdef __cplusplus
16593 extern "C"
16594 #endif
16595 /* We use char because int might match the return type of a gcc2
16596    builtin and then its argument prototype would still apply.  */
16597 char regfree ();
16598 int
16599 main ()
16600 {
16601 regfree ();
16602   ;
16603   return 0;
16604 }
16605 _ACEOF
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16608   (eval $ac_link) 2>conftest.er1
16609   ac_status=$?
16610   grep -v '^ *+' conftest.er1 >conftest.err
16611   rm -f conftest.er1
16612   cat conftest.err >&5
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); } &&
16615          { ac_try='test -z "$ac_c_werror_flag"
16616                          || test ! -s conftest.err'
16617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618   (eval $ac_try) 2>&5
16619   ac_status=$?
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); }; } &&
16622          { ac_try='test -s conftest$ac_exeext'
16623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624   (eval $ac_try) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; }; then
16628   ac_cv_search_regfree="none required"
16629 else
16630   echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 fi
16634 rm -f conftest.err conftest.$ac_objext \
16635       conftest$ac_exeext conftest.$ac_ext
16636 if test "$ac_cv_search_regfree" = no; then
16637   for ac_lib in regex gnuregex; do
16638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16639     cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h.  */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h.  */
16645
16646 /* Override any gcc2 internal prototype to avoid an error.  */
16647 #ifdef __cplusplus
16648 extern "C"
16649 #endif
16650 /* We use char because int might match the return type of a gcc2
16651    builtin and then its argument prototype would still apply.  */
16652 char regfree ();
16653 int
16654 main ()
16655 {
16656 regfree ();
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16663   (eval $ac_link) 2>conftest.er1
16664   ac_status=$?
16665   grep -v '^ *+' conftest.er1 >conftest.err
16666   rm -f conftest.er1
16667   cat conftest.err >&5
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } &&
16670          { ac_try='test -z "$ac_c_werror_flag"
16671                          || test ! -s conftest.err'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; } &&
16677          { ac_try='test -s conftest$ac_exeext'
16678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679   (eval $ac_try) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   ac_cv_search_regfree="-l$ac_lib"
16684 break
16685 else
16686   echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 fi
16690 rm -f conftest.err conftest.$ac_objext \
16691       conftest$ac_exeext conftest.$ac_ext
16692   done
16693 fi
16694 LIBS=$ac_func_search_save_LIBS
16695 fi
16696 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16697 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16698 if test "$ac_cv_search_regfree" != no; then
16699   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16700   :
16701 else
16702   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16703 echo "$as_me: error: POSIX regex required." >&2;}
16704    { (exit 1); exit 1; }; }
16705 fi
16706
16707
16708
16709 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16710 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16711 if test "${ol_cv_c_posix_regex+set}" = set; then
16712   echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714
16715         if test "$cross_compiling" = yes; then
16716   ol_cv_c_posix_regex=cross
16717 else
16718   cat >conftest.$ac_ext <<_ACEOF
16719 /* confdefs.h.  */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h.  */
16724
16725 #include <sys/types.h>
16726 #include <regex.h>
16727 static char *pattern, *string;
16728 main()
16729 {
16730         int rc;
16731         regex_t re;
16732
16733         pattern = "^A";
16734
16735         if(regcomp(&re, pattern, 0)) {
16736                 return -1;
16737         }
16738
16739         string = "ALL MATCH";
16740
16741         rc = regexec(&re, string, 0, (void*)0, 0);
16742
16743         regfree(&re);
16744
16745         return rc;
16746 }
16747 _ACEOF
16748 rm -f conftest$ac_exeext
16749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16750   (eval $ac_link) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755   (eval $ac_try) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; }; then
16759   ol_cv_c_posix_regex=yes
16760 else
16761   echo "$as_me: program exited with status $ac_status" >&5
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16764
16765 ( exit $ac_status )
16766 ol_cv_c_posix_regex=no
16767 fi
16768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16769 fi
16770 fi
16771 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16772 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16773
16774 if test "$ol_cv_c_posix_regex" = no ; then
16775         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16776 echo "$as_me: error: broken POSIX regex!" >&2;}
16777    { (exit 1); exit 1; }; }
16778 fi
16779
16780
16781 have_uuid=no
16782
16783 for ac_header in sys/uuid.h
16784 do
16785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16787   echo "$as_me:$LINENO: checking for $ac_header" >&5
16788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16790   echo $ECHO_N "(cached) $ECHO_C" >&6
16791 fi
16792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16794 else
16795   # Is the header compilable?
16796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804 $ac_includes_default
16805 #include <$ac_header>
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16809   (eval $ac_compile) 2>conftest.er1
16810   ac_status=$?
16811   grep -v '^ *+' conftest.er1 >conftest.err
16812   rm -f conftest.er1
16813   cat conftest.err >&5
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -z "$ac_c_werror_flag"
16817                          || test ! -s conftest.err'
16818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819   (eval $ac_try) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; } &&
16823          { ac_try='test -s conftest.$ac_objext'
16824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825   (eval $ac_try) 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; }; then
16829   ac_header_compiler=yes
16830 else
16831   echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_header_compiler=no
16835 fi
16836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16838 echo "${ECHO_T}$ac_header_compiler" >&6
16839
16840 # Is the header present?
16841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849 #include <$ac_header>
16850 _ACEOF
16851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16853   ac_status=$?
16854   grep -v '^ *+' conftest.er1 >conftest.err
16855   rm -f conftest.er1
16856   cat conftest.err >&5
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } >/dev/null; then
16859   if test -s conftest.err; then
16860     ac_cpp_err=$ac_c_preproc_warn_flag
16861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16862   else
16863     ac_cpp_err=
16864   fi
16865 else
16866   ac_cpp_err=yes
16867 fi
16868 if test -z "$ac_cpp_err"; then
16869   ac_header_preproc=yes
16870 else
16871   echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874   ac_header_preproc=no
16875 fi
16876 rm -f conftest.err conftest.$ac_ext
16877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16878 echo "${ECHO_T}$ac_header_preproc" >&6
16879
16880 # So?  What about this header?
16881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16882   yes:no: )
16883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16887     ac_header_preproc=yes
16888     ;;
16889   no:yes:* )
16890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16902     (
16903       cat <<\_ASBOX
16904 ## --------------------------------------------- ##
16905 ## Report this to <http://www.openldap.org/its/> ##
16906 ## --------------------------------------------- ##
16907 _ASBOX
16908     ) |
16909       sed "s/^/$as_me: WARNING:     /" >&2
16910     ;;
16911 esac
16912 echo "$as_me:$LINENO: checking for $ac_header" >&5
16913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16915   echo $ECHO_N "(cached) $ECHO_C" >&6
16916 else
16917   eval "$as_ac_Header=\$ac_header_preproc"
16918 fi
16919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16921
16922 fi
16923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16924   cat >>confdefs.h <<_ACEOF
16925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16926 _ACEOF
16927
16928 fi
16929
16930 done
16931
16932 if test $ac_cv_header_sys_uuid_h = yes ; then
16933         save_LIBS="$LIBS"
16934         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16935 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16936 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16937   echo $ECHO_N "(cached) $ECHO_C" >&6
16938 else
16939   ac_func_search_save_LIBS=$LIBS
16940 ac_cv_search_uuid_to_str=no
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947
16948 /* Override any gcc2 internal prototype to avoid an error.  */
16949 #ifdef __cplusplus
16950 extern "C"
16951 #endif
16952 /* We use char because int might match the return type of a gcc2
16953    builtin and then its argument prototype would still apply.  */
16954 char uuid_to_str ();
16955 int
16956 main ()
16957 {
16958 uuid_to_str ();
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16965   (eval $ac_link) 2>conftest.er1
16966   ac_status=$?
16967   grep -v '^ *+' conftest.er1 >conftest.err
16968   rm -f conftest.er1
16969   cat conftest.err >&5
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); } &&
16972          { ac_try='test -z "$ac_c_werror_flag"
16973                          || test ! -s conftest.err'
16974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975   (eval $ac_try) 2>&5
16976   ac_status=$?
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); }; } &&
16979          { ac_try='test -s conftest$ac_exeext'
16980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981   (eval $ac_try) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; }; then
16985   ac_cv_search_uuid_to_str="none required"
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 fi
16991 rm -f conftest.err conftest.$ac_objext \
16992       conftest$ac_exeext conftest.$ac_ext
16993 if test "$ac_cv_search_uuid_to_str" = no; then
16994   for ac_lib in uuid; do
16995     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16996     cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h.  */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h.  */
17002
17003 /* Override any gcc2 internal prototype to avoid an error.  */
17004 #ifdef __cplusplus
17005 extern "C"
17006 #endif
17007 /* We use char because int might match the return type of a gcc2
17008    builtin and then its argument prototype would still apply.  */
17009 char uuid_to_str ();
17010 int
17011 main ()
17012 {
17013 uuid_to_str ();
17014   ;
17015   return 0;
17016 }
17017 _ACEOF
17018 rm -f conftest.$ac_objext conftest$ac_exeext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020   (eval $ac_link) 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -z "$ac_c_werror_flag"
17028                          || test ! -s conftest.err'
17029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030   (eval $ac_try) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_cv_search_uuid_to_str="-l$ac_lib"
17041 break
17042 else
17043   echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 fi
17047 rm -f conftest.err conftest.$ac_objext \
17048       conftest$ac_exeext conftest.$ac_ext
17049   done
17050 fi
17051 LIBS=$ac_func_search_save_LIBS
17052 fi
17053 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17054 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17055 if test "$ac_cv_search_uuid_to_str" != no; then
17056   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17057   have_uuid=yes
17058 else
17059   :
17060 fi
17061
17062         LIBS="$save_LIBS"
17063
17064         if test have_uuid = yes ; then
17065
17066 cat >>confdefs.h <<\_ACEOF
17067 #define HAVE_UUID_TO_STR 1
17068 _ACEOF
17069
17070
17071                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17072                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17073         fi
17074 fi
17075
17076 if test $have_uuid = no ; then
17077         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17078 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17079         save_LIBS="$LIBS"
17080         LIBS="$LIBS -lrpcrt4"
17081         cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h.  */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h.  */
17087
17088                 int __stdcall UuidCreate(void *);
17089                 int __stdcall UuidToStringA(void *,void **);
17090
17091 int
17092 main ()
17093 {
17094
17095                 UuidCreate(0);
17096                 UuidToStringA(0,0);
17097
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17104   (eval $ac_link) 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } &&
17111          { ac_try='test -z "$ac_c_werror_flag"
17112                          || test ! -s conftest.err'
17113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114   (eval $ac_try) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); }; } &&
17118          { ac_try='test -s conftest$ac_exeext'
17119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120   (eval $ac_try) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); }; }; then
17124   need_rpcrt=yes
17125 else
17126   echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 need_rpcrt=no
17130 fi
17131 rm -f conftest.err conftest.$ac_objext \
17132       conftest$ac_exeext conftest.$ac_ext
17133         if test $need_rpcrt = yes; then
17134                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17135         fi
17136         LIBS="$save_LIBS"
17137         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17138 echo "${ECHO_T}$need_rpcrt" >&6
17139 fi
17140
17141 ol_cv_lib_resolver=no
17142 if test $ol_cv_lib_resolver = no ; then
17143         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17144 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17145 if test "${ol_cv_resolver_none+set}" = set; then
17146   echo $ECHO_N "(cached) $ECHO_C" >&6
17147 else
17148
17149         ol_RESOLVER_LIB=
17150         ol_LIBS=$LIBS
17151         LIBS="$ol_RESOLVER_LIB $LIBS"
17152
17153         cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159
17160 #ifdef HAVE_SYS_TYPES_H
17161 #       include <sys/types.h>
17162 #endif
17163 #include <netinet/in.h>
17164 #ifdef HAVE_ARPA_NAMESER_H
17165 #       include <arpa/nameser.h>
17166 #endif
17167 #ifdef HAVE_RESOLV_H
17168 #       include <resolv.h>
17169 #endif
17170
17171 int
17172 main ()
17173 {
17174 {
17175         int len, status;
17176         char *request = NULL;
17177         unsigned char reply[64*1024];
17178         unsigned char host[64*1024];
17179         unsigned char *p;
17180
17181 #ifdef NS_HFIXEDSZ
17182         /* Bind 8/9 interface */
17183         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17184 #else
17185         /* Bind 4 interface */
17186 # ifndef T_SRV
17187 #  define T_SRV 33
17188 # endif
17189         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17190 #endif
17191         p = reply;
17192 #ifdef NS_HFIXEDSZ
17193         /* Bind 8/9 interface */
17194         p += NS_HFIXEDSZ;
17195 #elif defined(HFIXEDSZ)
17196         /* Bind 4 interface w/ HFIXEDSZ */
17197         p += HFIXEDSZ;
17198 #else
17199         /* Bind 4 interface w/o HFIXEDSZ */
17200         p += sizeof(HEADER);
17201 #endif
17202         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17203 }
17204   ;
17205   return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17210   (eval $ac_link) 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag"
17218                          || test ! -s conftest.err'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   ol_cv_resolver_none=yes
17231 else
17232   echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ol_cv_resolver_none=no
17236 fi
17237 rm -f conftest.err conftest.$ac_objext \
17238       conftest$ac_exeext conftest.$ac_ext
17239
17240         LIBS="$ol_LIBS"
17241
17242 fi
17243 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17244 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17245
17246         if test $ol_cv_resolver_none = yes ; then
17247                 ol_cv_lib_resolver=yes
17248         fi
17249 fi
17250
17251 if test $ol_cv_lib_resolver = no ; then
17252         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17253 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17254 if test "${ol_cv_resolver_resolv+set}" = set; then
17255   echo $ECHO_N "(cached) $ECHO_C" >&6
17256 else
17257
17258         ol_RESOLVER_LIB=-lresolv
17259         ol_LIBS=$LIBS
17260         LIBS="$ol_RESOLVER_LIB $LIBS"
17261
17262         cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h.  */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h.  */
17268
17269 #ifdef HAVE_SYS_TYPES_H
17270 #       include <sys/types.h>
17271 #endif
17272 #include <netinet/in.h>
17273 #ifdef HAVE_ARPA_NAMESER_H
17274 #       include <arpa/nameser.h>
17275 #endif
17276 #ifdef HAVE_RESOLV_H
17277 #       include <resolv.h>
17278 #endif
17279
17280 int
17281 main ()
17282 {
17283 {
17284         int len, status;
17285         char *request = NULL;
17286         unsigned char reply[64*1024];
17287         unsigned char host[64*1024];
17288         unsigned char *p;
17289
17290 #ifdef NS_HFIXEDSZ
17291         /* Bind 8/9 interface */
17292         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17293 #else
17294         /* Bind 4 interface */
17295 # ifndef T_SRV
17296 #  define T_SRV 33
17297 # endif
17298         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17299 #endif
17300         p = reply;
17301 #ifdef NS_HFIXEDSZ
17302         /* Bind 8/9 interface */
17303         p += NS_HFIXEDSZ;
17304 #elif defined(HFIXEDSZ)
17305         /* Bind 4 interface w/ HFIXEDSZ */
17306         p += HFIXEDSZ;
17307 #else
17308         /* Bind 4 interface w/o HFIXEDSZ */
17309         p += sizeof(HEADER);
17310 #endif
17311         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17312 }
17313   ;
17314   return 0;
17315 }
17316 _ACEOF
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17319   (eval $ac_link) 2>conftest.er1
17320   ac_status=$?
17321   grep -v '^ *+' conftest.er1 >conftest.err
17322   rm -f conftest.er1
17323   cat conftest.err >&5
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); } &&
17326          { ac_try='test -z "$ac_c_werror_flag"
17327                          || test ! -s conftest.err'
17328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329   (eval $ac_try) 2>&5
17330   ac_status=$?
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); }; } &&
17333          { ac_try='test -s conftest$ac_exeext'
17334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17335   (eval $ac_try) 2>&5
17336   ac_status=$?
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); }; }; then
17339   ol_cv_resolver_resolv=yes
17340 else
17341   echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.$ac_ext >&5
17343
17344 ol_cv_resolver_resolv=no
17345 fi
17346 rm -f conftest.err conftest.$ac_objext \
17347       conftest$ac_exeext conftest.$ac_ext
17348
17349         LIBS="$ol_LIBS"
17350
17351 fi
17352 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17353 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17354
17355         if test $ol_cv_resolver_resolv = yes ; then
17356                 ol_cv_lib_resolver=-lresolv
17357         fi
17358 fi
17359
17360 if test $ol_cv_lib_resolver = no ; then
17361         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17362 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17363 if test "${ol_cv_resolver_bind+set}" = set; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366
17367         ol_RESOLVER_LIB=-lbind
17368         ol_LIBS=$LIBS
17369         LIBS="$ol_RESOLVER_LIB $LIBS"
17370
17371         cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377
17378 #ifdef HAVE_SYS_TYPES_H
17379 #       include <sys/types.h>
17380 #endif
17381 #include <netinet/in.h>
17382 #ifdef HAVE_ARPA_NAMESER_H
17383 #       include <arpa/nameser.h>
17384 #endif
17385 #ifdef HAVE_RESOLV_H
17386 #       include <resolv.h>
17387 #endif
17388
17389 int
17390 main ()
17391 {
17392 {
17393         int len, status;
17394         char *request = NULL;
17395         unsigned char reply[64*1024];
17396         unsigned char host[64*1024];
17397         unsigned char *p;
17398
17399 #ifdef NS_HFIXEDSZ
17400         /* Bind 8/9 interface */
17401         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17402 #else
17403         /* Bind 4 interface */
17404 # ifndef T_SRV
17405 #  define T_SRV 33
17406 # endif
17407         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17408 #endif
17409         p = reply;
17410 #ifdef NS_HFIXEDSZ
17411         /* Bind 8/9 interface */
17412         p += NS_HFIXEDSZ;
17413 #elif defined(HFIXEDSZ)
17414         /* Bind 4 interface w/ HFIXEDSZ */
17415         p += HFIXEDSZ;
17416 #else
17417         /* Bind 4 interface w/o HFIXEDSZ */
17418         p += sizeof(HEADER);
17419 #endif
17420         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17421 }
17422   ;
17423   return 0;
17424 }
17425 _ACEOF
17426 rm -f conftest.$ac_objext conftest$ac_exeext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428   (eval $ac_link) 2>conftest.er1
17429   ac_status=$?
17430   grep -v '^ *+' conftest.er1 >conftest.err
17431   rm -f conftest.er1
17432   cat conftest.err >&5
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } &&
17435          { ac_try='test -z "$ac_c_werror_flag"
17436                          || test ! -s conftest.err'
17437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438   (eval $ac_try) 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); }; } &&
17442          { ac_try='test -s conftest$ac_exeext'
17443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444   (eval $ac_try) 2>&5
17445   ac_status=$?
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); }; }; then
17448   ol_cv_resolver_bind=yes
17449 else
17450   echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453 ol_cv_resolver_bind=no
17454 fi
17455 rm -f conftest.err conftest.$ac_objext \
17456       conftest$ac_exeext conftest.$ac_ext
17457
17458         LIBS="$ol_LIBS"
17459
17460 fi
17461 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17462 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17463
17464         if test $ol_cv_resolver_bind = yes ; then
17465                 ol_cv_lib_resolver=-lbind
17466         fi
17467 fi
17468
17469
17470
17471 ol_link_dnssrv=no
17472 if test "$ol_cv_lib_resolver" != no ; then
17473
17474 cat >>confdefs.h <<\_ACEOF
17475 #define HAVE_RES_QUERY 1
17476 _ACEOF
17477
17478
17479         if test "$ol_enable_dnssrv" != no ; then
17480                 ol_link_dnssrv=yes
17481         fi
17482
17483         if test "$ol_cv_lib_resolver" != yes ; then
17484                 LIBS="$ol_cv_lib_resolver $LIBS"
17485         fi
17486 fi
17487
17488 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17489         if test "$ol_link_dnssrv" = no ; then
17490                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17491 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17492    { (exit 1); exit 1; }; }
17493         fi
17494 else
17495         ol_enable_dnssrv=no
17496 fi
17497
17498
17499 for ac_func in hstrerror
17500 do
17501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17502 echo "$as_me:$LINENO: checking for $ac_func" >&5
17503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17504 if eval "test \"\${$as_ac_var+set}\" = set"; then
17505   echo $ECHO_N "(cached) $ECHO_C" >&6
17506 else
17507   cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h.  */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h.  */
17513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17515 #define $ac_func innocuous_$ac_func
17516
17517 /* System header to define __stub macros and hopefully few prototypes,
17518     which can conflict with char $ac_func (); below.
17519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17520     <limits.h> exists even on freestanding compilers.  */
17521
17522 #ifdef __STDC__
17523 # include <limits.h>
17524 #else
17525 # include <assert.h>
17526 #endif
17527
17528 #undef $ac_func
17529
17530 /* Override any gcc2 internal prototype to avoid an error.  */
17531 #ifdef __cplusplus
17532 extern "C"
17533 {
17534 #endif
17535 /* We use char because int might match the return type of a gcc2
17536    builtin and then its argument prototype would still apply.  */
17537 char $ac_func ();
17538 /* The GNU C library defines this for functions which it implements
17539     to always fail with ENOSYS.  Some functions are actually named
17540     something starting with __ and the normal name is an alias.  */
17541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17542 choke me
17543 #else
17544 char (*f) () = $ac_func;
17545 #endif
17546 #ifdef __cplusplus
17547 }
17548 #endif
17549
17550 int
17551 main ()
17552 {
17553 return f != $ac_func;
17554   ;
17555   return 0;
17556 }
17557 _ACEOF
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17560   (eval $ac_link) 2>conftest.er1
17561   ac_status=$?
17562   grep -v '^ *+' conftest.er1 >conftest.err
17563   rm -f conftest.er1
17564   cat conftest.err >&5
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); } &&
17567          { ac_try='test -z "$ac_c_werror_flag"
17568                          || test ! -s conftest.err'
17569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570   (eval $ac_try) 2>&5
17571   ac_status=$?
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); }; } &&
17574          { ac_try='test -s conftest$ac_exeext'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; }; then
17580   eval "$as_ac_var=yes"
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585 eval "$as_ac_var=no"
17586 fi
17587 rm -f conftest.err conftest.$ac_objext \
17588       conftest$ac_exeext conftest.$ac_ext
17589 fi
17590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17592 if test `eval echo '${'$as_ac_var'}'` = yes; then
17593   cat >>confdefs.h <<_ACEOF
17594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17595 _ACEOF
17596
17597 fi
17598 done
17599
17600
17601
17602
17603
17604
17605 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17606 do
17607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 echo "$as_me:$LINENO: checking for $ac_func" >&5
17609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17610 if eval "test \"\${$as_ac_var+set}\" = set"; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h.  */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h.  */
17619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17621 #define $ac_func innocuous_$ac_func
17622
17623 /* System header to define __stub macros and hopefully few prototypes,
17624     which can conflict with char $ac_func (); below.
17625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17626     <limits.h> exists even on freestanding compilers.  */
17627
17628 #ifdef __STDC__
17629 # include <limits.h>
17630 #else
17631 # include <assert.h>
17632 #endif
17633
17634 #undef $ac_func
17635
17636 /* Override any gcc2 internal prototype to avoid an error.  */
17637 #ifdef __cplusplus
17638 extern "C"
17639 {
17640 #endif
17641 /* We use char because int might match the return type of a gcc2
17642    builtin and then its argument prototype would still apply.  */
17643 char $ac_func ();
17644 /* The GNU C library defines this for functions which it implements
17645     to always fail with ENOSYS.  Some functions are actually named
17646     something starting with __ and the normal name is an alias.  */
17647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17648 choke me
17649 #else
17650 char (*f) () = $ac_func;
17651 #endif
17652 #ifdef __cplusplus
17653 }
17654 #endif
17655
17656 int
17657 main ()
17658 {
17659 return f != $ac_func;
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666   (eval $ac_link) 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } &&
17673          { ac_try='test -z "$ac_c_werror_flag"
17674                          || test ! -s conftest.err'
17675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676   (eval $ac_try) 2>&5
17677   ac_status=$?
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); }; } &&
17680          { ac_try='test -s conftest$ac_exeext'
17681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682   (eval $ac_try) 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; }; then
17686   eval "$as_ac_var=yes"
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 eval "$as_ac_var=no"
17692 fi
17693 rm -f conftest.err conftest.$ac_objext \
17694       conftest$ac_exeext conftest.$ac_ext
17695 fi
17696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17698 if test `eval echo '${'$as_ac_var'}'` = yes; then
17699   cat >>confdefs.h <<_ACEOF
17700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17701 _ACEOF
17702
17703 fi
17704 done
17705
17706
17707 ol_link_ipv6=no
17708 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17709         if test $ol_enable_ipv6 = yes ; then
17710                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17711 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17712    { (exit 1); exit 1; }; }
17713         fi
17714 elif test $ol_enable_ipv6 != no ; then
17715         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17716 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17717 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17718   echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720
17721                 cat >conftest.$ac_ext <<_ACEOF
17722 /* confdefs.h.  */
17723 _ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h.  */
17727
17728 #                       include <netinet/in.h>
17729 #                       ifdef INET6_ADDRSTRLEN
17730                                 __has_inet6_addrstrlen__;
17731 #                       endif
17732
17733 _ACEOF
17734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17735   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17736   ol_cv_inet6_addrstrlen=yes
17737 else
17738   ol_cv_inet6_addrstrlen=no
17739 fi
17740 rm -f conftest*
17741
17742 fi
17743 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17744 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17745
17746
17747         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17748 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17749 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17750   echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752
17753                 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 #include <sys/types.h>
17761 #include <sys/socket.h>
17762
17763 int
17764 main ()
17765 {
17766
17767                         struct sockaddr_storage ss;
17768
17769   ;
17770   return 0;
17771 }
17772 _ACEOF
17773 rm -f conftest.$ac_objext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17775   (eval $ac_compile) 2>conftest.er1
17776   ac_status=$?
17777   grep -v '^ *+' conftest.er1 >conftest.err
17778   rm -f conftest.er1
17779   cat conftest.err >&5
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } &&
17782          { ac_try='test -z "$ac_c_werror_flag"
17783                          || test ! -s conftest.err'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; } &&
17789          { ac_try='test -s conftest.$ac_objext'
17790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791   (eval $ac_try) 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; }; then
17795   ol_cv_struct_sockaddr_storage=yes
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ol_cv_struct_sockaddr_storage=no
17801 fi
17802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17803 fi
17804 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17805 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17806
17807         if test $ol_cv_inet6_addrstrlen = yes &&
17808            test $ol_cv_struct_sockaddr_storage = yes ; then
17809                 ol_link_ipv6=yes
17810         elif test $ol_enable_ipv6 = yes &&
17811              test $ol_cv_inet6_addrstrlen = no ; then
17812                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17813 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17814    { (exit 1); exit 1; }; }
17815         elif test $ol_enable_ipv6 = yes &&
17816              test $ol_cv_struct_sockaddr_storage = no ; then
17817                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17818 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17819    { (exit 1); exit 1; }; }
17820         fi
17821 fi
17822
17823 if test $ol_enable_local != no ; then
17824
17825 for ac_header in sys/un.h
17826 do
17827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17829   echo "$as_me:$LINENO: checking for $ac_header" >&5
17830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17832   echo $ECHO_N "(cached) $ECHO_C" >&6
17833 fi
17834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17836 else
17837   # Is the header compilable?
17838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17840 cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h.  */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h.  */
17846 $ac_includes_default
17847 #include <$ac_header>
17848 _ACEOF
17849 rm -f conftest.$ac_objext
17850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17851   (eval $ac_compile) 2>conftest.er1
17852   ac_status=$?
17853   grep -v '^ *+' conftest.er1 >conftest.err
17854   rm -f conftest.er1
17855   cat conftest.err >&5
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); } &&
17858          { ac_try='test -z "$ac_c_werror_flag"
17859                          || test ! -s conftest.err'
17860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861   (eval $ac_try) 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; } &&
17865          { ac_try='test -s conftest.$ac_objext'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; }; then
17871   ac_header_compiler=yes
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 ac_header_compiler=no
17877 fi
17878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17880 echo "${ECHO_T}$ac_header_compiler" >&6
17881
17882 # Is the header present?
17883 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h.  */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h.  */
17891 #include <$ac_header>
17892 _ACEOF
17893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17894   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17895   ac_status=$?
17896   grep -v '^ *+' conftest.er1 >conftest.err
17897   rm -f conftest.er1
17898   cat conftest.err >&5
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); } >/dev/null; then
17901   if test -s conftest.err; then
17902     ac_cpp_err=$ac_c_preproc_warn_flag
17903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17904   else
17905     ac_cpp_err=
17906   fi
17907 else
17908   ac_cpp_err=yes
17909 fi
17910 if test -z "$ac_cpp_err"; then
17911   ac_header_preproc=yes
17912 else
17913   echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17915
17916   ac_header_preproc=no
17917 fi
17918 rm -f conftest.err conftest.$ac_ext
17919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17920 echo "${ECHO_T}$ac_header_preproc" >&6
17921
17922 # So?  What about this header?
17923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17924   yes:no: )
17925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17929     ac_header_preproc=yes
17930     ;;
17931   no:yes:* )
17932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17944     (
17945       cat <<\_ASBOX
17946 ## --------------------------------------------- ##
17947 ## Report this to <http://www.openldap.org/its/> ##
17948 ## --------------------------------------------- ##
17949 _ASBOX
17950     ) |
17951       sed "s/^/$as_me: WARNING:     /" >&2
17952     ;;
17953 esac
17954 echo "$as_me:$LINENO: checking for $ac_header" >&5
17955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17957   echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959   eval "$as_ac_Header=\$ac_header_preproc"
17960 fi
17961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17963
17964 fi
17965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17966   cat >>confdefs.h <<_ACEOF
17967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17968 _ACEOF
17969
17970 fi
17971
17972 done
17973
17974
17975         if test $ol_enable_local = auto ; then
17976                 ol_enable_local=$ac_cv_header_sys_un_h
17977         elif test $ac_cv_header_sys_un_h = no ; then
17978                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17979 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17980    { (exit 1); exit 1; }; }
17981         fi
17982 fi
17983
17984 ol_link_kbind=no
17985 ol_link_krb5=no
17986 ol_link_krb4=no
17987
17988 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17989
17990
17991 for ac_header in krb5.h
17992 do
17993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17995   echo "$as_me:$LINENO: checking for $ac_header" >&5
17996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17998   echo $ECHO_N "(cached) $ECHO_C" >&6
17999 fi
18000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18002 else
18003   # Is the header compilable?
18004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012 $ac_includes_default
18013 #include <$ac_header>
18014 _ACEOF
18015 rm -f conftest.$ac_objext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017   (eval $ac_compile) 2>conftest.er1
18018   ac_status=$?
18019   grep -v '^ *+' conftest.er1 >conftest.err
18020   rm -f conftest.er1
18021   cat conftest.err >&5
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); } &&
18024          { ac_try='test -z "$ac_c_werror_flag"
18025                          || test ! -s conftest.err'
18026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027   (eval $ac_try) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; } &&
18031          { ac_try='test -s conftest.$ac_objext'
18032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033   (eval $ac_try) 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); }; }; then
18037   ac_header_compiler=yes
18038 else
18039   echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18041
18042 ac_header_compiler=no
18043 fi
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18046 echo "${ECHO_T}$ac_header_compiler" >&6
18047
18048 # Is the header present?
18049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h.  */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h.  */
18057 #include <$ac_header>
18058 _ACEOF
18059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18061   ac_status=$?
18062   grep -v '^ *+' conftest.er1 >conftest.err
18063   rm -f conftest.er1
18064   cat conftest.err >&5
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); } >/dev/null; then
18067   if test -s conftest.err; then
18068     ac_cpp_err=$ac_c_preproc_warn_flag
18069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18070   else
18071     ac_cpp_err=
18072   fi
18073 else
18074   ac_cpp_err=yes
18075 fi
18076 if test -z "$ac_cpp_err"; then
18077   ac_header_preproc=yes
18078 else
18079   echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18081
18082   ac_header_preproc=no
18083 fi
18084 rm -f conftest.err conftest.$ac_ext
18085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18086 echo "${ECHO_T}$ac_header_preproc" >&6
18087
18088 # So?  What about this header?
18089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18090   yes:no: )
18091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18095     ac_header_preproc=yes
18096     ;;
18097   no:yes:* )
18098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18110     (
18111       cat <<\_ASBOX
18112 ## --------------------------------------------- ##
18113 ## Report this to <http://www.openldap.org/its/> ##
18114 ## --------------------------------------------- ##
18115 _ASBOX
18116     ) |
18117       sed "s/^/$as_me: WARNING:     /" >&2
18118     ;;
18119 esac
18120 echo "$as_me:$LINENO: checking for $ac_header" >&5
18121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125   eval "$as_ac_Header=\$ac_header_preproc"
18126 fi
18127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18129
18130 fi
18131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18132   cat >>confdefs.h <<_ACEOF
18133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18134 _ACEOF
18135
18136 fi
18137
18138 done
18139
18140
18141         if test $ac_cv_header_krb5_h = yes ; then
18142
18143 for ac_header in heim_err.h
18144 do
18145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18147   echo "$as_me:$LINENO: checking for $ac_header" >&5
18148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 fi
18152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18154 else
18155   # Is the header compilable?
18156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 $ac_includes_default
18165 #include <$ac_header>
18166 _ACEOF
18167 rm -f conftest.$ac_objext
18168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18169   (eval $ac_compile) 2>conftest.er1
18170   ac_status=$?
18171   grep -v '^ *+' conftest.er1 >conftest.err
18172   rm -f conftest.er1
18173   cat conftest.err >&5
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } &&
18176          { ac_try='test -z "$ac_c_werror_flag"
18177                          || test ! -s conftest.err'
18178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179   (eval $ac_try) 2>&5
18180   ac_status=$?
18181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; } &&
18183          { ac_try='test -s conftest.$ac_objext'
18184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185   (eval $ac_try) 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; }; then
18189   ac_header_compiler=yes
18190 else
18191   echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.$ac_ext >&5
18193
18194 ac_header_compiler=no
18195 fi
18196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18198 echo "${ECHO_T}$ac_header_compiler" >&6
18199
18200 # Is the header present?
18201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18203 cat >conftest.$ac_ext <<_ACEOF
18204 /* confdefs.h.  */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h.  */
18209 #include <$ac_header>
18210 _ACEOF
18211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18213   ac_status=$?
18214   grep -v '^ *+' conftest.er1 >conftest.err
18215   rm -f conftest.er1
18216   cat conftest.err >&5
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } >/dev/null; then
18219   if test -s conftest.err; then
18220     ac_cpp_err=$ac_c_preproc_warn_flag
18221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18222   else
18223     ac_cpp_err=
18224   fi
18225 else
18226   ac_cpp_err=yes
18227 fi
18228 if test -z "$ac_cpp_err"; then
18229   ac_header_preproc=yes
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234   ac_header_preproc=no
18235 fi
18236 rm -f conftest.err conftest.$ac_ext
18237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18238 echo "${ECHO_T}$ac_header_preproc" >&6
18239
18240 # So?  What about this header?
18241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18242   yes:no: )
18243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18247     ac_header_preproc=yes
18248     ;;
18249   no:yes:* )
18250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18262     (
18263       cat <<\_ASBOX
18264 ## --------------------------------------------- ##
18265 ## Report this to <http://www.openldap.org/its/> ##
18266 ## --------------------------------------------- ##
18267 _ASBOX
18268     ) |
18269       sed "s/^/$as_me: WARNING:     /" >&2
18270     ;;
18271 esac
18272 echo "$as_me:$LINENO: checking for $ac_header" >&5
18273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   eval "$as_ac_Header=\$ac_header_preproc"
18278 fi
18279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18281
18282 fi
18283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18284   cat >>confdefs.h <<_ACEOF
18285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18286 _ACEOF
18287
18288 fi
18289
18290 done
18291
18292                 if test $ac_cv_header_heim_err_h = yes ; then
18293                         krb5_impl=heimdal
18294                 else
18295                         krb5_impl=mit
18296                 fi
18297
18298                 if test $krb5_impl = mit; then
18299                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18300 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18301 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18302   echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304   ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lk5crypto  $LIBS"
18306 cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312
18313
18314 int
18315 main ()
18316 {
18317 main ();
18318   ;
18319   return 0;
18320 }
18321 _ACEOF
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18324   (eval $ac_link) 2>conftest.er1
18325   ac_status=$?
18326   grep -v '^ *+' conftest.er1 >conftest.err
18327   rm -f conftest.er1
18328   cat conftest.err >&5
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); } &&
18331          { ac_try='test -z "$ac_c_werror_flag"
18332                          || test ! -s conftest.err'
18333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334   (eval $ac_try) 2>&5
18335   ac_status=$?
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); }; } &&
18338          { ac_try='test -s conftest$ac_exeext'
18339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340   (eval $ac_try) 2>&5
18341   ac_status=$?
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); }; }; then
18344   ac_cv_lib_k5crypto_main=yes
18345 else
18346   echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349 ac_cv_lib_k5crypto_main=no
18350 fi
18351 rm -f conftest.err conftest.$ac_objext \
18352       conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18356 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18357 if test $ac_cv_lib_k5crypto_main = yes; then
18358   krb5crypto=k5crypto
18359 else
18360   krb5crypto=crypto
18361 fi
18362
18363
18364                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18365 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18366 if test "${ac_cv_lib_krb5_main+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377
18378
18379 int
18380 main ()
18381 {
18382 main ();
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389   (eval $ac_link) 2>conftest.er1
18390   ac_status=$?
18391   grep -v '^ *+' conftest.er1 >conftest.err
18392   rm -f conftest.er1
18393   cat conftest.err >&5
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); } &&
18396          { ac_try='test -z "$ac_c_werror_flag"
18397                          || test ! -s conftest.err'
18398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399   (eval $ac_try) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; } &&
18403          { ac_try='test -s conftest$ac_exeext'
18404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405   (eval $ac_try) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; }; then
18409   ac_cv_lib_krb5_main=yes
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 ac_cv_lib_krb5_main=no
18415 fi
18416 rm -f conftest.err conftest.$ac_objext \
18417       conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18419 fi
18420 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18421 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18422 if test $ac_cv_lib_krb5_main = yes; then
18423   have_krb5=yes
18424                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18425 else
18426   have_krb5=no
18427 fi
18428
18429
18430                 elif test $krb5_impl = heimdal; then
18431                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18432 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18433 if test "${ac_cv_lib_des_main+set}" = set; then
18434   echo $ECHO_N "(cached) $ECHO_C" >&6
18435 else
18436   ac_check_lib_save_LIBS=$LIBS
18437 LIBS="-ldes  $LIBS"
18438 cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h.  */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h.  */
18444
18445
18446 int
18447 main ()
18448 {
18449 main ();
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18456   (eval $ac_link) 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } &&
18463          { ac_try='test -z "$ac_c_werror_flag"
18464                          || test ! -s conftest.err'
18465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466   (eval $ac_try) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); }; } &&
18470          { ac_try='test -s conftest$ac_exeext'
18471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472   (eval $ac_try) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; }; then
18476   ac_cv_lib_des_main=yes
18477 else
18478   echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 ac_cv_lib_des_main=no
18482 fi
18483 rm -f conftest.err conftest.$ac_objext \
18484       conftest$ac_exeext conftest.$ac_ext
18485 LIBS=$ac_check_lib_save_LIBS
18486 fi
18487 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18488 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18489 if test $ac_cv_lib_des_main = yes; then
18490   krb5crypto=des
18491 else
18492   krb5crypto=crypto
18493 fi
18494
18495
18496                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18497 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18498 if test "${ac_cv_lib_krb5_main+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501   ac_check_lib_save_LIBS=$LIBS
18502 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h.  */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h.  */
18509
18510
18511 int
18512 main ()
18513 {
18514 main ();
18515   ;
18516   return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest.$ac_objext conftest$ac_exeext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18521   (eval $ac_link) 2>conftest.er1
18522   ac_status=$?
18523   grep -v '^ *+' conftest.er1 >conftest.err
18524   rm -f conftest.er1
18525   cat conftest.err >&5
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); } &&
18528          { ac_try='test -z "$ac_c_werror_flag"
18529                          || test ! -s conftest.err'
18530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531   (eval $ac_try) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); }; } &&
18535          { ac_try='test -s conftest$ac_exeext'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_cv_lib_krb5_main=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 ac_cv_lib_krb5_main=no
18547 fi
18548 rm -f conftest.err conftest.$ac_objext \
18549       conftest$ac_exeext conftest.$ac_ext
18550 LIBS=$ac_check_lib_save_LIBS
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18553 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18554 if test $ac_cv_lib_krb5_main = yes; then
18555   have_krb5=yes
18556                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18557 else
18558   have_krb5=no
18559 fi
18560
18561
18562
18563 cat >>confdefs.h <<\_ACEOF
18564 #define HAVE_HEIMDAL_KERBEROS 1
18565 _ACEOF
18566
18567
18568                 else
18569                         have_krb5=no
18570                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18571 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18572                 fi
18573
18574                 if test $have_krb5 = yes ; then
18575                         ol_link_krb5=yes
18576
18577
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_KRB5 1
18580 _ACEOF
18581
18582
18583                         if test $ol_with_kerberos = k5only ; then
18584                                 ol_with_kerberos=found
18585                         fi
18586
18587                 elif test $ol_with_kerberos != auto ; then
18588                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18589 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18590    { (exit 1); exit 1; }; }
18591                 fi
18592
18593         fi
18594         ;;
18595 esac
18596
18597 if test $ol_link_krb5 = yes &&
18598    { test $ol_with_kerberos = yes ||
18599      test $ol_with_kerberos = auto ||
18600      test $ol_with_kerberos = k425; }; then
18601
18602
18603
18604 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18605 do
18606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18608   echo "$as_me:$LINENO: checking for $ac_header" >&5
18609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18611   echo $ECHO_N "(cached) $ECHO_C" >&6
18612 fi
18613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18615 else
18616   # Is the header compilable?
18617 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h.  */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h.  */
18625 $ac_includes_default
18626 #include <$ac_header>
18627 _ACEOF
18628 rm -f conftest.$ac_objext
18629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18630   (eval $ac_compile) 2>conftest.er1
18631   ac_status=$?
18632   grep -v '^ *+' conftest.er1 >conftest.err
18633   rm -f conftest.er1
18634   cat conftest.err >&5
18635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636   (exit $ac_status); } &&
18637          { ac_try='test -z "$ac_c_werror_flag"
18638                          || test ! -s conftest.err'
18639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640   (eval $ac_try) 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; } &&
18644          { ac_try='test -s conftest.$ac_objext'
18645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646   (eval $ac_try) 2>&5
18647   ac_status=$?
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); }; }; then
18650   ac_header_compiler=yes
18651 else
18652   echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18654
18655 ac_header_compiler=no
18656 fi
18657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18658 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18659 echo "${ECHO_T}$ac_header_compiler" >&6
18660
18661 # Is the header present?
18662 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670 #include <$ac_header>
18671 _ACEOF
18672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18673   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18674   ac_status=$?
18675   grep -v '^ *+' conftest.er1 >conftest.err
18676   rm -f conftest.er1
18677   cat conftest.err >&5
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); } >/dev/null; then
18680   if test -s conftest.err; then
18681     ac_cpp_err=$ac_c_preproc_warn_flag
18682     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18683   else
18684     ac_cpp_err=
18685   fi
18686 else
18687   ac_cpp_err=yes
18688 fi
18689 if test -z "$ac_cpp_err"; then
18690   ac_header_preproc=yes
18691 else
18692   echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695   ac_header_preproc=no
18696 fi
18697 rm -f conftest.err conftest.$ac_ext
18698 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18699 echo "${ECHO_T}$ac_header_preproc" >&6
18700
18701 # So?  What about this header?
18702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18703   yes:no: )
18704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18708     ac_header_preproc=yes
18709     ;;
18710   no:yes:* )
18711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18723     (
18724       cat <<\_ASBOX
18725 ## --------------------------------------------- ##
18726 ## Report this to <http://www.openldap.org/its/> ##
18727 ## --------------------------------------------- ##
18728 _ASBOX
18729     ) |
18730       sed "s/^/$as_me: WARNING:     /" >&2
18731     ;;
18732 esac
18733 echo "$as_me:$LINENO: checking for $ac_header" >&5
18734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18736   echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738   eval "$as_ac_Header=\$ac_header_preproc"
18739 fi
18740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18742
18743 fi
18744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18745   cat >>confdefs.h <<_ACEOF
18746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18747 _ACEOF
18748
18749 fi
18750
18751 done
18752
18753
18754         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18755                 if test $krb5_impl = mit; then
18756                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18757 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18758 if test "${ac_cv_lib_krb4_main+set}" = set; then
18759   echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761   ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h.  */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h.  */
18769
18770
18771 int
18772 main ()
18773 {
18774 main ();
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18781   (eval $ac_link) 2>conftest.er1
18782   ac_status=$?
18783   grep -v '^ *+' conftest.er1 >conftest.err
18784   rm -f conftest.er1
18785   cat conftest.err >&5
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); } &&
18788          { ac_try='test -z "$ac_c_werror_flag"
18789                          || test ! -s conftest.err'
18790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791   (eval $ac_try) 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; } &&
18795          { ac_try='test -s conftest$ac_exeext'
18796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797   (eval $ac_try) 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; }; then
18801   ac_cv_lib_krb4_main=yes
18802 else
18803   echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 ac_cv_lib_krb4_main=no
18807 fi
18808 rm -f conftest.err conftest.$ac_objext \
18809       conftest$ac_exeext conftest.$ac_ext
18810 LIBS=$ac_check_lib_save_LIBS
18811 fi
18812 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18813 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18814 if test $ac_cv_lib_krb4_main = yes; then
18815   have_k425=yes
18816                                 KRB4_LIBS="-lkrb4 -ldes425"
18817 else
18818   have_k425=no
18819 fi
18820
18821
18822                 elif test $krb5_impl = heimdal; then
18823                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18824 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18825 if test "${ac_cv_lib_krb4_main+set}" = set; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828   ac_check_lib_save_LIBS=$LIBS
18829 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837
18838 int
18839 main ()
18840 {
18841 main ();
18842   ;
18843   return 0;
18844 }
18845 _ACEOF
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18848   (eval $ac_link) 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } &&
18855          { ac_try='test -z "$ac_c_werror_flag"
18856                          || test ! -s conftest.err'
18857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858   (eval $ac_try) 2>&5
18859   ac_status=$?
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; } &&
18862          { ac_try='test -s conftest$ac_exeext'
18863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864   (eval $ac_try) 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   ac_cv_lib_krb4_main=yes
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 ac_cv_lib_krb4_main=no
18874 fi
18875 rm -f conftest.err conftest.$ac_objext \
18876       conftest$ac_exeext conftest.$ac_ext
18877 LIBS=$ac_check_lib_save_LIBS
18878 fi
18879 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18880 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18881 if test $ac_cv_lib_krb4_main = yes; then
18882   have_k425=yes
18883                                 KRB4_LIBS="-lkrb4"
18884 else
18885   have_k425=no
18886 fi
18887
18888
18889                 else
18890                         have_425=no
18891                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18892 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18893                 fi
18894
18895                 if test $have_k425 = yes ; then
18896                         ol_with_kerberos=found
18897                         ol_link_krb4=yes
18898
18899
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_KRB425 1
18902 _ACEOF
18903
18904
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_KRB4 1
18907 _ACEOF
18908
18909
18910                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18911 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18912 if test "${ol_cv_var_des_debug+set}" = set; then
18913   echo $ECHO_N "(cached) $ECHO_C" >&6
18914 else
18915
18916                                                                 save_LIBS="$LIBS"
18917                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18918                                 cat >conftest.$ac_ext <<_ACEOF
18919 /* confdefs.h.  */
18920 _ACEOF
18921 cat confdefs.h >>conftest.$ac_ext
18922 cat >>conftest.$ac_ext <<_ACEOF
18923 /* end confdefs.h.  */
18924
18925 #include <kerberosIV/krb.h>
18926 #include <kerberosIV/des.h>
18927 extern int des_debug;
18928
18929 int
18930 main ()
18931 {
18932
18933 des_debug = 1;
18934
18935   ;
18936   return 0;
18937 }
18938 _ACEOF
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18941   (eval $ac_link) 2>conftest.er1
18942   ac_status=$?
18943   grep -v '^ *+' conftest.er1 >conftest.err
18944   rm -f conftest.er1
18945   cat conftest.err >&5
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); } &&
18948          { ac_try='test -z "$ac_c_werror_flag"
18949                          || test ! -s conftest.err'
18950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951   (eval $ac_try) 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; } &&
18955          { ac_try='test -s conftest$ac_exeext'
18956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957   (eval $ac_try) 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); }; }; then
18961   ol_cv_var_des_debug=yes
18962 else
18963   echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18965
18966 ol_cv_var_des_debug=no
18967 fi
18968 rm -f conftest.err conftest.$ac_objext \
18969       conftest$ac_exeext conftest.$ac_ext
18970                                                                 LIBS="$save_LIBS"
18971
18972 fi
18973 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18974 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18975
18976                         if test $ol_cv_var_des_debug = yes ; then
18977
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_DES_DEBUG 1
18980 _ACEOF
18981
18982                         fi
18983
18984                         LIBS="$save_LIBS"
18985                 fi
18986         fi
18987 fi
18988
18989 if test $ol_link_krb5 = yes ; then
18990         ol_with_kerberos=found
18991 fi
18992
18993 case $ol_with_kerberos in yes | auto | k4 | kth)
18994
18995
18996
18997
18998 for ac_header in krb.h des.h krb-archaeology.h
18999 do
19000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19002   echo "$as_me:$LINENO: checking for $ac_header" >&5
19003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19005   echo $ECHO_N "(cached) $ECHO_C" >&6
19006 fi
19007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19009 else
19010   # Is the header compilable?
19011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19013 cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019 $ac_includes_default
19020 #include <$ac_header>
19021 _ACEOF
19022 rm -f conftest.$ac_objext
19023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19024   (eval $ac_compile) 2>conftest.er1
19025   ac_status=$?
19026   grep -v '^ *+' conftest.er1 >conftest.err
19027   rm -f conftest.er1
19028   cat conftest.err >&5
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); } &&
19031          { ac_try='test -z "$ac_c_werror_flag"
19032                          || test ! -s conftest.err'
19033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034   (eval $ac_try) 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; } &&
19038          { ac_try='test -s conftest.$ac_objext'
19039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040   (eval $ac_try) 2>&5
19041   ac_status=$?
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); }; }; then
19044   ac_header_compiler=yes
19045 else
19046   echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19048
19049 ac_header_compiler=no
19050 fi
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19053 echo "${ECHO_T}$ac_header_compiler" >&6
19054
19055 # Is the header present?
19056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064 #include <$ac_header>
19065 _ACEOF
19066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19068   ac_status=$?
19069   grep -v '^ *+' conftest.er1 >conftest.err
19070   rm -f conftest.er1
19071   cat conftest.err >&5
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); } >/dev/null; then
19074   if test -s conftest.err; then
19075     ac_cpp_err=$ac_c_preproc_warn_flag
19076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19077   else
19078     ac_cpp_err=
19079   fi
19080 else
19081   ac_cpp_err=yes
19082 fi
19083 if test -z "$ac_cpp_err"; then
19084   ac_header_preproc=yes
19085 else
19086   echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089   ac_header_preproc=no
19090 fi
19091 rm -f conftest.err conftest.$ac_ext
19092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19093 echo "${ECHO_T}$ac_header_preproc" >&6
19094
19095 # So?  What about this header?
19096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19097   yes:no: )
19098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19102     ac_header_preproc=yes
19103     ;;
19104   no:yes:* )
19105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19117     (
19118       cat <<\_ASBOX
19119 ## --------------------------------------------- ##
19120 ## Report this to <http://www.openldap.org/its/> ##
19121 ## --------------------------------------------- ##
19122 _ASBOX
19123     ) |
19124       sed "s/^/$as_me: WARNING:     /" >&2
19125     ;;
19126 esac
19127 echo "$as_me:$LINENO: checking for $ac_header" >&5
19128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   eval "$as_ac_Header=\$ac_header_preproc"
19133 fi
19134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19136
19137 fi
19138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19139   cat >>confdefs.h <<_ACEOF
19140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19141 _ACEOF
19142
19143 fi
19144
19145 done
19146
19147
19148         if test $ac_cv_header_krb_h = yes ; then
19149                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19150 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19151 if test "${ac_cv_lib_krb_main+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154   ac_check_lib_save_LIBS=$LIBS
19155 LIBS="-lkrb -ldes $LIBS"
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162
19163
19164 int
19165 main ()
19166 {
19167 main ();
19168   ;
19169   return 0;
19170 }
19171 _ACEOF
19172 rm -f conftest.$ac_objext conftest$ac_exeext
19173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19174   (eval $ac_link) 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } &&
19181          { ac_try='test -z "$ac_c_werror_flag"
19182                          || test ! -s conftest.err'
19183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184   (eval $ac_try) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); }; } &&
19188          { ac_try='test -s conftest$ac_exeext'
19189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190   (eval $ac_try) 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; }; then
19194   ac_cv_lib_krb_main=yes
19195 else
19196   echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199 ac_cv_lib_krb_main=no
19200 fi
19201 rm -f conftest.err conftest.$ac_objext \
19202       conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19204 fi
19205 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19206 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19207 if test $ac_cv_lib_krb_main = yes; then
19208   have_k4=yes
19209 else
19210   have_k4=no
19211 fi
19212
19213
19214                 if test $have_k4 = yes ; then
19215                         ol_with_kerberos=found
19216                         ol_link_krb4=yes
19217
19218
19219 cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_KRB4 1
19221 _ACEOF
19222
19223
19224                         KRB4_LIBS="-lkrb -ldes"
19225
19226                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19227
19228 cat >>confdefs.h <<\_ACEOF
19229 #define HAVE_KTH_KERBEROS 1
19230 _ACEOF
19231
19232                         fi
19233                 fi
19234         fi
19235         ;;
19236 esac
19237
19238 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19239         ol_link_kbind=yes
19240
19241 elif test $ol_enable_kbind = yes ; then
19242         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19243 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19244    { (exit 1); exit 1; }; }
19245 fi
19246
19247 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19248
19249 cat >>confdefs.h <<\_ACEOF
19250 #define HAVE_KERBEROS 1
19251 _ACEOF
19252
19253
19254 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19255         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19256 echo "$as_me: error: Kerberos detection failed" >&2;}
19257    { (exit 1); exit 1; }; }
19258 fi
19259
19260
19261 ol_link_tls=no
19262 if test $ol_with_tls != no ; then
19263
19264 for ac_header in openssl/ssl.h
19265 do
19266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19268   echo "$as_me:$LINENO: checking for $ac_header" >&5
19269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19271   echo $ECHO_N "(cached) $ECHO_C" >&6
19272 fi
19273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19275 else
19276   # Is the header compilable?
19277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19279 cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285 $ac_includes_default
19286 #include <$ac_header>
19287 _ACEOF
19288 rm -f conftest.$ac_objext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19290   (eval $ac_compile) 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } &&
19297          { ac_try='test -z "$ac_c_werror_flag"
19298                          || test ! -s conftest.err'
19299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300   (eval $ac_try) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; } &&
19304          { ac_try='test -s conftest.$ac_objext'
19305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306   (eval $ac_try) 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310   ac_header_compiler=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_header_compiler=no
19316 fi
19317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19318 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19319 echo "${ECHO_T}$ac_header_compiler" >&6
19320
19321 # Is the header present?
19322 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330 #include <$ac_header>
19331 _ACEOF
19332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19334   ac_status=$?
19335   grep -v '^ *+' conftest.er1 >conftest.err
19336   rm -f conftest.er1
19337   cat conftest.err >&5
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); } >/dev/null; then
19340   if test -s conftest.err; then
19341     ac_cpp_err=$ac_c_preproc_warn_flag
19342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19343   else
19344     ac_cpp_err=
19345   fi
19346 else
19347   ac_cpp_err=yes
19348 fi
19349 if test -z "$ac_cpp_err"; then
19350   ac_header_preproc=yes
19351 else
19352   echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19354
19355   ac_header_preproc=no
19356 fi
19357 rm -f conftest.err conftest.$ac_ext
19358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19359 echo "${ECHO_T}$ac_header_preproc" >&6
19360
19361 # So?  What about this header?
19362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19363   yes:no: )
19364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19368     ac_header_preproc=yes
19369     ;;
19370   no:yes:* )
19371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19383     (
19384       cat <<\_ASBOX
19385 ## --------------------------------------------- ##
19386 ## Report this to <http://www.openldap.org/its/> ##
19387 ## --------------------------------------------- ##
19388 _ASBOX
19389     ) |
19390       sed "s/^/$as_me: WARNING:     /" >&2
19391     ;;
19392 esac
19393 echo "$as_me:$LINENO: checking for $ac_header" >&5
19394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   eval "$as_ac_Header=\$ac_header_preproc"
19399 fi
19400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19402
19403 fi
19404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19405   cat >>confdefs.h <<_ACEOF
19406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19407 _ACEOF
19408
19409 fi
19410
19411 done
19412
19413
19414         if test $ac_cv_header_openssl_ssl_h = yes ; then
19415                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19416 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19417 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-lssl -lcrypto $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428
19429 /* Override any gcc2 internal prototype to avoid an error.  */
19430 #ifdef __cplusplus
19431 extern "C"
19432 #endif
19433 /* We use char because int might match the return type of a gcc2
19434    builtin and then its argument prototype would still apply.  */
19435 char SSL_library_init ();
19436 int
19437 main ()
19438 {
19439 SSL_library_init ();
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446   (eval $ac_link) 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } &&
19453          { ac_try='test -z "$ac_c_werror_flag"
19454                          || test ! -s conftest.err'
19455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456   (eval $ac_try) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); }; } &&
19460          { ac_try='test -s conftest$ac_exeext'
19461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462   (eval $ac_try) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }; }; then
19466   ac_cv_lib_ssl_SSL_library_init=yes
19467 else
19468   echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471 ac_cv_lib_ssl_SSL_library_init=no
19472 fi
19473 rm -f conftest.err conftest.$ac_objext \
19474       conftest$ac_exeext conftest.$ac_ext
19475 LIBS=$ac_check_lib_save_LIBS
19476 fi
19477 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19478 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19479 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19480   have_openssl=yes
19481                         need_rsaref=no
19482 else
19483   have_openssl=no
19484 fi
19485
19486
19487                 if test $have_openssl = no ; then
19488                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19489 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19490 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19491   echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493   ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h.  */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h.  */
19501
19502 /* Override any gcc2 internal prototype to avoid an error.  */
19503 #ifdef __cplusplus
19504 extern "C"
19505 #endif
19506 /* We use char because int might match the return type of a gcc2
19507    builtin and then its argument prototype would still apply.  */
19508 char ssl3_accept ();
19509 int
19510 main ()
19511 {
19512 ssl3_accept ();
19513   ;
19514   return 0;
19515 }
19516 _ACEOF
19517 rm -f conftest.$ac_objext conftest$ac_exeext
19518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19519   (eval $ac_link) 2>conftest.er1
19520   ac_status=$?
19521   grep -v '^ *+' conftest.er1 >conftest.err
19522   rm -f conftest.er1
19523   cat conftest.err >&5
19524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525   (exit $ac_status); } &&
19526          { ac_try='test -z "$ac_c_werror_flag"
19527                          || test ! -s conftest.err'
19528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529   (eval $ac_try) 2>&5
19530   ac_status=$?
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); }; } &&
19533          { ac_try='test -s conftest$ac_exeext'
19534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535   (eval $ac_try) 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539   ac_cv_lib_ssl_ssl3_accept=yes
19540 else
19541   echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19543
19544 ac_cv_lib_ssl_ssl3_accept=no
19545 fi
19546 rm -f conftest.err conftest.$ac_objext \
19547       conftest$ac_exeext conftest.$ac_ext
19548 LIBS=$ac_check_lib_save_LIBS
19549 fi
19550 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19551 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19552 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19553   have_openssl=yes
19554                                 need_rsaref=yes
19555 else
19556   have_openssl=no
19557 fi
19558
19559                 fi
19560
19561                 if test $have_openssl = yes ; then
19562                         ol_with_tls=found
19563                         ol_link_tls=yes
19564
19565
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_OPENSSL 1
19568 _ACEOF
19569
19570
19571                         if test $need_rsaref = yes; then
19572
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE_RSAREF 1
19575 _ACEOF
19576
19577
19578                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19579                         else
19580                                 TLS_LIBS="-lssl -lcrypto"
19581                         fi
19582                 fi
19583                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19584 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19585 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588
19589         cat >conftest.$ac_ext <<_ACEOF
19590 /* confdefs.h.  */
19591 _ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h.  */
19595
19596 #ifdef HAVE_OPENSSL_SSL_H
19597 #include <openssl/ssl.h>
19598 #else
19599 #include <ssl.h>
19600 #endif
19601
19602 /* Require 0.9.7d+ */
19603 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19604         char *__ssl_compat = "0.9.7d";
19605 #endif
19606
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19610   ol_cv_ssl_crl_compat=yes
19611 else
19612   ol_cv_ssl_crl_compat=no
19613 fi
19614 rm -f conftest*
19615
19616 fi
19617 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19618 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19619
19620                 if test $ol_cv_ssl_crl_compat = no ; then
19621                         ol_link_ssl=no
19622                 else
19623
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_OPENSSL_CRL 1
19626 _ACEOF
19627
19628                 fi
19629         fi
19630
19631 else
19632         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19633 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19634 fi
19635
19636 WITH_TLS=no
19637 if test $ol_link_tls = yes ; then
19638
19639 cat >>confdefs.h <<\_ACEOF
19640 #define HAVE_TLS 1
19641 _ACEOF
19642
19643         WITH_TLS=yes
19644
19645 elif test $ol_with_tls = auto ; then
19646         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19647 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19648         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19649 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19650
19651 elif test $ol_with_tls != no ; then
19652         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19653 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19654    { (exit 1); exit 1; }; }
19655 fi
19656
19657 if test $ol_enable_lmpasswd != no; then
19658         if test $ol_link_tls != yes ; then
19659                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19660 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19661    { (exit 1); exit 1; }; }
19662         fi
19663
19664
19665 cat >>confdefs.h <<\_ACEOF
19666 #define SLAPD_LMHASH 1
19667 _ACEOF
19668
19669 fi
19670
19671 ol_link_threads=no
19672
19673 case $ol_with_threads in auto | yes | nt)
19674
19675
19676         echo "$as_me:$LINENO: checking for _beginthread" >&5
19677 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19678 if test "${ac_cv_func__beginthread+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19689 #define _beginthread innocuous__beginthread
19690
19691 /* System header to define __stub macros and hopefully few prototypes,
19692     which can conflict with char _beginthread (); below.
19693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19694     <limits.h> exists even on freestanding compilers.  */
19695
19696 #ifdef __STDC__
19697 # include <limits.h>
19698 #else
19699 # include <assert.h>
19700 #endif
19701
19702 #undef _beginthread
19703
19704 /* Override any gcc2 internal prototype to avoid an error.  */
19705 #ifdef __cplusplus
19706 extern "C"
19707 {
19708 #endif
19709 /* We use char because int might match the return type of a gcc2
19710    builtin and then its argument prototype would still apply.  */
19711 char _beginthread ();
19712 /* The GNU C library defines this for functions which it implements
19713     to always fail with ENOSYS.  Some functions are actually named
19714     something starting with __ and the normal name is an alias.  */
19715 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19716 choke me
19717 #else
19718 char (*f) () = _beginthread;
19719 #endif
19720 #ifdef __cplusplus
19721 }
19722 #endif
19723
19724 int
19725 main ()
19726 {
19727 return f != _beginthread;
19728   ;
19729   return 0;
19730 }
19731 _ACEOF
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19734   (eval $ac_link) 2>conftest.er1
19735   ac_status=$?
19736   grep -v '^ *+' conftest.er1 >conftest.err
19737   rm -f conftest.er1
19738   cat conftest.err >&5
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); } &&
19741          { ac_try='test -z "$ac_c_werror_flag"
19742                          || test ! -s conftest.err'
19743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744   (eval $ac_try) 2>&5
19745   ac_status=$?
19746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747   (exit $ac_status); }; } &&
19748          { ac_try='test -s conftest$ac_exeext'
19749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750   (eval $ac_try) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); }; }; then
19754   ac_cv_func__beginthread=yes
19755 else
19756   echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 ac_cv_func__beginthread=no
19760 fi
19761 rm -f conftest.err conftest.$ac_objext \
19762       conftest$ac_exeext conftest.$ac_ext
19763 fi
19764 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19765 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19766
19767
19768         if test $ac_cv_func__beginthread = yes ; then
19769
19770 cat >>confdefs.h <<\_ACEOF
19771 #define HAVE_NT_THREADS 1
19772 _ACEOF
19773
19774                 ol_cv_nt_threads=yes
19775         fi
19776
19777
19778         if test "$ol_cv_nt_threads" = yes ; then
19779                 ol_link_threads=nt
19780                 ol_with_threads=found
19781                 ol_with_yielding_select=yes
19782
19783
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_NT_SERVICE_MANAGER 1
19786 _ACEOF
19787
19788
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_NT_EVENT_LOG 1
19791 _ACEOF
19792
19793         fi
19794
19795         if test $ol_with_threads = nt ; then
19796                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19797 echo "$as_me: error: could not locate NT Threads" >&2;}
19798    { (exit 1); exit 1; }; }
19799         fi
19800         ;;
19801 esac
19802
19803 case $ol_with_threads in auto | yes | posix)
19804
19805
19806 for ac_header in pthread.h
19807 do
19808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19810   echo "$as_me:$LINENO: checking for $ac_header" >&5
19811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19813   echo $ECHO_N "(cached) $ECHO_C" >&6
19814 fi
19815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19817 else
19818   # Is the header compilable?
19819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h.  */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h.  */
19827 $ac_includes_default
19828 #include <$ac_header>
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19832   (eval $ac_compile) 2>conftest.er1
19833   ac_status=$?
19834   grep -v '^ *+' conftest.er1 >conftest.err
19835   rm -f conftest.er1
19836   cat conftest.err >&5
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); } &&
19839          { ac_try='test -z "$ac_c_werror_flag"
19840                          || test ! -s conftest.err'
19841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842   (eval $ac_try) 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; } &&
19846          { ac_try='test -s conftest.$ac_objext'
19847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848   (eval $ac_try) 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); }; }; then
19852   ac_header_compiler=yes
19853 else
19854   echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ac_header_compiler=no
19858 fi
19859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19861 echo "${ECHO_T}$ac_header_compiler" >&6
19862
19863 # Is the header present?
19864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872 #include <$ac_header>
19873 _ACEOF
19874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19876   ac_status=$?
19877   grep -v '^ *+' conftest.er1 >conftest.err
19878   rm -f conftest.er1
19879   cat conftest.err >&5
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); } >/dev/null; then
19882   if test -s conftest.err; then
19883     ac_cpp_err=$ac_c_preproc_warn_flag
19884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19885   else
19886     ac_cpp_err=
19887   fi
19888 else
19889   ac_cpp_err=yes
19890 fi
19891 if test -z "$ac_cpp_err"; then
19892   ac_header_preproc=yes
19893 else
19894   echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897   ac_header_preproc=no
19898 fi
19899 rm -f conftest.err conftest.$ac_ext
19900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19901 echo "${ECHO_T}$ac_header_preproc" >&6
19902
19903 # So?  What about this header?
19904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19905   yes:no: )
19906     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19910     ac_header_preproc=yes
19911     ;;
19912   no:yes:* )
19913     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19915     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19916 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19917     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19919     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19920 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19923     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19925     (
19926       cat <<\_ASBOX
19927 ## --------------------------------------------- ##
19928 ## Report this to <http://www.openldap.org/its/> ##
19929 ## --------------------------------------------- ##
19930 _ASBOX
19931     ) |
19932       sed "s/^/$as_me: WARNING:     /" >&2
19933     ;;
19934 esac
19935 echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940   eval "$as_ac_Header=\$ac_header_preproc"
19941 fi
19942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19944
19945 fi
19946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19947   cat >>confdefs.h <<_ACEOF
19948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19949 _ACEOF
19950
19951 fi
19952
19953 done
19954
19955
19956         if test $ac_cv_header_pthread_h = yes ; then
19957                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19958 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19959 if test "${ol_cv_pthread_version+set}" = set; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962
19963         cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969
19970 #               include <pthread.h>
19971
19972 int
19973 main ()
19974 {
19975
19976                 int i = PTHREAD_CREATE_JOINABLE;
19977
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984   (eval $ac_compile) 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } &&
19991          { ac_try='test -z "$ac_c_werror_flag"
19992                          || test ! -s conftest.err'
19993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994   (eval $ac_try) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); }; } &&
19998          { ac_try='test -s conftest.$ac_objext'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; }; then
20004
20005         cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h.  */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h.  */
20011 #include <pthread.h>
20012
20013 _ACEOF
20014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20015   $EGREP "pthread_detach" >/dev/null 2>&1; then
20016   ol_cv_pthread_version=10
20017 else
20018   ol_cv_pthread_version=8
20019 fi
20020 rm -f conftest*
20021
20022 else
20023   echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026
20027         cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033
20034 #               include <pthread.h>
20035 #               ifdef PTHREAD_CREATE_UNDETACHED
20036                 draft7
20037 #               endif
20038
20039 _ACEOF
20040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20041   $EGREP "draft7" >/dev/null 2>&1; then
20042   ol_cv_pthread_version=7
20043 else
20044
20045         cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h.  */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h.  */
20051 #include <pthread.h>
20052
20053 _ACEOF
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20056   ol_cv_pthread_version=6
20057 else
20058
20059         cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065
20066 #               include <pthread.h>
20067 #ifdef          PTHREAD_MUTEX_INITIALIZER
20068                 draft5
20069 #endif
20070
20071 _ACEOF
20072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20073   $EGREP "draft5" >/dev/null 2>&1; then
20074   ol_cv_pthread_version=5
20075 else
20076   ol_cv_pthread_version=4
20077 fi
20078 rm -f conftest*
20079
20080 fi
20081 rm -f conftest*
20082
20083 fi
20084 rm -f conftest*
20085
20086 fi
20087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20088
20089 fi
20090 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20091 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20092
20093
20094                 if test $ol_cv_pthread_version != 0 ; then
20095
20096 cat >>confdefs.h <<_ACEOF
20097 #define HAVE_PTHREADS $ol_cv_pthread_version
20098 _ACEOF
20099
20100                 else
20101                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20102 echo "$as_me: error: unknown pthread version" >&2;}
20103    { (exit 1); exit 1; }; }
20104                 fi
20105
20106                 # consider threads found
20107                 ol_with_threads=found
20108
20109
20110         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20111 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20112 if test "${ol_cv_header_linux_threads+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121 #include <pthread.h>
20122 _ACEOF
20123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20124   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20125   ol_cv_header_linux_threads=yes
20126 else
20127   ol_cv_header_linux_threads=no
20128 fi
20129 rm -f conftest*
20130
20131
20132 fi
20133 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20134 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20135         if test $ol_cv_header_linux_threads = yes; then
20136
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_LINUX_THREADS 1
20139 _ACEOF
20140
20141         fi
20142
20143
20144         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20145 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20146 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149   cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 #include <pthread.h>
20156 #ifdef _POSIX_THREAD_IS_GNU_PTH
20157         __gnu_pth__;
20158 #endif
20159
20160 _ACEOF
20161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20162   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20163   ol_cv_header_gnu_pth_pthread_h=yes
20164 else
20165   ol_cv_header_gnu_pth_pthread_h=no
20166 fi
20167 rm -f conftest*
20168
20169
20170 fi
20171 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20172 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20173
20174
20175                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20176
20177 for ac_header in sched.h
20178 do
20179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20181   echo "$as_me:$LINENO: checking for $ac_header" >&5
20182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20184   echo $ECHO_N "(cached) $ECHO_C" >&6
20185 fi
20186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20188 else
20189   # Is the header compilable?
20190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 $ac_includes_default
20199 #include <$ac_header>
20200 _ACEOF
20201 rm -f conftest.$ac_objext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20203   (eval $ac_compile) 2>conftest.er1
20204   ac_status=$?
20205   grep -v '^ *+' conftest.er1 >conftest.err
20206   rm -f conftest.er1
20207   cat conftest.err >&5
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } &&
20210          { ac_try='test -z "$ac_c_werror_flag"
20211                          || test ! -s conftest.err'
20212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213   (eval $ac_try) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; } &&
20217          { ac_try='test -s conftest.$ac_objext'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; }; then
20223   ac_header_compiler=yes
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ac_header_compiler=no
20229 fi
20230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20232 echo "${ECHO_T}$ac_header_compiler" >&6
20233
20234 # Is the header present?
20235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20237 cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 #include <$ac_header>
20244 _ACEOF
20245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20247   ac_status=$?
20248   grep -v '^ *+' conftest.er1 >conftest.err
20249   rm -f conftest.er1
20250   cat conftest.err >&5
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); } >/dev/null; then
20253   if test -s conftest.err; then
20254     ac_cpp_err=$ac_c_preproc_warn_flag
20255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20256   else
20257     ac_cpp_err=
20258   fi
20259 else
20260   ac_cpp_err=yes
20261 fi
20262 if test -z "$ac_cpp_err"; then
20263   ac_header_preproc=yes
20264 else
20265   echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268   ac_header_preproc=no
20269 fi
20270 rm -f conftest.err conftest.$ac_ext
20271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20272 echo "${ECHO_T}$ac_header_preproc" >&6
20273
20274 # So?  What about this header?
20275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20276   yes:no: )
20277     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20281     ac_header_preproc=yes
20282     ;;
20283   no:yes:* )
20284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20286     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20287 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20288     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20290     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20291 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20294     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20296     (
20297       cat <<\_ASBOX
20298 ## --------------------------------------------- ##
20299 ## Report this to <http://www.openldap.org/its/> ##
20300 ## --------------------------------------------- ##
20301 _ASBOX
20302     ) |
20303       sed "s/^/$as_me: WARNING:     /" >&2
20304     ;;
20305 esac
20306 echo "$as_me:$LINENO: checking for $ac_header" >&5
20307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20309   echo $ECHO_N "(cached) $ECHO_C" >&6
20310 else
20311   eval "$as_ac_Header=\$ac_header_preproc"
20312 fi
20313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20315
20316 fi
20317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20318   cat >>confdefs.h <<_ACEOF
20319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20320 _ACEOF
20321
20322 fi
20323
20324 done
20325
20326                 fi
20327
20328
20329                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20330 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20331 if test "${ol_cv_pthread_create+set}" = set; then
20332   echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334
20335                         if test "$cross_compiling" = yes; then
20336   cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h.  */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h.  */
20342
20343 /* pthread test headers */
20344 #include <pthread.h>
20345 #if HAVE_PTHREADS < 7
20346 #include <errno.h>
20347 #endif
20348 #ifndef NULL
20349 #define NULL (void*)0
20350 #endif
20351
20352 static void *task(p)
20353         void *p;
20354 {
20355         return (void *) (p == NULL);
20356 }
20357
20358 int
20359 main ()
20360 {
20361
20362         /* pthread test function */
20363 #ifndef PTHREAD_CREATE_DETACHED
20364 #define PTHREAD_CREATE_DETACHED 1
20365 #endif
20366         pthread_t t;
20367         int status;
20368         int detach = PTHREAD_CREATE_DETACHED;
20369
20370 #if HAVE_PTHREADS > 4
20371         /* Final pthreads */
20372         pthread_attr_t attr;
20373
20374         status = pthread_attr_init(&attr);
20375         if( status ) return status;
20376
20377 #if HAVE_PTHREADS < 7
20378         status = pthread_attr_setdetachstate(&attr, &detach);
20379         if( status < 0 ) status = errno;
20380 #else
20381         status = pthread_attr_setdetachstate(&attr, detach);
20382 #endif
20383         if( status ) return status;
20384         status = pthread_create( &t, &attr, task, NULL );
20385 #if HAVE_PTHREADS < 7
20386         if( status < 0 ) status = errno;
20387 #endif
20388         if( status ) return status;
20389 #else
20390         /* Draft 4 pthreads */
20391         status = pthread_create( &t, pthread_attr_default, task, NULL );
20392         if( status ) return errno;
20393
20394         /* give thread a chance to complete */
20395         /* it should remain joinable and hence detachable */
20396         sleep( 1 );
20397
20398         status = pthread_detach( &t );
20399         if( status ) return errno;
20400 #endif
20401
20402 #ifdef HAVE_LINUX_THREADS
20403         pthread_kill_other_threads_np();
20404 #endif
20405
20406         return 0;
20407
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20414   (eval $ac_link) 2>conftest.er1
20415   ac_status=$?
20416   grep -v '^ *+' conftest.er1 >conftest.err
20417   rm -f conftest.er1
20418   cat conftest.err >&5
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); } &&
20421          { ac_try='test -z "$ac_c_werror_flag"
20422                          || test ! -s conftest.err'
20423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424   (eval $ac_try) 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; } &&
20428          { ac_try='test -s conftest$ac_exeext'
20429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430   (eval $ac_try) 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); }; }; then
20434   ol_cv_pthread_create=yes
20435 else
20436   echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 ol_cv_pthread_create=no
20440 fi
20441 rm -f conftest.err conftest.$ac_objext \
20442       conftest$ac_exeext conftest.$ac_ext
20443 else
20444   cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450
20451 /* pthread test headers */
20452 #include <pthread.h>
20453 #if HAVE_PTHREADS < 7
20454 #include <errno.h>
20455 #endif
20456 #ifndef NULL
20457 #define NULL (void*)0
20458 #endif
20459
20460 static void *task(p)
20461         void *p;
20462 {
20463         return (void *) (p == NULL);
20464 }
20465
20466
20467 int main(argc, argv)
20468         int argc;
20469         char **argv;
20470 {
20471
20472         /* pthread test function */
20473 #ifndef PTHREAD_CREATE_DETACHED
20474 #define PTHREAD_CREATE_DETACHED 1
20475 #endif
20476         pthread_t t;
20477         int status;
20478         int detach = PTHREAD_CREATE_DETACHED;
20479
20480 #if HAVE_PTHREADS > 4
20481         /* Final pthreads */
20482         pthread_attr_t attr;
20483
20484         status = pthread_attr_init(&attr);
20485         if( status ) return status;
20486
20487 #if HAVE_PTHREADS < 7
20488         status = pthread_attr_setdetachstate(&attr, &detach);
20489         if( status < 0 ) status = errno;
20490 #else
20491         status = pthread_attr_setdetachstate(&attr, detach);
20492 #endif
20493         if( status ) return status;
20494         status = pthread_create( &t, &attr, task, NULL );
20495 #if HAVE_PTHREADS < 7
20496         if( status < 0 ) status = errno;
20497 #endif
20498         if( status ) return status;
20499 #else
20500         /* Draft 4 pthreads */
20501         status = pthread_create( &t, pthread_attr_default, task, NULL );
20502         if( status ) return errno;
20503
20504         /* give thread a chance to complete */
20505         /* it should remain joinable and hence detachable */
20506         sleep( 1 );
20507
20508         status = pthread_detach( &t );
20509         if( status ) return errno;
20510 #endif
20511
20512 #ifdef HAVE_LINUX_THREADS
20513         pthread_kill_other_threads_np();
20514 #endif
20515
20516         return 0;
20517
20518 }
20519
20520 _ACEOF
20521 rm -f conftest$ac_exeext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20523   (eval $ac_link) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ol_cv_pthread_create=yes
20533 else
20534   echo "$as_me: program exited with status $ac_status" >&5
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 ( exit $ac_status )
20539 ol_cv_pthread_create=no
20540 fi
20541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20542 fi
20543 fi
20544 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20545 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20546
20547                 if test $ol_cv_pthread_create != no ; then
20548                         ol_link_threads=posix
20549                         ol_link_pthreads=""
20550                 fi
20551
20552                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20553 if test "$ol_link_threads" = no ; then
20554         # try -kthread
20555         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20556 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20557 if test "${ol_cv_pthread_kthread+set}" = set; then
20558   echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560
20561                 # save the flags
20562                 ol_LIBS="$LIBS"
20563                 LIBS="-kthread $LIBS"
20564
20565                 if test "$cross_compiling" = yes; then
20566   cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h.  */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h.  */
20572
20573 /* pthread test headers */
20574 #include <pthread.h>
20575 #if HAVE_PTHREADS < 7
20576 #include <errno.h>
20577 #endif
20578 #ifndef NULL
20579 #define NULL (void*)0
20580 #endif
20581
20582 static void *task(p)
20583         void *p;
20584 {
20585         return (void *) (p == NULL);
20586 }
20587
20588 int
20589 main ()
20590 {
20591
20592         /* pthread test function */
20593 #ifndef PTHREAD_CREATE_DETACHED
20594 #define PTHREAD_CREATE_DETACHED 1
20595 #endif
20596         pthread_t t;
20597         int status;
20598         int detach = PTHREAD_CREATE_DETACHED;
20599
20600 #if HAVE_PTHREADS > 4
20601         /* Final pthreads */
20602         pthread_attr_t attr;
20603
20604         status = pthread_attr_init(&attr);
20605         if( status ) return status;
20606
20607 #if HAVE_PTHREADS < 7
20608         status = pthread_attr_setdetachstate(&attr, &detach);
20609         if( status < 0 ) status = errno;
20610 #else
20611         status = pthread_attr_setdetachstate(&attr, detach);
20612 #endif
20613         if( status ) return status;
20614         status = pthread_create( &t, &attr, task, NULL );
20615 #if HAVE_PTHREADS < 7
20616         if( status < 0 ) status = errno;
20617 #endif
20618         if( status ) return status;
20619 #else
20620         /* Draft 4 pthreads */
20621         status = pthread_create( &t, pthread_attr_default, task, NULL );
20622         if( status ) return errno;
20623
20624         /* give thread a chance to complete */
20625         /* it should remain joinable and hence detachable */
20626         sleep( 1 );
20627
20628         status = pthread_detach( &t );
20629         if( status ) return errno;
20630 #endif
20631
20632 #ifdef HAVE_LINUX_THREADS
20633         pthread_kill_other_threads_np();
20634 #endif
20635
20636         return 0;
20637
20638   ;
20639   return 0;
20640 }
20641 _ACEOF
20642 rm -f conftest.$ac_objext conftest$ac_exeext
20643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20644   (eval $ac_link) 2>conftest.er1
20645   ac_status=$?
20646   grep -v '^ *+' conftest.er1 >conftest.err
20647   rm -f conftest.er1
20648   cat conftest.err >&5
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); } &&
20651          { ac_try='test -z "$ac_c_werror_flag"
20652                          || test ! -s conftest.err'
20653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654   (eval $ac_try) 2>&5
20655   ac_status=$?
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); }; } &&
20658          { ac_try='test -s conftest$ac_exeext'
20659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660   (eval $ac_try) 2>&5
20661   ac_status=$?
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); }; }; then
20664   ol_cv_pthread_kthread=yes
20665 else
20666   echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669 ol_cv_pthread_kthread=no
20670 fi
20671 rm -f conftest.err conftest.$ac_objext \
20672       conftest$ac_exeext conftest.$ac_ext
20673 else
20674   cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680
20681 /* pthread test headers */
20682 #include <pthread.h>
20683 #if HAVE_PTHREADS < 7
20684 #include <errno.h>
20685 #endif
20686 #ifndef NULL
20687 #define NULL (void*)0
20688 #endif
20689
20690 static void *task(p)
20691         void *p;
20692 {
20693         return (void *) (p == NULL);
20694 }
20695
20696
20697 int main(argc, argv)
20698         int argc;
20699         char **argv;
20700 {
20701
20702         /* pthread test function */
20703 #ifndef PTHREAD_CREATE_DETACHED
20704 #define PTHREAD_CREATE_DETACHED 1
20705 #endif
20706         pthread_t t;
20707         int status;
20708         int detach = PTHREAD_CREATE_DETACHED;
20709
20710 #if HAVE_PTHREADS > 4
20711         /* Final pthreads */
20712         pthread_attr_t attr;
20713
20714         status = pthread_attr_init(&attr);
20715         if( status ) return status;
20716
20717 #if HAVE_PTHREADS < 7
20718         status = pthread_attr_setdetachstate(&attr, &detach);
20719         if( status < 0 ) status = errno;
20720 #else
20721         status = pthread_attr_setdetachstate(&attr, detach);
20722 #endif
20723         if( status ) return status;
20724         status = pthread_create( &t, &attr, task, NULL );
20725 #if HAVE_PTHREADS < 7
20726         if( status < 0 ) status = errno;
20727 #endif
20728         if( status ) return status;
20729 #else
20730         /* Draft 4 pthreads */
20731         status = pthread_create( &t, pthread_attr_default, task, NULL );
20732         if( status ) return errno;
20733
20734         /* give thread a chance to complete */
20735         /* it should remain joinable and hence detachable */
20736         sleep( 1 );
20737
20738         status = pthread_detach( &t );
20739         if( status ) return errno;
20740 #endif
20741
20742 #ifdef HAVE_LINUX_THREADS
20743         pthread_kill_other_threads_np();
20744 #endif
20745
20746         return 0;
20747
20748 }
20749
20750 _ACEOF
20751 rm -f conftest$ac_exeext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20753   (eval $ac_link) 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758   (eval $ac_try) 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; }; then
20762   ol_cv_pthread_kthread=yes
20763 else
20764   echo "$as_me: program exited with status $ac_status" >&5
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20767
20768 ( exit $ac_status )
20769 ol_cv_pthread_kthread=no
20770 fi
20771 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20772 fi
20773
20774                 # restore the LIBS
20775                 LIBS="$ol_LIBS"
20776
20777 fi
20778 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20779 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20780
20781         if test $ol_cv_pthread_kthread = yes ; then
20782                 ol_link_pthreads="-kthread"
20783                 ol_link_threads=posix
20784         fi
20785 fi
20786
20787                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20788 if test "$ol_link_threads" = no ; then
20789         # try -pthread
20790         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20791 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20792 if test "${ol_cv_pthread_pthread+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795
20796                 # save the flags
20797                 ol_LIBS="$LIBS"
20798                 LIBS="-pthread $LIBS"
20799
20800                 if test "$cross_compiling" = yes; then
20801   cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h.  */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h.  */
20807
20808 /* pthread test headers */
20809 #include <pthread.h>
20810 #if HAVE_PTHREADS < 7
20811 #include <errno.h>
20812 #endif
20813 #ifndef NULL
20814 #define NULL (void*)0
20815 #endif
20816
20817 static void *task(p)
20818         void *p;
20819 {
20820         return (void *) (p == NULL);
20821 }
20822
20823 int
20824 main ()
20825 {
20826
20827         /* pthread test function */
20828 #ifndef PTHREAD_CREATE_DETACHED
20829 #define PTHREAD_CREATE_DETACHED 1
20830 #endif
20831         pthread_t t;
20832         int status;
20833         int detach = PTHREAD_CREATE_DETACHED;
20834
20835 #if HAVE_PTHREADS > 4
20836         /* Final pthreads */
20837         pthread_attr_t attr;
20838
20839         status = pthread_attr_init(&attr);
20840         if( status ) return status;
20841
20842 #if HAVE_PTHREADS < 7
20843         status = pthread_attr_setdetachstate(&attr, &detach);
20844         if( status < 0 ) status = errno;
20845 #else
20846         status = pthread_attr_setdetachstate(&attr, detach);
20847 #endif
20848         if( status ) return status;
20849         status = pthread_create( &t, &attr, task, NULL );
20850 #if HAVE_PTHREADS < 7
20851         if( status < 0 ) status = errno;
20852 #endif
20853         if( status ) return status;
20854 #else
20855         /* Draft 4 pthreads */
20856         status = pthread_create( &t, pthread_attr_default, task, NULL );
20857         if( status ) return errno;
20858
20859         /* give thread a chance to complete */
20860         /* it should remain joinable and hence detachable */
20861         sleep( 1 );
20862
20863         status = pthread_detach( &t );
20864         if( status ) return errno;
20865 #endif
20866
20867 #ifdef HAVE_LINUX_THREADS
20868         pthread_kill_other_threads_np();
20869 #endif
20870
20871         return 0;
20872
20873   ;
20874   return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879   (eval $ac_link) 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -z "$ac_c_werror_flag"
20887                          || test ! -s conftest.err'
20888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889   (eval $ac_try) 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); }; } &&
20893          { ac_try='test -s conftest$ac_exeext'
20894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895   (eval $ac_try) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; }; then
20899   ol_cv_pthread_pthread=yes
20900 else
20901   echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 ol_cv_pthread_pthread=no
20905 fi
20906 rm -f conftest.err conftest.$ac_objext \
20907       conftest$ac_exeext conftest.$ac_ext
20908 else
20909   cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915
20916 /* pthread test headers */
20917 #include <pthread.h>
20918 #if HAVE_PTHREADS < 7
20919 #include <errno.h>
20920 #endif
20921 #ifndef NULL
20922 #define NULL (void*)0
20923 #endif
20924
20925 static void *task(p)
20926         void *p;
20927 {
20928         return (void *) (p == NULL);
20929 }
20930
20931
20932 int main(argc, argv)
20933         int argc;
20934         char **argv;
20935 {
20936
20937         /* pthread test function */
20938 #ifndef PTHREAD_CREATE_DETACHED
20939 #define PTHREAD_CREATE_DETACHED 1
20940 #endif
20941         pthread_t t;
20942         int status;
20943         int detach = PTHREAD_CREATE_DETACHED;
20944
20945 #if HAVE_PTHREADS > 4
20946         /* Final pthreads */
20947         pthread_attr_t attr;
20948
20949         status = pthread_attr_init(&attr);
20950         if( status ) return status;
20951
20952 #if HAVE_PTHREADS < 7
20953         status = pthread_attr_setdetachstate(&attr, &detach);
20954         if( status < 0 ) status = errno;
20955 #else
20956         status = pthread_attr_setdetachstate(&attr, detach);
20957 #endif
20958         if( status ) return status;
20959         status = pthread_create( &t, &attr, task, NULL );
20960 #if HAVE_PTHREADS < 7
20961         if( status < 0 ) status = errno;
20962 #endif
20963         if( status ) return status;
20964 #else
20965         /* Draft 4 pthreads */
20966         status = pthread_create( &t, pthread_attr_default, task, NULL );
20967         if( status ) return errno;
20968
20969         /* give thread a chance to complete */
20970         /* it should remain joinable and hence detachable */
20971         sleep( 1 );
20972
20973         status = pthread_detach( &t );
20974         if( status ) return errno;
20975 #endif
20976
20977 #ifdef HAVE_LINUX_THREADS
20978         pthread_kill_other_threads_np();
20979 #endif
20980
20981         return 0;
20982
20983 }
20984
20985 _ACEOF
20986 rm -f conftest$ac_exeext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20988   (eval $ac_link) 2>&5
20989   ac_status=$?
20990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   ol_cv_pthread_pthread=yes
20998 else
20999   echo "$as_me: program exited with status $ac_status" >&5
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 ( exit $ac_status )
21004 ol_cv_pthread_pthread=no
21005 fi
21006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21007 fi
21008
21009                 # restore the LIBS
21010                 LIBS="$ol_LIBS"
21011
21012 fi
21013 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21014 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21015
21016         if test $ol_cv_pthread_pthread = yes ; then
21017                 ol_link_pthreads="-pthread"
21018                 ol_link_threads=posix
21019         fi
21020 fi
21021
21022                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21023 if test "$ol_link_threads" = no ; then
21024         # try -pthreads
21025         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21026 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21027 if test "${ol_cv_pthread_pthreads+set}" = set; then
21028   echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030
21031                 # save the flags
21032                 ol_LIBS="$LIBS"
21033                 LIBS="-pthreads $LIBS"
21034
21035                 if test "$cross_compiling" = yes; then
21036   cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042
21043 /* pthread test headers */
21044 #include <pthread.h>
21045 #if HAVE_PTHREADS < 7
21046 #include <errno.h>
21047 #endif
21048 #ifndef NULL
21049 #define NULL (void*)0
21050 #endif
21051
21052 static void *task(p)
21053         void *p;
21054 {
21055         return (void *) (p == NULL);
21056 }
21057
21058 int
21059 main ()
21060 {
21061
21062         /* pthread test function */
21063 #ifndef PTHREAD_CREATE_DETACHED
21064 #define PTHREAD_CREATE_DETACHED 1
21065 #endif
21066         pthread_t t;
21067         int status;
21068         int detach = PTHREAD_CREATE_DETACHED;
21069
21070 #if HAVE_PTHREADS > 4
21071         /* Final pthreads */
21072         pthread_attr_t attr;
21073
21074         status = pthread_attr_init(&attr);
21075         if( status ) return status;
21076
21077 #if HAVE_PTHREADS < 7
21078         status = pthread_attr_setdetachstate(&attr, &detach);
21079         if( status < 0 ) status = errno;
21080 #else
21081         status = pthread_attr_setdetachstate(&attr, detach);
21082 #endif
21083         if( status ) return status;
21084         status = pthread_create( &t, &attr, task, NULL );
21085 #if HAVE_PTHREADS < 7
21086         if( status < 0 ) status = errno;
21087 #endif
21088         if( status ) return status;
21089 #else
21090         /* Draft 4 pthreads */
21091         status = pthread_create( &t, pthread_attr_default, task, NULL );
21092         if( status ) return errno;
21093
21094         /* give thread a chance to complete */
21095         /* it should remain joinable and hence detachable */
21096         sleep( 1 );
21097
21098         status = pthread_detach( &t );
21099         if( status ) return errno;
21100 #endif
21101
21102 #ifdef HAVE_LINUX_THREADS
21103         pthread_kill_other_threads_np();
21104 #endif
21105
21106         return 0;
21107
21108   ;
21109   return 0;
21110 }
21111 _ACEOF
21112 rm -f conftest.$ac_objext conftest$ac_exeext
21113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21114   (eval $ac_link) 2>conftest.er1
21115   ac_status=$?
21116   grep -v '^ *+' conftest.er1 >conftest.err
21117   rm -f conftest.er1
21118   cat conftest.err >&5
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); } &&
21121          { ac_try='test -z "$ac_c_werror_flag"
21122                          || test ! -s conftest.err'
21123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124   (eval $ac_try) 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; } &&
21128          { ac_try='test -s conftest$ac_exeext'
21129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130   (eval $ac_try) 2>&5
21131   ac_status=$?
21132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133   (exit $ac_status); }; }; then
21134   ol_cv_pthread_pthreads=yes
21135 else
21136   echo "$as_me: failed program was:" >&5
21137 sed 's/^/| /' conftest.$ac_ext >&5
21138
21139 ol_cv_pthread_pthreads=no
21140 fi
21141 rm -f conftest.err conftest.$ac_objext \
21142       conftest$ac_exeext conftest.$ac_ext
21143 else
21144   cat >conftest.$ac_ext <<_ACEOF
21145 /* confdefs.h.  */
21146 _ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h.  */
21150
21151 /* pthread test headers */
21152 #include <pthread.h>
21153 #if HAVE_PTHREADS < 7
21154 #include <errno.h>
21155 #endif
21156 #ifndef NULL
21157 #define NULL (void*)0
21158 #endif
21159
21160 static void *task(p)
21161         void *p;
21162 {
21163         return (void *) (p == NULL);
21164 }
21165
21166
21167 int main(argc, argv)
21168         int argc;
21169         char **argv;
21170 {
21171
21172         /* pthread test function */
21173 #ifndef PTHREAD_CREATE_DETACHED
21174 #define PTHREAD_CREATE_DETACHED 1
21175 #endif
21176         pthread_t t;
21177         int status;
21178         int detach = PTHREAD_CREATE_DETACHED;
21179
21180 #if HAVE_PTHREADS > 4
21181         /* Final pthreads */
21182         pthread_attr_t attr;
21183
21184         status = pthread_attr_init(&attr);
21185         if( status ) return status;
21186
21187 #if HAVE_PTHREADS < 7
21188         status = pthread_attr_setdetachstate(&attr, &detach);
21189         if( status < 0 ) status = errno;
21190 #else
21191         status = pthread_attr_setdetachstate(&attr, detach);
21192 #endif
21193         if( status ) return status;
21194         status = pthread_create( &t, &attr, task, NULL );
21195 #if HAVE_PTHREADS < 7
21196         if( status < 0 ) status = errno;
21197 #endif
21198         if( status ) return status;
21199 #else
21200         /* Draft 4 pthreads */
21201         status = pthread_create( &t, pthread_attr_default, task, NULL );
21202         if( status ) return errno;
21203
21204         /* give thread a chance to complete */
21205         /* it should remain joinable and hence detachable */
21206         sleep( 1 );
21207
21208         status = pthread_detach( &t );
21209         if( status ) return errno;
21210 #endif
21211
21212 #ifdef HAVE_LINUX_THREADS
21213         pthread_kill_other_threads_np();
21214 #endif
21215
21216         return 0;
21217
21218 }
21219
21220 _ACEOF
21221 rm -f conftest$ac_exeext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21223   (eval $ac_link) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228   (eval $ac_try) 2>&5
21229   ac_status=$?
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); }; }; then
21232   ol_cv_pthread_pthreads=yes
21233 else
21234   echo "$as_me: program exited with status $ac_status" >&5
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 ( exit $ac_status )
21239 ol_cv_pthread_pthreads=no
21240 fi
21241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21242 fi
21243
21244                 # restore the LIBS
21245                 LIBS="$ol_LIBS"
21246
21247 fi
21248 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21249 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21250
21251         if test $ol_cv_pthread_pthreads = yes ; then
21252                 ol_link_pthreads="-pthreads"
21253                 ol_link_threads=posix
21254         fi
21255 fi
21256
21257                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21258 if test "$ol_link_threads" = no ; then
21259         # try -mthreads
21260         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21261 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21262 if test "${ol_cv_pthread_mthreads+set}" = set; then
21263   echo $ECHO_N "(cached) $ECHO_C" >&6
21264 else
21265
21266                 # save the flags
21267                 ol_LIBS="$LIBS"
21268                 LIBS="-mthreads $LIBS"
21269
21270                 if test "$cross_compiling" = yes; then
21271   cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277
21278 /* pthread test headers */
21279 #include <pthread.h>
21280 #if HAVE_PTHREADS < 7
21281 #include <errno.h>
21282 #endif
21283 #ifndef NULL
21284 #define NULL (void*)0
21285 #endif
21286
21287 static void *task(p)
21288         void *p;
21289 {
21290         return (void *) (p == NULL);
21291 }
21292
21293 int
21294 main ()
21295 {
21296
21297         /* pthread test function */
21298 #ifndef PTHREAD_CREATE_DETACHED
21299 #define PTHREAD_CREATE_DETACHED 1
21300 #endif
21301         pthread_t t;
21302         int status;
21303         int detach = PTHREAD_CREATE_DETACHED;
21304
21305 #if HAVE_PTHREADS > 4
21306         /* Final pthreads */
21307         pthread_attr_t attr;
21308
21309         status = pthread_attr_init(&attr);
21310         if( status ) return status;
21311
21312 #if HAVE_PTHREADS < 7
21313         status = pthread_attr_setdetachstate(&attr, &detach);
21314         if( status < 0 ) status = errno;
21315 #else
21316         status = pthread_attr_setdetachstate(&attr, detach);
21317 #endif
21318         if( status ) return status;
21319         status = pthread_create( &t, &attr, task, NULL );
21320 #if HAVE_PTHREADS < 7
21321         if( status < 0 ) status = errno;
21322 #endif
21323         if( status ) return status;
21324 #else
21325         /* Draft 4 pthreads */
21326         status = pthread_create( &t, pthread_attr_default, task, NULL );
21327         if( status ) return errno;
21328
21329         /* give thread a chance to complete */
21330         /* it should remain joinable and hence detachable */
21331         sleep( 1 );
21332
21333         status = pthread_detach( &t );
21334         if( status ) return errno;
21335 #endif
21336
21337 #ifdef HAVE_LINUX_THREADS
21338         pthread_kill_other_threads_np();
21339 #endif
21340
21341         return 0;
21342
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349   (eval $ac_link) 2>conftest.er1
21350   ac_status=$?
21351   grep -v '^ *+' conftest.er1 >conftest.err
21352   rm -f conftest.er1
21353   cat conftest.err >&5
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } &&
21356          { ac_try='test -z "$ac_c_werror_flag"
21357                          || test ! -s conftest.err'
21358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359   (eval $ac_try) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); }; } &&
21363          { ac_try='test -s conftest$ac_exeext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ol_cv_pthread_mthreads=yes
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 ol_cv_pthread_mthreads=no
21375 fi
21376 rm -f conftest.err conftest.$ac_objext \
21377       conftest$ac_exeext conftest.$ac_ext
21378 else
21379   cat >conftest.$ac_ext <<_ACEOF
21380 /* confdefs.h.  */
21381 _ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h.  */
21385
21386 /* pthread test headers */
21387 #include <pthread.h>
21388 #if HAVE_PTHREADS < 7
21389 #include <errno.h>
21390 #endif
21391 #ifndef NULL
21392 #define NULL (void*)0
21393 #endif
21394
21395 static void *task(p)
21396         void *p;
21397 {
21398         return (void *) (p == NULL);
21399 }
21400
21401
21402 int main(argc, argv)
21403         int argc;
21404         char **argv;
21405 {
21406
21407         /* pthread test function */
21408 #ifndef PTHREAD_CREATE_DETACHED
21409 #define PTHREAD_CREATE_DETACHED 1
21410 #endif
21411         pthread_t t;
21412         int status;
21413         int detach = PTHREAD_CREATE_DETACHED;
21414
21415 #if HAVE_PTHREADS > 4
21416         /* Final pthreads */
21417         pthread_attr_t attr;
21418
21419         status = pthread_attr_init(&attr);
21420         if( status ) return status;
21421
21422 #if HAVE_PTHREADS < 7
21423         status = pthread_attr_setdetachstate(&attr, &detach);
21424         if( status < 0 ) status = errno;
21425 #else
21426         status = pthread_attr_setdetachstate(&attr, detach);
21427 #endif
21428         if( status ) return status;
21429         status = pthread_create( &t, &attr, task, NULL );
21430 #if HAVE_PTHREADS < 7
21431         if( status < 0 ) status = errno;
21432 #endif
21433         if( status ) return status;
21434 #else
21435         /* Draft 4 pthreads */
21436         status = pthread_create( &t, pthread_attr_default, task, NULL );
21437         if( status ) return errno;
21438
21439         /* give thread a chance to complete */
21440         /* it should remain joinable and hence detachable */
21441         sleep( 1 );
21442
21443         status = pthread_detach( &t );
21444         if( status ) return errno;
21445 #endif
21446
21447 #ifdef HAVE_LINUX_THREADS
21448         pthread_kill_other_threads_np();
21449 #endif
21450
21451         return 0;
21452
21453 }
21454
21455 _ACEOF
21456 rm -f conftest$ac_exeext
21457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21458   (eval $ac_link) 2>&5
21459   ac_status=$?
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463   (eval $ac_try) 2>&5
21464   ac_status=$?
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); }; }; then
21467   ol_cv_pthread_mthreads=yes
21468 else
21469   echo "$as_me: program exited with status $ac_status" >&5
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21472
21473 ( exit $ac_status )
21474 ol_cv_pthread_mthreads=no
21475 fi
21476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21477 fi
21478
21479                 # restore the LIBS
21480                 LIBS="$ol_LIBS"
21481
21482 fi
21483 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21484 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21485
21486         if test $ol_cv_pthread_mthreads = yes ; then
21487                 ol_link_pthreads="-mthreads"
21488                 ol_link_threads=posix
21489         fi
21490 fi
21491
21492                 # Pthread try link: -thread (ol_cv_pthread_thread)
21493 if test "$ol_link_threads" = no ; then
21494         # try -thread
21495         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21496 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21497 if test "${ol_cv_pthread_thread+set}" = set; then
21498   echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500
21501                 # save the flags
21502                 ol_LIBS="$LIBS"
21503                 LIBS="-thread $LIBS"
21504
21505                 if test "$cross_compiling" = yes; then
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512
21513 /* pthread test headers */
21514 #include <pthread.h>
21515 #if HAVE_PTHREADS < 7
21516 #include <errno.h>
21517 #endif
21518 #ifndef NULL
21519 #define NULL (void*)0
21520 #endif
21521
21522 static void *task(p)
21523         void *p;
21524 {
21525         return (void *) (p == NULL);
21526 }
21527
21528 int
21529 main ()
21530 {
21531
21532         /* pthread test function */
21533 #ifndef PTHREAD_CREATE_DETACHED
21534 #define PTHREAD_CREATE_DETACHED 1
21535 #endif
21536         pthread_t t;
21537         int status;
21538         int detach = PTHREAD_CREATE_DETACHED;
21539
21540 #if HAVE_PTHREADS > 4
21541         /* Final pthreads */
21542         pthread_attr_t attr;
21543
21544         status = pthread_attr_init(&attr);
21545         if( status ) return status;
21546
21547 #if HAVE_PTHREADS < 7
21548         status = pthread_attr_setdetachstate(&attr, &detach);
21549         if( status < 0 ) status = errno;
21550 #else
21551         status = pthread_attr_setdetachstate(&attr, detach);
21552 #endif
21553         if( status ) return status;
21554         status = pthread_create( &t, &attr, task, NULL );
21555 #if HAVE_PTHREADS < 7
21556         if( status < 0 ) status = errno;
21557 #endif
21558         if( status ) return status;
21559 #else
21560         /* Draft 4 pthreads */
21561         status = pthread_create( &t, pthread_attr_default, task, NULL );
21562         if( status ) return errno;
21563
21564         /* give thread a chance to complete */
21565         /* it should remain joinable and hence detachable */
21566         sleep( 1 );
21567
21568         status = pthread_detach( &t );
21569         if( status ) return errno;
21570 #endif
21571
21572 #ifdef HAVE_LINUX_THREADS
21573         pthread_kill_other_threads_np();
21574 #endif
21575
21576         return 0;
21577
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584   (eval $ac_link) 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } &&
21591          { ac_try='test -z "$ac_c_werror_flag"
21592                          || test ! -s conftest.err'
21593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594   (eval $ac_try) 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); }; } &&
21598          { ac_try='test -s conftest$ac_exeext'
21599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600   (eval $ac_try) 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; }; then
21604   ol_cv_pthread_thread=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609 ol_cv_pthread_thread=no
21610 fi
21611 rm -f conftest.err conftest.$ac_objext \
21612       conftest$ac_exeext conftest.$ac_ext
21613 else
21614   cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620
21621 /* pthread test headers */
21622 #include <pthread.h>
21623 #if HAVE_PTHREADS < 7
21624 #include <errno.h>
21625 #endif
21626 #ifndef NULL
21627 #define NULL (void*)0
21628 #endif
21629
21630 static void *task(p)
21631         void *p;
21632 {
21633         return (void *) (p == NULL);
21634 }
21635
21636
21637 int main(argc, argv)
21638         int argc;
21639         char **argv;
21640 {
21641
21642         /* pthread test function */
21643 #ifndef PTHREAD_CREATE_DETACHED
21644 #define PTHREAD_CREATE_DETACHED 1
21645 #endif
21646         pthread_t t;
21647         int status;
21648         int detach = PTHREAD_CREATE_DETACHED;
21649
21650 #if HAVE_PTHREADS > 4
21651         /* Final pthreads */
21652         pthread_attr_t attr;
21653
21654         status = pthread_attr_init(&attr);
21655         if( status ) return status;
21656
21657 #if HAVE_PTHREADS < 7
21658         status = pthread_attr_setdetachstate(&attr, &detach);
21659         if( status < 0 ) status = errno;
21660 #else
21661         status = pthread_attr_setdetachstate(&attr, detach);
21662 #endif
21663         if( status ) return status;
21664         status = pthread_create( &t, &attr, task, NULL );
21665 #if HAVE_PTHREADS < 7
21666         if( status < 0 ) status = errno;
21667 #endif
21668         if( status ) return status;
21669 #else
21670         /* Draft 4 pthreads */
21671         status = pthread_create( &t, pthread_attr_default, task, NULL );
21672         if( status ) return errno;
21673
21674         /* give thread a chance to complete */
21675         /* it should remain joinable and hence detachable */
21676         sleep( 1 );
21677
21678         status = pthread_detach( &t );
21679         if( status ) return errno;
21680 #endif
21681
21682 #ifdef HAVE_LINUX_THREADS
21683         pthread_kill_other_threads_np();
21684 #endif
21685
21686         return 0;
21687
21688 }
21689
21690 _ACEOF
21691 rm -f conftest$ac_exeext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693   (eval $ac_link) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698   (eval $ac_try) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; }; then
21702   ol_cv_pthread_thread=yes
21703 else
21704   echo "$as_me: program exited with status $ac_status" >&5
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708 ( exit $ac_status )
21709 ol_cv_pthread_thread=no
21710 fi
21711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21712 fi
21713
21714                 # restore the LIBS
21715                 LIBS="$ol_LIBS"
21716
21717 fi
21718 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21719 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21720
21721         if test $ol_cv_pthread_thread = yes ; then
21722                 ol_link_pthreads="-thread"
21723                 ol_link_threads=posix
21724         fi
21725 fi
21726
21727
21728                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21729 if test "$ol_link_threads" = no ; then
21730         # try -lpthread -lmach -lexc -lc_r
21731         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21732 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21733 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21734   echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736
21737                 # save the flags
21738                 ol_LIBS="$LIBS"
21739                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21740
21741                 if test "$cross_compiling" = yes; then
21742   cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h.  */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h.  */
21748
21749 /* pthread test headers */
21750 #include <pthread.h>
21751 #if HAVE_PTHREADS < 7
21752 #include <errno.h>
21753 #endif
21754 #ifndef NULL
21755 #define NULL (void*)0
21756 #endif
21757
21758 static void *task(p)
21759         void *p;
21760 {
21761         return (void *) (p == NULL);
21762 }
21763
21764 int
21765 main ()
21766 {
21767
21768         /* pthread test function */
21769 #ifndef PTHREAD_CREATE_DETACHED
21770 #define PTHREAD_CREATE_DETACHED 1
21771 #endif
21772         pthread_t t;
21773         int status;
21774         int detach = PTHREAD_CREATE_DETACHED;
21775
21776 #if HAVE_PTHREADS > 4
21777         /* Final pthreads */
21778         pthread_attr_t attr;
21779
21780         status = pthread_attr_init(&attr);
21781         if( status ) return status;
21782
21783 #if HAVE_PTHREADS < 7
21784         status = pthread_attr_setdetachstate(&attr, &detach);
21785         if( status < 0 ) status = errno;
21786 #else
21787         status = pthread_attr_setdetachstate(&attr, detach);
21788 #endif
21789         if( status ) return status;
21790         status = pthread_create( &t, &attr, task, NULL );
21791 #if HAVE_PTHREADS < 7
21792         if( status < 0 ) status = errno;
21793 #endif
21794         if( status ) return status;
21795 #else
21796         /* Draft 4 pthreads */
21797         status = pthread_create( &t, pthread_attr_default, task, NULL );
21798         if( status ) return errno;
21799
21800         /* give thread a chance to complete */
21801         /* it should remain joinable and hence detachable */
21802         sleep( 1 );
21803
21804         status = pthread_detach( &t );
21805         if( status ) return errno;
21806 #endif
21807
21808 #ifdef HAVE_LINUX_THREADS
21809         pthread_kill_other_threads_np();
21810 #endif
21811
21812         return 0;
21813
21814   ;
21815   return 0;
21816 }
21817 _ACEOF
21818 rm -f conftest.$ac_objext conftest$ac_exeext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21820   (eval $ac_link) 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } &&
21827          { ac_try='test -z "$ac_c_werror_flag"
21828                          || test ! -s conftest.err'
21829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830   (eval $ac_try) 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; } &&
21834          { ac_try='test -s conftest$ac_exeext'
21835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836   (eval $ac_try) 2>&5
21837   ac_status=$?
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); }; }; then
21840   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21841 else
21842   echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21846 fi
21847 rm -f conftest.err conftest.$ac_objext \
21848       conftest$ac_exeext conftest.$ac_ext
21849 else
21850   cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h.  */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h.  */
21856
21857 /* pthread test headers */
21858 #include <pthread.h>
21859 #if HAVE_PTHREADS < 7
21860 #include <errno.h>
21861 #endif
21862 #ifndef NULL
21863 #define NULL (void*)0
21864 #endif
21865
21866 static void *task(p)
21867         void *p;
21868 {
21869         return (void *) (p == NULL);
21870 }
21871
21872
21873 int main(argc, argv)
21874         int argc;
21875         char **argv;
21876 {
21877
21878         /* pthread test function */
21879 #ifndef PTHREAD_CREATE_DETACHED
21880 #define PTHREAD_CREATE_DETACHED 1
21881 #endif
21882         pthread_t t;
21883         int status;
21884         int detach = PTHREAD_CREATE_DETACHED;
21885
21886 #if HAVE_PTHREADS > 4
21887         /* Final pthreads */
21888         pthread_attr_t attr;
21889
21890         status = pthread_attr_init(&attr);
21891         if( status ) return status;
21892
21893 #if HAVE_PTHREADS < 7
21894         status = pthread_attr_setdetachstate(&attr, &detach);
21895         if( status < 0 ) status = errno;
21896 #else
21897         status = pthread_attr_setdetachstate(&attr, detach);
21898 #endif
21899         if( status ) return status;
21900         status = pthread_create( &t, &attr, task, NULL );
21901 #if HAVE_PTHREADS < 7
21902         if( status < 0 ) status = errno;
21903 #endif
21904         if( status ) return status;
21905 #else
21906         /* Draft 4 pthreads */
21907         status = pthread_create( &t, pthread_attr_default, task, NULL );
21908         if( status ) return errno;
21909
21910         /* give thread a chance to complete */
21911         /* it should remain joinable and hence detachable */
21912         sleep( 1 );
21913
21914         status = pthread_detach( &t );
21915         if( status ) return errno;
21916 #endif
21917
21918 #ifdef HAVE_LINUX_THREADS
21919         pthread_kill_other_threads_np();
21920 #endif
21921
21922         return 0;
21923
21924 }
21925
21926 _ACEOF
21927 rm -f conftest$ac_exeext
21928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21929   (eval $ac_link) 2>&5
21930   ac_status=$?
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934   (eval $ac_try) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; }; then
21938   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21939 else
21940   echo "$as_me: program exited with status $ac_status" >&5
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944 ( exit $ac_status )
21945 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21946 fi
21947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21948 fi
21949
21950                 # restore the LIBS
21951                 LIBS="$ol_LIBS"
21952
21953 fi
21954 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21955 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21956
21957         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21958                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21959                 ol_link_threads=posix
21960         fi
21961 fi
21962
21963                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21964 if test "$ol_link_threads" = no ; then
21965         # try -lpthread -lmach -lexc
21966         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21967 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21968 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971
21972                 # save the flags
21973                 ol_LIBS="$LIBS"
21974                 LIBS="-lpthread -lmach -lexc $LIBS"
21975
21976                 if test "$cross_compiling" = yes; then
21977   cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h.  */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h.  */
21983
21984 /* pthread test headers */
21985 #include <pthread.h>
21986 #if HAVE_PTHREADS < 7
21987 #include <errno.h>
21988 #endif
21989 #ifndef NULL
21990 #define NULL (void*)0
21991 #endif
21992
21993 static void *task(p)
21994         void *p;
21995 {
21996         return (void *) (p == NULL);
21997 }
21998
21999 int
22000 main ()
22001 {
22002
22003         /* pthread test function */
22004 #ifndef PTHREAD_CREATE_DETACHED
22005 #define PTHREAD_CREATE_DETACHED 1
22006 #endif
22007         pthread_t t;
22008         int status;
22009         int detach = PTHREAD_CREATE_DETACHED;
22010
22011 #if HAVE_PTHREADS > 4
22012         /* Final pthreads */
22013         pthread_attr_t attr;
22014
22015         status = pthread_attr_init(&attr);
22016         if( status ) return status;
22017
22018 #if HAVE_PTHREADS < 7
22019         status = pthread_attr_setdetachstate(&attr, &detach);
22020         if( status < 0 ) status = errno;
22021 #else
22022         status = pthread_attr_setdetachstate(&attr, detach);
22023 #endif
22024         if( status ) return status;
22025         status = pthread_create( &t, &attr, task, NULL );
22026 #if HAVE_PTHREADS < 7
22027         if( status < 0 ) status = errno;
22028 #endif
22029         if( status ) return status;
22030 #else
22031         /* Draft 4 pthreads */
22032         status = pthread_create( &t, pthread_attr_default, task, NULL );
22033         if( status ) return errno;
22034
22035         /* give thread a chance to complete */
22036         /* it should remain joinable and hence detachable */
22037         sleep( 1 );
22038
22039         status = pthread_detach( &t );
22040         if( status ) return errno;
22041 #endif
22042
22043 #ifdef HAVE_LINUX_THREADS
22044         pthread_kill_other_threads_np();
22045 #endif
22046
22047         return 0;
22048
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 rm -f conftest.$ac_objext conftest$ac_exeext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22055   (eval $ac_link) 2>conftest.er1
22056   ac_status=$?
22057   grep -v '^ *+' conftest.er1 >conftest.err
22058   rm -f conftest.er1
22059   cat conftest.err >&5
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } &&
22062          { ac_try='test -z "$ac_c_werror_flag"
22063                          || test ! -s conftest.err'
22064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065   (eval $ac_try) 2>&5
22066   ac_status=$?
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); }; } &&
22069          { ac_try='test -s conftest$ac_exeext'
22070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071   (eval $ac_try) 2>&5
22072   ac_status=$?
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); }; }; then
22075   ol_cv_pthread_lpthread_lmach_lexc=yes
22076 else
22077   echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080 ol_cv_pthread_lpthread_lmach_lexc=no
22081 fi
22082 rm -f conftest.err conftest.$ac_objext \
22083       conftest$ac_exeext conftest.$ac_ext
22084 else
22085   cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h.  */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h.  */
22091
22092 /* pthread test headers */
22093 #include <pthread.h>
22094 #if HAVE_PTHREADS < 7
22095 #include <errno.h>
22096 #endif
22097 #ifndef NULL
22098 #define NULL (void*)0
22099 #endif
22100
22101 static void *task(p)
22102         void *p;
22103 {
22104         return (void *) (p == NULL);
22105 }
22106
22107
22108 int main(argc, argv)
22109         int argc;
22110         char **argv;
22111 {
22112
22113         /* pthread test function */
22114 #ifndef PTHREAD_CREATE_DETACHED
22115 #define PTHREAD_CREATE_DETACHED 1
22116 #endif
22117         pthread_t t;
22118         int status;
22119         int detach = PTHREAD_CREATE_DETACHED;
22120
22121 #if HAVE_PTHREADS > 4
22122         /* Final pthreads */
22123         pthread_attr_t attr;
22124
22125         status = pthread_attr_init(&attr);
22126         if( status ) return status;
22127
22128 #if HAVE_PTHREADS < 7
22129         status = pthread_attr_setdetachstate(&attr, &detach);
22130         if( status < 0 ) status = errno;
22131 #else
22132         status = pthread_attr_setdetachstate(&attr, detach);
22133 #endif
22134         if( status ) return status;
22135         status = pthread_create( &t, &attr, task, NULL );
22136 #if HAVE_PTHREADS < 7
22137         if( status < 0 ) status = errno;
22138 #endif
22139         if( status ) return status;
22140 #else
22141         /* Draft 4 pthreads */
22142         status = pthread_create( &t, pthread_attr_default, task, NULL );
22143         if( status ) return errno;
22144
22145         /* give thread a chance to complete */
22146         /* it should remain joinable and hence detachable */
22147         sleep( 1 );
22148
22149         status = pthread_detach( &t );
22150         if( status ) return errno;
22151 #endif
22152
22153 #ifdef HAVE_LINUX_THREADS
22154         pthread_kill_other_threads_np();
22155 #endif
22156
22157         return 0;
22158
22159 }
22160
22161 _ACEOF
22162 rm -f conftest$ac_exeext
22163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22164   (eval $ac_link) 2>&5
22165   ac_status=$?
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169   (eval $ac_try) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   ol_cv_pthread_lpthread_lmach_lexc=yes
22174 else
22175   echo "$as_me: program exited with status $ac_status" >&5
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179 ( exit $ac_status )
22180 ol_cv_pthread_lpthread_lmach_lexc=no
22181 fi
22182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22183 fi
22184
22185                 # restore the LIBS
22186                 LIBS="$ol_LIBS"
22187
22188 fi
22189 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22190 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22191
22192         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22193                 ol_link_pthreads="-lpthread -lmach -lexc"
22194                 ol_link_threads=posix
22195         fi
22196 fi
22197
22198
22199                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22200 if test "$ol_link_threads" = no ; then
22201         # try -lpthread -Wl,-woff,85
22202         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22203 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22204 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22205   echo $ECHO_N "(cached) $ECHO_C" >&6
22206 else
22207
22208                 # save the flags
22209                 ol_LIBS="$LIBS"
22210                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22211
22212                 if test "$cross_compiling" = yes; then
22213   cat >conftest.$ac_ext <<_ACEOF
22214 /* confdefs.h.  */
22215 _ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h.  */
22219
22220 /* pthread test headers */
22221 #include <pthread.h>
22222 #if HAVE_PTHREADS < 7
22223 #include <errno.h>
22224 #endif
22225 #ifndef NULL
22226 #define NULL (void*)0
22227 #endif
22228
22229 static void *task(p)
22230         void *p;
22231 {
22232         return (void *) (p == NULL);
22233 }
22234
22235 int
22236 main ()
22237 {
22238
22239         /* pthread test function */
22240 #ifndef PTHREAD_CREATE_DETACHED
22241 #define PTHREAD_CREATE_DETACHED 1
22242 #endif
22243         pthread_t t;
22244         int status;
22245         int detach = PTHREAD_CREATE_DETACHED;
22246
22247 #if HAVE_PTHREADS > 4
22248         /* Final pthreads */
22249         pthread_attr_t attr;
22250
22251         status = pthread_attr_init(&attr);
22252         if( status ) return status;
22253
22254 #if HAVE_PTHREADS < 7
22255         status = pthread_attr_setdetachstate(&attr, &detach);
22256         if( status < 0 ) status = errno;
22257 #else
22258         status = pthread_attr_setdetachstate(&attr, detach);
22259 #endif
22260         if( status ) return status;
22261         status = pthread_create( &t, &attr, task, NULL );
22262 #if HAVE_PTHREADS < 7
22263         if( status < 0 ) status = errno;
22264 #endif
22265         if( status ) return status;
22266 #else
22267         /* Draft 4 pthreads */
22268         status = pthread_create( &t, pthread_attr_default, task, NULL );
22269         if( status ) return errno;
22270
22271         /* give thread a chance to complete */
22272         /* it should remain joinable and hence detachable */
22273         sleep( 1 );
22274
22275         status = pthread_detach( &t );
22276         if( status ) return errno;
22277 #endif
22278
22279 #ifdef HAVE_LINUX_THREADS
22280         pthread_kill_other_threads_np();
22281 #endif
22282
22283         return 0;
22284
22285   ;
22286   return 0;
22287 }
22288 _ACEOF
22289 rm -f conftest.$ac_objext conftest$ac_exeext
22290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22291   (eval $ac_link) 2>conftest.er1
22292   ac_status=$?
22293   grep -v '^ *+' conftest.er1 >conftest.err
22294   rm -f conftest.er1
22295   cat conftest.err >&5
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); } &&
22298          { ac_try='test -z "$ac_c_werror_flag"
22299                          || test ! -s conftest.err'
22300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301   (eval $ac_try) 2>&5
22302   ac_status=$?
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); }; } &&
22305          { ac_try='test -s conftest$ac_exeext'
22306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; }; then
22311   ol_cv_pthread_lib_lpthread_woff=yes
22312 else
22313   echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ol_cv_pthread_lib_lpthread_woff=no
22317 fi
22318 rm -f conftest.err conftest.$ac_objext \
22319       conftest$ac_exeext conftest.$ac_ext
22320 else
22321   cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h.  */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h.  */
22327
22328 /* pthread test headers */
22329 #include <pthread.h>
22330 #if HAVE_PTHREADS < 7
22331 #include <errno.h>
22332 #endif
22333 #ifndef NULL
22334 #define NULL (void*)0
22335 #endif
22336
22337 static void *task(p)
22338         void *p;
22339 {
22340         return (void *) (p == NULL);
22341 }
22342
22343
22344 int main(argc, argv)
22345         int argc;
22346         char **argv;
22347 {
22348
22349         /* pthread test function */
22350 #ifndef PTHREAD_CREATE_DETACHED
22351 #define PTHREAD_CREATE_DETACHED 1
22352 #endif
22353         pthread_t t;
22354         int status;
22355         int detach = PTHREAD_CREATE_DETACHED;
22356
22357 #if HAVE_PTHREADS > 4
22358         /* Final pthreads */
22359         pthread_attr_t attr;
22360
22361         status = pthread_attr_init(&attr);
22362         if( status ) return status;
22363
22364 #if HAVE_PTHREADS < 7
22365         status = pthread_attr_setdetachstate(&attr, &detach);
22366         if( status < 0 ) status = errno;
22367 #else
22368         status = pthread_attr_setdetachstate(&attr, detach);
22369 #endif
22370         if( status ) return status;
22371         status = pthread_create( &t, &attr, task, NULL );
22372 #if HAVE_PTHREADS < 7
22373         if( status < 0 ) status = errno;
22374 #endif
22375         if( status ) return status;
22376 #else
22377         /* Draft 4 pthreads */
22378         status = pthread_create( &t, pthread_attr_default, task, NULL );
22379         if( status ) return errno;
22380
22381         /* give thread a chance to complete */
22382         /* it should remain joinable and hence detachable */
22383         sleep( 1 );
22384
22385         status = pthread_detach( &t );
22386         if( status ) return errno;
22387 #endif
22388
22389 #ifdef HAVE_LINUX_THREADS
22390         pthread_kill_other_threads_np();
22391 #endif
22392
22393         return 0;
22394
22395 }
22396
22397 _ACEOF
22398 rm -f conftest$ac_exeext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400   (eval $ac_link) 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405   (eval $ac_try) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); }; }; then
22409   ol_cv_pthread_lib_lpthread_woff=yes
22410 else
22411   echo "$as_me: program exited with status $ac_status" >&5
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415 ( exit $ac_status )
22416 ol_cv_pthread_lib_lpthread_woff=no
22417 fi
22418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22419 fi
22420
22421                 # restore the LIBS
22422                 LIBS="$ol_LIBS"
22423
22424 fi
22425 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22426 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22427
22428         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22429                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22430                 ol_link_threads=posix
22431         fi
22432 fi
22433
22434
22435                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22436 if test "$ol_link_threads" = no ; then
22437         # try -lpthread
22438         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22439 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22440 if test "${ol_cv_pthread_lpthread+set}" = set; then
22441   echo $ECHO_N "(cached) $ECHO_C" >&6
22442 else
22443
22444                 # save the flags
22445                 ol_LIBS="$LIBS"
22446                 LIBS="-lpthread $LIBS"
22447
22448                 if test "$cross_compiling" = yes; then
22449   cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h.  */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h.  */
22455
22456 /* pthread test headers */
22457 #include <pthread.h>
22458 #if HAVE_PTHREADS < 7
22459 #include <errno.h>
22460 #endif
22461 #ifndef NULL
22462 #define NULL (void*)0
22463 #endif
22464
22465 static void *task(p)
22466         void *p;
22467 {
22468         return (void *) (p == NULL);
22469 }
22470
22471 int
22472 main ()
22473 {
22474
22475         /* pthread test function */
22476 #ifndef PTHREAD_CREATE_DETACHED
22477 #define PTHREAD_CREATE_DETACHED 1
22478 #endif
22479         pthread_t t;
22480         int status;
22481         int detach = PTHREAD_CREATE_DETACHED;
22482
22483 #if HAVE_PTHREADS > 4
22484         /* Final pthreads */
22485         pthread_attr_t attr;
22486
22487         status = pthread_attr_init(&attr);
22488         if( status ) return status;
22489
22490 #if HAVE_PTHREADS < 7
22491         status = pthread_attr_setdetachstate(&attr, &detach);
22492         if( status < 0 ) status = errno;
22493 #else
22494         status = pthread_attr_setdetachstate(&attr, detach);
22495 #endif
22496         if( status ) return status;
22497         status = pthread_create( &t, &attr, task, NULL );
22498 #if HAVE_PTHREADS < 7
22499         if( status < 0 ) status = errno;
22500 #endif
22501         if( status ) return status;
22502 #else
22503         /* Draft 4 pthreads */
22504         status = pthread_create( &t, pthread_attr_default, task, NULL );
22505         if( status ) return errno;
22506
22507         /* give thread a chance to complete */
22508         /* it should remain joinable and hence detachable */
22509         sleep( 1 );
22510
22511         status = pthread_detach( &t );
22512         if( status ) return errno;
22513 #endif
22514
22515 #ifdef HAVE_LINUX_THREADS
22516         pthread_kill_other_threads_np();
22517 #endif
22518
22519         return 0;
22520
22521   ;
22522   return 0;
22523 }
22524 _ACEOF
22525 rm -f conftest.$ac_objext conftest$ac_exeext
22526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22527   (eval $ac_link) 2>conftest.er1
22528   ac_status=$?
22529   grep -v '^ *+' conftest.er1 >conftest.err
22530   rm -f conftest.er1
22531   cat conftest.err >&5
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); } &&
22534          { ac_try='test -z "$ac_c_werror_flag"
22535                          || test ! -s conftest.err'
22536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537   (eval $ac_try) 2>&5
22538   ac_status=$?
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); }; } &&
22541          { ac_try='test -s conftest$ac_exeext'
22542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; }; then
22547   ol_cv_pthread_lpthread=yes
22548 else
22549   echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22551
22552 ol_cv_pthread_lpthread=no
22553 fi
22554 rm -f conftest.err conftest.$ac_objext \
22555       conftest$ac_exeext conftest.$ac_ext
22556 else
22557   cat >conftest.$ac_ext <<_ACEOF
22558 /* confdefs.h.  */
22559 _ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h.  */
22563
22564 /* pthread test headers */
22565 #include <pthread.h>
22566 #if HAVE_PTHREADS < 7
22567 #include <errno.h>
22568 #endif
22569 #ifndef NULL
22570 #define NULL (void*)0
22571 #endif
22572
22573 static void *task(p)
22574         void *p;
22575 {
22576         return (void *) (p == NULL);
22577 }
22578
22579
22580 int main(argc, argv)
22581         int argc;
22582         char **argv;
22583 {
22584
22585         /* pthread test function */
22586 #ifndef PTHREAD_CREATE_DETACHED
22587 #define PTHREAD_CREATE_DETACHED 1
22588 #endif
22589         pthread_t t;
22590         int status;
22591         int detach = PTHREAD_CREATE_DETACHED;
22592
22593 #if HAVE_PTHREADS > 4
22594         /* Final pthreads */
22595         pthread_attr_t attr;
22596
22597         status = pthread_attr_init(&attr);
22598         if( status ) return status;
22599
22600 #if HAVE_PTHREADS < 7
22601         status = pthread_attr_setdetachstate(&attr, &detach);
22602         if( status < 0 ) status = errno;
22603 #else
22604         status = pthread_attr_setdetachstate(&attr, detach);
22605 #endif
22606         if( status ) return status;
22607         status = pthread_create( &t, &attr, task, NULL );
22608 #if HAVE_PTHREADS < 7
22609         if( status < 0 ) status = errno;
22610 #endif
22611         if( status ) return status;
22612 #else
22613         /* Draft 4 pthreads */
22614         status = pthread_create( &t, pthread_attr_default, task, NULL );
22615         if( status ) return errno;
22616
22617         /* give thread a chance to complete */
22618         /* it should remain joinable and hence detachable */
22619         sleep( 1 );
22620
22621         status = pthread_detach( &t );
22622         if( status ) return errno;
22623 #endif
22624
22625 #ifdef HAVE_LINUX_THREADS
22626         pthread_kill_other_threads_np();
22627 #endif
22628
22629         return 0;
22630
22631 }
22632
22633 _ACEOF
22634 rm -f conftest$ac_exeext
22635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22636   (eval $ac_link) 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641   (eval $ac_try) 2>&5
22642   ac_status=$?
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); }; }; then
22645   ol_cv_pthread_lpthread=yes
22646 else
22647   echo "$as_me: program exited with status $ac_status" >&5
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651 ( exit $ac_status )
22652 ol_cv_pthread_lpthread=no
22653 fi
22654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22655 fi
22656
22657                 # restore the LIBS
22658                 LIBS="$ol_LIBS"
22659
22660 fi
22661 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22662 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22663
22664         if test $ol_cv_pthread_lpthread = yes ; then
22665                 ol_link_pthreads="-lpthread"
22666                 ol_link_threads=posix
22667         fi
22668 fi
22669
22670                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22671 if test "$ol_link_threads" = no ; then
22672         # try -lc_r
22673         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22674 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22675 if test "${ol_cv_pthread_lc_r+set}" = set; then
22676   echo $ECHO_N "(cached) $ECHO_C" >&6
22677 else
22678
22679                 # save the flags
22680                 ol_LIBS="$LIBS"
22681                 LIBS="-lc_r $LIBS"
22682
22683                 if test "$cross_compiling" = yes; then
22684   cat >conftest.$ac_ext <<_ACEOF
22685 /* confdefs.h.  */
22686 _ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h.  */
22690
22691 /* pthread test headers */
22692 #include <pthread.h>
22693 #if HAVE_PTHREADS < 7
22694 #include <errno.h>
22695 #endif
22696 #ifndef NULL
22697 #define NULL (void*)0
22698 #endif
22699
22700 static void *task(p)
22701         void *p;
22702 {
22703         return (void *) (p == NULL);
22704 }
22705
22706 int
22707 main ()
22708 {
22709
22710         /* pthread test function */
22711 #ifndef PTHREAD_CREATE_DETACHED
22712 #define PTHREAD_CREATE_DETACHED 1
22713 #endif
22714         pthread_t t;
22715         int status;
22716         int detach = PTHREAD_CREATE_DETACHED;
22717
22718 #if HAVE_PTHREADS > 4
22719         /* Final pthreads */
22720         pthread_attr_t attr;
22721
22722         status = pthread_attr_init(&attr);
22723         if( status ) return status;
22724
22725 #if HAVE_PTHREADS < 7
22726         status = pthread_attr_setdetachstate(&attr, &detach);
22727         if( status < 0 ) status = errno;
22728 #else
22729         status = pthread_attr_setdetachstate(&attr, detach);
22730 #endif
22731         if( status ) return status;
22732         status = pthread_create( &t, &attr, task, NULL );
22733 #if HAVE_PTHREADS < 7
22734         if( status < 0 ) status = errno;
22735 #endif
22736         if( status ) return status;
22737 #else
22738         /* Draft 4 pthreads */
22739         status = pthread_create( &t, pthread_attr_default, task, NULL );
22740         if( status ) return errno;
22741
22742         /* give thread a chance to complete */
22743         /* it should remain joinable and hence detachable */
22744         sleep( 1 );
22745
22746         status = pthread_detach( &t );
22747         if( status ) return errno;
22748 #endif
22749
22750 #ifdef HAVE_LINUX_THREADS
22751         pthread_kill_other_threads_np();
22752 #endif
22753
22754         return 0;
22755
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest.$ac_objext conftest$ac_exeext
22761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22762   (eval $ac_link) 2>conftest.er1
22763   ac_status=$?
22764   grep -v '^ *+' conftest.er1 >conftest.err
22765   rm -f conftest.er1
22766   cat conftest.err >&5
22767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768   (exit $ac_status); } &&
22769          { ac_try='test -z "$ac_c_werror_flag"
22770                          || test ! -s conftest.err'
22771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772   (eval $ac_try) 2>&5
22773   ac_status=$?
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); }; } &&
22776          { ac_try='test -s conftest$ac_exeext'
22777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778   (eval $ac_try) 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; }; then
22782   ol_cv_pthread_lc_r=yes
22783 else
22784   echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22786
22787 ol_cv_pthread_lc_r=no
22788 fi
22789 rm -f conftest.err conftest.$ac_objext \
22790       conftest$ac_exeext conftest.$ac_ext
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798
22799 /* pthread test headers */
22800 #include <pthread.h>
22801 #if HAVE_PTHREADS < 7
22802 #include <errno.h>
22803 #endif
22804 #ifndef NULL
22805 #define NULL (void*)0
22806 #endif
22807
22808 static void *task(p)
22809         void *p;
22810 {
22811         return (void *) (p == NULL);
22812 }
22813
22814
22815 int main(argc, argv)
22816         int argc;
22817         char **argv;
22818 {
22819
22820         /* pthread test function */
22821 #ifndef PTHREAD_CREATE_DETACHED
22822 #define PTHREAD_CREATE_DETACHED 1
22823 #endif
22824         pthread_t t;
22825         int status;
22826         int detach = PTHREAD_CREATE_DETACHED;
22827
22828 #if HAVE_PTHREADS > 4
22829         /* Final pthreads */
22830         pthread_attr_t attr;
22831
22832         status = pthread_attr_init(&attr);
22833         if( status ) return status;
22834
22835 #if HAVE_PTHREADS < 7
22836         status = pthread_attr_setdetachstate(&attr, &detach);
22837         if( status < 0 ) status = errno;
22838 #else
22839         status = pthread_attr_setdetachstate(&attr, detach);
22840 #endif
22841         if( status ) return status;
22842         status = pthread_create( &t, &attr, task, NULL );
22843 #if HAVE_PTHREADS < 7
22844         if( status < 0 ) status = errno;
22845 #endif
22846         if( status ) return status;
22847 #else
22848         /* Draft 4 pthreads */
22849         status = pthread_create( &t, pthread_attr_default, task, NULL );
22850         if( status ) return errno;
22851
22852         /* give thread a chance to complete */
22853         /* it should remain joinable and hence detachable */
22854         sleep( 1 );
22855
22856         status = pthread_detach( &t );
22857         if( status ) return errno;
22858 #endif
22859
22860 #ifdef HAVE_LINUX_THREADS
22861         pthread_kill_other_threads_np();
22862 #endif
22863
22864         return 0;
22865
22866 }
22867
22868 _ACEOF
22869 rm -f conftest$ac_exeext
22870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22871   (eval $ac_link) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876   (eval $ac_try) 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); }; }; then
22880   ol_cv_pthread_lc_r=yes
22881 else
22882   echo "$as_me: program exited with status $ac_status" >&5
22883 echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22885
22886 ( exit $ac_status )
22887 ol_cv_pthread_lc_r=no
22888 fi
22889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22890 fi
22891
22892                 # restore the LIBS
22893                 LIBS="$ol_LIBS"
22894
22895 fi
22896 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22897 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22898
22899         if test $ol_cv_pthread_lc_r = yes ; then
22900                 ol_link_pthreads="-lc_r"
22901                 ol_link_threads=posix
22902         fi
22903 fi
22904
22905
22906                 # Pthread try link: -threads (ol_cv_pthread_threads)
22907 if test "$ol_link_threads" = no ; then
22908         # try -threads
22909         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22910 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22911 if test "${ol_cv_pthread_threads+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914
22915                 # save the flags
22916                 ol_LIBS="$LIBS"
22917                 LIBS="-threads $LIBS"
22918
22919                 if test "$cross_compiling" = yes; then
22920   cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h.  */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h.  */
22926
22927 /* pthread test headers */
22928 #include <pthread.h>
22929 #if HAVE_PTHREADS < 7
22930 #include <errno.h>
22931 #endif
22932 #ifndef NULL
22933 #define NULL (void*)0
22934 #endif
22935
22936 static void *task(p)
22937         void *p;
22938 {
22939         return (void *) (p == NULL);
22940 }
22941
22942 int
22943 main ()
22944 {
22945
22946         /* pthread test function */
22947 #ifndef PTHREAD_CREATE_DETACHED
22948 #define PTHREAD_CREATE_DETACHED 1
22949 #endif
22950         pthread_t t;
22951         int status;
22952         int detach = PTHREAD_CREATE_DETACHED;
22953
22954 #if HAVE_PTHREADS > 4
22955         /* Final pthreads */
22956         pthread_attr_t attr;
22957
22958         status = pthread_attr_init(&attr);
22959         if( status ) return status;
22960
22961 #if HAVE_PTHREADS < 7
22962         status = pthread_attr_setdetachstate(&attr, &detach);
22963         if( status < 0 ) status = errno;
22964 #else
22965         status = pthread_attr_setdetachstate(&attr, detach);
22966 #endif
22967         if( status ) return status;
22968         status = pthread_create( &t, &attr, task, NULL );
22969 #if HAVE_PTHREADS < 7
22970         if( status < 0 ) status = errno;
22971 #endif
22972         if( status ) return status;
22973 #else
22974         /* Draft 4 pthreads */
22975         status = pthread_create( &t, pthread_attr_default, task, NULL );
22976         if( status ) return errno;
22977
22978         /* give thread a chance to complete */
22979         /* it should remain joinable and hence detachable */
22980         sleep( 1 );
22981
22982         status = pthread_detach( &t );
22983         if( status ) return errno;
22984 #endif
22985
22986 #ifdef HAVE_LINUX_THREADS
22987         pthread_kill_other_threads_np();
22988 #endif
22989
22990         return 0;
22991
22992   ;
22993   return 0;
22994 }
22995 _ACEOF
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22998   (eval $ac_link) 2>conftest.er1
22999   ac_status=$?
23000   grep -v '^ *+' conftest.er1 >conftest.err
23001   rm -f conftest.er1
23002   cat conftest.err >&5
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); } &&
23005          { ac_try='test -z "$ac_c_werror_flag"
23006                          || test ! -s conftest.err'
23007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008   (eval $ac_try) 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); }; } &&
23012          { ac_try='test -s conftest$ac_exeext'
23013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014   (eval $ac_try) 2>&5
23015   ac_status=$?
23016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017   (exit $ac_status); }; }; then
23018   ol_cv_pthread_threads=yes
23019 else
23020   echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023 ol_cv_pthread_threads=no
23024 fi
23025 rm -f conftest.err conftest.$ac_objext \
23026       conftest$ac_exeext conftest.$ac_ext
23027 else
23028   cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h.  */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h.  */
23034
23035 /* pthread test headers */
23036 #include <pthread.h>
23037 #if HAVE_PTHREADS < 7
23038 #include <errno.h>
23039 #endif
23040 #ifndef NULL
23041 #define NULL (void*)0
23042 #endif
23043
23044 static void *task(p)
23045         void *p;
23046 {
23047         return (void *) (p == NULL);
23048 }
23049
23050
23051 int main(argc, argv)
23052         int argc;
23053         char **argv;
23054 {
23055
23056         /* pthread test function */
23057 #ifndef PTHREAD_CREATE_DETACHED
23058 #define PTHREAD_CREATE_DETACHED 1
23059 #endif
23060         pthread_t t;
23061         int status;
23062         int detach = PTHREAD_CREATE_DETACHED;
23063
23064 #if HAVE_PTHREADS > 4
23065         /* Final pthreads */
23066         pthread_attr_t attr;
23067
23068         status = pthread_attr_init(&attr);
23069         if( status ) return status;
23070
23071 #if HAVE_PTHREADS < 7
23072         status = pthread_attr_setdetachstate(&attr, &detach);
23073         if( status < 0 ) status = errno;
23074 #else
23075         status = pthread_attr_setdetachstate(&attr, detach);
23076 #endif
23077         if( status ) return status;
23078         status = pthread_create( &t, &attr, task, NULL );
23079 #if HAVE_PTHREADS < 7
23080         if( status < 0 ) status = errno;
23081 #endif
23082         if( status ) return status;
23083 #else
23084         /* Draft 4 pthreads */
23085         status = pthread_create( &t, pthread_attr_default, task, NULL );
23086         if( status ) return errno;
23087
23088         /* give thread a chance to complete */
23089         /* it should remain joinable and hence detachable */
23090         sleep( 1 );
23091
23092         status = pthread_detach( &t );
23093         if( status ) return errno;
23094 #endif
23095
23096 #ifdef HAVE_LINUX_THREADS
23097         pthread_kill_other_threads_np();
23098 #endif
23099
23100         return 0;
23101
23102 }
23103
23104 _ACEOF
23105 rm -f conftest$ac_exeext
23106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23107   (eval $ac_link) 2>&5
23108   ac_status=$?
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112   (eval $ac_try) 2>&5
23113   ac_status=$?
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); }; }; then
23116   ol_cv_pthread_threads=yes
23117 else
23118   echo "$as_me: program exited with status $ac_status" >&5
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23121
23122 ( exit $ac_status )
23123 ol_cv_pthread_threads=no
23124 fi
23125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23126 fi
23127
23128                 # restore the LIBS
23129                 LIBS="$ol_LIBS"
23130
23131 fi
23132 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23133 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23134
23135         if test $ol_cv_pthread_threads = yes ; then
23136                 ol_link_pthreads="-threads"
23137                 ol_link_threads=posix
23138         fi
23139 fi
23140
23141
23142                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23143 if test "$ol_link_threads" = no ; then
23144         # try -lpthreads -lmach -lexc -lc_r
23145         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23146 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23147 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23148   echo $ECHO_N "(cached) $ECHO_C" >&6
23149 else
23150
23151                 # save the flags
23152                 ol_LIBS="$LIBS"
23153                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23154
23155                 if test "$cross_compiling" = yes; then
23156   cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h.  */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h.  */
23162
23163 /* pthread test headers */
23164 #include <pthread.h>
23165 #if HAVE_PTHREADS < 7
23166 #include <errno.h>
23167 #endif
23168 #ifndef NULL
23169 #define NULL (void*)0
23170 #endif
23171
23172 static void *task(p)
23173         void *p;
23174 {
23175         return (void *) (p == NULL);
23176 }
23177
23178 int
23179 main ()
23180 {
23181
23182         /* pthread test function */
23183 #ifndef PTHREAD_CREATE_DETACHED
23184 #define PTHREAD_CREATE_DETACHED 1
23185 #endif
23186         pthread_t t;
23187         int status;
23188         int detach = PTHREAD_CREATE_DETACHED;
23189
23190 #if HAVE_PTHREADS > 4
23191         /* Final pthreads */
23192         pthread_attr_t attr;
23193
23194         status = pthread_attr_init(&attr);
23195         if( status ) return status;
23196
23197 #if HAVE_PTHREADS < 7
23198         status = pthread_attr_setdetachstate(&attr, &detach);
23199         if( status < 0 ) status = errno;
23200 #else
23201         status = pthread_attr_setdetachstate(&attr, detach);
23202 #endif
23203         if( status ) return status;
23204         status = pthread_create( &t, &attr, task, NULL );
23205 #if HAVE_PTHREADS < 7
23206         if( status < 0 ) status = errno;
23207 #endif
23208         if( status ) return status;
23209 #else
23210         /* Draft 4 pthreads */
23211         status = pthread_create( &t, pthread_attr_default, task, NULL );
23212         if( status ) return errno;
23213
23214         /* give thread a chance to complete */
23215         /* it should remain joinable and hence detachable */
23216         sleep( 1 );
23217
23218         status = pthread_detach( &t );
23219         if( status ) return errno;
23220 #endif
23221
23222 #ifdef HAVE_LINUX_THREADS
23223         pthread_kill_other_threads_np();
23224 #endif
23225
23226         return 0;
23227
23228   ;
23229   return 0;
23230 }
23231 _ACEOF
23232 rm -f conftest.$ac_objext conftest$ac_exeext
23233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23234   (eval $ac_link) 2>conftest.er1
23235   ac_status=$?
23236   grep -v '^ *+' conftest.er1 >conftest.err
23237   rm -f conftest.er1
23238   cat conftest.err >&5
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); } &&
23241          { ac_try='test -z "$ac_c_werror_flag"
23242                          || test ! -s conftest.err'
23243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244   (eval $ac_try) 2>&5
23245   ac_status=$?
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); }; } &&
23248          { ac_try='test -s conftest$ac_exeext'
23249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250   (eval $ac_try) 2>&5
23251   ac_status=$?
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); }; }; then
23254   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23255 else
23256   echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23260 fi
23261 rm -f conftest.err conftest.$ac_objext \
23262       conftest$ac_exeext conftest.$ac_ext
23263 else
23264   cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h.  */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h.  */
23270
23271 /* pthread test headers */
23272 #include <pthread.h>
23273 #if HAVE_PTHREADS < 7
23274 #include <errno.h>
23275 #endif
23276 #ifndef NULL
23277 #define NULL (void*)0
23278 #endif
23279
23280 static void *task(p)
23281         void *p;
23282 {
23283         return (void *) (p == NULL);
23284 }
23285
23286
23287 int main(argc, argv)
23288         int argc;
23289         char **argv;
23290 {
23291
23292         /* pthread test function */
23293 #ifndef PTHREAD_CREATE_DETACHED
23294 #define PTHREAD_CREATE_DETACHED 1
23295 #endif
23296         pthread_t t;
23297         int status;
23298         int detach = PTHREAD_CREATE_DETACHED;
23299
23300 #if HAVE_PTHREADS > 4
23301         /* Final pthreads */
23302         pthread_attr_t attr;
23303
23304         status = pthread_attr_init(&attr);
23305         if( status ) return status;
23306
23307 #if HAVE_PTHREADS < 7
23308         status = pthread_attr_setdetachstate(&attr, &detach);
23309         if( status < 0 ) status = errno;
23310 #else
23311         status = pthread_attr_setdetachstate(&attr, detach);
23312 #endif
23313         if( status ) return status;
23314         status = pthread_create( &t, &attr, task, NULL );
23315 #if HAVE_PTHREADS < 7
23316         if( status < 0 ) status = errno;
23317 #endif
23318         if( status ) return status;
23319 #else
23320         /* Draft 4 pthreads */
23321         status = pthread_create( &t, pthread_attr_default, task, NULL );
23322         if( status ) return errno;
23323
23324         /* give thread a chance to complete */
23325         /* it should remain joinable and hence detachable */
23326         sleep( 1 );
23327
23328         status = pthread_detach( &t );
23329         if( status ) return errno;
23330 #endif
23331
23332 #ifdef HAVE_LINUX_THREADS
23333         pthread_kill_other_threads_np();
23334 #endif
23335
23336         return 0;
23337
23338 }
23339
23340 _ACEOF
23341 rm -f conftest$ac_exeext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343   (eval $ac_link) 2>&5
23344   ac_status=$?
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348   (eval $ac_try) 2>&5
23349   ac_status=$?
23350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); }; }; then
23352   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23353 else
23354   echo "$as_me: program exited with status $ac_status" >&5
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23357
23358 ( exit $ac_status )
23359 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23360 fi
23361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23362 fi
23363
23364                 # restore the LIBS
23365                 LIBS="$ol_LIBS"
23366
23367 fi
23368 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23369 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23370
23371         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23372                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23373                 ol_link_threads=posix
23374         fi
23375 fi
23376
23377                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23378 if test "$ol_link_threads" = no ; then
23379         # try -lpthreads -lmach -lexc
23380         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23381 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23382 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23383   echo $ECHO_N "(cached) $ECHO_C" >&6
23384 else
23385
23386                 # save the flags
23387                 ol_LIBS="$LIBS"
23388                 LIBS="-lpthreads -lmach -lexc $LIBS"
23389
23390                 if test "$cross_compiling" = yes; then
23391   cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397
23398 /* pthread test headers */
23399 #include <pthread.h>
23400 #if HAVE_PTHREADS < 7
23401 #include <errno.h>
23402 #endif
23403 #ifndef NULL
23404 #define NULL (void*)0
23405 #endif
23406
23407 static void *task(p)
23408         void *p;
23409 {
23410         return (void *) (p == NULL);
23411 }
23412
23413 int
23414 main ()
23415 {
23416
23417         /* pthread test function */
23418 #ifndef PTHREAD_CREATE_DETACHED
23419 #define PTHREAD_CREATE_DETACHED 1
23420 #endif
23421         pthread_t t;
23422         int status;
23423         int detach = PTHREAD_CREATE_DETACHED;
23424
23425 #if HAVE_PTHREADS > 4
23426         /* Final pthreads */
23427         pthread_attr_t attr;
23428
23429         status = pthread_attr_init(&attr);
23430         if( status ) return status;
23431
23432 #if HAVE_PTHREADS < 7
23433         status = pthread_attr_setdetachstate(&attr, &detach);
23434         if( status < 0 ) status = errno;
23435 #else
23436         status = pthread_attr_setdetachstate(&attr, detach);
23437 #endif
23438         if( status ) return status;
23439         status = pthread_create( &t, &attr, task, NULL );
23440 #if HAVE_PTHREADS < 7
23441         if( status < 0 ) status = errno;
23442 #endif
23443         if( status ) return status;
23444 #else
23445         /* Draft 4 pthreads */
23446         status = pthread_create( &t, pthread_attr_default, task, NULL );
23447         if( status ) return errno;
23448
23449         /* give thread a chance to complete */
23450         /* it should remain joinable and hence detachable */
23451         sleep( 1 );
23452
23453         status = pthread_detach( &t );
23454         if( status ) return errno;
23455 #endif
23456
23457 #ifdef HAVE_LINUX_THREADS
23458         pthread_kill_other_threads_np();
23459 #endif
23460
23461         return 0;
23462
23463   ;
23464   return 0;
23465 }
23466 _ACEOF
23467 rm -f conftest.$ac_objext conftest$ac_exeext
23468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23469   (eval $ac_link) 2>conftest.er1
23470   ac_status=$?
23471   grep -v '^ *+' conftest.er1 >conftest.err
23472   rm -f conftest.er1
23473   cat conftest.err >&5
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); } &&
23476          { ac_try='test -z "$ac_c_werror_flag"
23477                          || test ! -s conftest.err'
23478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479   (eval $ac_try) 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); }; } &&
23483          { ac_try='test -s conftest$ac_exeext'
23484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485   (eval $ac_try) 2>&5
23486   ac_status=$?
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); }; }; then
23489   ol_cv_pthread_lpthreads_lmach_lexc=yes
23490 else
23491   echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23493
23494 ol_cv_pthread_lpthreads_lmach_lexc=no
23495 fi
23496 rm -f conftest.err conftest.$ac_objext \
23497       conftest$ac_exeext conftest.$ac_ext
23498 else
23499   cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h.  */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h.  */
23505
23506 /* pthread test headers */
23507 #include <pthread.h>
23508 #if HAVE_PTHREADS < 7
23509 #include <errno.h>
23510 #endif
23511 #ifndef NULL
23512 #define NULL (void*)0
23513 #endif
23514
23515 static void *task(p)
23516         void *p;
23517 {
23518         return (void *) (p == NULL);
23519 }
23520
23521
23522 int main(argc, argv)
23523         int argc;
23524         char **argv;
23525 {
23526
23527         /* pthread test function */
23528 #ifndef PTHREAD_CREATE_DETACHED
23529 #define PTHREAD_CREATE_DETACHED 1
23530 #endif
23531         pthread_t t;
23532         int status;
23533         int detach = PTHREAD_CREATE_DETACHED;
23534
23535 #if HAVE_PTHREADS > 4
23536         /* Final pthreads */
23537         pthread_attr_t attr;
23538
23539         status = pthread_attr_init(&attr);
23540         if( status ) return status;
23541
23542 #if HAVE_PTHREADS < 7
23543         status = pthread_attr_setdetachstate(&attr, &detach);
23544         if( status < 0 ) status = errno;
23545 #else
23546         status = pthread_attr_setdetachstate(&attr, detach);
23547 #endif
23548         if( status ) return status;
23549         status = pthread_create( &t, &attr, task, NULL );
23550 #if HAVE_PTHREADS < 7
23551         if( status < 0 ) status = errno;
23552 #endif
23553         if( status ) return status;
23554 #else
23555         /* Draft 4 pthreads */
23556         status = pthread_create( &t, pthread_attr_default, task, NULL );
23557         if( status ) return errno;
23558
23559         /* give thread a chance to complete */
23560         /* it should remain joinable and hence detachable */
23561         sleep( 1 );
23562
23563         status = pthread_detach( &t );
23564         if( status ) return errno;
23565 #endif
23566
23567 #ifdef HAVE_LINUX_THREADS
23568         pthread_kill_other_threads_np();
23569 #endif
23570
23571         return 0;
23572
23573 }
23574
23575 _ACEOF
23576 rm -f conftest$ac_exeext
23577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23578   (eval $ac_link) 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583   (eval $ac_try) 2>&5
23584   ac_status=$?
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); }; }; then
23587   ol_cv_pthread_lpthreads_lmach_lexc=yes
23588 else
23589   echo "$as_me: program exited with status $ac_status" >&5
23590 echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23592
23593 ( exit $ac_status )
23594 ol_cv_pthread_lpthreads_lmach_lexc=no
23595 fi
23596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23597 fi
23598
23599                 # restore the LIBS
23600                 LIBS="$ol_LIBS"
23601
23602 fi
23603 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23604 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23605
23606         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23607                 ol_link_pthreads="-lpthreads -lmach -lexc"
23608                 ol_link_threads=posix
23609         fi
23610 fi
23611
23612                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23613 if test "$ol_link_threads" = no ; then
23614         # try -lpthreads -lexc
23615         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23616 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23617 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23618   echo $ECHO_N "(cached) $ECHO_C" >&6
23619 else
23620
23621                 # save the flags
23622                 ol_LIBS="$LIBS"
23623                 LIBS="-lpthreads -lexc $LIBS"
23624
23625                 if test "$cross_compiling" = yes; then
23626   cat >conftest.$ac_ext <<_ACEOF
23627 /* confdefs.h.  */
23628 _ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h.  */
23632
23633 /* pthread test headers */
23634 #include <pthread.h>
23635 #if HAVE_PTHREADS < 7
23636 #include <errno.h>
23637 #endif
23638 #ifndef NULL
23639 #define NULL (void*)0
23640 #endif
23641
23642 static void *task(p)
23643         void *p;
23644 {
23645         return (void *) (p == NULL);
23646 }
23647
23648 int
23649 main ()
23650 {
23651
23652         /* pthread test function */
23653 #ifndef PTHREAD_CREATE_DETACHED
23654 #define PTHREAD_CREATE_DETACHED 1
23655 #endif
23656         pthread_t t;
23657         int status;
23658         int detach = PTHREAD_CREATE_DETACHED;
23659
23660 #if HAVE_PTHREADS > 4
23661         /* Final pthreads */
23662         pthread_attr_t attr;
23663
23664         status = pthread_attr_init(&attr);
23665         if( status ) return status;
23666
23667 #if HAVE_PTHREADS < 7
23668         status = pthread_attr_setdetachstate(&attr, &detach);
23669         if( status < 0 ) status = errno;
23670 #else
23671         status = pthread_attr_setdetachstate(&attr, detach);
23672 #endif
23673         if( status ) return status;
23674         status = pthread_create( &t, &attr, task, NULL );
23675 #if HAVE_PTHREADS < 7
23676         if( status < 0 ) status = errno;
23677 #endif
23678         if( status ) return status;
23679 #else
23680         /* Draft 4 pthreads */
23681         status = pthread_create( &t, pthread_attr_default, task, NULL );
23682         if( status ) return errno;
23683
23684         /* give thread a chance to complete */
23685         /* it should remain joinable and hence detachable */
23686         sleep( 1 );
23687
23688         status = pthread_detach( &t );
23689         if( status ) return errno;
23690 #endif
23691
23692 #ifdef HAVE_LINUX_THREADS
23693         pthread_kill_other_threads_np();
23694 #endif
23695
23696         return 0;
23697
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23704   (eval $ac_link) 2>conftest.er1
23705   ac_status=$?
23706   grep -v '^ *+' conftest.er1 >conftest.err
23707   rm -f conftest.er1
23708   cat conftest.err >&5
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } &&
23711          { ac_try='test -z "$ac_c_werror_flag"
23712                          || test ! -s conftest.err'
23713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714   (eval $ac_try) 2>&5
23715   ac_status=$?
23716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717   (exit $ac_status); }; } &&
23718          { ac_try='test -s conftest$ac_exeext'
23719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720   (eval $ac_try) 2>&5
23721   ac_status=$?
23722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723   (exit $ac_status); }; }; then
23724   ol_cv_pthread_lpthreads_lexc=yes
23725 else
23726   echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.$ac_ext >&5
23728
23729 ol_cv_pthread_lpthreads_lexc=no
23730 fi
23731 rm -f conftest.err conftest.$ac_objext \
23732       conftest$ac_exeext conftest.$ac_ext
23733 else
23734   cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h.  */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h.  */
23740
23741 /* pthread test headers */
23742 #include <pthread.h>
23743 #if HAVE_PTHREADS < 7
23744 #include <errno.h>
23745 #endif
23746 #ifndef NULL
23747 #define NULL (void*)0
23748 #endif
23749
23750 static void *task(p)
23751         void *p;
23752 {
23753         return (void *) (p == NULL);
23754 }
23755
23756
23757 int main(argc, argv)
23758         int argc;
23759         char **argv;
23760 {
23761
23762         /* pthread test function */
23763 #ifndef PTHREAD_CREATE_DETACHED
23764 #define PTHREAD_CREATE_DETACHED 1
23765 #endif
23766         pthread_t t;
23767         int status;
23768         int detach = PTHREAD_CREATE_DETACHED;
23769
23770 #if HAVE_PTHREADS > 4
23771         /* Final pthreads */
23772         pthread_attr_t attr;
23773
23774         status = pthread_attr_init(&attr);
23775         if( status ) return status;
23776
23777 #if HAVE_PTHREADS < 7
23778         status = pthread_attr_setdetachstate(&attr, &detach);
23779         if( status < 0 ) status = errno;
23780 #else
23781         status = pthread_attr_setdetachstate(&attr, detach);
23782 #endif
23783         if( status ) return status;
23784         status = pthread_create( &t, &attr, task, NULL );
23785 #if HAVE_PTHREADS < 7
23786         if( status < 0 ) status = errno;
23787 #endif
23788         if( status ) return status;
23789 #else
23790         /* Draft 4 pthreads */
23791         status = pthread_create( &t, pthread_attr_default, task, NULL );
23792         if( status ) return errno;
23793
23794         /* give thread a chance to complete */
23795         /* it should remain joinable and hence detachable */
23796         sleep( 1 );
23797
23798         status = pthread_detach( &t );
23799         if( status ) return errno;
23800 #endif
23801
23802 #ifdef HAVE_LINUX_THREADS
23803         pthread_kill_other_threads_np();
23804 #endif
23805
23806         return 0;
23807
23808 }
23809
23810 _ACEOF
23811 rm -f conftest$ac_exeext
23812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23813   (eval $ac_link) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818   (eval $ac_try) 2>&5
23819   ac_status=$?
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); }; }; then
23822   ol_cv_pthread_lpthreads_lexc=yes
23823 else
23824   echo "$as_me: program exited with status $ac_status" >&5
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828 ( exit $ac_status )
23829 ol_cv_pthread_lpthreads_lexc=no
23830 fi
23831 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23832 fi
23833
23834                 # restore the LIBS
23835                 LIBS="$ol_LIBS"
23836
23837 fi
23838 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23839 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23840
23841         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23842                 ol_link_pthreads="-lpthreads -lexc"
23843                 ol_link_threads=posix
23844         fi
23845 fi
23846
23847
23848                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23849 if test "$ol_link_threads" = no ; then
23850         # try -lpthreads
23851         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23852 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23853 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23854   echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856
23857                 # save the flags
23858                 ol_LIBS="$LIBS"
23859                 LIBS="-lpthreads $LIBS"
23860
23861                 if test "$cross_compiling" = yes; then
23862   cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h.  */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h.  */
23868
23869 /* pthread test headers */
23870 #include <pthread.h>
23871 #if HAVE_PTHREADS < 7
23872 #include <errno.h>
23873 #endif
23874 #ifndef NULL
23875 #define NULL (void*)0
23876 #endif
23877
23878 static void *task(p)
23879         void *p;
23880 {
23881         return (void *) (p == NULL);
23882 }
23883
23884 int
23885 main ()
23886 {
23887
23888         /* pthread test function */
23889 #ifndef PTHREAD_CREATE_DETACHED
23890 #define PTHREAD_CREATE_DETACHED 1
23891 #endif
23892         pthread_t t;
23893         int status;
23894         int detach = PTHREAD_CREATE_DETACHED;
23895
23896 #if HAVE_PTHREADS > 4
23897         /* Final pthreads */
23898         pthread_attr_t attr;
23899
23900         status = pthread_attr_init(&attr);
23901         if( status ) return status;
23902
23903 #if HAVE_PTHREADS < 7
23904         status = pthread_attr_setdetachstate(&attr, &detach);
23905         if( status < 0 ) status = errno;
23906 #else
23907         status = pthread_attr_setdetachstate(&attr, detach);
23908 #endif
23909         if( status ) return status;
23910         status = pthread_create( &t, &attr, task, NULL );
23911 #if HAVE_PTHREADS < 7
23912         if( status < 0 ) status = errno;
23913 #endif
23914         if( status ) return status;
23915 #else
23916         /* Draft 4 pthreads */
23917         status = pthread_create( &t, pthread_attr_default, task, NULL );
23918         if( status ) return errno;
23919
23920         /* give thread a chance to complete */
23921         /* it should remain joinable and hence detachable */
23922         sleep( 1 );
23923
23924         status = pthread_detach( &t );
23925         if( status ) return errno;
23926 #endif
23927
23928 #ifdef HAVE_LINUX_THREADS
23929         pthread_kill_other_threads_np();
23930 #endif
23931
23932         return 0;
23933
23934   ;
23935   return 0;
23936 }
23937 _ACEOF
23938 rm -f conftest.$ac_objext conftest$ac_exeext
23939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23940   (eval $ac_link) 2>conftest.er1
23941   ac_status=$?
23942   grep -v '^ *+' conftest.er1 >conftest.err
23943   rm -f conftest.er1
23944   cat conftest.err >&5
23945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946   (exit $ac_status); } &&
23947          { ac_try='test -z "$ac_c_werror_flag"
23948                          || test ! -s conftest.err'
23949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23950   (eval $ac_try) 2>&5
23951   ac_status=$?
23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953   (exit $ac_status); }; } &&
23954          { ac_try='test -s conftest$ac_exeext'
23955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956   (eval $ac_try) 2>&5
23957   ac_status=$?
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); }; }; then
23960   ol_cv_pthread_lib_lpthreads=yes
23961 else
23962   echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 ol_cv_pthread_lib_lpthreads=no
23966 fi
23967 rm -f conftest.err conftest.$ac_objext \
23968       conftest$ac_exeext conftest.$ac_ext
23969 else
23970   cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h.  */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h.  */
23976
23977 /* pthread test headers */
23978 #include <pthread.h>
23979 #if HAVE_PTHREADS < 7
23980 #include <errno.h>
23981 #endif
23982 #ifndef NULL
23983 #define NULL (void*)0
23984 #endif
23985
23986 static void *task(p)
23987         void *p;
23988 {
23989         return (void *) (p == NULL);
23990 }
23991
23992
23993 int main(argc, argv)
23994         int argc;
23995         char **argv;
23996 {
23997
23998         /* pthread test function */
23999 #ifndef PTHREAD_CREATE_DETACHED
24000 #define PTHREAD_CREATE_DETACHED 1
24001 #endif
24002         pthread_t t;
24003         int status;
24004         int detach = PTHREAD_CREATE_DETACHED;
24005
24006 #if HAVE_PTHREADS > 4
24007         /* Final pthreads */
24008         pthread_attr_t attr;
24009
24010         status = pthread_attr_init(&attr);
24011         if( status ) return status;
24012
24013 #if HAVE_PTHREADS < 7
24014         status = pthread_attr_setdetachstate(&attr, &detach);
24015         if( status < 0 ) status = errno;
24016 #else
24017         status = pthread_attr_setdetachstate(&attr, detach);
24018 #endif
24019         if( status ) return status;
24020         status = pthread_create( &t, &attr, task, NULL );
24021 #if HAVE_PTHREADS < 7
24022         if( status < 0 ) status = errno;
24023 #endif
24024         if( status ) return status;
24025 #else
24026         /* Draft 4 pthreads */
24027         status = pthread_create( &t, pthread_attr_default, task, NULL );
24028         if( status ) return errno;
24029
24030         /* give thread a chance to complete */
24031         /* it should remain joinable and hence detachable */
24032         sleep( 1 );
24033
24034         status = pthread_detach( &t );
24035         if( status ) return errno;
24036 #endif
24037
24038 #ifdef HAVE_LINUX_THREADS
24039         pthread_kill_other_threads_np();
24040 #endif
24041
24042         return 0;
24043
24044 }
24045
24046 _ACEOF
24047 rm -f conftest$ac_exeext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24049   (eval $ac_link) 2>&5
24050   ac_status=$?
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054   (eval $ac_try) 2>&5
24055   ac_status=$?
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); }; }; then
24058   ol_cv_pthread_lib_lpthreads=yes
24059 else
24060   echo "$as_me: program exited with status $ac_status" >&5
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 ( exit $ac_status )
24065 ol_cv_pthread_lib_lpthreads=no
24066 fi
24067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24068 fi
24069
24070                 # restore the LIBS
24071                 LIBS="$ol_LIBS"
24072
24073 fi
24074 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24075 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24076
24077         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24078                 ol_link_pthreads="-lpthreads"
24079                 ol_link_threads=posix
24080         fi
24081 fi
24082
24083
24084                 if test $ol_link_threads != no ; then
24085                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24086
24087                                                 save_CPPFLAGS="$CPPFLAGS"
24088                         save_LIBS="$LIBS"
24089                         LIBS="$LTHREAD_LIBS $LIBS"
24090
24091
24092
24093
24094 for ac_func in sched_yield pthread_yield thr_yield
24095 do
24096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24097 echo "$as_me:$LINENO: checking for $ac_func" >&5
24098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24099 if eval "test \"\${$as_ac_var+set}\" = set"; then
24100   echo $ECHO_N "(cached) $ECHO_C" >&6
24101 else
24102   cat >conftest.$ac_ext <<_ACEOF
24103 /* confdefs.h.  */
24104 _ACEOF
24105 cat confdefs.h >>conftest.$ac_ext
24106 cat >>conftest.$ac_ext <<_ACEOF
24107 /* end confdefs.h.  */
24108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24110 #define $ac_func innocuous_$ac_func
24111
24112 /* System header to define __stub macros and hopefully few prototypes,
24113     which can conflict with char $ac_func (); below.
24114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24115     <limits.h> exists even on freestanding compilers.  */
24116
24117 #ifdef __STDC__
24118 # include <limits.h>
24119 #else
24120 # include <assert.h>
24121 #endif
24122
24123 #undef $ac_func
24124
24125 /* Override any gcc2 internal prototype to avoid an error.  */
24126 #ifdef __cplusplus
24127 extern "C"
24128 {
24129 #endif
24130 /* We use char because int might match the return type of a gcc2
24131    builtin and then its argument prototype would still apply.  */
24132 char $ac_func ();
24133 /* The GNU C library defines this for functions which it implements
24134     to always fail with ENOSYS.  Some functions are actually named
24135     something starting with __ and the normal name is an alias.  */
24136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24137 choke me
24138 #else
24139 char (*f) () = $ac_func;
24140 #endif
24141 #ifdef __cplusplus
24142 }
24143 #endif
24144
24145 int
24146 main ()
24147 {
24148 return f != $ac_func;
24149   ;
24150   return 0;
24151 }
24152 _ACEOF
24153 rm -f conftest.$ac_objext conftest$ac_exeext
24154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24155   (eval $ac_link) 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } &&
24162          { ac_try='test -z "$ac_c_werror_flag"
24163                          || test ! -s conftest.err'
24164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165   (eval $ac_try) 2>&5
24166   ac_status=$?
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); }; } &&
24169          { ac_try='test -s conftest$ac_exeext'
24170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171   (eval $ac_try) 2>&5
24172   ac_status=$?
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); }; }; then
24175   eval "$as_ac_var=yes"
24176 else
24177   echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24179
24180 eval "$as_ac_var=no"
24181 fi
24182 rm -f conftest.err conftest.$ac_objext \
24183       conftest$ac_exeext conftest.$ac_ext
24184 fi
24185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24187 if test `eval echo '${'$as_ac_var'}'` = yes; then
24188   cat >>confdefs.h <<_ACEOF
24189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24190 _ACEOF
24191
24192 fi
24193 done
24194
24195
24196                         if test $ac_cv_func_sched_yield = no &&
24197                            test $ac_cv_func_pthread_yield = no &&
24198                            test $ac_cv_func_thr_yield = no ; then
24199                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24200 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24201 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24202   echo $ECHO_N "(cached) $ECHO_C" >&6
24203 else
24204   ac_check_lib_save_LIBS=$LIBS
24205 LIBS="-lrt  $LIBS"
24206 cat >conftest.$ac_ext <<_ACEOF
24207 /* confdefs.h.  */
24208 _ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h.  */
24212
24213 /* Override any gcc2 internal prototype to avoid an error.  */
24214 #ifdef __cplusplus
24215 extern "C"
24216 #endif
24217 /* We use char because int might match the return type of a gcc2
24218    builtin and then its argument prototype would still apply.  */
24219 char sched_yield ();
24220 int
24221 main ()
24222 {
24223 sched_yield ();
24224   ;
24225   return 0;
24226 }
24227 _ACEOF
24228 rm -f conftest.$ac_objext conftest$ac_exeext
24229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24230   (eval $ac_link) 2>conftest.er1
24231   ac_status=$?
24232   grep -v '^ *+' conftest.er1 >conftest.err
24233   rm -f conftest.er1
24234   cat conftest.err >&5
24235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236   (exit $ac_status); } &&
24237          { ac_try='test -z "$ac_c_werror_flag"
24238                          || test ! -s conftest.err'
24239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240   (eval $ac_try) 2>&5
24241   ac_status=$?
24242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243   (exit $ac_status); }; } &&
24244          { ac_try='test -s conftest$ac_exeext'
24245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246   (eval $ac_try) 2>&5
24247   ac_status=$?
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); }; }; then
24250   ac_cv_lib_rt_sched_yield=yes
24251 else
24252   echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24254
24255 ac_cv_lib_rt_sched_yield=no
24256 fi
24257 rm -f conftest.err conftest.$ac_objext \
24258       conftest$ac_exeext conftest.$ac_ext
24259 LIBS=$ac_check_lib_save_LIBS
24260 fi
24261 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24262 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24263 if test $ac_cv_lib_rt_sched_yield = yes; then
24264   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24265
24266 cat >>confdefs.h <<\_ACEOF
24267 #define HAVE_SCHED_YIELD 1
24268 _ACEOF
24269
24270                                         ac_cv_func_sched_yield=yes
24271 else
24272   ac_cv_func_sched_yield=no
24273 fi
24274
24275                         fi
24276                         if test $ac_cv_func_sched_yield = no &&
24277                            test $ac_cv_func_pthread_yield = no &&
24278                            test "$ac_cv_func_thr_yield" = no ; then
24279                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24280 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24281                         fi
24282
24283
24284
24285 for ac_func in pthread_kill pthread_rwlock_destroy
24286 do
24287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24288 echo "$as_me:$LINENO: checking for $ac_func" >&5
24289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24290 if eval "test \"\${$as_ac_var+set}\" = set"; then
24291   echo $ECHO_N "(cached) $ECHO_C" >&6
24292 else
24293   cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h.  */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h.  */
24299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24301 #define $ac_func innocuous_$ac_func
24302
24303 /* System header to define __stub macros and hopefully few prototypes,
24304     which can conflict with char $ac_func (); below.
24305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24306     <limits.h> exists even on freestanding compilers.  */
24307
24308 #ifdef __STDC__
24309 # include <limits.h>
24310 #else
24311 # include <assert.h>
24312 #endif
24313
24314 #undef $ac_func
24315
24316 /* Override any gcc2 internal prototype to avoid an error.  */
24317 #ifdef __cplusplus
24318 extern "C"
24319 {
24320 #endif
24321 /* We use char because int might match the return type of a gcc2
24322    builtin and then its argument prototype would still apply.  */
24323 char $ac_func ();
24324 /* The GNU C library defines this for functions which it implements
24325     to always fail with ENOSYS.  Some functions are actually named
24326     something starting with __ and the normal name is an alias.  */
24327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24328 choke me
24329 #else
24330 char (*f) () = $ac_func;
24331 #endif
24332 #ifdef __cplusplus
24333 }
24334 #endif
24335
24336 int
24337 main ()
24338 {
24339 return f != $ac_func;
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest.$ac_objext conftest$ac_exeext
24345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24346   (eval $ac_link) 2>conftest.er1
24347   ac_status=$?
24348   grep -v '^ *+' conftest.er1 >conftest.err
24349   rm -f conftest.er1
24350   cat conftest.err >&5
24351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); } &&
24353          { ac_try='test -z "$ac_c_werror_flag"
24354                          || test ! -s conftest.err'
24355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356   (eval $ac_try) 2>&5
24357   ac_status=$?
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); }; } &&
24360          { ac_try='test -s conftest$ac_exeext'
24361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362   (eval $ac_try) 2>&5
24363   ac_status=$?
24364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365   (exit $ac_status); }; }; then
24366   eval "$as_ac_var=yes"
24367 else
24368   echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24370
24371 eval "$as_ac_var=no"
24372 fi
24373 rm -f conftest.err conftest.$ac_objext \
24374       conftest$ac_exeext conftest.$ac_ext
24375 fi
24376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24378 if test `eval echo '${'$as_ac_var'}'` = yes; then
24379   cat >>confdefs.h <<_ACEOF
24380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24381 _ACEOF
24382
24383 fi
24384 done
24385
24386
24387                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24388 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24389 if test "${ol_cv_func_pthread_detach+set}" = set; then
24390   echo $ECHO_N "(cached) $ECHO_C" >&6
24391 else
24392
24393                                                                 cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h.  */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h.  */
24399
24400 #include <pthread.h>
24401 #ifndef NULL
24402 #define NULL (void*)0
24403 #endif
24404
24405 int
24406 main ()
24407 {
24408 pthread_detach(NULL);
24409   ;
24410   return 0;
24411 }
24412 _ACEOF
24413 rm -f conftest.$ac_objext conftest$ac_exeext
24414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24415   (eval $ac_link) 2>conftest.er1
24416   ac_status=$?
24417   grep -v '^ *+' conftest.er1 >conftest.err
24418   rm -f conftest.er1
24419   cat conftest.err >&5
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); } &&
24422          { ac_try='test -z "$ac_c_werror_flag"
24423                          || test ! -s conftest.err'
24424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425   (eval $ac_try) 2>&5
24426   ac_status=$?
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); }; } &&
24429          { ac_try='test -s conftest$ac_exeext'
24430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431   (eval $ac_try) 2>&5
24432   ac_status=$?
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); }; }; then
24435   ol_cv_func_pthread_detach=yes
24436 else
24437   echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24439
24440 ol_cv_func_pthread_detach=no
24441 fi
24442 rm -f conftest.err conftest.$ac_objext \
24443       conftest$ac_exeext conftest.$ac_ext
24444
24445 fi
24446 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24447 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24448
24449                         if test $ol_cv_func_pthread_detach = no ; then
24450                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24451 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24452    { (exit 1); exit 1; }; }
24453                         fi
24454
24455
24456 cat >>confdefs.h <<\_ACEOF
24457 #define HAVE_PTHREAD_DETACH 1
24458 _ACEOF
24459
24460
24461
24462
24463
24464
24465 for ac_func in \
24466                                 pthread_setconcurrency \
24467                                 pthread_getconcurrency \
24468                                 thr_setconcurrency \
24469                                 thr_getconcurrency \
24470
24471 do
24472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24473 echo "$as_me:$LINENO: checking for $ac_func" >&5
24474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24475 if eval "test \"\${$as_ac_var+set}\" = set"; then
24476   echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478   cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h.  */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h.  */
24484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24486 #define $ac_func innocuous_$ac_func
24487
24488 /* System header to define __stub macros and hopefully few prototypes,
24489     which can conflict with char $ac_func (); below.
24490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24491     <limits.h> exists even on freestanding compilers.  */
24492
24493 #ifdef __STDC__
24494 # include <limits.h>
24495 #else
24496 # include <assert.h>
24497 #endif
24498
24499 #undef $ac_func
24500
24501 /* Override any gcc2 internal prototype to avoid an error.  */
24502 #ifdef __cplusplus
24503 extern "C"
24504 {
24505 #endif
24506 /* We use char because int might match the return type of a gcc2
24507    builtin and then its argument prototype would still apply.  */
24508 char $ac_func ();
24509 /* The GNU C library defines this for functions which it implements
24510     to always fail with ENOSYS.  Some functions are actually named
24511     something starting with __ and the normal name is an alias.  */
24512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24513 choke me
24514 #else
24515 char (*f) () = $ac_func;
24516 #endif
24517 #ifdef __cplusplus
24518 }
24519 #endif
24520
24521 int
24522 main ()
24523 {
24524 return f != $ac_func;
24525   ;
24526   return 0;
24527 }
24528 _ACEOF
24529 rm -f conftest.$ac_objext conftest$ac_exeext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24531   (eval $ac_link) 2>conftest.er1
24532   ac_status=$?
24533   grep -v '^ *+' conftest.er1 >conftest.err
24534   rm -f conftest.er1
24535   cat conftest.err >&5
24536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537   (exit $ac_status); } &&
24538          { ac_try='test -z "$ac_c_werror_flag"
24539                          || test ! -s conftest.err'
24540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541   (eval $ac_try) 2>&5
24542   ac_status=$?
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; } &&
24545          { ac_try='test -s conftest$ac_exeext'
24546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547   (eval $ac_try) 2>&5
24548   ac_status=$?
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); }; }; then
24551   eval "$as_ac_var=yes"
24552 else
24553   echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24555
24556 eval "$as_ac_var=no"
24557 fi
24558 rm -f conftest.err conftest.$ac_objext \
24559       conftest$ac_exeext conftest.$ac_ext
24560 fi
24561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24563 if test `eval echo '${'$as_ac_var'}'` = yes; then
24564   cat >>confdefs.h <<_ACEOF
24565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24566 _ACEOF
24567
24568 fi
24569 done
24570
24571
24572
24573
24574 for ac_func in pthread_kill_other_threads_np
24575 do
24576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24577 echo "$as_me:$LINENO: checking for $ac_func" >&5
24578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24579 if eval "test \"\${$as_ac_var+set}\" = set"; then
24580   echo $ECHO_N "(cached) $ECHO_C" >&6
24581 else
24582   cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24590 #define $ac_func innocuous_$ac_func
24591
24592 /* System header to define __stub macros and hopefully few prototypes,
24593     which can conflict with char $ac_func (); below.
24594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24595     <limits.h> exists even on freestanding compilers.  */
24596
24597 #ifdef __STDC__
24598 # include <limits.h>
24599 #else
24600 # include <assert.h>
24601 #endif
24602
24603 #undef $ac_func
24604
24605 /* Override any gcc2 internal prototype to avoid an error.  */
24606 #ifdef __cplusplus
24607 extern "C"
24608 {
24609 #endif
24610 /* We use char because int might match the return type of a gcc2
24611    builtin and then its argument prototype would still apply.  */
24612 char $ac_func ();
24613 /* The GNU C library defines this for functions which it implements
24614     to always fail with ENOSYS.  Some functions are actually named
24615     something starting with __ and the normal name is an alias.  */
24616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24617 choke me
24618 #else
24619 char (*f) () = $ac_func;
24620 #endif
24621 #ifdef __cplusplus
24622 }
24623 #endif
24624
24625 int
24626 main ()
24627 {
24628 return f != $ac_func;
24629   ;
24630   return 0;
24631 }
24632 _ACEOF
24633 rm -f conftest.$ac_objext conftest$ac_exeext
24634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24635   (eval $ac_link) 2>conftest.er1
24636   ac_status=$?
24637   grep -v '^ *+' conftest.er1 >conftest.err
24638   rm -f conftest.er1
24639   cat conftest.err >&5
24640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641   (exit $ac_status); } &&
24642          { ac_try='test -z "$ac_c_werror_flag"
24643                          || test ! -s conftest.err'
24644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645   (eval $ac_try) 2>&5
24646   ac_status=$?
24647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648   (exit $ac_status); }; } &&
24649          { ac_try='test -s conftest$ac_exeext'
24650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651   (eval $ac_try) 2>&5
24652   ac_status=$?
24653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654   (exit $ac_status); }; }; then
24655   eval "$as_ac_var=yes"
24656 else
24657   echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24659
24660 eval "$as_ac_var=no"
24661 fi
24662 rm -f conftest.err conftest.$ac_objext \
24663       conftest$ac_exeext conftest.$ac_ext
24664 fi
24665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24667 if test `eval echo '${'$as_ac_var'}'` = yes; then
24668   cat >>confdefs.h <<_ACEOF
24669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24670 _ACEOF
24671
24672 fi
24673 done
24674
24675         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24676 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24677 if test "${ol_cv_sys_linux_threads+set}" = set; then
24678   echo $ECHO_N "(cached) $ECHO_C" >&6
24679 else
24680   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24681 fi
24682 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24683 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24684
24685
24686
24687
24688         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24689 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24690 if test "${ol_cv_linux_threads+set}" = set; then
24691   echo $ECHO_N "(cached) $ECHO_C" >&6
24692 else
24693
24694                 if test $ol_cv_header_linux_threads = yes &&
24695                    test $ol_cv_sys_linux_threads = yes; then
24696                         ol_cv_linux_threads=yes
24697                 elif test $ol_cv_header_linux_threads = no &&
24698                      test $ol_cv_sys_linux_threads = no; then
24699                         ol_cv_linux_threads=no
24700                 else
24701                         ol_cv_linux_threads=error
24702                 fi
24703
24704 fi
24705 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24706 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24707
24708
24709                         if test $ol_cv_linux_threads = error; then
24710                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24711 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24712    { (exit 1); exit 1; }; };
24713                         fi
24714
24715                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24716 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24717 if test "${ol_cv_pthread_create_works+set}" = set; then
24718   echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720
24721                         if test "$cross_compiling" = yes; then
24722                                 ol_cv_pthread_create_works=yes
24723 else
24724   cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h.  */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h.  */
24730
24731 /* pthread test headers */
24732 #include <pthread.h>
24733 #if HAVE_PTHREADS < 7
24734 #include <errno.h>
24735 #endif
24736 #ifndef NULL
24737 #define NULL (void*)0
24738 #endif
24739
24740 static void *task(p)
24741         void *p;
24742 {
24743         return (void *) (p == NULL);
24744 }
24745
24746
24747 int main(argc, argv)
24748         int argc;
24749         char **argv;
24750 {
24751
24752         /* pthread test function */
24753 #ifndef PTHREAD_CREATE_DETACHED
24754 #define PTHREAD_CREATE_DETACHED 1
24755 #endif
24756         pthread_t t;
24757         int status;
24758         int detach = PTHREAD_CREATE_DETACHED;
24759
24760 #if HAVE_PTHREADS > 4
24761         /* Final pthreads */
24762         pthread_attr_t attr;
24763
24764         status = pthread_attr_init(&attr);
24765         if( status ) return status;
24766
24767 #if HAVE_PTHREADS < 7
24768         status = pthread_attr_setdetachstate(&attr, &detach);
24769         if( status < 0 ) status = errno;
24770 #else
24771         status = pthread_attr_setdetachstate(&attr, detach);
24772 #endif
24773         if( status ) return status;
24774         status = pthread_create( &t, &attr, task, NULL );
24775 #if HAVE_PTHREADS < 7
24776         if( status < 0 ) status = errno;
24777 #endif
24778         if( status ) return status;
24779 #else
24780         /* Draft 4 pthreads */
24781         status = pthread_create( &t, pthread_attr_default, task, NULL );
24782         if( status ) return errno;
24783
24784         /* give thread a chance to complete */
24785         /* it should remain joinable and hence detachable */
24786         sleep( 1 );
24787
24788         status = pthread_detach( &t );
24789         if( status ) return errno;
24790 #endif
24791
24792 #ifdef HAVE_LINUX_THREADS
24793         pthread_kill_other_threads_np();
24794 #endif
24795
24796         return 0;
24797
24798 }
24799
24800 _ACEOF
24801 rm -f conftest$ac_exeext
24802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24803   (eval $ac_link) 2>&5
24804   ac_status=$?
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808   (eval $ac_try) 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); }; }; then
24812   ol_cv_pthread_create_works=yes
24813 else
24814   echo "$as_me: program exited with status $ac_status" >&5
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24817
24818 ( exit $ac_status )
24819 ol_cv_pthread_create_works=no
24820 fi
24821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24822 fi
24823 fi
24824 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24825 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24826
24827                         if test $ol_cv_pthread_create_works = no ; then
24828                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24829 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24830    { (exit 1); exit 1; }; }
24831                         fi
24832
24833                         ol_replace_broken_yield=no
24834
24835                         if test $ol_replace_broken_yield = yes ; then
24836
24837 cat >>confdefs.h <<\_ACEOF
24838 #define REPLACE_BROKEN_YIELD 1
24839 _ACEOF
24840
24841                         fi
24842
24843                                                 if test $ol_with_yielding_select = auto ; then
24844                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24845 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24846 if test "${ol_cv_pthread_select_yields+set}" = set; then
24847   echo $ECHO_N "(cached) $ECHO_C" >&6
24848 else
24849
24850                                 if test "$cross_compiling" = yes; then
24851   ol_cv_pthread_select_yields=cross
24852 else
24853   cat >conftest.$ac_ext <<_ACEOF
24854 /* confdefs.h.  */
24855 _ACEOF
24856 cat confdefs.h >>conftest.$ac_ext
24857 cat >>conftest.$ac_ext <<_ACEOF
24858 /* end confdefs.h.  */
24859
24860 #include <sys/types.h>
24861 #include <sys/time.h>
24862 #include <unistd.h>
24863 #include <pthread.h>
24864 #ifndef NULL
24865 #define NULL (void*) 0
24866 #endif
24867
24868 static int fildes[2];
24869
24870 static void *task(p)
24871         void *p;
24872 {
24873         int i;
24874         struct timeval tv;
24875
24876         fd_set rfds;
24877
24878         tv.tv_sec=10;
24879         tv.tv_usec=0;
24880
24881         FD_ZERO(&rfds);
24882         FD_SET(fildes[0], &rfds);
24883
24884         /* we're not interested in any fds */
24885         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24886
24887         if(i < 0) {
24888                 perror("select");
24889                 exit(10);
24890         }
24891
24892         exit(0); /* if we exit here, the select blocked the whole process */
24893 }
24894
24895 int main(argc, argv)
24896         int argc;
24897         char **argv;
24898 {
24899         pthread_t t;
24900
24901         /* create a pipe to select */
24902         if(pipe(&fildes[0])) {
24903                 perror("select");
24904                 exit(1);
24905         }
24906
24907 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24908         (void) pthread_setconcurrency(2);
24909 #else
24910 #ifdef HAVE_THR_SETCONCURRENCY
24911         /* Set Solaris LWP concurrency to 2 */
24912         thr_setconcurrency(2);
24913 #endif
24914 #endif
24915
24916 #if HAVE_PTHREADS < 6
24917         pthread_create(&t, pthread_attr_default, task, NULL);
24918 #else
24919         pthread_create(&t, NULL, task, NULL);
24920 #endif
24921
24922         /* make sure task runs first */
24923 #if HAVE_THR_YIELD
24924         thr_yield();
24925 #elif defined( HAVE_SCHED_YIELD )
24926         sched_yield();
24927 #elif defined( HAVE_PTHREAD_YIELD )
24928         pthread_yield();
24929 #endif
24930
24931         exit(2);
24932 }
24933 _ACEOF
24934 rm -f conftest$ac_exeext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24936   (eval $ac_link) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941   (eval $ac_try) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; }; then
24945   ol_cv_pthread_select_yields=no
24946 else
24947   echo "$as_me: program exited with status $ac_status" >&5
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24950
24951 ( exit $ac_status )
24952 ol_cv_pthread_select_yields=yes
24953 fi
24954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24955 fi
24956 fi
24957 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24958 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24959
24960                                 if test $ol_cv_pthread_select_yields = cross ; then
24961                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24962 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24963    { (exit 1); exit 1; }; }
24964                                 fi
24965
24966                                 if test $ol_cv_pthread_select_yields = yes ; then
24967                                         ol_with_yielding_select=yes
24968                                 fi
24969                         fi
24970
24971                                                 CPPFLAGS="$save_CPPFLAGS"
24972                         LIBS="$save_LIBS"
24973                 else
24974                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24975 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24976    { (exit 1); exit 1; }; }
24977                 fi
24978         fi
24979
24980         if test $ol_with_threads = posix ; then
24981                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24982 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24983    { (exit 1); exit 1; }; }
24984         fi
24985         ;;
24986 esac
24987
24988 case $ol_with_threads in auto | yes | mach)
24989
24990
24991
24992 for ac_header in mach/cthreads.h cthreads.h
24993 do
24994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24996   echo "$as_me:$LINENO: checking for $ac_header" >&5
24997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24999   echo $ECHO_N "(cached) $ECHO_C" >&6
25000 fi
25001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25003 else
25004   # Is the header compilable?
25005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25007 cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h.  */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h.  */
25013 $ac_includes_default
25014 #include <$ac_header>
25015 _ACEOF
25016 rm -f conftest.$ac_objext
25017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25018   (eval $ac_compile) 2>conftest.er1
25019   ac_status=$?
25020   grep -v '^ *+' conftest.er1 >conftest.err
25021   rm -f conftest.er1
25022   cat conftest.err >&5
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); } &&
25025          { ac_try='test -z "$ac_c_werror_flag"
25026                          || test ! -s conftest.err'
25027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028   (eval $ac_try) 2>&5
25029   ac_status=$?
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); }; } &&
25032          { ac_try='test -s conftest.$ac_objext'
25033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034   (eval $ac_try) 2>&5
25035   ac_status=$?
25036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037   (exit $ac_status); }; }; then
25038   ac_header_compiler=yes
25039 else
25040   echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25042
25043 ac_header_compiler=no
25044 fi
25045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25047 echo "${ECHO_T}$ac_header_compiler" >&6
25048
25049 # Is the header present?
25050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058 #include <$ac_header>
25059 _ACEOF
25060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25062   ac_status=$?
25063   grep -v '^ *+' conftest.er1 >conftest.err
25064   rm -f conftest.er1
25065   cat conftest.err >&5
25066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067   (exit $ac_status); } >/dev/null; then
25068   if test -s conftest.err; then
25069     ac_cpp_err=$ac_c_preproc_warn_flag
25070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25071   else
25072     ac_cpp_err=
25073   fi
25074 else
25075   ac_cpp_err=yes
25076 fi
25077 if test -z "$ac_cpp_err"; then
25078   ac_header_preproc=yes
25079 else
25080   echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083   ac_header_preproc=no
25084 fi
25085 rm -f conftest.err conftest.$ac_ext
25086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 echo "${ECHO_T}$ac_header_preproc" >&6
25088
25089 # So?  What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25091   yes:no: )
25092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25096     ac_header_preproc=yes
25097     ;;
25098   no:yes:* )
25099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25111     (
25112       cat <<\_ASBOX
25113 ## --------------------------------------------- ##
25114 ## Report this to <http://www.openldap.org/its/> ##
25115 ## --------------------------------------------- ##
25116 _ASBOX
25117     ) |
25118       sed "s/^/$as_me: WARNING:     /" >&2
25119     ;;
25120 esac
25121 echo "$as_me:$LINENO: checking for $ac_header" >&5
25122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25124   echo $ECHO_N "(cached) $ECHO_C" >&6
25125 else
25126   eval "$as_ac_Header=\$ac_header_preproc"
25127 fi
25128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25130
25131 fi
25132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25133   cat >>confdefs.h <<_ACEOF
25134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25135 _ACEOF
25136
25137 fi
25138
25139 done
25140
25141         if test $ac_cv_header_mach_cthreads_h = yes ; then
25142                 ol_with_threads=found
25143
25144                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25145 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25146 if test "${ac_cv_func_cthread_fork+set}" = set; then
25147   echo $ECHO_N "(cached) $ECHO_C" >&6
25148 else
25149   cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h.  */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h.  */
25155 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25157 #define cthread_fork innocuous_cthread_fork
25158
25159 /* System header to define __stub macros and hopefully few prototypes,
25160     which can conflict with char cthread_fork (); below.
25161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25162     <limits.h> exists even on freestanding compilers.  */
25163
25164 #ifdef __STDC__
25165 # include <limits.h>
25166 #else
25167 # include <assert.h>
25168 #endif
25169
25170 #undef cthread_fork
25171
25172 /* Override any gcc2 internal prototype to avoid an error.  */
25173 #ifdef __cplusplus
25174 extern "C"
25175 {
25176 #endif
25177 /* We use char because int might match the return type of a gcc2
25178    builtin and then its argument prototype would still apply.  */
25179 char cthread_fork ();
25180 /* The GNU C library defines this for functions which it implements
25181     to always fail with ENOSYS.  Some functions are actually named
25182     something starting with __ and the normal name is an alias.  */
25183 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25184 choke me
25185 #else
25186 char (*f) () = cthread_fork;
25187 #endif
25188 #ifdef __cplusplus
25189 }
25190 #endif
25191
25192 int
25193 main ()
25194 {
25195 return f != cthread_fork;
25196   ;
25197   return 0;
25198 }
25199 _ACEOF
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25202   (eval $ac_link) 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } &&
25209          { ac_try='test -z "$ac_c_werror_flag"
25210                          || test ! -s conftest.err'
25211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212   (eval $ac_try) 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); }; } &&
25216          { ac_try='test -s conftest$ac_exeext'
25217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218   (eval $ac_try) 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); }; }; then
25222   ac_cv_func_cthread_fork=yes
25223 else
25224   echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25226
25227 ac_cv_func_cthread_fork=no
25228 fi
25229 rm -f conftest.err conftest.$ac_objext \
25230       conftest$ac_exeext conftest.$ac_ext
25231 fi
25232 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25233 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25234 if test $ac_cv_func_cthread_fork = yes; then
25235   ol_link_threads=yes
25236 fi
25237
25238
25239                 if test $ol_link_threads = no ; then
25240                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25241 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25242 if test "${ol_cv_cthread_all_load+set}" = set; then
25243   echo $ECHO_N "(cached) $ECHO_C" >&6
25244 else
25245
25246                                                                 save_LIBS="$LIBS"
25247                                 LIBS="-all_load $LIBS"
25248                                 cat >conftest.$ac_ext <<_ACEOF
25249 /* confdefs.h.  */
25250 _ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h.  */
25254 #include <mach/cthreads.h>
25255 int
25256 main ()
25257 {
25258
25259                                         cthread_fork((void *)0, (void *)0);
25260
25261   ;
25262   return 0;
25263 }
25264 _ACEOF
25265 rm -f conftest.$ac_objext conftest$ac_exeext
25266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25267   (eval $ac_link) 2>conftest.er1
25268   ac_status=$?
25269   grep -v '^ *+' conftest.er1 >conftest.err
25270   rm -f conftest.er1
25271   cat conftest.err >&5
25272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273   (exit $ac_status); } &&
25274          { ac_try='test -z "$ac_c_werror_flag"
25275                          || test ! -s conftest.err'
25276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277   (eval $ac_try) 2>&5
25278   ac_status=$?
25279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280   (exit $ac_status); }; } &&
25281          { ac_try='test -s conftest$ac_exeext'
25282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283   (eval $ac_try) 2>&5
25284   ac_status=$?
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); }; }; then
25287   ol_cv_cthread_all_load=yes
25288 else
25289   echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25291
25292 ol_cv_cthread_all_load=no
25293 fi
25294 rm -f conftest.err conftest.$ac_objext \
25295       conftest$ac_exeext conftest.$ac_ext
25296                                                                 LIBS="$save_LIBS"
25297
25298 fi
25299 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25300 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25301
25302                         if test $ol_cv_cthread_all_load = yes ; then
25303                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25304                                 ol_link_threads=mach
25305                                 ol_with_threads=found
25306                         fi
25307                 fi
25308
25309         elif test $ac_cv_header_cthreads_h = yes ; then
25310
25311                 ol_with_threads=found
25312
25313                                 save_LIBS="$LIBS"
25314                 LIBS="$LIBS -lthreads"
25315                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25316 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25317 if test "${ac_cv_func_cthread_fork+set}" = set; then
25318   echo $ECHO_N "(cached) $ECHO_C" >&6
25319 else
25320   cat >conftest.$ac_ext <<_ACEOF
25321 /* confdefs.h.  */
25322 _ACEOF
25323 cat confdefs.h >>conftest.$ac_ext
25324 cat >>conftest.$ac_ext <<_ACEOF
25325 /* end confdefs.h.  */
25326 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25327    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25328 #define cthread_fork innocuous_cthread_fork
25329
25330 /* System header to define __stub macros and hopefully few prototypes,
25331     which can conflict with char cthread_fork (); below.
25332     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25333     <limits.h> exists even on freestanding compilers.  */
25334
25335 #ifdef __STDC__
25336 # include <limits.h>
25337 #else
25338 # include <assert.h>
25339 #endif
25340
25341 #undef cthread_fork
25342
25343 /* Override any gcc2 internal prototype to avoid an error.  */
25344 #ifdef __cplusplus
25345 extern "C"
25346 {
25347 #endif
25348 /* We use char because int might match the return type of a gcc2
25349    builtin and then its argument prototype would still apply.  */
25350 char cthread_fork ();
25351 /* The GNU C library defines this for functions which it implements
25352     to always fail with ENOSYS.  Some functions are actually named
25353     something starting with __ and the normal name is an alias.  */
25354 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25355 choke me
25356 #else
25357 char (*f) () = cthread_fork;
25358 #endif
25359 #ifdef __cplusplus
25360 }
25361 #endif
25362
25363 int
25364 main ()
25365 {
25366 return f != cthread_fork;
25367   ;
25368   return 0;
25369 }
25370 _ACEOF
25371 rm -f conftest.$ac_objext conftest$ac_exeext
25372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25373   (eval $ac_link) 2>conftest.er1
25374   ac_status=$?
25375   grep -v '^ *+' conftest.er1 >conftest.err
25376   rm -f conftest.er1
25377   cat conftest.err >&5
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); } &&
25380          { ac_try='test -z "$ac_c_werror_flag"
25381                          || test ! -s conftest.err'
25382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383   (eval $ac_try) 2>&5
25384   ac_status=$?
25385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386   (exit $ac_status); }; } &&
25387          { ac_try='test -s conftest$ac_exeext'
25388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389   (eval $ac_try) 2>&5
25390   ac_status=$?
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); }; }; then
25393   ac_cv_func_cthread_fork=yes
25394 else
25395   echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25397
25398 ac_cv_func_cthread_fork=no
25399 fi
25400 rm -f conftest.err conftest.$ac_objext \
25401       conftest$ac_exeext conftest.$ac_ext
25402 fi
25403 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25404 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25405 if test $ac_cv_func_cthread_fork = yes; then
25406   ol_link_threads=yes
25407 fi
25408
25409                 LIBS="$save_LIBS"
25410
25411                 if test $ol_link_threads = yes ; then
25412                         LTHREAD_LIBS="-lthreads"
25413                         ol_link_threads=mach
25414                         ol_with_threads=found
25415                 else
25416                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25417 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25418    { (exit 1); exit 1; }; }
25419                 fi
25420
25421         elif test $ol_with_threads = mach ; then
25422                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25423 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25424    { (exit 1); exit 1; }; }
25425         fi
25426
25427         if test $ol_link_threads = mach ; then
25428
25429 cat >>confdefs.h <<\_ACEOF
25430 #define HAVE_MACH_CTHREADS 1
25431 _ACEOF
25432
25433         elif test $ol_with_threads = found ; then
25434                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25435 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25436    { (exit 1); exit 1; }; }
25437         fi
25438         ;;
25439 esac
25440
25441 case $ol_with_threads in auto | yes | pth)
25442
25443
25444 for ac_header in pth.h
25445 do
25446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25448   echo "$as_me:$LINENO: checking for $ac_header" >&5
25449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25451   echo $ECHO_N "(cached) $ECHO_C" >&6
25452 fi
25453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25455 else
25456   # Is the header compilable?
25457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25459 cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h.  */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h.  */
25465 $ac_includes_default
25466 #include <$ac_header>
25467 _ACEOF
25468 rm -f conftest.$ac_objext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25470   (eval $ac_compile) 2>conftest.er1
25471   ac_status=$?
25472   grep -v '^ *+' conftest.er1 >conftest.err
25473   rm -f conftest.er1
25474   cat conftest.err >&5
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); } &&
25477          { ac_try='test -z "$ac_c_werror_flag"
25478                          || test ! -s conftest.err'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; } &&
25484          { ac_try='test -s conftest.$ac_objext'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; }; then
25490   ac_header_compiler=yes
25491 else
25492   echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25494
25495 ac_header_compiler=no
25496 fi
25497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25499 echo "${ECHO_T}$ac_header_compiler" >&6
25500
25501 # Is the header present?
25502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25504 cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h.  */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h.  */
25510 #include <$ac_header>
25511 _ACEOF
25512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25514   ac_status=$?
25515   grep -v '^ *+' conftest.er1 >conftest.err
25516   rm -f conftest.er1
25517   cat conftest.err >&5
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); } >/dev/null; then
25520   if test -s conftest.err; then
25521     ac_cpp_err=$ac_c_preproc_warn_flag
25522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25523   else
25524     ac_cpp_err=
25525   fi
25526 else
25527   ac_cpp_err=yes
25528 fi
25529 if test -z "$ac_cpp_err"; then
25530   ac_header_preproc=yes
25531 else
25532   echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25534
25535   ac_header_preproc=no
25536 fi
25537 rm -f conftest.err conftest.$ac_ext
25538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25539 echo "${ECHO_T}$ac_header_preproc" >&6
25540
25541 # So?  What about this header?
25542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25543   yes:no: )
25544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25548     ac_header_preproc=yes
25549     ;;
25550   no:yes:* )
25551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25563     (
25564       cat <<\_ASBOX
25565 ## --------------------------------------------- ##
25566 ## Report this to <http://www.openldap.org/its/> ##
25567 ## --------------------------------------------- ##
25568 _ASBOX
25569     ) |
25570       sed "s/^/$as_me: WARNING:     /" >&2
25571     ;;
25572 esac
25573 echo "$as_me:$LINENO: checking for $ac_header" >&5
25574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25576   echo $ECHO_N "(cached) $ECHO_C" >&6
25577 else
25578   eval "$as_ac_Header=\$ac_header_preproc"
25579 fi
25580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25582
25583 fi
25584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25585   cat >>confdefs.h <<_ACEOF
25586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25587 _ACEOF
25588
25589 fi
25590
25591 done
25592
25593
25594         if test $ac_cv_header_pth_h = yes ; then
25595                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25596 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25597 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25598   echo $ECHO_N "(cached) $ECHO_C" >&6
25599 else
25600   ac_check_lib_save_LIBS=$LIBS
25601 LIBS="-lpth  $LIBS"
25602 cat >conftest.$ac_ext <<_ACEOF
25603 /* confdefs.h.  */
25604 _ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h.  */
25608
25609 /* Override any gcc2 internal prototype to avoid an error.  */
25610 #ifdef __cplusplus
25611 extern "C"
25612 #endif
25613 /* We use char because int might match the return type of a gcc2
25614    builtin and then its argument prototype would still apply.  */
25615 char pth_version ();
25616 int
25617 main ()
25618 {
25619 pth_version ();
25620   ;
25621   return 0;
25622 }
25623 _ACEOF
25624 rm -f conftest.$ac_objext conftest$ac_exeext
25625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25626   (eval $ac_link) 2>conftest.er1
25627   ac_status=$?
25628   grep -v '^ *+' conftest.er1 >conftest.err
25629   rm -f conftest.er1
25630   cat conftest.err >&5
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); } &&
25633          { ac_try='test -z "$ac_c_werror_flag"
25634                          || test ! -s conftest.err'
25635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636   (eval $ac_try) 2>&5
25637   ac_status=$?
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); }; } &&
25640          { ac_try='test -s conftest$ac_exeext'
25641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642   (eval $ac_try) 2>&5
25643   ac_status=$?
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); }; }; then
25646   ac_cv_lib_pth_pth_version=yes
25647 else
25648   echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25650
25651 ac_cv_lib_pth_pth_version=no
25652 fi
25653 rm -f conftest.err conftest.$ac_objext \
25654       conftest$ac_exeext conftest.$ac_ext
25655 LIBS=$ac_check_lib_save_LIBS
25656 fi
25657 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25658 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25659 if test $ac_cv_lib_pth_pth_version = yes; then
25660   have_pth=yes
25661 else
25662   have_pth=no
25663 fi
25664
25665
25666                 if test $have_pth = yes ; then
25667
25668 cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_GNU_PTH 1
25670 _ACEOF
25671
25672                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25673                         ol_link_threads=pth
25674                         ol_with_threads=found
25675
25676                         if test $ol_with_yielding_select = auto ; then
25677                                 ol_with_yielding_select=yes
25678                         fi
25679                 fi
25680         fi
25681         ;;
25682 esac
25683
25684 case $ol_with_threads in auto | yes | lwp)
25685
25686
25687
25688 for ac_header in thread.h synch.h
25689 do
25690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25692   echo "$as_me:$LINENO: checking for $ac_header" >&5
25693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25695   echo $ECHO_N "(cached) $ECHO_C" >&6
25696 fi
25697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25699 else
25700   # Is the header compilable?
25701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25703 cat >conftest.$ac_ext <<_ACEOF
25704 /* confdefs.h.  */
25705 _ACEOF
25706 cat confdefs.h >>conftest.$ac_ext
25707 cat >>conftest.$ac_ext <<_ACEOF
25708 /* end confdefs.h.  */
25709 $ac_includes_default
25710 #include <$ac_header>
25711 _ACEOF
25712 rm -f conftest.$ac_objext
25713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25714   (eval $ac_compile) 2>conftest.er1
25715   ac_status=$?
25716   grep -v '^ *+' conftest.er1 >conftest.err
25717   rm -f conftest.er1
25718   cat conftest.err >&5
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); } &&
25721          { ac_try='test -z "$ac_c_werror_flag"
25722                          || test ! -s conftest.err'
25723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724   (eval $ac_try) 2>&5
25725   ac_status=$?
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); }; } &&
25728          { ac_try='test -s conftest.$ac_objext'
25729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25730   (eval $ac_try) 2>&5
25731   ac_status=$?
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); }; }; then
25734   ac_header_compiler=yes
25735 else
25736   echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25738
25739 ac_header_compiler=no
25740 fi
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25743 echo "${ECHO_T}$ac_header_compiler" >&6
25744
25745 # Is the header present?
25746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754 #include <$ac_header>
25755 _ACEOF
25756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25758   ac_status=$?
25759   grep -v '^ *+' conftest.er1 >conftest.err
25760   rm -f conftest.er1
25761   cat conftest.err >&5
25762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763   (exit $ac_status); } >/dev/null; then
25764   if test -s conftest.err; then
25765     ac_cpp_err=$ac_c_preproc_warn_flag
25766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25767   else
25768     ac_cpp_err=
25769   fi
25770 else
25771   ac_cpp_err=yes
25772 fi
25773 if test -z "$ac_cpp_err"; then
25774   ac_header_preproc=yes
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779   ac_header_preproc=no
25780 fi
25781 rm -f conftest.err conftest.$ac_ext
25782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25783 echo "${ECHO_T}$ac_header_preproc" >&6
25784
25785 # So?  What about this header?
25786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25787   yes:no: )
25788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25792     ac_header_preproc=yes
25793     ;;
25794   no:yes:* )
25795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25807     (
25808       cat <<\_ASBOX
25809 ## --------------------------------------------- ##
25810 ## Report this to <http://www.openldap.org/its/> ##
25811 ## --------------------------------------------- ##
25812 _ASBOX
25813     ) |
25814       sed "s/^/$as_me: WARNING:     /" >&2
25815     ;;
25816 esac
25817 echo "$as_me:$LINENO: checking for $ac_header" >&5
25818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25820   echo $ECHO_N "(cached) $ECHO_C" >&6
25821 else
25822   eval "$as_ac_Header=\$ac_header_preproc"
25823 fi
25824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25826
25827 fi
25828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25829   cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25831 _ACEOF
25832
25833 fi
25834
25835 done
25836
25837         if test $ac_cv_header_thread_h = yes &&
25838            test $ac_cv_header_synch_h = yes ; then
25839                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25840 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25841 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25842   echo $ECHO_N "(cached) $ECHO_C" >&6
25843 else
25844   ac_check_lib_save_LIBS=$LIBS
25845 LIBS="-lthread  $LIBS"
25846 cat >conftest.$ac_ext <<_ACEOF
25847 /* confdefs.h.  */
25848 _ACEOF
25849 cat confdefs.h >>conftest.$ac_ext
25850 cat >>conftest.$ac_ext <<_ACEOF
25851 /* end confdefs.h.  */
25852
25853 /* Override any gcc2 internal prototype to avoid an error.  */
25854 #ifdef __cplusplus
25855 extern "C"
25856 #endif
25857 /* We use char because int might match the return type of a gcc2
25858    builtin and then its argument prototype would still apply.  */
25859 char thr_create ();
25860 int
25861 main ()
25862 {
25863 thr_create ();
25864   ;
25865   return 0;
25866 }
25867 _ACEOF
25868 rm -f conftest.$ac_objext conftest$ac_exeext
25869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25870   (eval $ac_link) 2>conftest.er1
25871   ac_status=$?
25872   grep -v '^ *+' conftest.er1 >conftest.err
25873   rm -f conftest.er1
25874   cat conftest.err >&5
25875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876   (exit $ac_status); } &&
25877          { ac_try='test -z "$ac_c_werror_flag"
25878                          || test ! -s conftest.err'
25879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880   (eval $ac_try) 2>&5
25881   ac_status=$?
25882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883   (exit $ac_status); }; } &&
25884          { ac_try='test -s conftest$ac_exeext'
25885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886   (eval $ac_try) 2>&5
25887   ac_status=$?
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); }; }; then
25890   ac_cv_lib_thread_thr_create=yes
25891 else
25892   echo "$as_me: failed program was:" >&5
25893 sed 's/^/| /' conftest.$ac_ext >&5
25894
25895 ac_cv_lib_thread_thr_create=no
25896 fi
25897 rm -f conftest.err conftest.$ac_objext \
25898       conftest$ac_exeext conftest.$ac_ext
25899 LIBS=$ac_check_lib_save_LIBS
25900 fi
25901 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25902 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25903 if test $ac_cv_lib_thread_thr_create = yes; then
25904   have_thr=yes
25905 else
25906   have_thr=no
25907 fi
25908
25909
25910                 if test $have_thr = yes ; then
25911
25912 cat >>confdefs.h <<\_ACEOF
25913 #define HAVE_THR 1
25914 _ACEOF
25915
25916                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25917                         ol_link_threads=thr
25918
25919                         if test $ol_with_yielding_select = auto ; then
25920                                 ol_with_yielding_select=yes
25921                         fi
25922
25923
25924
25925 for ac_func in \
25926                                 thr_setconcurrency \
25927                                 thr_getconcurrency \
25928
25929 do
25930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25931 echo "$as_me:$LINENO: checking for $ac_func" >&5
25932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25933 if eval "test \"\${$as_ac_var+set}\" = set"; then
25934   echo $ECHO_N "(cached) $ECHO_C" >&6
25935 else
25936   cat >conftest.$ac_ext <<_ACEOF
25937 /* confdefs.h.  */
25938 _ACEOF
25939 cat confdefs.h >>conftest.$ac_ext
25940 cat >>conftest.$ac_ext <<_ACEOF
25941 /* end confdefs.h.  */
25942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25944 #define $ac_func innocuous_$ac_func
25945
25946 /* System header to define __stub macros and hopefully few prototypes,
25947     which can conflict with char $ac_func (); below.
25948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25949     <limits.h> exists even on freestanding compilers.  */
25950
25951 #ifdef __STDC__
25952 # include <limits.h>
25953 #else
25954 # include <assert.h>
25955 #endif
25956
25957 #undef $ac_func
25958
25959 /* Override any gcc2 internal prototype to avoid an error.  */
25960 #ifdef __cplusplus
25961 extern "C"
25962 {
25963 #endif
25964 /* We use char because int might match the return type of a gcc2
25965    builtin and then its argument prototype would still apply.  */
25966 char $ac_func ();
25967 /* The GNU C library defines this for functions which it implements
25968     to always fail with ENOSYS.  Some functions are actually named
25969     something starting with __ and the normal name is an alias.  */
25970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25971 choke me
25972 #else
25973 char (*f) () = $ac_func;
25974 #endif
25975 #ifdef __cplusplus
25976 }
25977 #endif
25978
25979 int
25980 main ()
25981 {
25982 return f != $ac_func;
25983   ;
25984   return 0;
25985 }
25986 _ACEOF
25987 rm -f conftest.$ac_objext conftest$ac_exeext
25988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25989   (eval $ac_link) 2>conftest.er1
25990   ac_status=$?
25991   grep -v '^ *+' conftest.er1 >conftest.err
25992   rm -f conftest.er1
25993   cat conftest.err >&5
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); } &&
25996          { ac_try='test -z "$ac_c_werror_flag"
25997                          || test ! -s conftest.err'
25998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999   (eval $ac_try) 2>&5
26000   ac_status=$?
26001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002   (exit $ac_status); }; } &&
26003          { ac_try='test -s conftest$ac_exeext'
26004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005   (eval $ac_try) 2>&5
26006   ac_status=$?
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); }; }; then
26009   eval "$as_ac_var=yes"
26010 else
26011   echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26013
26014 eval "$as_ac_var=no"
26015 fi
26016 rm -f conftest.err conftest.$ac_objext \
26017       conftest$ac_exeext conftest.$ac_ext
26018 fi
26019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26021 if test `eval echo '${'$as_ac_var'}'` = yes; then
26022   cat >>confdefs.h <<_ACEOF
26023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26024 _ACEOF
26025
26026 fi
26027 done
26028
26029                 fi
26030         fi
26031
26032
26033 for ac_header in lwp/lwp.h
26034 do
26035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26037   echo "$as_me:$LINENO: checking for $ac_header" >&5
26038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26040   echo $ECHO_N "(cached) $ECHO_C" >&6
26041 fi
26042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26044 else
26045   # Is the header compilable?
26046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26048 cat >conftest.$ac_ext <<_ACEOF
26049 /* confdefs.h.  */
26050 _ACEOF
26051 cat confdefs.h >>conftest.$ac_ext
26052 cat >>conftest.$ac_ext <<_ACEOF
26053 /* end confdefs.h.  */
26054 $ac_includes_default
26055 #include <$ac_header>
26056 _ACEOF
26057 rm -f conftest.$ac_objext
26058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26059   (eval $ac_compile) 2>conftest.er1
26060   ac_status=$?
26061   grep -v '^ *+' conftest.er1 >conftest.err
26062   rm -f conftest.er1
26063   cat conftest.err >&5
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); } &&
26066          { ac_try='test -z "$ac_c_werror_flag"
26067                          || test ! -s conftest.err'
26068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069   (eval $ac_try) 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; } &&
26073          { ac_try='test -s conftest.$ac_objext'
26074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075   (eval $ac_try) 2>&5
26076   ac_status=$?
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); }; }; then
26079   ac_header_compiler=yes
26080 else
26081   echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084 ac_header_compiler=no
26085 fi
26086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26088 echo "${ECHO_T}$ac_header_compiler" >&6
26089
26090 # Is the header present?
26091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26093 cat >conftest.$ac_ext <<_ACEOF
26094 /* confdefs.h.  */
26095 _ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h.  */
26099 #include <$ac_header>
26100 _ACEOF
26101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26103   ac_status=$?
26104   grep -v '^ *+' conftest.er1 >conftest.err
26105   rm -f conftest.er1
26106   cat conftest.err >&5
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); } >/dev/null; then
26109   if test -s conftest.err; then
26110     ac_cpp_err=$ac_c_preproc_warn_flag
26111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26112   else
26113     ac_cpp_err=
26114   fi
26115 else
26116   ac_cpp_err=yes
26117 fi
26118 if test -z "$ac_cpp_err"; then
26119   ac_header_preproc=yes
26120 else
26121   echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124   ac_header_preproc=no
26125 fi
26126 rm -f conftest.err conftest.$ac_ext
26127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26128 echo "${ECHO_T}$ac_header_preproc" >&6
26129
26130 # So?  What about this header?
26131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26132   yes:no: )
26133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26137     ac_header_preproc=yes
26138     ;;
26139   no:yes:* )
26140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26152     (
26153       cat <<\_ASBOX
26154 ## --------------------------------------------- ##
26155 ## Report this to <http://www.openldap.org/its/> ##
26156 ## --------------------------------------------- ##
26157 _ASBOX
26158     ) |
26159       sed "s/^/$as_me: WARNING:     /" >&2
26160     ;;
26161 esac
26162 echo "$as_me:$LINENO: checking for $ac_header" >&5
26163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26165   echo $ECHO_N "(cached) $ECHO_C" >&6
26166 else
26167   eval "$as_ac_Header=\$ac_header_preproc"
26168 fi
26169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26171
26172 fi
26173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26174   cat >>confdefs.h <<_ACEOF
26175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26176 _ACEOF
26177
26178 fi
26179
26180 done
26181
26182         if test $ac_cv_header_lwp_lwp_h = yes ; then
26183                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26184 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26185 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26186   echo $ECHO_N "(cached) $ECHO_C" >&6
26187 else
26188   ac_check_lib_save_LIBS=$LIBS
26189 LIBS="-llwp  $LIBS"
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196
26197 /* Override any gcc2 internal prototype to avoid an error.  */
26198 #ifdef __cplusplus
26199 extern "C"
26200 #endif
26201 /* We use char because int might match the return type of a gcc2
26202    builtin and then its argument prototype would still apply.  */
26203 char lwp_create ();
26204 int
26205 main ()
26206 {
26207 lwp_create ();
26208   ;
26209   return 0;
26210 }
26211 _ACEOF
26212 rm -f conftest.$ac_objext conftest$ac_exeext
26213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26214   (eval $ac_link) 2>conftest.er1
26215   ac_status=$?
26216   grep -v '^ *+' conftest.er1 >conftest.err
26217   rm -f conftest.er1
26218   cat conftest.err >&5
26219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220   (exit $ac_status); } &&
26221          { ac_try='test -z "$ac_c_werror_flag"
26222                          || test ! -s conftest.err'
26223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224   (eval $ac_try) 2>&5
26225   ac_status=$?
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); }; } &&
26228          { ac_try='test -s conftest$ac_exeext'
26229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26230   (eval $ac_try) 2>&5
26231   ac_status=$?
26232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233   (exit $ac_status); }; }; then
26234   ac_cv_lib_lwp_lwp_create=yes
26235 else
26236   echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26238
26239 ac_cv_lib_lwp_lwp_create=no
26240 fi
26241 rm -f conftest.err conftest.$ac_objext \
26242       conftest$ac_exeext conftest.$ac_ext
26243 LIBS=$ac_check_lib_save_LIBS
26244 fi
26245 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26246 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26247 if test $ac_cv_lib_lwp_lwp_create = yes; then
26248   have_lwp=yes
26249 else
26250   have_lwp=no
26251 fi
26252
26253
26254                 if test $have_lwp = yes ; then
26255
26256 cat >>confdefs.h <<\_ACEOF
26257 #define HAVE_LWP 1
26258 _ACEOF
26259
26260                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26261                         ol_link_threads=lwp
26262
26263                         if test $ol_with_yielding_select = auto ; then
26264                                 ol_with_yielding_select=no
26265                         fi
26266                 fi
26267         fi
26268         ;;
26269 esac
26270
26271 if test $ol_with_yielding_select = yes ; then
26272
26273 cat >>confdefs.h <<\_ACEOF
26274 #define HAVE_YIELDING_SELECT 1
26275 _ACEOF
26276
26277 fi
26278
26279 if test $ol_with_threads = manual ; then
26280                 ol_link_threads=yes
26281
26282         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26283 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26284
26285
26286
26287 for ac_header in pthread.h sched.h
26288 do
26289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26291   echo "$as_me:$LINENO: checking for $ac_header" >&5
26292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26294   echo $ECHO_N "(cached) $ECHO_C" >&6
26295 fi
26296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26298 else
26299   # Is the header compilable?
26300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308 $ac_includes_default
26309 #include <$ac_header>
26310 _ACEOF
26311 rm -f conftest.$ac_objext
26312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26313   (eval $ac_compile) 2>conftest.er1
26314   ac_status=$?
26315   grep -v '^ *+' conftest.er1 >conftest.err
26316   rm -f conftest.er1
26317   cat conftest.err >&5
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); } &&
26320          { ac_try='test -z "$ac_c_werror_flag"
26321                          || test ! -s conftest.err'
26322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26323   (eval $ac_try) 2>&5
26324   ac_status=$?
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); }; } &&
26327          { ac_try='test -s conftest.$ac_objext'
26328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329   (eval $ac_try) 2>&5
26330   ac_status=$?
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); }; }; then
26333   ac_header_compiler=yes
26334 else
26335   echo "$as_me: failed program was:" >&5
26336 sed 's/^/| /' conftest.$ac_ext >&5
26337
26338 ac_header_compiler=no
26339 fi
26340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26342 echo "${ECHO_T}$ac_header_compiler" >&6
26343
26344 # Is the header present?
26345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26347 cat >conftest.$ac_ext <<_ACEOF
26348 /* confdefs.h.  */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h.  */
26353 #include <$ac_header>
26354 _ACEOF
26355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26357   ac_status=$?
26358   grep -v '^ *+' conftest.er1 >conftest.err
26359   rm -f conftest.er1
26360   cat conftest.err >&5
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); } >/dev/null; then
26363   if test -s conftest.err; then
26364     ac_cpp_err=$ac_c_preproc_warn_flag
26365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26366   else
26367     ac_cpp_err=
26368   fi
26369 else
26370   ac_cpp_err=yes
26371 fi
26372 if test -z "$ac_cpp_err"; then
26373   ac_header_preproc=yes
26374 else
26375   echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26377
26378   ac_header_preproc=no
26379 fi
26380 rm -f conftest.err conftest.$ac_ext
26381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26382 echo "${ECHO_T}$ac_header_preproc" >&6
26383
26384 # So?  What about this header?
26385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26386   yes:no: )
26387     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26391     ac_header_preproc=yes
26392     ;;
26393   no:yes:* )
26394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26396     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26397 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26398     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26400     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26401 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26404     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26406     (
26407       cat <<\_ASBOX
26408 ## --------------------------------------------- ##
26409 ## Report this to <http://www.openldap.org/its/> ##
26410 ## --------------------------------------------- ##
26411 _ASBOX
26412     ) |
26413       sed "s/^/$as_me: WARNING:     /" >&2
26414     ;;
26415 esac
26416 echo "$as_me:$LINENO: checking for $ac_header" >&5
26417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26419   echo $ECHO_N "(cached) $ECHO_C" >&6
26420 else
26421   eval "$as_ac_Header=\$ac_header_preproc"
26422 fi
26423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26425
26426 fi
26427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26428   cat >>confdefs.h <<_ACEOF
26429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26430 _ACEOF
26431
26432 fi
26433
26434 done
26435
26436
26437
26438 for ac_func in sched_yield pthread_yield
26439 do
26440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26441 echo "$as_me:$LINENO: checking for $ac_func" >&5
26442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26443 if eval "test \"\${$as_ac_var+set}\" = set"; then
26444   echo $ECHO_N "(cached) $ECHO_C" >&6
26445 else
26446   cat >conftest.$ac_ext <<_ACEOF
26447 /* confdefs.h.  */
26448 _ACEOF
26449 cat confdefs.h >>conftest.$ac_ext
26450 cat >>conftest.$ac_ext <<_ACEOF
26451 /* end confdefs.h.  */
26452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26454 #define $ac_func innocuous_$ac_func
26455
26456 /* System header to define __stub macros and hopefully few prototypes,
26457     which can conflict with char $ac_func (); below.
26458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26459     <limits.h> exists even on freestanding compilers.  */
26460
26461 #ifdef __STDC__
26462 # include <limits.h>
26463 #else
26464 # include <assert.h>
26465 #endif
26466
26467 #undef $ac_func
26468
26469 /* Override any gcc2 internal prototype to avoid an error.  */
26470 #ifdef __cplusplus
26471 extern "C"
26472 {
26473 #endif
26474 /* We use char because int might match the return type of a gcc2
26475    builtin and then its argument prototype would still apply.  */
26476 char $ac_func ();
26477 /* The GNU C library defines this for functions which it implements
26478     to always fail with ENOSYS.  Some functions are actually named
26479     something starting with __ and the normal name is an alias.  */
26480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26481 choke me
26482 #else
26483 char (*f) () = $ac_func;
26484 #endif
26485 #ifdef __cplusplus
26486 }
26487 #endif
26488
26489 int
26490 main ()
26491 {
26492 return f != $ac_func;
26493   ;
26494   return 0;
26495 }
26496 _ACEOF
26497 rm -f conftest.$ac_objext conftest$ac_exeext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26499   (eval $ac_link) 2>conftest.er1
26500   ac_status=$?
26501   grep -v '^ *+' conftest.er1 >conftest.err
26502   rm -f conftest.er1
26503   cat conftest.err >&5
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); } &&
26506          { ac_try='test -z "$ac_c_werror_flag"
26507                          || test ! -s conftest.err'
26508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509   (eval $ac_try) 2>&5
26510   ac_status=$?
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); }; } &&
26513          { ac_try='test -s conftest$ac_exeext'
26514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515   (eval $ac_try) 2>&5
26516   ac_status=$?
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); }; }; then
26519   eval "$as_ac_var=yes"
26520 else
26521   echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26523
26524 eval "$as_ac_var=no"
26525 fi
26526 rm -f conftest.err conftest.$ac_objext \
26527       conftest$ac_exeext conftest.$ac_ext
26528 fi
26529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26531 if test `eval echo '${'$as_ac_var'}'` = yes; then
26532   cat >>confdefs.h <<_ACEOF
26533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26534 _ACEOF
26535
26536 fi
26537 done
26538
26539
26540         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26541 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26542 if test "${ol_cv_header_linux_threads+set}" = set; then
26543   echo $ECHO_N "(cached) $ECHO_C" >&6
26544 else
26545   cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h.  */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h.  */
26551 #include <pthread.h>
26552 _ACEOF
26553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26554   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26555   ol_cv_header_linux_threads=yes
26556 else
26557   ol_cv_header_linux_threads=no
26558 fi
26559 rm -f conftest*
26560
26561
26562 fi
26563 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26564 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26565         if test $ol_cv_header_linux_threads = yes; then
26566
26567 cat >>confdefs.h <<\_ACEOF
26568 #define HAVE_LINUX_THREADS 1
26569 _ACEOF
26570
26571         fi
26572
26573
26574
26575 for ac_header in mach/cthreads.h
26576 do
26577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26579   echo "$as_me:$LINENO: checking for $ac_header" >&5
26580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26582   echo $ECHO_N "(cached) $ECHO_C" >&6
26583 fi
26584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26586 else
26587   # Is the header compilable?
26588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596 $ac_includes_default
26597 #include <$ac_header>
26598 _ACEOF
26599 rm -f conftest.$ac_objext
26600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26601   (eval $ac_compile) 2>conftest.er1
26602   ac_status=$?
26603   grep -v '^ *+' conftest.er1 >conftest.err
26604   rm -f conftest.er1
26605   cat conftest.err >&5
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); } &&
26608          { ac_try='test -z "$ac_c_werror_flag"
26609                          || test ! -s conftest.err'
26610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611   (eval $ac_try) 2>&5
26612   ac_status=$?
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); }; } &&
26615          { ac_try='test -s conftest.$ac_objext'
26616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617   (eval $ac_try) 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); }; }; then
26621   ac_header_compiler=yes
26622 else
26623   echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26625
26626 ac_header_compiler=no
26627 fi
26628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26630 echo "${ECHO_T}$ac_header_compiler" >&6
26631
26632 # Is the header present?
26633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26635 cat >conftest.$ac_ext <<_ACEOF
26636 /* confdefs.h.  */
26637 _ACEOF
26638 cat confdefs.h >>conftest.$ac_ext
26639 cat >>conftest.$ac_ext <<_ACEOF
26640 /* end confdefs.h.  */
26641 #include <$ac_header>
26642 _ACEOF
26643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26645   ac_status=$?
26646   grep -v '^ *+' conftest.er1 >conftest.err
26647   rm -f conftest.er1
26648   cat conftest.err >&5
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); } >/dev/null; then
26651   if test -s conftest.err; then
26652     ac_cpp_err=$ac_c_preproc_warn_flag
26653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26654   else
26655     ac_cpp_err=
26656   fi
26657 else
26658   ac_cpp_err=yes
26659 fi
26660 if test -z "$ac_cpp_err"; then
26661   ac_header_preproc=yes
26662 else
26663   echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26665
26666   ac_header_preproc=no
26667 fi
26668 rm -f conftest.err conftest.$ac_ext
26669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26670 echo "${ECHO_T}$ac_header_preproc" >&6
26671
26672 # So?  What about this header?
26673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26674   yes:no: )
26675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26679     ac_header_preproc=yes
26680     ;;
26681   no:yes:* )
26682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26694     (
26695       cat <<\_ASBOX
26696 ## --------------------------------------------- ##
26697 ## Report this to <http://www.openldap.org/its/> ##
26698 ## --------------------------------------------- ##
26699 _ASBOX
26700     ) |
26701       sed "s/^/$as_me: WARNING:     /" >&2
26702     ;;
26703 esac
26704 echo "$as_me:$LINENO: checking for $ac_header" >&5
26705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26707   echo $ECHO_N "(cached) $ECHO_C" >&6
26708 else
26709   eval "$as_ac_Header=\$ac_header_preproc"
26710 fi
26711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26713
26714 fi
26715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26716   cat >>confdefs.h <<_ACEOF
26717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26718 _ACEOF
26719
26720 fi
26721
26722 done
26723
26724
26725 for ac_header in lwp/lwp.h
26726 do
26727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26729   echo "$as_me:$LINENO: checking for $ac_header" >&5
26730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26732   echo $ECHO_N "(cached) $ECHO_C" >&6
26733 fi
26734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26736 else
26737   # Is the header compilable?
26738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26740 cat >conftest.$ac_ext <<_ACEOF
26741 /* confdefs.h.  */
26742 _ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h.  */
26746 $ac_includes_default
26747 #include <$ac_header>
26748 _ACEOF
26749 rm -f conftest.$ac_objext
26750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26751   (eval $ac_compile) 2>conftest.er1
26752   ac_status=$?
26753   grep -v '^ *+' conftest.er1 >conftest.err
26754   rm -f conftest.er1
26755   cat conftest.err >&5
26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757   (exit $ac_status); } &&
26758          { ac_try='test -z "$ac_c_werror_flag"
26759                          || test ! -s conftest.err'
26760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26761   (eval $ac_try) 2>&5
26762   ac_status=$?
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); }; } &&
26765          { ac_try='test -s conftest.$ac_objext'
26766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767   (eval $ac_try) 2>&5
26768   ac_status=$?
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); }; }; then
26771   ac_header_compiler=yes
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776 ac_header_compiler=no
26777 fi
26778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26780 echo "${ECHO_T}$ac_header_compiler" >&6
26781
26782 # Is the header present?
26783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26785 cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791 #include <$ac_header>
26792 _ACEOF
26793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26795   ac_status=$?
26796   grep -v '^ *+' conftest.er1 >conftest.err
26797   rm -f conftest.er1
26798   cat conftest.err >&5
26799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800   (exit $ac_status); } >/dev/null; then
26801   if test -s conftest.err; then
26802     ac_cpp_err=$ac_c_preproc_warn_flag
26803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26804   else
26805     ac_cpp_err=
26806   fi
26807 else
26808   ac_cpp_err=yes
26809 fi
26810 if test -z "$ac_cpp_err"; then
26811   ac_header_preproc=yes
26812 else
26813   echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26815
26816   ac_header_preproc=no
26817 fi
26818 rm -f conftest.err conftest.$ac_ext
26819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26820 echo "${ECHO_T}$ac_header_preproc" >&6
26821
26822 # So?  What about this header?
26823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26824   yes:no: )
26825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26829     ac_header_preproc=yes
26830     ;;
26831   no:yes:* )
26832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26844     (
26845       cat <<\_ASBOX
26846 ## --------------------------------------------- ##
26847 ## Report this to <http://www.openldap.org/its/> ##
26848 ## --------------------------------------------- ##
26849 _ASBOX
26850     ) |
26851       sed "s/^/$as_me: WARNING:     /" >&2
26852     ;;
26853 esac
26854 echo "$as_me:$LINENO: checking for $ac_header" >&5
26855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26857   echo $ECHO_N "(cached) $ECHO_C" >&6
26858 else
26859   eval "$as_ac_Header=\$ac_header_preproc"
26860 fi
26861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26863
26864 fi
26865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26866   cat >>confdefs.h <<_ACEOF
26867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26868 _ACEOF
26869
26870 fi
26871
26872 done
26873
26874
26875
26876 for ac_header in thread.h synch.h
26877 do
26878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26880   echo "$as_me:$LINENO: checking for $ac_header" >&5
26881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 fi
26885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26887 else
26888   # Is the header compilable?
26889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26891 cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 $ac_includes_default
26898 #include <$ac_header>
26899 _ACEOF
26900 rm -f conftest.$ac_objext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26902   (eval $ac_compile) 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } &&
26909          { ac_try='test -z "$ac_c_werror_flag"
26910                          || test ! -s conftest.err'
26911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912   (eval $ac_try) 2>&5
26913   ac_status=$?
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); }; } &&
26916          { ac_try='test -s conftest.$ac_objext'
26917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918   (eval $ac_try) 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; }; then
26922   ac_header_compiler=yes
26923 else
26924   echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26926
26927 ac_header_compiler=no
26928 fi
26929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26931 echo "${ECHO_T}$ac_header_compiler" >&6
26932
26933 # Is the header present?
26934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26937 /* confdefs.h.  */
26938 _ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h.  */
26942 #include <$ac_header>
26943 _ACEOF
26944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } >/dev/null; then
26952   if test -s conftest.err; then
26953     ac_cpp_err=$ac_c_preproc_warn_flag
26954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26955   else
26956     ac_cpp_err=
26957   fi
26958 else
26959   ac_cpp_err=yes
26960 fi
26961 if test -z "$ac_cpp_err"; then
26962   ac_header_preproc=yes
26963 else
26964   echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.$ac_ext >&5
26966
26967   ac_header_preproc=no
26968 fi
26969 rm -f conftest.err conftest.$ac_ext
26970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26971 echo "${ECHO_T}$ac_header_preproc" >&6
26972
26973 # So?  What about this header?
26974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26975   yes:no: )
26976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26980     ac_header_preproc=yes
26981     ;;
26982   no:yes:* )
26983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26995     (
26996       cat <<\_ASBOX
26997 ## --------------------------------------------- ##
26998 ## Report this to <http://www.openldap.org/its/> ##
26999 ## --------------------------------------------- ##
27000 _ASBOX
27001     ) |
27002       sed "s/^/$as_me: WARNING:     /" >&2
27003     ;;
27004 esac
27005 echo "$as_me:$LINENO: checking for $ac_header" >&5
27006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27008   echo $ECHO_N "(cached) $ECHO_C" >&6
27009 else
27010   eval "$as_ac_Header=\$ac_header_preproc"
27011 fi
27012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27014
27015 fi
27016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27017   cat >>confdefs.h <<_ACEOF
27018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27019 _ACEOF
27020
27021 fi
27022
27023 done
27024
27025 fi
27026
27027 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27028                         cat >>confdefs.h <<\_ACEOF
27029 #define REENTRANT 1
27030 _ACEOF
27031
27032         cat >>confdefs.h <<\_ACEOF
27033 #define _REENTRANT 1
27034 _ACEOF
27035
27036         cat >>confdefs.h <<\_ACEOF
27037 #define THREAD_SAFE 1
27038 _ACEOF
27039
27040         cat >>confdefs.h <<\_ACEOF
27041 #define _THREAD_SAFE 1
27042 _ACEOF
27043
27044         cat >>confdefs.h <<\_ACEOF
27045 #define THREADSAFE 1
27046 _ACEOF
27047
27048         cat >>confdefs.h <<\_ACEOF
27049 #define _THREADSAFE 1
27050 _ACEOF
27051
27052         cat >>confdefs.h <<\_ACEOF
27053 #define _SGI_MP_SOURCE 1
27054 _ACEOF
27055
27056
27057                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27058 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27059 if test "${ol_cv_errno_thread_specific+set}" = set; then
27060   echo $ECHO_N "(cached) $ECHO_C" >&6
27061 else
27062
27063                 cat >conftest.$ac_ext <<_ACEOF
27064 /* confdefs.h.  */
27065 _ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h.  */
27069 #include <errno.h>
27070 int
27071 main ()
27072 {
27073 errno = 0;
27074   ;
27075   return 0;
27076 }
27077 _ACEOF
27078 rm -f conftest.$ac_objext conftest$ac_exeext
27079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27080   (eval $ac_link) 2>conftest.er1
27081   ac_status=$?
27082   grep -v '^ *+' conftest.er1 >conftest.err
27083   rm -f conftest.er1
27084   cat conftest.err >&5
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); } &&
27087          { ac_try='test -z "$ac_c_werror_flag"
27088                          || test ! -s conftest.err'
27089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090   (eval $ac_try) 2>&5
27091   ac_status=$?
27092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093   (exit $ac_status); }; } &&
27094          { ac_try='test -s conftest$ac_exeext'
27095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096   (eval $ac_try) 2>&5
27097   ac_status=$?
27098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099   (exit $ac_status); }; }; then
27100   ol_cv_errno_thread_specific=yes
27101 else
27102   echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27104
27105 ol_cv_errno_thread_specific=no
27106 fi
27107 rm -f conftest.err conftest.$ac_objext \
27108       conftest$ac_exeext conftest.$ac_ext
27109
27110 fi
27111 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27112 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27113
27114                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27115 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27116 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27117   echo $ECHO_N "(cached) $ECHO_C" >&6
27118 else
27119
27120                 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126 #include <netdb.h>
27127 int
27128 main ()
27129 {
27130 h_errno = 0;
27131   ;
27132   return 0;
27133 }
27134 _ACEOF
27135 rm -f conftest.$ac_objext conftest$ac_exeext
27136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27137   (eval $ac_link) 2>conftest.er1
27138   ac_status=$?
27139   grep -v '^ *+' conftest.er1 >conftest.err
27140   rm -f conftest.er1
27141   cat conftest.err >&5
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); } &&
27144          { ac_try='test -z "$ac_c_werror_flag"
27145                          || test ! -s conftest.err'
27146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147   (eval $ac_try) 2>&5
27148   ac_status=$?
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); }; } &&
27151          { ac_try='test -s conftest$ac_exeext'
27152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153   (eval $ac_try) 2>&5
27154   ac_status=$?
27155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156   (exit $ac_status); }; }; then
27157   ol_cv_h_errno_thread_specific=yes
27158 else
27159   echo "$as_me: failed program was:" >&5
27160 sed 's/^/| /' conftest.$ac_ext >&5
27161
27162 ol_cv_h_errno_thread_specific=no
27163 fi
27164 rm -f conftest.err conftest.$ac_objext \
27165       conftest$ac_exeext conftest.$ac_ext
27166
27167 fi
27168 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27169 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27170
27171         if test $ol_cv_errno_thread_specific != yes ||
27172            test $ol_cv_h_errno_thread_specific != yes ; then
27173                 LIBS="$LTHREAD_LIBS $LIBS"
27174                 LTHREAD_LIBS=""
27175         fi
27176
27177 fi
27178
27179 if test $ol_link_threads = no ; then
27180         if test $ol_with_threads = yes ; then
27181                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27182 echo "$as_me: error: no suitable thread support" >&2;}
27183    { (exit 1); exit 1; }; }
27184         fi
27185
27186         if test $ol_with_threads = auto ; then
27187                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27188 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27189                 ol_with_threads=no
27190         fi
27191
27192
27193 cat >>confdefs.h <<\_ACEOF
27194 #define NO_THREADS 1
27195 _ACEOF
27196
27197         LTHREAD_LIBS=""
27198         BUILD_THREAD=no
27199 else
27200         BUILD_THREAD=yes
27201 fi
27202
27203 if test $ol_link_threads != no ; then
27204
27205 cat >>confdefs.h <<\_ACEOF
27206 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27207 _ACEOF
27208
27209 fi
27210
27211
27212
27213
27214 for ac_func in \
27215         ctime_r                 \
27216         gethostbyname_r gethostbyaddr_r \
27217
27218 do
27219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27220 echo "$as_me:$LINENO: checking for $ac_func" >&5
27221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27222 if eval "test \"\${$as_ac_var+set}\" = set"; then
27223   echo $ECHO_N "(cached) $ECHO_C" >&6
27224 else
27225   cat >conftest.$ac_ext <<_ACEOF
27226 /* confdefs.h.  */
27227 _ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h.  */
27231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27233 #define $ac_func innocuous_$ac_func
27234
27235 /* System header to define __stub macros and hopefully few prototypes,
27236     which can conflict with char $ac_func (); below.
27237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27238     <limits.h> exists even on freestanding compilers.  */
27239
27240 #ifdef __STDC__
27241 # include <limits.h>
27242 #else
27243 # include <assert.h>
27244 #endif
27245
27246 #undef $ac_func
27247
27248 /* Override any gcc2 internal prototype to avoid an error.  */
27249 #ifdef __cplusplus
27250 extern "C"
27251 {
27252 #endif
27253 /* We use char because int might match the return type of a gcc2
27254    builtin and then its argument prototype would still apply.  */
27255 char $ac_func ();
27256 /* The GNU C library defines this for functions which it implements
27257     to always fail with ENOSYS.  Some functions are actually named
27258     something starting with __ and the normal name is an alias.  */
27259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27260 choke me
27261 #else
27262 char (*f) () = $ac_func;
27263 #endif
27264 #ifdef __cplusplus
27265 }
27266 #endif
27267
27268 int
27269 main ()
27270 {
27271 return f != $ac_func;
27272   ;
27273   return 0;
27274 }
27275 _ACEOF
27276 rm -f conftest.$ac_objext conftest$ac_exeext
27277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27278   (eval $ac_link) 2>conftest.er1
27279   ac_status=$?
27280   grep -v '^ *+' conftest.er1 >conftest.err
27281   rm -f conftest.er1
27282   cat conftest.err >&5
27283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284   (exit $ac_status); } &&
27285          { ac_try='test -z "$ac_c_werror_flag"
27286                          || test ! -s conftest.err'
27287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27288   (eval $ac_try) 2>&5
27289   ac_status=$?
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); }; } &&
27292          { ac_try='test -s conftest$ac_exeext'
27293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294   (eval $ac_try) 2>&5
27295   ac_status=$?
27296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297   (exit $ac_status); }; }; then
27298   eval "$as_ac_var=yes"
27299 else
27300   echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27302
27303 eval "$as_ac_var=no"
27304 fi
27305 rm -f conftest.err conftest.$ac_objext \
27306       conftest$ac_exeext conftest.$ac_ext
27307 fi
27308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27310 if test `eval echo '${'$as_ac_var'}'` = yes; then
27311   cat >>confdefs.h <<_ACEOF
27312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27313 _ACEOF
27314
27315 fi
27316 done
27317
27318
27319 if test "$ac_cv_func_ctime_r" = no ; then
27320         ol_cv_func_ctime_r_nargs=0
27321 else
27322         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27323 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27324 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27325   echo $ECHO_N "(cached) $ECHO_C" >&6
27326 else
27327   cat >conftest.$ac_ext <<_ACEOF
27328 /* confdefs.h.  */
27329 _ACEOF
27330 cat confdefs.h >>conftest.$ac_ext
27331 cat >>conftest.$ac_ext <<_ACEOF
27332 /* end confdefs.h.  */
27333 #include <time.h>
27334 int
27335 main ()
27336 {
27337 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27338   ;
27339   return 0;
27340 }
27341 _ACEOF
27342 rm -f conftest.$ac_objext
27343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27344   (eval $ac_compile) 2>conftest.er1
27345   ac_status=$?
27346   grep -v '^ *+' conftest.er1 >conftest.err
27347   rm -f conftest.er1
27348   cat conftest.err >&5
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); } &&
27351          { ac_try='test -z "$ac_c_werror_flag"
27352                          || test ! -s conftest.err'
27353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354   (eval $ac_try) 2>&5
27355   ac_status=$?
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); }; } &&
27358          { ac_try='test -s conftest.$ac_objext'
27359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360   (eval $ac_try) 2>&5
27361   ac_status=$?
27362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); }; }; then
27364   ol_cv_func_ctime_r_nargs3=yes
27365 else
27366   echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27368
27369 ol_cv_func_ctime_r_nargs3=no
27370 fi
27371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27372
27373         cat >conftest.$ac_ext <<_ACEOF
27374 /* confdefs.h.  */
27375 _ACEOF
27376 cat confdefs.h >>conftest.$ac_ext
27377 cat >>conftest.$ac_ext <<_ACEOF
27378 /* end confdefs.h.  */
27379 #include <time.h>
27380 int
27381 main ()
27382 {
27383 time_t ti; char *buffer; ctime_r(&ti,buffer);
27384   ;
27385   return 0;
27386 }
27387 _ACEOF
27388 rm -f conftest.$ac_objext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27390   (eval $ac_compile) 2>conftest.er1
27391   ac_status=$?
27392   grep -v '^ *+' conftest.er1 >conftest.err
27393   rm -f conftest.er1
27394   cat conftest.err >&5
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); } &&
27397          { ac_try='test -z "$ac_c_werror_flag"
27398                          || test ! -s conftest.err'
27399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400   (eval $ac_try) 2>&5
27401   ac_status=$?
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); }; } &&
27404          { ac_try='test -s conftest.$ac_objext'
27405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406   (eval $ac_try) 2>&5
27407   ac_status=$?
27408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409   (exit $ac_status); }; }; then
27410   ol_cv_func_ctime_r_nargs2=yes
27411 else
27412   echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27414
27415 ol_cv_func_ctime_r_nargs2=no
27416 fi
27417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27418
27419         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27420            test $ol_cv_func_ctime_r_nargs2 = no ; then
27421
27422                 ol_cv_func_ctime_r_nargs=3
27423
27424         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27425              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27426
27427                 ol_cv_func_ctime_r_nargs=2
27428
27429         else
27430                 ol_cv_func_ctime_r_nargs=0
27431         fi
27432
27433 fi
27434 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27435 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27436
27437   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27438
27439 cat >>confdefs.h <<_ACEOF
27440 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27441 _ACEOF
27442
27443   fi
27444
27445 fi
27446
27447 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27448         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27449 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27450 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27451   echo $ECHO_N "(cached) $ECHO_C" >&6
27452 else
27453   cat >conftest.$ac_ext <<_ACEOF
27454 /* confdefs.h.  */
27455 _ACEOF
27456 cat confdefs.h >>conftest.$ac_ext
27457 cat >>conftest.$ac_ext <<_ACEOF
27458 /* end confdefs.h.  */
27459 #include <sys/types.h>
27460 #include <sys/socket.h>
27461 #include <netinet/in.h>
27462 #include <netdb.h>
27463 #define BUFSIZE (sizeof(struct hostent)+10)
27464 int
27465 main ()
27466 {
27467 struct hostent hent; char buffer[BUFSIZE];
27468                 int bufsize=BUFSIZE;int h_errno;
27469                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27470                         buffer, bufsize, &h_errno);
27471   ;
27472   return 0;
27473 }
27474 _ACEOF
27475 rm -f conftest.$ac_objext
27476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27477   (eval $ac_compile) 2>conftest.er1
27478   ac_status=$?
27479   grep -v '^ *+' conftest.er1 >conftest.err
27480   rm -f conftest.er1
27481   cat conftest.err >&5
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); } &&
27484          { ac_try='test -z "$ac_c_werror_flag"
27485                          || test ! -s conftest.err'
27486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27487   (eval $ac_try) 2>&5
27488   ac_status=$?
27489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490   (exit $ac_status); }; } &&
27491          { ac_try='test -s conftest.$ac_objext'
27492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27493   (eval $ac_try) 2>&5
27494   ac_status=$?
27495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496   (exit $ac_status); }; }; then
27497   ol_cv_func_gethostbyname_r_nargs5=yes
27498 else
27499   echo "$as_me: failed program was:" >&5
27500 sed 's/^/| /' conftest.$ac_ext >&5
27501
27502 ol_cv_func_gethostbyname_r_nargs5=no
27503 fi
27504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27505
27506         cat >conftest.$ac_ext <<_ACEOF
27507 /* confdefs.h.  */
27508 _ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h.  */
27512 #include <sys/types.h>
27513 #include <sys/socket.h>
27514 #include <netinet/in.h>
27515 #include <netdb.h>
27516 #define BUFSIZE (sizeof(struct hostent)+10)
27517 int
27518 main ()
27519 {
27520 struct hostent hent;struct hostent *rhent;
27521                 char buffer[BUFSIZE];
27522                 int bufsize=BUFSIZE;int h_errno;
27523                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27524                         &rhent, &h_errno);
27525   ;
27526   return 0;
27527 }
27528 _ACEOF
27529 rm -f conftest.$ac_objext
27530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27531   (eval $ac_compile) 2>conftest.er1
27532   ac_status=$?
27533   grep -v '^ *+' conftest.er1 >conftest.err
27534   rm -f conftest.er1
27535   cat conftest.err >&5
27536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537   (exit $ac_status); } &&
27538          { ac_try='test -z "$ac_c_werror_flag"
27539                          || test ! -s conftest.err'
27540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27541   (eval $ac_try) 2>&5
27542   ac_status=$?
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); }; } &&
27545          { ac_try='test -s conftest.$ac_objext'
27546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547   (eval $ac_try) 2>&5
27548   ac_status=$?
27549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); }; }; then
27551   ol_cv_func_gethostbyname_r_nargs6=yes
27552 else
27553   echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27555
27556 ol_cv_func_gethostbyname_r_nargs6=no
27557 fi
27558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27559
27560         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27561            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27562
27563                 ol_cv_func_gethostbyname_r_nargs=5
27564
27565         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27566              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27567
27568                 ol_cv_func_gethostbyname_r_nargs=6
27569
27570         else
27571                 ol_cv_func_gethostbyname_r_nargs=0
27572         fi
27573
27574 fi
27575 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27576 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27577   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27578
27579 cat >>confdefs.h <<_ACEOF
27580 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27581 _ACEOF
27582
27583   fi
27584
27585 else
27586         ol_cv_func_gethostbyname_r_nargs=0
27587 fi
27588
27589 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27590         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27591 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27592 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27593   echo $ECHO_N "(cached) $ECHO_C" >&6
27594 else
27595   cat >conftest.$ac_ext <<_ACEOF
27596 /* confdefs.h.  */
27597 _ACEOF
27598 cat confdefs.h >>conftest.$ac_ext
27599 cat >>conftest.$ac_ext <<_ACEOF
27600 /* end confdefs.h.  */
27601 #include <sys/types.h>
27602 #include <sys/socket.h>
27603 #include <netinet/in.h>
27604 #include <netdb.h>
27605 #define BUFSIZE (sizeof(struct hostent)+10)
27606 int
27607 main ()
27608 {
27609 struct hostent hent; char buffer[BUFSIZE];
27610             struct in_addr add;
27611             size_t alen=sizeof(struct in_addr);
27612             int bufsize=BUFSIZE;int h_errno;
27613                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27614                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27615   ;
27616   return 0;
27617 }
27618 _ACEOF
27619 rm -f conftest.$ac_objext
27620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27621   (eval $ac_compile) 2>conftest.er1
27622   ac_status=$?
27623   grep -v '^ *+' conftest.er1 >conftest.err
27624   rm -f conftest.er1
27625   cat conftest.err >&5
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); } &&
27628          { ac_try='test -z "$ac_c_werror_flag"
27629                          || test ! -s conftest.err'
27630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631   (eval $ac_try) 2>&5
27632   ac_status=$?
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); }; } &&
27635          { ac_try='test -s conftest.$ac_objext'
27636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637   (eval $ac_try) 2>&5
27638   ac_status=$?
27639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640   (exit $ac_status); }; }; then
27641   ol_cv_func_gethostbyaddr_r_nargs7=yes
27642 else
27643   echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27645
27646 ol_cv_func_gethostbyaddr_r_nargs7=no
27647 fi
27648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27649
27650         cat >conftest.$ac_ext <<_ACEOF
27651 /* confdefs.h.  */
27652 _ACEOF
27653 cat confdefs.h >>conftest.$ac_ext
27654 cat >>conftest.$ac_ext <<_ACEOF
27655 /* end confdefs.h.  */
27656 #include <sys/types.h>
27657 #include <sys/socket.h>
27658 #include <netinet/in.h>
27659 #include <netdb.h>
27660 #define BUFSIZE (sizeof(struct hostent)+10)
27661 int
27662 main ()
27663 {
27664 struct hostent hent;
27665                 struct hostent *rhent; char buffer[BUFSIZE];
27666                 struct in_addr add;
27667                 size_t alen=sizeof(struct in_addr);
27668                 int bufsize=BUFSIZE;int h_errno;
27669                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27670                         alen, AF_INET, &hent, buffer, bufsize,
27671                         &rhent, &h_errno);
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 rm -f conftest.$ac_objext
27677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27678   (eval $ac_compile) 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } &&
27685          { ac_try='test -z "$ac_c_werror_flag"
27686                          || test ! -s conftest.err'
27687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; } &&
27692          { ac_try='test -s conftest.$ac_objext'
27693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694   (eval $ac_try) 2>&5
27695   ac_status=$?
27696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); }; }; then
27698   ol_cv_func_gethostbyaddr_r_nargs8=yes
27699 else
27700   echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 ol_cv_func_gethostbyaddr_r_nargs8=no
27704 fi
27705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27706
27707         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27708            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27709
27710                 ol_cv_func_gethostbyaddr_r_nargs=7
27711
27712         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27713              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27714
27715                 ol_cv_func_gethostbyaddr_r_nargs=8
27716
27717         else
27718                 ol_cv_func_gethostbyaddr_r_nargs=0
27719         fi
27720
27721 fi
27722 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27723 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27724   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27725
27726 cat >>confdefs.h <<_ACEOF
27727 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27728 _ACEOF
27729
27730   fi
27731
27732 else
27733         ol_cv_func_gethostbyaddr_r_nargs=0
27734 fi
27735
27736 ol_link_ldbm=no
27737
27738 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27739
27740         if test $ol_enable_ldbm_api = bcompat; then \
27741
27742
27743 for ac_header in db_185.h db.h
27744 do
27745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27747   echo "$as_me:$LINENO: checking for $ac_header" >&5
27748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27750   echo $ECHO_N "(cached) $ECHO_C" >&6
27751 fi
27752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27754 else
27755   # Is the header compilable?
27756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27758 cat >conftest.$ac_ext <<_ACEOF
27759 /* confdefs.h.  */
27760 _ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h.  */
27764 $ac_includes_default
27765 #include <$ac_header>
27766 _ACEOF
27767 rm -f conftest.$ac_objext
27768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27769   (eval $ac_compile) 2>conftest.er1
27770   ac_status=$?
27771   grep -v '^ *+' conftest.er1 >conftest.err
27772   rm -f conftest.er1
27773   cat conftest.err >&5
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); } &&
27776          { ac_try='test -z "$ac_c_werror_flag"
27777                          || test ! -s conftest.err'
27778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779   (eval $ac_try) 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; } &&
27783          { ac_try='test -s conftest.$ac_objext'
27784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785   (eval $ac_try) 2>&5
27786   ac_status=$?
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); }; }; then
27789   ac_header_compiler=yes
27790 else
27791   echo "$as_me: failed program was:" >&5
27792 sed 's/^/| /' conftest.$ac_ext >&5
27793
27794 ac_header_compiler=no
27795 fi
27796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27798 echo "${ECHO_T}$ac_header_compiler" >&6
27799
27800 # Is the header present?
27801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27803 cat >conftest.$ac_ext <<_ACEOF
27804 /* confdefs.h.  */
27805 _ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h.  */
27809 #include <$ac_header>
27810 _ACEOF
27811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27813   ac_status=$?
27814   grep -v '^ *+' conftest.er1 >conftest.err
27815   rm -f conftest.er1
27816   cat conftest.err >&5
27817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818   (exit $ac_status); } >/dev/null; then
27819   if test -s conftest.err; then
27820     ac_cpp_err=$ac_c_preproc_warn_flag
27821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27822   else
27823     ac_cpp_err=
27824   fi
27825 else
27826   ac_cpp_err=yes
27827 fi
27828 if test -z "$ac_cpp_err"; then
27829   ac_header_preproc=yes
27830 else
27831   echo "$as_me: failed program was:" >&5
27832 sed 's/^/| /' conftest.$ac_ext >&5
27833
27834   ac_header_preproc=no
27835 fi
27836 rm -f conftest.err conftest.$ac_ext
27837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27838 echo "${ECHO_T}$ac_header_preproc" >&6
27839
27840 # So?  What about this header?
27841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27842   yes:no: )
27843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27847     ac_header_preproc=yes
27848     ;;
27849   no:yes:* )
27850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27862     (
27863       cat <<\_ASBOX
27864 ## --------------------------------------------- ##
27865 ## Report this to <http://www.openldap.org/its/> ##
27866 ## --------------------------------------------- ##
27867 _ASBOX
27868     ) |
27869       sed "s/^/$as_me: WARNING:     /" >&2
27870     ;;
27871 esac
27872 echo "$as_me:$LINENO: checking for $ac_header" >&5
27873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27875   echo $ECHO_N "(cached) $ECHO_C" >&6
27876 else
27877   eval "$as_ac_Header=\$ac_header_preproc"
27878 fi
27879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27881
27882 fi
27883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27884   cat >>confdefs.h <<_ACEOF
27885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27886 _ACEOF
27887
27888 fi
27889
27890 done
27891
27892 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27893         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27894 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27895 if test "${ol_cv_header_db1+set}" = set; then
27896   echo $ECHO_N "(cached) $ECHO_C" >&6
27897 else
27898
27899                 cat >conftest.$ac_ext <<_ACEOF
27900 /* confdefs.h.  */
27901 _ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h.  */
27905
27906 #if HAVE_DB_185_H
27907 #       include <db_185.h>
27908 #else
27909 #       include <db.h>
27910 #endif
27911
27912  /* this check could be improved */
27913 #ifndef DB_VERSION_MAJOR
27914 #       define DB_VERSION_MAJOR 1
27915 #endif
27916
27917 #if DB_VERSION_MAJOR == 1
27918         __db_version_1
27919 #endif
27920
27921 _ACEOF
27922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27923   $EGREP "__db_version_1" >/dev/null 2>&1; then
27924   ol_cv_header_db1=yes
27925 else
27926   ol_cv_header_db1=no
27927 fi
27928 rm -f conftest*
27929
27930 fi
27931 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27932 echo "${ECHO_T}$ol_cv_header_db1" >&6
27933
27934         if test $ol_cv_header_db1 = yes ; then
27935                 ol_cv_lib_db=no
27936
27937 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27938 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27939 if test "${ol_cv_bdb_major+set}" = set; then
27940   echo $ECHO_N "(cached) $ECHO_C" >&6
27941 else
27942
27943         ol_cv_bdb_major=0
27944         if test $ol_cv_bdb_major = 0 ; then
27945                 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951
27952 #include <db.h>
27953 #ifndef DB_VERSION_MAJOR
27954 #       define DB_VERSION_MAJOR 1
27955 #endif
27956 #if DB_VERSION_MAJOR == 4
27957 __db_version
27958 #endif
27959
27960 _ACEOF
27961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27962   $EGREP "__db_version" >/dev/null 2>&1; then
27963   ol_cv_bdb_major=4
27964 else
27965   :
27966 fi
27967 rm -f conftest*
27968
27969         fi
27970         if test $ol_cv_bdb_major = 0 ; then
27971                 cat >conftest.$ac_ext <<_ACEOF
27972 /* confdefs.h.  */
27973 _ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h.  */
27977
27978 #include <db.h>
27979 #ifndef DB_VERSION_MAJOR
27980 #       define DB_VERSION_MAJOR 1
27981 #endif
27982 #if DB_VERSION_MAJOR == 3
27983 __db_version
27984 #endif
27985
27986 _ACEOF
27987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27988   $EGREP "__db_version" >/dev/null 2>&1; then
27989   ol_cv_bdb_major=3
27990 else
27991   :
27992 fi
27993 rm -f conftest*
27994
27995         fi
27996         if test $ol_cv_bdb_major = 0 ; then
27997                 cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003
28004 #include <db.h>
28005 #ifndef DB_VERSION_MAJOR
28006 #       define DB_VERSION_MAJOR 1
28007 #endif
28008 #if DB_VERSION_MAJOR == 2
28009 __db_version
28010 #endif
28011
28012 _ACEOF
28013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28014   $EGREP "__db_version" >/dev/null 2>&1; then
28015   ol_cv_bdb_major=2
28016 else
28017   :
28018 fi
28019 rm -f conftest*
28020
28021         fi
28022         if test $ol_cv_bdb_major = 0 ; then
28023                 cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029
28030 #include <db.h>
28031 #ifndef DB_VERSION_MAJOR
28032 #       define DB_VERSION_MAJOR 1
28033 #endif
28034 #if DB_VERSION_MAJOR == 1
28035 __db_version
28036 #endif
28037
28038 _ACEOF
28039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28040   $EGREP "__db_version" >/dev/null 2>&1; then
28041   ol_cv_bdb_major=1
28042 else
28043   :
28044 fi
28045 rm -f conftest*
28046
28047         fi
28048
28049         if test $ol_cv_bdb_major = 0 ; then
28050                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28051 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28052    { (exit 1); exit 1; }; }
28053         fi
28054
28055 fi
28056 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28057 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28058
28059 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28060 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28061 if test "${ol_cv_bdb_minor+set}" = set; then
28062   echo $ECHO_N "(cached) $ECHO_C" >&6
28063 else
28064
28065         ol_cv_bdb_minor=0
28066         if test $ol_cv_bdb_minor = 0 ; then
28067                 cat >conftest.$ac_ext <<_ACEOF
28068 /* confdefs.h.  */
28069 _ACEOF
28070 cat confdefs.h >>conftest.$ac_ext
28071 cat >>conftest.$ac_ext <<_ACEOF
28072 /* end confdefs.h.  */
28073
28074 #include <db.h>
28075 #ifndef DB_VERSION_MINOR
28076 #       define DB_VERSION_MINOR 0
28077 #endif
28078 #if DB_VERSION_MINOR == 9
28079 __db_version
28080 #endif
28081
28082 _ACEOF
28083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28084   $EGREP "__db_version" >/dev/null 2>&1; then
28085   ol_cv_bdb_minor=9
28086 else
28087   :
28088 fi
28089 rm -f conftest*
28090
28091         fi
28092         if test $ol_cv_bdb_minor = 0 ; then
28093                 cat >conftest.$ac_ext <<_ACEOF
28094 /* confdefs.h.  */
28095 _ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h.  */
28099
28100 #include <db.h>
28101 #ifndef DB_VERSION_MINOR
28102 #       define DB_VERSION_MINOR 0
28103 #endif
28104 #if DB_VERSION_MINOR == 8
28105 __db_version
28106 #endif
28107
28108 _ACEOF
28109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28110   $EGREP "__db_version" >/dev/null 2>&1; then
28111   ol_cv_bdb_minor=8
28112 else
28113   :
28114 fi
28115 rm -f conftest*
28116
28117         fi
28118         if test $ol_cv_bdb_minor = 0 ; then
28119                 cat >conftest.$ac_ext <<_ACEOF
28120 /* confdefs.h.  */
28121 _ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h.  */
28125
28126 #include <db.h>
28127 #ifndef DB_VERSION_MINOR
28128 #       define DB_VERSION_MINOR 0
28129 #endif
28130 #if DB_VERSION_MINOR == 7
28131 __db_version
28132 #endif
28133
28134 _ACEOF
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136   $EGREP "__db_version" >/dev/null 2>&1; then
28137   ol_cv_bdb_minor=7
28138 else
28139   :
28140 fi
28141 rm -f conftest*
28142
28143         fi
28144         if test $ol_cv_bdb_minor = 0 ; then
28145                 cat >conftest.$ac_ext <<_ACEOF
28146 /* confdefs.h.  */
28147 _ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h.  */
28151
28152 #include <db.h>
28153 #ifndef DB_VERSION_MINOR
28154 #       define DB_VERSION_MINOR 0
28155 #endif
28156 #if DB_VERSION_MINOR == 6
28157 __db_version
28158 #endif
28159
28160 _ACEOF
28161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28162   $EGREP "__db_version" >/dev/null 2>&1; then
28163   ol_cv_bdb_minor=6
28164 else
28165   :
28166 fi
28167 rm -f conftest*
28168
28169         fi
28170         if test $ol_cv_bdb_minor = 0 ; then
28171                 cat >conftest.$ac_ext <<_ACEOF
28172 /* confdefs.h.  */
28173 _ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h.  */
28177
28178 #include <db.h>
28179 #ifndef DB_VERSION_MINOR
28180 #       define DB_VERSION_MINOR 0
28181 #endif
28182 #if DB_VERSION_MINOR == 5
28183 __db_version
28184 #endif
28185
28186 _ACEOF
28187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28188   $EGREP "__db_version" >/dev/null 2>&1; then
28189   ol_cv_bdb_minor=5
28190 else
28191   :
28192 fi
28193 rm -f conftest*
28194
28195         fi
28196         if test $ol_cv_bdb_minor = 0 ; then
28197                 cat >conftest.$ac_ext <<_ACEOF
28198 /* confdefs.h.  */
28199 _ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h.  */
28203
28204 #include <db.h>
28205 #ifndef DB_VERSION_MINOR
28206 #       define DB_VERSION_MINOR 0
28207 #endif
28208 #if DB_VERSION_MINOR == 4
28209 __db_version
28210 #endif
28211
28212 _ACEOF
28213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28214   $EGREP "__db_version" >/dev/null 2>&1; then
28215   ol_cv_bdb_minor=4
28216 else
28217   :
28218 fi
28219 rm -f conftest*
28220
28221         fi
28222         if test $ol_cv_bdb_minor = 0 ; then
28223                 cat >conftest.$ac_ext <<_ACEOF
28224 /* confdefs.h.  */
28225 _ACEOF
28226 cat confdefs.h >>conftest.$ac_ext
28227 cat >>conftest.$ac_ext <<_ACEOF
28228 /* end confdefs.h.  */
28229
28230 #include <db.h>
28231 #ifndef DB_VERSION_MINOR
28232 #       define DB_VERSION_MINOR 0
28233 #endif
28234 #if DB_VERSION_MINOR == 3
28235 __db_version
28236 #endif
28237
28238 _ACEOF
28239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28240   $EGREP "__db_version" >/dev/null 2>&1; then
28241   ol_cv_bdb_minor=3
28242 else
28243   :
28244 fi
28245 rm -f conftest*
28246
28247         fi
28248         if test $ol_cv_bdb_minor = 0 ; then
28249                 cat >conftest.$ac_ext <<_ACEOF
28250 /* confdefs.h.  */
28251 _ACEOF
28252 cat confdefs.h >>conftest.$ac_ext
28253 cat >>conftest.$ac_ext <<_ACEOF
28254 /* end confdefs.h.  */
28255
28256 #include <db.h>
28257 #ifndef DB_VERSION_MINOR
28258 #       define DB_VERSION_MINOR 0
28259 #endif
28260 #if DB_VERSION_MINOR == 2
28261 __db_version
28262 #endif
28263
28264 _ACEOF
28265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28266   $EGREP "__db_version" >/dev/null 2>&1; then
28267   ol_cv_bdb_minor=2
28268 else
28269   :
28270 fi
28271 rm -f conftest*
28272
28273         fi
28274         if test $ol_cv_bdb_minor = 0 ; then
28275                 cat >conftest.$ac_ext <<_ACEOF
28276 /* confdefs.h.  */
28277 _ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h.  */
28281
28282 #include <db.h>
28283 #ifndef DB_VERSION_MINOR
28284 #       define DB_VERSION_MINOR 0
28285 #endif
28286 #if DB_VERSION_MINOR == 1
28287 __db_version
28288 #endif
28289
28290 _ACEOF
28291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28292   $EGREP "__db_version" >/dev/null 2>&1; then
28293   ol_cv_bdb_minor=1
28294 else
28295   :
28296 fi
28297 rm -f conftest*
28298
28299         fi
28300
28301 fi
28302 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28303 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28304
28305 if test $ol_cv_bdb_major = 4 ; then
28306         if test $ol_cv_bdb_minor = 4 ; then
28307                 if test $ol_cv_lib_db = no ; then
28308         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28309 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28310 if test "${ol_cv_db_db44+set}" = set; then
28311   echo $ECHO_N "(cached) $ECHO_C" >&6
28312 else
28313
28314         ol_DB_LIB=-ldb44
28315         ol_LIBS=$LIBS
28316         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28317
28318         cat >conftest.$ac_ext <<_ACEOF
28319 /* confdefs.h.  */
28320 _ACEOF
28321 cat confdefs.h >>conftest.$ac_ext
28322 cat >>conftest.$ac_ext <<_ACEOF
28323 /* end confdefs.h.  */
28324
28325 #ifdef HAVE_DB_185_H
28326 # include <db_185.h>
28327 #else
28328 # include <db.h>
28329 #endif
28330
28331 #ifndef DB_VERSION_MAJOR
28332 # define DB_VERSION_MAJOR 1
28333 #endif
28334
28335 #ifndef NULL
28336 #define NULL ((void*)0)
28337 #endif
28338
28339 int
28340 main ()
28341 {
28342
28343 #if DB_VERSION_MAJOR > 1
28344         {
28345                 char *version;
28346                 int major, minor, patch;
28347
28348                 version = db_version( &major, &minor, &patch );
28349
28350                 if( major != DB_VERSION_MAJOR ||
28351                         minor < DB_VERSION_MINOR )
28352                 {
28353                         printf("Berkeley DB version mismatch\n"
28354                                 "\theader: %s\n\tlibrary: %s\n",
28355                                 DB_VERSION_STRING, version);
28356                         return 1;
28357                 }
28358         }
28359 #endif
28360
28361 #if DB_VERSION_MAJOR > 2
28362         db_env_create( NULL, 0 );
28363 #elif DB_VERSION_MAJOR > 1
28364         db_appexit( NULL );
28365 #else
28366         (void) dbopen( NULL, 0, 0, 0, NULL);
28367 #endif
28368
28369   ;
28370   return 0;
28371 }
28372 _ACEOF
28373 rm -f conftest.$ac_objext conftest$ac_exeext
28374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28375   (eval $ac_link) 2>conftest.er1
28376   ac_status=$?
28377   grep -v '^ *+' conftest.er1 >conftest.err
28378   rm -f conftest.er1
28379   cat conftest.err >&5
28380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381   (exit $ac_status); } &&
28382          { ac_try='test -z "$ac_c_werror_flag"
28383                          || test ! -s conftest.err'
28384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28385   (eval $ac_try) 2>&5
28386   ac_status=$?
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); }; } &&
28389          { ac_try='test -s conftest$ac_exeext'
28390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391   (eval $ac_try) 2>&5
28392   ac_status=$?
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); }; }; then
28395   ol_cv_db_db44=yes
28396 else
28397   echo "$as_me: failed program was:" >&5
28398 sed 's/^/| /' conftest.$ac_ext >&5
28399
28400 ol_cv_db_db44=no
28401 fi
28402 rm -f conftest.err conftest.$ac_objext \
28403       conftest$ac_exeext conftest.$ac_ext
28404
28405         LIBS="$ol_LIBS"
28406
28407 fi
28408 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28409 echo "${ECHO_T}$ol_cv_db_db44" >&6
28410
28411         if test $ol_cv_db_db44 = yes ; then
28412                 ol_cv_lib_db=-ldb44
28413         fi
28414 fi
28415
28416                 if test $ol_cv_lib_db = no ; then
28417         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28418 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28419 if test "${ol_cv_db_db_44+set}" = set; then
28420   echo $ECHO_N "(cached) $ECHO_C" >&6
28421 else
28422
28423         ol_DB_LIB=-ldb-44
28424         ol_LIBS=$LIBS
28425         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28426
28427         cat >conftest.$ac_ext <<_ACEOF
28428 /* confdefs.h.  */
28429 _ACEOF
28430 cat confdefs.h >>conftest.$ac_ext
28431 cat >>conftest.$ac_ext <<_ACEOF
28432 /* end confdefs.h.  */
28433
28434 #ifdef HAVE_DB_185_H
28435 # include <db_185.h>
28436 #else
28437 # include <db.h>
28438 #endif
28439
28440 #ifndef DB_VERSION_MAJOR
28441 # define DB_VERSION_MAJOR 1
28442 #endif
28443
28444 #ifndef NULL
28445 #define NULL ((void*)0)
28446 #endif
28447
28448 int
28449 main ()
28450 {
28451
28452 #if DB_VERSION_MAJOR > 1
28453         {
28454                 char *version;
28455                 int major, minor, patch;
28456
28457                 version = db_version( &major, &minor, &patch );
28458
28459                 if( major != DB_VERSION_MAJOR ||
28460                         minor < DB_VERSION_MINOR )
28461                 {
28462                         printf("Berkeley DB version mismatch\n"
28463                                 "\theader: %s\n\tlibrary: %s\n",
28464                                 DB_VERSION_STRING, version);
28465                         return 1;
28466                 }
28467         }
28468 #endif
28469
28470 #if DB_VERSION_MAJOR > 2
28471         db_env_create( NULL, 0 );
28472 #elif DB_VERSION_MAJOR > 1
28473         db_appexit( NULL );
28474 #else
28475         (void) dbopen( NULL, 0, 0, 0, NULL);
28476 #endif
28477
28478   ;
28479   return 0;
28480 }
28481 _ACEOF
28482 rm -f conftest.$ac_objext conftest$ac_exeext
28483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28484   (eval $ac_link) 2>conftest.er1
28485   ac_status=$?
28486   grep -v '^ *+' conftest.er1 >conftest.err
28487   rm -f conftest.er1
28488   cat conftest.err >&5
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); } &&
28491          { ac_try='test -z "$ac_c_werror_flag"
28492                          || test ! -s conftest.err'
28493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494   (eval $ac_try) 2>&5
28495   ac_status=$?
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); }; } &&
28498          { ac_try='test -s conftest$ac_exeext'
28499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500   (eval $ac_try) 2>&5
28501   ac_status=$?
28502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503   (exit $ac_status); }; }; then
28504   ol_cv_db_db_44=yes
28505 else
28506   echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509 ol_cv_db_db_44=no
28510 fi
28511 rm -f conftest.err conftest.$ac_objext \
28512       conftest$ac_exeext conftest.$ac_ext
28513
28514         LIBS="$ol_LIBS"
28515
28516 fi
28517 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28518 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28519
28520         if test $ol_cv_db_db_44 = yes ; then
28521                 ol_cv_lib_db=-ldb-44
28522         fi
28523 fi
28524
28525                 if test $ol_cv_lib_db = no ; then
28526         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28527 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28528 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28529   echo $ECHO_N "(cached) $ECHO_C" >&6
28530 else
28531
28532         ol_DB_LIB=-ldb-4.4
28533         ol_LIBS=$LIBS
28534         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28535
28536         cat >conftest.$ac_ext <<_ACEOF
28537 /* confdefs.h.  */
28538 _ACEOF
28539 cat confdefs.h >>conftest.$ac_ext
28540 cat >>conftest.$ac_ext <<_ACEOF
28541 /* end confdefs.h.  */
28542
28543 #ifdef HAVE_DB_185_H
28544 # include <db_185.h>
28545 #else
28546 # include <db.h>
28547 #endif
28548
28549 #ifndef DB_VERSION_MAJOR
28550 # define DB_VERSION_MAJOR 1
28551 #endif
28552
28553 #ifndef NULL
28554 #define NULL ((void*)0)
28555 #endif
28556
28557 int
28558 main ()
28559 {
28560
28561 #if DB_VERSION_MAJOR > 1
28562         {
28563                 char *version;
28564                 int major, minor, patch;
28565
28566                 version = db_version( &major, &minor, &patch );
28567
28568                 if( major != DB_VERSION_MAJOR ||
28569                         minor < DB_VERSION_MINOR )
28570                 {
28571                         printf("Berkeley DB version mismatch\n"
28572                                 "\theader: %s\n\tlibrary: %s\n",
28573                                 DB_VERSION_STRING, version);
28574                         return 1;
28575                 }
28576         }
28577 #endif
28578
28579 #if DB_VERSION_MAJOR > 2
28580         db_env_create( NULL, 0 );
28581 #elif DB_VERSION_MAJOR > 1
28582         db_appexit( NULL );
28583 #else
28584         (void) dbopen( NULL, 0, 0, 0, NULL);
28585 #endif
28586
28587   ;
28588   return 0;
28589 }
28590 _ACEOF
28591 rm -f conftest.$ac_objext conftest$ac_exeext
28592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28593   (eval $ac_link) 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } &&
28600          { ac_try='test -z "$ac_c_werror_flag"
28601                          || test ! -s conftest.err'
28602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603   (eval $ac_try) 2>&5
28604   ac_status=$?
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); }; } &&
28607          { ac_try='test -s conftest$ac_exeext'
28608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609   (eval $ac_try) 2>&5
28610   ac_status=$?
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); }; }; then
28613   ol_cv_db_db_4_dot_4=yes
28614 else
28615   echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28617
28618 ol_cv_db_db_4_dot_4=no
28619 fi
28620 rm -f conftest.err conftest.$ac_objext \
28621       conftest$ac_exeext conftest.$ac_ext
28622
28623         LIBS="$ol_LIBS"
28624
28625 fi
28626 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28627 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28628
28629         if test $ol_cv_db_db_4_dot_4 = yes ; then
28630                 ol_cv_lib_db=-ldb-4.4
28631         fi
28632 fi
28633
28634                 if test $ol_cv_lib_db = no ; then
28635         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28636 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28637 if test "${ol_cv_db_db_4_4+set}" = set; then
28638   echo $ECHO_N "(cached) $ECHO_C" >&6
28639 else
28640
28641         ol_DB_LIB=-ldb-4-4
28642         ol_LIBS=$LIBS
28643         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28644
28645         cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h.  */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h.  */
28651
28652 #ifdef HAVE_DB_185_H
28653 # include <db_185.h>
28654 #else
28655 # include <db.h>
28656 #endif
28657
28658 #ifndef DB_VERSION_MAJOR
28659 # define DB_VERSION_MAJOR 1
28660 #endif
28661
28662 #ifndef NULL
28663 #define NULL ((void*)0)
28664 #endif
28665
28666 int
28667 main ()
28668 {
28669
28670 #if DB_VERSION_MAJOR > 1
28671         {
28672                 char *version;
28673                 int major, minor, patch;
28674
28675                 version = db_version( &major, &minor, &patch );
28676
28677                 if( major != DB_VERSION_MAJOR ||
28678                         minor < DB_VERSION_MINOR )
28679                 {
28680                         printf("Berkeley DB version mismatch\n"
28681                                 "\theader: %s\n\tlibrary: %s\n",
28682                                 DB_VERSION_STRING, version);
28683                         return 1;
28684                 }
28685         }
28686 #endif
28687
28688 #if DB_VERSION_MAJOR > 2
28689         db_env_create( NULL, 0 );
28690 #elif DB_VERSION_MAJOR > 1
28691         db_appexit( NULL );
28692 #else
28693         (void) dbopen( NULL, 0, 0, 0, NULL);
28694 #endif
28695
28696   ;
28697   return 0;
28698 }
28699 _ACEOF
28700 rm -f conftest.$ac_objext conftest$ac_exeext
28701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28702   (eval $ac_link) 2>conftest.er1
28703   ac_status=$?
28704   grep -v '^ *+' conftest.er1 >conftest.err
28705   rm -f conftest.er1
28706   cat conftest.err >&5
28707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708   (exit $ac_status); } &&
28709          { ac_try='test -z "$ac_c_werror_flag"
28710                          || test ! -s conftest.err'
28711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28712   (eval $ac_try) 2>&5
28713   ac_status=$?
28714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715   (exit $ac_status); }; } &&
28716          { ac_try='test -s conftest$ac_exeext'
28717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718   (eval $ac_try) 2>&5
28719   ac_status=$?
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); }; }; then
28722   ol_cv_db_db_4_4=yes
28723 else
28724   echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28726
28727 ol_cv_db_db_4_4=no
28728 fi
28729 rm -f conftest.err conftest.$ac_objext \
28730       conftest$ac_exeext conftest.$ac_ext
28731
28732         LIBS="$ol_LIBS"
28733
28734 fi
28735 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28736 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28737
28738         if test $ol_cv_db_db_4_4 = yes ; then
28739                 ol_cv_lib_db=-ldb-4-4
28740         fi
28741 fi
28742
28743         elif test $ol_cv_bdb_minor = 3 ; then
28744                 if test $ol_cv_lib_db = no ; then
28745         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28746 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28747 if test "${ol_cv_db_db43+set}" = set; then
28748   echo $ECHO_N "(cached) $ECHO_C" >&6
28749 else
28750
28751         ol_DB_LIB=-ldb43
28752         ol_LIBS=$LIBS
28753         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28754
28755         cat >conftest.$ac_ext <<_ACEOF
28756 /* confdefs.h.  */
28757 _ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h.  */
28761
28762 #ifdef HAVE_DB_185_H
28763 # include <db_185.h>
28764 #else
28765 # include <db.h>
28766 #endif
28767
28768 #ifndef DB_VERSION_MAJOR
28769 # define DB_VERSION_MAJOR 1
28770 #endif
28771
28772 #ifndef NULL
28773 #define NULL ((void*)0)
28774 #endif
28775
28776 int
28777 main ()
28778 {
28779
28780 #if DB_VERSION_MAJOR > 1
28781         {
28782                 char *version;
28783                 int major, minor, patch;
28784
28785                 version = db_version( &major, &minor, &patch );
28786
28787                 if( major != DB_VERSION_MAJOR ||
28788                         minor < DB_VERSION_MINOR )
28789                 {
28790                         printf("Berkeley DB version mismatch\n"
28791                                 "\theader: %s\n\tlibrary: %s\n",
28792                                 DB_VERSION_STRING, version);
28793                         return 1;
28794                 }
28795         }
28796 #endif
28797
28798 #if DB_VERSION_MAJOR > 2
28799         db_env_create( NULL, 0 );
28800 #elif DB_VERSION_MAJOR > 1
28801         db_appexit( NULL );
28802 #else
28803         (void) dbopen( NULL, 0, 0, 0, NULL);
28804 #endif
28805
28806   ;
28807   return 0;
28808 }
28809 _ACEOF
28810 rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28812   (eval $ac_link) 2>conftest.er1
28813   ac_status=$?
28814   grep -v '^ *+' conftest.er1 >conftest.err
28815   rm -f conftest.er1
28816   cat conftest.err >&5
28817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); } &&
28819          { ac_try='test -z "$ac_c_werror_flag"
28820                          || test ! -s conftest.err'
28821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822   (eval $ac_try) 2>&5
28823   ac_status=$?
28824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825   (exit $ac_status); }; } &&
28826          { ac_try='test -s conftest$ac_exeext'
28827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828   (eval $ac_try) 2>&5
28829   ac_status=$?
28830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); }; }; then
28832   ol_cv_db_db43=yes
28833 else
28834   echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28836
28837 ol_cv_db_db43=no
28838 fi
28839 rm -f conftest.err conftest.$ac_objext \
28840       conftest$ac_exeext conftest.$ac_ext
28841
28842         LIBS="$ol_LIBS"
28843
28844 fi
28845 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28846 echo "${ECHO_T}$ol_cv_db_db43" >&6
28847
28848         if test $ol_cv_db_db43 = yes ; then
28849                 ol_cv_lib_db=-ldb43
28850         fi
28851 fi
28852
28853                 if test $ol_cv_lib_db = no ; then
28854         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28855 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28856 if test "${ol_cv_db_db_43+set}" = set; then
28857   echo $ECHO_N "(cached) $ECHO_C" >&6
28858 else
28859
28860         ol_DB_LIB=-ldb-43
28861         ol_LIBS=$LIBS
28862         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28863
28864         cat >conftest.$ac_ext <<_ACEOF
28865 /* confdefs.h.  */
28866 _ACEOF
28867 cat confdefs.h >>conftest.$ac_ext
28868 cat >>conftest.$ac_ext <<_ACEOF
28869 /* end confdefs.h.  */
28870
28871 #ifdef HAVE_DB_185_H
28872 # include <db_185.h>
28873 #else
28874 # include <db.h>
28875 #endif
28876
28877 #ifndef DB_VERSION_MAJOR
28878 # define DB_VERSION_MAJOR 1
28879 #endif
28880
28881 #ifndef NULL
28882 #define NULL ((void*)0)
28883 #endif
28884
28885 int
28886 main ()
28887 {
28888
28889 #if DB_VERSION_MAJOR > 1
28890         {
28891                 char *version;
28892                 int major, minor, patch;
28893
28894                 version = db_version( &major, &minor, &patch );
28895
28896                 if( major != DB_VERSION_MAJOR ||
28897                         minor < DB_VERSION_MINOR )
28898                 {
28899                         printf("Berkeley DB version mismatch\n"
28900                                 "\theader: %s\n\tlibrary: %s\n",
28901                                 DB_VERSION_STRING, version);
28902                         return 1;
28903                 }
28904         }
28905 #endif
28906
28907 #if DB_VERSION_MAJOR > 2
28908         db_env_create( NULL, 0 );
28909 #elif DB_VERSION_MAJOR > 1
28910         db_appexit( NULL );
28911 #else
28912         (void) dbopen( NULL, 0, 0, 0, NULL);
28913 #endif
28914
28915   ;
28916   return 0;
28917 }
28918 _ACEOF
28919 rm -f conftest.$ac_objext conftest$ac_exeext
28920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28921   (eval $ac_link) 2>conftest.er1
28922   ac_status=$?
28923   grep -v '^ *+' conftest.er1 >conftest.err
28924   rm -f conftest.er1
28925   cat conftest.err >&5
28926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927   (exit $ac_status); } &&
28928          { ac_try='test -z "$ac_c_werror_flag"
28929                          || test ! -s conftest.err'
28930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28931   (eval $ac_try) 2>&5
28932   ac_status=$?
28933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934   (exit $ac_status); }; } &&
28935          { ac_try='test -s conftest$ac_exeext'
28936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28937   (eval $ac_try) 2>&5
28938   ac_status=$?
28939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940   (exit $ac_status); }; }; then
28941   ol_cv_db_db_43=yes
28942 else
28943   echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28945
28946 ol_cv_db_db_43=no
28947 fi
28948 rm -f conftest.err conftest.$ac_objext \
28949       conftest$ac_exeext conftest.$ac_ext
28950
28951         LIBS="$ol_LIBS"
28952
28953 fi
28954 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28955 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28956
28957         if test $ol_cv_db_db_43 = yes ; then
28958                 ol_cv_lib_db=-ldb-43
28959         fi
28960 fi
28961
28962                 if test $ol_cv_lib_db = no ; then
28963         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28964 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28965 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28966   echo $ECHO_N "(cached) $ECHO_C" >&6
28967 else
28968
28969         ol_DB_LIB=-ldb-4.3
28970         ol_LIBS=$LIBS
28971         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28972
28973         cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979
28980 #ifdef HAVE_DB_185_H
28981 # include <db_185.h>
28982 #else
28983 # include <db.h>
28984 #endif
28985
28986 #ifndef DB_VERSION_MAJOR
28987 # define DB_VERSION_MAJOR 1
28988 #endif
28989
28990 #ifndef NULL
28991 #define NULL ((void*)0)
28992 #endif
28993
28994 int
28995 main ()
28996 {
28997
28998 #if DB_VERSION_MAJOR > 1
28999         {
29000                 char *version;
29001                 int major, minor, patch;
29002
29003                 version = db_version( &major, &minor, &patch );
29004
29005                 if( major != DB_VERSION_MAJOR ||
29006                         minor < DB_VERSION_MINOR )
29007                 {
29008                         printf("Berkeley DB version mismatch\n"
29009                                 "\theader: %s\n\tlibrary: %s\n",
29010                                 DB_VERSION_STRING, version);
29011                         return 1;
29012                 }
29013         }
29014 #endif
29015
29016 #if DB_VERSION_MAJOR > 2
29017         db_env_create( NULL, 0 );
29018 #elif DB_VERSION_MAJOR > 1
29019         db_appexit( NULL );
29020 #else
29021         (void) dbopen( NULL, 0, 0, 0, NULL);
29022 #endif
29023
29024   ;
29025   return 0;
29026 }
29027 _ACEOF
29028 rm -f conftest.$ac_objext conftest$ac_exeext
29029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29030   (eval $ac_link) 2>conftest.er1
29031   ac_status=$?
29032   grep -v '^ *+' conftest.er1 >conftest.err
29033   rm -f conftest.er1
29034   cat conftest.err >&5
29035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); } &&
29037          { ac_try='test -z "$ac_c_werror_flag"
29038                          || test ! -s conftest.err'
29039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040   (eval $ac_try) 2>&5
29041   ac_status=$?
29042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); }; } &&
29044          { ac_try='test -s conftest$ac_exeext'
29045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29046   (eval $ac_try) 2>&5
29047   ac_status=$?
29048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049   (exit $ac_status); }; }; then
29050   ol_cv_db_db_4_dot_3=yes
29051 else
29052   echo "$as_me: failed program was:" >&5
29053 sed 's/^/| /' conftest.$ac_ext >&5
29054
29055 ol_cv_db_db_4_dot_3=no
29056 fi
29057 rm -f conftest.err conftest.$ac_objext \
29058       conftest$ac_exeext conftest.$ac_ext
29059
29060         LIBS="$ol_LIBS"
29061
29062 fi
29063 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29064 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29065
29066         if test $ol_cv_db_db_4_dot_3 = yes ; then
29067                 ol_cv_lib_db=-ldb-4.3
29068         fi
29069 fi
29070
29071                 if test $ol_cv_lib_db = no ; then
29072         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29073 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29074 if test "${ol_cv_db_db_4_3+set}" = set; then
29075   echo $ECHO_N "(cached) $ECHO_C" >&6
29076 else
29077
29078         ol_DB_LIB=-ldb-4-3
29079         ol_LIBS=$LIBS
29080         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29081
29082         cat >conftest.$ac_ext <<_ACEOF
29083 /* confdefs.h.  */
29084 _ACEOF
29085 cat confdefs.h >>conftest.$ac_ext
29086 cat >>conftest.$ac_ext <<_ACEOF
29087 /* end confdefs.h.  */
29088
29089 #ifdef HAVE_DB_185_H
29090 # include <db_185.h>
29091 #else
29092 # include <db.h>
29093 #endif
29094
29095 #ifndef DB_VERSION_MAJOR
29096 # define DB_VERSION_MAJOR 1
29097 #endif
29098
29099 #ifndef NULL
29100 #define NULL ((void*)0)
29101 #endif
29102
29103 int
29104 main ()
29105 {
29106
29107 #if DB_VERSION_MAJOR > 1
29108         {
29109                 char *version;
29110                 int major, minor, patch;
29111
29112                 version = db_version( &major, &minor, &patch );
29113
29114                 if( major != DB_VERSION_MAJOR ||
29115                         minor < DB_VERSION_MINOR )
29116                 {
29117                         printf("Berkeley DB version mismatch\n"
29118                                 "\theader: %s\n\tlibrary: %s\n",
29119                                 DB_VERSION_STRING, version);
29120                         return 1;
29121                 }
29122         }
29123 #endif
29124
29125 #if DB_VERSION_MAJOR > 2
29126         db_env_create( NULL, 0 );
29127 #elif DB_VERSION_MAJOR > 1
29128         db_appexit( NULL );
29129 #else
29130         (void) dbopen( NULL, 0, 0, 0, NULL);
29131 #endif
29132
29133   ;
29134   return 0;
29135 }
29136 _ACEOF
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29139   (eval $ac_link) 2>conftest.er1
29140   ac_status=$?
29141   grep -v '^ *+' conftest.er1 >conftest.err
29142   rm -f conftest.er1
29143   cat conftest.err >&5
29144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145   (exit $ac_status); } &&
29146          { ac_try='test -z "$ac_c_werror_flag"
29147                          || test ! -s conftest.err'
29148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149   (eval $ac_try) 2>&5
29150   ac_status=$?
29151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152   (exit $ac_status); }; } &&
29153          { ac_try='test -s conftest$ac_exeext'
29154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155   (eval $ac_try) 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; }; then
29159   ol_cv_db_db_4_3=yes
29160 else
29161   echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29163
29164 ol_cv_db_db_4_3=no
29165 fi
29166 rm -f conftest.err conftest.$ac_objext \
29167       conftest$ac_exeext conftest.$ac_ext
29168
29169         LIBS="$ol_LIBS"
29170
29171 fi
29172 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29173 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29174
29175         if test $ol_cv_db_db_4_3 = yes ; then
29176                 ol_cv_lib_db=-ldb-4-3
29177         fi
29178 fi
29179
29180         elif test $ol_cv_bdb_minor = 2 ; then
29181                 if test $ol_cv_lib_db = no ; then
29182         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29183 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29184 if test "${ol_cv_db_db42+set}" = set; then
29185   echo $ECHO_N "(cached) $ECHO_C" >&6
29186 else
29187
29188         ol_DB_LIB=-ldb42
29189         ol_LIBS=$LIBS
29190         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29191
29192         cat >conftest.$ac_ext <<_ACEOF
29193 /* confdefs.h.  */
29194 _ACEOF
29195 cat confdefs.h >>conftest.$ac_ext
29196 cat >>conftest.$ac_ext <<_ACEOF
29197 /* end confdefs.h.  */
29198
29199 #ifdef HAVE_DB_185_H
29200 # include <db_185.h>
29201 #else
29202 # include <db.h>
29203 #endif
29204
29205 #ifndef DB_VERSION_MAJOR
29206 # define DB_VERSION_MAJOR 1
29207 #endif
29208
29209 #ifndef NULL
29210 #define NULL ((void*)0)
29211 #endif
29212
29213 int
29214 main ()
29215 {
29216
29217 #if DB_VERSION_MAJOR > 1
29218         {
29219                 char *version;
29220                 int major, minor, patch;
29221
29222                 version = db_version( &major, &minor, &patch );
29223
29224                 if( major != DB_VERSION_MAJOR ||
29225                         minor < DB_VERSION_MINOR )
29226                 {
29227                         printf("Berkeley DB version mismatch\n"
29228                                 "\theader: %s\n\tlibrary: %s\n",
29229                                 DB_VERSION_STRING, version);
29230                         return 1;
29231                 }
29232         }
29233 #endif
29234
29235 #if DB_VERSION_MAJOR > 2
29236         db_env_create( NULL, 0 );
29237 #elif DB_VERSION_MAJOR > 1
29238         db_appexit( NULL );
29239 #else
29240         (void) dbopen( NULL, 0, 0, 0, NULL);
29241 #endif
29242
29243   ;
29244   return 0;
29245 }
29246 _ACEOF
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249   (eval $ac_link) 2>conftest.er1
29250   ac_status=$?
29251   grep -v '^ *+' conftest.er1 >conftest.err
29252   rm -f conftest.er1
29253   cat conftest.err >&5
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); } &&
29256          { ac_try='test -z "$ac_c_werror_flag"
29257                          || test ! -s conftest.err'
29258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259   (eval $ac_try) 2>&5
29260   ac_status=$?
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); }; } &&
29263          { ac_try='test -s conftest$ac_exeext'
29264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265   (eval $ac_try) 2>&5
29266   ac_status=$?
29267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268   (exit $ac_status); }; }; then
29269   ol_cv_db_db42=yes
29270 else
29271   echo "$as_me: failed program was:" >&5
29272 sed 's/^/| /' conftest.$ac_ext >&5
29273
29274 ol_cv_db_db42=no
29275 fi
29276 rm -f conftest.err conftest.$ac_objext \
29277       conftest$ac_exeext conftest.$ac_ext
29278
29279         LIBS="$ol_LIBS"
29280
29281 fi
29282 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29283 echo "${ECHO_T}$ol_cv_db_db42" >&6
29284
29285         if test $ol_cv_db_db42 = yes ; then
29286                 ol_cv_lib_db=-ldb42
29287         fi
29288 fi
29289
29290                 if test $ol_cv_lib_db = no ; then
29291         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29292 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29293 if test "${ol_cv_db_db_42+set}" = set; then
29294   echo $ECHO_N "(cached) $ECHO_C" >&6
29295 else
29296
29297         ol_DB_LIB=-ldb-42
29298         ol_LIBS=$LIBS
29299         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29300
29301         cat >conftest.$ac_ext <<_ACEOF
29302 /* confdefs.h.  */
29303 _ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h.  */
29307
29308 #ifdef HAVE_DB_185_H
29309 # include <db_185.h>
29310 #else
29311 # include <db.h>
29312 #endif
29313
29314 #ifndef DB_VERSION_MAJOR
29315 # define DB_VERSION_MAJOR 1
29316 #endif
29317
29318 #ifndef NULL
29319 #define NULL ((void*)0)
29320 #endif
29321
29322 int
29323 main ()
29324 {
29325
29326 #if DB_VERSION_MAJOR > 1
29327         {
29328                 char *version;
29329                 int major, minor, patch;
29330
29331                 version = db_version( &major, &minor, &patch );
29332
29333                 if( major != DB_VERSION_MAJOR ||
29334                         minor < DB_VERSION_MINOR )
29335                 {
29336                         printf("Berkeley DB version mismatch\n"
29337                                 "\theader: %s\n\tlibrary: %s\n",
29338                                 DB_VERSION_STRING, version);
29339                         return 1;
29340                 }
29341         }
29342 #endif
29343
29344 #if DB_VERSION_MAJOR > 2
29345         db_env_create( NULL, 0 );
29346 #elif DB_VERSION_MAJOR > 1
29347         db_appexit( NULL );
29348 #else
29349         (void) dbopen( NULL, 0, 0, 0, NULL);
29350 #endif
29351
29352   ;
29353   return 0;
29354 }
29355 _ACEOF
29356 rm -f conftest.$ac_objext conftest$ac_exeext
29357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29358   (eval $ac_link) 2>conftest.er1
29359   ac_status=$?
29360   grep -v '^ *+' conftest.er1 >conftest.err
29361   rm -f conftest.er1
29362   cat conftest.err >&5
29363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364   (exit $ac_status); } &&
29365          { ac_try='test -z "$ac_c_werror_flag"
29366                          || test ! -s conftest.err'
29367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29368   (eval $ac_try) 2>&5
29369   ac_status=$?
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); }; } &&
29372          { ac_try='test -s conftest$ac_exeext'
29373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29374   (eval $ac_try) 2>&5
29375   ac_status=$?
29376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29377   (exit $ac_status); }; }; then
29378   ol_cv_db_db_42=yes
29379 else
29380   echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29382
29383 ol_cv_db_db_42=no
29384 fi
29385 rm -f conftest.err conftest.$ac_objext \
29386       conftest$ac_exeext conftest.$ac_ext
29387
29388         LIBS="$ol_LIBS"
29389
29390 fi
29391 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29392 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29393
29394         if test $ol_cv_db_db_42 = yes ; then
29395                 ol_cv_lib_db=-ldb-42
29396         fi
29397 fi
29398
29399                 if test $ol_cv_lib_db = no ; then
29400         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29401 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29402 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29403   echo $ECHO_N "(cached) $ECHO_C" >&6
29404 else
29405
29406         ol_DB_LIB=-ldb-4.2
29407         ol_LIBS=$LIBS
29408         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29409
29410         cat >conftest.$ac_ext <<_ACEOF
29411 /* confdefs.h.  */
29412 _ACEOF
29413 cat confdefs.h >>conftest.$ac_ext
29414 cat >>conftest.$ac_ext <<_ACEOF
29415 /* end confdefs.h.  */
29416
29417 #ifdef HAVE_DB_185_H
29418 # include <db_185.h>
29419 #else
29420 # include <db.h>
29421 #endif
29422
29423 #ifndef DB_VERSION_MAJOR
29424 # define DB_VERSION_MAJOR 1
29425 #endif
29426
29427 #ifndef NULL
29428 #define NULL ((void*)0)
29429 #endif
29430
29431 int
29432 main ()
29433 {
29434
29435 #if DB_VERSION_MAJOR > 1
29436         {
29437                 char *version;
29438                 int major, minor, patch;
29439
29440                 version = db_version( &major, &minor, &patch );
29441
29442                 if( major != DB_VERSION_MAJOR ||
29443                         minor < DB_VERSION_MINOR )
29444                 {
29445                         printf("Berkeley DB version mismatch\n"
29446                                 "\theader: %s\n\tlibrary: %s\n",
29447                                 DB_VERSION_STRING, version);
29448                         return 1;
29449                 }
29450         }
29451 #endif
29452
29453 #if DB_VERSION_MAJOR > 2
29454         db_env_create( NULL, 0 );
29455 #elif DB_VERSION_MAJOR > 1
29456         db_appexit( NULL );
29457 #else
29458         (void) dbopen( NULL, 0, 0, 0, NULL);
29459 #endif
29460
29461   ;
29462   return 0;
29463 }
29464 _ACEOF
29465 rm -f conftest.$ac_objext conftest$ac_exeext
29466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29467   (eval $ac_link) 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } &&
29474          { ac_try='test -z "$ac_c_werror_flag"
29475                          || test ! -s conftest.err'
29476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29477   (eval $ac_try) 2>&5
29478   ac_status=$?
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); }; } &&
29481          { ac_try='test -s conftest$ac_exeext'
29482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483   (eval $ac_try) 2>&5
29484   ac_status=$?
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); }; }; then
29487   ol_cv_db_db_4_dot_2=yes
29488 else
29489   echo "$as_me: failed program was:" >&5
29490 sed 's/^/| /' conftest.$ac_ext >&5
29491
29492 ol_cv_db_db_4_dot_2=no
29493 fi
29494 rm -f conftest.err conftest.$ac_objext \
29495       conftest$ac_exeext conftest.$ac_ext
29496
29497         LIBS="$ol_LIBS"
29498
29499 fi
29500 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29501 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29502
29503         if test $ol_cv_db_db_4_dot_2 = yes ; then
29504                 ol_cv_lib_db=-ldb-4.2
29505         fi
29506 fi
29507
29508                 if test $ol_cv_lib_db = no ; then
29509         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29510 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29511 if test "${ol_cv_db_db_4_2+set}" = set; then
29512   echo $ECHO_N "(cached) $ECHO_C" >&6
29513 else
29514
29515         ol_DB_LIB=-ldb-4-2
29516         ol_LIBS=$LIBS
29517         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29518
29519         cat >conftest.$ac_ext <<_ACEOF
29520 /* confdefs.h.  */
29521 _ACEOF
29522 cat confdefs.h >>conftest.$ac_ext
29523 cat >>conftest.$ac_ext <<_ACEOF
29524 /* end confdefs.h.  */
29525
29526 #ifdef HAVE_DB_185_H
29527 # include <db_185.h>
29528 #else
29529 # include <db.h>
29530 #endif
29531
29532 #ifndef DB_VERSION_MAJOR
29533 # define DB_VERSION_MAJOR 1
29534 #endif
29535
29536 #ifndef NULL
29537 #define NULL ((void*)0)
29538 #endif
29539
29540 int
29541 main ()
29542 {
29543
29544 #if DB_VERSION_MAJOR > 1
29545         {
29546                 char *version;
29547                 int major, minor, patch;
29548
29549                 version = db_version( &major, &minor, &patch );
29550
29551                 if( major != DB_VERSION_MAJOR ||
29552                         minor < DB_VERSION_MINOR )
29553                 {
29554                         printf("Berkeley DB version mismatch\n"
29555                                 "\theader: %s\n\tlibrary: %s\n",
29556                                 DB_VERSION_STRING, version);
29557                         return 1;
29558                 }
29559         }
29560 #endif
29561
29562 #if DB_VERSION_MAJOR > 2
29563         db_env_create( NULL, 0 );
29564 #elif DB_VERSION_MAJOR > 1
29565         db_appexit( NULL );
29566 #else
29567         (void) dbopen( NULL, 0, 0, 0, NULL);
29568 #endif
29569
29570   ;
29571   return 0;
29572 }
29573 _ACEOF
29574 rm -f conftest.$ac_objext conftest$ac_exeext
29575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29576   (eval $ac_link) 2>conftest.er1
29577   ac_status=$?
29578   grep -v '^ *+' conftest.er1 >conftest.err
29579   rm -f conftest.er1
29580   cat conftest.err >&5
29581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582   (exit $ac_status); } &&
29583          { ac_try='test -z "$ac_c_werror_flag"
29584                          || test ! -s conftest.err'
29585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586   (eval $ac_try) 2>&5
29587   ac_status=$?
29588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589   (exit $ac_status); }; } &&
29590          { ac_try='test -s conftest$ac_exeext'
29591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592   (eval $ac_try) 2>&5
29593   ac_status=$?
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); }; }; then
29596   ol_cv_db_db_4_2=yes
29597 else
29598   echo "$as_me: failed program was:" >&5
29599 sed 's/^/| /' conftest.$ac_ext >&5
29600
29601 ol_cv_db_db_4_2=no
29602 fi
29603 rm -f conftest.err conftest.$ac_objext \
29604       conftest$ac_exeext conftest.$ac_ext
29605
29606         LIBS="$ol_LIBS"
29607
29608 fi
29609 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29610 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29611
29612         if test $ol_cv_db_db_4_2 = yes ; then
29613                 ol_cv_lib_db=-ldb-4-2
29614         fi
29615 fi
29616
29617         elif test $ol_cv_bdb_minor = 1 ; then
29618                 if test $ol_cv_lib_db = no ; then
29619         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29620 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29621 if test "${ol_cv_db_db41+set}" = set; then
29622   echo $ECHO_N "(cached) $ECHO_C" >&6
29623 else
29624
29625         ol_DB_LIB=-ldb41
29626         ol_LIBS=$LIBS
29627         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29628
29629         cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h.  */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h.  */
29635
29636 #ifdef HAVE_DB_185_H
29637 # include <db_185.h>
29638 #else
29639 # include <db.h>
29640 #endif
29641
29642 #ifndef DB_VERSION_MAJOR
29643 # define DB_VERSION_MAJOR 1
29644 #endif
29645
29646 #ifndef NULL
29647 #define NULL ((void*)0)
29648 #endif
29649
29650 int
29651 main ()
29652 {
29653
29654 #if DB_VERSION_MAJOR > 1
29655         {
29656                 char *version;
29657                 int major, minor, patch;
29658
29659                 version = db_version( &major, &minor, &patch );
29660
29661                 if( major != DB_VERSION_MAJOR ||
29662                         minor < DB_VERSION_MINOR )
29663                 {
29664                         printf("Berkeley DB version mismatch\n"
29665                                 "\theader: %s\n\tlibrary: %s\n",
29666                                 DB_VERSION_STRING, version);
29667                         return 1;
29668                 }
29669         }
29670 #endif
29671
29672 #if DB_VERSION_MAJOR > 2
29673         db_env_create( NULL, 0 );
29674 #elif DB_VERSION_MAJOR > 1
29675         db_appexit( NULL );
29676 #else
29677         (void) dbopen( NULL, 0, 0, 0, NULL);
29678 #endif
29679
29680   ;
29681   return 0;
29682 }
29683 _ACEOF
29684 rm -f conftest.$ac_objext conftest$ac_exeext
29685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29686   (eval $ac_link) 2>conftest.er1
29687   ac_status=$?
29688   grep -v '^ *+' conftest.er1 >conftest.err
29689   rm -f conftest.er1
29690   cat conftest.err >&5
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); } &&
29693          { ac_try='test -z "$ac_c_werror_flag"
29694                          || test ! -s conftest.err'
29695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29696   (eval $ac_try) 2>&5
29697   ac_status=$?
29698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699   (exit $ac_status); }; } &&
29700          { ac_try='test -s conftest$ac_exeext'
29701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702   (eval $ac_try) 2>&5
29703   ac_status=$?
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); }; }; then
29706   ol_cv_db_db41=yes
29707 else
29708   echo "$as_me: failed program was:" >&5
29709 sed 's/^/| /' conftest.$ac_ext >&5
29710
29711 ol_cv_db_db41=no
29712 fi
29713 rm -f conftest.err conftest.$ac_objext \
29714       conftest$ac_exeext conftest.$ac_ext
29715
29716         LIBS="$ol_LIBS"
29717
29718 fi
29719 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29720 echo "${ECHO_T}$ol_cv_db_db41" >&6
29721
29722         if test $ol_cv_db_db41 = yes ; then
29723                 ol_cv_lib_db=-ldb41
29724         fi
29725 fi
29726
29727                 if test $ol_cv_lib_db = no ; then
29728         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29729 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29730 if test "${ol_cv_db_db_41+set}" = set; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733
29734         ol_DB_LIB=-ldb-41
29735         ol_LIBS=$LIBS
29736         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29737
29738         cat >conftest.$ac_ext <<_ACEOF
29739 /* confdefs.h.  */
29740 _ACEOF
29741 cat confdefs.h >>conftest.$ac_ext
29742 cat >>conftest.$ac_ext <<_ACEOF
29743 /* end confdefs.h.  */
29744
29745 #ifdef HAVE_DB_185_H
29746 # include <db_185.h>
29747 #else
29748 # include <db.h>
29749 #endif
29750
29751 #ifndef DB_VERSION_MAJOR
29752 # define DB_VERSION_MAJOR 1
29753 #endif
29754
29755 #ifndef NULL
29756 #define NULL ((void*)0)
29757 #endif
29758
29759 int
29760 main ()
29761 {
29762
29763 #if DB_VERSION_MAJOR > 1
29764         {
29765                 char *version;
29766                 int major, minor, patch;
29767
29768                 version = db_version( &major, &minor, &patch );
29769
29770                 if( major != DB_VERSION_MAJOR ||
29771                         minor < DB_VERSION_MINOR )
29772                 {
29773                         printf("Berkeley DB version mismatch\n"
29774                                 "\theader: %s\n\tlibrary: %s\n",
29775                                 DB_VERSION_STRING, version);
29776                         return 1;
29777                 }
29778         }
29779 #endif
29780
29781 #if DB_VERSION_MAJOR > 2
29782         db_env_create( NULL, 0 );
29783 #elif DB_VERSION_MAJOR > 1
29784         db_appexit( NULL );
29785 #else
29786         (void) dbopen( NULL, 0, 0, 0, NULL);
29787 #endif
29788
29789   ;
29790   return 0;
29791 }
29792 _ACEOF
29793 rm -f conftest.$ac_objext conftest$ac_exeext
29794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29795   (eval $ac_link) 2>conftest.er1
29796   ac_status=$?
29797   grep -v '^ *+' conftest.er1 >conftest.err
29798   rm -f conftest.er1
29799   cat conftest.err >&5
29800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); } &&
29802          { ac_try='test -z "$ac_c_werror_flag"
29803                          || test ! -s conftest.err'
29804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805   (eval $ac_try) 2>&5
29806   ac_status=$?
29807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808   (exit $ac_status); }; } &&
29809          { ac_try='test -s conftest$ac_exeext'
29810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811   (eval $ac_try) 2>&5
29812   ac_status=$?
29813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814   (exit $ac_status); }; }; then
29815   ol_cv_db_db_41=yes
29816 else
29817   echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29819
29820 ol_cv_db_db_41=no
29821 fi
29822 rm -f conftest.err conftest.$ac_objext \
29823       conftest$ac_exeext conftest.$ac_ext
29824
29825         LIBS="$ol_LIBS"
29826
29827 fi
29828 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29829 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29830
29831         if test $ol_cv_db_db_41 = yes ; then
29832                 ol_cv_lib_db=-ldb-41
29833         fi
29834 fi
29835
29836                 if test $ol_cv_lib_db = no ; then
29837         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29838 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29839 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29840   echo $ECHO_N "(cached) $ECHO_C" >&6
29841 else
29842
29843         ol_DB_LIB=-ldb-4.1
29844         ol_LIBS=$LIBS
29845         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29846
29847         cat >conftest.$ac_ext <<_ACEOF
29848 /* confdefs.h.  */
29849 _ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h.  */
29853
29854 #ifdef HAVE_DB_185_H
29855 # include <db_185.h>
29856 #else
29857 # include <db.h>
29858 #endif
29859
29860 #ifndef DB_VERSION_MAJOR
29861 # define DB_VERSION_MAJOR 1
29862 #endif
29863
29864 #ifndef NULL
29865 #define NULL ((void*)0)
29866 #endif
29867
29868 int
29869 main ()
29870 {
29871
29872 #if DB_VERSION_MAJOR > 1
29873         {
29874                 char *version;
29875                 int major, minor, patch;
29876
29877                 version = db_version( &major, &minor, &patch );
29878
29879                 if( major != DB_VERSION_MAJOR ||
29880                         minor < DB_VERSION_MINOR )
29881                 {
29882                         printf("Berkeley DB version mismatch\n"
29883                                 "\theader: %s\n\tlibrary: %s\n",
29884                                 DB_VERSION_STRING, version);
29885                         return 1;
29886                 }
29887         }
29888 #endif
29889
29890 #if DB_VERSION_MAJOR > 2
29891         db_env_create( NULL, 0 );
29892 #elif DB_VERSION_MAJOR > 1
29893         db_appexit( NULL );
29894 #else
29895         (void) dbopen( NULL, 0, 0, 0, NULL);
29896 #endif
29897
29898   ;
29899   return 0;
29900 }
29901 _ACEOF
29902 rm -f conftest.$ac_objext conftest$ac_exeext
29903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29904   (eval $ac_link) 2>conftest.er1
29905   ac_status=$?
29906   grep -v '^ *+' conftest.er1 >conftest.err
29907   rm -f conftest.er1
29908   cat conftest.err >&5
29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910   (exit $ac_status); } &&
29911          { ac_try='test -z "$ac_c_werror_flag"
29912                          || test ! -s conftest.err'
29913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914   (eval $ac_try) 2>&5
29915   ac_status=$?
29916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917   (exit $ac_status); }; } &&
29918          { ac_try='test -s conftest$ac_exeext'
29919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920   (eval $ac_try) 2>&5
29921   ac_status=$?
29922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923   (exit $ac_status); }; }; then
29924   ol_cv_db_db_4_dot_1=yes
29925 else
29926   echo "$as_me: failed program was:" >&5
29927 sed 's/^/| /' conftest.$ac_ext >&5
29928
29929 ol_cv_db_db_4_dot_1=no
29930 fi
29931 rm -f conftest.err conftest.$ac_objext \
29932       conftest$ac_exeext conftest.$ac_ext
29933
29934         LIBS="$ol_LIBS"
29935
29936 fi
29937 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29938 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29939
29940         if test $ol_cv_db_db_4_dot_1 = yes ; then
29941                 ol_cv_lib_db=-ldb-4.1
29942         fi
29943 fi
29944
29945                 if test $ol_cv_lib_db = no ; then
29946         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29947 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29948 if test "${ol_cv_db_db_4_1+set}" = set; then
29949   echo $ECHO_N "(cached) $ECHO_C" >&6
29950 else
29951
29952         ol_DB_LIB=-ldb-4-1
29953         ol_LIBS=$LIBS
29954         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29955
29956         cat >conftest.$ac_ext <<_ACEOF
29957 /* confdefs.h.  */
29958 _ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h.  */
29962
29963 #ifdef HAVE_DB_185_H
29964 # include <db_185.h>
29965 #else
29966 # include <db.h>
29967 #endif
29968
29969 #ifndef DB_VERSION_MAJOR
29970 # define DB_VERSION_MAJOR 1
29971 #endif
29972
29973 #ifndef NULL
29974 #define NULL ((void*)0)
29975 #endif
29976
29977 int
29978 main ()
29979 {
29980
29981 #if DB_VERSION_MAJOR > 1
29982         {
29983                 char *version;
29984                 int major, minor, patch;
29985
29986                 version = db_version( &major, &minor, &patch );
29987
29988                 if( major != DB_VERSION_MAJOR ||
29989                         minor < DB_VERSION_MINOR )
29990                 {
29991                         printf("Berkeley DB version mismatch\n"
29992                                 "\theader: %s\n\tlibrary: %s\n",
29993                                 DB_VERSION_STRING, version);
29994                         return 1;
29995                 }
29996         }
29997 #endif
29998
29999 #if DB_VERSION_MAJOR > 2
30000         db_env_create( NULL, 0 );
30001 #elif DB_VERSION_MAJOR > 1
30002         db_appexit( NULL );
30003 #else
30004         (void) dbopen( NULL, 0, 0, 0, NULL);
30005 #endif
30006
30007   ;
30008   return 0;
30009 }
30010 _ACEOF
30011 rm -f conftest.$ac_objext conftest$ac_exeext
30012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30013   (eval $ac_link) 2>conftest.er1
30014   ac_status=$?
30015   grep -v '^ *+' conftest.er1 >conftest.err
30016   rm -f conftest.er1
30017   cat conftest.err >&5
30018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019   (exit $ac_status); } &&
30020          { ac_try='test -z "$ac_c_werror_flag"
30021                          || test ! -s conftest.err'
30022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023   (eval $ac_try) 2>&5
30024   ac_status=$?
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); }; } &&
30027          { ac_try='test -s conftest$ac_exeext'
30028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30029   (eval $ac_try) 2>&5
30030   ac_status=$?
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); }; }; then
30033   ol_cv_db_db_4_1=yes
30034 else
30035   echo "$as_me: failed program was:" >&5
30036 sed 's/^/| /' conftest.$ac_ext >&5
30037
30038 ol_cv_db_db_4_1=no
30039 fi
30040 rm -f conftest.err conftest.$ac_objext \
30041       conftest$ac_exeext conftest.$ac_ext
30042
30043         LIBS="$ol_LIBS"
30044
30045 fi
30046 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30047 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30048
30049         if test $ol_cv_db_db_4_1 = yes ; then
30050                 ol_cv_lib_db=-ldb-4-1
30051         fi
30052 fi
30053
30054         fi
30055         if test $ol_cv_lib_db = no ; then
30056         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30057 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30058 if test "${ol_cv_db_db_4+set}" = set; then
30059   echo $ECHO_N "(cached) $ECHO_C" >&6
30060 else
30061
30062         ol_DB_LIB=-ldb-4
30063         ol_LIBS=$LIBS
30064         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30065
30066         cat >conftest.$ac_ext <<_ACEOF
30067 /* confdefs.h.  */
30068 _ACEOF
30069 cat confdefs.h >>conftest.$ac_ext
30070 cat >>conftest.$ac_ext <<_ACEOF
30071 /* end confdefs.h.  */
30072
30073 #ifdef HAVE_DB_185_H
30074 # include <db_185.h>
30075 #else
30076 # include <db.h>
30077 #endif
30078
30079 #ifndef DB_VERSION_MAJOR
30080 # define DB_VERSION_MAJOR 1
30081 #endif
30082
30083 #ifndef NULL
30084 #define NULL ((void*)0)
30085 #endif
30086
30087 int
30088 main ()
30089 {
30090
30091 #if DB_VERSION_MAJOR > 1
30092         {
30093                 char *version;
30094                 int major, minor, patch;
30095
30096                 version = db_version( &major, &minor, &patch );
30097
30098                 if( major != DB_VERSION_MAJOR ||
30099                         minor < DB_VERSION_MINOR )
30100                 {
30101                         printf("Berkeley DB version mismatch\n"
30102                                 "\theader: %s\n\tlibrary: %s\n",
30103                                 DB_VERSION_STRING, version);
30104                         return 1;
30105                 }
30106         }
30107 #endif
30108
30109 #if DB_VERSION_MAJOR > 2
30110         db_env_create( NULL, 0 );
30111 #elif DB_VERSION_MAJOR > 1
30112         db_appexit( NULL );
30113 #else
30114         (void) dbopen( NULL, 0, 0, 0, NULL);
30115 #endif
30116
30117   ;
30118   return 0;
30119 }
30120 _ACEOF
30121 rm -f conftest.$ac_objext conftest$ac_exeext
30122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30123   (eval $ac_link) 2>conftest.er1
30124   ac_status=$?
30125   grep -v '^ *+' conftest.er1 >conftest.err
30126   rm -f conftest.er1
30127   cat conftest.err >&5
30128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129   (exit $ac_status); } &&
30130          { ac_try='test -z "$ac_c_werror_flag"
30131                          || test ! -s conftest.err'
30132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133   (eval $ac_try) 2>&5
30134   ac_status=$?
30135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136   (exit $ac_status); }; } &&
30137          { ac_try='test -s conftest$ac_exeext'
30138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139   (eval $ac_try) 2>&5
30140   ac_status=$?
30141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); }; }; then
30143   ol_cv_db_db_4=yes
30144 else
30145   echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30147
30148 ol_cv_db_db_4=no
30149 fi
30150 rm -f conftest.err conftest.$ac_objext \
30151       conftest$ac_exeext conftest.$ac_ext
30152
30153         LIBS="$ol_LIBS"
30154
30155 fi
30156 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30157 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30158
30159         if test $ol_cv_db_db_4 = yes ; then
30160                 ol_cv_lib_db=-ldb-4
30161         fi
30162 fi
30163
30164         if test $ol_cv_lib_db = no ; then
30165         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30166 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30167 if test "${ol_cv_db_db4+set}" = set; then
30168   echo $ECHO_N "(cached) $ECHO_C" >&6
30169 else
30170
30171         ol_DB_LIB=-ldb4
30172         ol_LIBS=$LIBS
30173         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30174
30175         cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h.  */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h.  */
30181
30182 #ifdef HAVE_DB_185_H
30183 # include <db_185.h>
30184 #else
30185 # include <db.h>
30186 #endif
30187
30188 #ifndef DB_VERSION_MAJOR
30189 # define DB_VERSION_MAJOR 1
30190 #endif
30191
30192 #ifndef NULL
30193 #define NULL ((void*)0)
30194 #endif
30195
30196 int
30197 main ()
30198 {
30199
30200 #if DB_VERSION_MAJOR > 1
30201         {
30202                 char *version;
30203                 int major, minor, patch;
30204
30205                 version = db_version( &major, &minor, &patch );
30206
30207                 if( major != DB_VERSION_MAJOR ||
30208                         minor < DB_VERSION_MINOR )
30209                 {
30210                         printf("Berkeley DB version mismatch\n"
30211                                 "\theader: %s\n\tlibrary: %s\n",
30212                                 DB_VERSION_STRING, version);
30213                         return 1;
30214                 }
30215         }
30216 #endif
30217
30218 #if DB_VERSION_MAJOR > 2
30219         db_env_create( NULL, 0 );
30220 #elif DB_VERSION_MAJOR > 1
30221         db_appexit( NULL );
30222 #else
30223         (void) dbopen( NULL, 0, 0, 0, NULL);
30224 #endif
30225
30226   ;
30227   return 0;
30228 }
30229 _ACEOF
30230 rm -f conftest.$ac_objext conftest$ac_exeext
30231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30232   (eval $ac_link) 2>conftest.er1
30233   ac_status=$?
30234   grep -v '^ *+' conftest.er1 >conftest.err
30235   rm -f conftest.er1
30236   cat conftest.err >&5
30237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238   (exit $ac_status); } &&
30239          { ac_try='test -z "$ac_c_werror_flag"
30240                          || test ! -s conftest.err'
30241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30242   (eval $ac_try) 2>&5
30243   ac_status=$?
30244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245   (exit $ac_status); }; } &&
30246          { ac_try='test -s conftest$ac_exeext'
30247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30248   (eval $ac_try) 2>&5
30249   ac_status=$?
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); }; }; then
30252   ol_cv_db_db4=yes
30253 else
30254   echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30256
30257 ol_cv_db_db4=no
30258 fi
30259 rm -f conftest.err conftest.$ac_objext \
30260       conftest$ac_exeext conftest.$ac_ext
30261
30262         LIBS="$ol_LIBS"
30263
30264 fi
30265 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30266 echo "${ECHO_T}$ol_cv_db_db4" >&6
30267
30268         if test $ol_cv_db_db4 = yes ; then
30269                 ol_cv_lib_db=-ldb4
30270         fi
30271 fi
30272
30273         if test $ol_cv_lib_db = no ; then
30274         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30275 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30276 if test "${ol_cv_db_db+set}" = set; then
30277   echo $ECHO_N "(cached) $ECHO_C" >&6
30278 else
30279
30280         ol_DB_LIB=-ldb
30281         ol_LIBS=$LIBS
30282         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30283
30284         cat >conftest.$ac_ext <<_ACEOF
30285 /* confdefs.h.  */
30286 _ACEOF
30287 cat confdefs.h >>conftest.$ac_ext
30288 cat >>conftest.$ac_ext <<_ACEOF
30289 /* end confdefs.h.  */
30290
30291 #ifdef HAVE_DB_185_H
30292 # include <db_185.h>
30293 #else
30294 # include <db.h>
30295 #endif
30296
30297 #ifndef DB_VERSION_MAJOR
30298 # define DB_VERSION_MAJOR 1
30299 #endif
30300
30301 #ifndef NULL
30302 #define NULL ((void*)0)
30303 #endif
30304
30305 int
30306 main ()
30307 {
30308
30309 #if DB_VERSION_MAJOR > 1
30310         {
30311                 char *version;
30312                 int major, minor, patch;
30313
30314                 version = db_version( &major, &minor, &patch );
30315
30316                 if( major != DB_VERSION_MAJOR ||
30317                         minor < DB_VERSION_MINOR )
30318                 {
30319                         printf("Berkeley DB version mismatch\n"
30320                                 "\theader: %s\n\tlibrary: %s\n",
30321                                 DB_VERSION_STRING, version);
30322                         return 1;
30323                 }
30324         }
30325 #endif
30326
30327 #if DB_VERSION_MAJOR > 2
30328         db_env_create( NULL, 0 );
30329 #elif DB_VERSION_MAJOR > 1
30330         db_appexit( NULL );
30331 #else
30332         (void) dbopen( NULL, 0, 0, 0, NULL);
30333 #endif
30334
30335   ;
30336   return 0;
30337 }
30338 _ACEOF
30339 rm -f conftest.$ac_objext conftest$ac_exeext
30340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30341   (eval $ac_link) 2>conftest.er1
30342   ac_status=$?
30343   grep -v '^ *+' conftest.er1 >conftest.err
30344   rm -f conftest.er1
30345   cat conftest.err >&5
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); } &&
30348          { ac_try='test -z "$ac_c_werror_flag"
30349                          || test ! -s conftest.err'
30350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351   (eval $ac_try) 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; } &&
30355          { ac_try='test -s conftest$ac_exeext'
30356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357   (eval $ac_try) 2>&5
30358   ac_status=$?
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); }; }; then
30361   ol_cv_db_db=yes
30362 else
30363   echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30365
30366 ol_cv_db_db=no
30367 fi
30368 rm -f conftest.err conftest.$ac_objext \
30369       conftest$ac_exeext conftest.$ac_ext
30370
30371         LIBS="$ol_LIBS"
30372
30373 fi
30374 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30375 echo "${ECHO_T}$ol_cv_db_db" >&6
30376
30377         if test $ol_cv_db_db = yes ; then
30378                 ol_cv_lib_db=-ldb
30379         fi
30380 fi
30381
30382
30383 elif test $ol_cv_bdb_major = 3 ; then
30384         if test $ol_cv_lib_db = no ; then
30385         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30386 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30387 if test "${ol_cv_db_db3+set}" = set; then
30388   echo $ECHO_N "(cached) $ECHO_C" >&6
30389 else
30390
30391         ol_DB_LIB=-ldb3
30392         ol_LIBS=$LIBS
30393         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30394
30395         cat >conftest.$ac_ext <<_ACEOF
30396 /* confdefs.h.  */
30397 _ACEOF
30398 cat confdefs.h >>conftest.$ac_ext
30399 cat >>conftest.$ac_ext <<_ACEOF
30400 /* end confdefs.h.  */
30401
30402 #ifdef HAVE_DB_185_H
30403 # include <db_185.h>
30404 #else
30405 # include <db.h>
30406 #endif
30407
30408 #ifndef DB_VERSION_MAJOR
30409 # define DB_VERSION_MAJOR 1
30410 #endif
30411
30412 #ifndef NULL
30413 #define NULL ((void*)0)
30414 #endif
30415
30416 int
30417 main ()
30418 {
30419
30420 #if DB_VERSION_MAJOR > 1
30421         {
30422                 char *version;
30423                 int major, minor, patch;
30424
30425                 version = db_version( &major, &minor, &patch );
30426
30427                 if( major != DB_VERSION_MAJOR ||
30428                         minor < DB_VERSION_MINOR )
30429                 {
30430                         printf("Berkeley DB version mismatch\n"
30431                                 "\theader: %s\n\tlibrary: %s\n",
30432                                 DB_VERSION_STRING, version);
30433                         return 1;
30434                 }
30435         }
30436 #endif
30437
30438 #if DB_VERSION_MAJOR > 2
30439         db_env_create( NULL, 0 );
30440 #elif DB_VERSION_MAJOR > 1
30441         db_appexit( NULL );
30442 #else
30443         (void) dbopen( NULL, 0, 0, 0, NULL);
30444 #endif
30445
30446   ;
30447   return 0;
30448 }
30449 _ACEOF
30450 rm -f conftest.$ac_objext conftest$ac_exeext
30451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30452   (eval $ac_link) 2>conftest.er1
30453   ac_status=$?
30454   grep -v '^ *+' conftest.er1 >conftest.err
30455   rm -f conftest.er1
30456   cat conftest.err >&5
30457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458   (exit $ac_status); } &&
30459          { ac_try='test -z "$ac_c_werror_flag"
30460                          || test ! -s conftest.err'
30461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30462   (eval $ac_try) 2>&5
30463   ac_status=$?
30464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465   (exit $ac_status); }; } &&
30466          { ac_try='test -s conftest$ac_exeext'
30467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30468   (eval $ac_try) 2>&5
30469   ac_status=$?
30470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30471   (exit $ac_status); }; }; then
30472   ol_cv_db_db3=yes
30473 else
30474   echo "$as_me: failed program was:" >&5
30475 sed 's/^/| /' conftest.$ac_ext >&5
30476
30477 ol_cv_db_db3=no
30478 fi
30479 rm -f conftest.err conftest.$ac_objext \
30480       conftest$ac_exeext conftest.$ac_ext
30481
30482         LIBS="$ol_LIBS"
30483
30484 fi
30485 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30486 echo "${ECHO_T}$ol_cv_db_db3" >&6
30487
30488         if test $ol_cv_db_db3 = yes ; then
30489                 ol_cv_lib_db=-ldb3
30490         fi
30491 fi
30492
30493         if test $ol_cv_lib_db = no ; then
30494         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30495 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30496 if test "${ol_cv_db_db_3+set}" = set; then
30497   echo $ECHO_N "(cached) $ECHO_C" >&6
30498 else
30499
30500         ol_DB_LIB=-ldb-3
30501         ol_LIBS=$LIBS
30502         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30503
30504         cat >conftest.$ac_ext <<_ACEOF
30505 /* confdefs.h.  */
30506 _ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h.  */
30510
30511 #ifdef HAVE_DB_185_H
30512 # include <db_185.h>
30513 #else
30514 # include <db.h>
30515 #endif
30516
30517 #ifndef DB_VERSION_MAJOR
30518 # define DB_VERSION_MAJOR 1
30519 #endif
30520
30521 #ifndef NULL
30522 #define NULL ((void*)0)
30523 #endif
30524
30525 int
30526 main ()
30527 {
30528
30529 #if DB_VERSION_MAJOR > 1
30530         {
30531                 char *version;
30532                 int major, minor, patch;
30533
30534                 version = db_version( &major, &minor, &patch );
30535
30536                 if( major != DB_VERSION_MAJOR ||
30537                         minor < DB_VERSION_MINOR )
30538                 {
30539                         printf("Berkeley DB version mismatch\n"
30540                                 "\theader: %s\n\tlibrary: %s\n",
30541                                 DB_VERSION_STRING, version);
30542                         return 1;
30543                 }
30544         }
30545 #endif
30546
30547 #if DB_VERSION_MAJOR > 2
30548         db_env_create( NULL, 0 );
30549 #elif DB_VERSION_MAJOR > 1
30550         db_appexit( NULL );
30551 #else
30552         (void) dbopen( NULL, 0, 0, 0, NULL);
30553 #endif
30554
30555   ;
30556   return 0;
30557 }
30558 _ACEOF
30559 rm -f conftest.$ac_objext conftest$ac_exeext
30560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30561   (eval $ac_link) 2>conftest.er1
30562   ac_status=$?
30563   grep -v '^ *+' conftest.er1 >conftest.err
30564   rm -f conftest.er1
30565   cat conftest.err >&5
30566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567   (exit $ac_status); } &&
30568          { ac_try='test -z "$ac_c_werror_flag"
30569                          || test ! -s conftest.err'
30570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571   (eval $ac_try) 2>&5
30572   ac_status=$?
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); }; } &&
30575          { ac_try='test -s conftest$ac_exeext'
30576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30577   (eval $ac_try) 2>&5
30578   ac_status=$?
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); }; }; then
30581   ol_cv_db_db_3=yes
30582 else
30583   echo "$as_me: failed program was:" >&5
30584 sed 's/^/| /' conftest.$ac_ext >&5
30585
30586 ol_cv_db_db_3=no
30587 fi
30588 rm -f conftest.err conftest.$ac_objext \
30589       conftest$ac_exeext conftest.$ac_ext
30590
30591         LIBS="$ol_LIBS"
30592
30593 fi
30594 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30595 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30596
30597         if test $ol_cv_db_db_3 = yes ; then
30598                 ol_cv_lib_db=-ldb-3
30599         fi
30600 fi
30601
30602
30603 elif test $ol_cv_bdb_major = 2 ; then
30604         if test $ol_cv_lib_db = no ; then
30605         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30606 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30607 if test "${ol_cv_db_db2+set}" = set; then
30608   echo $ECHO_N "(cached) $ECHO_C" >&6
30609 else
30610
30611         ol_DB_LIB=-ldb2
30612         ol_LIBS=$LIBS
30613         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30614
30615         cat >conftest.$ac_ext <<_ACEOF
30616 /* confdefs.h.  */
30617 _ACEOF
30618 cat confdefs.h >>conftest.$ac_ext
30619 cat >>conftest.$ac_ext <<_ACEOF
30620 /* end confdefs.h.  */
30621
30622 #ifdef HAVE_DB_185_H
30623 # include <db_185.h>
30624 #else
30625 # include <db.h>
30626 #endif
30627
30628 #ifndef DB_VERSION_MAJOR
30629 # define DB_VERSION_MAJOR 1
30630 #endif
30631
30632 #ifndef NULL
30633 #define NULL ((void*)0)
30634 #endif
30635
30636 int
30637 main ()
30638 {
30639
30640 #if DB_VERSION_MAJOR > 1
30641         {
30642                 char *version;
30643                 int major, minor, patch;
30644
30645                 version = db_version( &major, &minor, &patch );
30646
30647                 if( major != DB_VERSION_MAJOR ||
30648                         minor < DB_VERSION_MINOR )
30649                 {
30650                         printf("Berkeley DB version mismatch\n"
30651                                 "\theader: %s\n\tlibrary: %s\n",
30652                                 DB_VERSION_STRING, version);
30653                         return 1;
30654                 }
30655         }
30656 #endif
30657
30658 #if DB_VERSION_MAJOR > 2
30659         db_env_create( NULL, 0 );
30660 #elif DB_VERSION_MAJOR > 1
30661         db_appexit( NULL );
30662 #else
30663         (void) dbopen( NULL, 0, 0, 0, NULL);
30664 #endif
30665
30666   ;
30667   return 0;
30668 }
30669 _ACEOF
30670 rm -f conftest.$ac_objext conftest$ac_exeext
30671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30672   (eval $ac_link) 2>conftest.er1
30673   ac_status=$?
30674   grep -v '^ *+' conftest.er1 >conftest.err
30675   rm -f conftest.er1
30676   cat conftest.err >&5
30677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678   (exit $ac_status); } &&
30679          { ac_try='test -z "$ac_c_werror_flag"
30680                          || test ! -s conftest.err'
30681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682   (eval $ac_try) 2>&5
30683   ac_status=$?
30684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685   (exit $ac_status); }; } &&
30686          { ac_try='test -s conftest$ac_exeext'
30687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688   (eval $ac_try) 2>&5
30689   ac_status=$?
30690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691   (exit $ac_status); }; }; then
30692   ol_cv_db_db2=yes
30693 else
30694   echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30696
30697 ol_cv_db_db2=no
30698 fi
30699 rm -f conftest.err conftest.$ac_objext \
30700       conftest$ac_exeext conftest.$ac_ext
30701
30702         LIBS="$ol_LIBS"
30703
30704 fi
30705 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30706 echo "${ECHO_T}$ol_cv_db_db2" >&6
30707
30708         if test $ol_cv_db_db2 = yes ; then
30709                 ol_cv_lib_db=-ldb2
30710         fi
30711 fi
30712
30713         if test $ol_cv_lib_db = no ; then
30714         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30715 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30716 if test "${ol_cv_db_db_2+set}" = set; then
30717   echo $ECHO_N "(cached) $ECHO_C" >&6
30718 else
30719
30720         ol_DB_LIB=-ldb-2
30721         ol_LIBS=$LIBS
30722         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30723
30724         cat >conftest.$ac_ext <<_ACEOF
30725 /* confdefs.h.  */
30726 _ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h.  */
30730
30731 #ifdef HAVE_DB_185_H
30732 # include <db_185.h>
30733 #else
30734 # include <db.h>
30735 #endif
30736
30737 #ifndef DB_VERSION_MAJOR
30738 # define DB_VERSION_MAJOR 1
30739 #endif
30740
30741 #ifndef NULL
30742 #define NULL ((void*)0)
30743 #endif
30744
30745 int
30746 main ()
30747 {
30748
30749 #if DB_VERSION_MAJOR > 1
30750         {
30751                 char *version;
30752                 int major, minor, patch;
30753
30754                 version = db_version( &major, &minor, &patch );
30755
30756                 if( major != DB_VERSION_MAJOR ||
30757                         minor < DB_VERSION_MINOR )
30758                 {
30759                         printf("Berkeley DB version mismatch\n"
30760                                 "\theader: %s\n\tlibrary: %s\n",
30761                                 DB_VERSION_STRING, version);
30762                         return 1;
30763                 }
30764         }
30765 #endif
30766
30767 #if DB_VERSION_MAJOR > 2
30768         db_env_create( NULL, 0 );
30769 #elif DB_VERSION_MAJOR > 1
30770         db_appexit( NULL );
30771 #else
30772         (void) dbopen( NULL, 0, 0, 0, NULL);
30773 #endif
30774
30775   ;
30776   return 0;
30777 }
30778 _ACEOF
30779 rm -f conftest.$ac_objext conftest$ac_exeext
30780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30781   (eval $ac_link) 2>conftest.er1
30782   ac_status=$?
30783   grep -v '^ *+' conftest.er1 >conftest.err
30784   rm -f conftest.er1
30785   cat conftest.err >&5
30786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); } &&
30788          { ac_try='test -z "$ac_c_werror_flag"
30789                          || test ! -s conftest.err'
30790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30791   (eval $ac_try) 2>&5
30792   ac_status=$?
30793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); }; } &&
30795          { ac_try='test -s conftest$ac_exeext'
30796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797   (eval $ac_try) 2>&5
30798   ac_status=$?
30799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800   (exit $ac_status); }; }; then
30801   ol_cv_db_db_2=yes
30802 else
30803   echo "$as_me: failed program was:" >&5
30804 sed 's/^/| /' conftest.$ac_ext >&5
30805
30806 ol_cv_db_db_2=no
30807 fi
30808 rm -f conftest.err conftest.$ac_objext \
30809       conftest$ac_exeext conftest.$ac_ext
30810
30811         LIBS="$ol_LIBS"
30812
30813 fi
30814 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30815 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30816
30817         if test $ol_cv_db_db_2 = yes ; then
30818                 ol_cv_lib_db=-ldb-2
30819         fi
30820 fi
30821
30822
30823 elif test $ol_cv_bdb_major = 1 ; then
30824         if test $ol_cv_lib_db = no ; then
30825         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30826 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30827 if test "${ol_cv_db_db1+set}" = set; then
30828   echo $ECHO_N "(cached) $ECHO_C" >&6
30829 else
30830
30831         ol_DB_LIB=-ldb1
30832         ol_LIBS=$LIBS
30833         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30834
30835         cat >conftest.$ac_ext <<_ACEOF
30836 /* confdefs.h.  */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h.  */
30841
30842 #ifdef HAVE_DB_185_H
30843 # include <db_185.h>
30844 #else
30845 # include <db.h>
30846 #endif
30847
30848 #ifndef DB_VERSION_MAJOR
30849 # define DB_VERSION_MAJOR 1
30850 #endif
30851
30852 #ifndef NULL
30853 #define NULL ((void*)0)
30854 #endif
30855
30856 int
30857 main ()
30858 {
30859
30860 #if DB_VERSION_MAJOR > 1
30861         {
30862                 char *version;
30863                 int major, minor, patch;
30864
30865                 version = db_version( &major, &minor, &patch );
30866
30867                 if( major != DB_VERSION_MAJOR ||
30868                         minor < DB_VERSION_MINOR )
30869                 {
30870                         printf("Berkeley DB version mismatch\n"
30871                                 "\theader: %s\n\tlibrary: %s\n",
30872                                 DB_VERSION_STRING, version);
30873                         return 1;
30874                 }
30875         }
30876 #endif
30877
30878 #if DB_VERSION_MAJOR > 2
30879         db_env_create( NULL, 0 );
30880 #elif DB_VERSION_MAJOR > 1
30881         db_appexit( NULL );
30882 #else
30883         (void) dbopen( NULL, 0, 0, 0, NULL);
30884 #endif
30885
30886   ;
30887   return 0;
30888 }
30889 _ACEOF
30890 rm -f conftest.$ac_objext conftest$ac_exeext
30891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30892   (eval $ac_link) 2>conftest.er1
30893   ac_status=$?
30894   grep -v '^ *+' conftest.er1 >conftest.err
30895   rm -f conftest.er1
30896   cat conftest.err >&5
30897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898   (exit $ac_status); } &&
30899          { ac_try='test -z "$ac_c_werror_flag"
30900                          || test ! -s conftest.err'
30901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30902   (eval $ac_try) 2>&5
30903   ac_status=$?
30904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905   (exit $ac_status); }; } &&
30906          { ac_try='test -s conftest$ac_exeext'
30907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908   (eval $ac_try) 2>&5
30909   ac_status=$?
30910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911   (exit $ac_status); }; }; then
30912   ol_cv_db_db1=yes
30913 else
30914   echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30916
30917 ol_cv_db_db1=no
30918 fi
30919 rm -f conftest.err conftest.$ac_objext \
30920       conftest$ac_exeext conftest.$ac_ext
30921
30922         LIBS="$ol_LIBS"
30923
30924 fi
30925 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30926 echo "${ECHO_T}$ol_cv_db_db1" >&6
30927
30928         if test $ol_cv_db_db1 = yes ; then
30929                 ol_cv_lib_db=-ldb1
30930         fi
30931 fi
30932
30933         if test $ol_cv_lib_db = no ; then
30934         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30935 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30936 if test "${ol_cv_db_db_1+set}" = set; then
30937   echo $ECHO_N "(cached) $ECHO_C" >&6
30938 else
30939
30940         ol_DB_LIB=-ldb-1
30941         ol_LIBS=$LIBS
30942         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30943
30944         cat >conftest.$ac_ext <<_ACEOF
30945 /* confdefs.h.  */
30946 _ACEOF
30947 cat confdefs.h >>conftest.$ac_ext
30948 cat >>conftest.$ac_ext <<_ACEOF
30949 /* end confdefs.h.  */
30950
30951 #ifdef HAVE_DB_185_H
30952 # include <db_185.h>
30953 #else
30954 # include <db.h>
30955 #endif
30956
30957 #ifndef DB_VERSION_MAJOR
30958 # define DB_VERSION_MAJOR 1
30959 #endif
30960
30961 #ifndef NULL
30962 #define NULL ((void*)0)
30963 #endif
30964
30965 int
30966 main ()
30967 {
30968
30969 #if DB_VERSION_MAJOR > 1
30970         {
30971                 char *version;
30972                 int major, minor, patch;
30973
30974                 version = db_version( &major, &minor, &patch );
30975
30976                 if( major != DB_VERSION_MAJOR ||
30977                         minor < DB_VERSION_MINOR )
30978                 {
30979                         printf("Berkeley DB version mismatch\n"
30980                                 "\theader: %s\n\tlibrary: %s\n",
30981                                 DB_VERSION_STRING, version);
30982                         return 1;
30983                 }
30984         }
30985 #endif
30986
30987 #if DB_VERSION_MAJOR > 2
30988         db_env_create( NULL, 0 );
30989 #elif DB_VERSION_MAJOR > 1
30990         db_appexit( NULL );
30991 #else
30992         (void) dbopen( NULL, 0, 0, 0, NULL);
30993 #endif
30994
30995   ;
30996   return 0;
30997 }
30998 _ACEOF
30999 rm -f conftest.$ac_objext conftest$ac_exeext
31000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31001   (eval $ac_link) 2>conftest.er1
31002   ac_status=$?
31003   grep -v '^ *+' conftest.er1 >conftest.err
31004   rm -f conftest.er1
31005   cat conftest.err >&5
31006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007   (exit $ac_status); } &&
31008          { ac_try='test -z "$ac_c_werror_flag"
31009                          || test ! -s conftest.err'
31010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31011   (eval $ac_try) 2>&5
31012   ac_status=$?
31013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014   (exit $ac_status); }; } &&
31015          { ac_try='test -s conftest$ac_exeext'
31016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31017   (eval $ac_try) 2>&5
31018   ac_status=$?
31019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020   (exit $ac_status); }; }; then
31021   ol_cv_db_db_1=yes
31022 else
31023   echo "$as_me: failed program was:" >&5
31024 sed 's/^/| /' conftest.$ac_ext >&5
31025
31026 ol_cv_db_db_1=no
31027 fi
31028 rm -f conftest.err conftest.$ac_objext \
31029       conftest$ac_exeext conftest.$ac_ext
31030
31031         LIBS="$ol_LIBS"
31032
31033 fi
31034 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31035 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31036
31037         if test $ol_cv_db_db_1 = yes ; then
31038                 ol_cv_lib_db=-ldb-1
31039         fi
31040 fi
31041
31042 fi
31043 if test $ol_cv_lib_db = no ; then
31044         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31045 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31046 if test "${ol_cv_db_none+set}" = set; then
31047   echo $ECHO_N "(cached) $ECHO_C" >&6
31048 else
31049
31050         ol_DB_LIB=
31051         ol_LIBS=$LIBS
31052         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31053
31054         cat >conftest.$ac_ext <<_ACEOF
31055 /* confdefs.h.  */
31056 _ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h.  */
31060
31061 #ifdef HAVE_DB_185_H
31062 # include <db_185.h>
31063 #else
31064 # include <db.h>
31065 #endif
31066
31067 #ifndef DB_VERSION_MAJOR
31068 # define DB_VERSION_MAJOR 1
31069 #endif
31070
31071 #ifndef NULL
31072 #define NULL ((void*)0)
31073 #endif
31074
31075 int
31076 main ()
31077 {
31078
31079 #if DB_VERSION_MAJOR > 1
31080         {
31081                 char *version;
31082                 int major, minor, patch;
31083
31084                 version = db_version( &major, &minor, &patch );
31085
31086                 if( major != DB_VERSION_MAJOR ||
31087                         minor < DB_VERSION_MINOR )
31088                 {
31089                         printf("Berkeley DB version mismatch\n"
31090                                 "\theader: %s\n\tlibrary: %s\n",
31091                                 DB_VERSION_STRING, version);
31092                         return 1;
31093                 }
31094         }
31095 #endif
31096
31097 #if DB_VERSION_MAJOR > 2
31098         db_env_create( NULL, 0 );
31099 #elif DB_VERSION_MAJOR > 1
31100         db_appexit( NULL );
31101 #else
31102         (void) dbopen( NULL, 0, 0, 0, NULL);
31103 #endif
31104
31105   ;
31106   return 0;
31107 }
31108 _ACEOF
31109 rm -f conftest.$ac_objext conftest$ac_exeext
31110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31111   (eval $ac_link) 2>conftest.er1
31112   ac_status=$?
31113   grep -v '^ *+' conftest.er1 >conftest.err
31114   rm -f conftest.er1
31115   cat conftest.err >&5
31116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117   (exit $ac_status); } &&
31118          { ac_try='test -z "$ac_c_werror_flag"
31119                          || test ! -s conftest.err'
31120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121   (eval $ac_try) 2>&5
31122   ac_status=$?
31123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124   (exit $ac_status); }; } &&
31125          { ac_try='test -s conftest$ac_exeext'
31126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31127   (eval $ac_try) 2>&5
31128   ac_status=$?
31129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130   (exit $ac_status); }; }; then
31131   ol_cv_db_none=yes
31132 else
31133   echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.$ac_ext >&5
31135
31136 ol_cv_db_none=no
31137 fi
31138 rm -f conftest.err conftest.$ac_objext \
31139       conftest$ac_exeext conftest.$ac_ext
31140
31141         LIBS="$ol_LIBS"
31142
31143 fi
31144 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31145 echo "${ECHO_T}$ol_cv_db_none" >&6
31146
31147         if test $ol_cv_db_none = yes ; then
31148                 ol_cv_lib_db=yes
31149         fi
31150 fi
31151
31152
31153                 if test "$ol_cv_lib_db" != no ; then
31154                         ol_cv_berkeley_db=yes
31155                 fi
31156         fi
31157 fi
31158
31159         else
31160                 ol_cv_berkeley_db=no
31161
31162 for ac_header in db.h
31163 do
31164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31166   echo "$as_me:$LINENO: checking for $ac_header" >&5
31167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31169   echo $ECHO_N "(cached) $ECHO_C" >&6
31170 fi
31171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31173 else
31174   # Is the header compilable?
31175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31177 cat >conftest.$ac_ext <<_ACEOF
31178 /* confdefs.h.  */
31179 _ACEOF
31180 cat confdefs.h >>conftest.$ac_ext
31181 cat >>conftest.$ac_ext <<_ACEOF
31182 /* end confdefs.h.  */
31183 $ac_includes_default
31184 #include <$ac_header>
31185 _ACEOF
31186 rm -f conftest.$ac_objext
31187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31188   (eval $ac_compile) 2>conftest.er1
31189   ac_status=$?
31190   grep -v '^ *+' conftest.er1 >conftest.err
31191   rm -f conftest.er1
31192   cat conftest.err >&5
31193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194   (exit $ac_status); } &&
31195          { ac_try='test -z "$ac_c_werror_flag"
31196                          || test ! -s conftest.err'
31197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198   (eval $ac_try) 2>&5
31199   ac_status=$?
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); }; } &&
31202          { ac_try='test -s conftest.$ac_objext'
31203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31204   (eval $ac_try) 2>&5
31205   ac_status=$?
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); }; }; then
31208   ac_header_compiler=yes
31209 else
31210   echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31212
31213 ac_header_compiler=no
31214 fi
31215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31217 echo "${ECHO_T}$ac_header_compiler" >&6
31218
31219 # Is the header present?
31220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31222 cat >conftest.$ac_ext <<_ACEOF
31223 /* confdefs.h.  */
31224 _ACEOF
31225 cat confdefs.h >>conftest.$ac_ext
31226 cat >>conftest.$ac_ext <<_ACEOF
31227 /* end confdefs.h.  */
31228 #include <$ac_header>
31229 _ACEOF
31230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31232   ac_status=$?
31233   grep -v '^ *+' conftest.er1 >conftest.err
31234   rm -f conftest.er1
31235   cat conftest.err >&5
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); } >/dev/null; then
31238   if test -s conftest.err; then
31239     ac_cpp_err=$ac_c_preproc_warn_flag
31240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31241   else
31242     ac_cpp_err=
31243   fi
31244 else
31245   ac_cpp_err=yes
31246 fi
31247 if test -z "$ac_cpp_err"; then
31248   ac_header_preproc=yes
31249 else
31250   echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31252
31253   ac_header_preproc=no
31254 fi
31255 rm -f conftest.err conftest.$ac_ext
31256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31257 echo "${ECHO_T}$ac_header_preproc" >&6
31258
31259 # So?  What about this header?
31260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31261   yes:no: )
31262     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31266     ac_header_preproc=yes
31267     ;;
31268   no:yes:* )
31269     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31271     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31272 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31273     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31275     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31276 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31279     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31281     (
31282       cat <<\_ASBOX
31283 ## --------------------------------------------- ##
31284 ## Report this to <http://www.openldap.org/its/> ##
31285 ## --------------------------------------------- ##
31286 _ASBOX
31287     ) |
31288       sed "s/^/$as_me: WARNING:     /" >&2
31289     ;;
31290 esac
31291 echo "$as_me:$LINENO: checking for $ac_header" >&5
31292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31294   echo $ECHO_N "(cached) $ECHO_C" >&6
31295 else
31296   eval "$as_ac_Header=\$ac_header_preproc"
31297 fi
31298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31300
31301 fi
31302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31303   cat >>confdefs.h <<_ACEOF
31304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31305 _ACEOF
31306
31307 fi
31308
31309 done
31310
31311 if test $ac_cv_header_db_h = yes; then
31312         ol_cv_lib_db=no
31313
31314 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31315 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31316 if test "${ol_cv_bdb_major+set}" = set; then
31317   echo $ECHO_N "(cached) $ECHO_C" >&6
31318 else
31319
31320         ol_cv_bdb_major=0
31321         if test $ol_cv_bdb_major = 0 ; then
31322                 cat >conftest.$ac_ext <<_ACEOF
31323 /* confdefs.h.  */
31324 _ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h.  */
31328
31329 #include <db.h>
31330 #ifndef DB_VERSION_MAJOR
31331 #       define DB_VERSION_MAJOR 1
31332 #endif
31333 #if DB_VERSION_MAJOR == 4
31334 __db_version
31335 #endif
31336
31337 _ACEOF
31338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31339   $EGREP "__db_version" >/dev/null 2>&1; then
31340   ol_cv_bdb_major=4
31341 else
31342   :
31343 fi
31344 rm -f conftest*
31345
31346         fi
31347         if test $ol_cv_bdb_major = 0 ; then
31348                 cat >conftest.$ac_ext <<_ACEOF
31349 /* confdefs.h.  */
31350 _ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h.  */
31354
31355 #include <db.h>
31356 #ifndef DB_VERSION_MAJOR
31357 #       define DB_VERSION_MAJOR 1
31358 #endif
31359 #if DB_VERSION_MAJOR == 3
31360 __db_version
31361 #endif
31362
31363 _ACEOF
31364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31365   $EGREP "__db_version" >/dev/null 2>&1; then
31366   ol_cv_bdb_major=3
31367 else
31368   :
31369 fi
31370 rm -f conftest*
31371
31372         fi
31373         if test $ol_cv_bdb_major = 0 ; then
31374                 cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380
31381 #include <db.h>
31382 #ifndef DB_VERSION_MAJOR
31383 #       define DB_VERSION_MAJOR 1
31384 #endif
31385 #if DB_VERSION_MAJOR == 2
31386 __db_version
31387 #endif
31388
31389 _ACEOF
31390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31391   $EGREP "__db_version" >/dev/null 2>&1; then
31392   ol_cv_bdb_major=2
31393 else
31394   :
31395 fi
31396 rm -f conftest*
31397
31398         fi
31399         if test $ol_cv_bdb_major = 0 ; then
31400                 cat >conftest.$ac_ext <<_ACEOF
31401 /* confdefs.h.  */
31402 _ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h.  */
31406
31407 #include <db.h>
31408 #ifndef DB_VERSION_MAJOR
31409 #       define DB_VERSION_MAJOR 1
31410 #endif
31411 #if DB_VERSION_MAJOR == 1
31412 __db_version
31413 #endif
31414
31415 _ACEOF
31416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31417   $EGREP "__db_version" >/dev/null 2>&1; then
31418   ol_cv_bdb_major=1
31419 else
31420   :
31421 fi
31422 rm -f conftest*
31423
31424         fi
31425
31426         if test $ol_cv_bdb_major = 0 ; then
31427                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31428 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31429    { (exit 1); exit 1; }; }
31430         fi
31431
31432 fi
31433 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31434 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31435
31436 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31437 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31438 if test "${ol_cv_bdb_minor+set}" = set; then
31439   echo $ECHO_N "(cached) $ECHO_C" >&6
31440 else
31441
31442         ol_cv_bdb_minor=0
31443         if test $ol_cv_bdb_minor = 0 ; then
31444                 cat >conftest.$ac_ext <<_ACEOF
31445 /* confdefs.h.  */
31446 _ACEOF
31447 cat confdefs.h >>conftest.$ac_ext
31448 cat >>conftest.$ac_ext <<_ACEOF
31449 /* end confdefs.h.  */
31450
31451 #include <db.h>
31452 #ifndef DB_VERSION_MINOR
31453 #       define DB_VERSION_MINOR 0
31454 #endif
31455 #if DB_VERSION_MINOR == 9
31456 __db_version
31457 #endif
31458
31459 _ACEOF
31460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31461   $EGREP "__db_version" >/dev/null 2>&1; then
31462   ol_cv_bdb_minor=9
31463 else
31464   :
31465 fi
31466 rm -f conftest*
31467
31468         fi
31469         if test $ol_cv_bdb_minor = 0 ; then
31470                 cat >conftest.$ac_ext <<_ACEOF
31471 /* confdefs.h.  */
31472 _ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h.  */
31476
31477 #include <db.h>
31478 #ifndef DB_VERSION_MINOR
31479 #       define DB_VERSION_MINOR 0
31480 #endif
31481 #if DB_VERSION_MINOR == 8
31482 __db_version
31483 #endif
31484
31485 _ACEOF
31486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31487   $EGREP "__db_version" >/dev/null 2>&1; then
31488   ol_cv_bdb_minor=8
31489 else
31490   :
31491 fi
31492 rm -f conftest*
31493
31494         fi
31495         if test $ol_cv_bdb_minor = 0 ; then
31496                 cat >conftest.$ac_ext <<_ACEOF
31497 /* confdefs.h.  */
31498 _ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h.  */
31502
31503 #include <db.h>
31504 #ifndef DB_VERSION_MINOR
31505 #       define DB_VERSION_MINOR 0
31506 #endif
31507 #if DB_VERSION_MINOR == 7
31508 __db_version
31509 #endif
31510
31511 _ACEOF
31512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31513   $EGREP "__db_version" >/dev/null 2>&1; then
31514   ol_cv_bdb_minor=7
31515 else
31516   :
31517 fi
31518 rm -f conftest*
31519
31520         fi
31521         if test $ol_cv_bdb_minor = 0 ; then
31522                 cat >conftest.$ac_ext <<_ACEOF
31523 /* confdefs.h.  */
31524 _ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h.  */
31528
31529 #include <db.h>
31530 #ifndef DB_VERSION_MINOR
31531 #       define DB_VERSION_MINOR 0
31532 #endif
31533 #if DB_VERSION_MINOR == 6
31534 __db_version
31535 #endif
31536
31537 _ACEOF
31538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31539   $EGREP "__db_version" >/dev/null 2>&1; then
31540   ol_cv_bdb_minor=6
31541 else
31542   :
31543 fi
31544 rm -f conftest*
31545
31546         fi
31547         if test $ol_cv_bdb_minor = 0 ; then
31548                 cat >conftest.$ac_ext <<_ACEOF
31549 /* confdefs.h.  */
31550 _ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h.  */
31554
31555 #include <db.h>
31556 #ifndef DB_VERSION_MINOR
31557 #       define DB_VERSION_MINOR 0
31558 #endif
31559 #if DB_VERSION_MINOR == 5
31560 __db_version
31561 #endif
31562
31563 _ACEOF
31564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31565   $EGREP "__db_version" >/dev/null 2>&1; then
31566   ol_cv_bdb_minor=5
31567 else
31568   :
31569 fi
31570 rm -f conftest*
31571
31572         fi
31573         if test $ol_cv_bdb_minor = 0 ; then
31574                 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h.  */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h.  */
31580
31581 #include <db.h>
31582 #ifndef DB_VERSION_MINOR
31583 #       define DB_VERSION_MINOR 0
31584 #endif
31585 #if DB_VERSION_MINOR == 4
31586 __db_version
31587 #endif
31588
31589 _ACEOF
31590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31591   $EGREP "__db_version" >/dev/null 2>&1; then
31592   ol_cv_bdb_minor=4
31593 else
31594   :
31595 fi
31596 rm -f conftest*
31597
31598         fi
31599         if test $ol_cv_bdb_minor = 0 ; then
31600                 cat >conftest.$ac_ext <<_ACEOF
31601 /* confdefs.h.  */
31602 _ACEOF
31603 cat confdefs.h >>conftest.$ac_ext
31604 cat >>conftest.$ac_ext <<_ACEOF
31605 /* end confdefs.h.  */
31606
31607 #include <db.h>
31608 #ifndef DB_VERSION_MINOR
31609 #       define DB_VERSION_MINOR 0
31610 #endif
31611 #if DB_VERSION_MINOR == 3
31612 __db_version
31613 #endif
31614
31615 _ACEOF
31616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31617   $EGREP "__db_version" >/dev/null 2>&1; then
31618   ol_cv_bdb_minor=3
31619 else
31620   :
31621 fi
31622 rm -f conftest*
31623
31624         fi
31625         if test $ol_cv_bdb_minor = 0 ; then
31626                 cat >conftest.$ac_ext <<_ACEOF
31627 /* confdefs.h.  */
31628 _ACEOF
31629 cat confdefs.h >>conftest.$ac_ext
31630 cat >>conftest.$ac_ext <<_ACEOF
31631 /* end confdefs.h.  */
31632
31633 #include <db.h>
31634 #ifndef DB_VERSION_MINOR
31635 #       define DB_VERSION_MINOR 0
31636 #endif
31637 #if DB_VERSION_MINOR == 2
31638 __db_version
31639 #endif
31640
31641 _ACEOF
31642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31643   $EGREP "__db_version" >/dev/null 2>&1; then
31644   ol_cv_bdb_minor=2
31645 else
31646   :
31647 fi
31648 rm -f conftest*
31649
31650         fi
31651         if test $ol_cv_bdb_minor = 0 ; then
31652                 cat >conftest.$ac_ext <<_ACEOF
31653 /* confdefs.h.  */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h.  */
31658
31659 #include <db.h>
31660 #ifndef DB_VERSION_MINOR
31661 #       define DB_VERSION_MINOR 0
31662 #endif
31663 #if DB_VERSION_MINOR == 1
31664 __db_version
31665 #endif
31666
31667 _ACEOF
31668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31669   $EGREP "__db_version" >/dev/null 2>&1; then
31670   ol_cv_bdb_minor=1
31671 else
31672   :
31673 fi
31674 rm -f conftest*
31675
31676         fi
31677
31678 fi
31679 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31680 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31681
31682 if test $ol_cv_bdb_major = 4 ; then
31683         if test $ol_cv_bdb_minor = 4 ; then
31684                 if test $ol_cv_lib_db = no ; then
31685         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31686 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31687 if test "${ol_cv_db_db44+set}" = set; then
31688   echo $ECHO_N "(cached) $ECHO_C" >&6
31689 else
31690
31691         ol_DB_LIB=-ldb44
31692         ol_LIBS=$LIBS
31693         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31694
31695         cat >conftest.$ac_ext <<_ACEOF
31696 /* confdefs.h.  */
31697 _ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h.  */
31701
31702 #ifdef HAVE_DB_185_H
31703 # include <db_185.h>
31704 #else
31705 # include <db.h>
31706 #endif
31707
31708 #ifndef DB_VERSION_MAJOR
31709 # define DB_VERSION_MAJOR 1
31710 #endif
31711
31712 #ifndef NULL
31713 #define NULL ((void*)0)
31714 #endif
31715
31716 int
31717 main ()
31718 {
31719
31720 #if DB_VERSION_MAJOR > 1
31721         {
31722                 char *version;
31723                 int major, minor, patch;
31724
31725                 version = db_version( &major, &minor, &patch );
31726
31727                 if( major != DB_VERSION_MAJOR ||
31728                         minor < DB_VERSION_MINOR )
31729                 {
31730                         printf("Berkeley DB version mismatch\n"
31731                                 "\theader: %s\n\tlibrary: %s\n",
31732                                 DB_VERSION_STRING, version);
31733                         return 1;
31734                 }
31735         }
31736 #endif
31737
31738 #if DB_VERSION_MAJOR > 2
31739         db_env_create( NULL, 0 );
31740 #elif DB_VERSION_MAJOR > 1
31741         db_appexit( NULL );
31742 #else
31743         (void) dbopen( NULL, 0, 0, 0, NULL);
31744 #endif
31745
31746   ;
31747   return 0;
31748 }
31749 _ACEOF
31750 rm -f conftest.$ac_objext conftest$ac_exeext
31751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31752   (eval $ac_link) 2>conftest.er1
31753   ac_status=$?
31754   grep -v '^ *+' conftest.er1 >conftest.err
31755   rm -f conftest.er1
31756   cat conftest.err >&5
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); } &&
31759          { ac_try='test -z "$ac_c_werror_flag"
31760                          || test ! -s conftest.err'
31761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31762   (eval $ac_try) 2>&5
31763   ac_status=$?
31764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765   (exit $ac_status); }; } &&
31766          { ac_try='test -s conftest$ac_exeext'
31767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768   (eval $ac_try) 2>&5
31769   ac_status=$?
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); }; }; then
31772   ol_cv_db_db44=yes
31773 else
31774   echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31776
31777 ol_cv_db_db44=no
31778 fi
31779 rm -f conftest.err conftest.$ac_objext \
31780       conftest$ac_exeext conftest.$ac_ext
31781
31782         LIBS="$ol_LIBS"
31783
31784 fi
31785 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31786 echo "${ECHO_T}$ol_cv_db_db44" >&6
31787
31788         if test $ol_cv_db_db44 = yes ; then
31789                 ol_cv_lib_db=-ldb44
31790         fi
31791 fi
31792
31793                 if test $ol_cv_lib_db = no ; then
31794         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31795 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31796 if test "${ol_cv_db_db_44+set}" = set; then
31797   echo $ECHO_N "(cached) $ECHO_C" >&6
31798 else
31799
31800         ol_DB_LIB=-ldb-44
31801         ol_LIBS=$LIBS
31802         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31803
31804         cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810
31811 #ifdef HAVE_DB_185_H
31812 # include <db_185.h>
31813 #else
31814 # include <db.h>
31815 #endif
31816
31817 #ifndef DB_VERSION_MAJOR
31818 # define DB_VERSION_MAJOR 1
31819 #endif
31820
31821 #ifndef NULL
31822 #define NULL ((void*)0)
31823 #endif
31824
31825 int
31826 main ()
31827 {
31828
31829 #if DB_VERSION_MAJOR > 1
31830         {
31831                 char *version;
31832                 int major, minor, patch;
31833
31834                 version = db_version( &major, &minor, &patch );
31835
31836                 if( major != DB_VERSION_MAJOR ||
31837                         minor < DB_VERSION_MINOR )
31838                 {
31839                         printf("Berkeley DB version mismatch\n"
31840                                 "\theader: %s\n\tlibrary: %s\n",
31841                                 DB_VERSION_STRING, version);
31842                         return 1;
31843                 }
31844         }
31845 #endif
31846
31847 #if DB_VERSION_MAJOR > 2
31848         db_env_create( NULL, 0 );
31849 #elif DB_VERSION_MAJOR > 1
31850         db_appexit( NULL );
31851 #else
31852         (void) dbopen( NULL, 0, 0, 0, NULL);
31853 #endif
31854
31855   ;
31856   return 0;
31857 }
31858 _ACEOF
31859 rm -f conftest.$ac_objext conftest$ac_exeext
31860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31861   (eval $ac_link) 2>conftest.er1
31862   ac_status=$?
31863   grep -v '^ *+' conftest.er1 >conftest.err
31864   rm -f conftest.er1
31865   cat conftest.err >&5
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); } &&
31868          { ac_try='test -z "$ac_c_werror_flag"
31869                          || test ! -s conftest.err'
31870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31871   (eval $ac_try) 2>&5
31872   ac_status=$?
31873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874   (exit $ac_status); }; } &&
31875          { ac_try='test -s conftest$ac_exeext'
31876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31877   (eval $ac_try) 2>&5
31878   ac_status=$?
31879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880   (exit $ac_status); }; }; then
31881   ol_cv_db_db_44=yes
31882 else
31883   echo "$as_me: failed program was:" >&5
31884 sed 's/^/| /' conftest.$ac_ext >&5
31885
31886 ol_cv_db_db_44=no
31887 fi
31888 rm -f conftest.err conftest.$ac_objext \
31889       conftest$ac_exeext conftest.$ac_ext
31890
31891         LIBS="$ol_LIBS"
31892
31893 fi
31894 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31895 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31896
31897         if test $ol_cv_db_db_44 = yes ; then
31898                 ol_cv_lib_db=-ldb-44
31899         fi
31900 fi
31901
31902                 if test $ol_cv_lib_db = no ; then
31903         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31904 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31905 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31906   echo $ECHO_N "(cached) $ECHO_C" >&6
31907 else
31908
31909         ol_DB_LIB=-ldb-4.4
31910         ol_LIBS=$LIBS
31911         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31912
31913         cat >conftest.$ac_ext <<_ACEOF
31914 /* confdefs.h.  */
31915 _ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h.  */
31919
31920 #ifdef HAVE_DB_185_H
31921 # include <db_185.h>
31922 #else
31923 # include <db.h>
31924 #endif
31925
31926 #ifndef DB_VERSION_MAJOR
31927 # define DB_VERSION_MAJOR 1
31928 #endif
31929
31930 #ifndef NULL
31931 #define NULL ((void*)0)
31932 #endif
31933
31934 int
31935 main ()
31936 {
31937
31938 #if DB_VERSION_MAJOR > 1
31939         {
31940                 char *version;
31941                 int major, minor, patch;
31942
31943                 version = db_version( &major, &minor, &patch );
31944
31945                 if( major != DB_VERSION_MAJOR ||
31946                         minor < DB_VERSION_MINOR )
31947                 {
31948                         printf("Berkeley DB version mismatch\n"
31949                                 "\theader: %s\n\tlibrary: %s\n",
31950                                 DB_VERSION_STRING, version);
31951                         return 1;
31952                 }
31953         }
31954 #endif
31955
31956 #if DB_VERSION_MAJOR > 2
31957         db_env_create( NULL, 0 );
31958 #elif DB_VERSION_MAJOR > 1
31959         db_appexit( NULL );
31960 #else
31961         (void) dbopen( NULL, 0, 0, 0, NULL);
31962 #endif
31963
31964   ;
31965   return 0;
31966 }
31967 _ACEOF
31968 rm -f conftest.$ac_objext conftest$ac_exeext
31969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31970   (eval $ac_link) 2>conftest.er1
31971   ac_status=$?
31972   grep -v '^ *+' conftest.er1 >conftest.err
31973   rm -f conftest.er1
31974   cat conftest.err >&5
31975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976   (exit $ac_status); } &&
31977          { ac_try='test -z "$ac_c_werror_flag"
31978                          || test ! -s conftest.err'
31979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31980   (eval $ac_try) 2>&5
31981   ac_status=$?
31982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983   (exit $ac_status); }; } &&
31984          { ac_try='test -s conftest$ac_exeext'
31985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986   (eval $ac_try) 2>&5
31987   ac_status=$?
31988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989   (exit $ac_status); }; }; then
31990   ol_cv_db_db_4_dot_4=yes
31991 else
31992   echo "$as_me: failed program was:" >&5
31993 sed 's/^/| /' conftest.$ac_ext >&5
31994
31995 ol_cv_db_db_4_dot_4=no
31996 fi
31997 rm -f conftest.err conftest.$ac_objext \
31998       conftest$ac_exeext conftest.$ac_ext
31999
32000         LIBS="$ol_LIBS"
32001
32002 fi
32003 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32004 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32005
32006         if test $ol_cv_db_db_4_dot_4 = yes ; then
32007                 ol_cv_lib_db=-ldb-4.4
32008         fi
32009 fi
32010
32011                 if test $ol_cv_lib_db = no ; then
32012         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32013 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32014 if test "${ol_cv_db_db_4_4+set}" = set; then
32015   echo $ECHO_N "(cached) $ECHO_C" >&6
32016 else
32017
32018         ol_DB_LIB=-ldb-4-4
32019         ol_LIBS=$LIBS
32020         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32021
32022         cat >conftest.$ac_ext <<_ACEOF
32023 /* confdefs.h.  */
32024 _ACEOF
32025 cat confdefs.h >>conftest.$ac_ext
32026 cat >>conftest.$ac_ext <<_ACEOF
32027 /* end confdefs.h.  */
32028
32029 #ifdef HAVE_DB_185_H
32030 # include <db_185.h>
32031 #else
32032 # include <db.h>
32033 #endif
32034
32035 #ifndef DB_VERSION_MAJOR
32036 # define DB_VERSION_MAJOR 1
32037 #endif
32038
32039 #ifndef NULL
32040 #define NULL ((void*)0)
32041 #endif
32042
32043 int
32044 main ()
32045 {
32046
32047 #if DB_VERSION_MAJOR > 1
32048         {
32049                 char *version;
32050                 int major, minor, patch;
32051
32052                 version = db_version( &major, &minor, &patch );
32053
32054                 if( major != DB_VERSION_MAJOR ||
32055                         minor < DB_VERSION_MINOR )
32056                 {
32057                         printf("Berkeley DB version mismatch\n"
32058                                 "\theader: %s\n\tlibrary: %s\n",
32059                                 DB_VERSION_STRING, version);
32060                         return 1;
32061                 }
32062         }
32063 #endif
32064
32065 #if DB_VERSION_MAJOR > 2
32066         db_env_create( NULL, 0 );
32067 #elif DB_VERSION_MAJOR > 1
32068         db_appexit( NULL );
32069 #else
32070         (void) dbopen( NULL, 0, 0, 0, NULL);
32071 #endif
32072
32073   ;
32074   return 0;
32075 }
32076 _ACEOF
32077 rm -f conftest.$ac_objext conftest$ac_exeext
32078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32079   (eval $ac_link) 2>conftest.er1
32080   ac_status=$?
32081   grep -v '^ *+' conftest.er1 >conftest.err
32082   rm -f conftest.er1
32083   cat conftest.err >&5
32084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085   (exit $ac_status); } &&
32086          { ac_try='test -z "$ac_c_werror_flag"
32087                          || test ! -s conftest.err'
32088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32089   (eval $ac_try) 2>&5
32090   ac_status=$?
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); }; } &&
32093          { ac_try='test -s conftest$ac_exeext'
32094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32095   (eval $ac_try) 2>&5
32096   ac_status=$?
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); }; }; then
32099   ol_cv_db_db_4_4=yes
32100 else
32101   echo "$as_me: failed program was:" >&5
32102 sed 's/^/| /' conftest.$ac_ext >&5
32103
32104 ol_cv_db_db_4_4=no
32105 fi
32106 rm -f conftest.err conftest.$ac_objext \
32107       conftest$ac_exeext conftest.$ac_ext
32108
32109         LIBS="$ol_LIBS"
32110
32111 fi
32112 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32113 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32114
32115         if test $ol_cv_db_db_4_4 = yes ; then
32116                 ol_cv_lib_db=-ldb-4-4
32117         fi
32118 fi
32119
32120         elif test $ol_cv_bdb_minor = 3 ; then
32121                 if test $ol_cv_lib_db = no ; then
32122         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32123 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32124 if test "${ol_cv_db_db43+set}" = set; then
32125   echo $ECHO_N "(cached) $ECHO_C" >&6
32126 else
32127
32128         ol_DB_LIB=-ldb43
32129         ol_LIBS=$LIBS
32130         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32131
32132         cat >conftest.$ac_ext <<_ACEOF
32133 /* confdefs.h.  */
32134 _ACEOF
32135 cat confdefs.h >>conftest.$ac_ext
32136 cat >>conftest.$ac_ext <<_ACEOF
32137 /* end confdefs.h.  */
32138
32139 #ifdef HAVE_DB_185_H
32140 # include <db_185.h>
32141 #else
32142 # include <db.h>
32143 #endif
32144
32145 #ifndef DB_VERSION_MAJOR
32146 # define DB_VERSION_MAJOR 1
32147 #endif
32148
32149 #ifndef NULL
32150 #define NULL ((void*)0)
32151 #endif
32152
32153 int
32154 main ()
32155 {
32156
32157 #if DB_VERSION_MAJOR > 1
32158         {
32159                 char *version;
32160                 int major, minor, patch;
32161
32162                 version = db_version( &major, &minor, &patch );
32163
32164                 if( major != DB_VERSION_MAJOR ||
32165                         minor < DB_VERSION_MINOR )
32166                 {
32167                         printf("Berkeley DB version mismatch\n"
32168                                 "\theader: %s\n\tlibrary: %s\n",
32169                                 DB_VERSION_STRING, version);
32170                         return 1;
32171                 }
32172         }
32173 #endif
32174
32175 #if DB_VERSION_MAJOR > 2
32176         db_env_create( NULL, 0 );
32177 #elif DB_VERSION_MAJOR > 1
32178         db_appexit( NULL );
32179 #else
32180         (void) dbopen( NULL, 0, 0, 0, NULL);
32181 #endif
32182
32183   ;
32184   return 0;
32185 }
32186 _ACEOF
32187 rm -f conftest.$ac_objext conftest$ac_exeext
32188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32189   (eval $ac_link) 2>conftest.er1
32190   ac_status=$?
32191   grep -v '^ *+' conftest.er1 >conftest.err
32192   rm -f conftest.er1
32193   cat conftest.err >&5
32194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195   (exit $ac_status); } &&
32196          { ac_try='test -z "$ac_c_werror_flag"
32197                          || test ! -s conftest.err'
32198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32199   (eval $ac_try) 2>&5
32200   ac_status=$?
32201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202   (exit $ac_status); }; } &&
32203          { ac_try='test -s conftest$ac_exeext'
32204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205   (eval $ac_try) 2>&5
32206   ac_status=$?
32207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208   (exit $ac_status); }; }; then
32209   ol_cv_db_db43=yes
32210 else
32211   echo "$as_me: failed program was:" >&5
32212 sed 's/^/| /' conftest.$ac_ext >&5
32213
32214 ol_cv_db_db43=no
32215 fi
32216 rm -f conftest.err conftest.$ac_objext \
32217       conftest$ac_exeext conftest.$ac_ext
32218
32219         LIBS="$ol_LIBS"
32220
32221 fi
32222 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32223 echo "${ECHO_T}$ol_cv_db_db43" >&6
32224
32225         if test $ol_cv_db_db43 = yes ; then
32226                 ol_cv_lib_db=-ldb43
32227         fi
32228 fi
32229
32230                 if test $ol_cv_lib_db = no ; then
32231         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32232 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32233 if test "${ol_cv_db_db_43+set}" = set; then
32234   echo $ECHO_N "(cached) $ECHO_C" >&6
32235 else
32236
32237         ol_DB_LIB=-ldb-43
32238         ol_LIBS=$LIBS
32239         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32240
32241         cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h.  */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h.  */
32247
32248 #ifdef HAVE_DB_185_H
32249 # include <db_185.h>
32250 #else
32251 # include <db.h>
32252 #endif
32253
32254 #ifndef DB_VERSION_MAJOR
32255 # define DB_VERSION_MAJOR 1
32256 #endif
32257
32258 #ifndef NULL
32259 #define NULL ((void*)0)
32260 #endif
32261
32262 int
32263 main ()
32264 {
32265
32266 #if DB_VERSION_MAJOR > 1
32267         {
32268                 char *version;
32269                 int major, minor, patch;
32270
32271                 version = db_version( &major, &minor, &patch );
32272
32273                 if( major != DB_VERSION_MAJOR ||
32274                         minor < DB_VERSION_MINOR )
32275                 {
32276                         printf("Berkeley DB version mismatch\n"
32277                                 "\theader: %s\n\tlibrary: %s\n",
32278                                 DB_VERSION_STRING, version);
32279                         return 1;
32280                 }
32281         }
32282 #endif
32283
32284 #if DB_VERSION_MAJOR > 2
32285         db_env_create( NULL, 0 );
32286 #elif DB_VERSION_MAJOR > 1
32287         db_appexit( NULL );
32288 #else
32289         (void) dbopen( NULL, 0, 0, 0, NULL);
32290 #endif
32291
32292   ;
32293   return 0;
32294 }
32295 _ACEOF
32296 rm -f conftest.$ac_objext conftest$ac_exeext
32297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32298   (eval $ac_link) 2>conftest.er1
32299   ac_status=$?
32300   grep -v '^ *+' conftest.er1 >conftest.err
32301   rm -f conftest.er1
32302   cat conftest.err >&5
32303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304   (exit $ac_status); } &&
32305          { ac_try='test -z "$ac_c_werror_flag"
32306                          || test ! -s conftest.err'
32307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308   (eval $ac_try) 2>&5
32309   ac_status=$?
32310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311   (exit $ac_status); }; } &&
32312          { ac_try='test -s conftest$ac_exeext'
32313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314   (eval $ac_try) 2>&5
32315   ac_status=$?
32316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317   (exit $ac_status); }; }; then
32318   ol_cv_db_db_43=yes
32319 else
32320   echo "$as_me: failed program was:" >&5
32321 sed 's/^/| /' conftest.$ac_ext >&5
32322
32323 ol_cv_db_db_43=no
32324 fi
32325 rm -f conftest.err conftest.$ac_objext \
32326       conftest$ac_exeext conftest.$ac_ext
32327
32328         LIBS="$ol_LIBS"
32329
32330 fi
32331 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32332 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32333
32334         if test $ol_cv_db_db_43 = yes ; then
32335                 ol_cv_lib_db=-ldb-43
32336         fi
32337 fi
32338
32339                 if test $ol_cv_lib_db = no ; then
32340         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32341 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32342 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32343   echo $ECHO_N "(cached) $ECHO_C" >&6
32344 else
32345
32346         ol_DB_LIB=-ldb-4.3
32347         ol_LIBS=$LIBS
32348         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32349
32350         cat >conftest.$ac_ext <<_ACEOF
32351 /* confdefs.h.  */
32352 _ACEOF
32353 cat confdefs.h >>conftest.$ac_ext
32354 cat >>conftest.$ac_ext <<_ACEOF
32355 /* end confdefs.h.  */
32356
32357 #ifdef HAVE_DB_185_H
32358 # include <db_185.h>
32359 #else
32360 # include <db.h>
32361 #endif
32362
32363 #ifndef DB_VERSION_MAJOR
32364 # define DB_VERSION_MAJOR 1
32365 #endif
32366
32367 #ifndef NULL
32368 #define NULL ((void*)0)
32369 #endif
32370
32371 int
32372 main ()
32373 {
32374
32375 #if DB_VERSION_MAJOR > 1
32376         {
32377                 char *version;
32378                 int major, minor, patch;
32379
32380                 version = db_version( &major, &minor, &patch );
32381
32382                 if( major != DB_VERSION_MAJOR ||
32383                         minor < DB_VERSION_MINOR )
32384                 {
32385                         printf("Berkeley DB version mismatch\n"
32386                                 "\theader: %s\n\tlibrary: %s\n",
32387                                 DB_VERSION_STRING, version);
32388                         return 1;
32389                 }
32390         }
32391 #endif
32392
32393 #if DB_VERSION_MAJOR > 2
32394         db_env_create( NULL, 0 );
32395 #elif DB_VERSION_MAJOR > 1
32396         db_appexit( NULL );
32397 #else
32398         (void) dbopen( NULL, 0, 0, 0, NULL);
32399 #endif
32400
32401   ;
32402   return 0;
32403 }
32404 _ACEOF
32405 rm -f conftest.$ac_objext conftest$ac_exeext
32406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32407   (eval $ac_link) 2>conftest.er1
32408   ac_status=$?
32409   grep -v '^ *+' conftest.er1 >conftest.err
32410   rm -f conftest.er1
32411   cat conftest.err >&5
32412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413   (exit $ac_status); } &&
32414          { ac_try='test -z "$ac_c_werror_flag"
32415                          || test ! -s conftest.err'
32416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32417   (eval $ac_try) 2>&5
32418   ac_status=$?
32419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420   (exit $ac_status); }; } &&
32421          { ac_try='test -s conftest$ac_exeext'
32422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32423   (eval $ac_try) 2>&5
32424   ac_status=$?
32425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426   (exit $ac_status); }; }; then
32427   ol_cv_db_db_4_dot_3=yes
32428 else
32429   echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32431
32432 ol_cv_db_db_4_dot_3=no
32433 fi
32434 rm -f conftest.err conftest.$ac_objext \
32435       conftest$ac_exeext conftest.$ac_ext
32436
32437         LIBS="$ol_LIBS"
32438
32439 fi
32440 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32441 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32442
32443         if test $ol_cv_db_db_4_dot_3 = yes ; then
32444                 ol_cv_lib_db=-ldb-4.3
32445         fi
32446 fi
32447
32448                 if test $ol_cv_lib_db = no ; then
32449         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32450 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32451 if test "${ol_cv_db_db_4_3+set}" = set; then
32452   echo $ECHO_N "(cached) $ECHO_C" >&6
32453 else
32454
32455         ol_DB_LIB=-ldb-4-3
32456         ol_LIBS=$LIBS
32457         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32458
32459         cat >conftest.$ac_ext <<_ACEOF
32460 /* confdefs.h.  */
32461 _ACEOF
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h.  */
32465
32466 #ifdef HAVE_DB_185_H
32467 # include <db_185.h>
32468 #else
32469 # include <db.h>
32470 #endif
32471
32472 #ifndef DB_VERSION_MAJOR
32473 # define DB_VERSION_MAJOR 1
32474 #endif
32475
32476 #ifndef NULL
32477 #define NULL ((void*)0)
32478 #endif
32479
32480 int
32481 main ()
32482 {
32483
32484 #if DB_VERSION_MAJOR > 1
32485         {
32486                 char *version;
32487                 int major, minor, patch;
32488
32489                 version = db_version( &major, &minor, &patch );
32490
32491                 if( major != DB_VERSION_MAJOR ||
32492                         minor < DB_VERSION_MINOR )
32493                 {
32494                         printf("Berkeley DB version mismatch\n"
32495                                 "\theader: %s\n\tlibrary: %s\n",
32496                                 DB_VERSION_STRING, version);
32497                         return 1;
32498                 }
32499         }
32500 #endif
32501
32502 #if DB_VERSION_MAJOR > 2
32503         db_env_create( NULL, 0 );
32504 #elif DB_VERSION_MAJOR > 1
32505         db_appexit( NULL );
32506 #else
32507         (void) dbopen( NULL, 0, 0, 0, NULL);
32508 #endif
32509
32510   ;
32511   return 0;
32512 }
32513 _ACEOF
32514 rm -f conftest.$ac_objext conftest$ac_exeext
32515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32516   (eval $ac_link) 2>conftest.er1
32517   ac_status=$?
32518   grep -v '^ *+' conftest.er1 >conftest.err
32519   rm -f conftest.er1
32520   cat conftest.err >&5
32521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522   (exit $ac_status); } &&
32523          { ac_try='test -z "$ac_c_werror_flag"
32524                          || test ! -s conftest.err'
32525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32526   (eval $ac_try) 2>&5
32527   ac_status=$?
32528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529   (exit $ac_status); }; } &&
32530          { ac_try='test -s conftest$ac_exeext'
32531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532   (eval $ac_try) 2>&5
32533   ac_status=$?
32534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); }; }; then
32536   ol_cv_db_db_4_3=yes
32537 else
32538   echo "$as_me: failed program was:" >&5
32539 sed 's/^/| /' conftest.$ac_ext >&5
32540
32541 ol_cv_db_db_4_3=no
32542 fi
32543 rm -f conftest.err conftest.$ac_objext \
32544       conftest$ac_exeext conftest.$ac_ext
32545
32546         LIBS="$ol_LIBS"
32547
32548 fi
32549 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32550 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32551
32552         if test $ol_cv_db_db_4_3 = yes ; then
32553                 ol_cv_lib_db=-ldb-4-3
32554         fi
32555 fi
32556
32557         elif test $ol_cv_bdb_minor = 2 ; then
32558                 if test $ol_cv_lib_db = no ; then
32559         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32560 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32561 if test "${ol_cv_db_db42+set}" = set; then
32562   echo $ECHO_N "(cached) $ECHO_C" >&6
32563 else
32564
32565         ol_DB_LIB=-ldb42
32566         ol_LIBS=$LIBS
32567         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32568
32569         cat >conftest.$ac_ext <<_ACEOF
32570 /* confdefs.h.  */
32571 _ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h.  */
32575
32576 #ifdef HAVE_DB_185_H
32577 # include <db_185.h>
32578 #else
32579 # include <db.h>
32580 #endif
32581
32582 #ifndef DB_VERSION_MAJOR
32583 # define DB_VERSION_MAJOR 1
32584 #endif
32585
32586 #ifndef NULL
32587 #define NULL ((void*)0)
32588 #endif
32589
32590 int
32591 main ()
32592 {
32593
32594 #if DB_VERSION_MAJOR > 1
32595         {
32596                 char *version;
32597                 int major, minor, patch;
32598
32599                 version = db_version( &major, &minor, &patch );
32600
32601                 if( major != DB_VERSION_MAJOR ||
32602                         minor < DB_VERSION_MINOR )
32603                 {
32604                         printf("Berkeley DB version mismatch\n"
32605                                 "\theader: %s\n\tlibrary: %s\n",
32606                                 DB_VERSION_STRING, version);
32607                         return 1;
32608                 }
32609         }
32610 #endif
32611
32612 #if DB_VERSION_MAJOR > 2
32613         db_env_create( NULL, 0 );
32614 #elif DB_VERSION_MAJOR > 1
32615         db_appexit( NULL );
32616 #else
32617         (void) dbopen( NULL, 0, 0, 0, NULL);
32618 #endif
32619
32620   ;
32621   return 0;
32622 }
32623 _ACEOF
32624 rm -f conftest.$ac_objext conftest$ac_exeext
32625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32626   (eval $ac_link) 2>conftest.er1
32627   ac_status=$?
32628   grep -v '^ *+' conftest.er1 >conftest.err
32629   rm -f conftest.er1
32630   cat conftest.err >&5
32631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632   (exit $ac_status); } &&
32633          { ac_try='test -z "$ac_c_werror_flag"
32634                          || test ! -s conftest.err'
32635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636   (eval $ac_try) 2>&5
32637   ac_status=$?
32638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639   (exit $ac_status); }; } &&
32640          { ac_try='test -s conftest$ac_exeext'
32641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642   (eval $ac_try) 2>&5
32643   ac_status=$?
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); }; }; then
32646   ol_cv_db_db42=yes
32647 else
32648   echo "$as_me: failed program was:" >&5
32649 sed 's/^/| /' conftest.$ac_ext >&5
32650
32651 ol_cv_db_db42=no
32652 fi
32653 rm -f conftest.err conftest.$ac_objext \
32654       conftest$ac_exeext conftest.$ac_ext
32655
32656         LIBS="$ol_LIBS"
32657
32658 fi
32659 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32660 echo "${ECHO_T}$ol_cv_db_db42" >&6
32661
32662         if test $ol_cv_db_db42 = yes ; then
32663                 ol_cv_lib_db=-ldb42
32664         fi
32665 fi
32666
32667                 if test $ol_cv_lib_db = no ; then
32668         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32669 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32670 if test "${ol_cv_db_db_42+set}" = set; then
32671   echo $ECHO_N "(cached) $ECHO_C" >&6
32672 else
32673
32674         ol_DB_LIB=-ldb-42
32675         ol_LIBS=$LIBS
32676         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32677
32678         cat >conftest.$ac_ext <<_ACEOF
32679 /* confdefs.h.  */
32680 _ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h.  */
32684
32685 #ifdef HAVE_DB_185_H
32686 # include <db_185.h>
32687 #else
32688 # include <db.h>
32689 #endif
32690
32691 #ifndef DB_VERSION_MAJOR
32692 # define DB_VERSION_MAJOR 1
32693 #endif
32694
32695 #ifndef NULL
32696 #define NULL ((void*)0)
32697 #endif
32698
32699 int
32700 main ()
32701 {
32702
32703 #if DB_VERSION_MAJOR > 1
32704         {
32705                 char *version;
32706                 int major, minor, patch;
32707
32708                 version = db_version( &major, &minor, &patch );
32709
32710                 if( major != DB_VERSION_MAJOR ||
32711                         minor < DB_VERSION_MINOR )
32712                 {
32713                         printf("Berkeley DB version mismatch\n"
32714                                 "\theader: %s\n\tlibrary: %s\n",
32715                                 DB_VERSION_STRING, version);
32716                         return 1;
32717                 }
32718         }
32719 #endif
32720
32721 #if DB_VERSION_MAJOR > 2
32722         db_env_create( NULL, 0 );
32723 #elif DB_VERSION_MAJOR > 1
32724         db_appexit( NULL );
32725 #else
32726         (void) dbopen( NULL, 0, 0, 0, NULL);
32727 #endif
32728
32729   ;
32730   return 0;
32731 }
32732 _ACEOF
32733 rm -f conftest.$ac_objext conftest$ac_exeext
32734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32735   (eval $ac_link) 2>conftest.er1
32736   ac_status=$?
32737   grep -v '^ *+' conftest.er1 >conftest.err
32738   rm -f conftest.er1
32739   cat conftest.err >&5
32740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741   (exit $ac_status); } &&
32742          { ac_try='test -z "$ac_c_werror_flag"
32743                          || test ! -s conftest.err'
32744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745   (eval $ac_try) 2>&5
32746   ac_status=$?
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); }; } &&
32749          { ac_try='test -s conftest$ac_exeext'
32750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751   (eval $ac_try) 2>&5
32752   ac_status=$?
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); }; }; then
32755   ol_cv_db_db_42=yes
32756 else
32757   echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32759
32760 ol_cv_db_db_42=no
32761 fi
32762 rm -f conftest.err conftest.$ac_objext \
32763       conftest$ac_exeext conftest.$ac_ext
32764
32765         LIBS="$ol_LIBS"
32766
32767 fi
32768 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32769 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32770
32771         if test $ol_cv_db_db_42 = yes ; then
32772                 ol_cv_lib_db=-ldb-42
32773         fi
32774 fi
32775
32776                 if test $ol_cv_lib_db = no ; then
32777         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32778 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32779 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32780   echo $ECHO_N "(cached) $ECHO_C" >&6
32781 else
32782
32783         ol_DB_LIB=-ldb-4.2
32784         ol_LIBS=$LIBS
32785         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32786
32787         cat >conftest.$ac_ext <<_ACEOF
32788 /* confdefs.h.  */
32789 _ACEOF
32790 cat confdefs.h >>conftest.$ac_ext
32791 cat >>conftest.$ac_ext <<_ACEOF
32792 /* end confdefs.h.  */
32793
32794 #ifdef HAVE_DB_185_H
32795 # include <db_185.h>
32796 #else
32797 # include <db.h>
32798 #endif
32799
32800 #ifndef DB_VERSION_MAJOR
32801 # define DB_VERSION_MAJOR 1
32802 #endif
32803
32804 #ifndef NULL
32805 #define NULL ((void*)0)
32806 #endif
32807
32808 int
32809 main ()
32810 {
32811
32812 #if DB_VERSION_MAJOR > 1
32813         {
32814                 char *version;
32815                 int major, minor, patch;
32816
32817                 version = db_version( &major, &minor, &patch );
32818
32819                 if( major != DB_VERSION_MAJOR ||
32820                         minor < DB_VERSION_MINOR )
32821                 {
32822                         printf("Berkeley DB version mismatch\n"
32823                                 "\theader: %s\n\tlibrary: %s\n",
32824                                 DB_VERSION_STRING, version);
32825                         return 1;
32826                 }
32827         }
32828 #endif
32829
32830 #if DB_VERSION_MAJOR > 2
32831         db_env_create( NULL, 0 );
32832 #elif DB_VERSION_MAJOR > 1
32833         db_appexit( NULL );
32834 #else
32835         (void) dbopen( NULL, 0, 0, 0, NULL);
32836 #endif
32837
32838   ;
32839   return 0;
32840 }
32841 _ACEOF
32842 rm -f conftest.$ac_objext conftest$ac_exeext
32843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32844   (eval $ac_link) 2>conftest.er1
32845   ac_status=$?
32846   grep -v '^ *+' conftest.er1 >conftest.err
32847   rm -f conftest.er1
32848   cat conftest.err >&5
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); } &&
32851          { ac_try='test -z "$ac_c_werror_flag"
32852                          || test ! -s conftest.err'
32853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854   (eval $ac_try) 2>&5
32855   ac_status=$?
32856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857   (exit $ac_status); }; } &&
32858          { ac_try='test -s conftest$ac_exeext'
32859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860   (eval $ac_try) 2>&5
32861   ac_status=$?
32862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863   (exit $ac_status); }; }; then
32864   ol_cv_db_db_4_dot_2=yes
32865 else
32866   echo "$as_me: failed program was:" >&5
32867 sed 's/^/| /' conftest.$ac_ext >&5
32868
32869 ol_cv_db_db_4_dot_2=no
32870 fi
32871 rm -f conftest.err conftest.$ac_objext \
32872       conftest$ac_exeext conftest.$ac_ext
32873
32874         LIBS="$ol_LIBS"
32875
32876 fi
32877 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32878 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32879
32880         if test $ol_cv_db_db_4_dot_2 = yes ; then
32881                 ol_cv_lib_db=-ldb-4.2
32882         fi
32883 fi
32884
32885                 if test $ol_cv_lib_db = no ; then
32886         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32887 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32888 if test "${ol_cv_db_db_4_2+set}" = set; then
32889   echo $ECHO_N "(cached) $ECHO_C" >&6
32890 else
32891
32892         ol_DB_LIB=-ldb-4-2
32893         ol_LIBS=$LIBS
32894         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32895
32896         cat >conftest.$ac_ext <<_ACEOF
32897 /* confdefs.h.  */
32898 _ACEOF
32899 cat confdefs.h >>conftest.$ac_ext
32900 cat >>conftest.$ac_ext <<_ACEOF
32901 /* end confdefs.h.  */
32902
32903 #ifdef HAVE_DB_185_H
32904 # include <db_185.h>
32905 #else
32906 # include <db.h>
32907 #endif
32908
32909 #ifndef DB_VERSION_MAJOR
32910 # define DB_VERSION_MAJOR 1
32911 #endif
32912
32913 #ifndef NULL
32914 #define NULL ((void*)0)
32915 #endif
32916
32917 int
32918 main ()
32919 {
32920
32921 #if DB_VERSION_MAJOR > 1
32922         {
32923                 char *version;
32924                 int major, minor, patch;
32925
32926                 version = db_version( &major, &minor, &patch );
32927
32928                 if( major != DB_VERSION_MAJOR ||
32929                         minor < DB_VERSION_MINOR )
32930                 {
32931                         printf("Berkeley DB version mismatch\n"
32932                                 "\theader: %s\n\tlibrary: %s\n",
32933                                 DB_VERSION_STRING, version);
32934                         return 1;
32935                 }
32936         }
32937 #endif
32938
32939 #if DB_VERSION_MAJOR > 2
32940         db_env_create( NULL, 0 );
32941 #elif DB_VERSION_MAJOR > 1
32942         db_appexit( NULL );
32943 #else
32944         (void) dbopen( NULL, 0, 0, 0, NULL);
32945 #endif
32946
32947   ;
32948   return 0;
32949 }
32950 _ACEOF
32951 rm -f conftest.$ac_objext conftest$ac_exeext
32952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32953   (eval $ac_link) 2>conftest.er1
32954   ac_status=$?
32955   grep -v '^ *+' conftest.er1 >conftest.err
32956   rm -f conftest.er1
32957   cat conftest.err >&5
32958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959   (exit $ac_status); } &&
32960          { ac_try='test -z "$ac_c_werror_flag"
32961                          || test ! -s conftest.err'
32962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32963   (eval $ac_try) 2>&5
32964   ac_status=$?
32965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966   (exit $ac_status); }; } &&
32967          { ac_try='test -s conftest$ac_exeext'
32968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32969   (eval $ac_try) 2>&5
32970   ac_status=$?
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); }; }; then
32973   ol_cv_db_db_4_2=yes
32974 else
32975   echo "$as_me: failed program was:" >&5
32976 sed 's/^/| /' conftest.$ac_ext >&5
32977
32978 ol_cv_db_db_4_2=no
32979 fi
32980 rm -f conftest.err conftest.$ac_objext \
32981       conftest$ac_exeext conftest.$ac_ext
32982
32983         LIBS="$ol_LIBS"
32984
32985 fi
32986 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32987 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32988
32989         if test $ol_cv_db_db_4_2 = yes ; then
32990                 ol_cv_lib_db=-ldb-4-2
32991         fi
32992 fi
32993
32994         elif test $ol_cv_bdb_minor = 1 ; then
32995                 if test $ol_cv_lib_db = no ; then
32996         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32997 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32998 if test "${ol_cv_db_db41+set}" = set; then
32999   echo $ECHO_N "(cached) $ECHO_C" >&6
33000 else
33001
33002         ol_DB_LIB=-ldb41
33003         ol_LIBS=$LIBS
33004         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33005
33006         cat >conftest.$ac_ext <<_ACEOF
33007 /* confdefs.h.  */
33008 _ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h.  */
33012
33013 #ifdef HAVE_DB_185_H
33014 # include <db_185.h>
33015 #else
33016 # include <db.h>
33017 #endif
33018
33019 #ifndef DB_VERSION_MAJOR
33020 # define DB_VERSION_MAJOR 1
33021 #endif
33022
33023 #ifndef NULL
33024 #define NULL ((void*)0)
33025 #endif
33026
33027 int
33028 main ()
33029 {
33030
33031 #if DB_VERSION_MAJOR > 1
33032         {
33033                 char *version;
33034                 int major, minor, patch;
33035
33036                 version = db_version( &major, &minor, &patch );
33037
33038                 if( major != DB_VERSION_MAJOR ||
33039                         minor < DB_VERSION_MINOR )
33040                 {
33041                         printf("Berkeley DB version mismatch\n"
33042                                 "\theader: %s\n\tlibrary: %s\n",
33043                                 DB_VERSION_STRING, version);
33044                         return 1;
33045                 }
33046         }
33047 #endif
33048
33049 #if DB_VERSION_MAJOR > 2
33050         db_env_create( NULL, 0 );
33051 #elif DB_VERSION_MAJOR > 1
33052         db_appexit( NULL );
33053 #else
33054         (void) dbopen( NULL, 0, 0, 0, NULL);
33055 #endif
33056
33057   ;
33058   return 0;
33059 }
33060 _ACEOF
33061 rm -f conftest.$ac_objext conftest$ac_exeext
33062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33063   (eval $ac_link) 2>conftest.er1
33064   ac_status=$?
33065   grep -v '^ *+' conftest.er1 >conftest.err
33066   rm -f conftest.er1
33067   cat conftest.err >&5
33068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069   (exit $ac_status); } &&
33070          { ac_try='test -z "$ac_c_werror_flag"
33071                          || test ! -s conftest.err'
33072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33073   (eval $ac_try) 2>&5
33074   ac_status=$?
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); }; } &&
33077          { ac_try='test -s conftest$ac_exeext'
33078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079   (eval $ac_try) 2>&5
33080   ac_status=$?
33081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082   (exit $ac_status); }; }; then
33083   ol_cv_db_db41=yes
33084 else
33085   echo "$as_me: failed program was:" >&5
33086 sed 's/^/| /' conftest.$ac_ext >&5
33087
33088 ol_cv_db_db41=no
33089 fi
33090 rm -f conftest.err conftest.$ac_objext \
33091       conftest$ac_exeext conftest.$ac_ext
33092
33093         LIBS="$ol_LIBS"
33094
33095 fi
33096 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33097 echo "${ECHO_T}$ol_cv_db_db41" >&6
33098
33099         if test $ol_cv_db_db41 = yes ; then
33100                 ol_cv_lib_db=-ldb41
33101         fi
33102 fi
33103
33104                 if test $ol_cv_lib_db = no ; then
33105         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33106 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33107 if test "${ol_cv_db_db_41+set}" = set; then
33108   echo $ECHO_N "(cached) $ECHO_C" >&6
33109 else
33110
33111         ol_DB_LIB=-ldb-41
33112         ol_LIBS=$LIBS
33113         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33114
33115         cat >conftest.$ac_ext <<_ACEOF
33116 /* confdefs.h.  */
33117 _ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h.  */
33121
33122 #ifdef HAVE_DB_185_H
33123 # include <db_185.h>
33124 #else
33125 # include <db.h>
33126 #endif
33127
33128 #ifndef DB_VERSION_MAJOR
33129 # define DB_VERSION_MAJOR 1
33130 #endif
33131
33132 #ifndef NULL
33133 #define NULL ((void*)0)
33134 #endif
33135
33136 int
33137 main ()
33138 {
33139
33140 #if DB_VERSION_MAJOR > 1
33141         {
33142                 char *version;
33143                 int major, minor, patch;
33144
33145                 version = db_version( &major, &minor, &patch );
33146
33147                 if( major != DB_VERSION_MAJOR ||
33148                         minor < DB_VERSION_MINOR )
33149                 {
33150                         printf("Berkeley DB version mismatch\n"
33151                                 "\theader: %s\n\tlibrary: %s\n",
33152                                 DB_VERSION_STRING, version);
33153                         return 1;
33154                 }
33155         }
33156 #endif
33157
33158 #if DB_VERSION_MAJOR > 2
33159         db_env_create( NULL, 0 );
33160 #elif DB_VERSION_MAJOR > 1
33161         db_appexit( NULL );
33162 #else
33163         (void) dbopen( NULL, 0, 0, 0, NULL);
33164 #endif
33165
33166   ;
33167   return 0;
33168 }
33169 _ACEOF
33170 rm -f conftest.$ac_objext conftest$ac_exeext
33171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33172   (eval $ac_link) 2>conftest.er1
33173   ac_status=$?
33174   grep -v '^ *+' conftest.er1 >conftest.err
33175   rm -f conftest.er1
33176   cat conftest.err >&5
33177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178   (exit $ac_status); } &&
33179          { ac_try='test -z "$ac_c_werror_flag"
33180                          || test ! -s conftest.err'
33181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182   (eval $ac_try) 2>&5
33183   ac_status=$?
33184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); }; } &&
33186          { ac_try='test -s conftest$ac_exeext'
33187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33188   (eval $ac_try) 2>&5
33189   ac_status=$?
33190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191   (exit $ac_status); }; }; then
33192   ol_cv_db_db_41=yes
33193 else
33194   echo "$as_me: failed program was:" >&5
33195 sed 's/^/| /' conftest.$ac_ext >&5
33196
33197 ol_cv_db_db_41=no
33198 fi
33199 rm -f conftest.err conftest.$ac_objext \
33200       conftest$ac_exeext conftest.$ac_ext
33201
33202         LIBS="$ol_LIBS"
33203
33204 fi
33205 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33206 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33207
33208         if test $ol_cv_db_db_41 = yes ; then
33209                 ol_cv_lib_db=-ldb-41
33210         fi
33211 fi
33212
33213                 if test $ol_cv_lib_db = no ; then
33214         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33215 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33216 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33217   echo $ECHO_N "(cached) $ECHO_C" >&6
33218 else
33219
33220         ol_DB_LIB=-ldb-4.1
33221         ol_LIBS=$LIBS
33222         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33223
33224         cat >conftest.$ac_ext <<_ACEOF
33225 /* confdefs.h.  */
33226 _ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h.  */
33230
33231 #ifdef HAVE_DB_185_H
33232 # include <db_185.h>
33233 #else
33234 # include <db.h>
33235 #endif
33236
33237 #ifndef DB_VERSION_MAJOR
33238 # define DB_VERSION_MAJOR 1
33239 #endif
33240
33241 #ifndef NULL
33242 #define NULL ((void*)0)
33243 #endif
33244
33245 int
33246 main ()
33247 {
33248
33249 #if DB_VERSION_MAJOR > 1
33250         {
33251                 char *version;
33252                 int major, minor, patch;
33253
33254                 version = db_version( &major, &minor, &patch );
33255
33256                 if( major != DB_VERSION_MAJOR ||
33257                         minor < DB_VERSION_MINOR )
33258                 {
33259                         printf("Berkeley DB version mismatch\n"
33260                                 "\theader: %s\n\tlibrary: %s\n",
33261                                 DB_VERSION_STRING, version);
33262                         return 1;
33263                 }
33264         }
33265 #endif
33266
33267 #if DB_VERSION_MAJOR > 2
33268         db_env_create( NULL, 0 );
33269 #elif DB_VERSION_MAJOR > 1
33270         db_appexit( NULL );
33271 #else
33272         (void) dbopen( NULL, 0, 0, 0, NULL);
33273 #endif
33274
33275   ;
33276   return 0;
33277 }
33278 _ACEOF
33279 rm -f conftest.$ac_objext conftest$ac_exeext
33280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33281   (eval $ac_link) 2>conftest.er1
33282   ac_status=$?
33283   grep -v '^ *+' conftest.er1 >conftest.err
33284   rm -f conftest.er1
33285   cat conftest.err >&5
33286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287   (exit $ac_status); } &&
33288          { ac_try='test -z "$ac_c_werror_flag"
33289                          || test ! -s conftest.err'
33290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33291   (eval $ac_try) 2>&5
33292   ac_status=$?
33293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294   (exit $ac_status); }; } &&
33295          { ac_try='test -s conftest$ac_exeext'
33296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33297   (eval $ac_try) 2>&5
33298   ac_status=$?
33299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300   (exit $ac_status); }; }; then
33301   ol_cv_db_db_4_dot_1=yes
33302 else
33303   echo "$as_me: failed program was:" >&5
33304 sed 's/^/| /' conftest.$ac_ext >&5
33305
33306 ol_cv_db_db_4_dot_1=no
33307 fi
33308 rm -f conftest.err conftest.$ac_objext \
33309       conftest$ac_exeext conftest.$ac_ext
33310
33311         LIBS="$ol_LIBS"
33312
33313 fi
33314 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33315 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33316
33317         if test $ol_cv_db_db_4_dot_1 = yes ; then
33318                 ol_cv_lib_db=-ldb-4.1
33319         fi
33320 fi
33321
33322                 if test $ol_cv_lib_db = no ; then
33323         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33324 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33325 if test "${ol_cv_db_db_4_1+set}" = set; then
33326   echo $ECHO_N "(cached) $ECHO_C" >&6
33327 else
33328
33329         ol_DB_LIB=-ldb-4-1
33330         ol_LIBS=$LIBS
33331         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33332
33333         cat >conftest.$ac_ext <<_ACEOF
33334 /* confdefs.h.  */
33335 _ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h.  */
33339
33340 #ifdef HAVE_DB_185_H
33341 # include <db_185.h>
33342 #else
33343 # include <db.h>
33344 #endif
33345
33346 #ifndef DB_VERSION_MAJOR
33347 # define DB_VERSION_MAJOR 1
33348 #endif
33349
33350 #ifndef NULL
33351 #define NULL ((void*)0)
33352 #endif
33353
33354 int
33355 main ()
33356 {
33357
33358 #if DB_VERSION_MAJOR > 1
33359         {
33360                 char *version;
33361                 int major, minor, patch;
33362
33363                 version = db_version( &major, &minor, &patch );
33364
33365                 if( major != DB_VERSION_MAJOR ||
33366                         minor < DB_VERSION_MINOR )
33367                 {
33368                         printf("Berkeley DB version mismatch\n"
33369                                 "\theader: %s\n\tlibrary: %s\n",
33370                                 DB_VERSION_STRING, version);
33371                         return 1;
33372                 }
33373         }
33374 #endif
33375
33376 #if DB_VERSION_MAJOR > 2
33377         db_env_create( NULL, 0 );
33378 #elif DB_VERSION_MAJOR > 1
33379         db_appexit( NULL );
33380 #else
33381         (void) dbopen( NULL, 0, 0, 0, NULL);
33382 #endif
33383
33384   ;
33385   return 0;
33386 }
33387 _ACEOF
33388 rm -f conftest.$ac_objext conftest$ac_exeext
33389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33390   (eval $ac_link) 2>conftest.er1
33391   ac_status=$?
33392   grep -v '^ *+' conftest.er1 >conftest.err
33393   rm -f conftest.er1
33394   cat conftest.err >&5
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); } &&
33397          { ac_try='test -z "$ac_c_werror_flag"
33398                          || test ! -s conftest.err'
33399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33400   (eval $ac_try) 2>&5
33401   ac_status=$?
33402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403   (exit $ac_status); }; } &&
33404          { ac_try='test -s conftest$ac_exeext'
33405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33406   (eval $ac_try) 2>&5
33407   ac_status=$?
33408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409   (exit $ac_status); }; }; then
33410   ol_cv_db_db_4_1=yes
33411 else
33412   echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33414
33415 ol_cv_db_db_4_1=no
33416 fi
33417 rm -f conftest.err conftest.$ac_objext \
33418       conftest$ac_exeext conftest.$ac_ext
33419
33420         LIBS="$ol_LIBS"
33421
33422 fi
33423 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33424 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33425
33426         if test $ol_cv_db_db_4_1 = yes ; then
33427                 ol_cv_lib_db=-ldb-4-1
33428         fi
33429 fi
33430
33431         fi
33432         if test $ol_cv_lib_db = no ; then
33433         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33434 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33435 if test "${ol_cv_db_db_4+set}" = set; then
33436   echo $ECHO_N "(cached) $ECHO_C" >&6
33437 else
33438
33439         ol_DB_LIB=-ldb-4
33440         ol_LIBS=$LIBS
33441         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33442
33443         cat >conftest.$ac_ext <<_ACEOF
33444 /* confdefs.h.  */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h.  */
33449
33450 #ifdef HAVE_DB_185_H
33451 # include <db_185.h>
33452 #else
33453 # include <db.h>
33454 #endif
33455
33456 #ifndef DB_VERSION_MAJOR
33457 # define DB_VERSION_MAJOR 1
33458 #endif
33459
33460 #ifndef NULL
33461 #define NULL ((void*)0)
33462 #endif
33463
33464 int
33465 main ()
33466 {
33467
33468 #if DB_VERSION_MAJOR > 1
33469         {
33470                 char *version;
33471                 int major, minor, patch;
33472
33473                 version = db_version( &major, &minor, &patch );
33474
33475                 if( major != DB_VERSION_MAJOR ||
33476                         minor < DB_VERSION_MINOR )
33477                 {
33478                         printf("Berkeley DB version mismatch\n"
33479                                 "\theader: %s\n\tlibrary: %s\n",
33480                                 DB_VERSION_STRING, version);
33481                         return 1;
33482                 }
33483         }
33484 #endif
33485
33486 #if DB_VERSION_MAJOR > 2
33487         db_env_create( NULL, 0 );
33488 #elif DB_VERSION_MAJOR > 1
33489         db_appexit( NULL );
33490 #else
33491         (void) dbopen( NULL, 0, 0, 0, NULL);
33492 #endif
33493
33494   ;
33495   return 0;
33496 }
33497 _ACEOF
33498 rm -f conftest.$ac_objext conftest$ac_exeext
33499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33500   (eval $ac_link) 2>conftest.er1
33501   ac_status=$?
33502   grep -v '^ *+' conftest.er1 >conftest.err
33503   rm -f conftest.er1
33504   cat conftest.err >&5
33505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506   (exit $ac_status); } &&
33507          { ac_try='test -z "$ac_c_werror_flag"
33508                          || test ! -s conftest.err'
33509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33510   (eval $ac_try) 2>&5
33511   ac_status=$?
33512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513   (exit $ac_status); }; } &&
33514          { ac_try='test -s conftest$ac_exeext'
33515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33516   (eval $ac_try) 2>&5
33517   ac_status=$?
33518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519   (exit $ac_status); }; }; then
33520   ol_cv_db_db_4=yes
33521 else
33522   echo "$as_me: failed program was:" >&5
33523 sed 's/^/| /' conftest.$ac_ext >&5
33524
33525 ol_cv_db_db_4=no
33526 fi
33527 rm -f conftest.err conftest.$ac_objext \
33528       conftest$ac_exeext conftest.$ac_ext
33529
33530         LIBS="$ol_LIBS"
33531
33532 fi
33533 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33534 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33535
33536         if test $ol_cv_db_db_4 = yes ; then
33537                 ol_cv_lib_db=-ldb-4
33538         fi
33539 fi
33540
33541         if test $ol_cv_lib_db = no ; then
33542         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33543 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33544 if test "${ol_cv_db_db4+set}" = set; then
33545   echo $ECHO_N "(cached) $ECHO_C" >&6
33546 else
33547
33548         ol_DB_LIB=-ldb4
33549         ol_LIBS=$LIBS
33550         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33551
33552         cat >conftest.$ac_ext <<_ACEOF
33553 /* confdefs.h.  */
33554 _ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h.  */
33558
33559 #ifdef HAVE_DB_185_H
33560 # include <db_185.h>
33561 #else
33562 # include <db.h>
33563 #endif
33564
33565 #ifndef DB_VERSION_MAJOR
33566 # define DB_VERSION_MAJOR 1
33567 #endif
33568
33569 #ifndef NULL
33570 #define NULL ((void*)0)
33571 #endif
33572
33573 int
33574 main ()
33575 {
33576
33577 #if DB_VERSION_MAJOR > 1
33578         {
33579                 char *version;
33580                 int major, minor, patch;
33581
33582                 version = db_version( &major, &minor, &patch );
33583
33584                 if( major != DB_VERSION_MAJOR ||
33585                         minor < DB_VERSION_MINOR )
33586                 {
33587                         printf("Berkeley DB version mismatch\n"
33588                                 "\theader: %s\n\tlibrary: %s\n",
33589                                 DB_VERSION_STRING, version);
33590                         return 1;
33591                 }
33592         }
33593 #endif
33594
33595 #if DB_VERSION_MAJOR > 2
33596         db_env_create( NULL, 0 );
33597 #elif DB_VERSION_MAJOR > 1
33598         db_appexit( NULL );
33599 #else
33600         (void) dbopen( NULL, 0, 0, 0, NULL);
33601 #endif
33602
33603   ;
33604   return 0;
33605 }
33606 _ACEOF
33607 rm -f conftest.$ac_objext conftest$ac_exeext
33608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33609   (eval $ac_link) 2>conftest.er1
33610   ac_status=$?
33611   grep -v '^ *+' conftest.er1 >conftest.err
33612   rm -f conftest.er1
33613   cat conftest.err >&5
33614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615   (exit $ac_status); } &&
33616          { ac_try='test -z "$ac_c_werror_flag"
33617                          || test ! -s conftest.err'
33618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33619   (eval $ac_try) 2>&5
33620   ac_status=$?
33621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33622   (exit $ac_status); }; } &&
33623          { ac_try='test -s conftest$ac_exeext'
33624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33625   (eval $ac_try) 2>&5
33626   ac_status=$?
33627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33628   (exit $ac_status); }; }; then
33629   ol_cv_db_db4=yes
33630 else
33631   echo "$as_me: failed program was:" >&5
33632 sed 's/^/| /' conftest.$ac_ext >&5
33633
33634 ol_cv_db_db4=no
33635 fi
33636 rm -f conftest.err conftest.$ac_objext \
33637       conftest$ac_exeext conftest.$ac_ext
33638
33639         LIBS="$ol_LIBS"
33640
33641 fi
33642 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33643 echo "${ECHO_T}$ol_cv_db_db4" >&6
33644
33645         if test $ol_cv_db_db4 = yes ; then
33646                 ol_cv_lib_db=-ldb4
33647         fi
33648 fi
33649
33650         if test $ol_cv_lib_db = no ; then
33651         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33652 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33653 if test "${ol_cv_db_db+set}" = set; then
33654   echo $ECHO_N "(cached) $ECHO_C" >&6
33655 else
33656
33657         ol_DB_LIB=-ldb
33658         ol_LIBS=$LIBS
33659         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33660
33661         cat >conftest.$ac_ext <<_ACEOF
33662 /* confdefs.h.  */
33663 _ACEOF
33664 cat confdefs.h >>conftest.$ac_ext
33665 cat >>conftest.$ac_ext <<_ACEOF
33666 /* end confdefs.h.  */
33667
33668 #ifdef HAVE_DB_185_H
33669 # include <db_185.h>
33670 #else
33671 # include <db.h>
33672 #endif
33673
33674 #ifndef DB_VERSION_MAJOR
33675 # define DB_VERSION_MAJOR 1
33676 #endif
33677
33678 #ifndef NULL
33679 #define NULL ((void*)0)
33680 #endif
33681
33682 int
33683 main ()
33684 {
33685
33686 #if DB_VERSION_MAJOR > 1
33687         {
33688                 char *version;
33689                 int major, minor, patch;
33690
33691                 version = db_version( &major, &minor, &patch );
33692
33693                 if( major != DB_VERSION_MAJOR ||
33694                         minor < DB_VERSION_MINOR )
33695                 {
33696                         printf("Berkeley DB version mismatch\n"
33697                                 "\theader: %s\n\tlibrary: %s\n",
33698                                 DB_VERSION_STRING, version);
33699                         return 1;
33700                 }
33701         }
33702 #endif
33703
33704 #if DB_VERSION_MAJOR > 2
33705         db_env_create( NULL, 0 );
33706 #elif DB_VERSION_MAJOR > 1
33707         db_appexit( NULL );
33708 #else
33709         (void) dbopen( NULL, 0, 0, 0, NULL);
33710 #endif
33711
33712   ;
33713   return 0;
33714 }
33715 _ACEOF
33716 rm -f conftest.$ac_objext conftest$ac_exeext
33717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33718   (eval $ac_link) 2>conftest.er1
33719   ac_status=$?
33720   grep -v '^ *+' conftest.er1 >conftest.err
33721   rm -f conftest.er1
33722   cat conftest.err >&5
33723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724   (exit $ac_status); } &&
33725          { ac_try='test -z "$ac_c_werror_flag"
33726                          || test ! -s conftest.err'
33727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33728   (eval $ac_try) 2>&5
33729   ac_status=$?
33730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731   (exit $ac_status); }; } &&
33732          { ac_try='test -s conftest$ac_exeext'
33733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33734   (eval $ac_try) 2>&5
33735   ac_status=$?
33736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737   (exit $ac_status); }; }; then
33738   ol_cv_db_db=yes
33739 else
33740   echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33742
33743 ol_cv_db_db=no
33744 fi
33745 rm -f conftest.err conftest.$ac_objext \
33746       conftest$ac_exeext conftest.$ac_ext
33747
33748         LIBS="$ol_LIBS"
33749
33750 fi
33751 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33752 echo "${ECHO_T}$ol_cv_db_db" >&6
33753
33754         if test $ol_cv_db_db = yes ; then
33755                 ol_cv_lib_db=-ldb
33756         fi
33757 fi
33758
33759
33760 elif test $ol_cv_bdb_major = 3 ; then
33761         if test $ol_cv_lib_db = no ; then
33762         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33763 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33764 if test "${ol_cv_db_db3+set}" = set; then
33765   echo $ECHO_N "(cached) $ECHO_C" >&6
33766 else
33767
33768         ol_DB_LIB=-ldb3
33769         ol_LIBS=$LIBS
33770         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33771
33772         cat >conftest.$ac_ext <<_ACEOF
33773 /* confdefs.h.  */
33774 _ACEOF
33775 cat confdefs.h >>conftest.$ac_ext
33776 cat >>conftest.$ac_ext <<_ACEOF
33777 /* end confdefs.h.  */
33778
33779 #ifdef HAVE_DB_185_H
33780 # include <db_185.h>
33781 #else
33782 # include <db.h>
33783 #endif
33784
33785 #ifndef DB_VERSION_MAJOR
33786 # define DB_VERSION_MAJOR 1
33787 #endif
33788
33789 #ifndef NULL
33790 #define NULL ((void*)0)
33791 #endif
33792
33793 int
33794 main ()
33795 {
33796
33797 #if DB_VERSION_MAJOR > 1
33798         {
33799                 char *version;
33800                 int major, minor, patch;
33801
33802                 version = db_version( &major, &minor, &patch );
33803
33804                 if( major != DB_VERSION_MAJOR ||
33805                         minor < DB_VERSION_MINOR )
33806                 {
33807                         printf("Berkeley DB version mismatch\n"
33808                                 "\theader: %s\n\tlibrary: %s\n",
33809                                 DB_VERSION_STRING, version);
33810                         return 1;
33811                 }
33812         }
33813 #endif
33814
33815 #if DB_VERSION_MAJOR > 2
33816         db_env_create( NULL, 0 );
33817 #elif DB_VERSION_MAJOR > 1
33818         db_appexit( NULL );
33819 #else
33820         (void) dbopen( NULL, 0, 0, 0, NULL);
33821 #endif
33822
33823   ;
33824   return 0;
33825 }
33826 _ACEOF
33827 rm -f conftest.$ac_objext conftest$ac_exeext
33828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33829   (eval $ac_link) 2>conftest.er1
33830   ac_status=$?
33831   grep -v '^ *+' conftest.er1 >conftest.err
33832   rm -f conftest.er1
33833   cat conftest.err >&5
33834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835   (exit $ac_status); } &&
33836          { ac_try='test -z "$ac_c_werror_flag"
33837                          || test ! -s conftest.err'
33838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33839   (eval $ac_try) 2>&5
33840   ac_status=$?
33841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842   (exit $ac_status); }; } &&
33843          { ac_try='test -s conftest$ac_exeext'
33844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33845   (eval $ac_try) 2>&5
33846   ac_status=$?
33847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848   (exit $ac_status); }; }; then
33849   ol_cv_db_db3=yes
33850 else
33851   echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33853
33854 ol_cv_db_db3=no
33855 fi
33856 rm -f conftest.err conftest.$ac_objext \
33857       conftest$ac_exeext conftest.$ac_ext
33858
33859         LIBS="$ol_LIBS"
33860
33861 fi
33862 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33863 echo "${ECHO_T}$ol_cv_db_db3" >&6
33864
33865         if test $ol_cv_db_db3 = yes ; then
33866                 ol_cv_lib_db=-ldb3
33867         fi
33868 fi
33869
33870         if test $ol_cv_lib_db = no ; then
33871         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33872 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33873 if test "${ol_cv_db_db_3+set}" = set; then
33874   echo $ECHO_N "(cached) $ECHO_C" >&6
33875 else
33876
33877         ol_DB_LIB=-ldb-3
33878         ol_LIBS=$LIBS
33879         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33880
33881         cat >conftest.$ac_ext <<_ACEOF
33882 /* confdefs.h.  */
33883 _ACEOF
33884 cat confdefs.h >>conftest.$ac_ext
33885 cat >>conftest.$ac_ext <<_ACEOF
33886 /* end confdefs.h.  */
33887
33888 #ifdef HAVE_DB_185_H
33889 # include <db_185.h>
33890 #else
33891 # include <db.h>
33892 #endif
33893
33894 #ifndef DB_VERSION_MAJOR
33895 # define DB_VERSION_MAJOR 1
33896 #endif
33897
33898 #ifndef NULL
33899 #define NULL ((void*)0)
33900 #endif
33901
33902 int
33903 main ()
33904 {
33905
33906 #if DB_VERSION_MAJOR > 1
33907         {
33908                 char *version;
33909                 int major, minor, patch;
33910
33911                 version = db_version( &major, &minor, &patch );
33912
33913                 if( major != DB_VERSION_MAJOR ||
33914                         minor < DB_VERSION_MINOR )
33915                 {
33916                         printf("Berkeley DB version mismatch\n"
33917                                 "\theader: %s\n\tlibrary: %s\n",
33918                                 DB_VERSION_STRING, version);
33919                         return 1;
33920                 }
33921         }
33922 #endif
33923
33924 #if DB_VERSION_MAJOR > 2
33925         db_env_create( NULL, 0 );
33926 #elif DB_VERSION_MAJOR > 1
33927         db_appexit( NULL );
33928 #else
33929         (void) dbopen( NULL, 0, 0, 0, NULL);
33930 #endif
33931
33932   ;
33933   return 0;
33934 }
33935 _ACEOF
33936 rm -f conftest.$ac_objext conftest$ac_exeext
33937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33938   (eval $ac_link) 2>conftest.er1
33939   ac_status=$?
33940   grep -v '^ *+' conftest.er1 >conftest.err
33941   rm -f conftest.er1
33942   cat conftest.err >&5
33943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944   (exit $ac_status); } &&
33945          { ac_try='test -z "$ac_c_werror_flag"
33946                          || test ! -s conftest.err'
33947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948   (eval $ac_try) 2>&5
33949   ac_status=$?
33950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951   (exit $ac_status); }; } &&
33952          { ac_try='test -s conftest$ac_exeext'
33953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954   (eval $ac_try) 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); }; }; then
33958   ol_cv_db_db_3=yes
33959 else
33960   echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33962
33963 ol_cv_db_db_3=no
33964 fi
33965 rm -f conftest.err conftest.$ac_objext \
33966       conftest$ac_exeext conftest.$ac_ext
33967
33968         LIBS="$ol_LIBS"
33969
33970 fi
33971 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33972 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33973
33974         if test $ol_cv_db_db_3 = yes ; then
33975                 ol_cv_lib_db=-ldb-3
33976         fi
33977 fi
33978
33979
33980 elif test $ol_cv_bdb_major = 2 ; then
33981         if test $ol_cv_lib_db = no ; then
33982         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33983 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33984 if test "${ol_cv_db_db2+set}" = set; then
33985   echo $ECHO_N "(cached) $ECHO_C" >&6
33986 else
33987
33988         ol_DB_LIB=-ldb2
33989         ol_LIBS=$LIBS
33990         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33991
33992         cat >conftest.$ac_ext <<_ACEOF
33993 /* confdefs.h.  */
33994 _ACEOF
33995 cat confdefs.h >>conftest.$ac_ext
33996 cat >>conftest.$ac_ext <<_ACEOF
33997 /* end confdefs.h.  */
33998
33999 #ifdef HAVE_DB_185_H
34000 # include <db_185.h>
34001 #else
34002 # include <db.h>
34003 #endif
34004
34005 #ifndef DB_VERSION_MAJOR
34006 # define DB_VERSION_MAJOR 1
34007 #endif
34008
34009 #ifndef NULL
34010 #define NULL ((void*)0)
34011 #endif
34012
34013 int
34014 main ()
34015 {
34016
34017 #if DB_VERSION_MAJOR > 1
34018         {
34019                 char *version;
34020                 int major, minor, patch;
34021
34022                 version = db_version( &major, &minor, &patch );
34023
34024                 if( major != DB_VERSION_MAJOR ||
34025                         minor < DB_VERSION_MINOR )
34026                 {
34027                         printf("Berkeley DB version mismatch\n"
34028                                 "\theader: %s\n\tlibrary: %s\n",
34029                                 DB_VERSION_STRING, version);
34030                         return 1;
34031                 }
34032         }
34033 #endif
34034
34035 #if DB_VERSION_MAJOR > 2
34036         db_env_create( NULL, 0 );
34037 #elif DB_VERSION_MAJOR > 1
34038         db_appexit( NULL );
34039 #else
34040         (void) dbopen( NULL, 0, 0, 0, NULL);
34041 #endif
34042
34043   ;
34044   return 0;
34045 }
34046 _ACEOF
34047 rm -f conftest.$ac_objext conftest$ac_exeext
34048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34049   (eval $ac_link) 2>conftest.er1
34050   ac_status=$?
34051   grep -v '^ *+' conftest.er1 >conftest.err
34052   rm -f conftest.er1
34053   cat conftest.err >&5
34054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055   (exit $ac_status); } &&
34056          { ac_try='test -z "$ac_c_werror_flag"
34057                          || test ! -s conftest.err'
34058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059   (eval $ac_try) 2>&5
34060   ac_status=$?
34061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062   (exit $ac_status); }; } &&
34063          { ac_try='test -s conftest$ac_exeext'
34064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065   (eval $ac_try) 2>&5
34066   ac_status=$?
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); }; }; then
34069   ol_cv_db_db2=yes
34070 else
34071   echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34073
34074 ol_cv_db_db2=no
34075 fi
34076 rm -f conftest.err conftest.$ac_objext \
34077       conftest$ac_exeext conftest.$ac_ext
34078
34079         LIBS="$ol_LIBS"
34080
34081 fi
34082 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34083 echo "${ECHO_T}$ol_cv_db_db2" >&6
34084
34085         if test $ol_cv_db_db2 = yes ; then
34086                 ol_cv_lib_db=-ldb2
34087         fi
34088 fi
34089
34090         if test $ol_cv_lib_db = no ; then
34091         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34092 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34093 if test "${ol_cv_db_db_2+set}" = set; then
34094   echo $ECHO_N "(cached) $ECHO_C" >&6
34095 else
34096
34097         ol_DB_LIB=-ldb-2
34098         ol_LIBS=$LIBS
34099         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34100
34101         cat >conftest.$ac_ext <<_ACEOF
34102 /* confdefs.h.  */
34103 _ACEOF
34104 cat confdefs.h >>conftest.$ac_ext
34105 cat >>conftest.$ac_ext <<_ACEOF
34106 /* end confdefs.h.  */
34107
34108 #ifdef HAVE_DB_185_H
34109 # include <db_185.h>
34110 #else
34111 # include <db.h>
34112 #endif
34113
34114 #ifndef DB_VERSION_MAJOR
34115 # define DB_VERSION_MAJOR 1
34116 #endif
34117
34118 #ifndef NULL
34119 #define NULL ((void*)0)
34120 #endif
34121
34122 int
34123 main ()
34124 {
34125
34126 #if DB_VERSION_MAJOR > 1
34127         {
34128                 char *version;
34129                 int major, minor, patch;
34130
34131                 version = db_version( &major, &minor, &patch );
34132
34133                 if( major != DB_VERSION_MAJOR ||
34134                         minor < DB_VERSION_MINOR )
34135                 {
34136                         printf("Berkeley DB version mismatch\n"
34137                                 "\theader: %s\n\tlibrary: %s\n",
34138                                 DB_VERSION_STRING, version);
34139                         return 1;
34140                 }
34141         }
34142 #endif
34143
34144 #if DB_VERSION_MAJOR > 2
34145         db_env_create( NULL, 0 );
34146 #elif DB_VERSION_MAJOR > 1
34147         db_appexit( NULL );
34148 #else
34149         (void) dbopen( NULL, 0, 0, 0, NULL);
34150 #endif
34151
34152   ;
34153   return 0;
34154 }
34155 _ACEOF
34156 rm -f conftest.$ac_objext conftest$ac_exeext
34157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34158   (eval $ac_link) 2>conftest.er1
34159   ac_status=$?
34160   grep -v '^ *+' conftest.er1 >conftest.err
34161   rm -f conftest.er1
34162   cat conftest.err >&5
34163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164   (exit $ac_status); } &&
34165          { ac_try='test -z "$ac_c_werror_flag"
34166                          || test ! -s conftest.err'
34167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34168   (eval $ac_try) 2>&5
34169   ac_status=$?
34170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171   (exit $ac_status); }; } &&
34172          { ac_try='test -s conftest$ac_exeext'
34173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34174   (eval $ac_try) 2>&5
34175   ac_status=$?
34176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177   (exit $ac_status); }; }; then
34178   ol_cv_db_db_2=yes
34179 else
34180   echo "$as_me: failed program was:" >&5
34181 sed 's/^/| /' conftest.$ac_ext >&5
34182
34183 ol_cv_db_db_2=no
34184 fi
34185 rm -f conftest.err conftest.$ac_objext \
34186       conftest$ac_exeext conftest.$ac_ext
34187
34188         LIBS="$ol_LIBS"
34189
34190 fi
34191 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34192 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34193
34194         if test $ol_cv_db_db_2 = yes ; then
34195                 ol_cv_lib_db=-ldb-2
34196         fi
34197 fi
34198
34199
34200 elif test $ol_cv_bdb_major = 1 ; then
34201         if test $ol_cv_lib_db = no ; then
34202         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34203 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34204 if test "${ol_cv_db_db1+set}" = set; then
34205   echo $ECHO_N "(cached) $ECHO_C" >&6
34206 else
34207
34208         ol_DB_LIB=-ldb1
34209         ol_LIBS=$LIBS
34210         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34211
34212         cat >conftest.$ac_ext <<_ACEOF
34213 /* confdefs.h.  */
34214 _ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h.  */
34218
34219 #ifdef HAVE_DB_185_H
34220 # include <db_185.h>
34221 #else
34222 # include <db.h>
34223 #endif
34224
34225 #ifndef DB_VERSION_MAJOR
34226 # define DB_VERSION_MAJOR 1
34227 #endif
34228
34229 #ifndef NULL
34230 #define NULL ((void*)0)
34231 #endif
34232
34233 int
34234 main ()
34235 {
34236
34237 #if DB_VERSION_MAJOR > 1
34238         {
34239                 char *version;
34240                 int major, minor, patch;
34241
34242                 version = db_version( &major, &minor, &patch );
34243
34244                 if( major != DB_VERSION_MAJOR ||
34245                         minor < DB_VERSION_MINOR )
34246                 {
34247                         printf("Berkeley DB version mismatch\n"
34248                                 "\theader: %s\n\tlibrary: %s\n",
34249                                 DB_VERSION_STRING, version);
34250                         return 1;
34251                 }
34252         }
34253 #endif
34254
34255 #if DB_VERSION_MAJOR > 2
34256         db_env_create( NULL, 0 );
34257 #elif DB_VERSION_MAJOR > 1
34258         db_appexit( NULL );
34259 #else
34260         (void) dbopen( NULL, 0, 0, 0, NULL);
34261 #endif
34262
34263   ;
34264   return 0;
34265 }
34266 _ACEOF
34267 rm -f conftest.$ac_objext conftest$ac_exeext
34268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34269   (eval $ac_link) 2>conftest.er1
34270   ac_status=$?
34271   grep -v '^ *+' conftest.er1 >conftest.err
34272   rm -f conftest.er1
34273   cat conftest.err >&5
34274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275   (exit $ac_status); } &&
34276          { ac_try='test -z "$ac_c_werror_flag"
34277                          || test ! -s conftest.err'
34278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34279   (eval $ac_try) 2>&5
34280   ac_status=$?
34281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282   (exit $ac_status); }; } &&
34283          { ac_try='test -s conftest$ac_exeext'
34284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34285   (eval $ac_try) 2>&5
34286   ac_status=$?
34287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288   (exit $ac_status); }; }; then
34289   ol_cv_db_db1=yes
34290 else
34291   echo "$as_me: failed program was:" >&5
34292 sed 's/^/| /' conftest.$ac_ext >&5
34293
34294 ol_cv_db_db1=no
34295 fi
34296 rm -f conftest.err conftest.$ac_objext \
34297       conftest$ac_exeext conftest.$ac_ext
34298
34299         LIBS="$ol_LIBS"
34300
34301 fi
34302 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34303 echo "${ECHO_T}$ol_cv_db_db1" >&6
34304
34305         if test $ol_cv_db_db1 = yes ; then
34306                 ol_cv_lib_db=-ldb1
34307         fi
34308 fi
34309
34310         if test $ol_cv_lib_db = no ; then
34311         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34312 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34313 if test "${ol_cv_db_db_1+set}" = set; then
34314   echo $ECHO_N "(cached) $ECHO_C" >&6
34315 else
34316
34317         ol_DB_LIB=-ldb-1
34318         ol_LIBS=$LIBS
34319         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34320
34321         cat >conftest.$ac_ext <<_ACEOF
34322 /* confdefs.h.  */
34323 _ACEOF
34324 cat confdefs.h >>conftest.$ac_ext
34325 cat >>conftest.$ac_ext <<_ACEOF
34326 /* end confdefs.h.  */
34327
34328 #ifdef HAVE_DB_185_H
34329 # include <db_185.h>
34330 #else
34331 # include <db.h>
34332 #endif
34333
34334 #ifndef DB_VERSION_MAJOR
34335 # define DB_VERSION_MAJOR 1
34336 #endif
34337
34338 #ifndef NULL
34339 #define NULL ((void*)0)
34340 #endif
34341
34342 int
34343 main ()
34344 {
34345
34346 #if DB_VERSION_MAJOR > 1
34347         {
34348                 char *version;
34349                 int major, minor, patch;
34350
34351                 version = db_version( &major, &minor, &patch );
34352
34353                 if( major != DB_VERSION_MAJOR ||
34354                         minor < DB_VERSION_MINOR )
34355                 {
34356                         printf("Berkeley DB version mismatch\n"
34357                                 "\theader: %s\n\tlibrary: %s\n",
34358                                 DB_VERSION_STRING, version);
34359                         return 1;
34360                 }
34361         }
34362 #endif
34363
34364 #if DB_VERSION_MAJOR > 2
34365         db_env_create( NULL, 0 );
34366 #elif DB_VERSION_MAJOR > 1
34367         db_appexit( NULL );
34368 #else
34369         (void) dbopen( NULL, 0, 0, 0, NULL);
34370 #endif
34371
34372   ;
34373   return 0;
34374 }
34375 _ACEOF
34376 rm -f conftest.$ac_objext conftest$ac_exeext
34377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34378   (eval $ac_link) 2>conftest.er1
34379   ac_status=$?
34380   grep -v '^ *+' conftest.er1 >conftest.err
34381   rm -f conftest.er1
34382   cat conftest.err >&5
34383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384   (exit $ac_status); } &&
34385          { ac_try='test -z "$ac_c_werror_flag"
34386                          || test ! -s conftest.err'
34387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388   (eval $ac_try) 2>&5
34389   ac_status=$?
34390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391   (exit $ac_status); }; } &&
34392          { ac_try='test -s conftest$ac_exeext'
34393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394   (eval $ac_try) 2>&5
34395   ac_status=$?
34396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); }; }; then
34398   ol_cv_db_db_1=yes
34399 else
34400   echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34402
34403 ol_cv_db_db_1=no
34404 fi
34405 rm -f conftest.err conftest.$ac_objext \
34406       conftest$ac_exeext conftest.$ac_ext
34407
34408         LIBS="$ol_LIBS"
34409
34410 fi
34411 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34412 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34413
34414         if test $ol_cv_db_db_1 = yes ; then
34415                 ol_cv_lib_db=-ldb-1
34416         fi
34417 fi
34418
34419 fi
34420 if test $ol_cv_lib_db = no ; then
34421         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34422 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34423 if test "${ol_cv_db_none+set}" = set; then
34424   echo $ECHO_N "(cached) $ECHO_C" >&6
34425 else
34426
34427         ol_DB_LIB=
34428         ol_LIBS=$LIBS
34429         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34430
34431         cat >conftest.$ac_ext <<_ACEOF
34432 /* confdefs.h.  */
34433 _ACEOF
34434 cat confdefs.h >>conftest.$ac_ext
34435 cat >>conftest.$ac_ext <<_ACEOF
34436 /* end confdefs.h.  */
34437
34438 #ifdef HAVE_DB_185_H
34439 # include <db_185.h>
34440 #else
34441 # include <db.h>
34442 #endif
34443
34444 #ifndef DB_VERSION_MAJOR
34445 # define DB_VERSION_MAJOR 1
34446 #endif
34447
34448 #ifndef NULL
34449 #define NULL ((void*)0)
34450 #endif
34451
34452 int
34453 main ()
34454 {
34455
34456 #if DB_VERSION_MAJOR > 1
34457         {
34458                 char *version;
34459                 int major, minor, patch;
34460
34461                 version = db_version( &major, &minor, &patch );
34462
34463                 if( major != DB_VERSION_MAJOR ||
34464                         minor < DB_VERSION_MINOR )
34465                 {
34466                         printf("Berkeley DB version mismatch\n"
34467                                 "\theader: %s\n\tlibrary: %s\n",
34468                                 DB_VERSION_STRING, version);
34469                         return 1;
34470                 }
34471         }
34472 #endif
34473
34474 #if DB_VERSION_MAJOR > 2
34475         db_env_create( NULL, 0 );
34476 #elif DB_VERSION_MAJOR > 1
34477         db_appexit( NULL );
34478 #else
34479         (void) dbopen( NULL, 0, 0, 0, NULL);
34480 #endif
34481
34482   ;
34483   return 0;
34484 }
34485 _ACEOF
34486 rm -f conftest.$ac_objext conftest$ac_exeext
34487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34488   (eval $ac_link) 2>conftest.er1
34489   ac_status=$?
34490   grep -v '^ *+' conftest.er1 >conftest.err
34491   rm -f conftest.er1
34492   cat conftest.err >&5
34493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494   (exit $ac_status); } &&
34495          { ac_try='test -z "$ac_c_werror_flag"
34496                          || test ! -s conftest.err'
34497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34498   (eval $ac_try) 2>&5
34499   ac_status=$?
34500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501   (exit $ac_status); }; } &&
34502          { ac_try='test -s conftest$ac_exeext'
34503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504   (eval $ac_try) 2>&5
34505   ac_status=$?
34506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507   (exit $ac_status); }; }; then
34508   ol_cv_db_none=yes
34509 else
34510   echo "$as_me: failed program was:" >&5
34511 sed 's/^/| /' conftest.$ac_ext >&5
34512
34513 ol_cv_db_none=no
34514 fi
34515 rm -f conftest.err conftest.$ac_objext \
34516       conftest$ac_exeext conftest.$ac_ext
34517
34518         LIBS="$ol_LIBS"
34519
34520 fi
34521 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34522 echo "${ECHO_T}$ol_cv_db_none" >&6
34523
34524         if test $ol_cv_db_none = yes ; then
34525                 ol_cv_lib_db=yes
34526         fi
34527 fi
34528
34529
34530         if test "$ol_cv_lib_db" != no ; then
34531                 ol_cv_berkeley_db=yes
34532                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34533 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34534 if test "${ol_cv_berkeley_db_version+set}" = set; then
34535   echo $ECHO_N "(cached) $ECHO_C" >&6
34536 else
34537
34538         ol_LIBS="$LIBS"
34539         LIBS="$LTHREAD_LIBS $LIBS"
34540         if test $ol_cv_lib_db != yes ; then
34541                 LIBS="$ol_cv_lib_db $LIBS"
34542         fi
34543
34544         if test "$cross_compiling" = yes; then
34545   ol_cv_berkeley_db_version=cross
34546 else
34547   cat >conftest.$ac_ext <<_ACEOF
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553
34554 #ifdef HAVE_DB_185_H
34555         choke me;
34556 #else
34557 #include <db.h>
34558 #endif
34559 #ifndef DB_VERSION_MAJOR
34560 # define DB_VERSION_MAJOR 1
34561 #endif
34562 #ifndef NULL
34563 #define NULL ((void *)0)
34564 #endif
34565 main()
34566 {
34567 #if DB_VERSION_MAJOR > 1
34568         char *version;
34569         int major, minor, patch;
34570
34571         version = db_version( &major, &minor, &patch );
34572
34573         if( major != DB_VERSION_MAJOR ||
34574                 minor != DB_VERSION_MINOR ||
34575                 patch != DB_VERSION_PATCH )
34576         {
34577                 printf("Berkeley DB version mismatch\n"
34578                         "\theader: %s\n\tlibrary: %s\n",
34579                         DB_VERSION_STRING, version);
34580                 return 1;
34581         }
34582 #endif
34583
34584         return 0;
34585 }
34586 _ACEOF
34587 rm -f conftest$ac_exeext
34588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34589   (eval $ac_link) 2>&5
34590   ac_status=$?
34591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34594   (eval $ac_try) 2>&5
34595   ac_status=$?
34596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597   (exit $ac_status); }; }; then
34598   ol_cv_berkeley_db_version=yes
34599 else
34600   echo "$as_me: program exited with status $ac_status" >&5
34601 echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34603
34604 ( exit $ac_status )
34605 ol_cv_berkeley_db_version=no
34606 fi
34607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34608 fi
34609
34610         LIBS="$ol_LIBS"
34611
34612 fi
34613 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34614 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34615
34616         if test $ol_cv_berkeley_db_version = no ; then
34617                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34618 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34619    { (exit 1); exit 1; }; }
34620         fi
34621
34622                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34623 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34624 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34625   echo $ECHO_N "(cached) $ECHO_C" >&6
34626 else
34627
34628         ol_LIBS="$LIBS"
34629         LIBS="$LTHREAD_LIBS $LIBS"
34630         if test $ol_cv_lib_db != yes ; then
34631                 LIBS="$ol_cv_lib_db $LIBS"
34632         fi
34633
34634         if test "$cross_compiling" = yes; then
34635   ol_cv_berkeley_db_thread=cross
34636 else
34637   cat >conftest.$ac_ext <<_ACEOF
34638 /* confdefs.h.  */
34639 _ACEOF
34640 cat confdefs.h >>conftest.$ac_ext
34641 cat >>conftest.$ac_ext <<_ACEOF
34642 /* end confdefs.h.  */
34643
34644 #ifdef HAVE_DB_185_H
34645         choke me;
34646 #else
34647 #include <db.h>
34648 #endif
34649 #ifndef NULL
34650 #define NULL ((void *)0)
34651 #endif
34652 main()
34653 {
34654         int rc;
34655         u_int32_t flags = DB_CREATE |
34656 #ifdef DB_PRIVATE
34657                 DB_PRIVATE |
34658 #endif
34659                 DB_THREAD;
34660
34661 #if DB_VERSION_MAJOR > 2
34662         DB_ENV *env = NULL;
34663
34664         rc = db_env_create( &env, 0 );
34665
34666         flags |= DB_INIT_MPOOL;
34667 #ifdef DB_MPOOL_PRIVATE
34668         flags |= DB_MPOOL_PRIVATE;
34669 #endif
34670
34671         if( rc ) {
34672                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34673                 return rc;
34674         }
34675
34676 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34677         rc = env->open( env, NULL, flags, 0 );
34678 #else
34679         rc = env->open( env, NULL, NULL, flags, 0 );
34680 #endif
34681
34682         if ( rc == 0 ) {
34683                 rc = env->close( env, 0 );
34684         }
34685
34686         if( rc ) {
34687                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34688                 return rc;
34689         }
34690
34691 #else
34692         DB_ENV env;
34693         memset( &env, '\0', sizeof(env) );
34694
34695         rc = db_appinit( NULL, NULL, &env, flags );
34696
34697         if( rc == 0 ) {
34698                 db_appexit( &env );
34699         }
34700
34701         unlink("__db_mpool.share");
34702         unlink("__db_lock.share");
34703 #endif
34704
34705         return rc;
34706 }
34707 _ACEOF
34708 rm -f conftest$ac_exeext
34709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34710   (eval $ac_link) 2>&5
34711   ac_status=$?
34712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34715   (eval $ac_try) 2>&5
34716   ac_status=$?
34717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718   (exit $ac_status); }; }; then
34719   ol_cv_berkeley_db_thread=yes
34720 else
34721   echo "$as_me: program exited with status $ac_status" >&5
34722 echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34724
34725 ( exit $ac_status )
34726 ol_cv_berkeley_db_thread=no
34727 fi
34728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34729 fi
34730
34731         LIBS="$ol_LIBS"
34732
34733 fi
34734 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34735 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34736
34737         if test $ol_cv_berkeley_db_thread != no ; then
34738
34739 cat >>confdefs.h <<\_ACEOF
34740 #define HAVE_BERKELEY_DB_THREAD 1
34741 _ACEOF
34742
34743         fi
34744
34745         fi
34746 fi
34747
34748         fi
34749
34750         if test $ol_cv_berkeley_db != no ; then
34751
34752 cat >>confdefs.h <<\_ACEOF
34753 #define HAVE_BERKELEY_DB 1
34754 _ACEOF
34755
34756
34757                 ol_link_ldbm=berkeley
34758                 ol_enable_ldbm_api=berkeley
34759
34760                 if test $ol_enable_ldbm_type = hash ; then
34761
34762 cat >>confdefs.h <<\_ACEOF
34763 #define LDBM_USE_DBHASH 1
34764 _ACEOF
34765
34766                 else
34767
34768 cat >>confdefs.h <<\_ACEOF
34769 #define LDBM_USE_DBBTREE 1
34770 _ACEOF
34771
34772                 fi
34773
34774                                                 if test $ol_cv_lib_db != yes ; then
34775                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34776                 fi
34777         fi
34778         ;;
34779 esac
34780
34781 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34782         if test $ol_link_ldbm != berkeley ; then
34783                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34784 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34785    { (exit 1); exit 1; }; }
34786         else
34787                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34788 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34789 if test "${ol_cv_bdb_compat+set}" = set; then
34790   echo $ECHO_N "(cached) $ECHO_C" >&6
34791 else
34792
34793         cat >conftest.$ac_ext <<_ACEOF
34794 /* confdefs.h.  */
34795 _ACEOF
34796 cat confdefs.h >>conftest.$ac_ext
34797 cat >>conftest.$ac_ext <<_ACEOF
34798 /* end confdefs.h.  */
34799
34800 #include <db.h>
34801
34802  /* this check could be improved */
34803 #ifndef DB_VERSION_MAJOR
34804 #       define DB_VERSION_MAJOR 1
34805 #endif
34806 #ifndef DB_VERSION_MINOR
34807 #       define DB_VERSION_MINOR 0
34808 #endif
34809
34810 /* require 4.2 or later */
34811 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34812         __db_version_compat
34813 #endif
34814
34815 _ACEOF
34816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34817   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34818   ol_cv_bdb_compat=yes
34819 else
34820   ol_cv_bdb_compat=no
34821 fi
34822 rm -f conftest*
34823
34824 fi
34825 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34826 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34827
34828
34829                 if test $ol_cv_bdb_compat != yes ; then
34830                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34831 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34832    { (exit 1); exit 1; }; }
34833                 fi
34834         fi
34835 fi
34836
34837 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34838         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34839 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34840         ol_enable_ldbm_api=none
34841 fi
34842
34843 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34844         echo "$as_me:$LINENO: checking for MDBM library" >&5
34845 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34846 if test "${ol_cv_lib_mdbm+set}" = set; then
34847   echo $ECHO_N "(cached) $ECHO_C" >&6
34848 else
34849         ol_LIBS="$LIBS"
34850         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34851 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34852 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34853   echo $ECHO_N "(cached) $ECHO_C" >&6
34854 else
34855   cat >conftest.$ac_ext <<_ACEOF
34856 /* confdefs.h.  */
34857 _ACEOF
34858 cat confdefs.h >>conftest.$ac_ext
34859 cat >>conftest.$ac_ext <<_ACEOF
34860 /* end confdefs.h.  */
34861 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34863 #define mdbm_set_chain innocuous_mdbm_set_chain
34864
34865 /* System header to define __stub macros and hopefully few prototypes,
34866     which can conflict with char mdbm_set_chain (); below.
34867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34868     <limits.h> exists even on freestanding compilers.  */
34869
34870 #ifdef __STDC__
34871 # include <limits.h>
34872 #else
34873 # include <assert.h>
34874 #endif
34875
34876 #undef mdbm_set_chain
34877
34878 /* Override any gcc2 internal prototype to avoid an error.  */
34879 #ifdef __cplusplus
34880 extern "C"
34881 {
34882 #endif
34883 /* We use char because int might match the return type of a gcc2
34884    builtin and then its argument prototype would still apply.  */
34885 char mdbm_set_chain ();
34886 /* The GNU C library defines this for functions which it implements
34887     to always fail with ENOSYS.  Some functions are actually named
34888     something starting with __ and the normal name is an alias.  */
34889 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34890 choke me
34891 #else
34892 char (*f) () = mdbm_set_chain;
34893 #endif
34894 #ifdef __cplusplus
34895 }
34896 #endif
34897
34898 int
34899 main ()
34900 {
34901 return f != mdbm_set_chain;
34902   ;
34903   return 0;
34904 }
34905 _ACEOF
34906 rm -f conftest.$ac_objext conftest$ac_exeext
34907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34908   (eval $ac_link) 2>conftest.er1
34909   ac_status=$?
34910   grep -v '^ *+' conftest.er1 >conftest.err
34911   rm -f conftest.er1
34912   cat conftest.err >&5
34913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914   (exit $ac_status); } &&
34915          { ac_try='test -z "$ac_c_werror_flag"
34916                          || test ! -s conftest.err'
34917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34918   (eval $ac_try) 2>&5
34919   ac_status=$?
34920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921   (exit $ac_status); }; } &&
34922          { ac_try='test -s conftest$ac_exeext'
34923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924   (eval $ac_try) 2>&5
34925   ac_status=$?
34926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927   (exit $ac_status); }; }; then
34928   ac_cv_func_mdbm_set_chain=yes
34929 else
34930   echo "$as_me: failed program was:" >&5
34931 sed 's/^/| /' conftest.$ac_ext >&5
34932
34933 ac_cv_func_mdbm_set_chain=no
34934 fi
34935 rm -f conftest.err conftest.$ac_objext \
34936       conftest$ac_exeext conftest.$ac_ext
34937 fi
34938 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34939 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34940 if test $ac_cv_func_mdbm_set_chain = yes; then
34941   ol_cv_lib_mdbm=yes
34942 else
34943
34944                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34945 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34946 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34947   echo $ECHO_N "(cached) $ECHO_C" >&6
34948 else
34949   ac_check_lib_save_LIBS=$LIBS
34950 LIBS="-lmdbm  $LIBS"
34951 cat >conftest.$ac_ext <<_ACEOF
34952 /* confdefs.h.  */
34953 _ACEOF
34954 cat confdefs.h >>conftest.$ac_ext
34955 cat >>conftest.$ac_ext <<_ACEOF
34956 /* end confdefs.h.  */
34957
34958 /* Override any gcc2 internal prototype to avoid an error.  */
34959 #ifdef __cplusplus
34960 extern "C"
34961 #endif
34962 /* We use char because int might match the return type of a gcc2
34963    builtin and then its argument prototype would still apply.  */
34964 char mdbm_set_chain ();
34965 int
34966 main ()
34967 {
34968 mdbm_set_chain ();
34969   ;
34970   return 0;
34971 }
34972 _ACEOF
34973 rm -f conftest.$ac_objext conftest$ac_exeext
34974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34975   (eval $ac_link) 2>conftest.er1
34976   ac_status=$?
34977   grep -v '^ *+' conftest.er1 >conftest.err
34978   rm -f conftest.er1
34979   cat conftest.err >&5
34980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981   (exit $ac_status); } &&
34982          { ac_try='test -z "$ac_c_werror_flag"
34983                          || test ! -s conftest.err'
34984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34985   (eval $ac_try) 2>&5
34986   ac_status=$?
34987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988   (exit $ac_status); }; } &&
34989          { ac_try='test -s conftest$ac_exeext'
34990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34991   (eval $ac_try) 2>&5
34992   ac_status=$?
34993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994   (exit $ac_status); }; }; then
34995   ac_cv_lib_mdbm_mdbm_set_chain=yes
34996 else
34997   echo "$as_me: failed program was:" >&5
34998 sed 's/^/| /' conftest.$ac_ext >&5
34999
35000 ac_cv_lib_mdbm_mdbm_set_chain=no
35001 fi
35002 rm -f conftest.err conftest.$ac_objext \
35003       conftest$ac_exeext conftest.$ac_ext
35004 LIBS=$ac_check_lib_save_LIBS
35005 fi
35006 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35007 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35008 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35009   ol_cv_lib_mdbm=-lmdbm
35010 else
35011   ol_cv_lib_mdbm=no
35012 fi
35013
35014
35015 fi
35016
35017         LIBS="$ol_LIBS"
35018
35019 fi
35020 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35021 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35022
35023
35024
35025 for ac_header in mdbm.h
35026 do
35027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35029   echo "$as_me:$LINENO: checking for $ac_header" >&5
35030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35032   echo $ECHO_N "(cached) $ECHO_C" >&6
35033 fi
35034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35036 else
35037   # Is the header compilable?
35038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35040 cat >conftest.$ac_ext <<_ACEOF
35041 /* confdefs.h.  */
35042 _ACEOF
35043 cat confdefs.h >>conftest.$ac_ext
35044 cat >>conftest.$ac_ext <<_ACEOF
35045 /* end confdefs.h.  */
35046 $ac_includes_default
35047 #include <$ac_header>
35048 _ACEOF
35049 rm -f conftest.$ac_objext
35050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35051   (eval $ac_compile) 2>conftest.er1
35052   ac_status=$?
35053   grep -v '^ *+' conftest.er1 >conftest.err
35054   rm -f conftest.er1
35055   cat conftest.err >&5
35056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057   (exit $ac_status); } &&
35058          { ac_try='test -z "$ac_c_werror_flag"
35059                          || test ! -s conftest.err'
35060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061   (eval $ac_try) 2>&5
35062   ac_status=$?
35063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064   (exit $ac_status); }; } &&
35065          { ac_try='test -s conftest.$ac_objext'
35066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35067   (eval $ac_try) 2>&5
35068   ac_status=$?
35069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070   (exit $ac_status); }; }; then
35071   ac_header_compiler=yes
35072 else
35073   echo "$as_me: failed program was:" >&5
35074 sed 's/^/| /' conftest.$ac_ext >&5
35075
35076 ac_header_compiler=no
35077 fi
35078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35080 echo "${ECHO_T}$ac_header_compiler" >&6
35081
35082 # Is the header present?
35083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35085 cat >conftest.$ac_ext <<_ACEOF
35086 /* confdefs.h.  */
35087 _ACEOF
35088 cat confdefs.h >>conftest.$ac_ext
35089 cat >>conftest.$ac_ext <<_ACEOF
35090 /* end confdefs.h.  */
35091 #include <$ac_header>
35092 _ACEOF
35093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35095   ac_status=$?
35096   grep -v '^ *+' conftest.er1 >conftest.err
35097   rm -f conftest.er1
35098   cat conftest.err >&5
35099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100   (exit $ac_status); } >/dev/null; then
35101   if test -s conftest.err; then
35102     ac_cpp_err=$ac_c_preproc_warn_flag
35103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35104   else
35105     ac_cpp_err=
35106   fi
35107 else
35108   ac_cpp_err=yes
35109 fi
35110 if test -z "$ac_cpp_err"; then
35111   ac_header_preproc=yes
35112 else
35113   echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35115
35116   ac_header_preproc=no
35117 fi
35118 rm -f conftest.err conftest.$ac_ext
35119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35120 echo "${ECHO_T}$ac_header_preproc" >&6
35121
35122 # So?  What about this header?
35123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35124   yes:no: )
35125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35129     ac_header_preproc=yes
35130     ;;
35131   no:yes:* )
35132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35144     (
35145       cat <<\_ASBOX
35146 ## --------------------------------------------- ##
35147 ## Report this to <http://www.openldap.org/its/> ##
35148 ## --------------------------------------------- ##
35149 _ASBOX
35150     ) |
35151       sed "s/^/$as_me: WARNING:     /" >&2
35152     ;;
35153 esac
35154 echo "$as_me:$LINENO: checking for $ac_header" >&5
35155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35157   echo $ECHO_N "(cached) $ECHO_C" >&6
35158 else
35159   eval "$as_ac_Header=\$ac_header_preproc"
35160 fi
35161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35163
35164 fi
35165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35166   cat >>confdefs.h <<_ACEOF
35167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35168 _ACEOF
35169
35170 fi
35171
35172 done
35173
35174  echo "$as_me:$LINENO: checking for db" >&5
35175 echo $ECHO_N "checking for db... $ECHO_C" >&6
35176 if test "${ol_cv_mdbm+set}" = set; then
35177   echo $ECHO_N "(cached) $ECHO_C" >&6
35178 else
35179
35180         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35181                 ol_cv_mdbm=no
35182         else
35183                 ol_cv_mdbm=yes
35184         fi
35185
35186 fi
35187 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35188 echo "${ECHO_T}$ol_cv_mdbm" >&6
35189  if test $ol_cv_mdbm = yes ; then
35190
35191 cat >>confdefs.h <<\_ACEOF
35192 #define HAVE_MDBM 1
35193 _ACEOF
35194
35195  fi
35196
35197
35198         if test $ol_cv_mdbm = yes ; then
35199                 ol_link_ldbm=mdbm
35200                 ol_enable_ldbm_api=mdbm
35201                 if test $ol_cv_lib_mdbm != yes ; then
35202                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35203                 fi
35204         fi
35205 fi
35206
35207 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35208         echo "$as_me:$LINENO: checking for GDBM library" >&5
35209 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35210 if test "${ol_cv_lib_gdbm+set}" = set; then
35211   echo $ECHO_N "(cached) $ECHO_C" >&6
35212 else
35213         ol_LIBS="$LIBS"
35214         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35215 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35216 if test "${ac_cv_func_gdbm_open+set}" = set; then
35217   echo $ECHO_N "(cached) $ECHO_C" >&6
35218 else
35219   cat >conftest.$ac_ext <<_ACEOF
35220 /* confdefs.h.  */
35221 _ACEOF
35222 cat confdefs.h >>conftest.$ac_ext
35223 cat >>conftest.$ac_ext <<_ACEOF
35224 /* end confdefs.h.  */
35225 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35227 #define gdbm_open innocuous_gdbm_open
35228
35229 /* System header to define __stub macros and hopefully few prototypes,
35230     which can conflict with char gdbm_open (); below.
35231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35232     <limits.h> exists even on freestanding compilers.  */
35233
35234 #ifdef __STDC__
35235 # include <limits.h>
35236 #else
35237 # include <assert.h>
35238 #endif
35239
35240 #undef gdbm_open
35241
35242 /* Override any gcc2 internal prototype to avoid an error.  */
35243 #ifdef __cplusplus
35244 extern "C"
35245 {
35246 #endif
35247 /* We use char because int might match the return type of a gcc2
35248    builtin and then its argument prototype would still apply.  */
35249 char gdbm_open ();
35250 /* The GNU C library defines this for functions which it implements
35251     to always fail with ENOSYS.  Some functions are actually named
35252     something starting with __ and the normal name is an alias.  */
35253 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35254 choke me
35255 #else
35256 char (*f) () = gdbm_open;
35257 #endif
35258 #ifdef __cplusplus
35259 }
35260 #endif
35261
35262 int
35263 main ()
35264 {
35265 return f != gdbm_open;
35266   ;
35267   return 0;
35268 }
35269 _ACEOF
35270 rm -f conftest.$ac_objext conftest$ac_exeext
35271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35272   (eval $ac_link) 2>conftest.er1
35273   ac_status=$?
35274   grep -v '^ *+' conftest.er1 >conftest.err
35275   rm -f conftest.er1
35276   cat conftest.err >&5
35277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278   (exit $ac_status); } &&
35279          { ac_try='test -z "$ac_c_werror_flag"
35280                          || test ! -s conftest.err'
35281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282   (eval $ac_try) 2>&5
35283   ac_status=$?
35284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285   (exit $ac_status); }; } &&
35286          { ac_try='test -s conftest$ac_exeext'
35287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35288   (eval $ac_try) 2>&5
35289   ac_status=$?
35290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291   (exit $ac_status); }; }; then
35292   ac_cv_func_gdbm_open=yes
35293 else
35294   echo "$as_me: failed program was:" >&5
35295 sed 's/^/| /' conftest.$ac_ext >&5
35296
35297 ac_cv_func_gdbm_open=no
35298 fi
35299 rm -f conftest.err conftest.$ac_objext \
35300       conftest$ac_exeext conftest.$ac_ext
35301 fi
35302 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35303 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35304 if test $ac_cv_func_gdbm_open = yes; then
35305   ol_cv_lib_gdbm=yes
35306 else
35307
35308                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35309 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35310 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35311   echo $ECHO_N "(cached) $ECHO_C" >&6
35312 else
35313   ac_check_lib_save_LIBS=$LIBS
35314 LIBS="-lgdbm  $LIBS"
35315 cat >conftest.$ac_ext <<_ACEOF
35316 /* confdefs.h.  */
35317 _ACEOF
35318 cat confdefs.h >>conftest.$ac_ext
35319 cat >>conftest.$ac_ext <<_ACEOF
35320 /* end confdefs.h.  */
35321
35322 /* Override any gcc2 internal prototype to avoid an error.  */
35323 #ifdef __cplusplus
35324 extern "C"
35325 #endif
35326 /* We use char because int might match the return type of a gcc2
35327    builtin and then its argument prototype would still apply.  */
35328 char gdbm_open ();
35329 int
35330 main ()
35331 {
35332 gdbm_open ();
35333   ;
35334   return 0;
35335 }
35336 _ACEOF
35337 rm -f conftest.$ac_objext conftest$ac_exeext
35338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35339   (eval $ac_link) 2>conftest.er1
35340   ac_status=$?
35341   grep -v '^ *+' conftest.er1 >conftest.err
35342   rm -f conftest.er1
35343   cat conftest.err >&5
35344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35345   (exit $ac_status); } &&
35346          { ac_try='test -z "$ac_c_werror_flag"
35347                          || test ! -s conftest.err'
35348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35349   (eval $ac_try) 2>&5
35350   ac_status=$?
35351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352   (exit $ac_status); }; } &&
35353          { ac_try='test -s conftest$ac_exeext'
35354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355   (eval $ac_try) 2>&5
35356   ac_status=$?
35357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358   (exit $ac_status); }; }; then
35359   ac_cv_lib_gdbm_gdbm_open=yes
35360 else
35361   echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35363
35364 ac_cv_lib_gdbm_gdbm_open=no
35365 fi
35366 rm -f conftest.err conftest.$ac_objext \
35367       conftest$ac_exeext conftest.$ac_ext
35368 LIBS=$ac_check_lib_save_LIBS
35369 fi
35370 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35371 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35372 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35373   ol_cv_lib_gdbm=-lgdbm
35374 else
35375   ol_cv_lib_gdbm=no
35376 fi
35377
35378
35379 fi
35380
35381         LIBS="$ol_LIBS"
35382
35383 fi
35384 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35385 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35386
35387
35388
35389 for ac_header in gdbm.h
35390 do
35391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35393   echo "$as_me:$LINENO: checking for $ac_header" >&5
35394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35396   echo $ECHO_N "(cached) $ECHO_C" >&6
35397 fi
35398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35400 else
35401   # Is the header compilable?
35402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35404 cat >conftest.$ac_ext <<_ACEOF
35405 /* confdefs.h.  */
35406 _ACEOF
35407 cat confdefs.h >>conftest.$ac_ext
35408 cat >>conftest.$ac_ext <<_ACEOF
35409 /* end confdefs.h.  */
35410 $ac_includes_default
35411 #include <$ac_header>
35412 _ACEOF
35413 rm -f conftest.$ac_objext
35414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35415   (eval $ac_compile) 2>conftest.er1
35416   ac_status=$?
35417   grep -v '^ *+' conftest.er1 >conftest.err
35418   rm -f conftest.er1
35419   cat conftest.err >&5
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); } &&
35422          { ac_try='test -z "$ac_c_werror_flag"
35423                          || test ! -s conftest.err'
35424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35425   (eval $ac_try) 2>&5
35426   ac_status=$?
35427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35428   (exit $ac_status); }; } &&
35429          { ac_try='test -s conftest.$ac_objext'
35430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35431   (eval $ac_try) 2>&5
35432   ac_status=$?
35433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434   (exit $ac_status); }; }; then
35435   ac_header_compiler=yes
35436 else
35437   echo "$as_me: failed program was:" >&5
35438 sed 's/^/| /' conftest.$ac_ext >&5
35439
35440 ac_header_compiler=no
35441 fi
35442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35444 echo "${ECHO_T}$ac_header_compiler" >&6
35445
35446 # Is the header present?
35447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35449 cat >conftest.$ac_ext <<_ACEOF
35450 /* confdefs.h.  */
35451 _ACEOF
35452 cat confdefs.h >>conftest.$ac_ext
35453 cat >>conftest.$ac_ext <<_ACEOF
35454 /* end confdefs.h.  */
35455 #include <$ac_header>
35456 _ACEOF
35457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35459   ac_status=$?
35460   grep -v '^ *+' conftest.er1 >conftest.err
35461   rm -f conftest.er1
35462   cat conftest.err >&5
35463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464   (exit $ac_status); } >/dev/null; then
35465   if test -s conftest.err; then
35466     ac_cpp_err=$ac_c_preproc_warn_flag
35467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35468   else
35469     ac_cpp_err=
35470   fi
35471 else
35472   ac_cpp_err=yes
35473 fi
35474 if test -z "$ac_cpp_err"; then
35475   ac_header_preproc=yes
35476 else
35477   echo "$as_me: failed program was:" >&5
35478 sed 's/^/| /' conftest.$ac_ext >&5
35479
35480   ac_header_preproc=no
35481 fi
35482 rm -f conftest.err conftest.$ac_ext
35483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35484 echo "${ECHO_T}$ac_header_preproc" >&6
35485
35486 # So?  What about this header?
35487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35488   yes:no: )
35489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35493     ac_header_preproc=yes
35494     ;;
35495   no:yes:* )
35496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35508     (
35509       cat <<\_ASBOX
35510 ## --------------------------------------------- ##
35511 ## Report this to <http://www.openldap.org/its/> ##
35512 ## --------------------------------------------- ##
35513 _ASBOX
35514     ) |
35515       sed "s/^/$as_me: WARNING:     /" >&2
35516     ;;
35517 esac
35518 echo "$as_me:$LINENO: checking for $ac_header" >&5
35519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35521   echo $ECHO_N "(cached) $ECHO_C" >&6
35522 else
35523   eval "$as_ac_Header=\$ac_header_preproc"
35524 fi
35525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35527
35528 fi
35529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35530   cat >>confdefs.h <<_ACEOF
35531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35532 _ACEOF
35533
35534 fi
35535
35536 done
35537
35538  echo "$as_me:$LINENO: checking for db" >&5
35539 echo $ECHO_N "checking for db... $ECHO_C" >&6
35540 if test "${ol_cv_gdbm+set}" = set; then
35541   echo $ECHO_N "(cached) $ECHO_C" >&6
35542 else
35543
35544         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35545                 ol_cv_gdbm=no
35546         else
35547                 ol_cv_gdbm=yes
35548         fi
35549
35550 fi
35551 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35552 echo "${ECHO_T}$ol_cv_gdbm" >&6
35553  if test $ol_cv_gdbm = yes ; then
35554
35555 cat >>confdefs.h <<\_ACEOF
35556 #define HAVE_GDBM 1
35557 _ACEOF
35558
35559  fi
35560
35561
35562         if test $ol_cv_gdbm = yes ; then
35563                 ol_link_ldbm=gdbm
35564                 ol_enable_ldbm_api=gdbm
35565
35566                 if test $ol_cv_lib_gdbm != yes ; then
35567                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35568                 fi
35569         fi
35570 fi
35571
35572 if test $ol_enable_ldbm_api = ndbm ; then
35573         echo "$as_me:$LINENO: checking for NDBM library" >&5
35574 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35575 if test "${ol_cv_lib_ndbm+set}" = set; then
35576   echo $ECHO_N "(cached) $ECHO_C" >&6
35577 else
35578         ol_LIBS="$LIBS"
35579         echo "$as_me:$LINENO: checking for dbm_open" >&5
35580 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35581 if test "${ac_cv_func_dbm_open+set}" = set; then
35582   echo $ECHO_N "(cached) $ECHO_C" >&6
35583 else
35584   cat >conftest.$ac_ext <<_ACEOF
35585 /* confdefs.h.  */
35586 _ACEOF
35587 cat confdefs.h >>conftest.$ac_ext
35588 cat >>conftest.$ac_ext <<_ACEOF
35589 /* end confdefs.h.  */
35590 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35592 #define dbm_open innocuous_dbm_open
35593
35594 /* System header to define __stub macros and hopefully few prototypes,
35595     which can conflict with char dbm_open (); below.
35596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35597     <limits.h> exists even on freestanding compilers.  */
35598
35599 #ifdef __STDC__
35600 # include <limits.h>
35601 #else
35602 # include <assert.h>
35603 #endif
35604
35605 #undef dbm_open
35606
35607 /* Override any gcc2 internal prototype to avoid an error.  */
35608 #ifdef __cplusplus
35609 extern "C"
35610 {
35611 #endif
35612 /* We use char because int might match the return type of a gcc2
35613    builtin and then its argument prototype would still apply.  */
35614 char dbm_open ();
35615 /* The GNU C library defines this for functions which it implements
35616     to always fail with ENOSYS.  Some functions are actually named
35617     something starting with __ and the normal name is an alias.  */
35618 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35619 choke me
35620 #else
35621 char (*f) () = dbm_open;
35622 #endif
35623 #ifdef __cplusplus
35624 }
35625 #endif
35626
35627 int
35628 main ()
35629 {
35630 return f != dbm_open;
35631   ;
35632   return 0;
35633 }
35634 _ACEOF
35635 rm -f conftest.$ac_objext conftest$ac_exeext
35636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35637   (eval $ac_link) 2>conftest.er1
35638   ac_status=$?
35639   grep -v '^ *+' conftest.er1 >conftest.err
35640   rm -f conftest.er1
35641   cat conftest.err >&5
35642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643   (exit $ac_status); } &&
35644          { ac_try='test -z "$ac_c_werror_flag"
35645                          || test ! -s conftest.err'
35646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35647   (eval $ac_try) 2>&5
35648   ac_status=$?
35649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35650   (exit $ac_status); }; } &&
35651          { ac_try='test -s conftest$ac_exeext'
35652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35653   (eval $ac_try) 2>&5
35654   ac_status=$?
35655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656   (exit $ac_status); }; }; then
35657   ac_cv_func_dbm_open=yes
35658 else
35659   echo "$as_me: failed program was:" >&5
35660 sed 's/^/| /' conftest.$ac_ext >&5
35661
35662 ac_cv_func_dbm_open=no
35663 fi
35664 rm -f conftest.err conftest.$ac_objext \
35665       conftest$ac_exeext conftest.$ac_ext
35666 fi
35667 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35668 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35669 if test $ac_cv_func_dbm_open = yes; then
35670   ol_cv_lib_ndbm=yes
35671 else
35672
35673                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35674 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35675 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35676   echo $ECHO_N "(cached) $ECHO_C" >&6
35677 else
35678   ac_check_lib_save_LIBS=$LIBS
35679 LIBS="-lndbm  $LIBS"
35680 cat >conftest.$ac_ext <<_ACEOF
35681 /* confdefs.h.  */
35682 _ACEOF
35683 cat confdefs.h >>conftest.$ac_ext
35684 cat >>conftest.$ac_ext <<_ACEOF
35685 /* end confdefs.h.  */
35686
35687 /* Override any gcc2 internal prototype to avoid an error.  */
35688 #ifdef __cplusplus
35689 extern "C"
35690 #endif
35691 /* We use char because int might match the return type of a gcc2
35692    builtin and then its argument prototype would still apply.  */
35693 char dbm_open ();
35694 int
35695 main ()
35696 {
35697 dbm_open ();
35698   ;
35699   return 0;
35700 }
35701 _ACEOF
35702 rm -f conftest.$ac_objext conftest$ac_exeext
35703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35704   (eval $ac_link) 2>conftest.er1
35705   ac_status=$?
35706   grep -v '^ *+' conftest.er1 >conftest.err
35707   rm -f conftest.er1
35708   cat conftest.err >&5
35709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710   (exit $ac_status); } &&
35711          { ac_try='test -z "$ac_c_werror_flag"
35712                          || test ! -s conftest.err'
35713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35714   (eval $ac_try) 2>&5
35715   ac_status=$?
35716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717   (exit $ac_status); }; } &&
35718          { ac_try='test -s conftest$ac_exeext'
35719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35720   (eval $ac_try) 2>&5
35721   ac_status=$?
35722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723   (exit $ac_status); }; }; then
35724   ac_cv_lib_ndbm_dbm_open=yes
35725 else
35726   echo "$as_me: failed program was:" >&5
35727 sed 's/^/| /' conftest.$ac_ext >&5
35728
35729 ac_cv_lib_ndbm_dbm_open=no
35730 fi
35731 rm -f conftest.err conftest.$ac_objext \
35732       conftest$ac_exeext conftest.$ac_ext
35733 LIBS=$ac_check_lib_save_LIBS
35734 fi
35735 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35736 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35737 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35738   ol_cv_lib_ndbm=-lndbm
35739 else
35740
35741                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35742 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35743 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35744   echo $ECHO_N "(cached) $ECHO_C" >&6
35745 else
35746   ac_check_lib_save_LIBS=$LIBS
35747 LIBS="-ldbm  $LIBS"
35748 cat >conftest.$ac_ext <<_ACEOF
35749 /* confdefs.h.  */
35750 _ACEOF
35751 cat confdefs.h >>conftest.$ac_ext
35752 cat >>conftest.$ac_ext <<_ACEOF
35753 /* end confdefs.h.  */
35754
35755 /* Override any gcc2 internal prototype to avoid an error.  */
35756 #ifdef __cplusplus
35757 extern "C"
35758 #endif
35759 /* We use char because int might match the return type of a gcc2
35760    builtin and then its argument prototype would still apply.  */
35761 char dbm_open ();
35762 int
35763 main ()
35764 {
35765 dbm_open ();
35766   ;
35767   return 0;
35768 }
35769 _ACEOF
35770 rm -f conftest.$ac_objext conftest$ac_exeext
35771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35772   (eval $ac_link) 2>conftest.er1
35773   ac_status=$?
35774   grep -v '^ *+' conftest.er1 >conftest.err
35775   rm -f conftest.er1
35776   cat conftest.err >&5
35777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778   (exit $ac_status); } &&
35779          { ac_try='test -z "$ac_c_werror_flag"
35780                          || test ! -s conftest.err'
35781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782   (eval $ac_try) 2>&5
35783   ac_status=$?
35784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785   (exit $ac_status); }; } &&
35786          { ac_try='test -s conftest$ac_exeext'
35787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35788   (eval $ac_try) 2>&5
35789   ac_status=$?
35790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791   (exit $ac_status); }; }; then
35792   ac_cv_lib_dbm_dbm_open=yes
35793 else
35794   echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35796
35797 ac_cv_lib_dbm_dbm_open=no
35798 fi
35799 rm -f conftest.err conftest.$ac_objext \
35800       conftest$ac_exeext conftest.$ac_ext
35801 LIBS=$ac_check_lib_save_LIBS
35802 fi
35803 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35804 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35805 if test $ac_cv_lib_dbm_dbm_open = yes; then
35806   ol_cv_lib_ndbm=-ldbm
35807 else
35808   ol_cv_lib_ndbm=no
35809 fi
35810
35811 fi
35812
35813
35814 fi
35815
35816         LIBS="$ol_LIBS"
35817
35818 fi
35819 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35820 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35821
35822
35823
35824 for ac_header in ndbm.h
35825 do
35826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35828   echo "$as_me:$LINENO: checking for $ac_header" >&5
35829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35831   echo $ECHO_N "(cached) $ECHO_C" >&6
35832 fi
35833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35835 else
35836   # Is the header compilable?
35837 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35839 cat >conftest.$ac_ext <<_ACEOF
35840 /* confdefs.h.  */
35841 _ACEOF
35842 cat confdefs.h >>conftest.$ac_ext
35843 cat >>conftest.$ac_ext <<_ACEOF
35844 /* end confdefs.h.  */
35845 $ac_includes_default
35846 #include <$ac_header>
35847 _ACEOF
35848 rm -f conftest.$ac_objext
35849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35850   (eval $ac_compile) 2>conftest.er1
35851   ac_status=$?
35852   grep -v '^ *+' conftest.er1 >conftest.err
35853   rm -f conftest.er1
35854   cat conftest.err >&5
35855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856   (exit $ac_status); } &&
35857          { ac_try='test -z "$ac_c_werror_flag"
35858                          || test ! -s conftest.err'
35859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35860   (eval $ac_try) 2>&5
35861   ac_status=$?
35862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863   (exit $ac_status); }; } &&
35864          { ac_try='test -s conftest.$ac_objext'
35865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35866   (eval $ac_try) 2>&5
35867   ac_status=$?
35868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869   (exit $ac_status); }; }; then
35870   ac_header_compiler=yes
35871 else
35872   echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35874
35875 ac_header_compiler=no
35876 fi
35877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35879 echo "${ECHO_T}$ac_header_compiler" >&6
35880
35881 # Is the header present?
35882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35884 cat >conftest.$ac_ext <<_ACEOF
35885 /* confdefs.h.  */
35886 _ACEOF
35887 cat confdefs.h >>conftest.$ac_ext
35888 cat >>conftest.$ac_ext <<_ACEOF
35889 /* end confdefs.h.  */
35890 #include <$ac_header>
35891 _ACEOF
35892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35894   ac_status=$?
35895   grep -v '^ *+' conftest.er1 >conftest.err
35896   rm -f conftest.er1
35897   cat conftest.err >&5
35898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899   (exit $ac_status); } >/dev/null; then
35900   if test -s conftest.err; then
35901     ac_cpp_err=$ac_c_preproc_warn_flag
35902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35903   else
35904     ac_cpp_err=
35905   fi
35906 else
35907   ac_cpp_err=yes
35908 fi
35909 if test -z "$ac_cpp_err"; then
35910   ac_header_preproc=yes
35911 else
35912   echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35914
35915   ac_header_preproc=no
35916 fi
35917 rm -f conftest.err conftest.$ac_ext
35918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35919 echo "${ECHO_T}$ac_header_preproc" >&6
35920
35921 # So?  What about this header?
35922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35923   yes:no: )
35924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35928     ac_header_preproc=yes
35929     ;;
35930   no:yes:* )
35931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35943     (
35944       cat <<\_ASBOX
35945 ## --------------------------------------------- ##
35946 ## Report this to <http://www.openldap.org/its/> ##
35947 ## --------------------------------------------- ##
35948 _ASBOX
35949     ) |
35950       sed "s/^/$as_me: WARNING:     /" >&2
35951     ;;
35952 esac
35953 echo "$as_me:$LINENO: checking for $ac_header" >&5
35954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35956   echo $ECHO_N "(cached) $ECHO_C" >&6
35957 else
35958   eval "$as_ac_Header=\$ac_header_preproc"
35959 fi
35960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35962
35963 fi
35964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35965   cat >>confdefs.h <<_ACEOF
35966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35967 _ACEOF
35968
35969 fi
35970
35971 done
35972
35973  echo "$as_me:$LINENO: checking for db" >&5
35974 echo $ECHO_N "checking for db... $ECHO_C" >&6
35975 if test "${ol_cv_ndbm+set}" = set; then
35976   echo $ECHO_N "(cached) $ECHO_C" >&6
35977 else
35978
35979         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35980                 ol_cv_ndbm=no
35981         else
35982                 ol_cv_ndbm=yes
35983         fi
35984
35985 fi
35986 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35987 echo "${ECHO_T}$ol_cv_ndbm" >&6
35988  if test $ol_cv_ndbm = yes ; then
35989
35990 cat >>confdefs.h <<\_ACEOF
35991 #define HAVE_NDBM 1
35992 _ACEOF
35993
35994  fi
35995
35996
35997         if test $ol_cv_ndbm = yes ; then
35998                 ol_link_ldbm=ndbm
35999                 ol_enable_ldbm_api=ndbm
36000
36001                 if test $ol_cv_lib_ndbm != yes ; then
36002                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36003                 fi
36004         fi
36005 fi
36006
36007 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36008         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36009 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36010    { (exit 1); exit 1; }; }
36011 fi
36012
36013 if test $ol_enable_bdb = yes ||
36014    test $ol_enable_hdb = yes ||
36015    test $ol_enable_ldbm = yes ; then
36016         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36017 fi
36018
36019
36020 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36021         BUILD_LIBS_DYNAMIC=shared
36022
36023 cat >>confdefs.h <<\_ACEOF
36024 #define LDAP_LIBS_DYNAMIC 1
36025 _ACEOF
36026
36027         LTSTATIC=""
36028 else
36029         BUILD_LIBS_DYNAMIC=static
36030         LTSTATIC="-static"
36031 fi
36032
36033 if test $ol_enable_wrappers != no ; then
36034
36035 for ac_header in tcpd.h
36036 do
36037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36039   echo "$as_me:$LINENO: checking for $ac_header" >&5
36040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36042   echo $ECHO_N "(cached) $ECHO_C" >&6
36043 fi
36044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36046 else
36047   # Is the header compilable?
36048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36050 cat >conftest.$ac_ext <<_ACEOF
36051 /* confdefs.h.  */
36052 _ACEOF
36053 cat confdefs.h >>conftest.$ac_ext
36054 cat >>conftest.$ac_ext <<_ACEOF
36055 /* end confdefs.h.  */
36056 $ac_includes_default
36057 #include <$ac_header>
36058 _ACEOF
36059 rm -f conftest.$ac_objext
36060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36061   (eval $ac_compile) 2>conftest.er1
36062   ac_status=$?
36063   grep -v '^ *+' conftest.er1 >conftest.err
36064   rm -f conftest.er1
36065   cat conftest.err >&5
36066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067   (exit $ac_status); } &&
36068          { ac_try='test -z "$ac_c_werror_flag"
36069                          || test ! -s conftest.err'
36070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36071   (eval $ac_try) 2>&5
36072   ac_status=$?
36073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074   (exit $ac_status); }; } &&
36075          { ac_try='test -s conftest.$ac_objext'
36076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36077   (eval $ac_try) 2>&5
36078   ac_status=$?
36079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); }; }; then
36081   ac_header_compiler=yes
36082 else
36083   echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36085
36086 ac_header_compiler=no
36087 fi
36088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36090 echo "${ECHO_T}$ac_header_compiler" >&6
36091
36092 # Is the header present?
36093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36095 cat >conftest.$ac_ext <<_ACEOF
36096 /* confdefs.h.  */
36097 _ACEOF
36098 cat confdefs.h >>conftest.$ac_ext
36099 cat >>conftest.$ac_ext <<_ACEOF
36100 /* end confdefs.h.  */
36101 #include <$ac_header>
36102 _ACEOF
36103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36105   ac_status=$?
36106   grep -v '^ *+' conftest.er1 >conftest.err
36107   rm -f conftest.er1
36108   cat conftest.err >&5
36109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110   (exit $ac_status); } >/dev/null; then
36111   if test -s conftest.err; then
36112     ac_cpp_err=$ac_c_preproc_warn_flag
36113     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36114   else
36115     ac_cpp_err=
36116   fi
36117 else
36118   ac_cpp_err=yes
36119 fi
36120 if test -z "$ac_cpp_err"; then
36121   ac_header_preproc=yes
36122 else
36123   echo "$as_me: failed program was:" >&5
36124 sed 's/^/| /' conftest.$ac_ext >&5
36125
36126   ac_header_preproc=no
36127 fi
36128 rm -f conftest.err conftest.$ac_ext
36129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36130 echo "${ECHO_T}$ac_header_preproc" >&6
36131
36132 # So?  What about this header?
36133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36134   yes:no: )
36135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36139     ac_header_preproc=yes
36140     ;;
36141   no:yes:* )
36142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36154     (
36155       cat <<\_ASBOX
36156 ## --------------------------------------------- ##
36157 ## Report this to <http://www.openldap.org/its/> ##
36158 ## --------------------------------------------- ##
36159 _ASBOX
36160     ) |
36161       sed "s/^/$as_me: WARNING:     /" >&2
36162     ;;
36163 esac
36164 echo "$as_me:$LINENO: checking for $ac_header" >&5
36165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36167   echo $ECHO_N "(cached) $ECHO_C" >&6
36168 else
36169   eval "$as_ac_Header=\$ac_header_preproc"
36170 fi
36171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36173
36174 fi
36175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36176   cat >>confdefs.h <<_ACEOF
36177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36178 _ACEOF
36179
36180                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36181 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36182                 save_LIBS="$LIBS"
36183                 LIBS="$LIBS -lwrap"
36184                 cat >conftest.$ac_ext <<_ACEOF
36185 /* confdefs.h.  */
36186 _ACEOF
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h.  */
36190
36191 #include <tcpd.h>
36192 int allow_severity = 0;
36193 int deny_severity  = 0;
36194
36195 struct request_info *req;
36196
36197 int
36198 main ()
36199 {
36200
36201 hosts_access(req)
36202
36203   ;
36204   return 0;
36205 }
36206 _ACEOF
36207 rm -f conftest.$ac_objext conftest$ac_exeext
36208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36209   (eval $ac_link) 2>conftest.er1
36210   ac_status=$?
36211   grep -v '^ *+' conftest.er1 >conftest.err
36212   rm -f conftest.er1
36213   cat conftest.err >&5
36214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215   (exit $ac_status); } &&
36216          { ac_try='test -z "$ac_c_werror_flag"
36217                          || test ! -s conftest.err'
36218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36219   (eval $ac_try) 2>&5
36220   ac_status=$?
36221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222   (exit $ac_status); }; } &&
36223          { ac_try='test -s conftest$ac_exeext'
36224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225   (eval $ac_try) 2>&5
36226   ac_status=$?
36227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228   (exit $ac_status); }; }; then
36229   echo "$as_me:$LINENO: result: -lwrap" >&5
36230 echo "${ECHO_T}-lwrap" >&6
36231                 have_wrappers=yes
36232                 LIBS="$save_LIBS"
36233 else
36234   echo "$as_me: failed program was:" >&5
36235 sed 's/^/| /' conftest.$ac_ext >&5
36236
36237
36238                                 LIBS="$LIBS -lnsl"
36239                 cat >conftest.$ac_ext <<_ACEOF
36240 /* confdefs.h.  */
36241 _ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h.  */
36245
36246 #include <tcpd.h>
36247 int allow_severity = 0;
36248 int deny_severity  = 0;
36249
36250 struct request_info *req;
36251
36252 int
36253 main ()
36254 {
36255
36256 hosts_access(req)
36257
36258   ;
36259   return 0;
36260 }
36261 _ACEOF
36262 rm -f conftest.$ac_objext conftest$ac_exeext
36263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36264   (eval $ac_link) 2>conftest.er1
36265   ac_status=$?
36266   grep -v '^ *+' conftest.er1 >conftest.err
36267   rm -f conftest.er1
36268   cat conftest.err >&5
36269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270   (exit $ac_status); } &&
36271          { ac_try='test -z "$ac_c_werror_flag"
36272                          || test ! -s conftest.err'
36273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36274   (eval $ac_try) 2>&5
36275   ac_status=$?
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); }; } &&
36278          { ac_try='test -s conftest$ac_exeext'
36279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280   (eval $ac_try) 2>&5
36281   ac_status=$?
36282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283   (exit $ac_status); }; }; then
36284   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36285 echo "${ECHO_T}-lwrap -lnsl" >&6
36286                 have_wrappers=yes
36287                 LIBS="$save_LIBS -lnsl"
36288 else
36289   echo "$as_me: failed program was:" >&5
36290 sed 's/^/| /' conftest.$ac_ext >&5
36291
36292
36293                 echo "$as_me:$LINENO: result: no" >&5
36294 echo "${ECHO_T}no" >&6
36295                 have_wrappers=no
36296                 LIBS=$save_LIBS
36297 fi
36298 rm -f conftest.err conftest.$ac_objext \
36299       conftest$ac_exeext conftest.$ac_ext
36300 fi
36301 rm -f conftest.err conftest.$ac_objext \
36302       conftest$ac_exeext conftest.$ac_ext
36303 else
36304   have_wrappers=no
36305 fi
36306
36307 done
36308
36309
36310         if test $have_wrappers = yes ; then
36311
36312 cat >>confdefs.h <<\_ACEOF
36313 #define HAVE_TCPD 1
36314 _ACEOF
36315
36316                 WRAP_LIBS="-lwrap"
36317         elif test $ol_enable_wrappers = yes ; then
36318                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36319 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36320    { (exit 1); exit 1; }; }
36321         else
36322                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36323 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36324                 WRAP_LIBS=""
36325         fi
36326 fi
36327
36328 if test $ol_enable_syslog != no ; then
36329         echo "$as_me:$LINENO: checking for openlog" >&5
36330 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36331 if test "${ac_cv_func_openlog+set}" = set; then
36332   echo $ECHO_N "(cached) $ECHO_C" >&6
36333 else
36334   cat >conftest.$ac_ext <<_ACEOF
36335 /* confdefs.h.  */
36336 _ACEOF
36337 cat confdefs.h >>conftest.$ac_ext
36338 cat >>conftest.$ac_ext <<_ACEOF
36339 /* end confdefs.h.  */
36340 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36342 #define openlog innocuous_openlog
36343
36344 /* System header to define __stub macros and hopefully few prototypes,
36345     which can conflict with char openlog (); below.
36346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36347     <limits.h> exists even on freestanding compilers.  */
36348
36349 #ifdef __STDC__
36350 # include <limits.h>
36351 #else
36352 # include <assert.h>
36353 #endif
36354
36355 #undef openlog
36356
36357 /* Override any gcc2 internal prototype to avoid an error.  */
36358 #ifdef __cplusplus
36359 extern "C"
36360 {
36361 #endif
36362 /* We use char because int might match the return type of a gcc2
36363    builtin and then its argument prototype would still apply.  */
36364 char openlog ();
36365 /* The GNU C library defines this for functions which it implements
36366     to always fail with ENOSYS.  Some functions are actually named
36367     something starting with __ and the normal name is an alias.  */
36368 #if defined (__stub_openlog) || defined (__stub___openlog)
36369 choke me
36370 #else
36371 char (*f) () = openlog;
36372 #endif
36373 #ifdef __cplusplus
36374 }
36375 #endif
36376
36377 int
36378 main ()
36379 {
36380 return f != openlog;
36381   ;
36382   return 0;
36383 }
36384 _ACEOF
36385 rm -f conftest.$ac_objext conftest$ac_exeext
36386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36387   (eval $ac_link) 2>conftest.er1
36388   ac_status=$?
36389   grep -v '^ *+' conftest.er1 >conftest.err
36390   rm -f conftest.er1
36391   cat conftest.err >&5
36392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393   (exit $ac_status); } &&
36394          { ac_try='test -z "$ac_c_werror_flag"
36395                          || test ! -s conftest.err'
36396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36397   (eval $ac_try) 2>&5
36398   ac_status=$?
36399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400   (exit $ac_status); }; } &&
36401          { ac_try='test -s conftest$ac_exeext'
36402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36403   (eval $ac_try) 2>&5
36404   ac_status=$?
36405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406   (exit $ac_status); }; }; then
36407   ac_cv_func_openlog=yes
36408 else
36409   echo "$as_me: failed program was:" >&5
36410 sed 's/^/| /' conftest.$ac_ext >&5
36411
36412 ac_cv_func_openlog=no
36413 fi
36414 rm -f conftest.err conftest.$ac_objext \
36415       conftest$ac_exeext conftest.$ac_ext
36416 fi
36417 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36418 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36419
36420         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36421                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36422 echo "$as_me: error: could not find syslog" >&2;}
36423    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36424         fi
36425         ol_enable_syslog=$ac_cv_func_openlog
36426 fi
36427
36428 ol_link_sql=no
36429 if test $ol_enable_sql != no ; then
36430
36431
36432 for ac_header in sql.h sqlext.h
36433 do
36434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36436   echo "$as_me:$LINENO: checking for $ac_header" >&5
36437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36439   echo $ECHO_N "(cached) $ECHO_C" >&6
36440 fi
36441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36443 else
36444   # Is the header compilable?
36445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36447 cat >conftest.$ac_ext <<_ACEOF
36448 /* confdefs.h.  */
36449 _ACEOF
36450 cat confdefs.h >>conftest.$ac_ext
36451 cat >>conftest.$ac_ext <<_ACEOF
36452 /* end confdefs.h.  */
36453 $ac_includes_default
36454 #include <$ac_header>
36455 _ACEOF
36456 rm -f conftest.$ac_objext
36457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36458   (eval $ac_compile) 2>conftest.er1
36459   ac_status=$?
36460   grep -v '^ *+' conftest.er1 >conftest.err
36461   rm -f conftest.er1
36462   cat conftest.err >&5
36463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464   (exit $ac_status); } &&
36465          { ac_try='test -z "$ac_c_werror_flag"
36466                          || test ! -s conftest.err'
36467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36468   (eval $ac_try) 2>&5
36469   ac_status=$?
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); }; } &&
36472          { ac_try='test -s conftest.$ac_objext'
36473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36474   (eval $ac_try) 2>&5
36475   ac_status=$?
36476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477   (exit $ac_status); }; }; then
36478   ac_header_compiler=yes
36479 else
36480   echo "$as_me: failed program was:" >&5
36481 sed 's/^/| /' conftest.$ac_ext >&5
36482
36483 ac_header_compiler=no
36484 fi
36485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36487 echo "${ECHO_T}$ac_header_compiler" >&6
36488
36489 # Is the header present?
36490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36492 cat >conftest.$ac_ext <<_ACEOF
36493 /* confdefs.h.  */
36494 _ACEOF
36495 cat confdefs.h >>conftest.$ac_ext
36496 cat >>conftest.$ac_ext <<_ACEOF
36497 /* end confdefs.h.  */
36498 #include <$ac_header>
36499 _ACEOF
36500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36502   ac_status=$?
36503   grep -v '^ *+' conftest.er1 >conftest.err
36504   rm -f conftest.er1
36505   cat conftest.err >&5
36506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507   (exit $ac_status); } >/dev/null; then
36508   if test -s conftest.err; then
36509     ac_cpp_err=$ac_c_preproc_warn_flag
36510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36511   else
36512     ac_cpp_err=
36513   fi
36514 else
36515   ac_cpp_err=yes
36516 fi
36517 if test -z "$ac_cpp_err"; then
36518   ac_header_preproc=yes
36519 else
36520   echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36522
36523   ac_header_preproc=no
36524 fi
36525 rm -f conftest.err conftest.$ac_ext
36526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36527 echo "${ECHO_T}$ac_header_preproc" >&6
36528
36529 # So?  What about this header?
36530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36531   yes:no: )
36532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36536     ac_header_preproc=yes
36537     ;;
36538   no:yes:* )
36539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36551     (
36552       cat <<\_ASBOX
36553 ## --------------------------------------------- ##
36554 ## Report this to <http://www.openldap.org/its/> ##
36555 ## --------------------------------------------- ##
36556 _ASBOX
36557     ) |
36558       sed "s/^/$as_me: WARNING:     /" >&2
36559     ;;
36560 esac
36561 echo "$as_me:$LINENO: checking for $ac_header" >&5
36562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36564   echo $ECHO_N "(cached) $ECHO_C" >&6
36565 else
36566   eval "$as_ac_Header=\$ac_header_preproc"
36567 fi
36568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36570
36571 fi
36572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36573   cat >>confdefs.h <<_ACEOF
36574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36575 _ACEOF
36576
36577 else
36578
36579                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36580 echo "$as_me: error: could not locate SQL headers" >&2;}
36581    { (exit 1); exit 1; }; }
36582
36583 fi
36584
36585 done
36586
36587
36588         sql_LIBS="$LIBS"
36589         LIBS="$LTHREAD_LIBS"
36590
36591         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36592 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36593 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36594   echo $ECHO_N "(cached) $ECHO_C" >&6
36595 else
36596   ac_check_lib_save_LIBS=$LIBS
36597 LIBS="-liodbc  $LIBS"
36598 cat >conftest.$ac_ext <<_ACEOF
36599 /* confdefs.h.  */
36600 _ACEOF
36601 cat confdefs.h >>conftest.$ac_ext
36602 cat >>conftest.$ac_ext <<_ACEOF
36603 /* end confdefs.h.  */
36604
36605 /* Override any gcc2 internal prototype to avoid an error.  */
36606 #ifdef __cplusplus
36607 extern "C"
36608 #endif
36609 /* We use char because int might match the return type of a gcc2
36610    builtin and then its argument prototype would still apply.  */
36611 char SQLDriverConnect ();
36612 int
36613 main ()
36614 {
36615 SQLDriverConnect ();
36616   ;
36617   return 0;
36618 }
36619 _ACEOF
36620 rm -f conftest.$ac_objext conftest$ac_exeext
36621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36622   (eval $ac_link) 2>conftest.er1
36623   ac_status=$?
36624   grep -v '^ *+' conftest.er1 >conftest.err
36625   rm -f conftest.er1
36626   cat conftest.err >&5
36627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628   (exit $ac_status); } &&
36629          { ac_try='test -z "$ac_c_werror_flag"
36630                          || test ! -s conftest.err'
36631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36632   (eval $ac_try) 2>&5
36633   ac_status=$?
36634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36635   (exit $ac_status); }; } &&
36636          { ac_try='test -s conftest$ac_exeext'
36637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36638   (eval $ac_try) 2>&5
36639   ac_status=$?
36640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641   (exit $ac_status); }; }; then
36642   ac_cv_lib_iodbc_SQLDriverConnect=yes
36643 else
36644   echo "$as_me: failed program was:" >&5
36645 sed 's/^/| /' conftest.$ac_ext >&5
36646
36647 ac_cv_lib_iodbc_SQLDriverConnect=no
36648 fi
36649 rm -f conftest.err conftest.$ac_objext \
36650       conftest$ac_exeext conftest.$ac_ext
36651 LIBS=$ac_check_lib_save_LIBS
36652 fi
36653 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36654 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36655 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36656   have_iodbc=yes
36657 else
36658   have_iodbc=no
36659 fi
36660
36661         if test $have_iodbc = yes ; then
36662                 ol_link_sql="-liodbc"
36663         else
36664                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36665 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36666 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36667   echo $ECHO_N "(cached) $ECHO_C" >&6
36668 else
36669   ac_check_lib_save_LIBS=$LIBS
36670 LIBS="-lodbc  $LIBS"
36671 cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h.  */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h.  */
36677
36678 /* Override any gcc2 internal prototype to avoid an error.  */
36679 #ifdef __cplusplus
36680 extern "C"
36681 #endif
36682 /* We use char because int might match the return type of a gcc2
36683    builtin and then its argument prototype would still apply.  */
36684 char SQLDriverConnect ();
36685 int
36686 main ()
36687 {
36688 SQLDriverConnect ();
36689   ;
36690   return 0;
36691 }
36692 _ACEOF
36693 rm -f conftest.$ac_objext conftest$ac_exeext
36694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36695   (eval $ac_link) 2>conftest.er1
36696   ac_status=$?
36697   grep -v '^ *+' conftest.er1 >conftest.err
36698   rm -f conftest.er1
36699   cat conftest.err >&5
36700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701   (exit $ac_status); } &&
36702          { ac_try='test -z "$ac_c_werror_flag"
36703                          || test ! -s conftest.err'
36704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36705   (eval $ac_try) 2>&5
36706   ac_status=$?
36707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708   (exit $ac_status); }; } &&
36709          { ac_try='test -s conftest$ac_exeext'
36710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36711   (eval $ac_try) 2>&5
36712   ac_status=$?
36713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714   (exit $ac_status); }; }; then
36715   ac_cv_lib_odbc_SQLDriverConnect=yes
36716 else
36717   echo "$as_me: failed program was:" >&5
36718 sed 's/^/| /' conftest.$ac_ext >&5
36719
36720 ac_cv_lib_odbc_SQLDriverConnect=no
36721 fi
36722 rm -f conftest.err conftest.$ac_objext \
36723       conftest$ac_exeext conftest.$ac_ext
36724 LIBS=$ac_check_lib_save_LIBS
36725 fi
36726 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36727 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36728 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36729   have_odbc=yes
36730 else
36731   have_odbc=no
36732 fi
36733
36734                 if test $have_odbc = yes ; then
36735                         ol_link_sql="-lodbc"
36736                 fi
36737         fi
36738
36739         LIBS="$sql_LIBS"
36740
36741         if test $ol_link_sql != no ; then
36742                 SLAPD_SQL_LIBS="$ol_link_sql"
36743
36744         elif test $ol_enable_sql != auto ; then
36745                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36746 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36747    { (exit 1); exit 1; }; }
36748         fi
36749 fi
36750
36751 WITH_SASL=no
36752 ol_link_sasl=no
36753 ol_link_spasswd=no
36754 if test $ol_with_cyrus_sasl != no ; then
36755
36756
36757 for ac_header in sasl/sasl.h sasl.h
36758 do
36759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36761   echo "$as_me:$LINENO: checking for $ac_header" >&5
36762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36764   echo $ECHO_N "(cached) $ECHO_C" >&6
36765 fi
36766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36768 else
36769   # Is the header compilable?
36770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36772 cat >conftest.$ac_ext <<_ACEOF
36773 /* confdefs.h.  */
36774 _ACEOF
36775 cat confdefs.h >>conftest.$ac_ext
36776 cat >>conftest.$ac_ext <<_ACEOF
36777 /* end confdefs.h.  */
36778 $ac_includes_default
36779 #include <$ac_header>
36780 _ACEOF
36781 rm -f conftest.$ac_objext
36782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36783   (eval $ac_compile) 2>conftest.er1
36784   ac_status=$?
36785   grep -v '^ *+' conftest.er1 >conftest.err
36786   rm -f conftest.er1
36787   cat conftest.err >&5
36788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789   (exit $ac_status); } &&
36790          { ac_try='test -z "$ac_c_werror_flag"
36791                          || test ! -s conftest.err'
36792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793   (eval $ac_try) 2>&5
36794   ac_status=$?
36795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796   (exit $ac_status); }; } &&
36797          { ac_try='test -s conftest.$ac_objext'
36798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799   (eval $ac_try) 2>&5
36800   ac_status=$?
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); }; }; then
36803   ac_header_compiler=yes
36804 else
36805   echo "$as_me: failed program was:" >&5
36806 sed 's/^/| /' conftest.$ac_ext >&5
36807
36808 ac_header_compiler=no
36809 fi
36810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36812 echo "${ECHO_T}$ac_header_compiler" >&6
36813
36814 # Is the header present?
36815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36817 cat >conftest.$ac_ext <<_ACEOF
36818 /* confdefs.h.  */
36819 _ACEOF
36820 cat confdefs.h >>conftest.$ac_ext
36821 cat >>conftest.$ac_ext <<_ACEOF
36822 /* end confdefs.h.  */
36823 #include <$ac_header>
36824 _ACEOF
36825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36827   ac_status=$?
36828   grep -v '^ *+' conftest.er1 >conftest.err
36829   rm -f conftest.er1
36830   cat conftest.err >&5
36831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832   (exit $ac_status); } >/dev/null; then
36833   if test -s conftest.err; then
36834     ac_cpp_err=$ac_c_preproc_warn_flag
36835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36836   else
36837     ac_cpp_err=
36838   fi
36839 else
36840   ac_cpp_err=yes
36841 fi
36842 if test -z "$ac_cpp_err"; then
36843   ac_header_preproc=yes
36844 else
36845   echo "$as_me: failed program was:" >&5
36846 sed 's/^/| /' conftest.$ac_ext >&5
36847
36848   ac_header_preproc=no
36849 fi
36850 rm -f conftest.err conftest.$ac_ext
36851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36852 echo "${ECHO_T}$ac_header_preproc" >&6
36853
36854 # So?  What about this header?
36855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36856   yes:no: )
36857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36861     ac_header_preproc=yes
36862     ;;
36863   no:yes:* )
36864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36876     (
36877       cat <<\_ASBOX
36878 ## --------------------------------------------- ##
36879 ## Report this to <http://www.openldap.org/its/> ##
36880 ## --------------------------------------------- ##
36881 _ASBOX
36882     ) |
36883       sed "s/^/$as_me: WARNING:     /" >&2
36884     ;;
36885 esac
36886 echo "$as_me:$LINENO: checking for $ac_header" >&5
36887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36889   echo $ECHO_N "(cached) $ECHO_C" >&6
36890 else
36891   eval "$as_ac_Header=\$ac_header_preproc"
36892 fi
36893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36895
36896 fi
36897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36898   cat >>confdefs.h <<_ACEOF
36899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36900 _ACEOF
36901
36902 fi
36903
36904 done
36905
36906
36907         if test $ac_cv_header_sasl_sasl_h = yes ||
36908            test $ac_cv_header_sasl_h = yes; then
36909                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
36910 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
36911 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
36912   echo $ECHO_N "(cached) $ECHO_C" >&6
36913 else
36914   ac_check_lib_save_LIBS=$LIBS
36915 LIBS="-lsasl2  $LIBS"
36916 cat >conftest.$ac_ext <<_ACEOF
36917 /* confdefs.h.  */
36918 _ACEOF
36919 cat confdefs.h >>conftest.$ac_ext
36920 cat >>conftest.$ac_ext <<_ACEOF
36921 /* end confdefs.h.  */
36922
36923 /* Override any gcc2 internal prototype to avoid an error.  */
36924 #ifdef __cplusplus
36925 extern "C"
36926 #endif
36927 /* We use char because int might match the return type of a gcc2
36928    builtin and then its argument prototype would still apply.  */
36929 char sasl_client_init ();
36930 int
36931 main ()
36932 {
36933 sasl_client_init ();
36934   ;
36935   return 0;
36936 }
36937 _ACEOF
36938 rm -f conftest.$ac_objext conftest$ac_exeext
36939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36940   (eval $ac_link) 2>conftest.er1
36941   ac_status=$?
36942   grep -v '^ *+' conftest.er1 >conftest.err
36943   rm -f conftest.er1
36944   cat conftest.err >&5
36945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946   (exit $ac_status); } &&
36947          { ac_try='test -z "$ac_c_werror_flag"
36948                          || test ! -s conftest.err'
36949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36950   (eval $ac_try) 2>&5
36951   ac_status=$?
36952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953   (exit $ac_status); }; } &&
36954          { ac_try='test -s conftest$ac_exeext'
36955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956   (eval $ac_try) 2>&5
36957   ac_status=$?
36958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959   (exit $ac_status); }; }; then
36960   ac_cv_lib_sasl2_sasl_client_init=yes
36961 else
36962   echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36964
36965 ac_cv_lib_sasl2_sasl_client_init=no
36966 fi
36967 rm -f conftest.err conftest.$ac_objext \
36968       conftest$ac_exeext conftest.$ac_ext
36969 LIBS=$ac_check_lib_save_LIBS
36970 fi
36971 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
36972 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
36973 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
36974   ol_link_sasl="-lsasl2"
36975 else
36976   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
36977 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
36978 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
36979   echo $ECHO_N "(cached) $ECHO_C" >&6
36980 else
36981   ac_check_lib_save_LIBS=$LIBS
36982 LIBS="-lsasl  $LIBS"
36983 cat >conftest.$ac_ext <<_ACEOF
36984 /* confdefs.h.  */
36985 _ACEOF
36986 cat confdefs.h >>conftest.$ac_ext
36987 cat >>conftest.$ac_ext <<_ACEOF
36988 /* end confdefs.h.  */
36989
36990 /* Override any gcc2 internal prototype to avoid an error.  */
36991 #ifdef __cplusplus
36992 extern "C"
36993 #endif
36994 /* We use char because int might match the return type of a gcc2
36995    builtin and then its argument prototype would still apply.  */
36996 char sasl_client_init ();
36997 int
36998 main ()
36999 {
37000 sasl_client_init ();
37001   ;
37002   return 0;
37003 }
37004 _ACEOF
37005 rm -f conftest.$ac_objext conftest$ac_exeext
37006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37007   (eval $ac_link) 2>conftest.er1
37008   ac_status=$?
37009   grep -v '^ *+' conftest.er1 >conftest.err
37010   rm -f conftest.er1
37011   cat conftest.err >&5
37012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013   (exit $ac_status); } &&
37014          { ac_try='test -z "$ac_c_werror_flag"
37015                          || test ! -s conftest.err'
37016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37017   (eval $ac_try) 2>&5
37018   ac_status=$?
37019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020   (exit $ac_status); }; } &&
37021          { ac_try='test -s conftest$ac_exeext'
37022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37023   (eval $ac_try) 2>&5
37024   ac_status=$?
37025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026   (exit $ac_status); }; }; then
37027   ac_cv_lib_sasl_sasl_client_init=yes
37028 else
37029   echo "$as_me: failed program was:" >&5
37030 sed 's/^/| /' conftest.$ac_ext >&5
37031
37032 ac_cv_lib_sasl_sasl_client_init=no
37033 fi
37034 rm -f conftest.err conftest.$ac_objext \
37035       conftest$ac_exeext conftest.$ac_ext
37036 LIBS=$ac_check_lib_save_LIBS
37037 fi
37038 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37039 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37040 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37041   ol_link_sasl="-lsasl"
37042 fi
37043
37044 fi
37045
37046         fi
37047
37048         if test $ol_link_sasl = no ; then
37049                 if test $ol_with_cyrus_sasl != auto ; then
37050                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37051 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37052    { (exit 1); exit 1; }; }
37053                 else
37054                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37055 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37056                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37057 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37058                         if test $ol_link_tls = no ; then
37059                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37060 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37061                         fi
37062                 fi
37063         else
37064                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37065 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37066 if test "${ol_cv_sasl_compat+set}" = set; then
37067   echo $ECHO_N "(cached) $ECHO_C" >&6
37068 else
37069
37070         cat >conftest.$ac_ext <<_ACEOF
37071 /* confdefs.h.  */
37072 _ACEOF
37073 cat confdefs.h >>conftest.$ac_ext
37074 cat >>conftest.$ac_ext <<_ACEOF
37075 /* end confdefs.h.  */
37076
37077 #ifdef HAVE_SASL_SASL_H
37078 #include <sasl/sasl.h>
37079 #else
37080 #include <sasl.h>
37081 #endif
37082
37083 /* Require 2.1.15+ */
37084 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
37085         char *__sasl_compat = "2.2+ or better okay (we guess)";
37086 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
37087         && SASL_VERSION_STEP >=15
37088         char *__sasl_compat = "2.1.15+ or better okay";
37089 #endif
37090
37091 _ACEOF
37092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37093   $EGREP "__sasl_compat" >/dev/null 2>&1; then
37094   ol_cv_sasl_compat=yes
37095 else
37096   ol_cv_sasl_compat=no
37097 fi
37098 rm -f conftest*
37099
37100 fi
37101 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37102 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37103
37104                 if test $ol_cv_sasl_compat = no ; then
37105                         ol_link_sasl=no
37106                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37107 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37108    { (exit 1); exit 1; }; }
37109                 fi
37110
37111
37112 cat >>confdefs.h <<\_ACEOF
37113 #define HAVE_CYRUS_SASL 1
37114 _ACEOF
37115
37116                 SASL_LIBS="$ol_link_sasl"
37117                 if test $ol_enable_spasswd != no ; then
37118                         ol_link_spasswd=yes
37119                 fi
37120
37121                 ac_save_LIBS="$LIBS"
37122                 LIBS="$LIBS $ol_link_sasl"
37123                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37124 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37125 if test "${ac_cv_func_sasl_version+set}" = set; then
37126   echo $ECHO_N "(cached) $ECHO_C" >&6
37127 else
37128   cat >conftest.$ac_ext <<_ACEOF
37129 /* confdefs.h.  */
37130 _ACEOF
37131 cat confdefs.h >>conftest.$ac_ext
37132 cat >>conftest.$ac_ext <<_ACEOF
37133 /* end confdefs.h.  */
37134 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37136 #define sasl_version innocuous_sasl_version
37137
37138 /* System header to define __stub macros and hopefully few prototypes,
37139     which can conflict with char sasl_version (); below.
37140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37141     <limits.h> exists even on freestanding compilers.  */
37142
37143 #ifdef __STDC__
37144 # include <limits.h>
37145 #else
37146 # include <assert.h>
37147 #endif
37148
37149 #undef sasl_version
37150
37151 /* Override any gcc2 internal prototype to avoid an error.  */
37152 #ifdef __cplusplus
37153 extern "C"
37154 {
37155 #endif
37156 /* We use char because int might match the return type of a gcc2
37157    builtin and then its argument prototype would still apply.  */
37158 char sasl_version ();
37159 /* The GNU C library defines this for functions which it implements
37160     to always fail with ENOSYS.  Some functions are actually named
37161     something starting with __ and the normal name is an alias.  */
37162 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37163 choke me
37164 #else
37165 char (*f) () = sasl_version;
37166 #endif
37167 #ifdef __cplusplus
37168 }
37169 #endif
37170
37171 int
37172 main ()
37173 {
37174 return f != sasl_version;
37175   ;
37176   return 0;
37177 }
37178 _ACEOF
37179 rm -f conftest.$ac_objext conftest$ac_exeext
37180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37181   (eval $ac_link) 2>conftest.er1
37182   ac_status=$?
37183   grep -v '^ *+' conftest.er1 >conftest.err
37184   rm -f conftest.er1
37185   cat conftest.err >&5
37186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187   (exit $ac_status); } &&
37188          { ac_try='test -z "$ac_c_werror_flag"
37189                          || test ! -s conftest.err'
37190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37191   (eval $ac_try) 2>&5
37192   ac_status=$?
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); }; } &&
37195          { ac_try='test -s conftest$ac_exeext'
37196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37197   (eval $ac_try) 2>&5
37198   ac_status=$?
37199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200   (exit $ac_status); }; }; then
37201   ac_cv_func_sasl_version=yes
37202 else
37203   echo "$as_me: failed program was:" >&5
37204 sed 's/^/| /' conftest.$ac_ext >&5
37205
37206 ac_cv_func_sasl_version=no
37207 fi
37208 rm -f conftest.err conftest.$ac_objext \
37209       conftest$ac_exeext conftest.$ac_ext
37210 fi
37211 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37212 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37213 if test $ac_cv_func_sasl_version = yes; then
37214
37215 cat >>confdefs.h <<\_ACEOF
37216 #define HAVE_SASL_VERSION 1
37217 _ACEOF
37218
37219 fi
37220
37221                 LIBS="$ac_save_LIBS"
37222
37223                 WITH_SASL=yes
37224         fi
37225
37226 else
37227         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37228 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37229         if test $ol_link_tls = no ; then
37230                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37231 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37232         fi
37233 fi
37234
37235 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37236         dev=no
37237         if test -r /dev/urandom ; then
37238                 dev="/dev/urandom";
37239         elif test -r /idev/urandom ; then
37240                 dev="/idev/urandom";
37241         elif test -r /dev/srandom ; then
37242                 dev="/dev/srandom";
37243         elif test -r /dev/random ; then
37244                 dev="/dev/random";
37245         elif test -r /idev/random ; then
37246                 dev="/idev/random";
37247         fi
37248
37249         if test $dev != no ; then
37250
37251 cat >>confdefs.h <<_ACEOF
37252 #define URANDOM_DEVICE "$dev"
37253 _ACEOF
37254
37255         fi
37256 fi
37257
37258 ol_link_fetch=no
37259 if test $ol_with_fetch != no ; then
37260         ol_LIBS=$LIBS
37261 LIBS="-lfetch -lcom_err $LIBS"
37262 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37263 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37264 if test "${ol_cv_lib_fetch+set}" = set; then
37265   echo $ECHO_N "(cached) $ECHO_C" >&6
37266 else
37267
37268         cat >conftest.$ac_ext <<_ACEOF
37269 /* confdefs.h.  */
37270 _ACEOF
37271 cat confdefs.h >>conftest.$ac_ext
37272 cat >>conftest.$ac_ext <<_ACEOF
37273 /* end confdefs.h.  */
37274
37275 #include <sys/param.h>
37276 #include <stdio.h>
37277 #include <fetch.h>
37278 int
37279 main ()
37280 {
37281 struct url *u = fetchParseURL("file:///");
37282   ;
37283   return 0;
37284 }
37285 _ACEOF
37286 rm -f conftest.$ac_objext conftest$ac_exeext
37287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37288   (eval $ac_link) 2>conftest.er1
37289   ac_status=$?
37290   grep -v '^ *+' conftest.er1 >conftest.err
37291   rm -f conftest.er1
37292   cat conftest.err >&5
37293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294   (exit $ac_status); } &&
37295          { ac_try='test -z "$ac_c_werror_flag"
37296                          || test ! -s conftest.err'
37297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37298   (eval $ac_try) 2>&5
37299   ac_status=$?
37300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301   (exit $ac_status); }; } &&
37302          { ac_try='test -s conftest$ac_exeext'
37303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37304   (eval $ac_try) 2>&5
37305   ac_status=$?
37306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307   (exit $ac_status); }; }; then
37308   ol_cv_lib_fetch=yes
37309 else
37310   echo "$as_me: failed program was:" >&5
37311 sed 's/^/| /' conftest.$ac_ext >&5
37312
37313 ol_cv_lib_fetch=no
37314 fi
37315 rm -f conftest.err conftest.$ac_objext \
37316       conftest$ac_exeext conftest.$ac_ext
37317 fi
37318 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37319 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37320 LIBS=$ol_LIBS
37321 if test $ol_cv_lib_fetch != no ; then
37322         ol_link_fetch="-lfetch -lcom_err"
37323
37324 cat >>confdefs.h <<\_ACEOF
37325 #define HAVE_FETCH 1
37326 _ACEOF
37327
37328 fi
37329
37330
37331         if test $ol_cv_lib_fetch != no ; then
37332                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37333                 ol_link_fetch=freebsd
37334
37335         elif test $ol_with_fetch != auto ; then
37336                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37337 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37338    { (exit 1); exit 1; }; }
37339         fi
37340 fi
37341
37342 if test $ol_enable_crypt != no ; then
37343         save_LIBS="$LIBS"
37344         LIBS="$TLS_LIBS $LIBS"
37345
37346         echo "$as_me:$LINENO: checking for crypt" >&5
37347 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37348 if test "${ac_cv_func_crypt+set}" = set; then
37349   echo $ECHO_N "(cached) $ECHO_C" >&6
37350 else
37351   cat >conftest.$ac_ext <<_ACEOF
37352 /* confdefs.h.  */
37353 _ACEOF
37354 cat confdefs.h >>conftest.$ac_ext
37355 cat >>conftest.$ac_ext <<_ACEOF
37356 /* end confdefs.h.  */
37357 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37359 #define crypt innocuous_crypt
37360
37361 /* System header to define __stub macros and hopefully few prototypes,
37362     which can conflict with char crypt (); below.
37363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37364     <limits.h> exists even on freestanding compilers.  */
37365
37366 #ifdef __STDC__
37367 # include <limits.h>
37368 #else
37369 # include <assert.h>
37370 #endif
37371
37372 #undef crypt
37373
37374 /* Override any gcc2 internal prototype to avoid an error.  */
37375 #ifdef __cplusplus
37376 extern "C"
37377 {
37378 #endif
37379 /* We use char because int might match the return type of a gcc2
37380    builtin and then its argument prototype would still apply.  */
37381 char crypt ();
37382 /* The GNU C library defines this for functions which it implements
37383     to always fail with ENOSYS.  Some functions are actually named
37384     something starting with __ and the normal name is an alias.  */
37385 #if defined (__stub_crypt) || defined (__stub___crypt)
37386 choke me
37387 #else
37388 char (*f) () = crypt;
37389 #endif
37390 #ifdef __cplusplus
37391 }
37392 #endif
37393
37394 int
37395 main ()
37396 {
37397 return f != crypt;
37398   ;
37399   return 0;
37400 }
37401 _ACEOF
37402 rm -f conftest.$ac_objext conftest$ac_exeext
37403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37404   (eval $ac_link) 2>conftest.er1
37405   ac_status=$?
37406   grep -v '^ *+' conftest.er1 >conftest.err
37407   rm -f conftest.er1
37408   cat conftest.err >&5
37409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410   (exit $ac_status); } &&
37411          { ac_try='test -z "$ac_c_werror_flag"
37412                          || test ! -s conftest.err'
37413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37414   (eval $ac_try) 2>&5
37415   ac_status=$?
37416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417   (exit $ac_status); }; } &&
37418          { ac_try='test -s conftest$ac_exeext'
37419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420   (eval $ac_try) 2>&5
37421   ac_status=$?
37422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423   (exit $ac_status); }; }; then
37424   ac_cv_func_crypt=yes
37425 else
37426   echo "$as_me: failed program was:" >&5
37427 sed 's/^/| /' conftest.$ac_ext >&5
37428
37429 ac_cv_func_crypt=no
37430 fi
37431 rm -f conftest.err conftest.$ac_objext \
37432       conftest$ac_exeext conftest.$ac_ext
37433 fi
37434 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37435 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37436 if test $ac_cv_func_crypt = yes; then
37437   have_crypt=yes
37438 else
37439
37440                 LIBS="$save_LIBS"
37441                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37442 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37443 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37444   echo $ECHO_N "(cached) $ECHO_C" >&6
37445 else
37446   ac_check_lib_save_LIBS=$LIBS
37447 LIBS="-lcrypt  $LIBS"
37448 cat >conftest.$ac_ext <<_ACEOF
37449 /* confdefs.h.  */
37450 _ACEOF
37451 cat confdefs.h >>conftest.$ac_ext
37452 cat >>conftest.$ac_ext <<_ACEOF
37453 /* end confdefs.h.  */
37454
37455 /* Override any gcc2 internal prototype to avoid an error.  */
37456 #ifdef __cplusplus
37457 extern "C"
37458 #endif
37459 /* We use char because int might match the return type of a gcc2
37460    builtin and then its argument prototype would still apply.  */
37461 char crypt ();
37462 int
37463 main ()
37464 {
37465 crypt ();
37466   ;
37467   return 0;
37468 }
37469 _ACEOF
37470 rm -f conftest.$ac_objext conftest$ac_exeext
37471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37472   (eval $ac_link) 2>conftest.er1
37473   ac_status=$?
37474   grep -v '^ *+' conftest.er1 >conftest.err
37475   rm -f conftest.er1
37476   cat conftest.err >&5
37477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478   (exit $ac_status); } &&
37479          { ac_try='test -z "$ac_c_werror_flag"
37480                          || test ! -s conftest.err'
37481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482   (eval $ac_try) 2>&5
37483   ac_status=$?
37484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485   (exit $ac_status); }; } &&
37486          { ac_try='test -s conftest$ac_exeext'
37487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488   (eval $ac_try) 2>&5
37489   ac_status=$?
37490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491   (exit $ac_status); }; }; then
37492   ac_cv_lib_crypt_crypt=yes
37493 else
37494   echo "$as_me: failed program was:" >&5
37495 sed 's/^/| /' conftest.$ac_ext >&5
37496
37497 ac_cv_lib_crypt_crypt=no
37498 fi
37499 rm -f conftest.err conftest.$ac_objext \
37500       conftest$ac_exeext conftest.$ac_ext
37501 LIBS=$ac_check_lib_save_LIBS
37502 fi
37503 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37504 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37505 if test $ac_cv_lib_crypt_crypt = yes; then
37506   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37507                         have_crypt=yes
37508 else
37509   have_crypt=no
37510 fi
37511
37512 fi
37513
37514
37515         LIBS="$save_LIBS"
37516
37517         if test $have_crypt = yes ; then
37518
37519 cat >>confdefs.h <<\_ACEOF
37520 #define HAVE_CRYPT 1
37521 _ACEOF
37522
37523         else
37524                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37525 echo "$as_me: WARNING: could not find crypt" >&2;}
37526                 if test $ol_enable_crypt = yes ; then
37527                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37528 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37529    { (exit 1); exit 1; }; }
37530                 fi
37531
37532                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37533 echo "$as_me: WARNING: disabling crypt support" >&2;}
37534                 ol_enable_crypt=no
37535         fi
37536 fi
37537
37538 if test $ol_enable_proctitle != no ; then
37539         echo "$as_me:$LINENO: checking for setproctitle" >&5
37540 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37541 if test "${ac_cv_func_setproctitle+set}" = set; then
37542   echo $ECHO_N "(cached) $ECHO_C" >&6
37543 else
37544   cat >conftest.$ac_ext <<_ACEOF
37545 /* confdefs.h.  */
37546 _ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h.  */
37550 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37552 #define setproctitle innocuous_setproctitle
37553
37554 /* System header to define __stub macros and hopefully few prototypes,
37555     which can conflict with char setproctitle (); below.
37556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37557     <limits.h> exists even on freestanding compilers.  */
37558
37559 #ifdef __STDC__
37560 # include <limits.h>
37561 #else
37562 # include <assert.h>
37563 #endif
37564
37565 #undef setproctitle
37566
37567 /* Override any gcc2 internal prototype to avoid an error.  */
37568 #ifdef __cplusplus
37569 extern "C"
37570 {
37571 #endif
37572 /* We use char because int might match the return type of a gcc2
37573    builtin and then its argument prototype would still apply.  */
37574 char setproctitle ();
37575 /* The GNU C library defines this for functions which it implements
37576     to always fail with ENOSYS.  Some functions are actually named
37577     something starting with __ and the normal name is an alias.  */
37578 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37579 choke me
37580 #else
37581 char (*f) () = setproctitle;
37582 #endif
37583 #ifdef __cplusplus
37584 }
37585 #endif
37586
37587 int
37588 main ()
37589 {
37590 return f != setproctitle;
37591   ;
37592   return 0;
37593 }
37594 _ACEOF
37595 rm -f conftest.$ac_objext conftest$ac_exeext
37596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37597   (eval $ac_link) 2>conftest.er1
37598   ac_status=$?
37599   grep -v '^ *+' conftest.er1 >conftest.err
37600   rm -f conftest.er1
37601   cat conftest.err >&5
37602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603   (exit $ac_status); } &&
37604          { ac_try='test -z "$ac_c_werror_flag"
37605                          || test ! -s conftest.err'
37606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607   (eval $ac_try) 2>&5
37608   ac_status=$?
37609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610   (exit $ac_status); }; } &&
37611          { ac_try='test -s conftest$ac_exeext'
37612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613   (eval $ac_try) 2>&5
37614   ac_status=$?
37615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616   (exit $ac_status); }; }; then
37617   ac_cv_func_setproctitle=yes
37618 else
37619   echo "$as_me: failed program was:" >&5
37620 sed 's/^/| /' conftest.$ac_ext >&5
37621
37622 ac_cv_func_setproctitle=no
37623 fi
37624 rm -f conftest.err conftest.$ac_objext \
37625       conftest$ac_exeext conftest.$ac_ext
37626 fi
37627 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37628 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37629 if test $ac_cv_func_setproctitle = yes; then
37630   have_setproctitle=yes
37631 else
37632
37633                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37634 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37635 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37636   echo $ECHO_N "(cached) $ECHO_C" >&6
37637 else
37638   ac_check_lib_save_LIBS=$LIBS
37639 LIBS="-lutil  $LIBS"
37640 cat >conftest.$ac_ext <<_ACEOF
37641 /* confdefs.h.  */
37642 _ACEOF
37643 cat confdefs.h >>conftest.$ac_ext
37644 cat >>conftest.$ac_ext <<_ACEOF
37645 /* end confdefs.h.  */
37646
37647 /* Override any gcc2 internal prototype to avoid an error.  */
37648 #ifdef __cplusplus
37649 extern "C"
37650 #endif
37651 /* We use char because int might match the return type of a gcc2
37652    builtin and then its argument prototype would still apply.  */
37653 char setproctitle ();
37654 int
37655 main ()
37656 {
37657 setproctitle ();
37658   ;
37659   return 0;
37660 }
37661 _ACEOF
37662 rm -f conftest.$ac_objext conftest$ac_exeext
37663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37664   (eval $ac_link) 2>conftest.er1
37665   ac_status=$?
37666   grep -v '^ *+' conftest.er1 >conftest.err
37667   rm -f conftest.er1
37668   cat conftest.err >&5
37669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37670   (exit $ac_status); } &&
37671          { ac_try='test -z "$ac_c_werror_flag"
37672                          || test ! -s conftest.err'
37673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674   (eval $ac_try) 2>&5
37675   ac_status=$?
37676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677   (exit $ac_status); }; } &&
37678          { ac_try='test -s conftest$ac_exeext'
37679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37680   (eval $ac_try) 2>&5
37681   ac_status=$?
37682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683   (exit $ac_status); }; }; then
37684   ac_cv_lib_util_setproctitle=yes
37685 else
37686   echo "$as_me: failed program was:" >&5
37687 sed 's/^/| /' conftest.$ac_ext >&5
37688
37689 ac_cv_lib_util_setproctitle=no
37690 fi
37691 rm -f conftest.err conftest.$ac_objext \
37692       conftest$ac_exeext conftest.$ac_ext
37693 LIBS=$ac_check_lib_save_LIBS
37694 fi
37695 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37696 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37697 if test $ac_cv_lib_util_setproctitle = yes; then
37698   have_setproctitle=yes
37699                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37700 else
37701   have_setproctitle=no
37702                         case $LIBOBJS in
37703     "setproctitle.$ac_objext"   | \
37704   *" setproctitle.$ac_objext"   | \
37705     "setproctitle.$ac_objext "* | \
37706   *" setproctitle.$ac_objext "* ) ;;
37707   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37708 esac
37709
37710                         LIBSRCS="$LIBSRCS setproctitle.c"
37711 fi
37712
37713 fi
37714
37715
37716         if test $have_setproctitle = yes ; then
37717
37718 cat >>confdefs.h <<\_ACEOF
37719 #define HAVE_SETPROCTITLE 1
37720 _ACEOF
37721
37722         fi
37723 fi
37724
37725 if test $ol_enable_slp != no ; then
37726
37727 for ac_header in slp.h
37728 do
37729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37731   echo "$as_me:$LINENO: checking for $ac_header" >&5
37732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37734   echo $ECHO_N "(cached) $ECHO_C" >&6
37735 fi
37736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37738 else
37739   # Is the header compilable?
37740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37742 cat >conftest.$ac_ext <<_ACEOF
37743 /* confdefs.h.  */
37744 _ACEOF
37745 cat confdefs.h >>conftest.$ac_ext
37746 cat >>conftest.$ac_ext <<_ACEOF
37747 /* end confdefs.h.  */
37748 $ac_includes_default
37749 #include <$ac_header>
37750 _ACEOF
37751 rm -f conftest.$ac_objext
37752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37753   (eval $ac_compile) 2>conftest.er1
37754   ac_status=$?
37755   grep -v '^ *+' conftest.er1 >conftest.err
37756   rm -f conftest.er1
37757   cat conftest.err >&5
37758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759   (exit $ac_status); } &&
37760          { ac_try='test -z "$ac_c_werror_flag"
37761                          || test ! -s conftest.err'
37762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37763   (eval $ac_try) 2>&5
37764   ac_status=$?
37765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766   (exit $ac_status); }; } &&
37767          { ac_try='test -s conftest.$ac_objext'
37768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37769   (eval $ac_try) 2>&5
37770   ac_status=$?
37771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); }; }; then
37773   ac_header_compiler=yes
37774 else
37775   echo "$as_me: failed program was:" >&5
37776 sed 's/^/| /' conftest.$ac_ext >&5
37777
37778 ac_header_compiler=no
37779 fi
37780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37782 echo "${ECHO_T}$ac_header_compiler" >&6
37783
37784 # Is the header present?
37785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37787 cat >conftest.$ac_ext <<_ACEOF
37788 /* confdefs.h.  */
37789 _ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h.  */
37793 #include <$ac_header>
37794 _ACEOF
37795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37797   ac_status=$?
37798   grep -v '^ *+' conftest.er1 >conftest.err
37799   rm -f conftest.er1
37800   cat conftest.err >&5
37801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802   (exit $ac_status); } >/dev/null; then
37803   if test -s conftest.err; then
37804     ac_cpp_err=$ac_c_preproc_warn_flag
37805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37806   else
37807     ac_cpp_err=
37808   fi
37809 else
37810   ac_cpp_err=yes
37811 fi
37812 if test -z "$ac_cpp_err"; then
37813   ac_header_preproc=yes
37814 else
37815   echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37817
37818   ac_header_preproc=no
37819 fi
37820 rm -f conftest.err conftest.$ac_ext
37821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37822 echo "${ECHO_T}$ac_header_preproc" >&6
37823
37824 # So?  What about this header?
37825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37826   yes:no: )
37827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37831     ac_header_preproc=yes
37832     ;;
37833   no:yes:* )
37834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37846     (
37847       cat <<\_ASBOX
37848 ## --------------------------------------------- ##
37849 ## Report this to <http://www.openldap.org/its/> ##
37850 ## --------------------------------------------- ##
37851 _ASBOX
37852     ) |
37853       sed "s/^/$as_me: WARNING:     /" >&2
37854     ;;
37855 esac
37856 echo "$as_me:$LINENO: checking for $ac_header" >&5
37857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37859   echo $ECHO_N "(cached) $ECHO_C" >&6
37860 else
37861   eval "$as_ac_Header=\$ac_header_preproc"
37862 fi
37863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37865
37866 fi
37867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37868   cat >>confdefs.h <<_ACEOF
37869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37870 _ACEOF
37871
37872 fi
37873
37874 done
37875
37876
37877         if test $ac_cv_header_slp_h = yes ; then
37878                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
37879 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
37880 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
37881   echo $ECHO_N "(cached) $ECHO_C" >&6
37882 else
37883   ac_check_lib_save_LIBS=$LIBS
37884 LIBS="-lslp  $LIBS"
37885 cat >conftest.$ac_ext <<_ACEOF
37886 /* confdefs.h.  */
37887 _ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h.  */
37891
37892 /* Override any gcc2 internal prototype to avoid an error.  */
37893 #ifdef __cplusplus
37894 extern "C"
37895 #endif
37896 /* We use char because int might match the return type of a gcc2
37897    builtin and then its argument prototype would still apply.  */
37898 char SLPOpen ();
37899 int
37900 main ()
37901 {
37902 SLPOpen ();
37903   ;
37904   return 0;
37905 }
37906 _ACEOF
37907 rm -f conftest.$ac_objext conftest$ac_exeext
37908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37909   (eval $ac_link) 2>conftest.er1
37910   ac_status=$?
37911   grep -v '^ *+' conftest.er1 >conftest.err
37912   rm -f conftest.er1
37913   cat conftest.err >&5
37914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915   (exit $ac_status); } &&
37916          { ac_try='test -z "$ac_c_werror_flag"
37917                          || test ! -s conftest.err'
37918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919   (eval $ac_try) 2>&5
37920   ac_status=$?
37921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922   (exit $ac_status); }; } &&
37923          { ac_try='test -s conftest$ac_exeext'
37924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925   (eval $ac_try) 2>&5
37926   ac_status=$?
37927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928   (exit $ac_status); }; }; then
37929   ac_cv_lib_slp_SLPOpen=yes
37930 else
37931   echo "$as_me: failed program was:" >&5
37932 sed 's/^/| /' conftest.$ac_ext >&5
37933
37934 ac_cv_lib_slp_SLPOpen=no
37935 fi
37936 rm -f conftest.err conftest.$ac_objext \
37937       conftest$ac_exeext conftest.$ac_ext
37938 LIBS=$ac_check_lib_save_LIBS
37939 fi
37940 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
37941 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
37942 if test $ac_cv_lib_slp_SLPOpen = yes; then
37943   have_slp=yes
37944 else
37945   have_slp=no
37946 fi
37947
37948                 if test $have_slp = yes ; then
37949
37950 cat >>confdefs.h <<\_ACEOF
37951 #define HAVE_SLP 1
37952 _ACEOF
37953
37954                         SLAPD_SLP_LIBS=-lslp
37955                 fi
37956
37957         elif test $ol_enable_slp = yes ; then
37958                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
37959 echo "$as_me: error: SLP not found" >&2;}
37960    { (exit 1); exit 1; }; }
37961         fi
37962 fi
37963
37964
37965 echo "$as_me:$LINENO: checking for mode_t" >&5
37966 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
37967 if test "${ac_cv_type_mode_t+set}" = set; then
37968   echo $ECHO_N "(cached) $ECHO_C" >&6
37969 else
37970   cat >conftest.$ac_ext <<_ACEOF
37971 /* confdefs.h.  */
37972 _ACEOF
37973 cat confdefs.h >>conftest.$ac_ext
37974 cat >>conftest.$ac_ext <<_ACEOF
37975 /* end confdefs.h.  */
37976 $ac_includes_default
37977 int
37978 main ()
37979 {
37980 if ((mode_t *) 0)
37981   return 0;
37982 if (sizeof (mode_t))
37983   return 0;
37984   ;
37985   return 0;
37986 }
37987 _ACEOF
37988 rm -f conftest.$ac_objext
37989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37990   (eval $ac_compile) 2>conftest.er1
37991   ac_status=$?
37992   grep -v '^ *+' conftest.er1 >conftest.err
37993   rm -f conftest.er1
37994   cat conftest.err >&5
37995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996   (exit $ac_status); } &&
37997          { ac_try='test -z "$ac_c_werror_flag"
37998                          || test ! -s conftest.err'
37999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000   (eval $ac_try) 2>&5
38001   ac_status=$?
38002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003   (exit $ac_status); }; } &&
38004          { ac_try='test -s conftest.$ac_objext'
38005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006   (eval $ac_try) 2>&5
38007   ac_status=$?
38008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009   (exit $ac_status); }; }; then
38010   ac_cv_type_mode_t=yes
38011 else
38012   echo "$as_me: failed program was:" >&5
38013 sed 's/^/| /' conftest.$ac_ext >&5
38014
38015 ac_cv_type_mode_t=no
38016 fi
38017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38018 fi
38019 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38020 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38021 if test $ac_cv_type_mode_t = yes; then
38022   :
38023 else
38024
38025 cat >>confdefs.h <<_ACEOF
38026 #define mode_t int
38027 _ACEOF
38028
38029 fi
38030
38031 echo "$as_me:$LINENO: checking for off_t" >&5
38032 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38033 if test "${ac_cv_type_off_t+set}" = set; then
38034   echo $ECHO_N "(cached) $ECHO_C" >&6
38035 else
38036   cat >conftest.$ac_ext <<_ACEOF
38037 /* confdefs.h.  */
38038 _ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h.  */
38042 $ac_includes_default
38043 int
38044 main ()
38045 {
38046 if ((off_t *) 0)
38047   return 0;
38048 if (sizeof (off_t))
38049   return 0;
38050   ;
38051   return 0;
38052 }
38053 _ACEOF
38054 rm -f conftest.$ac_objext
38055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38056   (eval $ac_compile) 2>conftest.er1
38057   ac_status=$?
38058   grep -v '^ *+' conftest.er1 >conftest.err
38059   rm -f conftest.er1
38060   cat conftest.err >&5
38061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062   (exit $ac_status); } &&
38063          { ac_try='test -z "$ac_c_werror_flag"
38064                          || test ! -s conftest.err'
38065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066   (eval $ac_try) 2>&5
38067   ac_status=$?
38068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069   (exit $ac_status); }; } &&
38070          { ac_try='test -s conftest.$ac_objext'
38071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38072   (eval $ac_try) 2>&5
38073   ac_status=$?
38074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075   (exit $ac_status); }; }; then
38076   ac_cv_type_off_t=yes
38077 else
38078   echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38080
38081 ac_cv_type_off_t=no
38082 fi
38083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38084 fi
38085 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38086 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38087 if test $ac_cv_type_off_t = yes; then
38088   :
38089 else
38090
38091 cat >>confdefs.h <<_ACEOF
38092 #define off_t long
38093 _ACEOF
38094
38095 fi
38096
38097 echo "$as_me:$LINENO: checking for pid_t" >&5
38098 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38099 if test "${ac_cv_type_pid_t+set}" = set; then
38100   echo $ECHO_N "(cached) $ECHO_C" >&6
38101 else
38102   cat >conftest.$ac_ext <<_ACEOF
38103 /* confdefs.h.  */
38104 _ACEOF
38105 cat confdefs.h >>conftest.$ac_ext
38106 cat >>conftest.$ac_ext <<_ACEOF
38107 /* end confdefs.h.  */
38108 $ac_includes_default
38109 int
38110 main ()
38111 {
38112 if ((pid_t *) 0)
38113   return 0;
38114 if (sizeof (pid_t))
38115   return 0;
38116   ;
38117   return 0;
38118 }
38119 _ACEOF
38120 rm -f conftest.$ac_objext
38121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38122   (eval $ac_compile) 2>conftest.er1
38123   ac_status=$?
38124   grep -v '^ *+' conftest.er1 >conftest.err
38125   rm -f conftest.er1
38126   cat conftest.err >&5
38127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128   (exit $ac_status); } &&
38129          { ac_try='test -z "$ac_c_werror_flag"
38130                          || test ! -s conftest.err'
38131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132   (eval $ac_try) 2>&5
38133   ac_status=$?
38134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135   (exit $ac_status); }; } &&
38136          { ac_try='test -s conftest.$ac_objext'
38137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138   (eval $ac_try) 2>&5
38139   ac_status=$?
38140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141   (exit $ac_status); }; }; then
38142   ac_cv_type_pid_t=yes
38143 else
38144   echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38146
38147 ac_cv_type_pid_t=no
38148 fi
38149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38150 fi
38151 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38152 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38153 if test $ac_cv_type_pid_t = yes; then
38154   :
38155 else
38156
38157 cat >>confdefs.h <<_ACEOF
38158 #define pid_t int
38159 _ACEOF
38160
38161 fi
38162
38163 echo "$as_me:$LINENO: checking for ssize_t" >&5
38164 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38165 if test "${ac_cv_type_ssize_t+set}" = set; then
38166   echo $ECHO_N "(cached) $ECHO_C" >&6
38167 else
38168   cat >conftest.$ac_ext <<_ACEOF
38169 /* confdefs.h.  */
38170 _ACEOF
38171 cat confdefs.h >>conftest.$ac_ext
38172 cat >>conftest.$ac_ext <<_ACEOF
38173 /* end confdefs.h.  */
38174 $ac_includes_default
38175 int
38176 main ()
38177 {
38178 if ((ssize_t *) 0)
38179   return 0;
38180 if (sizeof (ssize_t))
38181   return 0;
38182   ;
38183   return 0;
38184 }
38185 _ACEOF
38186 rm -f conftest.$ac_objext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38188   (eval $ac_compile) 2>conftest.er1
38189   ac_status=$?
38190   grep -v '^ *+' conftest.er1 >conftest.err
38191   rm -f conftest.er1
38192   cat conftest.err >&5
38193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194   (exit $ac_status); } &&
38195          { ac_try='test -z "$ac_c_werror_flag"
38196                          || test ! -s conftest.err'
38197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38198   (eval $ac_try) 2>&5
38199   ac_status=$?
38200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201   (exit $ac_status); }; } &&
38202          { ac_try='test -s conftest.$ac_objext'
38203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204   (eval $ac_try) 2>&5
38205   ac_status=$?
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); }; }; then
38208   ac_cv_type_ssize_t=yes
38209 else
38210   echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38212
38213 ac_cv_type_ssize_t=no
38214 fi
38215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38216 fi
38217 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38218 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38219 if test $ac_cv_type_ssize_t = yes; then
38220   :
38221 else
38222
38223 cat >>confdefs.h <<_ACEOF
38224 #define ssize_t signed int
38225 _ACEOF
38226
38227 fi
38228
38229 echo "$as_me:$LINENO: checking for caddr_t" >&5
38230 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38231 if test "${ac_cv_type_caddr_t+set}" = set; then
38232   echo $ECHO_N "(cached) $ECHO_C" >&6
38233 else
38234   cat >conftest.$ac_ext <<_ACEOF
38235 /* confdefs.h.  */
38236 _ACEOF
38237 cat confdefs.h >>conftest.$ac_ext
38238 cat >>conftest.$ac_ext <<_ACEOF
38239 /* end confdefs.h.  */
38240 $ac_includes_default
38241 int
38242 main ()
38243 {
38244 if ((caddr_t *) 0)
38245   return 0;
38246 if (sizeof (caddr_t))
38247   return 0;
38248   ;
38249   return 0;
38250 }
38251 _ACEOF
38252 rm -f conftest.$ac_objext
38253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38254   (eval $ac_compile) 2>conftest.er1
38255   ac_status=$?
38256   grep -v '^ *+' conftest.er1 >conftest.err
38257   rm -f conftest.er1
38258   cat conftest.err >&5
38259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260   (exit $ac_status); } &&
38261          { ac_try='test -z "$ac_c_werror_flag"
38262                          || test ! -s conftest.err'
38263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38264   (eval $ac_try) 2>&5
38265   ac_status=$?
38266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267   (exit $ac_status); }; } &&
38268          { ac_try='test -s conftest.$ac_objext'
38269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38270   (eval $ac_try) 2>&5
38271   ac_status=$?
38272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38273   (exit $ac_status); }; }; then
38274   ac_cv_type_caddr_t=yes
38275 else
38276   echo "$as_me: failed program was:" >&5
38277 sed 's/^/| /' conftest.$ac_ext >&5
38278
38279 ac_cv_type_caddr_t=no
38280 fi
38281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38282 fi
38283 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
38284 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
38285 if test $ac_cv_type_caddr_t = yes; then
38286   :
38287 else
38288
38289 cat >>confdefs.h <<_ACEOF
38290 #define caddr_t char *
38291 _ACEOF
38292
38293 fi
38294
38295 echo "$as_me:$LINENO: checking for size_t" >&5
38296 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38297 if test "${ac_cv_type_size_t+set}" = set; then
38298   echo $ECHO_N "(cached) $ECHO_C" >&6
38299 else
38300   cat >conftest.$ac_ext <<_ACEOF
38301 /* confdefs.h.  */
38302 _ACEOF
38303 cat confdefs.h >>conftest.$ac_ext
38304 cat >>conftest.$ac_ext <<_ACEOF
38305 /* end confdefs.h.  */
38306 $ac_includes_default
38307 int
38308 main ()
38309 {
38310 if ((size_t *) 0)
38311   return 0;
38312 if (sizeof (size_t))
38313   return 0;
38314   ;
38315   return 0;
38316 }
38317 _ACEOF
38318 rm -f conftest.$ac_objext
38319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38320   (eval $ac_compile) 2>conftest.er1
38321   ac_status=$?
38322   grep -v '^ *+' conftest.er1 >conftest.err
38323   rm -f conftest.er1
38324   cat conftest.err >&5
38325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326   (exit $ac_status); } &&
38327          { ac_try='test -z "$ac_c_werror_flag"
38328                          || test ! -s conftest.err'
38329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38330   (eval $ac_try) 2>&5
38331   ac_status=$?
38332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333   (exit $ac_status); }; } &&
38334          { ac_try='test -s conftest.$ac_objext'
38335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336   (eval $ac_try) 2>&5
38337   ac_status=$?
38338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339   (exit $ac_status); }; }; then
38340   ac_cv_type_size_t=yes
38341 else
38342   echo "$as_me: failed program was:" >&5
38343 sed 's/^/| /' conftest.$ac_ext >&5
38344
38345 ac_cv_type_size_t=no
38346 fi
38347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38348 fi
38349 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38350 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38351 if test $ac_cv_type_size_t = yes; then
38352   :
38353 else
38354
38355 cat >>confdefs.h <<_ACEOF
38356 #define size_t unsigned
38357 _ACEOF
38358
38359 fi
38360
38361
38362 echo "$as_me:$LINENO: checking for long long" >&5
38363 echo $ECHO_N "checking for long long... $ECHO_C" >&6
38364 if test "${ac_cv_type_long_long+set}" = set; then
38365   echo $ECHO_N "(cached) $ECHO_C" >&6
38366 else
38367   cat >conftest.$ac_ext <<_ACEOF
38368 /* confdefs.h.  */
38369 _ACEOF
38370 cat confdefs.h >>conftest.$ac_ext
38371 cat >>conftest.$ac_ext <<_ACEOF
38372 /* end confdefs.h.  */
38373 $ac_includes_default
38374 int
38375 main ()
38376 {
38377 if ((long long *) 0)
38378   return 0;
38379 if (sizeof (long long))
38380   return 0;
38381   ;
38382   return 0;
38383 }
38384 _ACEOF
38385 rm -f conftest.$ac_objext
38386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38387   (eval $ac_compile) 2>conftest.er1
38388   ac_status=$?
38389   grep -v '^ *+' conftest.er1 >conftest.err
38390   rm -f conftest.er1
38391   cat conftest.err >&5
38392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393   (exit $ac_status); } &&
38394          { ac_try='test -z "$ac_c_werror_flag"
38395                          || test ! -s conftest.err'
38396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397   (eval $ac_try) 2>&5
38398   ac_status=$?
38399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400   (exit $ac_status); }; } &&
38401          { ac_try='test -s conftest.$ac_objext'
38402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38403   (eval $ac_try) 2>&5
38404   ac_status=$?
38405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406   (exit $ac_status); }; }; then
38407   ac_cv_type_long_long=yes
38408 else
38409   echo "$as_me: failed program was:" >&5
38410 sed 's/^/| /' conftest.$ac_ext >&5
38411
38412 ac_cv_type_long_long=no
38413 fi
38414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38415 fi
38416 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
38417 echo "${ECHO_T}$ac_cv_type_long_long" >&6
38418 if test $ac_cv_type_long_long = yes; then
38419
38420 cat >>confdefs.h <<_ACEOF
38421 #define HAVE_LONG_LONG 1
38422 _ACEOF
38423
38424
38425 fi
38426
38427 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
38428 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
38429 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
38430   echo $ECHO_N "(cached) $ECHO_C" >&6
38431 else
38432   cat >conftest.$ac_ext <<_ACEOF
38433 /* confdefs.h.  */
38434 _ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h.  */
38438 $ac_includes_default
38439 int
38440 main ()
38441 {
38442 if ((ptrdiff_t *) 0)
38443   return 0;
38444 if (sizeof (ptrdiff_t))
38445   return 0;
38446   ;
38447   return 0;
38448 }
38449 _ACEOF
38450 rm -f conftest.$ac_objext
38451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38452   (eval $ac_compile) 2>conftest.er1
38453   ac_status=$?
38454   grep -v '^ *+' conftest.er1 >conftest.err
38455   rm -f conftest.er1
38456   cat conftest.err >&5
38457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458   (exit $ac_status); } &&
38459          { ac_try='test -z "$ac_c_werror_flag"
38460                          || test ! -s conftest.err'
38461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462   (eval $ac_try) 2>&5
38463   ac_status=$?
38464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465   (exit $ac_status); }; } &&
38466          { ac_try='test -s conftest.$ac_objext'
38467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468   (eval $ac_try) 2>&5
38469   ac_status=$?
38470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471   (exit $ac_status); }; }; then
38472   ac_cv_type_ptrdiff_t=yes
38473 else
38474   echo "$as_me: failed program was:" >&5
38475 sed 's/^/| /' conftest.$ac_ext >&5
38476
38477 ac_cv_type_ptrdiff_t=no
38478 fi
38479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38480 fi
38481 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
38482 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
38483 if test $ac_cv_type_ptrdiff_t = yes; then
38484
38485 cat >>confdefs.h <<_ACEOF
38486 #define HAVE_PTRDIFF_T 1
38487 _ACEOF
38488
38489
38490 fi
38491
38492
38493 echo "$as_me:$LINENO: checking for socklen_t" >&5
38494 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
38495 if test "${ac_cv_type_socklen_t+set}" = set; then
38496   echo $ECHO_N "(cached) $ECHO_C" >&6
38497 else
38498   cat >conftest.$ac_ext <<_ACEOF
38499 /* confdefs.h.  */
38500 _ACEOF
38501 cat confdefs.h >>conftest.$ac_ext
38502 cat >>conftest.$ac_ext <<_ACEOF
38503 /* end confdefs.h.  */
38504 $ac_includes_default
38505 #ifdef HAVE_SYS_SOCKET_H
38506 #include <sys/socket.h>
38507 #endif
38508
38509
38510 int
38511 main ()
38512 {
38513 if ((socklen_t *) 0)
38514   return 0;
38515 if (sizeof (socklen_t))
38516   return 0;
38517   ;
38518   return 0;
38519 }
38520 _ACEOF
38521 rm -f conftest.$ac_objext
38522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38523   (eval $ac_compile) 2>conftest.er1
38524   ac_status=$?
38525   grep -v '^ *+' conftest.er1 >conftest.err
38526   rm -f conftest.er1
38527   cat conftest.err >&5
38528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529   (exit $ac_status); } &&
38530          { ac_try='test -z "$ac_c_werror_flag"
38531                          || test ! -s conftest.err'
38532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38533   (eval $ac_try) 2>&5
38534   ac_status=$?
38535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536   (exit $ac_status); }; } &&
38537          { ac_try='test -s conftest.$ac_objext'
38538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38539   (eval $ac_try) 2>&5
38540   ac_status=$?
38541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542   (exit $ac_status); }; }; then
38543   ac_cv_type_socklen_t=yes
38544 else
38545   echo "$as_me: failed program was:" >&5
38546 sed 's/^/| /' conftest.$ac_ext >&5
38547
38548 ac_cv_type_socklen_t=no
38549 fi
38550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38551 fi
38552 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
38553 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
38554 if test $ac_cv_type_socklen_t = yes; then
38555   :
38556 else
38557
38558 cat >>confdefs.h <<_ACEOF
38559 #define socklen_t int
38560 _ACEOF
38561
38562 fi
38563
38564
38565 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
38566 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
38567 if test "${ac_cv_type_signal+set}" = set; then
38568   echo $ECHO_N "(cached) $ECHO_C" >&6
38569 else
38570   cat >conftest.$ac_ext <<_ACEOF
38571 /* confdefs.h.  */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h.  */
38576 #include <sys/types.h>
38577 #include <signal.h>
38578 #ifdef signal
38579 # undef signal
38580 #endif
38581 #ifdef __cplusplus
38582 extern "C" void (*signal (int, void (*)(int)))(int);
38583 #else
38584 void (*signal ()) ();
38585 #endif
38586
38587 int
38588 main ()
38589 {
38590 int i;
38591   ;
38592   return 0;
38593 }
38594 _ACEOF
38595 rm -f conftest.$ac_objext
38596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38597   (eval $ac_compile) 2>conftest.er1
38598   ac_status=$?
38599   grep -v '^ *+' conftest.er1 >conftest.err
38600   rm -f conftest.er1
38601   cat conftest.err >&5
38602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603   (exit $ac_status); } &&
38604          { ac_try='test -z "$ac_c_werror_flag"
38605                          || test ! -s conftest.err'
38606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38607   (eval $ac_try) 2>&5
38608   ac_status=$?
38609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610   (exit $ac_status); }; } &&
38611          { ac_try='test -s conftest.$ac_objext'
38612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38613   (eval $ac_try) 2>&5
38614   ac_status=$?
38615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616   (exit $ac_status); }; }; then
38617   ac_cv_type_signal=void
38618 else
38619   echo "$as_me: failed program was:" >&5
38620 sed 's/^/| /' conftest.$ac_ext >&5
38621
38622 ac_cv_type_signal=int
38623 fi
38624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38625 fi
38626 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
38627 echo "${ECHO_T}$ac_cv_type_signal" >&6
38628
38629 cat >>confdefs.h <<_ACEOF
38630 #define RETSIGTYPE $ac_cv_type_signal
38631 _ACEOF
38632
38633
38634
38635 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
38636 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
38637 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
38638   echo $ECHO_N "(cached) $ECHO_C" >&6
38639 else
38640   cat >conftest.$ac_ext <<_ACEOF
38641 /* confdefs.h.  */
38642 _ACEOF
38643 cat confdefs.h >>conftest.$ac_ext
38644 cat >>conftest.$ac_ext <<_ACEOF
38645 /* end confdefs.h.  */
38646 $ac_includes_default
38647 #include <signal.h>
38648
38649
38650 int
38651 main ()
38652 {
38653 if ((sig_atomic_t *) 0)
38654   return 0;
38655 if (sizeof (sig_atomic_t))
38656   return 0;
38657   ;
38658   return 0;
38659 }
38660 _ACEOF
38661 rm -f conftest.$ac_objext
38662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38663   (eval $ac_compile) 2>conftest.er1
38664   ac_status=$?
38665   grep -v '^ *+' conftest.er1 >conftest.err
38666   rm -f conftest.er1
38667   cat conftest.err >&5
38668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669   (exit $ac_status); } &&
38670          { ac_try='test -z "$ac_c_werror_flag"
38671                          || test ! -s conftest.err'
38672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38673   (eval $ac_try) 2>&5
38674   ac_status=$?
38675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676   (exit $ac_status); }; } &&
38677          { ac_try='test -s conftest.$ac_objext'
38678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38679   (eval $ac_try) 2>&5
38680   ac_status=$?
38681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38682   (exit $ac_status); }; }; then
38683   ac_cv_type_sig_atomic_t=yes
38684 else
38685   echo "$as_me: failed program was:" >&5
38686 sed 's/^/| /' conftest.$ac_ext >&5
38687
38688 ac_cv_type_sig_atomic_t=no
38689 fi
38690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38691 fi
38692 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
38693 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
38694 if test $ac_cv_type_sig_atomic_t = yes; then
38695   :
38696 else
38697
38698 cat >>confdefs.h <<_ACEOF
38699 #define sig_atomic_t int
38700 _ACEOF
38701
38702 fi
38703
38704
38705 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
38706 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
38707 if test "${ac_cv_type_uid_t+set}" = set; then
38708   echo $ECHO_N "(cached) $ECHO_C" >&6
38709 else
38710   cat >conftest.$ac_ext <<_ACEOF
38711 /* confdefs.h.  */
38712 _ACEOF
38713 cat confdefs.h >>conftest.$ac_ext
38714 cat >>conftest.$ac_ext <<_ACEOF
38715 /* end confdefs.h.  */
38716 #include <sys/types.h>
38717
38718 _ACEOF
38719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38720   $EGREP "uid_t" >/dev/null 2>&1; then
38721   ac_cv_type_uid_t=yes
38722 else
38723   ac_cv_type_uid_t=no
38724 fi
38725 rm -f conftest*
38726
38727 fi
38728 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
38729 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
38730 if test $ac_cv_type_uid_t = no; then
38731
38732 cat >>confdefs.h <<\_ACEOF
38733 #define uid_t int
38734 _ACEOF
38735
38736
38737 cat >>confdefs.h <<\_ACEOF
38738 #define gid_t int
38739 _ACEOF
38740
38741 fi
38742
38743
38744 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
38745 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
38746 if test "${ac_cv_header_time+set}" = set; then
38747   echo $ECHO_N "(cached) $ECHO_C" >&6
38748 else
38749   cat >conftest.$ac_ext <<_ACEOF
38750 /* confdefs.h.  */
38751 _ACEOF
38752 cat confdefs.h >>conftest.$ac_ext
38753 cat >>conftest.$ac_ext <<_ACEOF
38754 /* end confdefs.h.  */
38755 #include <sys/types.h>
38756 #include <sys/time.h>
38757 #include <time.h>
38758
38759 int
38760 main ()
38761 {
38762 if ((struct tm *) 0)
38763 return 0;
38764   ;
38765   return 0;
38766 }
38767 _ACEOF
38768 rm -f conftest.$ac_objext
38769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38770   (eval $ac_compile) 2>conftest.er1
38771   ac_status=$?
38772   grep -v '^ *+' conftest.er1 >conftest.err
38773   rm -f conftest.er1
38774   cat conftest.err >&5
38775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776   (exit $ac_status); } &&
38777          { ac_try='test -z "$ac_c_werror_flag"
38778                          || test ! -s conftest.err'
38779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38780   (eval $ac_try) 2>&5
38781   ac_status=$?
38782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783   (exit $ac_status); }; } &&
38784          { ac_try='test -s conftest.$ac_objext'
38785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38786   (eval $ac_try) 2>&5
38787   ac_status=$?
38788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789   (exit $ac_status); }; }; then
38790   ac_cv_header_time=yes
38791 else
38792   echo "$as_me: failed program was:" >&5
38793 sed 's/^/| /' conftest.$ac_ext >&5
38794
38795 ac_cv_header_time=no
38796 fi
38797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38798 fi
38799 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
38800 echo "${ECHO_T}$ac_cv_header_time" >&6
38801 if test $ac_cv_header_time = yes; then
38802
38803 cat >>confdefs.h <<\_ACEOF
38804 #define TIME_WITH_SYS_TIME 1
38805 _ACEOF
38806
38807 fi
38808
38809 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
38810 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
38811 if test "${ac_cv_struct_tm+set}" = set; then
38812   echo $ECHO_N "(cached) $ECHO_C" >&6
38813 else
38814   cat >conftest.$ac_ext <<_ACEOF
38815 /* confdefs.h.  */
38816 _ACEOF
38817 cat confdefs.h >>conftest.$ac_ext
38818 cat >>conftest.$ac_ext <<_ACEOF
38819 /* end confdefs.h.  */
38820 #include <sys/types.h>
38821 #include <time.h>
38822
38823 int
38824 main ()
38825 {
38826 struct tm *tp; tp->tm_sec;
38827   ;
38828   return 0;
38829 }
38830 _ACEOF
38831 rm -f conftest.$ac_objext
38832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38833   (eval $ac_compile) 2>conftest.er1
38834   ac_status=$?
38835   grep -v '^ *+' conftest.er1 >conftest.err
38836   rm -f conftest.er1
38837   cat conftest.err >&5
38838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839   (exit $ac_status); } &&
38840          { ac_try='test -z "$ac_c_werror_flag"
38841                          || test ! -s conftest.err'
38842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38843   (eval $ac_try) 2>&5
38844   ac_status=$?
38845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846   (exit $ac_status); }; } &&
38847          { ac_try='test -s conftest.$ac_objext'
38848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849   (eval $ac_try) 2>&5
38850   ac_status=$?
38851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852   (exit $ac_status); }; }; then
38853   ac_cv_struct_tm=time.h
38854 else
38855   echo "$as_me: failed program was:" >&5
38856 sed 's/^/| /' conftest.$ac_ext >&5
38857
38858 ac_cv_struct_tm=sys/time.h
38859 fi
38860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38861 fi
38862 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
38863 echo "${ECHO_T}$ac_cv_struct_tm" >&6
38864 if test $ac_cv_struct_tm = sys/time.h; then
38865
38866 cat >>confdefs.h <<\_ACEOF
38867 #define TM_IN_SYS_TIME 1
38868 _ACEOF
38869
38870 fi
38871
38872 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
38873 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
38874 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
38875   echo $ECHO_N "(cached) $ECHO_C" >&6
38876 else
38877   cat >conftest.$ac_ext <<_ACEOF
38878 /* confdefs.h.  */
38879 _ACEOF
38880 cat confdefs.h >>conftest.$ac_ext
38881 cat >>conftest.$ac_ext <<_ACEOF
38882 /* end confdefs.h.  */
38883 $ac_includes_default
38884 int
38885 main ()
38886 {
38887 static struct stat ac_aggr;
38888 if (ac_aggr.st_blksize)
38889 return 0;
38890   ;
38891   return 0;
38892 }
38893 _ACEOF
38894 rm -f conftest.$ac_objext
38895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38896   (eval $ac_compile) 2>conftest.er1
38897   ac_status=$?
38898   grep -v '^ *+' conftest.er1 >conftest.err
38899   rm -f conftest.er1
38900   cat conftest.err >&5
38901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902   (exit $ac_status); } &&
38903          { ac_try='test -z "$ac_c_werror_flag"
38904                          || test ! -s conftest.err'
38905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38906   (eval $ac_try) 2>&5
38907   ac_status=$?
38908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909   (exit $ac_status); }; } &&
38910          { ac_try='test -s conftest.$ac_objext'
38911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38912   (eval $ac_try) 2>&5
38913   ac_status=$?
38914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915   (exit $ac_status); }; }; then
38916   ac_cv_member_struct_stat_st_blksize=yes
38917 else
38918   echo "$as_me: failed program was:" >&5
38919 sed 's/^/| /' conftest.$ac_ext >&5
38920
38921 cat >conftest.$ac_ext <<_ACEOF
38922 /* confdefs.h.  */
38923 _ACEOF
38924 cat confdefs.h >>conftest.$ac_ext
38925 cat >>conftest.$ac_ext <<_ACEOF
38926 /* end confdefs.h.  */
38927 $ac_includes_default
38928 int
38929 main ()
38930 {
38931 static struct stat ac_aggr;
38932 if (sizeof ac_aggr.st_blksize)
38933 return 0;
38934   ;
38935   return 0;
38936 }
38937 _ACEOF
38938 rm -f conftest.$ac_objext
38939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38940   (eval $ac_compile) 2>conftest.er1
38941   ac_status=$?
38942   grep -v '^ *+' conftest.er1 >conftest.err
38943   rm -f conftest.er1
38944   cat conftest.err >&5
38945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946   (exit $ac_status); } &&
38947          { ac_try='test -z "$ac_c_werror_flag"
38948                          || test ! -s conftest.err'
38949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38950   (eval $ac_try) 2>&5
38951   ac_status=$?
38952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953   (exit $ac_status); }; } &&
38954          { ac_try='test -s conftest.$ac_objext'
38955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956   (eval $ac_try) 2>&5
38957   ac_status=$?
38958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959   (exit $ac_status); }; }; then
38960   ac_cv_member_struct_stat_st_blksize=yes
38961 else
38962   echo "$as_me: failed program was:" >&5
38963 sed 's/^/| /' conftest.$ac_ext >&5
38964
38965 ac_cv_member_struct_stat_st_blksize=no
38966 fi
38967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38968 fi
38969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38970 fi
38971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
38972 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
38973 if test $ac_cv_member_struct_stat_st_blksize = yes; then
38974
38975 cat >>confdefs.h <<_ACEOF
38976 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
38977 _ACEOF
38978
38979
38980 fi
38981
38982 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
38983 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
38984 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
38985   echo $ECHO_N "(cached) $ECHO_C" >&6
38986 else
38987   cat >conftest.$ac_ext <<_ACEOF
38988 /* confdefs.h.  */
38989 _ACEOF
38990 cat confdefs.h >>conftest.$ac_ext
38991 cat >>conftest.$ac_ext <<_ACEOF
38992 /* end confdefs.h.  */
38993 $ac_includes_default
38994 #include <pwd.h>
38995
38996 int
38997 main ()
38998 {
38999 static struct passwd ac_aggr;
39000 if (ac_aggr.pw_gecos)
39001 return 0;
39002   ;
39003   return 0;
39004 }
39005 _ACEOF
39006 rm -f conftest.$ac_objext
39007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39008   (eval $ac_compile) 2>conftest.er1
39009   ac_status=$?
39010   grep -v '^ *+' conftest.er1 >conftest.err
39011   rm -f conftest.er1
39012   cat conftest.err >&5
39013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014   (exit $ac_status); } &&
39015          { ac_try='test -z "$ac_c_werror_flag"
39016                          || test ! -s conftest.err'
39017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018   (eval $ac_try) 2>&5
39019   ac_status=$?
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); }; } &&
39022          { ac_try='test -s conftest.$ac_objext'
39023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024   (eval $ac_try) 2>&5
39025   ac_status=$?
39026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027   (exit $ac_status); }; }; then
39028   ac_cv_member_struct_passwd_pw_gecos=yes
39029 else
39030   echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39032
39033 cat >conftest.$ac_ext <<_ACEOF
39034 /* confdefs.h.  */
39035 _ACEOF
39036 cat confdefs.h >>conftest.$ac_ext
39037 cat >>conftest.$ac_ext <<_ACEOF
39038 /* end confdefs.h.  */
39039 $ac_includes_default
39040 #include <pwd.h>
39041
39042 int
39043 main ()
39044 {
39045 static struct passwd ac_aggr;
39046 if (sizeof ac_aggr.pw_gecos)
39047 return 0;
39048   ;
39049   return 0;
39050 }
39051 _ACEOF
39052 rm -f conftest.$ac_objext
39053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39054   (eval $ac_compile) 2>conftest.er1
39055   ac_status=$?
39056   grep -v '^ *+' conftest.er1 >conftest.err
39057   rm -f conftest.er1
39058   cat conftest.err >&5
39059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060   (exit $ac_status); } &&
39061          { ac_try='test -z "$ac_c_werror_flag"
39062                          || test ! -s conftest.err'
39063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39064   (eval $ac_try) 2>&5
39065   ac_status=$?
39066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39067   (exit $ac_status); }; } &&
39068          { ac_try='test -s conftest.$ac_objext'
39069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39070   (eval $ac_try) 2>&5
39071   ac_status=$?
39072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073   (exit $ac_status); }; }; then
39074   ac_cv_member_struct_passwd_pw_gecos=yes
39075 else
39076   echo "$as_me: failed program was:" >&5
39077 sed 's/^/| /' conftest.$ac_ext >&5
39078
39079 ac_cv_member_struct_passwd_pw_gecos=no
39080 fi
39081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39082 fi
39083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39084 fi
39085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39086 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39087 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39088
39089 cat >>confdefs.h <<_ACEOF
39090 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39091 _ACEOF
39092
39093
39094 fi
39095
39096 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39097 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39098 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39099   echo $ECHO_N "(cached) $ECHO_C" >&6
39100 else
39101   cat >conftest.$ac_ext <<_ACEOF
39102 /* confdefs.h.  */
39103 _ACEOF
39104 cat confdefs.h >>conftest.$ac_ext
39105 cat >>conftest.$ac_ext <<_ACEOF
39106 /* end confdefs.h.  */
39107 $ac_includes_default
39108 #include <pwd.h>
39109
39110 int
39111 main ()
39112 {
39113 static struct passwd ac_aggr;
39114 if (ac_aggr.pw_passwd)
39115 return 0;
39116   ;
39117   return 0;
39118 }
39119 _ACEOF
39120 rm -f conftest.$ac_objext
39121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39122   (eval $ac_compile) 2>conftest.er1
39123   ac_status=$?
39124   grep -v '^ *+' conftest.er1 >conftest.err
39125   rm -f conftest.er1
39126   cat conftest.err >&5
39127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128   (exit $ac_status); } &&
39129          { ac_try='test -z "$ac_c_werror_flag"
39130                          || test ! -s conftest.err'
39131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39132   (eval $ac_try) 2>&5
39133   ac_status=$?
39134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135   (exit $ac_status); }; } &&
39136          { ac_try='test -s conftest.$ac_objext'
39137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39138   (eval $ac_try) 2>&5
39139   ac_status=$?
39140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141   (exit $ac_status); }; }; then
39142   ac_cv_member_struct_passwd_pw_passwd=yes
39143 else
39144   echo "$as_me: failed program was:" >&5
39145 sed 's/^/| /' conftest.$ac_ext >&5
39146
39147 cat >conftest.$ac_ext <<_ACEOF
39148 /* confdefs.h.  */
39149 _ACEOF
39150 cat confdefs.h >>conftest.$ac_ext
39151 cat >>conftest.$ac_ext <<_ACEOF
39152 /* end confdefs.h.  */
39153 $ac_includes_default
39154 #include <pwd.h>
39155
39156 int
39157 main ()
39158 {
39159 static struct passwd ac_aggr;
39160 if (sizeof ac_aggr.pw_passwd)
39161 return 0;
39162   ;
39163   return 0;
39164 }
39165 _ACEOF
39166 rm -f conftest.$ac_objext
39167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39168   (eval $ac_compile) 2>conftest.er1
39169   ac_status=$?
39170   grep -v '^ *+' conftest.er1 >conftest.err
39171   rm -f conftest.er1
39172   cat conftest.err >&5
39173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174   (exit $ac_status); } &&
39175          { ac_try='test -z "$ac_c_werror_flag"
39176                          || test ! -s conftest.err'
39177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39178   (eval $ac_try) 2>&5
39179   ac_status=$?
39180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181   (exit $ac_status); }; } &&
39182          { ac_try='test -s conftest.$ac_objext'
39183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184   (eval $ac_try) 2>&5
39185   ac_status=$?
39186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187   (exit $ac_status); }; }; then
39188   ac_cv_member_struct_passwd_pw_passwd=yes
39189 else
39190   echo "$as_me: failed program was:" >&5
39191 sed 's/^/| /' conftest.$ac_ext >&5
39192
39193 ac_cv_member_struct_passwd_pw_passwd=no
39194 fi
39195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39196 fi
39197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39198 fi
39199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39200 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39201 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39202
39203 cat >>confdefs.h <<_ACEOF
39204 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39205 _ACEOF
39206
39207
39208 fi
39209
39210
39211 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39212 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39213 if test "${ol_cv_c_upper_lower+set}" = set; then
39214   echo $ECHO_N "(cached) $ECHO_C" >&6
39215 else
39216
39217         if test "$cross_compiling" = yes; then
39218   ol_cv_c_upper_lower=safe
39219 else
39220   cat >conftest.$ac_ext <<_ACEOF
39221 /* confdefs.h.  */
39222 _ACEOF
39223 cat confdefs.h >>conftest.$ac_ext
39224 cat >>conftest.$ac_ext <<_ACEOF
39225 /* end confdefs.h.  */
39226
39227 #include <ctype.h>
39228 main()
39229 {
39230         if ('C' == toupper('C'))
39231                 exit(0);
39232         else
39233                 exit(1);
39234 }
39235 _ACEOF
39236 rm -f conftest$ac_exeext
39237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39238   (eval $ac_link) 2>&5
39239   ac_status=$?
39240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243   (eval $ac_try) 2>&5
39244   ac_status=$?
39245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246   (exit $ac_status); }; }; then
39247   ol_cv_c_upper_lower=no
39248 else
39249   echo "$as_me: program exited with status $ac_status" >&5
39250 echo "$as_me: failed program was:" >&5
39251 sed 's/^/| /' conftest.$ac_ext >&5
39252
39253 ( exit $ac_status )
39254 ol_cv_c_upper_lower=yes
39255 fi
39256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39257 fi
39258 fi
39259 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
39260 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
39261 if test $ol_cv_c_upper_lower != no ; then
39262
39263 cat >>confdefs.h <<\_ACEOF
39264 #define C_UPPER_LOWER 1
39265 _ACEOF
39266
39267 fi
39268
39269 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39270 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39271 if test "${ac_cv_c_const+set}" = set; then
39272   echo $ECHO_N "(cached) $ECHO_C" >&6
39273 else
39274   cat >conftest.$ac_ext <<_ACEOF
39275 /* confdefs.h.  */
39276 _ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h.  */
39280
39281 int
39282 main ()
39283 {
39284 /* FIXME: Include the comments suggested by Paul. */
39285 #ifndef __cplusplus
39286   /* Ultrix mips cc rejects this.  */
39287   typedef int charset[2];
39288   const charset x;
39289   /* SunOS 4.1.1 cc rejects this.  */
39290   char const *const *ccp;
39291   char **p;
39292   /* NEC SVR4.0.2 mips cc rejects this.  */
39293   struct point {int x, y;};
39294   static struct point const zero = {0,0};
39295   /* AIX XL C 1.02.0.0 rejects this.
39296      It does not let you subtract one const X* pointer from another in
39297      an arm of an if-expression whose if-part is not a constant
39298      expression */
39299   const char *g = "string";
39300   ccp = &g + (g ? g-g : 0);
39301   /* HPUX 7.0 cc rejects these. */
39302   ++ccp;
39303   p = (char**) ccp;
39304   ccp = (char const *const *) p;
39305   { /* SCO 3.2v4 cc rejects this.  */
39306     char *t;
39307     char const *s = 0 ? (char *) 0 : (char const *) 0;
39308
39309     *t++ = 0;
39310   }
39311   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
39312     int x[] = {25, 17};
39313     const int *foo = &x[0];
39314     ++foo;
39315   }
39316   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39317     typedef const int *iptr;
39318     iptr p = 0;
39319     ++p;
39320   }
39321   { /* AIX XL C 1.02.0.0 rejects this saying
39322        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39323     struct s { int j; const int *ap[3]; };
39324     struct s *b; b->j = 5;
39325   }
39326   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39327     const int foo = 10;
39328   }
39329 #endif
39330
39331   ;
39332   return 0;
39333 }
39334 _ACEOF
39335 rm -f conftest.$ac_objext
39336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39337   (eval $ac_compile) 2>conftest.er1
39338   ac_status=$?
39339   grep -v '^ *+' conftest.er1 >conftest.err
39340   rm -f conftest.er1
39341   cat conftest.err >&5
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); } &&
39344          { ac_try='test -z "$ac_c_werror_flag"
39345                          || test ! -s conftest.err'
39346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39347   (eval $ac_try) 2>&5
39348   ac_status=$?
39349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350   (exit $ac_status); }; } &&
39351          { ac_try='test -s conftest.$ac_objext'
39352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353   (eval $ac_try) 2>&5
39354   ac_status=$?
39355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356   (exit $ac_status); }; }; then
39357   ac_cv_c_const=yes
39358 else
39359   echo "$as_me: failed program was:" >&5
39360 sed 's/^/| /' conftest.$ac_ext >&5
39361
39362 ac_cv_c_const=no
39363 fi
39364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39365 fi
39366 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39367 echo "${ECHO_T}$ac_cv_c_const" >&6
39368 if test $ac_cv_c_const = no; then
39369
39370 cat >>confdefs.h <<\_ACEOF
39371 #define const
39372 _ACEOF
39373
39374 fi
39375
39376 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
39377 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
39378 if test "${ol_cv_c_volatile+set}" = set; then
39379   echo $ECHO_N "(cached) $ECHO_C" >&6
39380 else
39381   cat >conftest.$ac_ext <<_ACEOF
39382 /* confdefs.h.  */
39383 _ACEOF
39384 cat confdefs.h >>conftest.$ac_ext
39385 cat >>conftest.$ac_ext <<_ACEOF
39386 /* end confdefs.h.  */
39387 int x, y, z;
39388 int
39389 main ()
39390 {
39391 volatile int a; int * volatile b = x ? &y : &z;
39392       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
39393       *b = 0;
39394   ;
39395   return 0;
39396 }
39397 _ACEOF
39398 rm -f conftest.$ac_objext
39399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39400   (eval $ac_compile) 2>conftest.er1
39401   ac_status=$?
39402   grep -v '^ *+' conftest.er1 >conftest.err
39403   rm -f conftest.er1
39404   cat conftest.err >&5
39405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406   (exit $ac_status); } &&
39407          { ac_try='test -z "$ac_c_werror_flag"
39408                          || test ! -s conftest.err'
39409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39410   (eval $ac_try) 2>&5
39411   ac_status=$?
39412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413   (exit $ac_status); }; } &&
39414          { ac_try='test -s conftest.$ac_objext'
39415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39416   (eval $ac_try) 2>&5
39417   ac_status=$?
39418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419   (exit $ac_status); }; }; then
39420   ol_cv_c_volatile=yes
39421 else
39422   echo "$as_me: failed program was:" >&5
39423 sed 's/^/| /' conftest.$ac_ext >&5
39424
39425 ol_cv_c_volatile=no
39426 fi
39427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39428 fi
39429 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
39430 echo "${ECHO_T}$ol_cv_c_volatile" >&6
39431   if test $ol_cv_c_volatile = yes; then
39432     :
39433   else
39434
39435 cat >>confdefs.h <<\_ACEOF
39436 #define volatile
39437 _ACEOF
39438
39439   fi
39440
39441
39442 if test $cross_compiling = yes ; then
39443         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
39444 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
39445
39446 cat >>confdefs.h <<\_ACEOF
39447 #define CROSS_COMPILING 1
39448 _ACEOF
39449
39450 else
39451         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
39452 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
39453 if test "${ac_cv_c_bigendian+set}" = set; then
39454   echo $ECHO_N "(cached) $ECHO_C" >&6
39455 else
39456   # See if sys/param.h defines the BYTE_ORDER macro.
39457 cat >conftest.$ac_ext <<_ACEOF
39458 /* confdefs.h.  */
39459 _ACEOF
39460 cat confdefs.h >>conftest.$ac_ext
39461 cat >>conftest.$ac_ext <<_ACEOF
39462 /* end confdefs.h.  */
39463 #include <sys/types.h>
39464 #include <sys/param.h>
39465
39466 int
39467 main ()
39468 {
39469 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
39470  bogus endian macros
39471 #endif
39472
39473   ;
39474   return 0;
39475 }
39476 _ACEOF
39477 rm -f conftest.$ac_objext
39478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39479   (eval $ac_compile) 2>conftest.er1
39480   ac_status=$?
39481   grep -v '^ *+' conftest.er1 >conftest.err
39482   rm -f conftest.er1
39483   cat conftest.err >&5
39484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39485   (exit $ac_status); } &&
39486          { ac_try='test -z "$ac_c_werror_flag"
39487                          || test ! -s conftest.err'
39488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489   (eval $ac_try) 2>&5
39490   ac_status=$?
39491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492   (exit $ac_status); }; } &&
39493          { ac_try='test -s conftest.$ac_objext'
39494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39495   (eval $ac_try) 2>&5
39496   ac_status=$?
39497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39498   (exit $ac_status); }; }; then
39499   # It does; now see whether it defined to BIG_ENDIAN or not.
39500 cat >conftest.$ac_ext <<_ACEOF
39501 /* confdefs.h.  */
39502 _ACEOF
39503 cat confdefs.h >>conftest.$ac_ext
39504 cat >>conftest.$ac_ext <<_ACEOF
39505 /* end confdefs.h.  */
39506 #include <sys/types.h>
39507 #include <sys/param.h>
39508
39509 int
39510 main ()
39511 {
39512 #if BYTE_ORDER != BIG_ENDIAN
39513  not big endian
39514 #endif
39515
39516   ;
39517   return 0;
39518 }
39519 _ACEOF
39520 rm -f conftest.$ac_objext
39521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39522   (eval $ac_compile) 2>conftest.er1
39523   ac_status=$?
39524   grep -v '^ *+' conftest.er1 >conftest.err
39525   rm -f conftest.er1
39526   cat conftest.err >&5
39527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528   (exit $ac_status); } &&
39529          { ac_try='test -z "$ac_c_werror_flag"
39530                          || test ! -s conftest.err'
39531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39532   (eval $ac_try) 2>&5
39533   ac_status=$?
39534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535   (exit $ac_status); }; } &&
39536          { ac_try='test -s conftest.$ac_objext'
39537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39538   (eval $ac_try) 2>&5
39539   ac_status=$?
39540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541   (exit $ac_status); }; }; then
39542   ac_cv_c_bigendian=yes
39543 else
39544   echo "$as_me: failed program was:" >&5
39545 sed 's/^/| /' conftest.$ac_ext >&5
39546
39547 ac_cv_c_bigendian=no
39548 fi
39549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39550 else
39551   echo "$as_me: failed program was:" >&5
39552 sed 's/^/| /' conftest.$ac_ext >&5
39553
39554 # It does not; compile a test program.
39555 if test "$cross_compiling" = yes; then
39556   # try to guess the endianness by grepping values into an object file
39557   ac_cv_c_bigendian=unknown
39558   cat >conftest.$ac_ext <<_ACEOF
39559 /* confdefs.h.  */
39560 _ACEOF
39561 cat confdefs.h >>conftest.$ac_ext
39562 cat >>conftest.$ac_ext <<_ACEOF
39563 /* end confdefs.h.  */
39564 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
39565 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
39566 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
39567 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
39568 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
39569 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
39570 int
39571 main ()
39572 {
39573  _ascii (); _ebcdic ();
39574   ;
39575   return 0;
39576 }
39577 _ACEOF
39578 rm -f conftest.$ac_objext
39579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39580   (eval $ac_compile) 2>conftest.er1
39581   ac_status=$?
39582   grep -v '^ *+' conftest.er1 >conftest.err
39583   rm -f conftest.er1
39584   cat conftest.err >&5
39585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586   (exit $ac_status); } &&
39587          { ac_try='test -z "$ac_c_werror_flag"
39588                          || test ! -s conftest.err'
39589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39590   (eval $ac_try) 2>&5
39591   ac_status=$?
39592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); }; } &&
39594          { ac_try='test -s conftest.$ac_objext'
39595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39596   (eval $ac_try) 2>&5
39597   ac_status=$?
39598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599   (exit $ac_status); }; }; then
39600   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
39601   ac_cv_c_bigendian=yes
39602 fi
39603 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
39604   if test "$ac_cv_c_bigendian" = unknown; then
39605     ac_cv_c_bigendian=no
39606   else
39607     # finding both strings is unlikely to happen, but who knows?
39608     ac_cv_c_bigendian=unknown
39609   fi
39610 fi
39611 else
39612   echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39614
39615 fi
39616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39617 else
39618   cat >conftest.$ac_ext <<_ACEOF
39619 /* confdefs.h.  */
39620 _ACEOF
39621 cat confdefs.h >>conftest.$ac_ext
39622 cat >>conftest.$ac_ext <<_ACEOF
39623 /* end confdefs.h.  */
39624 int
39625 main ()
39626 {
39627   /* Are we little or big endian?  From Harbison&Steele.  */
39628   union
39629   {
39630     long l;
39631     char c[sizeof (long)];
39632   } u;
39633   u.l = 1;
39634   exit (u.c[sizeof (long) - 1] == 1);
39635 }
39636 _ACEOF
39637 rm -f conftest$ac_exeext
39638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39639   (eval $ac_link) 2>&5
39640   ac_status=$?
39641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39644   (eval $ac_try) 2>&5
39645   ac_status=$?
39646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647   (exit $ac_status); }; }; then
39648   ac_cv_c_bigendian=no
39649 else
39650   echo "$as_me: program exited with status $ac_status" >&5
39651 echo "$as_me: failed program was:" >&5
39652 sed 's/^/| /' conftest.$ac_ext >&5
39653
39654 ( exit $ac_status )
39655 ac_cv_c_bigendian=yes
39656 fi
39657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39658 fi
39659 fi
39660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39661 fi
39662 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
39663 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
39664 case $ac_cv_c_bigendian in
39665   yes)
39666
39667 cat >>confdefs.h <<\_ACEOF
39668 #define WORDS_BIGENDIAN 1
39669 _ACEOF
39670  ;;
39671   no)
39672      ;;
39673   *)
39674     { { echo "$as_me:$LINENO: error: unknown endianness
39675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
39676 echo "$as_me: error: unknown endianness
39677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
39678    { (exit 1); exit 1; }; } ;;
39679 esac
39680
39681 fi
39682
39683 echo "$as_me:$LINENO: checking for short" >&5
39684 echo $ECHO_N "checking for short... $ECHO_C" >&6
39685 if test "${ac_cv_type_short+set}" = set; then
39686   echo $ECHO_N "(cached) $ECHO_C" >&6
39687 else
39688   cat >conftest.$ac_ext <<_ACEOF
39689 /* confdefs.h.  */
39690 _ACEOF
39691 cat confdefs.h >>conftest.$ac_ext
39692 cat >>conftest.$ac_ext <<_ACEOF
39693 /* end confdefs.h.  */
39694 $ac_includes_default
39695 int
39696 main ()
39697 {
39698 if ((short *) 0)
39699   return 0;
39700 if (sizeof (short))
39701   return 0;
39702   ;
39703   return 0;
39704 }
39705 _ACEOF
39706 rm -f conftest.$ac_objext
39707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39708   (eval $ac_compile) 2>conftest.er1
39709   ac_status=$?
39710   grep -v '^ *+' conftest.er1 >conftest.err
39711   rm -f conftest.er1
39712   cat conftest.err >&5
39713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714   (exit $ac_status); } &&
39715          { ac_try='test -z "$ac_c_werror_flag"
39716                          || test ! -s conftest.err'
39717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39718   (eval $ac_try) 2>&5
39719   ac_status=$?
39720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721   (exit $ac_status); }; } &&
39722          { ac_try='test -s conftest.$ac_objext'
39723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39724   (eval $ac_try) 2>&5
39725   ac_status=$?
39726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727   (exit $ac_status); }; }; then
39728   ac_cv_type_short=yes
39729 else
39730   echo "$as_me: failed program was:" >&5
39731 sed 's/^/| /' conftest.$ac_ext >&5
39732
39733 ac_cv_type_short=no
39734 fi
39735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39736 fi
39737 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
39738 echo "${ECHO_T}$ac_cv_type_short" >&6
39739
39740 echo "$as_me:$LINENO: checking size of short" >&5
39741 echo $ECHO_N "checking size of short... $ECHO_C" >&6
39742 if test "${ac_cv_sizeof_short+set}" = set; then
39743   echo $ECHO_N "(cached) $ECHO_C" >&6
39744 else
39745   if test "$ac_cv_type_short" = yes; then
39746   # The cast to unsigned long works around a bug in the HP C Compiler
39747   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39748   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39749   # This bug is HP SR number 8606223364.
39750   if test "$cross_compiling" = yes; then
39751   # Depending upon the size, compute the lo and hi bounds.
39752 cat >conftest.$ac_ext <<_ACEOF
39753 /* confdefs.h.  */
39754 _ACEOF
39755 cat confdefs.h >>conftest.$ac_ext
39756 cat >>conftest.$ac_ext <<_ACEOF
39757 /* end confdefs.h.  */
39758 $ac_includes_default
39759 int
39760 main ()
39761 {
39762 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
39763 test_array [0] = 0
39764
39765   ;
39766   return 0;
39767 }
39768 _ACEOF
39769 rm -f conftest.$ac_objext
39770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39771   (eval $ac_compile) 2>conftest.er1
39772   ac_status=$?
39773   grep -v '^ *+' conftest.er1 >conftest.err
39774   rm -f conftest.er1
39775   cat conftest.err >&5
39776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777   (exit $ac_status); } &&
39778          { ac_try='test -z "$ac_c_werror_flag"
39779                          || test ! -s conftest.err'
39780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781   (eval $ac_try) 2>&5
39782   ac_status=$?
39783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784   (exit $ac_status); }; } &&
39785          { ac_try='test -s conftest.$ac_objext'
39786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787   (eval $ac_try) 2>&5
39788   ac_status=$?
39789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790   (exit $ac_status); }; }; then
39791   ac_lo=0 ac_mid=0
39792   while :; do
39793     cat >conftest.$ac_ext <<_ACEOF
39794 /* confdefs.h.  */
39795 _ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h.  */
39799 $ac_includes_default
39800 int
39801 main ()
39802 {
39803 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
39804 test_array [0] = 0
39805
39806   ;
39807   return 0;
39808 }
39809 _ACEOF
39810 rm -f conftest.$ac_objext
39811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39812   (eval $ac_compile) 2>conftest.er1
39813   ac_status=$?
39814   grep -v '^ *+' conftest.er1 >conftest.err
39815   rm -f conftest.er1
39816   cat conftest.err >&5
39817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818   (exit $ac_status); } &&
39819          { ac_try='test -z "$ac_c_werror_flag"
39820                          || test ! -s conftest.err'
39821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39822   (eval $ac_try) 2>&5
39823   ac_status=$?
39824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39825   (exit $ac_status); }; } &&
39826          { ac_try='test -s conftest.$ac_objext'
39827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39828   (eval $ac_try) 2>&5
39829   ac_status=$?
39830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831   (exit $ac_status); }; }; then
39832   ac_hi=$ac_mid; break
39833 else
39834   echo "$as_me: failed program was:" >&5
39835 sed 's/^/| /' conftest.$ac_ext >&5
39836
39837 ac_lo=`expr $ac_mid + 1`
39838                     if test $ac_lo -le $ac_mid; then
39839                       ac_lo= ac_hi=
39840                       break
39841                     fi
39842                     ac_mid=`expr 2 '*' $ac_mid + 1`
39843 fi
39844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39845   done
39846 else
39847   echo "$as_me: failed program was:" >&5
39848 sed 's/^/| /' conftest.$ac_ext >&5
39849
39850 cat >conftest.$ac_ext <<_ACEOF
39851 /* confdefs.h.  */
39852 _ACEOF
39853 cat confdefs.h >>conftest.$ac_ext
39854 cat >>conftest.$ac_ext <<_ACEOF
39855 /* end confdefs.h.  */
39856 $ac_includes_default
39857 int
39858 main ()
39859 {
39860 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
39861 test_array [0] = 0
39862
39863   ;
39864   return 0;
39865 }
39866 _ACEOF
39867 rm -f conftest.$ac_objext
39868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39869   (eval $ac_compile) 2>conftest.er1
39870   ac_status=$?
39871   grep -v '^ *+' conftest.er1 >conftest.err
39872   rm -f conftest.er1
39873   cat conftest.err >&5
39874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875   (exit $ac_status); } &&
39876          { ac_try='test -z "$ac_c_werror_flag"
39877                          || test ! -s conftest.err'
39878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39879   (eval $ac_try) 2>&5
39880   ac_status=$?
39881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882   (exit $ac_status); }; } &&
39883          { ac_try='test -s conftest.$ac_objext'
39884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885   (eval $ac_try) 2>&5
39886   ac_status=$?
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); }; }; then
39889   ac_hi=-1 ac_mid=-1
39890   while :; do
39891     cat >conftest.$ac_ext <<_ACEOF
39892 /* confdefs.h.  */
39893 _ACEOF
39894 cat confdefs.h >>conftest.$ac_ext
39895 cat >>conftest.$ac_ext <<_ACEOF
39896 /* end confdefs.h.  */
39897 $ac_includes_default
39898 int
39899 main ()
39900 {
39901 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
39902 test_array [0] = 0
39903
39904   ;
39905   return 0;
39906 }
39907 _ACEOF
39908 rm -f conftest.$ac_objext
39909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39910   (eval $ac_compile) 2>conftest.er1
39911   ac_status=$?
39912   grep -v '^ *+' conftest.er1 >conftest.err
39913   rm -f conftest.er1
39914   cat conftest.err >&5
39915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916   (exit $ac_status); } &&
39917          { ac_try='test -z "$ac_c_werror_flag"
39918                          || test ! -s conftest.err'
39919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39920   (eval $ac_try) 2>&5
39921   ac_status=$?
39922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39923   (exit $ac_status); }; } &&
39924          { ac_try='test -s conftest.$ac_objext'
39925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39926   (eval $ac_try) 2>&5
39927   ac_status=$?
39928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929   (exit $ac_status); }; }; then
39930   ac_lo=$ac_mid; break
39931 else
39932   echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39934
39935 ac_hi=`expr '(' $ac_mid ')' - 1`
39936                        if test $ac_mid -le $ac_hi; then
39937                          ac_lo= ac_hi=
39938                          break
39939                        fi
39940                        ac_mid=`expr 2 '*' $ac_mid`
39941 fi
39942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39943   done
39944 else
39945   echo "$as_me: failed program was:" >&5
39946 sed 's/^/| /' conftest.$ac_ext >&5
39947
39948 ac_lo= ac_hi=
39949 fi
39950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39951 fi
39952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39953 # Binary search between lo and hi bounds.
39954 while test "x$ac_lo" != "x$ac_hi"; do
39955   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39956   cat >conftest.$ac_ext <<_ACEOF
39957 /* confdefs.h.  */
39958 _ACEOF
39959 cat confdefs.h >>conftest.$ac_ext
39960 cat >>conftest.$ac_ext <<_ACEOF
39961 /* end confdefs.h.  */
39962 $ac_includes_default
39963 int
39964 main ()
39965 {
39966 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
39967 test_array [0] = 0
39968
39969   ;
39970   return 0;
39971 }
39972 _ACEOF
39973 rm -f conftest.$ac_objext
39974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39975   (eval $ac_compile) 2>conftest.er1
39976   ac_status=$?
39977   grep -v '^ *+' conftest.er1 >conftest.err
39978   rm -f conftest.er1
39979   cat conftest.err >&5
39980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981   (exit $ac_status); } &&
39982          { ac_try='test -z "$ac_c_werror_flag"
39983                          || test ! -s conftest.err'
39984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39985   (eval $ac_try) 2>&5
39986   ac_status=$?
39987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39988   (exit $ac_status); }; } &&
39989          { ac_try='test -s conftest.$ac_objext'
39990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991   (eval $ac_try) 2>&5
39992   ac_status=$?
39993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994   (exit $ac_status); }; }; then
39995   ac_hi=$ac_mid
39996 else
39997   echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
39999
40000 ac_lo=`expr '(' $ac_mid ')' + 1`
40001 fi
40002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40003 done
40004 case $ac_lo in
40005 ?*) ac_cv_sizeof_short=$ac_lo;;
40006 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40007 See \`config.log' for more details." >&5
40008 echo "$as_me: error: cannot compute sizeof (short), 77
40009 See \`config.log' for more details." >&2;}
40010    { (exit 1); exit 1; }; } ;;
40011 esac
40012 else
40013   if test "$cross_compiling" = yes; then
40014   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40015 See \`config.log' for more details." >&5
40016 echo "$as_me: error: cannot run test program while cross compiling
40017 See \`config.log' for more details." >&2;}
40018    { (exit 1); exit 1; }; }
40019 else
40020   cat >conftest.$ac_ext <<_ACEOF
40021 /* confdefs.h.  */
40022 _ACEOF
40023 cat confdefs.h >>conftest.$ac_ext
40024 cat >>conftest.$ac_ext <<_ACEOF
40025 /* end confdefs.h.  */
40026 $ac_includes_default
40027 long longval () { return (long) (sizeof (short)); }
40028 unsigned long ulongval () { return (long) (sizeof (short)); }
40029 #include <stdio.h>
40030 #include <stdlib.h>
40031 int
40032 main ()
40033 {
40034
40035   FILE *f = fopen ("conftest.val", "w");
40036   if (! f)
40037     exit (1);
40038   if (((long) (sizeof (short))) < 0)
40039     {
40040       long i = longval ();
40041       if (i != ((long) (sizeof (short))))
40042         exit (1);
40043       fprintf (f, "%ld\n", i);
40044     }
40045   else
40046     {
40047       unsigned long i = ulongval ();
40048       if (i != ((long) (sizeof (short))))
40049         exit (1);
40050       fprintf (f, "%lu\n", i);
40051     }
40052   exit (ferror (f) || fclose (f) != 0);
40053
40054   ;
40055   return 0;
40056 }
40057 _ACEOF
40058 rm -f conftest$ac_exeext
40059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40060   (eval $ac_link) 2>&5
40061   ac_status=$?
40062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40065   (eval $ac_try) 2>&5
40066   ac_status=$?
40067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068   (exit $ac_status); }; }; then
40069   ac_cv_sizeof_short=`cat conftest.val`
40070 else
40071   echo "$as_me: program exited with status $ac_status" >&5
40072 echo "$as_me: failed program was:" >&5
40073 sed 's/^/| /' conftest.$ac_ext >&5
40074
40075 ( exit $ac_status )
40076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40077 See \`config.log' for more details." >&5
40078 echo "$as_me: error: cannot compute sizeof (short), 77
40079 See \`config.log' for more details." >&2;}
40080    { (exit 1); exit 1; }; }
40081 fi
40082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40083 fi
40084 fi
40085 rm -f conftest.val
40086 else
40087   ac_cv_sizeof_short=0
40088 fi
40089 fi
40090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40091 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40092 cat >>confdefs.h <<_ACEOF
40093 #define SIZEOF_SHORT $ac_cv_sizeof_short
40094 _ACEOF
40095
40096
40097 echo "$as_me:$LINENO: checking for int" >&5
40098 echo $ECHO_N "checking for int... $ECHO_C" >&6
40099 if test "${ac_cv_type_int+set}" = set; then
40100   echo $ECHO_N "(cached) $ECHO_C" >&6
40101 else
40102   cat >conftest.$ac_ext <<_ACEOF
40103 /* confdefs.h.  */
40104 _ACEOF
40105 cat confdefs.h >>conftest.$ac_ext
40106 cat >>conftest.$ac_ext <<_ACEOF
40107 /* end confdefs.h.  */
40108 $ac_includes_default
40109 int
40110 main ()
40111 {
40112 if ((int *) 0)
40113   return 0;
40114 if (sizeof (int))
40115   return 0;
40116   ;
40117   return 0;
40118 }
40119 _ACEOF
40120 rm -f conftest.$ac_objext
40121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40122   (eval $ac_compile) 2>conftest.er1
40123   ac_status=$?
40124   grep -v '^ *+' conftest.er1 >conftest.err
40125   rm -f conftest.er1
40126   cat conftest.err >&5
40127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128   (exit $ac_status); } &&
40129          { ac_try='test -z "$ac_c_werror_flag"
40130                          || test ! -s conftest.err'
40131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40132   (eval $ac_try) 2>&5
40133   ac_status=$?
40134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40135   (exit $ac_status); }; } &&
40136          { ac_try='test -s conftest.$ac_objext'
40137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40138   (eval $ac_try) 2>&5
40139   ac_status=$?
40140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40141   (exit $ac_status); }; }; then
40142   ac_cv_type_int=yes
40143 else
40144   echo "$as_me: failed program was:" >&5
40145 sed 's/^/| /' conftest.$ac_ext >&5
40146
40147 ac_cv_type_int=no
40148 fi
40149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40150 fi
40151 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40152 echo "${ECHO_T}$ac_cv_type_int" >&6
40153
40154 echo "$as_me:$LINENO: checking size of int" >&5
40155 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40156 if test "${ac_cv_sizeof_int+set}" = set; then
40157   echo $ECHO_N "(cached) $ECHO_C" >&6
40158 else
40159   if test "$ac_cv_type_int" = yes; then
40160   # The cast to unsigned long works around a bug in the HP C Compiler
40161   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40162   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40163   # This bug is HP SR number 8606223364.
40164   if test "$cross_compiling" = yes; then
40165   # Depending upon the size, compute the lo and hi bounds.
40166 cat >conftest.$ac_ext <<_ACEOF
40167 /* confdefs.h.  */
40168 _ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h.  */
40172 $ac_includes_default
40173 int
40174 main ()
40175 {
40176 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40177 test_array [0] = 0
40178
40179   ;
40180   return 0;
40181 }
40182 _ACEOF
40183 rm -f conftest.$ac_objext
40184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40185   (eval $ac_compile) 2>conftest.er1
40186   ac_status=$?
40187   grep -v '^ *+' conftest.er1 >conftest.err
40188   rm -f conftest.er1
40189   cat conftest.err >&5
40190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191   (exit $ac_status); } &&
40192          { ac_try='test -z "$ac_c_werror_flag"
40193                          || test ! -s conftest.err'
40194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40195   (eval $ac_try) 2>&5
40196   ac_status=$?
40197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198   (exit $ac_status); }; } &&
40199          { ac_try='test -s conftest.$ac_objext'
40200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40201   (eval $ac_try) 2>&5
40202   ac_status=$?
40203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204   (exit $ac_status); }; }; then
40205   ac_lo=0 ac_mid=0
40206   while :; do
40207     cat >conftest.$ac_ext <<_ACEOF
40208 /* confdefs.h.  */
40209 _ACEOF
40210 cat confdefs.h >>conftest.$ac_ext
40211 cat >>conftest.$ac_ext <<_ACEOF
40212 /* end confdefs.h.  */
40213 $ac_includes_default
40214 int
40215 main ()
40216 {
40217 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40218 test_array [0] = 0
40219
40220   ;
40221   return 0;
40222 }
40223 _ACEOF
40224 rm -f conftest.$ac_objext
40225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40226   (eval $ac_compile) 2>conftest.er1
40227   ac_status=$?
40228   grep -v '^ *+' conftest.er1 >conftest.err
40229   rm -f conftest.er1
40230   cat conftest.err >&5
40231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40232   (exit $ac_status); } &&
40233          { ac_try='test -z "$ac_c_werror_flag"
40234                          || test ! -s conftest.err'
40235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236   (eval $ac_try) 2>&5
40237   ac_status=$?
40238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239   (exit $ac_status); }; } &&
40240          { ac_try='test -s conftest.$ac_objext'
40241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40242   (eval $ac_try) 2>&5
40243   ac_status=$?
40244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40245   (exit $ac_status); }; }; then
40246   ac_hi=$ac_mid; break
40247 else
40248   echo "$as_me: failed program was:" >&5
40249 sed 's/^/| /' conftest.$ac_ext >&5
40250
40251 ac_lo=`expr $ac_mid + 1`
40252                     if test $ac_lo -le $ac_mid; then
40253                       ac_lo= ac_hi=
40254                       break
40255                     fi
40256                     ac_mid=`expr 2 '*' $ac_mid + 1`
40257 fi
40258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40259   done
40260 else
40261   echo "$as_me: failed program was:" >&5
40262 sed 's/^/| /' conftest.$ac_ext >&5
40263
40264 cat >conftest.$ac_ext <<_ACEOF
40265 /* confdefs.h.  */
40266 _ACEOF
40267 cat confdefs.h >>conftest.$ac_ext
40268 cat >>conftest.$ac_ext <<_ACEOF
40269 /* end confdefs.h.  */
40270 $ac_includes_default
40271 int
40272 main ()
40273 {
40274 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
40275 test_array [0] = 0
40276
40277   ;
40278   return 0;
40279 }
40280 _ACEOF
40281 rm -f conftest.$ac_objext
40282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40283   (eval $ac_compile) 2>conftest.er1
40284   ac_status=$?
40285   grep -v '^ *+' conftest.er1 >conftest.err
40286   rm -f conftest.er1
40287   cat conftest.err >&5
40288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289   (exit $ac_status); } &&
40290          { ac_try='test -z "$ac_c_werror_flag"
40291                          || test ! -s conftest.err'
40292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40293   (eval $ac_try) 2>&5
40294   ac_status=$?
40295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40296   (exit $ac_status); }; } &&
40297          { ac_try='test -s conftest.$ac_objext'
40298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40299   (eval $ac_try) 2>&5
40300   ac_status=$?
40301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302   (exit $ac_status); }; }; then
40303   ac_hi=-1 ac_mid=-1
40304   while :; do
40305     cat >conftest.$ac_ext <<_ACEOF
40306 /* confdefs.h.  */
40307 _ACEOF
40308 cat confdefs.h >>conftest.$ac_ext
40309 cat >>conftest.$ac_ext <<_ACEOF
40310 /* end confdefs.h.  */
40311 $ac_includes_default
40312 int
40313 main ()
40314 {
40315 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
40316 test_array [0] = 0
40317
40318   ;
40319   return 0;
40320 }
40321 _ACEOF
40322 rm -f conftest.$ac_objext
40323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40324   (eval $ac_compile) 2>conftest.er1
40325   ac_status=$?
40326   grep -v '^ *+' conftest.er1 >conftest.err
40327   rm -f conftest.er1
40328   cat conftest.err >&5
40329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330   (exit $ac_status); } &&
40331          { ac_try='test -z "$ac_c_werror_flag"
40332                          || test ! -s conftest.err'
40333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334   (eval $ac_try) 2>&5
40335   ac_status=$?
40336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337   (exit $ac_status); }; } &&
40338          { ac_try='test -s conftest.$ac_objext'
40339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40340   (eval $ac_try) 2>&5
40341   ac_status=$?
40342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343   (exit $ac_status); }; }; then
40344   ac_lo=$ac_mid; break
40345 else
40346   echo "$as_me: failed program was:" >&5
40347 sed 's/^/| /' conftest.$ac_ext >&5
40348
40349 ac_hi=`expr '(' $ac_mid ')' - 1`
40350                        if test $ac_mid -le $ac_hi; then
40351                          ac_lo= ac_hi=
40352                          break
40353                        fi
40354                        ac_mid=`expr 2 '*' $ac_mid`
40355 fi
40356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40357   done
40358 else
40359   echo "$as_me: failed program was:" >&5
40360 sed 's/^/| /' conftest.$ac_ext >&5
40361
40362 ac_lo= ac_hi=
40363 fi
40364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40365 fi
40366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40367 # Binary search between lo and hi bounds.
40368 while test "x$ac_lo" != "x$ac_hi"; do
40369   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40370   cat >conftest.$ac_ext <<_ACEOF
40371 /* confdefs.h.  */
40372 _ACEOF
40373 cat confdefs.h >>conftest.$ac_ext
40374 cat >>conftest.$ac_ext <<_ACEOF
40375 /* end confdefs.h.  */
40376 $ac_includes_default
40377 int
40378 main ()
40379 {
40380 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40381 test_array [0] = 0
40382
40383   ;
40384   return 0;
40385 }
40386 _ACEOF
40387 rm -f conftest.$ac_objext
40388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40389   (eval $ac_compile) 2>conftest.er1
40390   ac_status=$?
40391   grep -v '^ *+' conftest.er1 >conftest.err
40392   rm -f conftest.er1
40393   cat conftest.err >&5
40394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40395   (exit $ac_status); } &&
40396          { ac_try='test -z "$ac_c_werror_flag"
40397                          || test ! -s conftest.err'
40398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40399   (eval $ac_try) 2>&5
40400   ac_status=$?
40401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40402   (exit $ac_status); }; } &&
40403          { ac_try='test -s conftest.$ac_objext'
40404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40405   (eval $ac_try) 2>&5
40406   ac_status=$?
40407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408   (exit $ac_status); }; }; then
40409   ac_hi=$ac_mid
40410 else
40411   echo "$as_me: failed program was:" >&5
40412 sed 's/^/| /' conftest.$ac_ext >&5
40413
40414 ac_lo=`expr '(' $ac_mid ')' + 1`
40415 fi
40416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40417 done
40418 case $ac_lo in
40419 ?*) ac_cv_sizeof_int=$ac_lo;;
40420 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40421 See \`config.log' for more details." >&5
40422 echo "$as_me: error: cannot compute sizeof (int), 77
40423 See \`config.log' for more details." >&2;}
40424    { (exit 1); exit 1; }; } ;;
40425 esac
40426 else
40427   if test "$cross_compiling" = yes; then
40428   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40429 See \`config.log' for more details." >&5
40430 echo "$as_me: error: cannot run test program while cross compiling
40431 See \`config.log' for more details." >&2;}
40432    { (exit 1); exit 1; }; }
40433 else
40434   cat >conftest.$ac_ext <<_ACEOF
40435 /* confdefs.h.  */
40436 _ACEOF
40437 cat confdefs.h >>conftest.$ac_ext
40438 cat >>conftest.$ac_ext <<_ACEOF
40439 /* end confdefs.h.  */
40440 $ac_includes_default
40441 long longval () { return (long) (sizeof (int)); }
40442 unsigned long ulongval () { return (long) (sizeof (int)); }
40443 #include <stdio.h>
40444 #include <stdlib.h>
40445 int
40446 main ()
40447 {
40448
40449   FILE *f = fopen ("conftest.val", "w");
40450   if (! f)
40451     exit (1);
40452   if (((long) (sizeof (int))) < 0)
40453     {
40454       long i = longval ();
40455       if (i != ((long) (sizeof (int))))
40456         exit (1);
40457       fprintf (f, "%ld\n", i);
40458     }
40459   else
40460     {
40461       unsigned long i = ulongval ();
40462       if (i != ((long) (sizeof (int))))
40463         exit (1);
40464       fprintf (f, "%lu\n", i);
40465     }
40466   exit (ferror (f) || fclose (f) != 0);
40467
40468   ;
40469   return 0;
40470 }
40471 _ACEOF
40472 rm -f conftest$ac_exeext
40473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40474   (eval $ac_link) 2>&5
40475   ac_status=$?
40476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40479   (eval $ac_try) 2>&5
40480   ac_status=$?
40481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40482   (exit $ac_status); }; }; then
40483   ac_cv_sizeof_int=`cat conftest.val`
40484 else
40485   echo "$as_me: program exited with status $ac_status" >&5
40486 echo "$as_me: failed program was:" >&5
40487 sed 's/^/| /' conftest.$ac_ext >&5
40488
40489 ( exit $ac_status )
40490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40491 See \`config.log' for more details." >&5
40492 echo "$as_me: error: cannot compute sizeof (int), 77
40493 See \`config.log' for more details." >&2;}
40494    { (exit 1); exit 1; }; }
40495 fi
40496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40497 fi
40498 fi
40499 rm -f conftest.val
40500 else
40501   ac_cv_sizeof_int=0
40502 fi
40503 fi
40504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
40505 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
40506 cat >>confdefs.h <<_ACEOF
40507 #define SIZEOF_INT $ac_cv_sizeof_int
40508 _ACEOF
40509
40510
40511 echo "$as_me:$LINENO: checking for long" >&5
40512 echo $ECHO_N "checking for long... $ECHO_C" >&6
40513 if test "${ac_cv_type_long+set}" = set; then
40514   echo $ECHO_N "(cached) $ECHO_C" >&6
40515 else
40516   cat >conftest.$ac_ext <<_ACEOF
40517 /* confdefs.h.  */
40518 _ACEOF
40519 cat confdefs.h >>conftest.$ac_ext
40520 cat >>conftest.$ac_ext <<_ACEOF
40521 /* end confdefs.h.  */
40522 $ac_includes_default
40523 int
40524 main ()
40525 {
40526 if ((long *) 0)
40527   return 0;
40528 if (sizeof (long))
40529   return 0;
40530   ;
40531   return 0;
40532 }
40533 _ACEOF
40534 rm -f conftest.$ac_objext
40535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40536   (eval $ac_compile) 2>conftest.er1
40537   ac_status=$?
40538   grep -v '^ *+' conftest.er1 >conftest.err
40539   rm -f conftest.er1
40540   cat conftest.err >&5
40541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542   (exit $ac_status); } &&
40543          { ac_try='test -z "$ac_c_werror_flag"
40544                          || test ! -s conftest.err'
40545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40546   (eval $ac_try) 2>&5
40547   ac_status=$?
40548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549   (exit $ac_status); }; } &&
40550          { ac_try='test -s conftest.$ac_objext'
40551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552   (eval $ac_try) 2>&5
40553   ac_status=$?
40554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555   (exit $ac_status); }; }; then
40556   ac_cv_type_long=yes
40557 else
40558   echo "$as_me: failed program was:" >&5
40559 sed 's/^/| /' conftest.$ac_ext >&5
40560
40561 ac_cv_type_long=no
40562 fi
40563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40564 fi
40565 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
40566 echo "${ECHO_T}$ac_cv_type_long" >&6
40567
40568 echo "$as_me:$LINENO: checking size of long" >&5
40569 echo $ECHO_N "checking size of long... $ECHO_C" >&6
40570 if test "${ac_cv_sizeof_long+set}" = set; then
40571   echo $ECHO_N "(cached) $ECHO_C" >&6
40572 else
40573   if test "$ac_cv_type_long" = yes; then
40574   # The cast to unsigned long works around a bug in the HP C Compiler
40575   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40576   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40577   # This bug is HP SR number 8606223364.
40578   if test "$cross_compiling" = yes; then
40579   # Depending upon the size, compute the lo and hi bounds.
40580 cat >conftest.$ac_ext <<_ACEOF
40581 /* confdefs.h.  */
40582 _ACEOF
40583 cat confdefs.h >>conftest.$ac_ext
40584 cat >>conftest.$ac_ext <<_ACEOF
40585 /* end confdefs.h.  */
40586 $ac_includes_default
40587 int
40588 main ()
40589 {
40590 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
40591 test_array [0] = 0
40592
40593   ;
40594   return 0;
40595 }
40596 _ACEOF
40597 rm -f conftest.$ac_objext
40598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40599   (eval $ac_compile) 2>conftest.er1
40600   ac_status=$?
40601   grep -v '^ *+' conftest.er1 >conftest.err
40602   rm -f conftest.er1
40603   cat conftest.err >&5
40604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40605   (exit $ac_status); } &&
40606          { ac_try='test -z "$ac_c_werror_flag"
40607                          || test ! -s conftest.err'
40608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40609   (eval $ac_try) 2>&5
40610   ac_status=$?
40611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612   (exit $ac_status); }; } &&
40613          { ac_try='test -s conftest.$ac_objext'
40614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40615   (eval $ac_try) 2>&5
40616   ac_status=$?
40617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618   (exit $ac_status); }; }; then
40619   ac_lo=0 ac_mid=0
40620   while :; do
40621     cat >conftest.$ac_ext <<_ACEOF
40622 /* confdefs.h.  */
40623 _ACEOF
40624 cat confdefs.h >>conftest.$ac_ext
40625 cat >>conftest.$ac_ext <<_ACEOF
40626 /* end confdefs.h.  */
40627 $ac_includes_default
40628 int
40629 main ()
40630 {
40631 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40632 test_array [0] = 0
40633
40634   ;
40635   return 0;
40636 }
40637 _ACEOF
40638 rm -f conftest.$ac_objext
40639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40640   (eval $ac_compile) 2>conftest.er1
40641   ac_status=$?
40642   grep -v '^ *+' conftest.er1 >conftest.err
40643   rm -f conftest.er1
40644   cat conftest.err >&5
40645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646   (exit $ac_status); } &&
40647          { ac_try='test -z "$ac_c_werror_flag"
40648                          || test ! -s conftest.err'
40649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40650   (eval $ac_try) 2>&5
40651   ac_status=$?
40652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653   (exit $ac_status); }; } &&
40654          { ac_try='test -s conftest.$ac_objext'
40655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40656   (eval $ac_try) 2>&5
40657   ac_status=$?
40658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659   (exit $ac_status); }; }; then
40660   ac_hi=$ac_mid; break
40661 else
40662   echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40664
40665 ac_lo=`expr $ac_mid + 1`
40666                     if test $ac_lo -le $ac_mid; then
40667                       ac_lo= ac_hi=
40668                       break
40669                     fi
40670                     ac_mid=`expr 2 '*' $ac_mid + 1`
40671 fi
40672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40673   done
40674 else
40675   echo "$as_me: failed program was:" >&5
40676 sed 's/^/| /' conftest.$ac_ext >&5
40677
40678 cat >conftest.$ac_ext <<_ACEOF
40679 /* confdefs.h.  */
40680 _ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h.  */
40684 $ac_includes_default
40685 int
40686 main ()
40687 {
40688 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
40689 test_array [0] = 0
40690
40691   ;
40692   return 0;
40693 }
40694 _ACEOF
40695 rm -f conftest.$ac_objext
40696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40697   (eval $ac_compile) 2>conftest.er1
40698   ac_status=$?
40699   grep -v '^ *+' conftest.er1 >conftest.err
40700   rm -f conftest.er1
40701   cat conftest.err >&5
40702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703   (exit $ac_status); } &&
40704          { ac_try='test -z "$ac_c_werror_flag"
40705                          || test ! -s conftest.err'
40706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40707   (eval $ac_try) 2>&5
40708   ac_status=$?
40709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40710   (exit $ac_status); }; } &&
40711          { ac_try='test -s conftest.$ac_objext'
40712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40713   (eval $ac_try) 2>&5
40714   ac_status=$?
40715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716   (exit $ac_status); }; }; then
40717   ac_hi=-1 ac_mid=-1
40718   while :; do
40719     cat >conftest.$ac_ext <<_ACEOF
40720 /* confdefs.h.  */
40721 _ACEOF
40722 cat confdefs.h >>conftest.$ac_ext
40723 cat >>conftest.$ac_ext <<_ACEOF
40724 /* end confdefs.h.  */
40725 $ac_includes_default
40726 int
40727 main ()
40728 {
40729 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
40730 test_array [0] = 0
40731
40732   ;
40733   return 0;
40734 }
40735 _ACEOF
40736 rm -f conftest.$ac_objext
40737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40738   (eval $ac_compile) 2>conftest.er1
40739   ac_status=$?
40740   grep -v '^ *+' conftest.er1 >conftest.err
40741   rm -f conftest.er1
40742   cat conftest.err >&5
40743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744   (exit $ac_status); } &&
40745          { ac_try='test -z "$ac_c_werror_flag"
40746                          || test ! -s conftest.err'
40747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748   (eval $ac_try) 2>&5
40749   ac_status=$?
40750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751   (exit $ac_status); }; } &&
40752          { ac_try='test -s conftest.$ac_objext'
40753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40754   (eval $ac_try) 2>&5
40755   ac_status=$?
40756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757   (exit $ac_status); }; }; then
40758   ac_lo=$ac_mid; break
40759 else
40760   echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40762
40763 ac_hi=`expr '(' $ac_mid ')' - 1`
40764                        if test $ac_mid -le $ac_hi; then
40765                          ac_lo= ac_hi=
40766                          break
40767                        fi
40768                        ac_mid=`expr 2 '*' $ac_mid`
40769 fi
40770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40771   done
40772 else
40773   echo "$as_me: failed program was:" >&5
40774 sed 's/^/| /' conftest.$ac_ext >&5
40775
40776 ac_lo= ac_hi=
40777 fi
40778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40779 fi
40780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40781 # Binary search between lo and hi bounds.
40782 while test "x$ac_lo" != "x$ac_hi"; do
40783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40784   cat >conftest.$ac_ext <<_ACEOF
40785 /* confdefs.h.  */
40786 _ACEOF
40787 cat confdefs.h >>conftest.$ac_ext
40788 cat >>conftest.$ac_ext <<_ACEOF
40789 /* end confdefs.h.  */
40790 $ac_includes_default
40791 int
40792 main ()
40793 {
40794 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
40795 test_array [0] = 0
40796
40797   ;
40798   return 0;
40799 }
40800 _ACEOF
40801 rm -f conftest.$ac_objext
40802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40803   (eval $ac_compile) 2>conftest.er1
40804   ac_status=$?
40805   grep -v '^ *+' conftest.er1 >conftest.err
40806   rm -f conftest.er1
40807   cat conftest.err >&5
40808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809   (exit $ac_status); } &&
40810          { ac_try='test -z "$ac_c_werror_flag"
40811                          || test ! -s conftest.err'
40812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40813   (eval $ac_try) 2>&5
40814   ac_status=$?
40815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816   (exit $ac_status); }; } &&
40817          { ac_try='test -s conftest.$ac_objext'
40818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40819   (eval $ac_try) 2>&5
40820   ac_status=$?
40821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40822   (exit $ac_status); }; }; then
40823   ac_hi=$ac_mid
40824 else
40825   echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40827
40828 ac_lo=`expr '(' $ac_mid ')' + 1`
40829 fi
40830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40831 done
40832 case $ac_lo in
40833 ?*) ac_cv_sizeof_long=$ac_lo;;
40834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
40835 See \`config.log' for more details." >&5
40836 echo "$as_me: error: cannot compute sizeof (long), 77
40837 See \`config.log' for more details." >&2;}
40838    { (exit 1); exit 1; }; } ;;
40839 esac
40840 else
40841   if test "$cross_compiling" = yes; then
40842   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40843 See \`config.log' for more details." >&5
40844 echo "$as_me: error: cannot run test program while cross compiling
40845 See \`config.log' for more details." >&2;}
40846    { (exit 1); exit 1; }; }
40847 else
40848   cat >conftest.$ac_ext <<_ACEOF
40849 /* confdefs.h.  */
40850 _ACEOF
40851 cat confdefs.h >>conftest.$ac_ext
40852 cat >>conftest.$ac_ext <<_ACEOF
40853 /* end confdefs.h.  */
40854 $ac_includes_default
40855 long longval () { return (long) (sizeof (long)); }
40856 unsigned long ulongval () { return (long) (sizeof (long)); }
40857 #include <stdio.h>
40858 #include <stdlib.h>
40859 int
40860 main ()
40861 {
40862
40863   FILE *f = fopen ("conftest.val", "w");
40864   if (! f)
40865     exit (1);
40866   if (((long) (sizeof (long))) < 0)
40867     {
40868       long i = longval ();
40869       if (i != ((long) (sizeof (long))))
40870         exit (1);
40871       fprintf (f, "%ld\n", i);
40872     }
40873   else
40874     {
40875       unsigned long i = ulongval ();
40876       if (i != ((long) (sizeof (long))))
40877         exit (1);
40878       fprintf (f, "%lu\n", i);
40879     }
40880   exit (ferror (f) || fclose (f) != 0);
40881
40882   ;
40883   return 0;
40884 }
40885 _ACEOF
40886 rm -f conftest$ac_exeext
40887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40888   (eval $ac_link) 2>&5
40889   ac_status=$?
40890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40893   (eval $ac_try) 2>&5
40894   ac_status=$?
40895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896   (exit $ac_status); }; }; then
40897   ac_cv_sizeof_long=`cat conftest.val`
40898 else
40899   echo "$as_me: program exited with status $ac_status" >&5
40900 echo "$as_me: failed program was:" >&5
40901 sed 's/^/| /' conftest.$ac_ext >&5
40902
40903 ( exit $ac_status )
40904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
40905 See \`config.log' for more details." >&5
40906 echo "$as_me: error: cannot compute sizeof (long), 77
40907 See \`config.log' for more details." >&2;}
40908    { (exit 1); exit 1; }; }
40909 fi
40910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40911 fi
40912 fi
40913 rm -f conftest.val
40914 else
40915   ac_cv_sizeof_long=0
40916 fi
40917 fi
40918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
40919 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
40920 cat >>confdefs.h <<_ACEOF
40921 #define SIZEOF_LONG $ac_cv_sizeof_long
40922 _ACEOF
40923
40924
40925 echo "$as_me:$LINENO: checking for long long" >&5
40926 echo $ECHO_N "checking for long long... $ECHO_C" >&6
40927 if test "${ac_cv_type_long_long+set}" = set; then
40928   echo $ECHO_N "(cached) $ECHO_C" >&6
40929 else
40930   cat >conftest.$ac_ext <<_ACEOF
40931 /* confdefs.h.  */
40932 _ACEOF
40933 cat confdefs.h >>conftest.$ac_ext
40934 cat >>conftest.$ac_ext <<_ACEOF
40935 /* end confdefs.h.  */
40936 $ac_includes_default
40937 int
40938 main ()
40939 {
40940 if ((long long *) 0)
40941   return 0;
40942 if (sizeof (long long))
40943   return 0;
40944   ;
40945   return 0;
40946 }
40947 _ACEOF
40948 rm -f conftest.$ac_objext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40950   (eval $ac_compile) 2>conftest.er1
40951   ac_status=$?
40952   grep -v '^ *+' conftest.er1 >conftest.err
40953   rm -f conftest.er1
40954   cat conftest.err >&5
40955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956   (exit $ac_status); } &&
40957          { ac_try='test -z "$ac_c_werror_flag"
40958                          || test ! -s conftest.err'
40959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960   (eval $ac_try) 2>&5
40961   ac_status=$?
40962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963   (exit $ac_status); }; } &&
40964          { ac_try='test -s conftest.$ac_objext'
40965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966   (eval $ac_try) 2>&5
40967   ac_status=$?
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); }; }; then
40970   ac_cv_type_long_long=yes
40971 else
40972   echo "$as_me: failed program was:" >&5
40973 sed 's/^/| /' conftest.$ac_ext >&5
40974
40975 ac_cv_type_long_long=no
40976 fi
40977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40978 fi
40979 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
40980 echo "${ECHO_T}$ac_cv_type_long_long" >&6
40981
40982 echo "$as_me:$LINENO: checking size of long long" >&5
40983 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
40984 if test "${ac_cv_sizeof_long_long+set}" = set; then
40985   echo $ECHO_N "(cached) $ECHO_C" >&6
40986 else
40987   if test "$ac_cv_type_long_long" = yes; then
40988   # The cast to unsigned long works around a bug in the HP C Compiler
40989   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40990   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40991   # This bug is HP SR number 8606223364.
40992   if test "$cross_compiling" = yes; then
40993   # Depending upon the size, compute the lo and hi bounds.
40994 cat >conftest.$ac_ext <<_ACEOF
40995 /* confdefs.h.  */
40996 _ACEOF
40997 cat confdefs.h >>conftest.$ac_ext
40998 cat >>conftest.$ac_ext <<_ACEOF
40999 /* end confdefs.h.  */
41000 $ac_includes_default
41001 int
41002 main ()
41003 {
41004 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
41005 test_array [0] = 0
41006
41007   ;
41008   return 0;
41009 }
41010 _ACEOF
41011 rm -f conftest.$ac_objext
41012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41013   (eval $ac_compile) 2>conftest.er1
41014   ac_status=$?
41015   grep -v '^ *+' conftest.er1 >conftest.err
41016   rm -f conftest.er1
41017   cat conftest.err >&5
41018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019   (exit $ac_status); } &&
41020          { ac_try='test -z "$ac_c_werror_flag"
41021                          || test ! -s conftest.err'
41022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41023   (eval $ac_try) 2>&5
41024   ac_status=$?
41025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41026   (exit $ac_status); }; } &&
41027          { ac_try='test -s conftest.$ac_objext'
41028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41029   (eval $ac_try) 2>&5
41030   ac_status=$?
41031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032   (exit $ac_status); }; }; then
41033   ac_lo=0 ac_mid=0
41034   while :; do
41035     cat >conftest.$ac_ext <<_ACEOF
41036 /* confdefs.h.  */
41037 _ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h.  */
41041 $ac_includes_default
41042 int
41043 main ()
41044 {
41045 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41046 test_array [0] = 0
41047
41048   ;
41049   return 0;
41050 }
41051 _ACEOF
41052 rm -f conftest.$ac_objext
41053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41054   (eval $ac_compile) 2>conftest.er1
41055   ac_status=$?
41056   grep -v '^ *+' conftest.er1 >conftest.err
41057   rm -f conftest.er1
41058   cat conftest.err >&5
41059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41060   (exit $ac_status); } &&
41061          { ac_try='test -z "$ac_c_werror_flag"
41062                          || test ! -s conftest.err'
41063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064   (eval $ac_try) 2>&5
41065   ac_status=$?
41066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067   (exit $ac_status); }; } &&
41068          { ac_try='test -s conftest.$ac_objext'
41069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070   (eval $ac_try) 2>&5
41071   ac_status=$?
41072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073   (exit $ac_status); }; }; then
41074   ac_hi=$ac_mid; break
41075 else
41076   echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41078
41079 ac_lo=`expr $ac_mid + 1`
41080                     if test $ac_lo -le $ac_mid; then
41081                       ac_lo= ac_hi=
41082                       break
41083                     fi
41084                     ac_mid=`expr 2 '*' $ac_mid + 1`
41085 fi
41086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41087   done
41088 else
41089   echo "$as_me: failed program was:" >&5
41090 sed 's/^/| /' conftest.$ac_ext >&5
41091
41092 cat >conftest.$ac_ext <<_ACEOF
41093 /* confdefs.h.  */
41094 _ACEOF
41095 cat confdefs.h >>conftest.$ac_ext
41096 cat >>conftest.$ac_ext <<_ACEOF
41097 /* end confdefs.h.  */
41098 $ac_includes_default
41099 int
41100 main ()
41101 {
41102 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
41103 test_array [0] = 0
41104
41105   ;
41106   return 0;
41107 }
41108 _ACEOF
41109 rm -f conftest.$ac_objext
41110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41111   (eval $ac_compile) 2>conftest.er1
41112   ac_status=$?
41113   grep -v '^ *+' conftest.er1 >conftest.err
41114   rm -f conftest.er1
41115   cat conftest.err >&5
41116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41117   (exit $ac_status); } &&
41118          { ac_try='test -z "$ac_c_werror_flag"
41119                          || test ! -s conftest.err'
41120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41121   (eval $ac_try) 2>&5
41122   ac_status=$?
41123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124   (exit $ac_status); }; } &&
41125          { ac_try='test -s conftest.$ac_objext'
41126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41127   (eval $ac_try) 2>&5
41128   ac_status=$?
41129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41130   (exit $ac_status); }; }; then
41131   ac_hi=-1 ac_mid=-1
41132   while :; do
41133     cat >conftest.$ac_ext <<_ACEOF
41134 /* confdefs.h.  */
41135 _ACEOF
41136 cat confdefs.h >>conftest.$ac_ext
41137 cat >>conftest.$ac_ext <<_ACEOF
41138 /* end confdefs.h.  */
41139 $ac_includes_default
41140 int
41141 main ()
41142 {
41143 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
41144 test_array [0] = 0
41145
41146   ;
41147   return 0;
41148 }
41149 _ACEOF
41150 rm -f conftest.$ac_objext
41151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41152   (eval $ac_compile) 2>conftest.er1
41153   ac_status=$?
41154   grep -v '^ *+' conftest.er1 >conftest.err
41155   rm -f conftest.er1
41156   cat conftest.err >&5
41157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158   (exit $ac_status); } &&
41159          { ac_try='test -z "$ac_c_werror_flag"
41160                          || test ! -s conftest.err'
41161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41162   (eval $ac_try) 2>&5
41163   ac_status=$?
41164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165   (exit $ac_status); }; } &&
41166          { ac_try='test -s conftest.$ac_objext'
41167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41168   (eval $ac_try) 2>&5
41169   ac_status=$?
41170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41171   (exit $ac_status); }; }; then
41172   ac_lo=$ac_mid; break
41173 else
41174   echo "$as_me: failed program was:" >&5
41175 sed 's/^/| /' conftest.$ac_ext >&5
41176
41177 ac_hi=`expr '(' $ac_mid ')' - 1`
41178                        if test $ac_mid -le $ac_hi; then
41179                          ac_lo= ac_hi=
41180                          break
41181                        fi
41182                        ac_mid=`expr 2 '*' $ac_mid`
41183 fi
41184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41185   done
41186 else
41187   echo "$as_me: failed program was:" >&5
41188 sed 's/^/| /' conftest.$ac_ext >&5
41189
41190 ac_lo= ac_hi=
41191 fi
41192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41193 fi
41194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41195 # Binary search between lo and hi bounds.
41196 while test "x$ac_lo" != "x$ac_hi"; do
41197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41198   cat >conftest.$ac_ext <<_ACEOF
41199 /* confdefs.h.  */
41200 _ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h.  */
41204 $ac_includes_default
41205 int
41206 main ()
41207 {
41208 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
41209 test_array [0] = 0
41210
41211   ;
41212   return 0;
41213 }
41214 _ACEOF
41215 rm -f conftest.$ac_objext
41216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41217   (eval $ac_compile) 2>conftest.er1
41218   ac_status=$?
41219   grep -v '^ *+' conftest.er1 >conftest.err
41220   rm -f conftest.er1
41221   cat conftest.err >&5
41222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223   (exit $ac_status); } &&
41224          { ac_try='test -z "$ac_c_werror_flag"
41225                          || test ! -s conftest.err'
41226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41227   (eval $ac_try) 2>&5
41228   ac_status=$?
41229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230   (exit $ac_status); }; } &&
41231          { ac_try='test -s conftest.$ac_objext'
41232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41233   (eval $ac_try) 2>&5
41234   ac_status=$?
41235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236   (exit $ac_status); }; }; then
41237   ac_hi=$ac_mid
41238 else
41239   echo "$as_me: failed program was:" >&5
41240 sed 's/^/| /' conftest.$ac_ext >&5
41241
41242 ac_lo=`expr '(' $ac_mid ')' + 1`
41243 fi
41244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41245 done
41246 case $ac_lo in
41247 ?*) ac_cv_sizeof_long_long=$ac_lo;;
41248 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41249 See \`config.log' for more details." >&5
41250 echo "$as_me: error: cannot compute sizeof (long long), 77
41251 See \`config.log' for more details." >&2;}
41252    { (exit 1); exit 1; }; } ;;
41253 esac
41254 else
41255   if test "$cross_compiling" = yes; then
41256   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41257 See \`config.log' for more details." >&5
41258 echo "$as_me: error: cannot run test program while cross compiling
41259 See \`config.log' for more details." >&2;}
41260    { (exit 1); exit 1; }; }
41261 else
41262   cat >conftest.$ac_ext <<_ACEOF
41263 /* confdefs.h.  */
41264 _ACEOF
41265 cat confdefs.h >>conftest.$ac_ext
41266 cat >>conftest.$ac_ext <<_ACEOF
41267 /* end confdefs.h.  */
41268 $ac_includes_default
41269 long longval () { return (long) (sizeof (long long)); }
41270 unsigned long ulongval () { return (long) (sizeof (long long)); }
41271 #include <stdio.h>
41272 #include <stdlib.h>
41273 int
41274 main ()
41275 {
41276
41277   FILE *f = fopen ("conftest.val", "w");
41278   if (! f)
41279     exit (1);
41280   if (((long) (sizeof (long long))) < 0)
41281     {
41282       long i = longval ();
41283       if (i != ((long) (sizeof (long long))))
41284         exit (1);
41285       fprintf (f, "%ld\n", i);
41286     }
41287   else
41288     {
41289       unsigned long i = ulongval ();
41290       if (i != ((long) (sizeof (long long))))
41291         exit (1);
41292       fprintf (f, "%lu\n", i);
41293     }
41294   exit (ferror (f) || fclose (f) != 0);
41295
41296   ;
41297   return 0;
41298 }
41299 _ACEOF
41300 rm -f conftest$ac_exeext
41301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41302   (eval $ac_link) 2>&5
41303   ac_status=$?
41304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41307   (eval $ac_try) 2>&5
41308   ac_status=$?
41309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310   (exit $ac_status); }; }; then
41311   ac_cv_sizeof_long_long=`cat conftest.val`
41312 else
41313   echo "$as_me: program exited with status $ac_status" >&5
41314 echo "$as_me: failed program was:" >&5
41315 sed 's/^/| /' conftest.$ac_ext >&5
41316
41317 ( exit $ac_status )
41318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
41319 See \`config.log' for more details." >&5
41320 echo "$as_me: error: cannot compute sizeof (long long), 77
41321 See \`config.log' for more details." >&2;}
41322    { (exit 1); exit 1; }; }
41323 fi
41324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41325 fi
41326 fi
41327 rm -f conftest.val
41328 else
41329   ac_cv_sizeof_long_long=0
41330 fi
41331 fi
41332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
41333 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
41334 cat >>confdefs.h <<_ACEOF
41335 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
41336 _ACEOF
41337
41338
41339 echo "$as_me:$LINENO: checking for wchar_t" >&5
41340 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41341 if test "${ac_cv_type_wchar_t+set}" = set; then
41342   echo $ECHO_N "(cached) $ECHO_C" >&6
41343 else
41344   cat >conftest.$ac_ext <<_ACEOF
41345 /* confdefs.h.  */
41346 _ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h.  */
41350 $ac_includes_default
41351 int
41352 main ()
41353 {
41354 if ((wchar_t *) 0)
41355   return 0;
41356 if (sizeof (wchar_t))
41357   return 0;
41358   ;
41359   return 0;
41360 }
41361 _ACEOF
41362 rm -f conftest.$ac_objext
41363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41364   (eval $ac_compile) 2>conftest.er1
41365   ac_status=$?
41366   grep -v '^ *+' conftest.er1 >conftest.err
41367   rm -f conftest.er1
41368   cat conftest.err >&5
41369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41370   (exit $ac_status); } &&
41371          { ac_try='test -z "$ac_c_werror_flag"
41372                          || test ! -s conftest.err'
41373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374   (eval $ac_try) 2>&5
41375   ac_status=$?
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); }; } &&
41378          { ac_try='test -s conftest.$ac_objext'
41379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41380   (eval $ac_try) 2>&5
41381   ac_status=$?
41382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383   (exit $ac_status); }; }; then
41384   ac_cv_type_wchar_t=yes
41385 else
41386   echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41388
41389 ac_cv_type_wchar_t=no
41390 fi
41391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41392 fi
41393 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41394 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41395
41396 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41397 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41398 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41399   echo $ECHO_N "(cached) $ECHO_C" >&6
41400 else
41401   if test "$ac_cv_type_wchar_t" = yes; then
41402   # The cast to unsigned long works around a bug in the HP C Compiler
41403   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41404   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41405   # This bug is HP SR number 8606223364.
41406   if test "$cross_compiling" = yes; then
41407   # Depending upon the size, compute the lo and hi bounds.
41408 cat >conftest.$ac_ext <<_ACEOF
41409 /* confdefs.h.  */
41410 _ACEOF
41411 cat confdefs.h >>conftest.$ac_ext
41412 cat >>conftest.$ac_ext <<_ACEOF
41413 /* end confdefs.h.  */
41414 $ac_includes_default
41415 int
41416 main ()
41417 {
41418 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41419 test_array [0] = 0
41420
41421   ;
41422   return 0;
41423 }
41424 _ACEOF
41425 rm -f conftest.$ac_objext
41426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41427   (eval $ac_compile) 2>conftest.er1
41428   ac_status=$?
41429   grep -v '^ *+' conftest.er1 >conftest.err
41430   rm -f conftest.er1
41431   cat conftest.err >&5
41432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433   (exit $ac_status); } &&
41434          { ac_try='test -z "$ac_c_werror_flag"
41435                          || test ! -s conftest.err'
41436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437   (eval $ac_try) 2>&5
41438   ac_status=$?
41439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440   (exit $ac_status); }; } &&
41441          { ac_try='test -s conftest.$ac_objext'
41442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443   (eval $ac_try) 2>&5
41444   ac_status=$?
41445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446   (exit $ac_status); }; }; then
41447   ac_lo=0 ac_mid=0
41448   while :; do
41449     cat >conftest.$ac_ext <<_ACEOF
41450 /* confdefs.h.  */
41451 _ACEOF
41452 cat confdefs.h >>conftest.$ac_ext
41453 cat >>conftest.$ac_ext <<_ACEOF
41454 /* end confdefs.h.  */
41455 $ac_includes_default
41456 int
41457 main ()
41458 {
41459 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41460 test_array [0] = 0
41461
41462   ;
41463   return 0;
41464 }
41465 _ACEOF
41466 rm -f conftest.$ac_objext
41467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41468   (eval $ac_compile) 2>conftest.er1
41469   ac_status=$?
41470   grep -v '^ *+' conftest.er1 >conftest.err
41471   rm -f conftest.er1
41472   cat conftest.err >&5
41473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474   (exit $ac_status); } &&
41475          { ac_try='test -z "$ac_c_werror_flag"
41476                          || test ! -s conftest.err'
41477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41478   (eval $ac_try) 2>&5
41479   ac_status=$?
41480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481   (exit $ac_status); }; } &&
41482          { ac_try='test -s conftest.$ac_objext'
41483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484   (eval $ac_try) 2>&5
41485   ac_status=$?
41486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487   (exit $ac_status); }; }; then
41488   ac_hi=$ac_mid; break
41489 else
41490   echo "$as_me: failed program was:" >&5
41491 sed 's/^/| /' conftest.$ac_ext >&5
41492
41493 ac_lo=`expr $ac_mid + 1`
41494                     if test $ac_lo -le $ac_mid; then
41495                       ac_lo= ac_hi=
41496                       break
41497                     fi
41498                     ac_mid=`expr 2 '*' $ac_mid + 1`
41499 fi
41500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41501   done
41502 else
41503   echo "$as_me: failed program was:" >&5
41504 sed 's/^/| /' conftest.$ac_ext >&5
41505
41506 cat >conftest.$ac_ext <<_ACEOF
41507 /* confdefs.h.  */
41508 _ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h.  */
41512 $ac_includes_default
41513 int
41514 main ()
41515 {
41516 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41517 test_array [0] = 0
41518
41519   ;
41520   return 0;
41521 }
41522 _ACEOF
41523 rm -f conftest.$ac_objext
41524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41525   (eval $ac_compile) 2>conftest.er1
41526   ac_status=$?
41527   grep -v '^ *+' conftest.er1 >conftest.err
41528   rm -f conftest.er1
41529   cat conftest.err >&5
41530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531   (exit $ac_status); } &&
41532          { ac_try='test -z "$ac_c_werror_flag"
41533                          || test ! -s conftest.err'
41534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535   (eval $ac_try) 2>&5
41536   ac_status=$?
41537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538   (exit $ac_status); }; } &&
41539          { ac_try='test -s conftest.$ac_objext'
41540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541   (eval $ac_try) 2>&5
41542   ac_status=$?
41543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544   (exit $ac_status); }; }; then
41545   ac_hi=-1 ac_mid=-1
41546   while :; do
41547     cat >conftest.$ac_ext <<_ACEOF
41548 /* confdefs.h.  */
41549 _ACEOF
41550 cat confdefs.h >>conftest.$ac_ext
41551 cat >>conftest.$ac_ext <<_ACEOF
41552 /* end confdefs.h.  */
41553 $ac_includes_default
41554 int
41555 main ()
41556 {
41557 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41558 test_array [0] = 0
41559
41560   ;
41561   return 0;
41562 }
41563 _ACEOF
41564 rm -f conftest.$ac_objext
41565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41566   (eval $ac_compile) 2>conftest.er1
41567   ac_status=$?
41568   grep -v '^ *+' conftest.er1 >conftest.err
41569   rm -f conftest.er1
41570   cat conftest.err >&5
41571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41572   (exit $ac_status); } &&
41573          { ac_try='test -z "$ac_c_werror_flag"
41574                          || test ! -s conftest.err'
41575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576   (eval $ac_try) 2>&5
41577   ac_status=$?
41578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579   (exit $ac_status); }; } &&
41580          { ac_try='test -s conftest.$ac_objext'
41581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41582   (eval $ac_try) 2>&5
41583   ac_status=$?
41584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585   (exit $ac_status); }; }; then
41586   ac_lo=$ac_mid; break
41587 else
41588   echo "$as_me: failed program was:" >&5
41589 sed 's/^/| /' conftest.$ac_ext >&5
41590
41591 ac_hi=`expr '(' $ac_mid ')' - 1`
41592                        if test $ac_mid -le $ac_hi; then
41593                          ac_lo= ac_hi=
41594                          break
41595                        fi
41596                        ac_mid=`expr 2 '*' $ac_mid`
41597 fi
41598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41599   done
41600 else
41601   echo "$as_me: failed program was:" >&5
41602 sed 's/^/| /' conftest.$ac_ext >&5
41603
41604 ac_lo= ac_hi=
41605 fi
41606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41607 fi
41608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41609 # Binary search between lo and hi bounds.
41610 while test "x$ac_lo" != "x$ac_hi"; do
41611   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41612   cat >conftest.$ac_ext <<_ACEOF
41613 /* confdefs.h.  */
41614 _ACEOF
41615 cat confdefs.h >>conftest.$ac_ext
41616 cat >>conftest.$ac_ext <<_ACEOF
41617 /* end confdefs.h.  */
41618 $ac_includes_default
41619 int
41620 main ()
41621 {
41622 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41623 test_array [0] = 0
41624
41625   ;
41626   return 0;
41627 }
41628 _ACEOF
41629 rm -f conftest.$ac_objext
41630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41631   (eval $ac_compile) 2>conftest.er1
41632   ac_status=$?
41633   grep -v '^ *+' conftest.er1 >conftest.err
41634   rm -f conftest.er1
41635   cat conftest.err >&5
41636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637   (exit $ac_status); } &&
41638          { ac_try='test -z "$ac_c_werror_flag"
41639                          || test ! -s conftest.err'
41640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641   (eval $ac_try) 2>&5
41642   ac_status=$?
41643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644   (exit $ac_status); }; } &&
41645          { ac_try='test -s conftest.$ac_objext'
41646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41647   (eval $ac_try) 2>&5
41648   ac_status=$?
41649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650   (exit $ac_status); }; }; then
41651   ac_hi=$ac_mid
41652 else
41653   echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41655
41656 ac_lo=`expr '(' $ac_mid ')' + 1`
41657 fi
41658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41659 done
41660 case $ac_lo in
41661 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41663 See \`config.log' for more details." >&5
41664 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41665 See \`config.log' for more details." >&2;}
41666    { (exit 1); exit 1; }; } ;;
41667 esac
41668 else
41669   if test "$cross_compiling" = yes; then
41670   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41671 See \`config.log' for more details." >&5
41672 echo "$as_me: error: cannot run test program while cross compiling
41673 See \`config.log' for more details." >&2;}
41674    { (exit 1); exit 1; }; }
41675 else
41676   cat >conftest.$ac_ext <<_ACEOF
41677 /* confdefs.h.  */
41678 _ACEOF
41679 cat confdefs.h >>conftest.$ac_ext
41680 cat >>conftest.$ac_ext <<_ACEOF
41681 /* end confdefs.h.  */
41682 $ac_includes_default
41683 long longval () { return (long) (sizeof (wchar_t)); }
41684 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
41685 #include <stdio.h>
41686 #include <stdlib.h>
41687 int
41688 main ()
41689 {
41690
41691   FILE *f = fopen ("conftest.val", "w");
41692   if (! f)
41693     exit (1);
41694   if (((long) (sizeof (wchar_t))) < 0)
41695     {
41696       long i = longval ();
41697       if (i != ((long) (sizeof (wchar_t))))
41698         exit (1);
41699       fprintf (f, "%ld\n", i);
41700     }
41701   else
41702     {
41703       unsigned long i = ulongval ();
41704       if (i != ((long) (sizeof (wchar_t))))
41705         exit (1);
41706       fprintf (f, "%lu\n", i);
41707     }
41708   exit (ferror (f) || fclose (f) != 0);
41709
41710   ;
41711   return 0;
41712 }
41713 _ACEOF
41714 rm -f conftest$ac_exeext
41715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41716   (eval $ac_link) 2>&5
41717   ac_status=$?
41718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41721   (eval $ac_try) 2>&5
41722   ac_status=$?
41723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41724   (exit $ac_status); }; }; then
41725   ac_cv_sizeof_wchar_t=`cat conftest.val`
41726 else
41727   echo "$as_me: program exited with status $ac_status" >&5
41728 echo "$as_me: failed program was:" >&5
41729 sed 's/^/| /' conftest.$ac_ext >&5
41730
41731 ( exit $ac_status )
41732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41733 See \`config.log' for more details." >&5
41734 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41735 See \`config.log' for more details." >&2;}
41736    { (exit 1); exit 1; }; }
41737 fi
41738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41739 fi
41740 fi
41741 rm -f conftest.val
41742 else
41743   ac_cv_sizeof_wchar_t=0
41744 fi
41745 fi
41746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41747 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
41748 cat >>confdefs.h <<_ACEOF
41749 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41750 _ACEOF
41751
41752
41753
41754 if test "$ac_cv_sizeof_int" -lt 4 ; then
41755         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41756 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41757
41758
41759 cat >>confdefs.h <<\_ACEOF
41760 #define LBER_INT_T long
41761 _ACEOF
41762
41763 else
41764
41765 cat >>confdefs.h <<\_ACEOF
41766 #define LBER_INT_T int
41767 _ACEOF
41768
41769 fi
41770
41771
41772 cat >>confdefs.h <<\_ACEOF
41773 #define LBER_LEN_T long
41774 _ACEOF
41775
41776
41777 cat >>confdefs.h <<\_ACEOF
41778 #define LBER_SOCKET_T int
41779 _ACEOF
41780
41781
41782 cat >>confdefs.h <<\_ACEOF
41783 #define LBER_TAG_T long
41784 _ACEOF
41785
41786
41787 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
41788         if test $ac_cv_sizeof_long_long -gt 4 ; then
41789                 ol_with_mp=longlong
41790
41791 cat >>confdefs.h <<\_ACEOF
41792 #define USE_MP_LONG_LONG 1
41793 _ACEOF
41794
41795         elif test $ol_with_mp = longlong ; then
41796                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
41797 echo "$as_me: error: long long unusable for multiple precision" >&2;}
41798    { (exit 1); exit 1; }; }
41799         fi
41800 fi
41801 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
41802         if test $ac_cv_sizeof_long -gt 4 ; then
41803                 ol_with_mp=long
41804
41805 cat >>confdefs.h <<\_ACEOF
41806 #define USE_MP_LONG 1
41807 _ACEOF
41808
41809         elif test $ol_with_mp = long ; then
41810                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
41811 echo "$as_me: error: long unusable for multiple precision" >&2;}
41812    { (exit 1); exit 1; }; }
41813         fi
41814 fi
41815 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
41816
41817 for ac_header in openssl/bn.h
41818 do
41819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41821   echo "$as_me:$LINENO: checking for $ac_header" >&5
41822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41824   echo $ECHO_N "(cached) $ECHO_C" >&6
41825 fi
41826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41828 else
41829   # Is the header compilable?
41830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41832 cat >conftest.$ac_ext <<_ACEOF
41833 /* confdefs.h.  */
41834 _ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h.  */
41838 $ac_includes_default
41839 #include <$ac_header>
41840 _ACEOF
41841 rm -f conftest.$ac_objext
41842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41843   (eval $ac_compile) 2>conftest.er1
41844   ac_status=$?
41845   grep -v '^ *+' conftest.er1 >conftest.err
41846   rm -f conftest.er1
41847   cat conftest.err >&5
41848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849   (exit $ac_status); } &&
41850          { ac_try='test -z "$ac_c_werror_flag"
41851                          || test ! -s conftest.err'
41852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41853   (eval $ac_try) 2>&5
41854   ac_status=$?
41855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856   (exit $ac_status); }; } &&
41857          { ac_try='test -s conftest.$ac_objext'
41858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41859   (eval $ac_try) 2>&5
41860   ac_status=$?
41861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41862   (exit $ac_status); }; }; then
41863   ac_header_compiler=yes
41864 else
41865   echo "$as_me: failed program was:" >&5
41866 sed 's/^/| /' conftest.$ac_ext >&5
41867
41868 ac_header_compiler=no
41869 fi
41870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41872 echo "${ECHO_T}$ac_header_compiler" >&6
41873
41874 # Is the header present?
41875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41877 cat >conftest.$ac_ext <<_ACEOF
41878 /* confdefs.h.  */
41879 _ACEOF
41880 cat confdefs.h >>conftest.$ac_ext
41881 cat >>conftest.$ac_ext <<_ACEOF
41882 /* end confdefs.h.  */
41883 #include <$ac_header>
41884 _ACEOF
41885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41887   ac_status=$?
41888   grep -v '^ *+' conftest.er1 >conftest.err
41889   rm -f conftest.er1
41890   cat conftest.err >&5
41891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41892   (exit $ac_status); } >/dev/null; then
41893   if test -s conftest.err; then
41894     ac_cpp_err=$ac_c_preproc_warn_flag
41895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41896   else
41897     ac_cpp_err=
41898   fi
41899 else
41900   ac_cpp_err=yes
41901 fi
41902 if test -z "$ac_cpp_err"; then
41903   ac_header_preproc=yes
41904 else
41905   echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41907
41908   ac_header_preproc=no
41909 fi
41910 rm -f conftest.err conftest.$ac_ext
41911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41912 echo "${ECHO_T}$ac_header_preproc" >&6
41913
41914 # So?  What about this header?
41915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41916   yes:no: )
41917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41921     ac_header_preproc=yes
41922     ;;
41923   no:yes:* )
41924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41936     (
41937       cat <<\_ASBOX
41938 ## --------------------------------------------- ##
41939 ## Report this to <http://www.openldap.org/its/> ##
41940 ## --------------------------------------------- ##
41941 _ASBOX
41942     ) |
41943       sed "s/^/$as_me: WARNING:     /" >&2
41944     ;;
41945 esac
41946 echo "$as_me:$LINENO: checking for $ac_header" >&5
41947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41949   echo $ECHO_N "(cached) $ECHO_C" >&6
41950 else
41951   eval "$as_ac_Header=\$ac_header_preproc"
41952 fi
41953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41955
41956 fi
41957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41958   cat >>confdefs.h <<_ACEOF
41959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41960 _ACEOF
41961
41962 fi
41963
41964 done
41965
41966
41967 for ac_header in openssl/crypto.h
41968 do
41969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41971   echo "$as_me:$LINENO: checking for $ac_header" >&5
41972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41974   echo $ECHO_N "(cached) $ECHO_C" >&6
41975 fi
41976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41978 else
41979   # Is the header compilable?
41980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41982 cat >conftest.$ac_ext <<_ACEOF
41983 /* confdefs.h.  */
41984 _ACEOF
41985 cat confdefs.h >>conftest.$ac_ext
41986 cat >>conftest.$ac_ext <<_ACEOF
41987 /* end confdefs.h.  */
41988 $ac_includes_default
41989 #include <$ac_header>
41990 _ACEOF
41991 rm -f conftest.$ac_objext
41992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41993   (eval $ac_compile) 2>conftest.er1
41994   ac_status=$?
41995   grep -v '^ *+' conftest.er1 >conftest.err
41996   rm -f conftest.er1
41997   cat conftest.err >&5
41998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999   (exit $ac_status); } &&
42000          { ac_try='test -z "$ac_c_werror_flag"
42001                          || test ! -s conftest.err'
42002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42003   (eval $ac_try) 2>&5
42004   ac_status=$?
42005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42006   (exit $ac_status); }; } &&
42007          { ac_try='test -s conftest.$ac_objext'
42008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42009   (eval $ac_try) 2>&5
42010   ac_status=$?
42011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42012   (exit $ac_status); }; }; then
42013   ac_header_compiler=yes
42014 else
42015   echo "$as_me: failed program was:" >&5
42016 sed 's/^/| /' conftest.$ac_ext >&5
42017
42018 ac_header_compiler=no
42019 fi
42020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42022 echo "${ECHO_T}$ac_header_compiler" >&6
42023
42024 # Is the header present?
42025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42027 cat >conftest.$ac_ext <<_ACEOF
42028 /* confdefs.h.  */
42029 _ACEOF
42030 cat confdefs.h >>conftest.$ac_ext
42031 cat >>conftest.$ac_ext <<_ACEOF
42032 /* end confdefs.h.  */
42033 #include <$ac_header>
42034 _ACEOF
42035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42037   ac_status=$?
42038   grep -v '^ *+' conftest.er1 >conftest.err
42039   rm -f conftest.er1
42040   cat conftest.err >&5
42041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42042   (exit $ac_status); } >/dev/null; then
42043   if test -s conftest.err; then
42044     ac_cpp_err=$ac_c_preproc_warn_flag
42045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42046   else
42047     ac_cpp_err=
42048   fi
42049 else
42050   ac_cpp_err=yes
42051 fi
42052 if test -z "$ac_cpp_err"; then
42053   ac_header_preproc=yes
42054 else
42055   echo "$as_me: failed program was:" >&5
42056 sed 's/^/| /' conftest.$ac_ext >&5
42057
42058   ac_header_preproc=no
42059 fi
42060 rm -f conftest.err conftest.$ac_ext
42061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42062 echo "${ECHO_T}$ac_header_preproc" >&6
42063
42064 # So?  What about this header?
42065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42066   yes:no: )
42067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42071     ac_header_preproc=yes
42072     ;;
42073   no:yes:* )
42074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42086     (
42087       cat <<\_ASBOX
42088 ## --------------------------------------------- ##
42089 ## Report this to <http://www.openldap.org/its/> ##
42090 ## --------------------------------------------- ##
42091 _ASBOX
42092     ) |
42093       sed "s/^/$as_me: WARNING:     /" >&2
42094     ;;
42095 esac
42096 echo "$as_me:$LINENO: checking for $ac_header" >&5
42097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42099   echo $ECHO_N "(cached) $ECHO_C" >&6
42100 else
42101   eval "$as_ac_Header=\$ac_header_preproc"
42102 fi
42103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42105
42106 fi
42107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42108   cat >>confdefs.h <<_ACEOF
42109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42110 _ACEOF
42111
42112 fi
42113
42114 done
42115
42116         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
42117                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
42118                 test "$ol_with_tls" = "found" ; then
42119                 ol_with_mp=bignum
42120
42121 cat >>confdefs.h <<\_ACEOF
42122 #define USE_MP_BIGNUM 1
42123 _ACEOF
42124
42125         elif test $ol_with_mp = bignum ; then
42126                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
42127 echo "$as_me: error: bignum not available" >&2;}
42128    { (exit 1); exit 1; }; }
42129         fi
42130 fi
42131 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
42132
42133 for ac_header in gmp.h
42134 do
42135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42137   echo "$as_me:$LINENO: checking for $ac_header" >&5
42138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42140   echo $ECHO_N "(cached) $ECHO_C" >&6
42141 fi
42142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42144 else
42145   # Is the header compilable?
42146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
42147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42148 cat >conftest.$ac_ext <<_ACEOF
42149 /* confdefs.h.  */
42150 _ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h.  */
42154 $ac_includes_default
42155 #include <$ac_header>
42156 _ACEOF
42157 rm -f conftest.$ac_objext
42158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42159   (eval $ac_compile) 2>conftest.er1
42160   ac_status=$?
42161   grep -v '^ *+' conftest.er1 >conftest.err
42162   rm -f conftest.er1
42163   cat conftest.err >&5
42164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165   (exit $ac_status); } &&
42166          { ac_try='test -z "$ac_c_werror_flag"
42167                          || test ! -s conftest.err'
42168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42169   (eval $ac_try) 2>&5
42170   ac_status=$?
42171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172   (exit $ac_status); }; } &&
42173          { ac_try='test -s conftest.$ac_objext'
42174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42175   (eval $ac_try) 2>&5
42176   ac_status=$?
42177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42178   (exit $ac_status); }; }; then
42179   ac_header_compiler=yes
42180 else
42181   echo "$as_me: failed program was:" >&5
42182 sed 's/^/| /' conftest.$ac_ext >&5
42183
42184 ac_header_compiler=no
42185 fi
42186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42188 echo "${ECHO_T}$ac_header_compiler" >&6
42189
42190 # Is the header present?
42191 echo "$as_me:$LINENO: checking $ac_header presence" >&5
42192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42193 cat >conftest.$ac_ext <<_ACEOF
42194 /* confdefs.h.  */
42195 _ACEOF
42196 cat confdefs.h >>conftest.$ac_ext
42197 cat >>conftest.$ac_ext <<_ACEOF
42198 /* end confdefs.h.  */
42199 #include <$ac_header>
42200 _ACEOF
42201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42203   ac_status=$?
42204   grep -v '^ *+' conftest.er1 >conftest.err
42205   rm -f conftest.er1
42206   cat conftest.err >&5
42207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208   (exit $ac_status); } >/dev/null; then
42209   if test -s conftest.err; then
42210     ac_cpp_err=$ac_c_preproc_warn_flag
42211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42212   else
42213     ac_cpp_err=
42214   fi
42215 else
42216   ac_cpp_err=yes
42217 fi
42218 if test -z "$ac_cpp_err"; then
42219   ac_header_preproc=yes
42220 else
42221   echo "$as_me: failed program was:" >&5
42222 sed 's/^/| /' conftest.$ac_ext >&5
42223
42224   ac_header_preproc=no
42225 fi
42226 rm -f conftest.err conftest.$ac_ext
42227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42228 echo "${ECHO_T}$ac_header_preproc" >&6
42229
42230 # So?  What about this header?
42231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42232   yes:no: )
42233     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42237     ac_header_preproc=yes
42238     ;;
42239   no:yes:* )
42240     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42242     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42243 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42244     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42246     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42247 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42250     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42252     (
42253       cat <<\_ASBOX
42254 ## --------------------------------------------- ##
42255 ## Report this to <http://www.openldap.org/its/> ##
42256 ## --------------------------------------------- ##
42257 _ASBOX
42258     ) |
42259       sed "s/^/$as_me: WARNING:     /" >&2
42260     ;;
42261 esac
42262 echo "$as_me:$LINENO: checking for $ac_header" >&5
42263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42265   echo $ECHO_N "(cached) $ECHO_C" >&6
42266 else
42267   eval "$as_ac_Header=\$ac_header_preproc"
42268 fi
42269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42271
42272 fi
42273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42274   cat >>confdefs.h <<_ACEOF
42275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42276 _ACEOF
42277
42278 fi
42279
42280 done
42281
42282
42283 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
42284 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
42285 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
42286   echo $ECHO_N "(cached) $ECHO_C" >&6
42287 else
42288   ac_check_lib_save_LIBS=$LIBS
42289 LIBS="-lgmp  $LIBS"
42290 cat >conftest.$ac_ext <<_ACEOF
42291 /* confdefs.h.  */
42292 _ACEOF
42293 cat confdefs.h >>conftest.$ac_ext
42294 cat >>conftest.$ac_ext <<_ACEOF
42295 /* end confdefs.h.  */
42296
42297 /* Override any gcc2 internal prototype to avoid an error.  */
42298 #ifdef __cplusplus
42299 extern "C"
42300 #endif
42301 /* We use char because int might match the return type of a gcc2
42302    builtin and then its argument prototype would still apply.  */
42303 char __gmpz_add_ui ();
42304 int
42305 main ()
42306 {
42307 __gmpz_add_ui ();
42308   ;
42309   return 0;
42310 }
42311 _ACEOF
42312 rm -f conftest.$ac_objext conftest$ac_exeext
42313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42314   (eval $ac_link) 2>conftest.er1
42315   ac_status=$?
42316   grep -v '^ *+' conftest.er1 >conftest.err
42317   rm -f conftest.er1
42318   cat conftest.err >&5
42319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42320   (exit $ac_status); } &&
42321          { ac_try='test -z "$ac_c_werror_flag"
42322                          || test ! -s conftest.err'
42323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42324   (eval $ac_try) 2>&5
42325   ac_status=$?
42326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42327   (exit $ac_status); }; } &&
42328          { ac_try='test -s conftest$ac_exeext'
42329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42330   (eval $ac_try) 2>&5
42331   ac_status=$?
42332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42333   (exit $ac_status); }; }; then
42334   ac_cv_lib_gmp___gmpz_add_ui=yes
42335 else
42336   echo "$as_me: failed program was:" >&5
42337 sed 's/^/| /' conftest.$ac_ext >&5
42338
42339 ac_cv_lib_gmp___gmpz_add_ui=no
42340 fi
42341 rm -f conftest.err conftest.$ac_objext \
42342       conftest$ac_exeext conftest.$ac_ext
42343 LIBS=$ac_check_lib_save_LIBS
42344 fi
42345 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
42346 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
42347 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
42348   cat >>confdefs.h <<_ACEOF
42349 #define HAVE_LIBGMP 1
42350 _ACEOF
42351
42352   LIBS="-lgmp $LIBS"
42353
42354 fi
42355
42356         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp = yes ; then
42357
42358 cat >>confdefs.h <<\_ACEOF
42359 #define USE_MP_GMP 1
42360 _ACEOF
42361
42362                 ol_with_mp=gmp
42363         elif test $ol_with_mp = gmp ; then
42364                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
42365 echo "$as_me: error: gmp not available" >&2;}
42366    { (exit 1); exit 1; }; }
42367         fi
42368 fi
42369 if test $ol_with_mp = auto ; then
42370         ol_with_mp=no
42371 fi
42372
42373 echo "$as_me:$LINENO: checking for working memcmp" >&5
42374 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42375 if test "${ac_cv_func_memcmp_working+set}" = set; then
42376   echo $ECHO_N "(cached) $ECHO_C" >&6
42377 else
42378   if test "$cross_compiling" = yes; then
42379   ac_cv_func_memcmp_working=no
42380 else
42381   cat >conftest.$ac_ext <<_ACEOF
42382 /* confdefs.h.  */
42383 _ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h.  */
42387 $ac_includes_default
42388 int
42389 main ()
42390 {
42391
42392   /* Some versions of memcmp are not 8-bit clean.  */
42393   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42394   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42395     exit (1);
42396
42397   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42398      or more and with at least one buffer not starting on a 4-byte boundary.
42399      William Lewis provided this test program.   */
42400   {
42401     char foo[21];
42402     char bar[21];
42403     int i;
42404     for (i = 0; i < 4; i++)
42405       {
42406         char *a = foo + i;
42407         char *b = bar + i;
42408         strcpy (a, "--------01111111");
42409         strcpy (b, "--------10000000");
42410         if (memcmp (a, b, 16) >= 0)
42411           exit (1);
42412       }
42413     exit (0);
42414   }
42415
42416   ;
42417   return 0;
42418 }
42419 _ACEOF
42420 rm -f conftest$ac_exeext
42421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42422   (eval $ac_link) 2>&5
42423   ac_status=$?
42424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42427   (eval $ac_try) 2>&5
42428   ac_status=$?
42429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430   (exit $ac_status); }; }; then
42431   ac_cv_func_memcmp_working=yes
42432 else
42433   echo "$as_me: program exited with status $ac_status" >&5
42434 echo "$as_me: failed program was:" >&5
42435 sed 's/^/| /' conftest.$ac_ext >&5
42436
42437 ( exit $ac_status )
42438 ac_cv_func_memcmp_working=no
42439 fi
42440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42441 fi
42442 fi
42443 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42444 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42445 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42446     "memcmp.$ac_objext"   | \
42447   *" memcmp.$ac_objext"   | \
42448     "memcmp.$ac_objext "* | \
42449   *" memcmp.$ac_objext "* ) ;;
42450   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42451 esac
42452
42453
42454
42455 if test $ac_cv_func_memcmp_working = no ; then
42456
42457 cat >>confdefs.h <<\_ACEOF
42458 #define NEED_MEMCMP_REPLACEMENT 1
42459 _ACEOF
42460
42461 fi
42462
42463
42464 for ac_func in strftime
42465 do
42466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42467 echo "$as_me:$LINENO: checking for $ac_func" >&5
42468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42469 if eval "test \"\${$as_ac_var+set}\" = set"; then
42470   echo $ECHO_N "(cached) $ECHO_C" >&6
42471 else
42472   cat >conftest.$ac_ext <<_ACEOF
42473 /* confdefs.h.  */
42474 _ACEOF
42475 cat confdefs.h >>conftest.$ac_ext
42476 cat >>conftest.$ac_ext <<_ACEOF
42477 /* end confdefs.h.  */
42478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42480 #define $ac_func innocuous_$ac_func
42481
42482 /* System header to define __stub macros and hopefully few prototypes,
42483     which can conflict with char $ac_func (); below.
42484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42485     <limits.h> exists even on freestanding compilers.  */
42486
42487 #ifdef __STDC__
42488 # include <limits.h>
42489 #else
42490 # include <assert.h>
42491 #endif
42492
42493 #undef $ac_func
42494
42495 /* Override any gcc2 internal prototype to avoid an error.  */
42496 #ifdef __cplusplus
42497 extern "C"
42498 {
42499 #endif
42500 /* We use char because int might match the return type of a gcc2
42501    builtin and then its argument prototype would still apply.  */
42502 char $ac_func ();
42503 /* The GNU C library defines this for functions which it implements
42504     to always fail with ENOSYS.  Some functions are actually named
42505     something starting with __ and the normal name is an alias.  */
42506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42507 choke me
42508 #else
42509 char (*f) () = $ac_func;
42510 #endif
42511 #ifdef __cplusplus
42512 }
42513 #endif
42514
42515 int
42516 main ()
42517 {
42518 return f != $ac_func;
42519   ;
42520   return 0;
42521 }
42522 _ACEOF
42523 rm -f conftest.$ac_objext conftest$ac_exeext
42524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42525   (eval $ac_link) 2>conftest.er1
42526   ac_status=$?
42527   grep -v '^ *+' conftest.er1 >conftest.err
42528   rm -f conftest.er1
42529   cat conftest.err >&5
42530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531   (exit $ac_status); } &&
42532          { ac_try='test -z "$ac_c_werror_flag"
42533                          || test ! -s conftest.err'
42534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42535   (eval $ac_try) 2>&5
42536   ac_status=$?
42537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42538   (exit $ac_status); }; } &&
42539          { ac_try='test -s conftest$ac_exeext'
42540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42541   (eval $ac_try) 2>&5
42542   ac_status=$?
42543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42544   (exit $ac_status); }; }; then
42545   eval "$as_ac_var=yes"
42546 else
42547   echo "$as_me: failed program was:" >&5
42548 sed 's/^/| /' conftest.$ac_ext >&5
42549
42550 eval "$as_ac_var=no"
42551 fi
42552 rm -f conftest.err conftest.$ac_objext \
42553       conftest$ac_exeext conftest.$ac_ext
42554 fi
42555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42557 if test `eval echo '${'$as_ac_var'}'` = yes; then
42558   cat >>confdefs.h <<_ACEOF
42559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42560 _ACEOF
42561
42562 else
42563   # strftime is in -lintl on SCO UNIX.
42564 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42565 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42566 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42567   echo $ECHO_N "(cached) $ECHO_C" >&6
42568 else
42569   ac_check_lib_save_LIBS=$LIBS
42570 LIBS="-lintl  $LIBS"
42571 cat >conftest.$ac_ext <<_ACEOF
42572 /* confdefs.h.  */
42573 _ACEOF
42574 cat confdefs.h >>conftest.$ac_ext
42575 cat >>conftest.$ac_ext <<_ACEOF
42576 /* end confdefs.h.  */
42577
42578 /* Override any gcc2 internal prototype to avoid an error.  */
42579 #ifdef __cplusplus
42580 extern "C"
42581 #endif
42582 /* We use char because int might match the return type of a gcc2
42583    builtin and then its argument prototype would still apply.  */
42584 char strftime ();
42585 int
42586 main ()
42587 {
42588 strftime ();
42589   ;
42590   return 0;
42591 }
42592 _ACEOF
42593 rm -f conftest.$ac_objext conftest$ac_exeext
42594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42595   (eval $ac_link) 2>conftest.er1
42596   ac_status=$?
42597   grep -v '^ *+' conftest.er1 >conftest.err
42598   rm -f conftest.er1
42599   cat conftest.err >&5
42600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42601   (exit $ac_status); } &&
42602          { ac_try='test -z "$ac_c_werror_flag"
42603                          || test ! -s conftest.err'
42604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42605   (eval $ac_try) 2>&5
42606   ac_status=$?
42607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608   (exit $ac_status); }; } &&
42609          { ac_try='test -s conftest$ac_exeext'
42610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42611   (eval $ac_try) 2>&5
42612   ac_status=$?
42613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42614   (exit $ac_status); }; }; then
42615   ac_cv_lib_intl_strftime=yes
42616 else
42617   echo "$as_me: failed program was:" >&5
42618 sed 's/^/| /' conftest.$ac_ext >&5
42619
42620 ac_cv_lib_intl_strftime=no
42621 fi
42622 rm -f conftest.err conftest.$ac_objext \
42623       conftest$ac_exeext conftest.$ac_ext
42624 LIBS=$ac_check_lib_save_LIBS
42625 fi
42626 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42627 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42628 if test $ac_cv_lib_intl_strftime = yes; then
42629   cat >>confdefs.h <<\_ACEOF
42630 #define HAVE_STRFTIME 1
42631 _ACEOF
42632
42633 LIBS="-lintl $LIBS"
42634 fi
42635
42636 fi
42637 done
42638
42639
42640 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42641 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42642 if test "${ol_cv_func_inet_aton+set}" = set; then
42643   echo $ECHO_N "(cached) $ECHO_C" >&6
42644 else
42645   cat >conftest.$ac_ext <<_ACEOF
42646 /* confdefs.h.  */
42647 _ACEOF
42648 cat confdefs.h >>conftest.$ac_ext
42649 cat >>conftest.$ac_ext <<_ACEOF
42650 /* end confdefs.h.  */
42651
42652 #ifdef HAVE_SYS_TYPES_H
42653 #       include <sys/types.h>
42654 #endif
42655 #ifdef HAVE_SYS_SOCKET_H
42656 #       include <sys/socket.h>
42657 #       ifdef HAVE_SYS_SELECT_H
42658 #               include <sys/select.h>
42659 #       endif
42660 #       include <netinet/in.h>
42661 #       ifdef HAVE_ARPA_INET_H
42662 #               include <arpa/inet.h>
42663 #       endif
42664 #endif
42665
42666 int
42667 main ()
42668 {
42669 struct in_addr in;
42670 int rc = inet_aton( "255.255.255.255", &in );
42671   ;
42672   return 0;
42673 }
42674 _ACEOF
42675 rm -f conftest.$ac_objext conftest$ac_exeext
42676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42677   (eval $ac_link) 2>conftest.er1
42678   ac_status=$?
42679   grep -v '^ *+' conftest.er1 >conftest.err
42680   rm -f conftest.er1
42681   cat conftest.err >&5
42682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42683   (exit $ac_status); } &&
42684          { ac_try='test -z "$ac_c_werror_flag"
42685                          || test ! -s conftest.err'
42686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42687   (eval $ac_try) 2>&5
42688   ac_status=$?
42689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42690   (exit $ac_status); }; } &&
42691          { ac_try='test -s conftest$ac_exeext'
42692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42693   (eval $ac_try) 2>&5
42694   ac_status=$?
42695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42696   (exit $ac_status); }; }; then
42697   ol_cv_func_inet_aton=yes
42698 else
42699   echo "$as_me: failed program was:" >&5
42700 sed 's/^/| /' conftest.$ac_ext >&5
42701
42702 ol_cv_func_inet_aton=no
42703 fi
42704 rm -f conftest.err conftest.$ac_objext \
42705       conftest$ac_exeext conftest.$ac_ext
42706 fi
42707 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42708 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42709   if test $ol_cv_func_inet_aton != no; then
42710
42711 cat >>confdefs.h <<\_ACEOF
42712 #define HAVE_INET_ATON 1
42713 _ACEOF
42714
42715   fi
42716
42717
42718 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42719 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42720 if test "${ac_cv_func__spawnlp+set}" = set; then
42721   echo $ECHO_N "(cached) $ECHO_C" >&6
42722 else
42723   cat >conftest.$ac_ext <<_ACEOF
42724 /* confdefs.h.  */
42725 _ACEOF
42726 cat confdefs.h >>conftest.$ac_ext
42727 cat >>conftest.$ac_ext <<_ACEOF
42728 /* end confdefs.h.  */
42729 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42731 #define _spawnlp innocuous__spawnlp
42732
42733 /* System header to define __stub macros and hopefully few prototypes,
42734     which can conflict with char _spawnlp (); below.
42735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42736     <limits.h> exists even on freestanding compilers.  */
42737
42738 #ifdef __STDC__
42739 # include <limits.h>
42740 #else
42741 # include <assert.h>
42742 #endif
42743
42744 #undef _spawnlp
42745
42746 /* Override any gcc2 internal prototype to avoid an error.  */
42747 #ifdef __cplusplus
42748 extern "C"
42749 {
42750 #endif
42751 /* We use char because int might match the return type of a gcc2
42752    builtin and then its argument prototype would still apply.  */
42753 char _spawnlp ();
42754 /* The GNU C library defines this for functions which it implements
42755     to always fail with ENOSYS.  Some functions are actually named
42756     something starting with __ and the normal name is an alias.  */
42757 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42758 choke me
42759 #else
42760 char (*f) () = _spawnlp;
42761 #endif
42762 #ifdef __cplusplus
42763 }
42764 #endif
42765
42766 int
42767 main ()
42768 {
42769 return f != _spawnlp;
42770   ;
42771   return 0;
42772 }
42773 _ACEOF
42774 rm -f conftest.$ac_objext conftest$ac_exeext
42775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42776   (eval $ac_link) 2>conftest.er1
42777   ac_status=$?
42778   grep -v '^ *+' conftest.er1 >conftest.err
42779   rm -f conftest.er1
42780   cat conftest.err >&5
42781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782   (exit $ac_status); } &&
42783          { ac_try='test -z "$ac_c_werror_flag"
42784                          || test ! -s conftest.err'
42785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42786   (eval $ac_try) 2>&5
42787   ac_status=$?
42788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789   (exit $ac_status); }; } &&
42790          { ac_try='test -s conftest$ac_exeext'
42791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42792   (eval $ac_try) 2>&5
42793   ac_status=$?
42794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42795   (exit $ac_status); }; }; then
42796   ac_cv_func__spawnlp=yes
42797 else
42798   echo "$as_me: failed program was:" >&5
42799 sed 's/^/| /' conftest.$ac_ext >&5
42800
42801 ac_cv_func__spawnlp=no
42802 fi
42803 rm -f conftest.err conftest.$ac_objext \
42804       conftest$ac_exeext conftest.$ac_ext
42805 fi
42806 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42807 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42808 if test $ac_cv_func__spawnlp = yes; then
42809
42810 cat >>confdefs.h <<\_ACEOF
42811 #define HAVE_SPAWNLP 1
42812 _ACEOF
42813
42814 fi
42815
42816
42817 echo "$as_me:$LINENO: checking for _snprintf" >&5
42818 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42819 if test "${ac_cv_func__snprintf+set}" = set; then
42820   echo $ECHO_N "(cached) $ECHO_C" >&6
42821 else
42822   cat >conftest.$ac_ext <<_ACEOF
42823 /* confdefs.h.  */
42824 _ACEOF
42825 cat confdefs.h >>conftest.$ac_ext
42826 cat >>conftest.$ac_ext <<_ACEOF
42827 /* end confdefs.h.  */
42828 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42830 #define _snprintf innocuous__snprintf
42831
42832 /* System header to define __stub macros and hopefully few prototypes,
42833     which can conflict with char _snprintf (); below.
42834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42835     <limits.h> exists even on freestanding compilers.  */
42836
42837 #ifdef __STDC__
42838 # include <limits.h>
42839 #else
42840 # include <assert.h>
42841 #endif
42842
42843 #undef _snprintf
42844
42845 /* Override any gcc2 internal prototype to avoid an error.  */
42846 #ifdef __cplusplus
42847 extern "C"
42848 {
42849 #endif
42850 /* We use char because int might match the return type of a gcc2
42851    builtin and then its argument prototype would still apply.  */
42852 char _snprintf ();
42853 /* The GNU C library defines this for functions which it implements
42854     to always fail with ENOSYS.  Some functions are actually named
42855     something starting with __ and the normal name is an alias.  */
42856 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42857 choke me
42858 #else
42859 char (*f) () = _snprintf;
42860 #endif
42861 #ifdef __cplusplus
42862 }
42863 #endif
42864
42865 int
42866 main ()
42867 {
42868 return f != _snprintf;
42869   ;
42870   return 0;
42871 }
42872 _ACEOF
42873 rm -f conftest.$ac_objext conftest$ac_exeext
42874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42875   (eval $ac_link) 2>conftest.er1
42876   ac_status=$?
42877   grep -v '^ *+' conftest.er1 >conftest.err
42878   rm -f conftest.er1
42879   cat conftest.err >&5
42880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881   (exit $ac_status); } &&
42882          { ac_try='test -z "$ac_c_werror_flag"
42883                          || test ! -s conftest.err'
42884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42885   (eval $ac_try) 2>&5
42886   ac_status=$?
42887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42888   (exit $ac_status); }; } &&
42889          { ac_try='test -s conftest$ac_exeext'
42890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42891   (eval $ac_try) 2>&5
42892   ac_status=$?
42893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894   (exit $ac_status); }; }; then
42895   ac_cv_func__snprintf=yes
42896 else
42897   echo "$as_me: failed program was:" >&5
42898 sed 's/^/| /' conftest.$ac_ext >&5
42899
42900 ac_cv_func__snprintf=no
42901 fi
42902 rm -f conftest.err conftest.$ac_objext \
42903       conftest$ac_exeext conftest.$ac_ext
42904 fi
42905 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42906 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42907 if test $ac_cv_func__snprintf = yes; then
42908   ac_cv_func_snprintf=yes
42909
42910 cat >>confdefs.h <<\_ACEOF
42911 #define snprintf _snprintf
42912 _ACEOF
42913
42914
42915 fi
42916
42917
42918 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42919 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42920 if test "${ac_cv_func__vsnprintf+set}" = set; then
42921   echo $ECHO_N "(cached) $ECHO_C" >&6
42922 else
42923   cat >conftest.$ac_ext <<_ACEOF
42924 /* confdefs.h.  */
42925 _ACEOF
42926 cat confdefs.h >>conftest.$ac_ext
42927 cat >>conftest.$ac_ext <<_ACEOF
42928 /* end confdefs.h.  */
42929 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42931 #define _vsnprintf innocuous__vsnprintf
42932
42933 /* System header to define __stub macros and hopefully few prototypes,
42934     which can conflict with char _vsnprintf (); below.
42935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42936     <limits.h> exists even on freestanding compilers.  */
42937
42938 #ifdef __STDC__
42939 # include <limits.h>
42940 #else
42941 # include <assert.h>
42942 #endif
42943
42944 #undef _vsnprintf
42945
42946 /* Override any gcc2 internal prototype to avoid an error.  */
42947 #ifdef __cplusplus
42948 extern "C"
42949 {
42950 #endif
42951 /* We use char because int might match the return type of a gcc2
42952    builtin and then its argument prototype would still apply.  */
42953 char _vsnprintf ();
42954 /* The GNU C library defines this for functions which it implements
42955     to always fail with ENOSYS.  Some functions are actually named
42956     something starting with __ and the normal name is an alias.  */
42957 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42958 choke me
42959 #else
42960 char (*f) () = _vsnprintf;
42961 #endif
42962 #ifdef __cplusplus
42963 }
42964 #endif
42965
42966 int
42967 main ()
42968 {
42969 return f != _vsnprintf;
42970   ;
42971   return 0;
42972 }
42973 _ACEOF
42974 rm -f conftest.$ac_objext conftest$ac_exeext
42975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42976   (eval $ac_link) 2>conftest.er1
42977   ac_status=$?
42978   grep -v '^ *+' conftest.er1 >conftest.err
42979   rm -f conftest.er1
42980   cat conftest.err >&5
42981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42982   (exit $ac_status); } &&
42983          { ac_try='test -z "$ac_c_werror_flag"
42984                          || test ! -s conftest.err'
42985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42986   (eval $ac_try) 2>&5
42987   ac_status=$?
42988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42989   (exit $ac_status); }; } &&
42990          { ac_try='test -s conftest$ac_exeext'
42991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42992   (eval $ac_try) 2>&5
42993   ac_status=$?
42994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42995   (exit $ac_status); }; }; then
42996   ac_cv_func__vsnprintf=yes
42997 else
42998   echo "$as_me: failed program was:" >&5
42999 sed 's/^/| /' conftest.$ac_ext >&5
43000
43001 ac_cv_func__vsnprintf=no
43002 fi
43003 rm -f conftest.err conftest.$ac_objext \
43004       conftest$ac_exeext conftest.$ac_ext
43005 fi
43006 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
43007 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
43008 if test $ac_cv_func__vsnprintf = yes; then
43009   ac_cv_func_vsnprintf=yes
43010
43011 cat >>confdefs.h <<\_ACEOF
43012 #define vsnprintf _vsnprintf
43013 _ACEOF
43014
43015
43016 fi
43017
43018
43019
43020 for ac_func in vprintf
43021 do
43022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43023 echo "$as_me:$LINENO: checking for $ac_func" >&5
43024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43025 if eval "test \"\${$as_ac_var+set}\" = set"; then
43026   echo $ECHO_N "(cached) $ECHO_C" >&6
43027 else
43028   cat >conftest.$ac_ext <<_ACEOF
43029 /* confdefs.h.  */
43030 _ACEOF
43031 cat confdefs.h >>conftest.$ac_ext
43032 cat >>conftest.$ac_ext <<_ACEOF
43033 /* end confdefs.h.  */
43034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43036 #define $ac_func innocuous_$ac_func
43037
43038 /* System header to define __stub macros and hopefully few prototypes,
43039     which can conflict with char $ac_func (); below.
43040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43041     <limits.h> exists even on freestanding compilers.  */
43042
43043 #ifdef __STDC__
43044 # include <limits.h>
43045 #else
43046 # include <assert.h>
43047 #endif
43048
43049 #undef $ac_func
43050
43051 /* Override any gcc2 internal prototype to avoid an error.  */
43052 #ifdef __cplusplus
43053 extern "C"
43054 {
43055 #endif
43056 /* We use char because int might match the return type of a gcc2
43057    builtin and then its argument prototype would still apply.  */
43058 char $ac_func ();
43059 /* The GNU C library defines this for functions which it implements
43060     to always fail with ENOSYS.  Some functions are actually named
43061     something starting with __ and the normal name is an alias.  */
43062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43063 choke me
43064 #else
43065 char (*f) () = $ac_func;
43066 #endif
43067 #ifdef __cplusplus
43068 }
43069 #endif
43070
43071 int
43072 main ()
43073 {
43074 return f != $ac_func;
43075   ;
43076   return 0;
43077 }
43078 _ACEOF
43079 rm -f conftest.$ac_objext conftest$ac_exeext
43080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43081   (eval $ac_link) 2>conftest.er1
43082   ac_status=$?
43083   grep -v '^ *+' conftest.er1 >conftest.err
43084   rm -f conftest.er1
43085   cat conftest.err >&5
43086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087   (exit $ac_status); } &&
43088          { ac_try='test -z "$ac_c_werror_flag"
43089                          || test ! -s conftest.err'
43090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43091   (eval $ac_try) 2>&5
43092   ac_status=$?
43093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094   (exit $ac_status); }; } &&
43095          { ac_try='test -s conftest$ac_exeext'
43096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43097   (eval $ac_try) 2>&5
43098   ac_status=$?
43099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100   (exit $ac_status); }; }; then
43101   eval "$as_ac_var=yes"
43102 else
43103   echo "$as_me: failed program was:" >&5
43104 sed 's/^/| /' conftest.$ac_ext >&5
43105
43106 eval "$as_ac_var=no"
43107 fi
43108 rm -f conftest.err conftest.$ac_objext \
43109       conftest$ac_exeext conftest.$ac_ext
43110 fi
43111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43113 if test `eval echo '${'$as_ac_var'}'` = yes; then
43114   cat >>confdefs.h <<_ACEOF
43115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43116 _ACEOF
43117
43118 echo "$as_me:$LINENO: checking for _doprnt" >&5
43119 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43120 if test "${ac_cv_func__doprnt+set}" = set; then
43121   echo $ECHO_N "(cached) $ECHO_C" >&6
43122 else
43123   cat >conftest.$ac_ext <<_ACEOF
43124 /* confdefs.h.  */
43125 _ACEOF
43126 cat confdefs.h >>conftest.$ac_ext
43127 cat >>conftest.$ac_ext <<_ACEOF
43128 /* end confdefs.h.  */
43129 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43131 #define _doprnt innocuous__doprnt
43132
43133 /* System header to define __stub macros and hopefully few prototypes,
43134     which can conflict with char _doprnt (); below.
43135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43136     <limits.h> exists even on freestanding compilers.  */
43137
43138 #ifdef __STDC__
43139 # include <limits.h>
43140 #else
43141 # include <assert.h>
43142 #endif
43143
43144 #undef _doprnt
43145
43146 /* Override any gcc2 internal prototype to avoid an error.  */
43147 #ifdef __cplusplus
43148 extern "C"
43149 {
43150 #endif
43151 /* We use char because int might match the return type of a gcc2
43152    builtin and then its argument prototype would still apply.  */
43153 char _doprnt ();
43154 /* The GNU C library defines this for functions which it implements
43155     to always fail with ENOSYS.  Some functions are actually named
43156     something starting with __ and the normal name is an alias.  */
43157 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43158 choke me
43159 #else
43160 char (*f) () = _doprnt;
43161 #endif
43162 #ifdef __cplusplus
43163 }
43164 #endif
43165
43166 int
43167 main ()
43168 {
43169 return f != _doprnt;
43170   ;
43171   return 0;
43172 }
43173 _ACEOF
43174 rm -f conftest.$ac_objext conftest$ac_exeext
43175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43176   (eval $ac_link) 2>conftest.er1
43177   ac_status=$?
43178   grep -v '^ *+' conftest.er1 >conftest.err
43179   rm -f conftest.er1
43180   cat conftest.err >&5
43181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182   (exit $ac_status); } &&
43183          { ac_try='test -z "$ac_c_werror_flag"
43184                          || test ! -s conftest.err'
43185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186   (eval $ac_try) 2>&5
43187   ac_status=$?
43188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189   (exit $ac_status); }; } &&
43190          { ac_try='test -s conftest$ac_exeext'
43191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43192   (eval $ac_try) 2>&5
43193   ac_status=$?
43194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43195   (exit $ac_status); }; }; then
43196   ac_cv_func__doprnt=yes
43197 else
43198   echo "$as_me: failed program was:" >&5
43199 sed 's/^/| /' conftest.$ac_ext >&5
43200
43201 ac_cv_func__doprnt=no
43202 fi
43203 rm -f conftest.err conftest.$ac_objext \
43204       conftest$ac_exeext conftest.$ac_ext
43205 fi
43206 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43207 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43208 if test $ac_cv_func__doprnt = yes; then
43209
43210 cat >>confdefs.h <<\_ACEOF
43211 #define HAVE_DOPRNT 1
43212 _ACEOF
43213
43214 fi
43215
43216 fi
43217 done
43218
43219
43220
43221 if test $ac_cv_func_vprintf = yes ; then
43222
43223
43224 for ac_func in snprintf vsnprintf
43225 do
43226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43227 echo "$as_me:$LINENO: checking for $ac_func" >&5
43228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43229 if eval "test \"\${$as_ac_var+set}\" = set"; then
43230   echo $ECHO_N "(cached) $ECHO_C" >&6
43231 else
43232   cat >conftest.$ac_ext <<_ACEOF
43233 /* confdefs.h.  */
43234 _ACEOF
43235 cat confdefs.h >>conftest.$ac_ext
43236 cat >>conftest.$ac_ext <<_ACEOF
43237 /* end confdefs.h.  */
43238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43240 #define $ac_func innocuous_$ac_func
43241
43242 /* System header to define __stub macros and hopefully few prototypes,
43243     which can conflict with char $ac_func (); below.
43244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43245     <limits.h> exists even on freestanding compilers.  */
43246
43247 #ifdef __STDC__
43248 # include <limits.h>
43249 #else
43250 # include <assert.h>
43251 #endif
43252
43253 #undef $ac_func
43254
43255 /* Override any gcc2 internal prototype to avoid an error.  */
43256 #ifdef __cplusplus
43257 extern "C"
43258 {
43259 #endif
43260 /* We use char because int might match the return type of a gcc2
43261    builtin and then its argument prototype would still apply.  */
43262 char $ac_func ();
43263 /* The GNU C library defines this for functions which it implements
43264     to always fail with ENOSYS.  Some functions are actually named
43265     something starting with __ and the normal name is an alias.  */
43266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43267 choke me
43268 #else
43269 char (*f) () = $ac_func;
43270 #endif
43271 #ifdef __cplusplus
43272 }
43273 #endif
43274
43275 int
43276 main ()
43277 {
43278 return f != $ac_func;
43279   ;
43280   return 0;
43281 }
43282 _ACEOF
43283 rm -f conftest.$ac_objext conftest$ac_exeext
43284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43285   (eval $ac_link) 2>conftest.er1
43286   ac_status=$?
43287   grep -v '^ *+' conftest.er1 >conftest.err
43288   rm -f conftest.er1
43289   cat conftest.err >&5
43290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291   (exit $ac_status); } &&
43292          { ac_try='test -z "$ac_c_werror_flag"
43293                          || test ! -s conftest.err'
43294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43295   (eval $ac_try) 2>&5
43296   ac_status=$?
43297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298   (exit $ac_status); }; } &&
43299          { ac_try='test -s conftest$ac_exeext'
43300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301   (eval $ac_try) 2>&5
43302   ac_status=$?
43303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); }; }; then
43305   eval "$as_ac_var=yes"
43306 else
43307   echo "$as_me: failed program was:" >&5
43308 sed 's/^/| /' conftest.$ac_ext >&5
43309
43310 eval "$as_ac_var=no"
43311 fi
43312 rm -f conftest.err conftest.$ac_objext \
43313       conftest$ac_exeext conftest.$ac_ext
43314 fi
43315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43317 if test `eval echo '${'$as_ac_var'}'` = yes; then
43318   cat >>confdefs.h <<_ACEOF
43319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43320 _ACEOF
43321
43322 fi
43323 done
43324
43325 fi
43326
43327
43328
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355
43356
43357
43358
43359
43360
43361
43362
43363
43364
43365
43366
43367
43368
43369
43370
43371
43372
43373
43374
43375
43376
43377
43378
43379
43380
43381 for ac_func in \
43382         bcopy                   \
43383         closesocket             \
43384         chroot                  \
43385         endgrent                \
43386         endpwent                \
43387         fcntl                   \
43388         flock                   \
43389         fstat                   \
43390         getdtablesize   \
43391         getgrgid                \
43392         gethostname             \
43393         getpass                 \
43394         getpassphrase   \
43395         getpwuid                \
43396         getpwnam                \
43397         getspnam                \
43398         gettimeofday    \
43399         initgroups              \
43400         inet_ntoa_b             \
43401         lockf                   \
43402         memcpy                  \
43403         memmove                 \
43404         memrchr                 \
43405         mkstemp                 \
43406         mktemp                  \
43407         pipe                    \
43408         read                    \
43409         recv                    \
43410         recvfrom                \
43411         setpwfile               \
43412         setgid                  \
43413         setegid                 \
43414         setsid                  \
43415         setuid                  \
43416         seteuid                 \
43417         signal                  \
43418         strdup                  \
43419         strpbrk                 \
43420         strrchr                 \
43421         strsep                  \
43422         strstr                  \
43423         strtol                  \
43424         strtoul                 \
43425         strtoq                  \
43426         strtouq                 \
43427         strtoll                 \
43428         strspn                  \
43429         sysconf                 \
43430         waitpid                 \
43431         wait4                   \
43432         write                   \
43433         send                    \
43434         sendmsg                 \
43435         sendto                  \
43436
43437 do
43438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43439 echo "$as_me:$LINENO: checking for $ac_func" >&5
43440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43441 if eval "test \"\${$as_ac_var+set}\" = set"; then
43442   echo $ECHO_N "(cached) $ECHO_C" >&6
43443 else
43444   cat >conftest.$ac_ext <<_ACEOF
43445 /* confdefs.h.  */
43446 _ACEOF
43447 cat confdefs.h >>conftest.$ac_ext
43448 cat >>conftest.$ac_ext <<_ACEOF
43449 /* end confdefs.h.  */
43450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43452 #define $ac_func innocuous_$ac_func
43453
43454 /* System header to define __stub macros and hopefully few prototypes,
43455     which can conflict with char $ac_func (); below.
43456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43457     <limits.h> exists even on freestanding compilers.  */
43458
43459 #ifdef __STDC__
43460 # include <limits.h>
43461 #else
43462 # include <assert.h>
43463 #endif
43464
43465 #undef $ac_func
43466
43467 /* Override any gcc2 internal prototype to avoid an error.  */
43468 #ifdef __cplusplus
43469 extern "C"
43470 {
43471 #endif
43472 /* We use char because int might match the return type of a gcc2
43473    builtin and then its argument prototype would still apply.  */
43474 char $ac_func ();
43475 /* The GNU C library defines this for functions which it implements
43476     to always fail with ENOSYS.  Some functions are actually named
43477     something starting with __ and the normal name is an alias.  */
43478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43479 choke me
43480 #else
43481 char (*f) () = $ac_func;
43482 #endif
43483 #ifdef __cplusplus
43484 }
43485 #endif
43486
43487 int
43488 main ()
43489 {
43490 return f != $ac_func;
43491   ;
43492   return 0;
43493 }
43494 _ACEOF
43495 rm -f conftest.$ac_objext conftest$ac_exeext
43496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43497   (eval $ac_link) 2>conftest.er1
43498   ac_status=$?
43499   grep -v '^ *+' conftest.er1 >conftest.err
43500   rm -f conftest.er1
43501   cat conftest.err >&5
43502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43503   (exit $ac_status); } &&
43504          { ac_try='test -z "$ac_c_werror_flag"
43505                          || test ! -s conftest.err'
43506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43507   (eval $ac_try) 2>&5
43508   ac_status=$?
43509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43510   (exit $ac_status); }; } &&
43511          { ac_try='test -s conftest$ac_exeext'
43512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43513   (eval $ac_try) 2>&5
43514   ac_status=$?
43515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43516   (exit $ac_status); }; }; then
43517   eval "$as_ac_var=yes"
43518 else
43519   echo "$as_me: failed program was:" >&5
43520 sed 's/^/| /' conftest.$ac_ext >&5
43521
43522 eval "$as_ac_var=no"
43523 fi
43524 rm -f conftest.err conftest.$ac_objext \
43525       conftest$ac_exeext conftest.$ac_ext
43526 fi
43527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43529 if test `eval echo '${'$as_ac_var'}'` = yes; then
43530   cat >>confdefs.h <<_ACEOF
43531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43532 _ACEOF
43533
43534 fi
43535 done
43536
43537
43538
43539
43540 for ac_func in getopt getpeereid
43541 do
43542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43543 echo "$as_me:$LINENO: checking for $ac_func" >&5
43544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43545 if eval "test \"\${$as_ac_var+set}\" = set"; then
43546   echo $ECHO_N "(cached) $ECHO_C" >&6
43547 else
43548   cat >conftest.$ac_ext <<_ACEOF
43549 /* confdefs.h.  */
43550 _ACEOF
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h.  */
43554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43556 #define $ac_func innocuous_$ac_func
43557
43558 /* System header to define __stub macros and hopefully few prototypes,
43559     which can conflict with char $ac_func (); below.
43560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43561     <limits.h> exists even on freestanding compilers.  */
43562
43563 #ifdef __STDC__
43564 # include <limits.h>
43565 #else
43566 # include <assert.h>
43567 #endif
43568
43569 #undef $ac_func
43570
43571 /* Override any gcc2 internal prototype to avoid an error.  */
43572 #ifdef __cplusplus
43573 extern "C"
43574 {
43575 #endif
43576 /* We use char because int might match the return type of a gcc2
43577    builtin and then its argument prototype would still apply.  */
43578 char $ac_func ();
43579 /* The GNU C library defines this for functions which it implements
43580     to always fail with ENOSYS.  Some functions are actually named
43581     something starting with __ and the normal name is an alias.  */
43582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43583 choke me
43584 #else
43585 char (*f) () = $ac_func;
43586 #endif
43587 #ifdef __cplusplus
43588 }
43589 #endif
43590
43591 int
43592 main ()
43593 {
43594 return f != $ac_func;
43595   ;
43596   return 0;
43597 }
43598 _ACEOF
43599 rm -f conftest.$ac_objext conftest$ac_exeext
43600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43601   (eval $ac_link) 2>conftest.er1
43602   ac_status=$?
43603   grep -v '^ *+' conftest.er1 >conftest.err
43604   rm -f conftest.er1
43605   cat conftest.err >&5
43606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607   (exit $ac_status); } &&
43608          { ac_try='test -z "$ac_c_werror_flag"
43609                          || test ! -s conftest.err'
43610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611   (eval $ac_try) 2>&5
43612   ac_status=$?
43613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614   (exit $ac_status); }; } &&
43615          { ac_try='test -s conftest$ac_exeext'
43616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43617   (eval $ac_try) 2>&5
43618   ac_status=$?
43619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620   (exit $ac_status); }; }; then
43621   eval "$as_ac_var=yes"
43622 else
43623   echo "$as_me: failed program was:" >&5
43624 sed 's/^/| /' conftest.$ac_ext >&5
43625
43626 eval "$as_ac_var=no"
43627 fi
43628 rm -f conftest.err conftest.$ac_objext \
43629       conftest$ac_exeext conftest.$ac_ext
43630 fi
43631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43633 if test `eval echo '${'$as_ac_var'}'` = yes; then
43634   cat >>confdefs.h <<_ACEOF
43635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43636 _ACEOF
43637
43638 else
43639   case $LIBOBJS in
43640     "$ac_func.$ac_objext"   | \
43641   *" $ac_func.$ac_objext"   | \
43642     "$ac_func.$ac_objext "* | \
43643   *" $ac_func.$ac_objext "* ) ;;
43644   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43645 esac
43646
43647 fi
43648 done
43649
43650
43651
43652 if test "$ac_cv_func_getopt" != yes; then
43653         LIBSRCS="$LIBSRCS getopt.c"
43654 fi
43655 if test "$ac_cv_func_getpeereid" != yes; then
43656         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43657 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43658 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43659   echo $ECHO_N "(cached) $ECHO_C" >&6
43660 else
43661   cat >conftest.$ac_ext <<_ACEOF
43662 /* confdefs.h.  */
43663 _ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h.  */
43667 $ac_includes_default
43668 #ifdef HAVE_SYS_SOCKET_H
43669 #include <sys/socket.h>
43670 #endif
43671
43672 int
43673 main ()
43674 {
43675 static struct msghdr ac_aggr;
43676 if (ac_aggr.msg_accrightslen)
43677 return 0;
43678   ;
43679   return 0;
43680 }
43681 _ACEOF
43682 rm -f conftest.$ac_objext
43683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43684   (eval $ac_compile) 2>conftest.er1
43685   ac_status=$?
43686   grep -v '^ *+' conftest.er1 >conftest.err
43687   rm -f conftest.er1
43688   cat conftest.err >&5
43689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43690   (exit $ac_status); } &&
43691          { ac_try='test -z "$ac_c_werror_flag"
43692                          || test ! -s conftest.err'
43693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43694   (eval $ac_try) 2>&5
43695   ac_status=$?
43696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697   (exit $ac_status); }; } &&
43698          { ac_try='test -s conftest.$ac_objext'
43699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43700   (eval $ac_try) 2>&5
43701   ac_status=$?
43702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43703   (exit $ac_status); }; }; then
43704   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43705 else
43706   echo "$as_me: failed program was:" >&5
43707 sed 's/^/| /' conftest.$ac_ext >&5
43708
43709 cat >conftest.$ac_ext <<_ACEOF
43710 /* confdefs.h.  */
43711 _ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h.  */
43715 $ac_includes_default
43716 #ifdef HAVE_SYS_SOCKET_H
43717 #include <sys/socket.h>
43718 #endif
43719
43720 int
43721 main ()
43722 {
43723 static struct msghdr ac_aggr;
43724 if (sizeof ac_aggr.msg_accrightslen)
43725 return 0;
43726   ;
43727   return 0;
43728 }
43729 _ACEOF
43730 rm -f conftest.$ac_objext
43731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43732   (eval $ac_compile) 2>conftest.er1
43733   ac_status=$?
43734   grep -v '^ *+' conftest.er1 >conftest.err
43735   rm -f conftest.er1
43736   cat conftest.err >&5
43737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738   (exit $ac_status); } &&
43739          { ac_try='test -z "$ac_c_werror_flag"
43740                          || test ! -s conftest.err'
43741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43742   (eval $ac_try) 2>&5
43743   ac_status=$?
43744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745   (exit $ac_status); }; } &&
43746          { ac_try='test -s conftest.$ac_objext'
43747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43748   (eval $ac_try) 2>&5
43749   ac_status=$?
43750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43751   (exit $ac_status); }; }; then
43752   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43753 else
43754   echo "$as_me: failed program was:" >&5
43755 sed 's/^/| /' conftest.$ac_ext >&5
43756
43757 ac_cv_member_struct_msghdr_msg_accrightslen=no
43758 fi
43759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43760 fi
43761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43762 fi
43763 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43764 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43765 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43766
43767 cat >>confdefs.h <<_ACEOF
43768 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43769 _ACEOF
43770
43771
43772 fi
43773
43774         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43775                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43776 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43777 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43778   echo $ECHO_N "(cached) $ECHO_C" >&6
43779 else
43780   cat >conftest.$ac_ext <<_ACEOF
43781 /* confdefs.h.  */
43782 _ACEOF
43783 cat confdefs.h >>conftest.$ac_ext
43784 cat >>conftest.$ac_ext <<_ACEOF
43785 /* end confdefs.h.  */
43786 $ac_includes_default
43787 #ifdef HAVE_SYS_SOCKET_H
43788 #include <sys/socket.h>
43789 #endif
43790
43791 int
43792 main ()
43793 {
43794 static struct msghdr ac_aggr;
43795 if (ac_aggr.msg_control)
43796 return 0;
43797   ;
43798   return 0;
43799 }
43800 _ACEOF
43801 rm -f conftest.$ac_objext
43802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43803   (eval $ac_compile) 2>conftest.er1
43804   ac_status=$?
43805   grep -v '^ *+' conftest.er1 >conftest.err
43806   rm -f conftest.er1
43807   cat conftest.err >&5
43808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43809   (exit $ac_status); } &&
43810          { ac_try='test -z "$ac_c_werror_flag"
43811                          || test ! -s conftest.err'
43812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43813   (eval $ac_try) 2>&5
43814   ac_status=$?
43815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43816   (exit $ac_status); }; } &&
43817          { ac_try='test -s conftest.$ac_objext'
43818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43819   (eval $ac_try) 2>&5
43820   ac_status=$?
43821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822   (exit $ac_status); }; }; then
43823   ac_cv_member_struct_msghdr_msg_control=yes
43824 else
43825   echo "$as_me: failed program was:" >&5
43826 sed 's/^/| /' conftest.$ac_ext >&5
43827
43828 cat >conftest.$ac_ext <<_ACEOF
43829 /* confdefs.h.  */
43830 _ACEOF
43831 cat confdefs.h >>conftest.$ac_ext
43832 cat >>conftest.$ac_ext <<_ACEOF
43833 /* end confdefs.h.  */
43834 $ac_includes_default
43835 #ifdef HAVE_SYS_SOCKET_H
43836 #include <sys/socket.h>
43837 #endif
43838
43839 int
43840 main ()
43841 {
43842 static struct msghdr ac_aggr;
43843 if (sizeof ac_aggr.msg_control)
43844 return 0;
43845   ;
43846   return 0;
43847 }
43848 _ACEOF
43849 rm -f conftest.$ac_objext
43850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43851   (eval $ac_compile) 2>conftest.er1
43852   ac_status=$?
43853   grep -v '^ *+' conftest.er1 >conftest.err
43854   rm -f conftest.er1
43855   cat conftest.err >&5
43856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857   (exit $ac_status); } &&
43858          { ac_try='test -z "$ac_c_werror_flag"
43859                          || test ! -s conftest.err'
43860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43861   (eval $ac_try) 2>&5
43862   ac_status=$?
43863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43864   (exit $ac_status); }; } &&
43865          { ac_try='test -s conftest.$ac_objext'
43866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43867   (eval $ac_try) 2>&5
43868   ac_status=$?
43869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43870   (exit $ac_status); }; }; then
43871   ac_cv_member_struct_msghdr_msg_control=yes
43872 else
43873   echo "$as_me: failed program was:" >&5
43874 sed 's/^/| /' conftest.$ac_ext >&5
43875
43876 ac_cv_member_struct_msghdr_msg_control=no
43877 fi
43878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43879 fi
43880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43881 fi
43882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43883 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43884 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43885
43886 cat >>confdefs.h <<_ACEOF
43887 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43888 _ACEOF
43889
43890
43891 fi
43892
43893         fi
43894         LIBSRCS="$LIBSRCS getpeereid.c"
43895 fi
43896 if test "$ac_cv_func_snprintf" != yes ||
43897    test "$ac_cv_func_vsnprintf" != yes; then
43898         if test "$ac_cv_func_snprintf" != yes; then
43899
43900 cat >>confdefs.h <<\_ACEOF
43901 #define snprintf ber_pvt_snprintf
43902 _ACEOF
43903
43904         fi
43905         if test "$ac_cv_func_vsnprintf" != yes; then
43906
43907 cat >>confdefs.h <<\_ACEOF
43908 #define vsnprintf ber_pvt_vsnprintf
43909 _ACEOF
43910
43911         fi
43912 fi
43913
43914
43915 if test "$ol_enable_slapi" != no ; then
43916
43917 for ac_header in ltdl.h
43918 do
43919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43921   echo "$as_me:$LINENO: checking for $ac_header" >&5
43922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43924   echo $ECHO_N "(cached) $ECHO_C" >&6
43925 fi
43926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43928 else
43929   # Is the header compilable?
43930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43932 cat >conftest.$ac_ext <<_ACEOF
43933 /* confdefs.h.  */
43934 _ACEOF
43935 cat confdefs.h >>conftest.$ac_ext
43936 cat >>conftest.$ac_ext <<_ACEOF
43937 /* end confdefs.h.  */
43938 $ac_includes_default
43939 #include <$ac_header>
43940 _ACEOF
43941 rm -f conftest.$ac_objext
43942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43943   (eval $ac_compile) 2>conftest.er1
43944   ac_status=$?
43945   grep -v '^ *+' conftest.er1 >conftest.err
43946   rm -f conftest.er1
43947   cat conftest.err >&5
43948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949   (exit $ac_status); } &&
43950          { ac_try='test -z "$ac_c_werror_flag"
43951                          || test ! -s conftest.err'
43952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43953   (eval $ac_try) 2>&5
43954   ac_status=$?
43955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43956   (exit $ac_status); }; } &&
43957          { ac_try='test -s conftest.$ac_objext'
43958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43959   (eval $ac_try) 2>&5
43960   ac_status=$?
43961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962   (exit $ac_status); }; }; then
43963   ac_header_compiler=yes
43964 else
43965   echo "$as_me: failed program was:" >&5
43966 sed 's/^/| /' conftest.$ac_ext >&5
43967
43968 ac_header_compiler=no
43969 fi
43970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43972 echo "${ECHO_T}$ac_header_compiler" >&6
43973
43974 # Is the header present?
43975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43977 cat >conftest.$ac_ext <<_ACEOF
43978 /* confdefs.h.  */
43979 _ACEOF
43980 cat confdefs.h >>conftest.$ac_ext
43981 cat >>conftest.$ac_ext <<_ACEOF
43982 /* end confdefs.h.  */
43983 #include <$ac_header>
43984 _ACEOF
43985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43987   ac_status=$?
43988   grep -v '^ *+' conftest.er1 >conftest.err
43989   rm -f conftest.er1
43990   cat conftest.err >&5
43991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992   (exit $ac_status); } >/dev/null; then
43993   if test -s conftest.err; then
43994     ac_cpp_err=$ac_c_preproc_warn_flag
43995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43996   else
43997     ac_cpp_err=
43998   fi
43999 else
44000   ac_cpp_err=yes
44001 fi
44002 if test -z "$ac_cpp_err"; then
44003   ac_header_preproc=yes
44004 else
44005   echo "$as_me: failed program was:" >&5
44006 sed 's/^/| /' conftest.$ac_ext >&5
44007
44008   ac_header_preproc=no
44009 fi
44010 rm -f conftest.err conftest.$ac_ext
44011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44012 echo "${ECHO_T}$ac_header_preproc" >&6
44013
44014 # So?  What about this header?
44015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44016   yes:no: )
44017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44021     ac_header_preproc=yes
44022     ;;
44023   no:yes:* )
44024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44036     (
44037       cat <<\_ASBOX
44038 ## --------------------------------------------- ##
44039 ## Report this to <http://www.openldap.org/its/> ##
44040 ## --------------------------------------------- ##
44041 _ASBOX
44042     ) |
44043       sed "s/^/$as_me: WARNING:     /" >&2
44044     ;;
44045 esac
44046 echo "$as_me:$LINENO: checking for $ac_header" >&5
44047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44049   echo $ECHO_N "(cached) $ECHO_C" >&6
44050 else
44051   eval "$as_ac_Header=\$ac_header_preproc"
44052 fi
44053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44055
44056 fi
44057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44058   cat >>confdefs.h <<_ACEOF
44059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44060 _ACEOF
44061
44062 fi
44063
44064 done
44065
44066
44067         if test $ac_cv_header_ltdl_h != yes ; then
44068                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44069 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44070    { (exit 1); exit 1; }; }
44071         fi
44072         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44073 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44074 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44075   echo $ECHO_N "(cached) $ECHO_C" >&6
44076 else
44077   ac_check_lib_save_LIBS=$LIBS
44078 LIBS="-lltdl  $LIBS"
44079 cat >conftest.$ac_ext <<_ACEOF
44080 /* confdefs.h.  */
44081 _ACEOF
44082 cat confdefs.h >>conftest.$ac_ext
44083 cat >>conftest.$ac_ext <<_ACEOF
44084 /* end confdefs.h.  */
44085
44086 /* Override any gcc2 internal prototype to avoid an error.  */
44087 #ifdef __cplusplus
44088 extern "C"
44089 #endif
44090 /* We use char because int might match the return type of a gcc2
44091    builtin and then its argument prototype would still apply.  */
44092 char lt_dlinit ();
44093 int
44094 main ()
44095 {
44096 lt_dlinit ();
44097   ;
44098   return 0;
44099 }
44100 _ACEOF
44101 rm -f conftest.$ac_objext conftest$ac_exeext
44102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44103   (eval $ac_link) 2>conftest.er1
44104   ac_status=$?
44105   grep -v '^ *+' conftest.er1 >conftest.err
44106   rm -f conftest.er1
44107   cat conftest.err >&5
44108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109   (exit $ac_status); } &&
44110          { ac_try='test -z "$ac_c_werror_flag"
44111                          || test ! -s conftest.err'
44112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44113   (eval $ac_try) 2>&5
44114   ac_status=$?
44115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44116   (exit $ac_status); }; } &&
44117          { ac_try='test -s conftest$ac_exeext'
44118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44119   (eval $ac_try) 2>&5
44120   ac_status=$?
44121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122   (exit $ac_status); }; }; then
44123   ac_cv_lib_ltdl_lt_dlinit=yes
44124 else
44125   echo "$as_me: failed program was:" >&5
44126 sed 's/^/| /' conftest.$ac_ext >&5
44127
44128 ac_cv_lib_ltdl_lt_dlinit=no
44129 fi
44130 rm -f conftest.err conftest.$ac_objext \
44131       conftest$ac_exeext conftest.$ac_ext
44132 LIBS=$ac_check_lib_save_LIBS
44133 fi
44134 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44135 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44136 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44137
44138                 SLAPI_LIBS=-lltdl
44139                 LIBSLAPI=libslapi.a
44140                 LIBSLAPITOOLS=../libslapi.a
44141
44142 cat >>confdefs.h <<\_ACEOF
44143 #define HAVE_LIBLTDL 1
44144 _ACEOF
44145
44146
44147 else
44148   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44149 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44150    { (exit 1); exit 1; }; }
44151 fi
44152
44153
44154
44155 cat >>confdefs.h <<\_ACEOF
44156 #define LDAP_SLAPI 1
44157 _ACEOF
44158
44159 fi
44160
44161 if test "$ol_enable_debug" != no ; then
44162
44163 cat >>confdefs.h <<\_ACEOF
44164 #define LDAP_DEBUG 1
44165 _ACEOF
44166
44167 fi
44168 if test "$ol_enable_syslog" = yes ; then
44169
44170 cat >>confdefs.h <<\_ACEOF
44171 #define LDAP_SYSLOG 1
44172 _ACEOF
44173
44174 fi
44175 if test "$ol_link_kbind" != no ; then
44176
44177 cat >>confdefs.h <<\_ACEOF
44178 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44179 _ACEOF
44180
44181 fi
44182 if test "$ol_enable_proctitle" != no ; then
44183
44184 cat >>confdefs.h <<\_ACEOF
44185 #define LDAP_PROCTITLE 1
44186 _ACEOF
44187
44188 fi
44189 if test "$ol_enable_referrals" != no ; then
44190
44191 cat >>confdefs.h <<\_ACEOF
44192 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44193 _ACEOF
44194
44195 fi
44196 if test "$ol_enable_local" != no; then
44197
44198 cat >>confdefs.h <<\_ACEOF
44199 #define LDAP_PF_LOCAL 1
44200 _ACEOF
44201
44202 fi
44203 if test "$ol_link_ipv6" != no; then
44204
44205 cat >>confdefs.h <<\_ACEOF
44206 #define LDAP_PF_INET6 1
44207 _ACEOF
44208
44209 fi
44210 if test "$ol_enable_cleartext" != no ; then
44211
44212 cat >>confdefs.h <<\_ACEOF
44213 #define SLAPD_CLEARTEXT 1
44214 _ACEOF
44215
44216 fi
44217 if test "$ol_enable_crypt" != no ; then
44218
44219 cat >>confdefs.h <<\_ACEOF
44220 #define SLAPD_CRYPT 1
44221 _ACEOF
44222
44223 fi
44224 if test "$ol_link_spasswd" != no ; then
44225
44226 cat >>confdefs.h <<\_ACEOF
44227 #define SLAPD_SPASSWD 1
44228 _ACEOF
44229
44230 fi
44231 if test "$ol_enable_multimaster" != no ; then
44232
44233 cat >>confdefs.h <<\_ACEOF
44234 #define SLAPD_MULTIMASTER 1
44235 _ACEOF
44236
44237 fi
44238 if test "$ol_enable_rlookups" != no ; then
44239
44240 cat >>confdefs.h <<\_ACEOF
44241 #define SLAPD_RLOOKUPS 1
44242 _ACEOF
44243
44244 fi
44245 if test "$ol_enable_aci" != no ; then
44246
44247 cat >>confdefs.h <<\_ACEOF
44248 #define SLAPD_ACI_ENABLED 1
44249 _ACEOF
44250
44251         WITH_ACI_ENABLED=yes
44252 else
44253         WITH_ACI_ENABLED=no
44254 fi
44255
44256 if test "$ol_link_modules" != no ; then
44257
44258 cat >>confdefs.h <<\_ACEOF
44259 #define SLAPD_MODULES 1
44260 _ACEOF
44261
44262         BUILD_SLAPD=yes
44263         SLAPD_MODULES_LDFLAGS="-dlopen self"
44264 fi
44265
44266
44267 cat >>confdefs.h <<\_ACEOF
44268 #define SLAPD_MOD_STATIC 1
44269 _ACEOF
44270
44271
44272 cat >>confdefs.h <<\_ACEOF
44273 #define SLAPD_MOD_DYNAMIC 2
44274 _ACEOF
44275
44276
44277 if test "$ol_enable_bdb" != no ; then
44278         BUILD_SLAPD=yes
44279         BUILD_BDB=$ol_enable_bdb
44280         if test "$ol_enable_bdb" = mod ; then
44281                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44282                 MFLAG=SLAPD_MOD_DYNAMIC
44283         else
44284                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44285                 MFLAG=SLAPD_MOD_STATIC
44286         fi
44287
44288 cat >>confdefs.h <<_ACEOF
44289 #define SLAPD_BDB $MFLAG
44290 _ACEOF
44291
44292 fi
44293
44294 if test "$ol_enable_dnssrv" != no ; then
44295         BUILD_SLAPD=yes
44296         BUILD_DNSSRV=$ol_enable_dnssrv
44297         if test "$ol_enable_dnssrv" = mod ; then
44298                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44299                 MFLAG=SLAPD_MOD_DYNAMIC
44300         else
44301                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44302                 MFLAG=SLAPD_MOD_STATIC
44303         fi
44304
44305 cat >>confdefs.h <<_ACEOF
44306 #define SLAPD_DNSSRV $MFLAG
44307 _ACEOF
44308
44309 fi
44310
44311 if test "$ol_enable_hdb" != no ; then
44312         BUILD_SLAPD=yes
44313         BUILD_HDB=$ol_enable_hdb
44314         if test "$ol_enable_hdb" = mod ; then
44315                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44316                 MFLAG=SLAPD_MOD_DYNAMIC
44317         else
44318                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44319                 MFLAG=SLAPD_MOD_STATIC
44320         fi
44321
44322 cat >>confdefs.h <<_ACEOF
44323 #define SLAPD_HDB $MFLAG
44324 _ACEOF
44325
44326 fi
44327
44328 if test "$ol_enable_ldap" != no ; then
44329         BUILD_SLAPD=yes
44330         BUILD_LDAP=$ol_enable_ldap
44331         if test "$ol_enable_ldap" = mod ; then
44332                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44333                 MFLAG=SLAPD_MOD_DYNAMIC
44334         else
44335                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44336                 MFLAG=SLAPD_MOD_STATIC
44337         fi
44338
44339 cat >>confdefs.h <<_ACEOF
44340 #define SLAPD_LDAP $MFLAG
44341 _ACEOF
44342
44343 fi
44344
44345 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44346         BUILD_SLAPD=yes
44347         BUILD_LDBM=$ol_enable_ldbm
44348         if test "$ol_enable_ldbm" = mod ; then
44349                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44350                 MFLAG=SLAPD_MOD_DYNAMIC
44351         else
44352                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44353                 MFLAG=SLAPD_MOD_STATIC
44354         fi
44355
44356 cat >>confdefs.h <<_ACEOF
44357 #define SLAPD_LDBM $MFLAG
44358 _ACEOF
44359
44360 fi
44361
44362 if test "$ol_enable_meta" != no ; then
44363         BUILD_SLAPD=yes
44364         BUILD_META=$ol_enable_meta
44365         BUILD_REWRITE=yes
44366         if test "$ol_enable_meta" = mod ; then
44367                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44368                 MFLAG=SLAPD_MOD_DYNAMIC
44369         else
44370                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44371                 MFLAG=SLAPD_MOD_STATIC
44372         fi
44373
44374 cat >>confdefs.h <<_ACEOF
44375 #define SLAPD_META $MFLAG
44376 _ACEOF
44377
44378 fi
44379
44380 if test "$ol_enable_monitor" != no ; then
44381         BUILD_SLAPD=yes
44382         BUILD_MONITOR=$ol_enable_monitor
44383         if test "$ol_enable_monitor" = mod ; then
44384                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44385                 MFLAG=SLAPD_MOD_DYNAMIC
44386         else
44387                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44388                 MFLAG=SLAPD_MOD_STATIC
44389         fi
44390
44391 cat >>confdefs.h <<_ACEOF
44392 #define SLAPD_MONITOR $MFLAG
44393 _ACEOF
44394
44395 fi
44396
44397 if test "$ol_enable_null" != no ; then
44398         BUILD_SLAPD=yes
44399         BUILD_NULL=$ol_enable_null
44400         if test "$ol_enable_null" = mod ; then
44401                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44402                 MFLAG=SLAPD_MOD_DYNAMIC
44403         else
44404                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44405                 MFLAG=SLAPD_MOD_STATIC
44406         fi
44407
44408 cat >>confdefs.h <<_ACEOF
44409 #define SLAPD_NULL $MFLAG
44410 _ACEOF
44411
44412 fi
44413
44414 if test "$ol_enable_passwd" != no ; then
44415         BUILD_SLAPD=yes
44416         BUILD_PASSWD=$ol_enable_passwd
44417         if test "$ol_enable_passwd" = mod ; then
44418                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44419                 MFLAG=SLAPD_MOD_DYNAMIC
44420         else
44421                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44422                 MFLAG=SLAPD_MOD_STATIC
44423         fi
44424
44425 cat >>confdefs.h <<_ACEOF
44426 #define SLAPD_PASSWD $MFLAG
44427 _ACEOF
44428
44429 fi
44430
44431 if test "$ol_link_perl" != no ; then
44432         BUILD_SLAPD=yes
44433         BUILD_PERL=$ol_enable_perl
44434         if test "$ol_enable_perl" = mod ; then
44435                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44436                 MFLAG=SLAPD_MOD_DYNAMIC
44437         else
44438                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44439                 MFLAG=SLAPD_MOD_STATIC
44440         fi
44441
44442 cat >>confdefs.h <<_ACEOF
44443 #define SLAPD_PERL $MFLAG
44444 _ACEOF
44445
44446 fi
44447
44448 if test "$ol_enable_relay" != no ; then
44449         BUILD_SLAPD=yes
44450         BUILD_RELAY=$ol_enable_relay
44451         if test "$ol_enable_relay" = mod ; then
44452                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44453                 MFLAG=SLAPD_MOD_DYNAMIC
44454         else
44455                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44456                 MFLAG=SLAPD_MOD_STATIC
44457         fi
44458
44459 cat >>confdefs.h <<_ACEOF
44460 #define SLAPD_RELAY $MFLAG
44461 _ACEOF
44462
44463 fi
44464
44465 if test "$ol_enable_shell" != no ; then
44466         if test "$ol_link_threads" != no ; then
44467                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44468 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44469         fi
44470         BUILD_SLAPD=yes
44471         BUILD_SHELL=$ol_enable_shell
44472         if test "$ol_enable_shell" = mod ; then
44473                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44474                 MFLAG=SLAPD_MOD_DYNAMIC
44475         else
44476                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44477                 MFLAG=SLAPD_MOD_STATIC
44478         fi
44479
44480 cat >>confdefs.h <<_ACEOF
44481 #define SLAPD_SHELL $MFLAG
44482 _ACEOF
44483
44484 fi
44485
44486 if test "$ol_link_sql" != no ; then
44487         BUILD_SLAPD=yes
44488         BUILD_SQL=$ol_enable_sql
44489         if test "$ol_enable_sql" = mod; then
44490                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44491                 MFLAG=SLAPD_MOD_DYNAMIC
44492         else
44493                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44494                 MFLAG=SLAPD_MOD_STATIC
44495         fi
44496
44497 cat >>confdefs.h <<_ACEOF
44498 #define SLAPD_SQL $MFLAG
44499 _ACEOF
44500
44501 fi
44502
44503 if test "$ol_enable_accesslog" != no ; then
44504         BUILD_ACCESSLOG=$ol_enable_accesslog
44505         if test "$ol_enable_accesslog" = mod ; then
44506                 MFLAG=SLAPD_MOD_DYNAMIC
44507                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44508         else
44509                 MFLAG=SLAPD_MOD_STATIC
44510                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44511         fi
44512
44513 cat >>confdefs.h <<_ACEOF
44514 #define SLAPD_OVER_ACCESSLOG $MFLAG
44515 _ACEOF
44516
44517 fi
44518
44519 if test "$ol_enable_auditlog" != no ; then
44520         BUILD_AUDITLOG=$ol_enable_auditlog
44521         if test "$ol_enable_auditlog" = mod ; then
44522                 MFLAG=SLAPD_MOD_DYNAMIC
44523                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
44524         else
44525                 MFLAG=SLAPD_MOD_STATIC
44526                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
44527         fi
44528
44529 cat >>confdefs.h <<_ACEOF
44530 #define SLAPD_OVER_AUDITLOG $MFLAG
44531 _ACEOF
44532
44533 fi
44534
44535 if test "$ol_enable_denyop" != no ; then
44536         BUILD_DENYOP=$ol_enable_denyop
44537         if test "$ol_enable_denyop" = mod ; then
44538                 MFLAG=SLAPD_MOD_DYNAMIC
44539                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44540         else
44541                 MFLAG=SLAPD_MOD_STATIC
44542                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44543         fi
44544
44545 cat >>confdefs.h <<_ACEOF
44546 #define SLAPD_OVER_DENYOP $MFLAG
44547 _ACEOF
44548
44549 fi
44550
44551 if test "$ol_enable_dyngroup" != no ; then
44552         BUILD_DYNGROUP=$ol_enable_dyngroup
44553         if test "$ol_enable_dyngroup" = mod ; then
44554                 MFLAG=SLAPD_MOD_DYNAMIC
44555                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44556         else
44557                 MFLAG=SLAPD_MOD_STATIC
44558                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44559         fi
44560
44561 cat >>confdefs.h <<_ACEOF
44562 #define SLAPD_OVER_DYNGROUP $MFLAG
44563 _ACEOF
44564
44565 fi
44566
44567 if test "$ol_enable_dynlist" != no ; then
44568         BUILD_DYNLIST=$ol_enable_dynlist
44569         if test "$ol_enable_dynlist" = mod ; then
44570                 MFLAG=SLAPD_MOD_DYNAMIC
44571                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44572         else
44573                 MFLAG=SLAPD_MOD_STATIC
44574                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44575         fi
44576
44577 cat >>confdefs.h <<_ACEOF
44578 #define SLAPD_OVER_DYNLIST $MFLAG
44579 _ACEOF
44580
44581 fi
44582
44583 if test "$ol_enable_lastmod" != no ; then
44584         BUILD_LASTMOD=$ol_enable_lastmod
44585         if test "$ol_enable_lastmod" = mod ; then
44586                 MFLAG=SLAPD_MOD_DYNAMIC
44587                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44588         else
44589                 MFLAG=SLAPD_MOD_STATIC
44590                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44591         fi
44592
44593 cat >>confdefs.h <<_ACEOF
44594 #define SLAPD_OVER_LASTMOD $MFLAG
44595 _ACEOF
44596
44597 fi
44598
44599 if test "$ol_enable_ppolicy" != no ; then
44600         BUILD_PPOLICY=$ol_enable_ppolicy
44601         if test "$ol_enable_ppolicy" = mod ; then
44602                 MFLAG=SLAPD_MOD_DYNAMIC
44603                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44604         else
44605                 MFLAG=SLAPD_MOD_STATIC
44606                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44607         fi
44608
44609 cat >>confdefs.h <<_ACEOF
44610 #define SLAPD_OVER_PPOLICY $MFLAG
44611 _ACEOF
44612
44613 fi
44614
44615 if test "$ol_enable_proxycache" != no ; then
44616         BUILD_PROXYCACHE=$ol_enable_proxycache
44617         if test "$ol_enable_proxycache" = mod ; then
44618                 MFLAG=SLAPD_MOD_DYNAMIC
44619                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44620         else
44621                 MFLAG=SLAPD_MOD_STATIC
44622                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44623         fi
44624
44625 cat >>confdefs.h <<_ACEOF
44626 #define SLAPD_OVER_PROXYCACHE $MFLAG
44627 _ACEOF
44628
44629 fi
44630
44631 if test "$ol_enable_refint" != no ; then
44632         BUILD_REFINT=$ol_enable_refint
44633         if test "$ol_enable_refint" = mod ; then
44634                 MFLAG=SLAPD_MOD_DYNAMIC
44635                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44636         else
44637                 MFLAG=SLAPD_MOD_STATIC
44638                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44639         fi
44640
44641 cat >>confdefs.h <<_ACEOF
44642 #define SLAPD_OVER_REFINT $MFLAG
44643 _ACEOF
44644
44645 fi
44646
44647 if test "$ol_enable_retcode" != no ; then
44648         BUILD_RETCODE=$ol_enable_retcode
44649         if test "$ol_enable_retcode" = mod ; then
44650                 MFLAG=SLAPD_MOD_DYNAMIC
44651                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44652         else
44653                 MFLAG=SLAPD_MOD_STATIC
44654                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44655         fi
44656
44657 cat >>confdefs.h <<_ACEOF
44658 #define SLAPD_OVER_RETCODE $MFLAG
44659 _ACEOF
44660
44661 fi
44662
44663 if test "$ol_enable_rwm" != no ; then
44664         BUILD_REWRITE=yes
44665         BUILD_RWM=$ol_enable_rwm
44666         if test "$ol_enable_rwm" = mod ; then
44667                 MFLAG=SLAPD_MOD_DYNAMIC
44668                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44669         else
44670                 MFLAG=SLAPD_MOD_STATIC
44671                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44672         fi
44673
44674 cat >>confdefs.h <<_ACEOF
44675 #define SLAPD_OVER_RWM $MFLAG
44676 _ACEOF
44677
44678 fi
44679
44680 if test "$ol_enable_syncprov" != no ; then
44681         BUILD_SYNCPROV=$ol_enable_syncprov
44682         if test "$ol_enable_syncprov" = mod ; then
44683                 MFLAG=SLAPD_MOD_DYNAMIC
44684                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44685         else
44686                 MFLAG=SLAPD_MOD_STATIC
44687                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44688         fi
44689
44690 cat >>confdefs.h <<_ACEOF
44691 #define SLAPD_OVER_SYNCPROV $MFLAG
44692 _ACEOF
44693
44694 fi
44695
44696 if test "$ol_enable_translucent" != no ; then
44697         BUILD_TRANSLUCENT=$ol_enable_translucent
44698         if test "$ol_enable_translucent" = mod ; then
44699                 MFLAG=SLAPD_MOD_DYNAMIC
44700                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44701         else
44702                 MFLAG=SLAPD_MOD_STATIC
44703                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44704         fi
44705
44706 cat >>confdefs.h <<_ACEOF
44707 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44708 _ACEOF
44709
44710 fi
44711
44712 if test "$ol_enable_unique" != no ; then
44713         BUILD_UNIQUE=$ol_enable_unique
44714         if test "$ol_enable_unique" = mod ; then
44715                 MFLAG=SLAPD_MOD_DYNAMIC
44716                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44717         else
44718                 MFLAG=SLAPD_MOD_STATIC
44719                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44720         fi
44721
44722 cat >>confdefs.h <<_ACEOF
44723 #define SLAPD_OVER_UNIQUE $MFLAG
44724 _ACEOF
44725
44726 fi
44727
44728 if test "$ol_enable_valsort" != no ; then
44729         BUILD_VALSORT=$ol_enable_valsort
44730         if test "$ol_enable_valsort" = mod ; then
44731                 MFLAG=SLAPD_MOD_DYNAMIC
44732                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44733         else
44734                 MFLAG=SLAPD_MOD_STATIC
44735                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44736         fi
44737
44738 cat >>confdefs.h <<_ACEOF
44739 #define SLAPD_OVER_VALSORT $MFLAG
44740 _ACEOF
44741
44742 fi
44743
44744 if test "$ol_enable_slurpd" != no &&
44745    test "$ol_link_threads" != no &&
44746    test $BUILD_SLAPD = yes ; then
44747         BUILD_SLURPD=yes
44748 fi
44749
44750 if test "$ol_enable_rewrite" != no ; then
44751
44752 cat >>confdefs.h <<\_ACEOF
44753 #define ENABLE_REWRITE 1
44754 _ACEOF
44755
44756         BUILD_REWRITE=yes
44757 fi
44758
44759 if test "$ol_enable_slapi" != no ; then
44760
44761 cat >>confdefs.h <<\_ACEOF
44762 #define ENABLE_SLAPI 1
44763 _ACEOF
44764
44765         BUILD_SLAPI=yes
44766         SLAPD_SLAPI_DEPEND=libslapi.a
44767 fi
44768
44769
44770
44771 if test "$ac_cv_mingw32" = yes ; then
44772         PLAT=NT
44773         SLAPD_MODULES_LDFLAGS=
44774 else
44775         PLAT=UNIX
44776 fi
44777
44778
44779
44780
44781
44782
44783
44784
44785
44786
44787
44788
44789
44790
44791
44792
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
44828
44829
44830
44831
44832
44833
44834
44835
44836
44837
44838
44839
44840
44841
44842
44843
44844
44845
44846
44847
44848
44849
44850
44851
44852
44853
44854
44855
44856
44857
44858
44859 # Check whether --with-xxinstall or --without-xxinstall was given.
44860 if test "${with_xxinstall+set}" = set; then
44861   withval="$with_xxinstall"
44862
44863 fi;
44864
44865
44866                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
44867
44868
44869           ac_config_commands="$ac_config_commands default"
44870
44871
44872
44873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44874 # Let make expand exec_prefix.
44875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44876
44877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44879 # trailing colons and then remove the whole line if VPATH becomes empty
44880 # (actually we leave an empty line to preserve line numbers).
44881 if test "x$srcdir" = x.; then
44882   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44883 s/:*\$(srcdir):*/:/;
44884 s/:*\${srcdir}:*/:/;
44885 s/:*@srcdir@:*/:/;
44886 s/^\([^=]*=[     ]*\):*/\1/;
44887 s/:*$//;
44888 s/^[^=]*=[       ]*$//;
44889 }'
44890 fi
44891
44892 DEFS=-DHAVE_CONFIG_H
44893
44894 ac_libobjs=
44895 ac_ltlibobjs=
44896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44897   # 1. Remove the extension, and $U if already installed.
44898   ac_i=`echo "$ac_i" |
44899          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44900   # 2. Add them.
44901   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44902   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44903 done
44904 LIBOBJS=$ac_libobjs
44905
44906 LTLIBOBJS=$ac_ltlibobjs
44907
44908
44909 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44910   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44911 Usually this means the macro was only invoked conditionally." >&5
44912 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44913 Usually this means the macro was only invoked conditionally." >&2;}
44914    { (exit 1); exit 1; }; }
44915 fi
44916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44917   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44918 Usually this means the macro was only invoked conditionally." >&5
44919 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44920 Usually this means the macro was only invoked conditionally." >&2;}
44921    { (exit 1); exit 1; }; }
44922 fi
44923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44924   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44925 Usually this means the macro was only invoked conditionally." >&5
44926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44927 Usually this means the macro was only invoked conditionally." >&2;}
44928    { (exit 1); exit 1; }; }
44929 fi
44930
44931 : ${CONFIG_STATUS=./config.status}
44932 ac_clean_files_save=$ac_clean_files
44933 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44934 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44935 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44936 cat >$CONFIG_STATUS <<_ACEOF
44937 #! $SHELL
44938 # Generated by $as_me.
44939 # Run this file to recreate the current configuration.
44940 # Compiler output produced by configure, useful for debugging
44941 # configure, is in config.log if it exists.
44942
44943 debug=false
44944 ac_cs_recheck=false
44945 ac_cs_silent=false
44946 SHELL=\${CONFIG_SHELL-$SHELL}
44947 _ACEOF
44948
44949 cat >>$CONFIG_STATUS <<\_ACEOF
44950 ## --------------------- ##
44951 ## M4sh Initialization.  ##
44952 ## --------------------- ##
44953
44954 # Be Bourne compatible
44955 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44956   emulate sh
44957   NULLCMD=:
44958   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44959   # is contrary to our usage.  Disable this feature.
44960   alias -g '${1+"$@"}'='"$@"'
44961 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44962   set -o posix
44963 fi
44964 DUALCASE=1; export DUALCASE # for MKS sh
44965
44966 # Support unset when possible.
44967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44968   as_unset=unset
44969 else
44970   as_unset=false
44971 fi
44972
44973
44974 # Work around bugs in pre-3.0 UWIN ksh.
44975 $as_unset ENV MAIL MAILPATH
44976 PS1='$ '
44977 PS2='> '
44978 PS4='+ '
44979
44980 # NLS nuisances.
44981 for as_var in \
44982   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44983   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44984   LC_TELEPHONE LC_TIME
44985 do
44986   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44987     eval $as_var=C; export $as_var
44988   else
44989     $as_unset $as_var
44990   fi
44991 done
44992
44993 # Required to use basename.
44994 if expr a : '\(a\)' >/dev/null 2>&1; then
44995   as_expr=expr
44996 else
44997   as_expr=false
44998 fi
44999
45000 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45001   as_basename=basename
45002 else
45003   as_basename=false
45004 fi
45005
45006
45007 # Name of the executable.
45008 as_me=`$as_basename "$0" ||
45009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45010          X"$0" : 'X\(//\)$' \| \
45011          X"$0" : 'X\(/\)$' \| \
45012          .     : '\(.\)' 2>/dev/null ||
45013 echo X/"$0" |
45014     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45015           /^X\/\(\/\/\)$/{ s//\1/; q; }
45016           /^X\/\(\/\).*/{ s//\1/; q; }
45017           s/.*/./; q'`
45018
45019
45020 # PATH needs CR, and LINENO needs CR and PATH.
45021 # Avoid depending upon Character Ranges.
45022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45025 as_cr_digits='0123456789'
45026 as_cr_alnum=$as_cr_Letters$as_cr_digits
45027
45028 # The user is always right.
45029 if test "${PATH_SEPARATOR+set}" != set; then
45030   echo "#! /bin/sh" >conf$$.sh
45031   echo  "exit 0"   >>conf$$.sh
45032   chmod +x conf$$.sh
45033   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45034     PATH_SEPARATOR=';'
45035   else
45036     PATH_SEPARATOR=:
45037   fi
45038   rm -f conf$$.sh
45039 fi
45040
45041
45042   as_lineno_1=$LINENO
45043   as_lineno_2=$LINENO
45044   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45045   test "x$as_lineno_1" != "x$as_lineno_2" &&
45046   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
45047   # Find who we are.  Look in the path if we contain no path at all
45048   # relative or not.
45049   case $0 in
45050     *[\\/]* ) as_myself=$0 ;;
45051     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45052 for as_dir in $PATH
45053 do
45054   IFS=$as_save_IFS
45055   test -z "$as_dir" && as_dir=.
45056   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45057 done
45058
45059        ;;
45060   esac
45061   # We did not find ourselves, most probably we were run as `sh COMMAND'
45062   # in which case we are not to be found in the path.
45063   if test "x$as_myself" = x; then
45064     as_myself=$0
45065   fi
45066   if test ! -f "$as_myself"; then
45067     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45068 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45069    { (exit 1); exit 1; }; }
45070   fi
45071   case $CONFIG_SHELL in
45072   '')
45073     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45074 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45075 do
45076   IFS=$as_save_IFS
45077   test -z "$as_dir" && as_dir=.
45078   for as_base in sh bash ksh sh5; do
45079          case $as_dir in
45080          /*)
45081            if ("$as_dir/$as_base" -c '
45082   as_lineno_1=$LINENO
45083   as_lineno_2=$LINENO
45084   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45085   test "x$as_lineno_1" != "x$as_lineno_2" &&
45086   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
45087              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45088              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45089              CONFIG_SHELL=$as_dir/$as_base
45090              export CONFIG_SHELL
45091              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45092            fi;;
45093          esac
45094        done
45095 done
45096 ;;
45097   esac
45098
45099   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45100   # uniformly replaced by the line number.  The first 'sed' inserts a
45101   # line-number line before each line; the second 'sed' does the real
45102   # work.  The second script uses 'N' to pair each line-number line
45103   # with the numbered line, and appends trailing '-' during
45104   # substitution so that $LINENO is not a special case at line end.
45105   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45106   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
45107   sed '=' <$as_myself |
45108     sed '
45109       N
45110       s,$,-,
45111       : loop
45112       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45113       t loop
45114       s,-$,,
45115       s,^['$as_cr_digits']*\n,,
45116     ' >$as_me.lineno &&
45117   chmod +x $as_me.lineno ||
45118     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45119 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45120    { (exit 1); exit 1; }; }
45121
45122   # Don't try to exec as it changes $[0], causing all sort of problems
45123   # (the dirname of $[0] is not the place where we might find the
45124   # original and so on.  Autoconf is especially sensible to this).
45125   . ./$as_me.lineno
45126   # Exit status is that of the last command.
45127   exit
45128 }
45129
45130
45131 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45132   *c*,-n*) ECHO_N= ECHO_C='
45133 ' ECHO_T='      ' ;;
45134   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45135   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
45136 esac
45137
45138 if expr a : '\(a\)' >/dev/null 2>&1; then
45139   as_expr=expr
45140 else
45141   as_expr=false
45142 fi
45143
45144 rm -f conf$$ conf$$.exe conf$$.file
45145 echo >conf$$.file
45146 if ln -s conf$$.file conf$$ 2>/dev/null; then
45147   # We could just check for DJGPP; but this test a) works b) is more generic
45148   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45149   if test -f conf$$.exe; then
45150     # Don't use ln at all; we don't have any links
45151     as_ln_s='cp -p'
45152   else
45153     as_ln_s='ln -s'
45154   fi
45155 elif ln conf$$.file conf$$ 2>/dev/null; then
45156   as_ln_s=ln
45157 else
45158   as_ln_s='cp -p'
45159 fi
45160 rm -f conf$$ conf$$.exe conf$$.file
45161
45162 if mkdir -p . 2>/dev/null; then
45163   as_mkdir_p=:
45164 else
45165   test -d ./-p && rmdir ./-p
45166   as_mkdir_p=false
45167 fi
45168
45169 as_executable_p="test -f"
45170
45171 # Sed expression to map a string onto a valid CPP name.
45172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45173
45174 # Sed expression to map a string onto a valid variable name.
45175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45176
45177
45178 # IFS
45179 # We need space, tab and new line, in precisely that order.
45180 as_nl='
45181 '
45182 IFS="   $as_nl"
45183
45184 # CDPATH.
45185 $as_unset CDPATH
45186
45187 exec 6>&1
45188
45189 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45190 # report actual input values of CONFIG_FILES etc. instead of their
45191 # values after options handling.  Logging --version etc. is OK.
45192 exec 5>>config.log
45193 {
45194   echo
45195   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45196 ## Running $as_me. ##
45197 _ASBOX
45198 } >&5
45199 cat >&5 <<_CSEOF
45200
45201 This file was extended by $as_me, which was
45202 generated by GNU Autoconf 2.59.  Invocation command line was
45203
45204   CONFIG_FILES    = $CONFIG_FILES
45205   CONFIG_HEADERS  = $CONFIG_HEADERS
45206   CONFIG_LINKS    = $CONFIG_LINKS
45207   CONFIG_COMMANDS = $CONFIG_COMMANDS
45208   $ $0 $@
45209
45210 _CSEOF
45211 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45212 echo >&5
45213 _ACEOF
45214
45215 # Files that config.status was made for.
45216 if test -n "$ac_config_files"; then
45217   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45218 fi
45219
45220 if test -n "$ac_config_headers"; then
45221   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45222 fi
45223
45224 if test -n "$ac_config_links"; then
45225   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45226 fi
45227
45228 if test -n "$ac_config_commands"; then
45229   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45230 fi
45231
45232 cat >>$CONFIG_STATUS <<\_ACEOF
45233
45234 ac_cs_usage="\
45235 \`$as_me' instantiates files from templates according to the
45236 current configuration.
45237
45238 Usage: $0 [OPTIONS] [FILE]...
45239
45240   -h, --help       print this help, then exit
45241   -V, --version    print version number, then exit
45242   -q, --quiet      do not print progress messages
45243   -d, --debug      don't remove temporary files
45244       --recheck    update $as_me by reconfiguring in the same conditions
45245   --file=FILE[:TEMPLATE]
45246                    instantiate the configuration file FILE
45247   --header=FILE[:TEMPLATE]
45248                    instantiate the configuration header FILE
45249
45250 Configuration files:
45251 $config_files
45252
45253 Configuration headers:
45254 $config_headers
45255
45256 Configuration commands:
45257 $config_commands
45258
45259 Report bugs to <bug-autoconf@gnu.org>."
45260 _ACEOF
45261
45262 cat >>$CONFIG_STATUS <<_ACEOF
45263 ac_cs_version="\\
45264 config.status
45265 configured by $0, generated by GNU Autoconf 2.59,
45266   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45267
45268 Copyright (C) 2003 Free Software Foundation, Inc.
45269 This config.status script is free software; the Free Software Foundation
45270 gives unlimited permission to copy, distribute and modify it."
45271 srcdir=$srcdir
45272 INSTALL="$INSTALL"
45273 _ACEOF
45274
45275 cat >>$CONFIG_STATUS <<\_ACEOF
45276 # If no file are specified by the user, then we need to provide default
45277 # value.  By we need to know if files were specified by the user.
45278 ac_need_defaults=:
45279 while test $# != 0
45280 do
45281   case $1 in
45282   --*=*)
45283     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45284     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45285     ac_shift=:
45286     ;;
45287   -*)
45288     ac_option=$1
45289     ac_optarg=$2
45290     ac_shift=shift
45291     ;;
45292   *) # This is not an option, so the user has probably given explicit
45293      # arguments.
45294      ac_option=$1
45295      ac_need_defaults=false;;
45296   esac
45297
45298   case $ac_option in
45299   # Handling of the options.
45300 _ACEOF
45301 cat >>$CONFIG_STATUS <<\_ACEOF
45302   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45303     ac_cs_recheck=: ;;
45304   --version | --vers* | -V )
45305     echo "$ac_cs_version"; exit 0 ;;
45306   --he | --h)
45307     # Conflict between --help and --header
45308     { { echo "$as_me:$LINENO: error: ambiguous option: $1
45309 Try \`$0 --help' for more information." >&5
45310 echo "$as_me: error: ambiguous option: $1
45311 Try \`$0 --help' for more information." >&2;}
45312    { (exit 1); exit 1; }; };;
45313   --help | --hel | -h )
45314     echo "$ac_cs_usage"; exit 0 ;;
45315   --debug | --d* | -d )
45316     debug=: ;;
45317   --file | --fil | --fi | --f )
45318     $ac_shift
45319     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45320     ac_need_defaults=false;;
45321   --header | --heade | --head | --hea )
45322     $ac_shift
45323     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45324     ac_need_defaults=false;;
45325   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45326   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45327     ac_cs_silent=: ;;
45328
45329   # This is an error.
45330   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45331 Try \`$0 --help' for more information." >&5
45332 echo "$as_me: error: unrecognized option: $1
45333 Try \`$0 --help' for more information." >&2;}
45334    { (exit 1); exit 1; }; } ;;
45335
45336   *) ac_config_targets="$ac_config_targets $1" ;;
45337
45338   esac
45339   shift
45340 done
45341
45342 ac_configure_extra_args=
45343
45344 if $ac_cs_silent; then
45345   exec 6>/dev/null
45346   ac_configure_extra_args="$ac_configure_extra_args --silent"
45347 fi
45348
45349 _ACEOF
45350 cat >>$CONFIG_STATUS <<_ACEOF
45351 if \$ac_cs_recheck; then
45352   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45353   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45354 fi
45355
45356 _ACEOF
45357
45358 cat >>$CONFIG_STATUS <<_ACEOF
45359 #
45360 # INIT-COMMANDS section.
45361 #
45362
45363 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45364
45365 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45366 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45367
45368
45369 _ACEOF
45370
45371
45372
45373 cat >>$CONFIG_STATUS <<\_ACEOF
45374 for ac_config_target in $ac_config_targets
45375 do
45376   case "$ac_config_target" in
45377   # Handling of arguments.
45378   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45379   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45380   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45381   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45382   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45383   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45384   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45385   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45386   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45387   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45388   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45389   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45390   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45391   "libraries/libldap_r/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45392   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45393   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45394   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45395   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45396   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45397   "servers/slapd/back-bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
45398   "servers/slapd/back-dnssrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
45399   "servers/slapd/back-hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
45400   "servers/slapd/back-ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
45401   "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
45402   "servers/slapd/back-ldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
45403   "servers/slapd/back-meta/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
45404   "servers/slapd/back-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
45405   "servers/slapd/back-null/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
45406   "servers/slapd/back-passwd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
45407   "servers/slapd/back-perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
45408   "servers/slapd/back-relay/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
45409   "servers/slapd/back-shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
45410   "servers/slapd/back-sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
45411   "servers/slapd/shell-backends/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
45412   "servers/slapd/slapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45413   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45414   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45415   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45416   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45417   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45418   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45419   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45420   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45421   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45422   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45423   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45424 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45425    { (exit 1); exit 1; }; };;
45426   esac
45427 done
45428
45429 # If the user did not use the arguments to specify the items to instantiate,
45430 # then the envvar interface is used.  Set only those that are not.
45431 # We use the long form for the default assignment because of an extremely
45432 # bizarre bug on SunOS 4.1.3.
45433 if $ac_need_defaults; then
45434   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45435   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45436   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45437 fi
45438
45439 # Have a temporary directory for convenience.  Make it in the build tree
45440 # simply because there is no reason to put it here, and in addition,
45441 # creating and moving files from /tmp can sometimes cause problems.
45442 # Create a temporary directory, and hook for its removal unless debugging.
45443 $debug ||
45444 {
45445   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45446   trap '{ (exit 1); exit 1; }' 1 2 13 15
45447 }
45448
45449 # Create a (secure) tmp directory for tmp files.
45450
45451 {
45452   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45453   test -n "$tmp" && test -d "$tmp"
45454 }  ||
45455 {
45456   tmp=./confstat$$-$RANDOM
45457   (umask 077 && mkdir $tmp)
45458 } ||
45459 {
45460    echo "$me: cannot create a temporary directory in ." >&2
45461    { (exit 1); exit 1; }
45462 }
45463
45464 _ACEOF
45465
45466 cat >>$CONFIG_STATUS <<_ACEOF
45467
45468 #
45469 # CONFIG_FILES section.
45470 #
45471
45472 # No need to generate the scripts if there are no CONFIG_FILES.
45473 # This happens for instance when ./config.status config.h
45474 if test -n "\$CONFIG_FILES"; then
45475   # Protect against being on the right side of a sed subst in config.status.
45476   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45477    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45478 s,@SHELL@,$SHELL,;t t
45479 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45480 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45481 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45482 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45483 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45484 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45485 s,@exec_prefix@,$exec_prefix,;t t
45486 s,@prefix@,$prefix,;t t
45487 s,@program_transform_name@,$program_transform_name,;t t
45488 s,@bindir@,$bindir,;t t
45489 s,@sbindir@,$sbindir,;t t
45490 s,@libexecdir@,$libexecdir,;t t
45491 s,@datadir@,$datadir,;t t
45492 s,@sysconfdir@,$sysconfdir,;t t
45493 s,@sharedstatedir@,$sharedstatedir,;t t
45494 s,@localstatedir@,$localstatedir,;t t
45495 s,@libdir@,$libdir,;t t
45496 s,@includedir@,$includedir,;t t
45497 s,@oldincludedir@,$oldincludedir,;t t
45498 s,@infodir@,$infodir,;t t
45499 s,@mandir@,$mandir,;t t
45500 s,@build_alias@,$build_alias,;t t
45501 s,@host_alias@,$host_alias,;t t
45502 s,@target_alias@,$target_alias,;t t
45503 s,@DEFS@,$DEFS,;t t
45504 s,@ECHO_C@,$ECHO_C,;t t
45505 s,@ECHO_N@,$ECHO_N,;t t
45506 s,@ECHO_T@,$ECHO_T,;t t
45507 s,@LIBS@,$LIBS,;t t
45508 s,@build@,$build,;t t
45509 s,@build_cpu@,$build_cpu,;t t
45510 s,@build_vendor@,$build_vendor,;t t
45511 s,@build_os@,$build_os,;t t
45512 s,@host@,$host,;t t
45513 s,@host_cpu@,$host_cpu,;t t
45514 s,@host_vendor@,$host_vendor,;t t
45515 s,@host_os@,$host_os,;t t
45516 s,@target@,$target,;t t
45517 s,@target_cpu@,$target_cpu,;t t
45518 s,@target_vendor@,$target_vendor,;t t
45519 s,@target_os@,$target_os,;t t
45520 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45521 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45522 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45523 s,@CYGPATH_W@,$CYGPATH_W,;t t
45524 s,@PACKAGE@,$PACKAGE,;t t
45525 s,@VERSION@,$VERSION,;t t
45526 s,@ACLOCAL@,$ACLOCAL,;t t
45527 s,@AUTOCONF@,$AUTOCONF,;t t
45528 s,@AUTOMAKE@,$AUTOMAKE,;t t
45529 s,@AUTOHEADER@,$AUTOHEADER,;t t
45530 s,@MAKEINFO@,$MAKEINFO,;t t
45531 s,@install_sh@,$install_sh,;t t
45532 s,@STRIP@,$STRIP,;t t
45533 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45534 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45535 s,@mkdir_p@,$mkdir_p,;t t
45536 s,@AWK@,$AWK,;t t
45537 s,@SET_MAKE@,$SET_MAKE,;t t
45538 s,@am__leading_dot@,$am__leading_dot,;t t
45539 s,@AMTAR@,$AMTAR,;t t
45540 s,@am__tar@,$am__tar,;t t
45541 s,@am__untar@,$am__untar,;t t
45542 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45543 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45544 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45545 s,@top_builddir@,$top_builddir,;t t
45546 s,@ldap_subdir@,$ldap_subdir,;t t
45547 s,@CC@,$CC,;t t
45548 s,@AR@,$AR,;t t
45549 s,@CFLAGS@,$CFLAGS,;t t
45550 s,@LDFLAGS@,$LDFLAGS,;t t
45551 s,@CPPFLAGS@,$CPPFLAGS,;t t
45552 s,@ac_ct_CC@,$ac_ct_CC,;t t
45553 s,@EXEEXT@,$EXEEXT,;t t
45554 s,@OBJEXT@,$OBJEXT,;t t
45555 s,@DEPDIR@,$DEPDIR,;t t
45556 s,@am__include@,$am__include,;t t
45557 s,@am__quote@,$am__quote,;t t
45558 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45559 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45560 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45561 s,@CCDEPMODE@,$CCDEPMODE,;t t
45562 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45563 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45564 s,@EGREP@,$EGREP,;t t
45565 s,@LN_S@,$LN_S,;t t
45566 s,@ECHO@,$ECHO,;t t
45567 s,@ac_ct_AR@,$ac_ct_AR,;t t
45568 s,@RANLIB@,$RANLIB,;t t
45569 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45570 s,@DLLTOOL@,$DLLTOOL,;t t
45571 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45572 s,@AS@,$AS,;t t
45573 s,@ac_ct_AS@,$ac_ct_AS,;t t
45574 s,@OBJDUMP@,$OBJDUMP,;t t
45575 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45576 s,@CPP@,$CPP,;t t
45577 s,@LIBTOOL@,$LIBTOOL,;t t
45578 s,@PERLBIN@,$PERLBIN,;t t
45579 s,@OL_MKDEP@,$OL_MKDEP,;t t
45580 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45581 s,@LTSTATIC@,$LTSTATIC,;t t
45582 s,@LIBOBJS@,$LIBOBJS,;t t
45583 s,@LIBSRCS@,$LIBSRCS,;t t
45584 s,@PLAT@,$PLAT,;t t
45585 s,@WITH_SASL@,$WITH_SASL,;t t
45586 s,@WITH_TLS@,$WITH_TLS,;t t
45587 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45588 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45589 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45590 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45591 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45592 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45593 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45594 s,@BUILD_BDB@,$BUILD_BDB,;t t
45595 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45596 s,@BUILD_HDB@,$BUILD_HDB,;t t
45597 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45598 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45599 s,@BUILD_META@,$BUILD_META,;t t
45600 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45601 s,@BUILD_NULL@,$BUILD_NULL,;t t
45602 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45603 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45604 s,@BUILD_PERL@,$BUILD_PERL,;t t
45605 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45606 s,@BUILD_SQL@,$BUILD_SQL,;t t
45607 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45608 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
45609 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45610 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45611 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45612 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45613 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45614 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45615 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45616 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45617 s,@BUILD_RWM@,$BUILD_RWM,;t t
45618 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45619 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45620 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45621 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45622 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45623 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45624 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45625 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45626 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45627 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45628 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45629 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45630 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45631 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45632 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45633 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45634 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45635 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45636 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45637 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45638 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45639 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45640 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45641 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45642 s,@SASL_LIBS@,$SASL_LIBS,;t t
45643 s,@TLS_LIBS@,$TLS_LIBS,;t t
45644 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45645 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45646 s,@LIBSLAPI@,$LIBSLAPI,;t t
45647 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45648 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45649 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45650 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45651 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45652 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45653 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45654 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45655 CEOF
45656
45657 _ACEOF
45658
45659   cat >>$CONFIG_STATUS <<\_ACEOF
45660   # Split the substitutions into bite-sized pieces for seds with
45661   # small command number limits, like on Digital OSF/1 and HP-UX.
45662   ac_max_sed_lines=48
45663   ac_sed_frag=1 # Number of current file.
45664   ac_beg=1 # First line for current file.
45665   ac_end=$ac_max_sed_lines # Line after last line for current file.
45666   ac_more_lines=:
45667   ac_sed_cmds=
45668   while $ac_more_lines; do
45669     if test $ac_beg -gt 1; then
45670       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45671     else
45672       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45673     fi
45674     if test ! -s $tmp/subs.frag; then
45675       ac_more_lines=false
45676     else
45677       # The purpose of the label and of the branching condition is to
45678       # speed up the sed processing (if there are no `@' at all, there
45679       # is no need to browse any of the substitutions).
45680       # These are the two extra sed commands mentioned above.
45681       (echo ':t
45682   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45683       if test -z "$ac_sed_cmds"; then
45684         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45685       else
45686         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45687       fi
45688       ac_sed_frag=`expr $ac_sed_frag + 1`
45689       ac_beg=$ac_end
45690       ac_end=`expr $ac_end + $ac_max_sed_lines`
45691     fi
45692   done
45693   if test -z "$ac_sed_cmds"; then
45694     ac_sed_cmds=cat
45695   fi
45696 fi # test -n "$CONFIG_FILES"
45697
45698 _ACEOF
45699 cat >>$CONFIG_STATUS <<\_ACEOF
45700 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45701   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45702   case $ac_file in
45703   - | *:- | *:-:* ) # input from stdin
45704         cat >$tmp/stdin
45705         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45706         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45707   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45708         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45709   * )   ac_file_in=$ac_file.in ;;
45710   esac
45711
45712   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45713   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45715          X"$ac_file" : 'X\(//\)[^/]' \| \
45716          X"$ac_file" : 'X\(//\)$' \| \
45717          X"$ac_file" : 'X\(/\)' \| \
45718          .     : '\(.\)' 2>/dev/null ||
45719 echo X"$ac_file" |
45720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45722           /^X\(\/\/\)$/{ s//\1/; q; }
45723           /^X\(\/\).*/{ s//\1/; q; }
45724           s/.*/./; q'`
45725   { if $as_mkdir_p; then
45726     mkdir -p "$ac_dir"
45727   else
45728     as_dir="$ac_dir"
45729     as_dirs=
45730     while test ! -d "$as_dir"; do
45731       as_dirs="$as_dir $as_dirs"
45732       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45734          X"$as_dir" : 'X\(//\)[^/]' \| \
45735          X"$as_dir" : 'X\(//\)$' \| \
45736          X"$as_dir" : 'X\(/\)' \| \
45737          .     : '\(.\)' 2>/dev/null ||
45738 echo X"$as_dir" |
45739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45740           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45741           /^X\(\/\/\)$/{ s//\1/; q; }
45742           /^X\(\/\).*/{ s//\1/; q; }
45743           s/.*/./; q'`
45744     done
45745     test ! -n "$as_dirs" || mkdir $as_dirs
45746   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45747 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45748    { (exit 1); exit 1; }; }; }
45749
45750   ac_builddir=.
45751
45752 if test "$ac_dir" != .; then
45753   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45754   # A "../" for each directory in $ac_dir_suffix.
45755   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45756 else
45757   ac_dir_suffix= ac_top_builddir=
45758 fi
45759
45760 case $srcdir in
45761   .)  # No --srcdir option.  We are building in place.
45762     ac_srcdir=.
45763     if test -z "$ac_top_builddir"; then
45764        ac_top_srcdir=.
45765     else
45766        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45767     fi ;;
45768   [\\/]* | ?:[\\/]* )  # Absolute path.
45769     ac_srcdir=$srcdir$ac_dir_suffix;
45770     ac_top_srcdir=$srcdir ;;
45771   *) # Relative path.
45772     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45773     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45774 esac
45775
45776 # Do not use `cd foo && pwd` to compute absolute paths, because
45777 # the directories may not exist.
45778 case `pwd` in
45779 .) ac_abs_builddir="$ac_dir";;
45780 *)
45781   case "$ac_dir" in
45782   .) ac_abs_builddir=`pwd`;;
45783   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45784   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45785   esac;;
45786 esac
45787 case $ac_abs_builddir in
45788 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45789 *)
45790   case ${ac_top_builddir}. in
45791   .) ac_abs_top_builddir=$ac_abs_builddir;;
45792   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45793   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45794   esac;;
45795 esac
45796 case $ac_abs_builddir in
45797 .) ac_abs_srcdir=$ac_srcdir;;
45798 *)
45799   case $ac_srcdir in
45800   .) ac_abs_srcdir=$ac_abs_builddir;;
45801   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45802   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45803   esac;;
45804 esac
45805 case $ac_abs_builddir in
45806 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45807 *)
45808   case $ac_top_srcdir in
45809   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45810   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45811   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45812   esac;;
45813 esac
45814
45815
45816   case $INSTALL in
45817   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45818   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45819   esac
45820
45821   if test x"$ac_file" != x-; then
45822     { echo "$as_me:$LINENO: creating $ac_file" >&5
45823 echo "$as_me: creating $ac_file" >&6;}
45824     rm -f "$ac_file"
45825   fi
45826   # Let's still pretend it is `configure' which instantiates (i.e., don't
45827   # use $as_me), people would be surprised to read:
45828   #    /* config.h.  Generated by config.status.  */
45829   if test x"$ac_file" = x-; then
45830     configure_input=
45831   else
45832     configure_input="$ac_file.  "
45833   fi
45834   configure_input=$configure_input"Generated from `echo $ac_file_in |
45835                                      sed 's,.*/,,'` by configure."
45836
45837   # First look for the input files in the build tree, otherwise in the
45838   # src tree.
45839   ac_file_inputs=`IFS=:
45840     for f in $ac_file_in; do
45841       case $f in
45842       -) echo $tmp/stdin ;;
45843       [\\/$]*)
45844          # Absolute (can't be DOS-style, as IFS=:)
45845          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45846 echo "$as_me: error: cannot find input file: $f" >&2;}
45847    { (exit 1); exit 1; }; }
45848          echo "$f";;
45849       *) # Relative
45850          if test -f "$f"; then
45851            # Build tree
45852            echo "$f"
45853          elif test -f "$srcdir/$f"; then
45854            # Source tree
45855            echo "$srcdir/$f"
45856          else
45857            # /dev/null tree
45858            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45859 echo "$as_me: error: cannot find input file: $f" >&2;}
45860    { (exit 1); exit 1; }; }
45861          fi;;
45862       esac
45863     done` || { (exit 1); exit 1; }
45864 _ACEOF
45865 cat >>$CONFIG_STATUS <<_ACEOF
45866   sed "$ac_vpsub
45867 $extrasub
45868 _ACEOF
45869 cat >>$CONFIG_STATUS <<\_ACEOF
45870 :t
45871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45872 s,@configure_input@,$configure_input,;t t
45873 s,@srcdir@,$ac_srcdir,;t t
45874 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45875 s,@top_srcdir@,$ac_top_srcdir,;t t
45876 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45877 s,@builddir@,$ac_builddir,;t t
45878 s,@abs_builddir@,$ac_abs_builddir,;t t
45879 s,@top_builddir@,$ac_top_builddir,;t t
45880 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45881 s,@INSTALL@,$ac_INSTALL,;t t
45882 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45883   rm -f $tmp/stdin
45884   if test x"$ac_file" != x-; then
45885     mv $tmp/out $ac_file
45886   else
45887     cat $tmp/out
45888     rm -f $tmp/out
45889   fi
45890
45891 done
45892 _ACEOF
45893 cat >>$CONFIG_STATUS <<\_ACEOF
45894
45895 #
45896 # CONFIG_HEADER section.
45897 #
45898
45899 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45900 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45901 #
45902 # ac_d sets the value in "#define NAME VALUE" lines.
45903 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45904 ac_dB='[         ].*$,\1#\2'
45905 ac_dC=' '
45906 ac_dD=',;t'
45907 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45908 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45909 ac_uB='$,\1#\2define\3'
45910 ac_uC=' '
45911 ac_uD=',;t'
45912
45913 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45914   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45915   case $ac_file in
45916   - | *:- | *:-:* ) # input from stdin
45917         cat >$tmp/stdin
45918         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45919         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45920   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45921         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45922   * )   ac_file_in=$ac_file.in ;;
45923   esac
45924
45925   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45926 echo "$as_me: creating $ac_file" >&6;}
45927
45928   # First look for the input files in the build tree, otherwise in the
45929   # src tree.
45930   ac_file_inputs=`IFS=:
45931     for f in $ac_file_in; do
45932       case $f in
45933       -) echo $tmp/stdin ;;
45934       [\\/$]*)
45935          # Absolute (can't be DOS-style, as IFS=:)
45936          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45937 echo "$as_me: error: cannot find input file: $f" >&2;}
45938    { (exit 1); exit 1; }; }
45939          # Do quote $f, to prevent DOS paths from being IFS'd.
45940          echo "$f";;
45941       *) # Relative
45942          if test -f "$f"; then
45943            # Build tree
45944            echo "$f"
45945          elif test -f "$srcdir/$f"; then
45946            # Source tree
45947            echo "$srcdir/$f"
45948          else
45949            # /dev/null tree
45950            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45951 echo "$as_me: error: cannot find input file: $f" >&2;}
45952    { (exit 1); exit 1; }; }
45953          fi;;
45954       esac
45955     done` || { (exit 1); exit 1; }
45956   # Remove the trailing spaces.
45957   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45958
45959 _ACEOF
45960
45961 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45962 # `conftest.undefs', that substitutes the proper values into
45963 # config.h.in to produce config.h.  The first handles `#define'
45964 # templates, and the second `#undef' templates.
45965 # And first: Protect against being on the right side of a sed subst in
45966 # config.status.  Protect against being in an unquoted here document
45967 # in config.status.
45968 rm -f conftest.defines conftest.undefs
45969 # Using a here document instead of a string reduces the quoting nightmare.
45970 # Putting comments in sed scripts is not portable.
45971 #
45972 # `end' is used to avoid that the second main sed command (meant for
45973 # 0-ary CPP macros) applies to n-ary macro definitions.
45974 # See the Autoconf documentation for `clear'.
45975 cat >confdef2sed.sed <<\_ACEOF
45976 s/[\\&,]/\\&/g
45977 s,[\\$`],\\&,g
45978 t clear
45979 : clear
45980 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45981 t end
45982 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45983 : end
45984 _ACEOF
45985 # If some macros were called several times there might be several times
45986 # the same #defines, which is useless.  Nevertheless, we may not want to
45987 # sort them, since we want the *last* AC-DEFINE to be honored.
45988 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45989 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45990 rm -f confdef2sed.sed
45991
45992 # This sed command replaces #undef with comments.  This is necessary, for
45993 # example, in the case of _POSIX_SOURCE, which is predefined and required
45994 # on some systems where configure will not decide to define it.
45995 cat >>conftest.undefs <<\_ACEOF
45996 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45997 _ACEOF
45998
45999 # Break up conftest.defines because some shells have a limit on the size
46000 # of here documents, and old seds have small limits too (100 cmds).
46001 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46002 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46003 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46004 echo '  :' >>$CONFIG_STATUS
46005 rm -f conftest.tail
46006 while grep . conftest.defines >/dev/null
46007 do
46008   # Write a limited-size here document to $tmp/defines.sed.
46009   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46010   # Speed up: don't consider the non `#define' lines.
46011   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
46012   # Work around the forget-to-reset-the-flag bug.
46013   echo 't clr' >>$CONFIG_STATUS
46014   echo ': clr' >>$CONFIG_STATUS
46015   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46016   echo 'CEOF
46017   sed -f $tmp/defines.sed $tmp/in >$tmp/out
46018   rm -f $tmp/in
46019   mv $tmp/out $tmp/in
46020 ' >>$CONFIG_STATUS
46021   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46022   rm -f conftest.defines
46023   mv conftest.tail conftest.defines
46024 done
46025 rm -f conftest.defines
46026 echo '  fi # grep' >>$CONFIG_STATUS
46027 echo >>$CONFIG_STATUS
46028
46029 # Break up conftest.undefs because some shells have a limit on the size
46030 # of here documents, and old seds have small limits too (100 cmds).
46031 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
46032 rm -f conftest.tail
46033 while grep . conftest.undefs >/dev/null
46034 do
46035   # Write a limited-size here document to $tmp/undefs.sed.
46036   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46037   # Speed up: don't consider the non `#undef'
46038   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
46039   # Work around the forget-to-reset-the-flag bug.
46040   echo 't clr' >>$CONFIG_STATUS
46041   echo ': clr' >>$CONFIG_STATUS
46042   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46043   echo 'CEOF
46044   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46045   rm -f $tmp/in
46046   mv $tmp/out $tmp/in
46047 ' >>$CONFIG_STATUS
46048   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46049   rm -f conftest.undefs
46050   mv conftest.tail conftest.undefs
46051 done
46052 rm -f conftest.undefs
46053
46054 cat >>$CONFIG_STATUS <<\_ACEOF
46055   # Let's still pretend it is `configure' which instantiates (i.e., don't
46056   # use $as_me), people would be surprised to read:
46057   #    /* config.h.  Generated by config.status.  */
46058   if test x"$ac_file" = x-; then
46059     echo "/* Generated by configure.  */" >$tmp/config.h
46060   else
46061     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
46062   fi
46063   cat $tmp/in >>$tmp/config.h
46064   rm -f $tmp/in
46065   if test x"$ac_file" != x-; then
46066     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46067       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46068 echo "$as_me: $ac_file is unchanged" >&6;}
46069     else
46070       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46072          X"$ac_file" : 'X\(//\)[^/]' \| \
46073          X"$ac_file" : 'X\(//\)$' \| \
46074          X"$ac_file" : 'X\(/\)' \| \
46075          .     : '\(.\)' 2>/dev/null ||
46076 echo X"$ac_file" |
46077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46079           /^X\(\/\/\)$/{ s//\1/; q; }
46080           /^X\(\/\).*/{ s//\1/; q; }
46081           s/.*/./; q'`
46082       { if $as_mkdir_p; then
46083     mkdir -p "$ac_dir"
46084   else
46085     as_dir="$ac_dir"
46086     as_dirs=
46087     while test ! -d "$as_dir"; do
46088       as_dirs="$as_dir $as_dirs"
46089       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46091          X"$as_dir" : 'X\(//\)[^/]' \| \
46092          X"$as_dir" : 'X\(//\)$' \| \
46093          X"$as_dir" : 'X\(/\)' \| \
46094          .     : '\(.\)' 2>/dev/null ||
46095 echo X"$as_dir" |
46096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46097           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46098           /^X\(\/\/\)$/{ s//\1/; q; }
46099           /^X\(\/\).*/{ s//\1/; q; }
46100           s/.*/./; q'`
46101     done
46102     test ! -n "$as_dirs" || mkdir $as_dirs
46103   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46105    { (exit 1); exit 1; }; }; }
46106
46107       rm -f $ac_file
46108       mv $tmp/config.h $ac_file
46109     fi
46110   else
46111     cat $tmp/config.h
46112     rm -f $tmp/config.h
46113   fi
46114 # Compute $ac_file's index in $config_headers.
46115 _am_stamp_count=1
46116 for _am_header in $config_headers :; do
46117   case $_am_header in
46118     $ac_file | $ac_file:* )
46119       break ;;
46120     * )
46121       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46122   esac
46123 done
46124 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46125 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46126          X$ac_file : 'X\(//\)[^/]' \| \
46127          X$ac_file : 'X\(//\)$' \| \
46128          X$ac_file : 'X\(/\)' \| \
46129          .     : '\(.\)' 2>/dev/null ||
46130 echo X$ac_file |
46131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46133           /^X\(\/\/\)$/{ s//\1/; q; }
46134           /^X\(\/\).*/{ s//\1/; q; }
46135           s/.*/./; q'`/stamp-h$_am_stamp_count
46136 done
46137 _ACEOF
46138 cat >>$CONFIG_STATUS <<\_ACEOF
46139
46140 #
46141 # CONFIG_COMMANDS section.
46142 #
46143 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46144   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46145   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46146   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46147 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46148          X"$ac_dest" : 'X\(//\)[^/]' \| \
46149          X"$ac_dest" : 'X\(//\)$' \| \
46150          X"$ac_dest" : 'X\(/\)' \| \
46151          .     : '\(.\)' 2>/dev/null ||
46152 echo X"$ac_dest" |
46153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46155           /^X\(\/\/\)$/{ s//\1/; q; }
46156           /^X\(\/\).*/{ s//\1/; q; }
46157           s/.*/./; q'`
46158   { if $as_mkdir_p; then
46159     mkdir -p "$ac_dir"
46160   else
46161     as_dir="$ac_dir"
46162     as_dirs=
46163     while test ! -d "$as_dir"; do
46164       as_dirs="$as_dir $as_dirs"
46165       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46167          X"$as_dir" : 'X\(//\)[^/]' \| \
46168          X"$as_dir" : 'X\(//\)$' \| \
46169          X"$as_dir" : 'X\(/\)' \| \
46170          .     : '\(.\)' 2>/dev/null ||
46171 echo X"$as_dir" |
46172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46174           /^X\(\/\/\)$/{ s//\1/; q; }
46175           /^X\(\/\).*/{ s//\1/; q; }
46176           s/.*/./; q'`
46177     done
46178     test ! -n "$as_dirs" || mkdir $as_dirs
46179   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46180 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46181    { (exit 1); exit 1; }; }; }
46182
46183   ac_builddir=.
46184
46185 if test "$ac_dir" != .; then
46186   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46187   # A "../" for each directory in $ac_dir_suffix.
46188   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46189 else
46190   ac_dir_suffix= ac_top_builddir=
46191 fi
46192
46193 case $srcdir in
46194   .)  # No --srcdir option.  We are building in place.
46195     ac_srcdir=.
46196     if test -z "$ac_top_builddir"; then
46197        ac_top_srcdir=.
46198     else
46199        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46200     fi ;;
46201   [\\/]* | ?:[\\/]* )  # Absolute path.
46202     ac_srcdir=$srcdir$ac_dir_suffix;
46203     ac_top_srcdir=$srcdir ;;
46204   *) # Relative path.
46205     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46206     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46207 esac
46208
46209 # Do not use `cd foo && pwd` to compute absolute paths, because
46210 # the directories may not exist.
46211 case `pwd` in
46212 .) ac_abs_builddir="$ac_dir";;
46213 *)
46214   case "$ac_dir" in
46215   .) ac_abs_builddir=`pwd`;;
46216   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46217   *) ac_abs_builddir=`pwd`/"$ac_dir";;
46218   esac;;
46219 esac
46220 case $ac_abs_builddir in
46221 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46222 *)
46223   case ${ac_top_builddir}. in
46224   .) ac_abs_top_builddir=$ac_abs_builddir;;
46225   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46226   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46227   esac;;
46228 esac
46229 case $ac_abs_builddir in
46230 .) ac_abs_srcdir=$ac_srcdir;;
46231 *)
46232   case $ac_srcdir in
46233   .) ac_abs_srcdir=$ac_abs_builddir;;
46234   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46235   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46236   esac;;
46237 esac
46238 case $ac_abs_builddir in
46239 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46240 *)
46241   case $ac_top_srcdir in
46242   .) ac_abs_top_srcdir=$ac_abs_builddir;;
46243   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46244   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46245   esac;;
46246 esac
46247
46248
46249   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46250 echo "$as_me: executing $ac_dest commands" >&6;}
46251   case $ac_dest in
46252     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46253   # Strip MF so we end up with the name of the file.
46254   mf=`echo "$mf" | sed -e 's/:.*$//'`
46255   # Check whether this is an Automake generated Makefile or not.
46256   # We used to match only the files named `Makefile.in', but
46257   # some people rename them; so instead we look at the file content.
46258   # Grep'ing the first line is not enough: some people post-process
46259   # each Makefile.in and add a new line on top of each file to say so.
46260   # So let's grep whole file.
46261   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46262     dirpart=`(dirname "$mf") 2>/dev/null ||
46263 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46264          X"$mf" : 'X\(//\)[^/]' \| \
46265          X"$mf" : 'X\(//\)$' \| \
46266          X"$mf" : 'X\(/\)' \| \
46267          .     : '\(.\)' 2>/dev/null ||
46268 echo X"$mf" |
46269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46271           /^X\(\/\/\)$/{ s//\1/; q; }
46272           /^X\(\/\).*/{ s//\1/; q; }
46273           s/.*/./; q'`
46274   else
46275     continue
46276   fi
46277   # Extract the definition of DEPDIR, am__include, and am__quote
46278   # from the Makefile without running `make'.
46279   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46280   test -z "$DEPDIR" && continue
46281   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46282   test -z "am__include" && continue
46283   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46284   # When using ansi2knr, U may be empty or an underscore; expand it
46285   U=`sed -n 's/^U = //p' < "$mf"`
46286   # Find all dependency output files, they are included files with
46287   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46288   # simplest approach to changing $(DEPDIR) to its actual value in the
46289   # expansion.
46290   for file in `sed -n "
46291     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46292        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46293     # Make sure the directory exists.
46294     test -f "$dirpart/$file" && continue
46295     fdir=`(dirname "$file") 2>/dev/null ||
46296 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46297          X"$file" : 'X\(//\)[^/]' \| \
46298          X"$file" : 'X\(//\)$' \| \
46299          X"$file" : 'X\(/\)' \| \
46300          .     : '\(.\)' 2>/dev/null ||
46301 echo X"$file" |
46302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46304           /^X\(\/\/\)$/{ s//\1/; q; }
46305           /^X\(\/\).*/{ s//\1/; q; }
46306           s/.*/./; q'`
46307     { if $as_mkdir_p; then
46308     mkdir -p $dirpart/$fdir
46309   else
46310     as_dir=$dirpart/$fdir
46311     as_dirs=
46312     while test ! -d "$as_dir"; do
46313       as_dirs="$as_dir $as_dirs"
46314       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46316          X"$as_dir" : 'X\(//\)[^/]' \| \
46317          X"$as_dir" : 'X\(//\)$' \| \
46318          X"$as_dir" : 'X\(/\)' \| \
46319          .     : '\(.\)' 2>/dev/null ||
46320 echo X"$as_dir" |
46321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46323           /^X\(\/\/\)$/{ s//\1/; q; }
46324           /^X\(\/\).*/{ s//\1/; q; }
46325           s/.*/./; q'`
46326     done
46327     test ! -n "$as_dirs" || mkdir $as_dirs
46328   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46329 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46330    { (exit 1); exit 1; }; }; }
46331
46332     # echo "creating $dirpart/$file"
46333     echo '# dummy' > "$dirpart/$file"
46334   done
46335 done
46336  ;;
46337     default )
46338 chmod +x tests/run
46339 date > stamp-h
46340 BACKENDSC="servers/slapd/backends.c"
46341 echo "Making $BACKENDSC"
46342 rm -f $BACKENDSC
46343 cat > $BACKENDSC << ENDX
46344 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46345  *
46346  * Copyright 1998-2006 The OpenLDAP Foundation.
46347  * All rights reserved.
46348  *
46349  * Redistribution and use in source and binary forms, with or without
46350  * modification, are permitted only as authorized by the OpenLDAP
46351  * Public License.
46352  *
46353  * A copy of this license is available in the file LICENSE in the
46354  * top-level directory of the distribution or, alternatively, at
46355  * <http://www.OpenLDAP.org/license.html>.
46356  */
46357 /* This file is automatically generated by configure; please do not edit. */
46358
46359 #include "portable.h"
46360 #include "slap.h"
46361
46362 ENDX
46363 if test "${STATIC_BACKENDS}"; then
46364         for b in config ${STATIC_BACKENDS}; do
46365                 bb=`echo "${b}" | sed -e 's/back-//'`
46366                 cat >> $BACKENDSC << ENDX
46367 extern BI_init ${bb}_back_initialize;
46368 ENDX
46369         done
46370
46371         cat >> $BACKENDSC << ENDX
46372
46373 BackendInfo slap_binfo[] = {
46374 ENDX
46375
46376         for b in config ${STATIC_BACKENDS}; do
46377                 bb=`echo "${b}" | sed -e 's/back-//'`
46378                 echo "    Add ${bb} ..."
46379                 cat >> $BACKENDSC << ENDX
46380         { "${bb}", ${bb}_back_initialize },
46381 ENDX
46382         done
46383
46384         cat >> $BACKENDSC << ENDX
46385         { NULL, NULL },
46386 };
46387
46388 /* end of generated file */
46389 ENDX
46390 fi
46391 OVERLAYSC="servers/slapd/overlays/statover.c"
46392 echo "Making $OVERLAYSC"
46393 rm -f $OVERLAYSC
46394 cat > $OVERLAYSC << ENDX
46395 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46396  *
46397  * Copyright 1998-2006 The OpenLDAP Foundation.
46398  * All rights reserved.
46399  *
46400  * Redistribution and use in source and binary forms, with or without
46401  * modification, are permitted only as authorized by the OpenLDAP
46402  * Public License.
46403  *
46404  * A copy of this license is available in the file LICENSE in the
46405  * top-level directory of the distribution or, alternatively, at
46406  * <http://www.OpenLDAP.org/license.html>.
46407  */
46408 /* This file is automatically generated by configure; please do not edit. */
46409
46410 #include "portable.h"
46411 #include "slap.h"
46412
46413 ENDX
46414 if test "${STATIC_OVERLAYS}"; then
46415         for o in ${STATIC_OVERLAYS}; do
46416                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46417                 cat >> $OVERLAYSC << ENDX
46418 extern OV_init ${oo}_initialize;
46419 ENDX
46420         done
46421 fi
46422
46423 cat >> $OVERLAYSC << ENDX
46424
46425 OverlayInit slap_oinfo[] = {
46426 ENDX
46427
46428 if test "${STATIC_OVERLAYS}"; then
46429         for o in ${STATIC_OVERLAYS}; do
46430                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46431                 echo "    Add ${oo} ..."
46432                 cat >> $OVERLAYSC << ENDX
46433         { "${oo}", ${oo}_initialize },
46434 ENDX
46435         done
46436 fi
46437
46438         cat >> $OVERLAYSC << ENDX
46439         { NULL, NULL },
46440 };
46441
46442 /* end of generated file */
46443 ENDX
46444
46445 echo Please run \"make depend\" to build dependencies
46446  ;;
46447   esac
46448 done
46449 _ACEOF
46450
46451 cat >>$CONFIG_STATUS <<\_ACEOF
46452
46453 { (exit 0); exit 0; }
46454 _ACEOF
46455 chmod +x $CONFIG_STATUS
46456 ac_clean_files=$ac_clean_files_save
46457
46458
46459 # configure is writing to config.log, and then calls config.status.
46460 # config.status does its own redirection, appending to config.log.
46461 # Unfortunately, on DOS this fails, as config.log is still kept open
46462 # by configure, so config.status won't be able to write to it; its
46463 # output is simply discarded.  So we exec the FD to /dev/null,
46464 # effectively closing config.log, so it can be properly (re)opened and
46465 # appended to by config.status.  When coming back to configure, we
46466 # need to make the FD available again.
46467 if test "$no_create" != yes; then
46468   ac_cs_success=:
46469   ac_config_status_args=
46470   test "$silent" = yes &&
46471     ac_config_status_args="$ac_config_status_args --quiet"
46472   exec 5>/dev/null
46473   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46474   exec 5>>config.log
46475   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46476   # would make configure fail if this is the last instruction.
46477   $ac_cs_success || { (exit 1); exit 1; }
46478 fi
46479