]> git.sur5r.net Git - openldap/blob - configure
allow execution of arbitrary extended operations (right now there is no way
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.625 2006/02/06 03:51:55 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_DDS 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 ICU_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 no|yes|traditional [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-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1038       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1039       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1040     --enable-meta         enable metadirectory backend no|yes|mod [no]
1041     --enable-monitor      enable monitor backend no|yes|mod [yes]
1042     --enable-null         enable null backend no|yes|mod [no]
1043     --enable-passwd       enable passwd backend no|yes|mod [no]
1044     --enable-perl         enable perl backend no|yes|mod [no]
1045     --enable-relay        enable relay backend no|yes|mod [yes]
1046     --enable-shell        enable shell backend no|yes|mod [no]
1047     --enable-sql          enable sql backend no|yes|mod [no]
1048
1049 SLAPD Overlay Options:
1050     --enable-overlays     enable all available overlays no|yes|mod
1051     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1052     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1053     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1054     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1055     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1056     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1057     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1058     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1059     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1060     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1061     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1062     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1063     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1064     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1065     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1066
1067 SLURPD (Replication Daemon) Options:
1068   --enable-slurpd         enable building slurpd [auto]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-threads          with threads [auto]
1088   --with-tls              with TLS/SSL support [auto]
1089   --with-yielding-select  with implicitly yielding select [auto]
1090   --with-multiple-precision
1091                           multiple precision support for statistics
1092                           auto|bignum|gmp [auto]
1093
1094   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095   --with-pic              try to use only PIC/non-PIC objects [default=use
1096                           both]
1097   --with-tags[=TAGS]
1098                           include additional configurations [automatic]
1099
1100 See INSTALL file for further details.
1101
1102 Some influential environment variables:
1103   CC          C compiler command
1104   CFLAGS      C compiler flags
1105   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106               nonstandard directory <lib dir>
1107   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108               headers in a nonstandard directory <include dir>
1109   CPP         C preprocessor
1110
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1113
1114 _ACEOF
1115 fi
1116
1117 if test "$ac_init_help" = "recursive"; then
1118   # If there are subdirs, report their specific --help.
1119   ac_popdir=`pwd`
1120   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121     test -d $ac_dir || continue
1122     ac_builddir=.
1123
1124 if test "$ac_dir" != .; then
1125   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126   # A "../" for each directory in $ac_dir_suffix.
1127   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 else
1129   ac_dir_suffix= ac_top_builddir=
1130 fi
1131
1132 case $srcdir in
1133   .)  # No --srcdir option.  We are building in place.
1134     ac_srcdir=.
1135     if test -z "$ac_top_builddir"; then
1136        ac_top_srcdir=.
1137     else
1138        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139     fi ;;
1140   [\\/]* | ?:[\\/]* )  # Absolute path.
1141     ac_srcdir=$srcdir$ac_dir_suffix;
1142     ac_top_srcdir=$srcdir ;;
1143   *) # Relative path.
1144     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 esac
1147
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1150 case `pwd` in
1151 .) ac_abs_builddir="$ac_dir";;
1152 *)
1153   case "$ac_dir" in
1154   .) ac_abs_builddir=`pwd`;;
1155   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157   esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *)
1162   case ${ac_top_builddir}. in
1163   .) ac_abs_top_builddir=$ac_abs_builddir;;
1164   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166   esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1170 *)
1171   case $ac_srcdir in
1172   .) ac_abs_srcdir=$ac_abs_builddir;;
1173   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175   esac;;
1176 esac
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *)
1180   case $ac_top_srcdir in
1181   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184   esac;;
1185 esac
1186
1187     cd $ac_dir
1188     # Check for guested configure; otherwise get Cygnus style configure.
1189     if test -f $ac_srcdir/configure.gnu; then
1190       echo
1191       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1192     elif test -f $ac_srcdir/configure; then
1193       echo
1194       $SHELL $ac_srcdir/configure  --help=recursive
1195     elif test -f $ac_srcdir/configure.ac ||
1196            test -f $ac_srcdir/configure.in; then
1197       echo
1198       $ac_configure --help
1199     else
1200       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1201     fi
1202     cd $ac_popdir
1203   done
1204 fi
1205
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1208   cat <<\_ACEOF
1209
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1213
1214 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1215 Restrictions apply, see COPYRIGHT and LICENSE files.
1216 _ACEOF
1217   exit 0
1218 fi
1219 exec 5>config.log
1220 cat >&5 <<_ACEOF
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1223
1224 It was created by $as_me, which was
1225 generated by GNU Autoconf 2.59.  Invocation command line was
1226
1227   $ $0 $@
1228
1229 _ACEOF
1230 {
1231 cat <<_ASUNAME
1232 ## --------- ##
1233 ## Platform. ##
1234 ## --------- ##
1235
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1244
1245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1252
1253 _ASUNAME
1254
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 for as_dir in $PATH
1257 do
1258   IFS=$as_save_IFS
1259   test -z "$as_dir" && as_dir=.
1260   echo "PATH: $as_dir"
1261 done
1262
1263 } >&5
1264
1265 cat >&5 <<_ACEOF
1266
1267
1268 ## ----------- ##
1269 ## Core tests. ##
1270 ## ----------- ##
1271
1272 _ACEOF
1273
1274
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_configure_args=
1281 ac_configure_args0=
1282 ac_configure_args1=
1283 ac_sep=
1284 ac_must_keep_next=false
1285 for ac_pass in 1 2
1286 do
1287   for ac_arg
1288   do
1289     case $ac_arg in
1290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292     | -silent | --silent | --silen | --sile | --sil)
1293       continue ;;
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     esac
1297     case $ac_pass in
1298     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299     2)
1300       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301       if test $ac_must_keep_next = true; then
1302         ac_must_keep_next=false # Got value, back to normal.
1303       else
1304         case $ac_arg in
1305           *=* | --config-cache | -C | -disable-* | --disable-* \
1306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308           | -with-* | --with-* | -without-* | --without-* | --x)
1309             case "$ac_configure_args0 " in
1310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311             esac
1312             ;;
1313           -* ) ac_must_keep_next=true ;;
1314         esac
1315       fi
1316       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317       # Get rid of the leading space.
1318       ac_sep=" "
1319       ;;
1320     esac
1321   done
1322 done
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log.  We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332   # Save into config.log some information that might help in debugging.
1333   {
1334     echo
1335
1336     cat <<\_ASBOX
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1340 _ASBOX
1341     echo
1342     # The following way of writing the cache mishandles newlines in values,
1343 {
1344   (set) 2>&1 |
1345     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346     *ac_space=\ *)
1347       sed -n \
1348         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350       ;;
1351     *)
1352       sed -n \
1353         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1354       ;;
1355     esac;
1356 }
1357     echo
1358
1359     cat <<\_ASBOX
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1363 _ASBOX
1364     echo
1365     for ac_var in $ac_subst_vars
1366     do
1367       eval ac_val=$`echo $ac_var`
1368       echo "$ac_var='"'"'$ac_val'"'"'"
1369     done | sort
1370     echo
1371
1372     if test -n "$ac_subst_files"; then
1373       cat <<\_ASBOX
1374 ## ------------- ##
1375 ## Output files. ##
1376 ## ------------- ##
1377 _ASBOX
1378       echo
1379       for ac_var in $ac_subst_files
1380       do
1381         eval ac_val=$`echo $ac_var`
1382         echo "$ac_var='"'"'$ac_val'"'"'"
1383       done | sort
1384       echo
1385     fi
1386
1387     if test -s confdefs.h; then
1388       cat <<\_ASBOX
1389 ## ----------- ##
1390 ## confdefs.h. ##
1391 ## ----------- ##
1392 _ASBOX
1393       echo
1394       sed "/^$/d" confdefs.h | sort
1395       echo
1396     fi
1397     test "$ac_signal" != 0 &&
1398       echo "$as_me: caught signal $ac_signal"
1399     echo "$as_me: exit $exit_status"
1400   } >&5
1401   rm -f core *.core &&
1402   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403     exit $exit_status
1404      ' 0
1405 for ac_signal in 1 2 13 15; do
1406   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 done
1408 ac_signal=0
1409
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 echo >confdefs.h
1414
1415 # Predefined preprocessor variables.
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 _ACEOF
1440
1441
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445   if test "x$prefix" != xNONE; then
1446     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447   else
1448     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449   fi
1450 fi
1451 for ac_site_file in $CONFIG_SITE; do
1452   if test -r "$ac_site_file"; then
1453     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455     sed 's/^/| /' "$ac_site_file" >&5
1456     . "$ac_site_file"
1457   fi
1458 done
1459
1460
1461 # Check that the precious variables saved in the cache have kept the same
1462 # value.
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467   eval ac_new_set=\$ac_env_${ac_var}_set
1468   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469   eval ac_new_val="\$ac_env_${ac_var}_value"
1470   case $ac_old_set,$ac_new_set in
1471     set,)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,set)
1476       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478       ac_cache_corrupted=: ;;
1479     ,);;
1480     *)
1481       if test "x$ac_old_val" != "x$ac_new_val"; then
1482         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1485 echo "$as_me:   former value:  $ac_old_val" >&2;}
1486         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1487 echo "$as_me:   current value: $ac_new_val" >&2;}
1488         ac_cache_corrupted=:
1489       fi;;
1490   esac
1491   # Pass precious variables to config.status.
1492   if test "$ac_new_set" = set; then
1493     case $ac_new_val in
1494     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496     *) ac_arg=$ac_var=$ac_new_val ;;
1497     esac
1498     case " $ac_configure_args " in
1499       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1500       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501     esac
1502   fi
1503 done
1504 if $ac_cache_corrupted; then
1505   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1558
1559
1560 ac_aux_dir=
1561 for ac_dir in build $srcdir/build; do
1562   if test -f $ac_dir/install-sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install-sh -c"
1565     break
1566   elif test -f $ac_dir/install.sh; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/install.sh -c"
1569     break
1570   elif test -f $ac_dir/shtool; then
1571     ac_aux_dir=$ac_dir
1572     ac_install_sh="$ac_aux_dir/shtool install -c"
1573     break
1574   fi
1575 done
1576 if test -z "$ac_aux_dir"; then
1577   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1578 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1579    { (exit 1); exit 1; }; }
1580 fi
1581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1583 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584
1585 eval `$ac_aux_dir/version.sh`
1586 if test -z "$OL_STRING"; then
1587         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1588 echo "$as_me: error: could not determine version" >&2;}
1589    { (exit 1); exit 1; }; }
1590 fi
1591
1592 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1593         ac_cv_shtool="$ac_aux_dir/shtool"
1594 else
1595         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1596 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1597    { (exit 1); exit 1; }; }
1598 fi
1599
1600 SHTOOL="$ac_cv_shtool"
1601
1602 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1603 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1604
1605 OPENLDAP_CVS=""
1606 if test -d $ac_aux_dir/CVS; then
1607         OPENLDAP_CVS="(from CVS sources) "
1608 fi
1609
1610 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1611
1612 # Make sure we can run config.sub.
1613 $ac_config_sub sun4 >/dev/null 2>&1 ||
1614   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1615 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1616    { (exit 1); exit 1; }; }
1617
1618 echo "$as_me:$LINENO: checking build system type" >&5
1619 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1620 if test "${ac_cv_build+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   ac_cv_build_alias=$build_alias
1624 test -z "$ac_cv_build_alias" &&
1625   ac_cv_build_alias=`$ac_config_guess`
1626 test -z "$ac_cv_build_alias" &&
1627   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1628 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1629    { (exit 1); exit 1; }; }
1630 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1631   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1633    { (exit 1); exit 1; }; }
1634
1635 fi
1636 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1637 echo "${ECHO_T}$ac_cv_build" >&6
1638 build=$ac_cv_build
1639 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642
1643
1644 echo "$as_me:$LINENO: checking host system type" >&5
1645 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1646 if test "${ac_cv_host+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   ac_cv_host_alias=$host_alias
1650 test -z "$ac_cv_host_alias" &&
1651   ac_cv_host_alias=$ac_cv_build_alias
1652 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1653   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1654 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1655    { (exit 1); exit 1; }; }
1656
1657 fi
1658 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1659 echo "${ECHO_T}$ac_cv_host" >&6
1660 host=$ac_cv_host
1661 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666 echo "$as_me:$LINENO: checking target system type" >&5
1667 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1668 if test "${ac_cv_target+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   ac_cv_target_alias=$target_alias
1672 test "x$ac_cv_target_alias" = "x" &&
1673   ac_cv_target_alias=$ac_cv_host_alias
1674 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1675   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1677    { (exit 1); exit 1; }; }
1678
1679 fi
1680 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1681 echo "${ECHO_T}$ac_cv_target" >&6
1682 target=$ac_cv_target
1683 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686
1687
1688 # The aliases save the names the user supplied, while $host etc.
1689 # will get canonicalized.
1690 test -n "$target_alias" &&
1691   test "$program_prefix$program_suffix$program_transform_name" = \
1692     NONENONEs,x,x, &&
1693   program_prefix=${target_alias}-
1694
1695 am__api_version="1.9"
1696 # Find a good install program.  We prefer a C program (faster),
1697 # so one script is as good as another.  But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1702 # AIX /bin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   # Account for people who put trailing slashes in PATH elements.
1721 case $as_dir/ in
1722   ./ | .// | /cC/* | \
1723   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725   /usr/ucb/* ) ;;
1726   *)
1727     # OSF1 and SCO ODT 3.0 have their own names for install.
1728     # Don't use installbsd from OSF since it installs stuff as root
1729     # by default.
1730     for ac_prog in ginstall scoinst install; do
1731       for ac_exec_ext in '' $ac_executable_extensions; do
1732         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733           if test $ac_prog = install &&
1734             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # AIX install.  It has an incompatible calling convention.
1736             :
1737           elif test $ac_prog = install &&
1738             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739             # program-specific install script used by HP pwplus--don't use.
1740             :
1741           else
1742             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1743             break 3
1744           fi
1745         fi
1746       done
1747     done
1748     ;;
1749 esac
1750 done
1751
1752
1753 fi
1754   if test "${ac_cv_path_install+set}" = set; then
1755     INSTALL=$ac_cv_path_install
1756   else
1757     # As a last resort, use the slow shell script.  We don't cache a
1758     # path for INSTALL within a source directory, because that will
1759     # break other packages using the cache if that directory is
1760     # removed, or if the path is relative.
1761     INSTALL=$ac_install_sh
1762   fi
1763 fi
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1766
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1770
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1772
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1774
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 # Just in case
1778 sleep 1
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments.  Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1784 # directory).
1785 if (
1786    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787    if test "$*" = "X"; then
1788       # -L didn't work.
1789       set X `ls -t $srcdir/configure conftest.file`
1790    fi
1791    rm -f conftest.file
1792    if test "$*" != "X $srcdir/configure conftest.file" \
1793       && test "$*" != "X conftest.file $srcdir/configure"; then
1794
1795       # If neither matched, then we have a broken ls.  This can happen
1796       # if, for instance, CONFIG_SHELL is bash and it inherits a
1797       # broken ls alias from the environment.  This has actually
1798       # happened.  Such a system could not be considered "sane".
1799       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1802 alias in your environment" >&2;}
1803    { (exit 1); exit 1; }; }
1804    fi
1805
1806    test "$2" = conftest.file
1807    )
1808 then
1809    # Ok.
1810    :
1811 else
1812    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816    { (exit 1); exit 1; }; }
1817 fi
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $.  echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1829 _ACEOF
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 rm conftest.sed
1832
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1835
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839   am_missing_run="$MISSING --run "
1840 else
1841   am_missing_run=
1842   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 fi
1845
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847   # We used to keeping the `.' as first argument, in order to
1848   # allow $(mkdir_p) to be used without argument.  As in
1849   #   $(mkdir_p) $(somedir)
1850   # where $(somedir) is conditionally defined.  However this is wrong
1851   # for two reasons:
1852   #  1. if the package is installed by a user who cannot write `.'
1853   #     make install will fail,
1854   #  2. the above comment should most certainly read
1855   #     $(mkdir_p) $(DESTDIR)$(somedir)
1856   #     so it does not work when $(somedir) is undefined and
1857   #     $(DESTDIR) is not.
1858   #  To support the latter case, we have to write
1859   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860   #  so the `.' trick is pointless.
1861   mkdir_p='mkdir -p --'
1862 else
1863   # On NextStep and OpenStep, the `mkdir' command does not
1864   # recognize any option.  It will interpret all options as
1865   # directories to create, and then abort because `.' already
1866   # exists.
1867   for d in ./-p ./--version;
1868   do
1869     test -d $d && rmdir $d
1870   done
1871   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872   if test -f "$ac_aux_dir/mkinstalldirs"; then
1873     mkdir_p='$(mkinstalldirs)'
1874   else
1875     mkdir_p='$(install_sh) -d'
1876   fi
1877 fi
1878
1879 for ac_prog in gawk mawk nawk awk
1880 do
1881   # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$AWK"; then
1889   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_AWK="$ac_prog"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 AWK=$ac_cv_prog_AWK
1908 if test -n "$AWK"; then
1909   echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916   test -n "$AWK" && break
1917 done
1918
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   cat >conftest.make <<\_ACEOF
1926 all:
1927         @echo 'ac_maketemp="$(MAKE)"'
1928 _ACEOF
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932   eval ac_cv_prog_make_${ac_make}_set=yes
1933 else
1934   eval ac_cv_prog_make_${ac_make}_set=no
1935 fi
1936 rm -f conftest.make
1937 fi
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939   echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1941   SET_MAKE=
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945   SET_MAKE="MAKE=${MAKE-make}"
1946 fi
1947
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1951   am__leading_dot=.
1952 else
1953   am__leading_dot=_
1954 fi
1955 rmdir .tst 2>/dev/null
1956
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959    test -f $srcdir/config.status; then
1960   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967   if (cygpath --version) >/dev/null 2>/dev/null; then
1968     CYGPATH_W='cygpath -w'
1969   else
1970     CYGPATH_W=echo
1971   fi
1972 fi
1973
1974
1975 # Define the identity of the package.
1976  PACKAGE=$OL_PACKAGE
1977  VERSION=$OL_VERSION
1978
1979
1980 # Some tools Automake needs.
1981
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1983
1984
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1986
1987
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1989
1990
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1992
1993
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1995
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1997
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'.  However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003   if test -n "$ac_tool_prefix"; then
2004   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$STRIP"; then
2012   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027
2028 fi
2029 fi
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032   echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2034 else
2035   echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039 fi
2040 if test -z "$ac_cv_prog_STRIP"; then
2041   ac_ct_STRIP=$STRIP
2042   # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$ac_ct_STRIP"; then
2050   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     ac_cv_prog_ac_ct_STRIP="strip"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2067 fi
2068 fi
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078   STRIP=$ac_ct_STRIP
2079 else
2080   STRIP="$ac_cv_prog_STRIP"
2081 fi
2082
2083 fi
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2085
2086 # We need awk for the "check" target.  The system "awk" is bad on
2087 # some platforms.
2088 # Always define AMTAR for backward compatibility.
2089
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2091
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2093
2094
2095
2096
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define OPENLDAP_PACKAGE "$PACKAGE"
2100 _ACEOF
2101
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define OPENLDAP_VERSION "$VERSION"
2105 _ACEOF
2106
2107
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define LDAP_VENDOR_VERSION $OL_API_INC
2111 _ACEOF
2112
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2116 _ACEOF
2117
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2121 _ACEOF
2122
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2126 _ACEOF
2127
2128
2129 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2130
2131 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2132
2133 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2134
2135
2136
2137
2138
2139
2140
2141           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2142
2143           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2144
2145           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2146
2147
2148 echo "$as_me:$LINENO: checking configure arguments" >&5
2149 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150
2151
2152 top_builddir=`pwd`
2153
2154 ldap_subdir="/openldap"
2155
2156
2157 # Check whether --with-subdir or --without-subdir was given.
2158 if test "${with_subdir+set}" = set; then
2159   withval="$with_subdir"
2160   case "$withval" in
2161         no) ldap_subdir=""
2162                 ;;
2163         yes)
2164                 ;;
2165         /*|\\*)
2166                 ldap_subdir="$withval"
2167                 ;;
2168         *)
2169                 ldap_subdir="/$withval"
2170                 ;;
2171 esac
2172
2173 fi;
2174
2175 # OpenLDAP --enable-debug
2176
2177         # Check whether --enable-debug or --disable-debug was given.
2178 if test "${enable_debug+set}" = set; then
2179   enableval="$enable_debug"
2180
2181         ol_arg=invalid
2182         for ol_val in no yes traditional ; do
2183                 if test "$enableval" = "$ol_val" ; then
2184                         ol_arg="$ol_val"
2185                 fi
2186         done
2187         if test "$ol_arg" = "invalid" ; then
2188                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2189 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2190    { (exit 1); exit 1; }; }
2191         fi
2192         ol_enable_debug="$ol_arg"
2193
2194 else
2195         ol_enable_debug=yes
2196 fi;
2197 # end --enable-debug
2198 # OpenLDAP --enable-dynamic
2199
2200         # Check whether --enable-dynamic or --disable-dynamic was given.
2201 if test "${enable_dynamic+set}" = set; then
2202   enableval="$enable_dynamic"
2203
2204         ol_arg=invalid
2205         for ol_val in auto yes no ; do
2206                 if test "$enableval" = "$ol_val" ; then
2207                         ol_arg="$ol_val"
2208                 fi
2209         done
2210         if test "$ol_arg" = "invalid" ; then
2211                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2213    { (exit 1); exit 1; }; }
2214         fi
2215         ol_enable_dynamic="$ol_arg"
2216
2217 else
2218         ol_enable_dynamic=no
2219 fi;
2220 # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2222
2223         # Check whether --enable-syslog or --disable-syslog was given.
2224 if test "${enable_syslog+set}" = set; then
2225   enableval="$enable_syslog"
2226
2227         ol_arg=invalid
2228         for ol_val in auto yes no ; do
2229                 if test "$enableval" = "$ol_val" ; then
2230                         ol_arg="$ol_val"
2231                 fi
2232         done
2233         if test "$ol_arg" = "invalid" ; then
2234                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2235 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2236    { (exit 1); exit 1; }; }
2237         fi
2238         ol_enable_syslog="$ol_arg"
2239
2240 else
2241         ol_enable_syslog=auto
2242 fi;
2243 # end --enable-syslog
2244 # OpenLDAP --enable-proctitle
2245
2246         # Check whether --enable-proctitle or --disable-proctitle was given.
2247 if test "${enable_proctitle+set}" = set; then
2248   enableval="$enable_proctitle"
2249
2250         ol_arg=invalid
2251         for ol_val in auto yes no ; do
2252                 if test "$enableval" = "$ol_val" ; then
2253                         ol_arg="$ol_val"
2254                 fi
2255         done
2256         if test "$ol_arg" = "invalid" ; then
2257                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2259    { (exit 1); exit 1; }; }
2260         fi
2261         ol_enable_proctitle="$ol_arg"
2262
2263 else
2264         ol_enable_proctitle=yes
2265 fi;
2266 # end --enable-proctitle
2267 ol_enable_referrals=${ol_enable_referrals-no}
2268 ol_enable_kbind=${ol_enable_kbind-no}
2269 # OpenLDAP --enable-ipv6
2270
2271         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2272 if test "${enable_ipv6+set}" = set; then
2273   enableval="$enable_ipv6"
2274
2275         ol_arg=invalid
2276         for ol_val in auto yes no ; do
2277                 if test "$enableval" = "$ol_val" ; then
2278                         ol_arg="$ol_val"
2279                 fi
2280         done
2281         if test "$ol_arg" = "invalid" ; then
2282                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2284    { (exit 1); exit 1; }; }
2285         fi
2286         ol_enable_ipv6="$ol_arg"
2287
2288 else
2289         ol_enable_ipv6=auto
2290 fi;
2291 # end --enable-ipv6
2292 # OpenLDAP --enable-local
2293
2294         # Check whether --enable-local or --disable-local was given.
2295 if test "${enable_local+set}" = set; then
2296   enableval="$enable_local"
2297
2298         ol_arg=invalid
2299         for ol_val in auto yes no ; do
2300                 if test "$enableval" = "$ol_val" ; then
2301                         ol_arg="$ol_val"
2302                 fi
2303         done
2304         if test "$ol_arg" = "invalid" ; then
2305                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2306 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2307    { (exit 1); exit 1; }; }
2308         fi
2309         ol_enable_local="$ol_arg"
2310
2311 else
2312         ol_enable_local=auto
2313 fi;
2314 # end --enable-local
2315
2316 # OpenLDAP --with-cyrus_sasl
2317
2318 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2319 if test "${with_cyrus_sasl+set}" = set; then
2320   withval="$with_cyrus_sasl"
2321
2322         ol_arg=invalid
2323         for ol_val in auto yes no  ; do
2324                 if test "$withval" = "$ol_val" ; then
2325                         ol_arg="$ol_val"
2326                 fi
2327         done
2328         if test "$ol_arg" = "invalid" ; then
2329                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2330 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2331    { (exit 1); exit 1; }; }
2332         fi
2333         ol_with_cyrus_sasl="$ol_arg"
2334
2335 else
2336         ol_with_cyrus_sasl="auto"
2337 fi; # end --with-cyrus_sasl
2338
2339 # OpenLDAP --with-fetch
2340
2341 # Check whether --with-fetch or --without-fetch was given.
2342 if test "${with_fetch+set}" = set; then
2343   withval="$with_fetch"
2344
2345         ol_arg=invalid
2346         for ol_val in auto yes no  ; do
2347                 if test "$withval" = "$ol_val" ; then
2348                         ol_arg="$ol_val"
2349                 fi
2350         done
2351         if test "$ol_arg" = "invalid" ; then
2352                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2353 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2354    { (exit 1); exit 1; }; }
2355         fi
2356         ol_with_fetch="$ol_arg"
2357
2358 else
2359         ol_with_fetch="auto"
2360 fi; # end --with-fetch
2361
2362 ol_with_kerberos=${ol_with_kerberos-auto}
2363 # OpenLDAP --with-threads
2364
2365 # Check whether --with-threads or --without-threads was given.
2366 if test "${with_threads+set}" = set; then
2367   withval="$with_threads"
2368
2369         ol_arg=invalid
2370         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2371                 if test "$withval" = "$ol_val" ; then
2372                         ol_arg="$ol_val"
2373                 fi
2374         done
2375         if test "$ol_arg" = "invalid" ; then
2376                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2377 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2378    { (exit 1); exit 1; }; }
2379         fi
2380         ol_with_threads="$ol_arg"
2381
2382 else
2383         ol_with_threads="auto"
2384 fi; # end --with-threads
2385
2386 # OpenLDAP --with-tls
2387
2388 # Check whether --with-tls or --without-tls was given.
2389 if test "${with_tls+set}" = set; then
2390   withval="$with_tls"
2391
2392         ol_arg=invalid
2393         for ol_val in auto openssl yes no  ; do
2394                 if test "$withval" = "$ol_val" ; then
2395                         ol_arg="$ol_val"
2396                 fi
2397         done
2398         if test "$ol_arg" = "invalid" ; then
2399                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2400 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2401    { (exit 1); exit 1; }; }
2402         fi
2403         ol_with_tls="$ol_arg"
2404
2405 else
2406         ol_with_tls="auto"
2407 fi; # end --with-tls
2408
2409 # OpenLDAP --with-yielding_select
2410
2411 # Check whether --with-yielding_select or --without-yielding_select was given.
2412 if test "${with_yielding_select+set}" = set; then
2413   withval="$with_yielding_select"
2414
2415         ol_arg=invalid
2416         for ol_val in auto yes no manual  ; do
2417                 if test "$withval" = "$ol_val" ; then
2418                         ol_arg="$ol_val"
2419                 fi
2420         done
2421         if test "$ol_arg" = "invalid" ; then
2422                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2423 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2424    { (exit 1); exit 1; }; }
2425         fi
2426         ol_with_yielding_select="$ol_arg"
2427
2428 else
2429         ol_with_yielding_select="auto"
2430 fi; # end --with-yielding_select
2431
2432 # OpenLDAP --with-multiple_precision
2433
2434 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2435 if test "${with_multiple_precision+set}" = set; then
2436   withval="$with_multiple_precision"
2437
2438         ol_arg=invalid
2439         for ol_val in auto bignum gmp yes no  ; do
2440                 if test "$withval" = "$ol_val" ; then
2441                         ol_arg="$ol_val"
2442                 fi
2443         done
2444         if test "$ol_arg" = "invalid" ; then
2445                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2446 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2447    { (exit 1); exit 1; }; }
2448         fi
2449         ol_with_multiple_precision="$ol_arg"
2450
2451 else
2452         ol_with_multiple_precision="auto"
2453 fi; # end --with-multiple_precision
2454
2455
2456
2457 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2458 if test "${enable_xxslapdoptions+set}" = set; then
2459   enableval="$enable_xxslapdoptions"
2460
2461 fi;
2462 # OpenLDAP --enable-slapd
2463
2464         # Check whether --enable-slapd or --disable-slapd was given.
2465 if test "${enable_slapd+set}" = set; then
2466   enableval="$enable_slapd"
2467
2468         ol_arg=invalid
2469         for ol_val in auto yes no ; do
2470                 if test "$enableval" = "$ol_val" ; then
2471                         ol_arg="$ol_val"
2472                 fi
2473         done
2474         if test "$ol_arg" = "invalid" ; then
2475                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2476 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2477    { (exit 1); exit 1; }; }
2478         fi
2479         ol_enable_slapd="$ol_arg"
2480
2481 else
2482         ol_enable_slapd=yes
2483 fi;
2484 # end --enable-slapd
2485 # OpenLDAP --enable-dynacl
2486
2487         # Check whether --enable-dynacl or --disable-dynacl was given.
2488 if test "${enable_dynacl+set}" = set; then
2489   enableval="$enable_dynacl"
2490
2491         ol_arg=invalid
2492         for ol_val in auto yes no ; do
2493                 if test "$enableval" = "$ol_val" ; then
2494                         ol_arg="$ol_val"
2495                 fi
2496         done
2497         if test "$ol_arg" = "invalid" ; then
2498                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2499 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2500    { (exit 1); exit 1; }; }
2501         fi
2502         ol_enable_dynacl="$ol_arg"
2503
2504 else
2505         ol_enable_dynacl=no
2506 fi;
2507 # end --enable-dynacl
2508 # OpenLDAP --enable-aci
2509
2510         # Check whether --enable-aci or --disable-aci was given.
2511 if test "${enable_aci+set}" = set; then
2512   enableval="$enable_aci"
2513
2514         ol_arg=invalid
2515         for ol_val in no yes mod ; do
2516                 if test "$enableval" = "$ol_val" ; then
2517                         ol_arg="$ol_val"
2518                 fi
2519         done
2520         if test "$ol_arg" = "invalid" ; then
2521                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2523    { (exit 1); exit 1; }; }
2524         fi
2525         ol_enable_aci="$ol_arg"
2526
2527 else
2528         ol_enable_aci=no
2529 fi;
2530 # end --enable-aci
2531 # OpenLDAP --enable-cleartext
2532
2533         # Check whether --enable-cleartext or --disable-cleartext was given.
2534 if test "${enable_cleartext+set}" = set; then
2535   enableval="$enable_cleartext"
2536
2537         ol_arg=invalid
2538         for ol_val in auto yes no ; do
2539                 if test "$enableval" = "$ol_val" ; then
2540                         ol_arg="$ol_val"
2541                 fi
2542         done
2543         if test "$ol_arg" = "invalid" ; then
2544                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2545 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2546    { (exit 1); exit 1; }; }
2547         fi
2548         ol_enable_cleartext="$ol_arg"
2549
2550 else
2551         ol_enable_cleartext=yes
2552 fi;
2553 # end --enable-cleartext
2554 # OpenLDAP --enable-crypt
2555
2556         # Check whether --enable-crypt or --disable-crypt was given.
2557 if test "${enable_crypt+set}" = set; then
2558   enableval="$enable_crypt"
2559
2560         ol_arg=invalid
2561         for ol_val in auto yes no ; do
2562                 if test "$enableval" = "$ol_val" ; then
2563                         ol_arg="$ol_val"
2564                 fi
2565         done
2566         if test "$ol_arg" = "invalid" ; then
2567                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2568 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2569    { (exit 1); exit 1; }; }
2570         fi
2571         ol_enable_crypt="$ol_arg"
2572
2573 else
2574         ol_enable_crypt=no
2575 fi;
2576 # end --enable-crypt
2577 # OpenLDAP --enable-lmpasswd
2578
2579         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2580 if test "${enable_lmpasswd+set}" = set; then
2581   enableval="$enable_lmpasswd"
2582
2583         ol_arg=invalid
2584         for ol_val in auto yes no ; do
2585                 if test "$enableval" = "$ol_val" ; then
2586                         ol_arg="$ol_val"
2587                 fi
2588         done
2589         if test "$ol_arg" = "invalid" ; then
2590                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2591 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2592    { (exit 1); exit 1; }; }
2593         fi
2594         ol_enable_lmpasswd="$ol_arg"
2595
2596 else
2597         ol_enable_lmpasswd=no
2598 fi;
2599 # end --enable-lmpasswd
2600 # OpenLDAP --enable-spasswd
2601
2602         # Check whether --enable-spasswd or --disable-spasswd was given.
2603 if test "${enable_spasswd+set}" = set; then
2604   enableval="$enable_spasswd"
2605
2606         ol_arg=invalid
2607         for ol_val in auto yes no ; do
2608                 if test "$enableval" = "$ol_val" ; then
2609                         ol_arg="$ol_val"
2610                 fi
2611         done
2612         if test "$ol_arg" = "invalid" ; then
2613                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2615    { (exit 1); exit 1; }; }
2616         fi
2617         ol_enable_spasswd="$ol_arg"
2618
2619 else
2620         ol_enable_spasswd=no
2621 fi;
2622 # end --enable-spasswd
2623 # OpenLDAP --enable-modules
2624
2625         # Check whether --enable-modules or --disable-modules was given.
2626 if test "${enable_modules+set}" = set; then
2627   enableval="$enable_modules"
2628
2629         ol_arg=invalid
2630         for ol_val in auto yes no ; do
2631                 if test "$enableval" = "$ol_val" ; then
2632                         ol_arg="$ol_val"
2633                 fi
2634         done
2635         if test "$ol_arg" = "invalid" ; then
2636                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2637 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2638    { (exit 1); exit 1; }; }
2639         fi
2640         ol_enable_modules="$ol_arg"
2641
2642 else
2643         ol_enable_modules=no
2644 fi;
2645 # end --enable-modules
2646 # OpenLDAP --enable-rewrite
2647
2648         # Check whether --enable-rewrite or --disable-rewrite was given.
2649 if test "${enable_rewrite+set}" = set; then
2650   enableval="$enable_rewrite"
2651
2652         ol_arg=invalid
2653         for ol_val in auto yes no ; do
2654                 if test "$enableval" = "$ol_val" ; then
2655                         ol_arg="$ol_val"
2656                 fi
2657         done
2658         if test "$ol_arg" = "invalid" ; then
2659                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2660 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2661    { (exit 1); exit 1; }; }
2662         fi
2663         ol_enable_rewrite="$ol_arg"
2664
2665 else
2666         ol_enable_rewrite=auto
2667 fi;
2668 # end --enable-rewrite
2669 # OpenLDAP --enable-rlookups
2670
2671         # Check whether --enable-rlookups or --disable-rlookups was given.
2672 if test "${enable_rlookups+set}" = set; then
2673   enableval="$enable_rlookups"
2674
2675         ol_arg=invalid
2676         for ol_val in auto yes no ; do
2677                 if test "$enableval" = "$ol_val" ; then
2678                         ol_arg="$ol_val"
2679                 fi
2680         done
2681         if test "$ol_arg" = "invalid" ; then
2682                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2683 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2684    { (exit 1); exit 1; }; }
2685         fi
2686         ol_enable_rlookups="$ol_arg"
2687
2688 else
2689         ol_enable_rlookups=no
2690 fi;
2691 # end --enable-rlookups
2692 # OpenLDAP --enable-slapi
2693
2694         # Check whether --enable-slapi or --disable-slapi was given.
2695 if test "${enable_slapi+set}" = set; then
2696   enableval="$enable_slapi"
2697
2698         ol_arg=invalid
2699         for ol_val in auto yes no ; do
2700                 if test "$enableval" = "$ol_val" ; then
2701                         ol_arg="$ol_val"
2702                 fi
2703         done
2704         if test "$ol_arg" = "invalid" ; then
2705                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2706 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2707    { (exit 1); exit 1; }; }
2708         fi
2709         ol_enable_slapi="$ol_arg"
2710
2711 else
2712         ol_enable_slapi=no
2713 fi;
2714 # end --enable-slapi
2715 # OpenLDAP --enable-slp
2716
2717         # Check whether --enable-slp or --disable-slp was given.
2718 if test "${enable_slp+set}" = set; then
2719   enableval="$enable_slp"
2720
2721         ol_arg=invalid
2722         for ol_val in auto yes no ; do
2723                 if test "$enableval" = "$ol_val" ; then
2724                         ol_arg="$ol_val"
2725                 fi
2726         done
2727         if test "$ol_arg" = "invalid" ; then
2728                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2730    { (exit 1); exit 1; }; }
2731         fi
2732         ol_enable_slp="$ol_arg"
2733
2734 else
2735         ol_enable_slp=no
2736 fi;
2737 # end --enable-slp
2738 # OpenLDAP --enable-wrappers
2739
2740         # Check whether --enable-wrappers or --disable-wrappers was given.
2741 if test "${enable_wrappers+set}" = set; then
2742   enableval="$enable_wrappers"
2743
2744         ol_arg=invalid
2745         for ol_val in auto yes no ; do
2746                 if test "$enableval" = "$ol_val" ; then
2747                         ol_arg="$ol_val"
2748                 fi
2749         done
2750         if test "$ol_arg" = "invalid" ; then
2751                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2753    { (exit 1); exit 1; }; }
2754         fi
2755         ol_enable_wrappers="$ol_arg"
2756
2757 else
2758         ol_enable_wrappers=no
2759 fi;
2760 # end --enable-wrappers
2761
2762 Backends="bdb \
2763         dnssrv \
2764         hdb \
2765         ldap \
2766         ldbm \
2767         meta \
2768         monitor \
2769         null \
2770         passwd \
2771         perl \
2772         relay \
2773         shell \
2774         sql"
2775
2776 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2777 if test "${enable_xxslapbackends+set}" = set; then
2778   enableval="$enable_xxslapbackends"
2779
2780 fi;
2781
2782 # OpenLDAP --enable-backends
2783
2784         # Check whether --enable-backends or --disable-backends was given.
2785 if test "${enable_backends+set}" = set; then
2786   enableval="$enable_backends"
2787
2788         ol_arg=invalid
2789         for ol_val in no yes mod ; do
2790                 if test "$enableval" = "$ol_val" ; then
2791                         ol_arg="$ol_val"
2792                 fi
2793         done
2794         if test "$ol_arg" = "invalid" ; then
2795                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2796 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2797    { (exit 1); exit 1; }; }
2798         fi
2799         ol_enable_backends="$ol_arg"
2800
2801 fi;
2802 # end --enable-backends
2803 # OpenLDAP --enable-bdb
2804
2805         # Check whether --enable-bdb or --disable-bdb was given.
2806 if test "${enable_bdb+set}" = set; then
2807   enableval="$enable_bdb"
2808
2809         ol_arg=invalid
2810         for ol_val in no yes mod ; do
2811                 if test "$enableval" = "$ol_val" ; then
2812                         ol_arg="$ol_val"
2813                 fi
2814         done
2815         if test "$ol_arg" = "invalid" ; then
2816                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2818    { (exit 1); exit 1; }; }
2819         fi
2820         ol_enable_bdb="$ol_arg"
2821
2822 else
2823         ol_enable_bdb=${ol_enable_backends:-yes}
2824 fi;
2825 # end --enable-bdb
2826 # OpenLDAP --enable-dnssrv
2827
2828         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2829 if test "${enable_dnssrv+set}" = set; then
2830   enableval="$enable_dnssrv"
2831
2832         ol_arg=invalid
2833         for ol_val in no yes mod ; do
2834                 if test "$enableval" = "$ol_val" ; then
2835                         ol_arg="$ol_val"
2836                 fi
2837         done
2838         if test "$ol_arg" = "invalid" ; then
2839                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2840 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2841    { (exit 1); exit 1; }; }
2842         fi
2843         ol_enable_dnssrv="$ol_arg"
2844
2845 else
2846         ol_enable_dnssrv=${ol_enable_backends:-no}
2847 fi;
2848 # end --enable-dnssrv
2849 # OpenLDAP --enable-hdb
2850
2851         # Check whether --enable-hdb or --disable-hdb was given.
2852 if test "${enable_hdb+set}" = set; then
2853   enableval="$enable_hdb"
2854
2855         ol_arg=invalid
2856         for ol_val in no yes mod ; do
2857                 if test "$enableval" = "$ol_val" ; then
2858                         ol_arg="$ol_val"
2859                 fi
2860         done
2861         if test "$ol_arg" = "invalid" ; then
2862                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2864    { (exit 1); exit 1; }; }
2865         fi
2866         ol_enable_hdb="$ol_arg"
2867
2868 else
2869         ol_enable_hdb=${ol_enable_backends:-yes}
2870 fi;
2871 # end --enable-hdb
2872 # OpenLDAP --enable-ldap
2873
2874         # Check whether --enable-ldap or --disable-ldap was given.
2875 if test "${enable_ldap+set}" = set; then
2876   enableval="$enable_ldap"
2877
2878         ol_arg=invalid
2879         for ol_val in no yes mod ; do
2880                 if test "$enableval" = "$ol_val" ; then
2881                         ol_arg="$ol_val"
2882                 fi
2883         done
2884         if test "$ol_arg" = "invalid" ; then
2885                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2886 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2887    { (exit 1); exit 1; }; }
2888         fi
2889         ol_enable_ldap="$ol_arg"
2890
2891 else
2892         ol_enable_ldap=${ol_enable_backends:-no}
2893 fi;
2894 # end --enable-ldap
2895 # OpenLDAP --enable-ldbm
2896
2897         # Check whether --enable-ldbm or --disable-ldbm was given.
2898 if test "${enable_ldbm+set}" = set; then
2899   enableval="$enable_ldbm"
2900
2901         ol_arg=invalid
2902         for ol_val in no yes mod ; do
2903                 if test "$enableval" = "$ol_val" ; then
2904                         ol_arg="$ol_val"
2905                 fi
2906         done
2907         if test "$ol_arg" = "invalid" ; then
2908                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2909 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2910    { (exit 1); exit 1; }; }
2911         fi
2912         ol_enable_ldbm="$ol_arg"
2913
2914 else
2915         ol_enable_ldbm=${ol_enable_backends:-no}
2916 fi;
2917 # end --enable-ldbm
2918
2919 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2920 if test "${with_ldbm_api+set}" = set; then
2921   withval="$with_ldbm_api"
2922
2923         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2924 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2925         enable_ldbm_api="$with_ldbm_api"
2926 fi;
2927 # OpenLDAP --enable-ldbm_api
2928
2929         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2930 if test "${enable_ldbm_api+set}" = set; then
2931   enableval="$enable_ldbm_api"
2932
2933         ol_arg=invalid
2934         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2935                 if test "$enableval" = "$ol_val" ; then
2936                         ol_arg="$ol_val"
2937                 fi
2938         done
2939         if test "$ol_arg" = "invalid" ; then
2940                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2941 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2942    { (exit 1); exit 1; }; }
2943         fi
2944         ol_enable_ldbm_api="$ol_arg"
2945
2946 else
2947         ol_enable_ldbm_api=auto
2948 fi;
2949 # end --enable-ldbm_api
2950
2951
2952 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2953 if test "${with_ldbm_type+set}" = set; then
2954   withval="$with_ldbm_type"
2955
2956         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2957 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2958         enable_ldbm_type="$with_ldbm_type"
2959 fi;
2960 # OpenLDAP --enable-ldbm_type
2961
2962         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2963 if test "${enable_ldbm_type+set}" = set; then
2964   enableval="$enable_ldbm_type"
2965
2966         ol_arg=invalid
2967         for ol_val in auto btree hash ; do
2968                 if test "$enableval" = "$ol_val" ; then
2969                         ol_arg="$ol_val"
2970                 fi
2971         done
2972         if test "$ol_arg" = "invalid" ; then
2973                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2975    { (exit 1); exit 1; }; }
2976         fi
2977         ol_enable_ldbm_type="$ol_arg"
2978
2979 else
2980         ol_enable_ldbm_type=auto
2981 fi;
2982 # end --enable-ldbm_type
2983
2984 # OpenLDAP --enable-meta
2985
2986         # Check whether --enable-meta or --disable-meta was given.
2987 if test "${enable_meta+set}" = set; then
2988   enableval="$enable_meta"
2989
2990         ol_arg=invalid
2991         for ol_val in no yes mod ; do
2992                 if test "$enableval" = "$ol_val" ; then
2993                         ol_arg="$ol_val"
2994                 fi
2995         done
2996         if test "$ol_arg" = "invalid" ; then
2997                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2999    { (exit 1); exit 1; }; }
3000         fi
3001         ol_enable_meta="$ol_arg"
3002
3003 else
3004         ol_enable_meta=${ol_enable_backends:-no}
3005 fi;
3006 # end --enable-meta
3007 # OpenLDAP --enable-monitor
3008
3009         # Check whether --enable-monitor or --disable-monitor was given.
3010 if test "${enable_monitor+set}" = set; then
3011   enableval="$enable_monitor"
3012
3013         ol_arg=invalid
3014         for ol_val in no yes mod ; do
3015                 if test "$enableval" = "$ol_val" ; then
3016                         ol_arg="$ol_val"
3017                 fi
3018         done
3019         if test "$ol_arg" = "invalid" ; then
3020                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3021 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3022    { (exit 1); exit 1; }; }
3023         fi
3024         ol_enable_monitor="$ol_arg"
3025
3026 else
3027         ol_enable_monitor=${ol_enable_backends:-yes}
3028 fi;
3029 # end --enable-monitor
3030 # OpenLDAP --enable-null
3031
3032         # Check whether --enable-null or --disable-null was given.
3033 if test "${enable_null+set}" = set; then
3034   enableval="$enable_null"
3035
3036         ol_arg=invalid
3037         for ol_val in no yes mod ; do
3038                 if test "$enableval" = "$ol_val" ; then
3039                         ol_arg="$ol_val"
3040                 fi
3041         done
3042         if test "$ol_arg" = "invalid" ; then
3043                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3044 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3045    { (exit 1); exit 1; }; }
3046         fi
3047         ol_enable_null="$ol_arg"
3048
3049 else
3050         ol_enable_null=${ol_enable_backends:-no}
3051 fi;
3052 # end --enable-null
3053 # OpenLDAP --enable-passwd
3054
3055         # Check whether --enable-passwd or --disable-passwd was given.
3056 if test "${enable_passwd+set}" = set; then
3057   enableval="$enable_passwd"
3058
3059         ol_arg=invalid
3060         for ol_val in no yes mod ; do
3061                 if test "$enableval" = "$ol_val" ; then
3062                         ol_arg="$ol_val"
3063                 fi
3064         done
3065         if test "$ol_arg" = "invalid" ; then
3066                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3067 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3068    { (exit 1); exit 1; }; }
3069         fi
3070         ol_enable_passwd="$ol_arg"
3071
3072 else
3073         ol_enable_passwd=${ol_enable_backends:-no}
3074 fi;
3075 # end --enable-passwd
3076 # OpenLDAP --enable-perl
3077
3078         # Check whether --enable-perl or --disable-perl was given.
3079 if test "${enable_perl+set}" = set; then
3080   enableval="$enable_perl"
3081
3082         ol_arg=invalid
3083         for ol_val in no yes mod ; do
3084                 if test "$enableval" = "$ol_val" ; then
3085                         ol_arg="$ol_val"
3086                 fi
3087         done
3088         if test "$ol_arg" = "invalid" ; then
3089                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3090 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3091    { (exit 1); exit 1; }; }
3092         fi
3093         ol_enable_perl="$ol_arg"
3094
3095 else
3096         ol_enable_perl=${ol_enable_backends:-no}
3097 fi;
3098 # end --enable-perl
3099 # OpenLDAP --enable-relay
3100
3101         # Check whether --enable-relay or --disable-relay was given.
3102 if test "${enable_relay+set}" = set; then
3103   enableval="$enable_relay"
3104
3105         ol_arg=invalid
3106         for ol_val in no yes mod ; do
3107                 if test "$enableval" = "$ol_val" ; then
3108                         ol_arg="$ol_val"
3109                 fi
3110         done
3111         if test "$ol_arg" = "invalid" ; then
3112                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3114    { (exit 1); exit 1; }; }
3115         fi
3116         ol_enable_relay="$ol_arg"
3117
3118 else
3119         ol_enable_relay=${ol_enable_backends:-yes}
3120 fi;
3121 # end --enable-relay
3122 # OpenLDAP --enable-shell
3123
3124         # Check whether --enable-shell or --disable-shell was given.
3125 if test "${enable_shell+set}" = set; then
3126   enableval="$enable_shell"
3127
3128         ol_arg=invalid
3129         for ol_val in no yes mod ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_shell="$ol_arg"
3140
3141 else
3142         ol_enable_shell=${ol_enable_backends:-no}
3143 fi;
3144 # end --enable-shell
3145 # OpenLDAP --enable-sql
3146
3147         # Check whether --enable-sql or --disable-sql was given.
3148 if test "${enable_sql+set}" = set; then
3149   enableval="$enable_sql"
3150
3151         ol_arg=invalid
3152         for ol_val in no yes mod ; do
3153                 if test "$enableval" = "$ol_val" ; then
3154                         ol_arg="$ol_val"
3155                 fi
3156         done
3157         if test "$ol_arg" = "invalid" ; then
3158                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3160    { (exit 1); exit 1; }; }
3161         fi
3162         ol_enable_sql="$ol_arg"
3163
3164 else
3165         ol_enable_sql=${ol_enable_backends:-no}
3166 fi;
3167 # end --enable-sql
3168
3169 Overlays="accesslog \
3170         dds \
3171         denyop \
3172         dyngroup \
3173         dynlist \
3174         lastmod \
3175         ppolicy \
3176         proxycache \
3177         refint \
3178         retcode \
3179         rwm \
3180         syncprov \
3181         translucent \
3182         unique \
3183         valsort"
3184
3185 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3186 if test "${enable_xxslapoverlays+set}" = set; then
3187   enableval="$enable_xxslapoverlays"
3188
3189 fi;
3190
3191 # OpenLDAP --enable-overlays
3192
3193         # Check whether --enable-overlays or --disable-overlays was given.
3194 if test "${enable_overlays+set}" = set; then
3195   enableval="$enable_overlays"
3196
3197         ol_arg=invalid
3198         for ol_val in no yes mod ; do
3199                 if test "$enableval" = "$ol_val" ; then
3200                         ol_arg="$ol_val"
3201                 fi
3202         done
3203         if test "$ol_arg" = "invalid" ; then
3204                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3206    { (exit 1); exit 1; }; }
3207         fi
3208         ol_enable_overlays="$ol_arg"
3209
3210 fi;
3211 # end --enable-overlays
3212 # OpenLDAP --enable-accesslog
3213
3214         # Check whether --enable-accesslog or --disable-accesslog was given.
3215 if test "${enable_accesslog+set}" = set; then
3216   enableval="$enable_accesslog"
3217
3218         ol_arg=invalid
3219         for ol_val in no yes mod ; do
3220                 if test "$enableval" = "$ol_val" ; then
3221                         ol_arg="$ol_val"
3222                 fi
3223         done
3224         if test "$ol_arg" = "invalid" ; then
3225                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3227    { (exit 1); exit 1; }; }
3228         fi
3229         ol_enable_accesslog="$ol_arg"
3230
3231 else
3232         ol_enable_accesslog=${ol_enable_overlays:-no}
3233 fi;
3234 # end --enable-accesslog
3235
3236 # OpenLDAP --enable-dds
3237
3238         # Check whether --enable-dds or --disable-dds was given.
3239 if test "${enable_dds+set}" = set; then
3240   enableval="$enable_dds"
3241
3242         ol_arg=invalid
3243         for ol_val in no yes mod ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_dds="$ol_arg"
3254
3255 else
3256         ol_enable_dds=${ol_enable_overlays:-no}
3257 fi;
3258 # end --enable-dds
3259
3260 # OpenLDAP --enable-denyop
3261
3262         # Check whether --enable-denyop or --disable-denyop was given.
3263 if test "${enable_denyop+set}" = set; then
3264   enableval="$enable_denyop"
3265
3266         ol_arg=invalid
3267         for ol_val in no yes mod ; do
3268                 if test "$enableval" = "$ol_val" ; then
3269                         ol_arg="$ol_val"
3270                 fi
3271         done
3272         if test "$ol_arg" = "invalid" ; then
3273                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3275    { (exit 1); exit 1; }; }
3276         fi
3277         ol_enable_denyop="$ol_arg"
3278
3279 else
3280         ol_enable_denyop=${ol_enable_overlays:-no}
3281 fi;
3282 # end --enable-denyop
3283
3284 # OpenLDAP --enable-dyngroup
3285
3286         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3287 if test "${enable_dyngroup+set}" = set; then
3288   enableval="$enable_dyngroup"
3289
3290         ol_arg=invalid
3291         for ol_val in no yes mod ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_dyngroup="$ol_arg"
3302
3303 else
3304         ol_enable_dyngroup=${ol_enable_overlays:-no}
3305 fi;
3306 # end --enable-dyngroup
3307
3308 # OpenLDAP --enable-dynlist
3309
3310         # Check whether --enable-dynlist or --disable-dynlist was given.
3311 if test "${enable_dynlist+set}" = set; then
3312   enableval="$enable_dynlist"
3313
3314         ol_arg=invalid
3315         for ol_val in no yes mod ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_dynlist="$ol_arg"
3326
3327 else
3328         ol_enable_dynlist=${ol_enable_overlays:-no}
3329 fi;
3330 # end --enable-dynlist
3331
3332 # OpenLDAP --enable-lastmod
3333
3334         # Check whether --enable-lastmod or --disable-lastmod was given.
3335 if test "${enable_lastmod+set}" = set; then
3336   enableval="$enable_lastmod"
3337
3338         ol_arg=invalid
3339         for ol_val in no yes mod ; do
3340                 if test "$enableval" = "$ol_val" ; then
3341                         ol_arg="$ol_val"
3342                 fi
3343         done
3344         if test "$ol_arg" = "invalid" ; then
3345                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3347    { (exit 1); exit 1; }; }
3348         fi
3349         ol_enable_lastmod="$ol_arg"
3350
3351 else
3352         ol_enable_lastmod=${ol_enable_overlays:-no}
3353 fi;
3354 # end --enable-lastmod
3355
3356 # OpenLDAP --enable-ppolicy
3357
3358         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3359 if test "${enable_ppolicy+set}" = set; then
3360   enableval="$enable_ppolicy"
3361
3362         ol_arg=invalid
3363         for ol_val in no yes mod ; do
3364                 if test "$enableval" = "$ol_val" ; then
3365                         ol_arg="$ol_val"
3366                 fi
3367         done
3368         if test "$ol_arg" = "invalid" ; then
3369                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3371    { (exit 1); exit 1; }; }
3372         fi
3373         ol_enable_ppolicy="$ol_arg"
3374
3375 else
3376         ol_enable_ppolicy=${ol_enable_overlays:-no}
3377 fi;
3378 # end --enable-ppolicy
3379
3380 # OpenLDAP --enable-proxycache
3381
3382         # Check whether --enable-proxycache or --disable-proxycache was given.
3383 if test "${enable_proxycache+set}" = set; then
3384   enableval="$enable_proxycache"
3385
3386         ol_arg=invalid
3387         for ol_val in no yes mod ; do
3388                 if test "$enableval" = "$ol_val" ; then
3389                         ol_arg="$ol_val"
3390                 fi
3391         done
3392         if test "$ol_arg" = "invalid" ; then
3393                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3395    { (exit 1); exit 1; }; }
3396         fi
3397         ol_enable_proxycache="$ol_arg"
3398
3399 else
3400         ol_enable_proxycache=${ol_enable_overlays:-no}
3401 fi;
3402 # end --enable-proxycache
3403
3404 # OpenLDAP --enable-refint
3405
3406         # Check whether --enable-refint or --disable-refint was given.
3407 if test "${enable_refint+set}" = set; then
3408   enableval="$enable_refint"
3409
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_refint="$ol_arg"
3422
3423 else
3424         ol_enable_refint=${ol_enable_overlays:-no}
3425 fi;
3426 # end --enable-refint
3427
3428 # OpenLDAP --enable-retcode
3429
3430         # Check whether --enable-retcode or --disable-retcode was given.
3431 if test "${enable_retcode+set}" = set; then
3432   enableval="$enable_retcode"
3433
3434         ol_arg=invalid
3435         for ol_val in no yes mod ; do
3436                 if test "$enableval" = "$ol_val" ; then
3437                         ol_arg="$ol_val"
3438                 fi
3439         done
3440         if test "$ol_arg" = "invalid" ; then
3441                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3443    { (exit 1); exit 1; }; }
3444         fi
3445         ol_enable_retcode="$ol_arg"
3446
3447 else
3448         ol_enable_retcode=${ol_enable_overlays:-no}
3449 fi;
3450 # end --enable-retcode
3451
3452 # OpenLDAP --enable-rwm
3453
3454         # Check whether --enable-rwm or --disable-rwm was given.
3455 if test "${enable_rwm+set}" = set; then
3456   enableval="$enable_rwm"
3457
3458         ol_arg=invalid
3459         for ol_val in no yes mod ; do
3460                 if test "$enableval" = "$ol_val" ; then
3461                         ol_arg="$ol_val"
3462                 fi
3463         done
3464         if test "$ol_arg" = "invalid" ; then
3465                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3467    { (exit 1); exit 1; }; }
3468         fi
3469         ol_enable_rwm="$ol_arg"
3470
3471 else
3472         ol_enable_rwm=${ol_enable_overlays:-no}
3473 fi;
3474 # end --enable-rwm
3475
3476 # OpenLDAP --enable-syncprov
3477
3478         # Check whether --enable-syncprov or --disable-syncprov was given.
3479 if test "${enable_syncprov+set}" = set; then
3480   enableval="$enable_syncprov"
3481
3482         ol_arg=invalid
3483         for ol_val in no yes mod ; do
3484                 if test "$enableval" = "$ol_val" ; then
3485                         ol_arg="$ol_val"
3486                 fi
3487         done
3488         if test "$ol_arg" = "invalid" ; then
3489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3491    { (exit 1); exit 1; }; }
3492         fi
3493         ol_enable_syncprov="$ol_arg"
3494
3495 else
3496         ol_enable_syncprov=${ol_enable_overlays:-yes}
3497 fi;
3498 # end --enable-syncprov
3499
3500 # OpenLDAP --enable-translucent
3501
3502         # Check whether --enable-translucent or --disable-translucent was given.
3503 if test "${enable_translucent+set}" = set; then
3504   enableval="$enable_translucent"
3505
3506         ol_arg=invalid
3507         for ol_val in no yes mod ; do
3508                 if test "$enableval" = "$ol_val" ; then
3509                         ol_arg="$ol_val"
3510                 fi
3511         done
3512         if test "$ol_arg" = "invalid" ; then
3513                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3515    { (exit 1); exit 1; }; }
3516         fi
3517         ol_enable_translucent="$ol_arg"
3518
3519 else
3520         ol_enable_translucent=${ol_enable_overlays:-no}
3521 fi;
3522 # end --enable-translucent
3523
3524 # OpenLDAP --enable-unique
3525
3526         # Check whether --enable-unique or --disable-unique was given.
3527 if test "${enable_unique+set}" = set; then
3528   enableval="$enable_unique"
3529
3530         ol_arg=invalid
3531         for ol_val in no yes mod ; do
3532                 if test "$enableval" = "$ol_val" ; then
3533                         ol_arg="$ol_val"
3534                 fi
3535         done
3536         if test "$ol_arg" = "invalid" ; then
3537                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3538 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3539    { (exit 1); exit 1; }; }
3540         fi
3541         ol_enable_unique="$ol_arg"
3542
3543 else
3544         ol_enable_unique=${ol_enable_overlays:-no}
3545 fi;
3546 # end --enable-unique
3547
3548 # OpenLDAP --enable-valsort
3549
3550         # Check whether --enable-valsort or --disable-valsort was given.
3551 if test "${enable_valsort+set}" = set; then
3552   enableval="$enable_valsort"
3553
3554         ol_arg=invalid
3555         for ol_val in no yes mod ; do
3556                 if test "$enableval" = "$ol_val" ; then
3557                         ol_arg="$ol_val"
3558                 fi
3559         done
3560         if test "$ol_arg" = "invalid" ; then
3561                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3562 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3563    { (exit 1); exit 1; }; }
3564         fi
3565         ol_enable_valsort="$ol_arg"
3566
3567 else
3568         ol_enable_valsort=${ol_enable_overlays:-no}
3569 fi;
3570 # end --enable-valsort
3571
3572
3573 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3574 if test "${enable_xxslurpdoptions+set}" = set; then
3575   enableval="$enable_xxslurpdoptions"
3576
3577 fi;
3578 # OpenLDAP --enable-slurpd
3579
3580         # Check whether --enable-slurpd or --disable-slurpd was given.
3581 if test "${enable_slurpd+set}" = set; then
3582   enableval="$enable_slurpd"
3583
3584         ol_arg=invalid
3585         for ol_val in auto yes no ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_slurpd="$ol_arg"
3596
3597 else
3598         ol_enable_slurpd=auto
3599 fi;
3600 # end --enable-slurpd
3601
3602 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3603 if test "${enable_xxliboptions+set}" = set; then
3604   enableval="$enable_xxliboptions"
3605
3606 fi;
3607 # Check whether --enable-static or --disable-static was given.
3608 if test "${enable_static+set}" = set; then
3609   enableval="$enable_static"
3610   p=${PACKAGE-default}
3611     case $enableval in
3612     yes) enable_static=yes ;;
3613     no) enable_static=no ;;
3614     *)
3615      enable_static=no
3616       # Look at the argument we got.  We use all the common list separators.
3617       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3618       for pkg in $enableval; do
3619         IFS="$lt_save_ifs"
3620         if test "X$pkg" = "X$p"; then
3621           enable_static=yes
3622         fi
3623       done
3624       IFS="$lt_save_ifs"
3625       ;;
3626     esac
3627 else
3628   enable_static=yes
3629 fi;
3630
3631 # Check whether --enable-shared or --disable-shared was given.
3632 if test "${enable_shared+set}" = set; then
3633   enableval="$enable_shared"
3634   p=${PACKAGE-default}
3635     case $enableval in
3636     yes) enable_shared=yes ;;
3637     no) enable_shared=no ;;
3638     *)
3639       enable_shared=no
3640       # Look at the argument we got.  We use all the common list separators.
3641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3642       for pkg in $enableval; do
3643         IFS="$lt_save_ifs"
3644         if test "X$pkg" = "X$p"; then
3645           enable_shared=yes
3646         fi
3647       done
3648       IFS="$lt_save_ifs"
3649       ;;
3650     esac
3651 else
3652   enable_shared=yes
3653 fi;
3654
3655
3656
3657 # validate options
3658 if test $ol_enable_slapd = no ; then
3659                 if test $ol_enable_slapi = yes ; then
3660                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3661 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3662         fi
3663         case "$ol_enable_backends" in yes | mod)
3664                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3666         esac
3667         for i in $Backends; do
3668                 eval "ol_tmp=\$ol_enable_$i"
3669                 if test $ol_tmp != no ; then
3670                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3672                         eval "ol_enable_$i=no"
3673                 fi
3674         done
3675         if test $ol_enable_modules = yes ; then
3676                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3677 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3678         fi
3679         if test $ol_enable_wrappers = yes ; then
3680                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3681 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3682         fi
3683         if test $ol_enable_rlookups = yes ; then
3684                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3686         fi
3687         if test $ol_enable_dynacl = yes ; then
3688                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3690         fi
3691         if test $ol_enable_aci != no ; then
3692                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3694         fi
3695         if test $ol_enable_ldbm_api != auto ; then
3696                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3698         fi
3699         if test $ol_enable_ldbm_type != auto ; then
3700                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3702         fi
3703         if test $ol_enable_slurpd = yes ; then
3704                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3705 echo "$as_me: error: slurpd requires slapd" >&2;}
3706    { (exit 1); exit 1; }; }
3707         fi
3708         if test $ol_enable_rewrite = yes ; then
3709                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3711         fi
3712                 case "$ol_enable_overlays" in yes | mod)
3713                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3715         esac
3716         for i in $Overlays; do
3717                 eval "ol_tmp=\$ol_enable_$i"
3718                 if test $ol_tmp != no ; then
3719                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3720 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3721                         eval "ol_enable_$i=no"
3722                 fi
3723         done
3724
3725         # force settings to no
3726         ol_enable_slapi=no
3727
3728         ol_enable_backends=
3729         ol_enable_overlays=
3730         ol_enable_modules=no
3731         ol_enable_rlookups=no
3732         ol_enable_dynacl=no
3733         ol_enable_aci=no
3734         ol_enable_wrappers=no
3735
3736         ol_enable_ldbm_api=no
3737         ol_enable_ldbm_type=no
3738
3739         ol_enable_slurpd=no
3740
3741         ol_enable_rewrite=no
3742
3743 elif test $ol_enable_ldbm = no ; then
3744
3745         if test $ol_enable_ldbm_api != auto ; then
3746                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3747 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3748         fi
3749
3750         if test $ol_enable_ldbm_type != auto ; then
3751                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3752 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3753         fi
3754
3755         if test $ol_enable_modules != yes &&
3756            test $ol_enable_bdb = no &&
3757            test $ol_enable_dnssrv = no &&
3758            test $ol_enable_hdb = no &&
3759            test $ol_enable_ldap = no &&
3760            test $ol_enable_meta = no &&
3761            test $ol_enable_monitor = no &&
3762            test $ol_enable_null = no &&
3763            test $ol_enable_passwd = no &&
3764            test $ol_enable_perl = no &&
3765            test $ol_enable_relay = no &&
3766            test $ol_enable_shell = no &&
3767            test $ol_enable_sql = no ; then
3768
3769                 if test $ol_enable_slapd = yes ; then
3770                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3771 echo "$as_me: error: slapd requires a backend" >&2;}
3772    { (exit 1); exit 1; }; }
3773                 else
3774                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3775 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3776                         ol_enable_slapd=no
3777                 fi
3778         fi
3779
3780         ol_enable_ldbm_api=no
3781         ol_enable_ldbm_type=no
3782
3783         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3784                 ol_enable_ldbm_api=berkeley
3785         fi
3786
3787 else
3788                 if test $ol_enable_ldbm_api = gdbm &&
3789            test $ol_enable_ldbm_type = btree ; then
3790                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3791 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3792    { (exit 1); exit 1; }; }
3793         fi
3794         if test $ol_enable_ldbm_api = mdbm &&
3795            test $ol_enable_ldbm_type = btree ; then
3796                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3797 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3798    { (exit 1); exit 1; }; }
3799         fi
3800         if test $ol_enable_ldbm_api = ndbm &&
3801            test $ol_enable_ldbm_type = btree ; then
3802                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3803 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3804    { (exit 1); exit 1; }; }
3805         fi
3806
3807         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3808                 if test $ol_enable_ldbm_api = auto ; then
3809                         ol_enable_ldbm_api=berkeley
3810                 elif test $ol_enable_ldbm_api != berkeley ; then
3811                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3812 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3813    { (exit 1); exit 1; }; }
3814                 fi
3815         fi
3816 fi
3817
3818 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3819         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3820 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3821    { (exit 1); exit 1; }; }
3822 fi
3823
3824 if test $ol_enable_slurpd = yes ; then
3825                 if test $ol_with_threads = no ; then
3826                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3827 echo "$as_me: error: slurpd requires threads" >&2;}
3828    { (exit 1); exit 1; }; }
3829         fi
3830 fi
3831
3832 if test $ol_enable_lmpasswd = yes ; then
3833         if test $ol_with_tls = no ; then
3834                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3835 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3836    { (exit 1); exit 1; }; }
3837         fi
3838 fi
3839
3840 if test $ol_enable_kbind = yes ; then
3841         if test $ol_with_kerberos = no ; then
3842                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3843 echo "$as_me: error: options require --with-kerberos" >&2;}
3844    { (exit 1); exit 1; }; }
3845         elif test $ol_with_kerberos = auto ; then
3846                 ol_with_kerberos=yes
3847         fi
3848
3849 elif test $ol_enable_kbind = no ; then
3850         if test $ol_with_kerberos = auto ; then
3851                 ol_with_kerberos=no
3852         elif test $ol_with_kerberos != no ; then
3853                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3854 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3855                 ol_with_kerberos=no
3856         fi
3857 fi
3858
3859 if test $ol_enable_spasswd = yes ; then
3860         if test $ol_with_cyrus_sasl = no ; then
3861                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3862 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3863    { (exit 1); exit 1; }; }
3864         fi
3865         ol_with_cyrus_sasl=yes
3866 fi
3867
3868 echo "$as_me:$LINENO: result: done" >&5
3869 echo "${ECHO_T}done" >&6
3870
3871 LDAP_LIBS=
3872 LDBM_LIBS=
3873 LTHREAD_LIBS=
3874 LUTIL_LIBS=
3875
3876 SLAPD_LIBS=
3877 SLURPD_LIBS=
3878
3879 BUILD_SLAPD=no
3880 BUILD_SLURPD=no
3881
3882 BUILD_THREAD=no
3883
3884 BUILD_SLAPI=no
3885 SLAPD_SLAPI_DEPEND=
3886
3887 BUILD_BDB=no
3888 BUILD_DNSSRV=no
3889 BUILD_HDB=no
3890 BUILD_LDAP=no
3891 BUILD_LDBM=no
3892 BUILD_META=no
3893 BUILD_MONITOR=no
3894 BUILD_NULL=no
3895 BUILD_PASSWD=no
3896 BUILD_PERL=no
3897 BUILD_RELAY=no
3898 BUILD_SHELL=no
3899 BUILD_SQL=no
3900
3901 BUILD_ACCESSLOG=no
3902 BUILD_DDS=no
3903 BUILD_DENYOP=no
3904 BUILD_DYNGROUP=no
3905 BUILD_DYNLIST=no
3906 BUILD_LASTMOD=no
3907 BUILD_PPOLICY=no
3908 BUILD_PROXYCACHE=no
3909 BUILD_REFINT=no
3910 BUILD_RETCODE=no
3911 BUILD_RWM=no
3912 BUILD_SYNCPROV=no
3913 BUILD_TRANSLUCENT=no
3914 BUILD_UNIQUE=no
3915 BUILD_VALSORT=no
3916
3917 SLAPD_STATIC_OVERLAYS=
3918 SLAPD_DYNAMIC_OVERLAYS=
3919
3920 SLAPD_MODULES_LDFLAGS=
3921 SLAPD_MODULES_CPPFLAGS=
3922
3923 SLAPD_STATIC_BACKENDS=back-ldif
3924 SLAPD_DYNAMIC_BACKENDS=
3925
3926 SLAPD_PERL_LDFLAGS=
3927 MOD_PERL_LDFLAGS=
3928 PERL_CPPFLAGS=
3929
3930 SLAPD_SQL_LDFLAGS=
3931 SLAPD_SQL_LIBS=
3932 SLAPD_SQL_INCLUDES=
3933
3934 KRB4_LIBS=
3935 KRB5_LIBS=
3936 SASL_LIBS=
3937 TLS_LIBS=
3938 MODULES_LIBS=
3939 SLAPI_LIBS=
3940 LIBSLAPI=
3941 LIBSLAPITOOLS=
3942 AUTH_LIBS=
3943 ICU_LIBS=
3944
3945 SLAPD_SLP_LIBS=
3946 SLAPD_GMP_LIBS=
3947
3948
3949
3950 cat >>confdefs.h <<\_ACEOF
3951 #define HAVE_MKVERSION 1
3952 _ACEOF
3953
3954
3955
3956
3957 ol_aix_threads=no
3958 case "$target" in
3959 *-*-aix*)       if test -z "$CC" ; then
3960                 case "$ol_with_threads" in
3961                 auto | yes |  posix) ol_aix_threads=yes ;;
3962                 esac
3963         fi
3964 ;;
3965 esac
3966
3967 if test $ol_aix_threads = yes ; then
3968         if test -z "${CC}" ; then
3969                 for ac_prog in cc_r xlc_r cc
3970 do
3971   # Extract the first word of "$ac_prog", so it can be a program name with args.
3972 set dummy $ac_prog; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_CC+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   if test -n "$CC"; then
3979   ac_cv_prog_CC="$CC" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984   IFS=$as_save_IFS
3985   test -z "$as_dir" && as_dir=.
3986   for ac_exec_ext in '' $ac_executable_extensions; do
3987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988     ac_cv_prog_CC="$ac_prog"
3989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990     break 2
3991   fi
3992 done
3993 done
3994
3995 fi
3996 fi
3997 CC=$ac_cv_prog_CC
3998 if test -n "$CC"; then
3999   echo "$as_me:$LINENO: result: $CC" >&5
4000 echo "${ECHO_T}$CC" >&6
4001 else
4002   echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6
4004 fi
4005
4006   test -n "$CC" && break
4007 done
4008
4009
4010                 if test "$CC" = cc ; then
4011                                                 if test $ol_with_threads != auto ; then
4012                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4013 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4014    { (exit 1); exit 1; }; }
4015                         else
4016                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4017 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4018                         fi
4019                         ol_with_threads=no
4020                 fi
4021         fi
4022
4023         case ${CC} in cc_r | xlc_r)
4024                 ol_with_threads=posix
4025                 ol_cv_pthread_create=yes
4026                 ;;
4027         esac
4028 fi
4029
4030 if test -z "${CC}"; then
4031         for ac_prog in cc gcc
4032 do
4033   # Extract the first word of "$ac_prog", so it can be a program name with args.
4034 set dummy $ac_prog; ac_word=$2
4035 echo "$as_me:$LINENO: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4037 if test "${ac_cv_prog_CC+set}" = set; then
4038   echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040   if test -n "$CC"; then
4041   ac_cv_prog_CC="$CC" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048   for ac_exec_ext in '' $ac_executable_extensions; do
4049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050     ac_cv_prog_CC="$ac_prog"
4051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052     break 2
4053   fi
4054 done
4055 done
4056
4057 fi
4058 fi
4059 CC=$ac_cv_prog_CC
4060 if test -n "$CC"; then
4061   echo "$as_me:$LINENO: result: $CC" >&5
4062 echo "${ECHO_T}$CC" >&6
4063 else
4064   echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6
4066 fi
4067
4068   test -n "$CC" && break
4069 done
4070 test -n "$CC" || CC="missing"
4071
4072
4073         if test "${CC}" = "missing" ; then
4074                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4075 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4076    { (exit 1); exit 1; }; }
4077         fi
4078 fi
4079
4080 if test -z "${AR}"; then
4081         for ac_prog in ar gar
4082 do
4083   # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_AR+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$AR"; then
4091   ac_cv_prog_AR="$AR" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_AR="$ac_prog"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107 fi
4108 fi
4109 AR=$ac_cv_prog_AR
4110 if test -n "$AR"; then
4111   echo "$as_me:$LINENO: result: $AR" >&5
4112 echo "${ECHO_T}$AR" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118   test -n "$AR" && break
4119 done
4120 test -n "$AR" || AR="missing"
4121
4122
4123         if test "${AR}" = "missing" ; then
4124                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4125 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4126    { (exit 1); exit 1; }; }
4127         fi
4128 fi
4129
4130
4131
4132
4133
4134 # Check whether --enable-fast-install or --disable-fast-install was given.
4135 if test "${enable_fast_install+set}" = set; then
4136   enableval="$enable_fast_install"
4137   p=${PACKAGE-default}
4138     case $enableval in
4139     yes) enable_fast_install=yes ;;
4140     no) enable_fast_install=no ;;
4141     *)
4142       enable_fast_install=no
4143       # Look at the argument we got.  We use all the common list separators.
4144       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4145       for pkg in $enableval; do
4146         IFS="$lt_save_ifs"
4147         if test "X$pkg" = "X$p"; then
4148           enable_fast_install=yes
4149         fi
4150       done
4151       IFS="$lt_save_ifs"
4152       ;;
4153     esac
4154 else
4155   enable_fast_install=yes
4156 fi;
4157
4158 DEPDIR="${am__leading_dot}deps"
4159
4160           ac_config_commands="$ac_config_commands depfiles"
4161
4162
4163 am_make=${MAKE-make}
4164 cat > confinc << 'END'
4165 am__doit:
4166         @echo done
4167 .PHONY: am__doit
4168 END
4169 # If we don't find an include directive, just comment out the code.
4170 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4171 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4172 am__include="#"
4173 am__quote=
4174 _am_result=none
4175 # First try GNU make style include.
4176 echo "include confinc" > confmf
4177 # We grep out `Entering directory' and `Leaving directory'
4178 # messages which can occur if `w' ends up in MAKEFLAGS.
4179 # In particular we don't look at `^make:' because GNU make might
4180 # be invoked under some other name (usually "gmake"), in which
4181 # case it prints its new name instead of `make'.
4182 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4183    am__include=include
4184    am__quote=
4185    _am_result=GNU
4186 fi
4187 # Now try BSD make style include.
4188 if test "$am__include" = "#"; then
4189    echo '.include "confinc"' > confmf
4190    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4191       am__include=.include
4192       am__quote="\""
4193       _am_result=BSD
4194    fi
4195 fi
4196
4197
4198 echo "$as_me:$LINENO: result: $_am_result" >&5
4199 echo "${ECHO_T}$_am_result" >&6
4200 rm -f confinc confmf
4201
4202 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4203 if test "${enable_dependency_tracking+set}" = set; then
4204   enableval="$enable_dependency_tracking"
4205
4206 fi;
4207 if test "x$enable_dependency_tracking" != xno; then
4208   am_depcomp="$ac_aux_dir/depcomp"
4209   AMDEPBACKSLASH='\'
4210 fi
4211
4212
4213 if test "x$enable_dependency_tracking" != xno; then
4214   AMDEP_TRUE=
4215   AMDEP_FALSE='#'
4216 else
4217   AMDEP_TRUE='#'
4218   AMDEP_FALSE=
4219 fi
4220
4221
4222
4223 ac_ext=c
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 if test -n "$ac_tool_prefix"; then
4229   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4231 echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4233 if test "${ac_cv_prog_CC+set}" = set; then
4234   echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236   if test -n "$CC"; then
4237   ac_cv_prog_CC="$CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244   for ac_exec_ext in '' $ac_executable_extensions; do
4245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251 done
4252
4253 fi
4254 fi
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257   echo "$as_me:$LINENO: result: $CC" >&5
4258 echo "${ECHO_T}$CC" >&6
4259 else
4260   echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4262 fi
4263
4264 fi
4265 if test -z "$ac_cv_prog_CC"; then
4266   ac_ct_CC=$CC
4267   # Extract the first word of "gcc", so it can be a program name with args.
4268 set dummy gcc; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   if test -n "$ac_ct_CC"; then
4275   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282   for ac_exec_ext in '' $ac_executable_extensions; do
4283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284     ac_cv_prog_ac_ct_CC="gcc"
4285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289 done
4290
4291 fi
4292 fi
4293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4294 if test -n "$ac_ct_CC"; then
4295   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4296 echo "${ECHO_T}$ac_ct_CC" >&6
4297 else
4298   echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6
4300 fi
4301
4302   CC=$ac_ct_CC
4303 else
4304   CC="$ac_cv_prog_CC"
4305 fi
4306
4307 if test -z "$CC"; then
4308   if test -n "$ac_tool_prefix"; then
4309   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}cc; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_prog_CC+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   if test -n "$CC"; then
4317   ac_cv_prog_CC="$CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326     ac_cv_prog_CC="${ac_tool_prefix}cc"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332
4333 fi
4334 fi
4335 CC=$ac_cv_prog_CC
4336 if test -n "$CC"; then
4337   echo "$as_me:$LINENO: result: $CC" >&5
4338 echo "${ECHO_T}$CC" >&6
4339 else
4340   echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6
4342 fi
4343
4344 fi
4345 if test -z "$ac_cv_prog_CC"; then
4346   ac_ct_CC=$CC
4347   # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   if test -n "$ac_ct_CC"; then
4355   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360   IFS=$as_save_IFS
4361   test -z "$as_dir" && as_dir=.
4362   for ac_exec_ext in '' $ac_executable_extensions; do
4363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364     ac_cv_prog_ac_ct_CC="cc"
4365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366     break 2
4367   fi
4368 done
4369 done
4370
4371 fi
4372 fi
4373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4374 if test -n "$ac_ct_CC"; then
4375   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4376 echo "${ECHO_T}$ac_ct_CC" >&6
4377 else
4378   echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6
4380 fi
4381
4382   CC=$ac_ct_CC
4383 else
4384   CC="$ac_cv_prog_CC"
4385 fi
4386
4387 fi
4388 if test -z "$CC"; then
4389   # Extract the first word of "cc", so it can be a program name with args.
4390 set dummy cc; ac_word=$2
4391 echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4393 if test "${ac_cv_prog_CC+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test -n "$CC"; then
4397   ac_cv_prog_CC="$CC" # Let the user override the test.
4398 else
4399   ac_prog_rejected=no
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4408        ac_prog_rejected=yes
4409        continue
4410      fi
4411     ac_cv_prog_CC="cc"
4412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416 done
4417
4418 if test $ac_prog_rejected = yes; then
4419   # We found a bogon in the path, so make sure we never use it.
4420   set dummy $ac_cv_prog_CC
4421   shift
4422   if test $# != 0; then
4423     # We chose a different compiler from the bogus one.
4424     # However, it has the same basename, so the bogon will be chosen
4425     # first if we set CC to just the basename; use the full file name.
4426     shift
4427     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4428   fi
4429 fi
4430 fi
4431 fi
4432 CC=$ac_cv_prog_CC
4433 if test -n "$CC"; then
4434   echo "$as_me:$LINENO: result: $CC" >&5
4435 echo "${ECHO_T}$CC" >&6
4436 else
4437   echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6
4439 fi
4440
4441 fi
4442 if test -z "$CC"; then
4443   if test -n "$ac_tool_prefix"; then
4444   for ac_prog in cl
4445   do
4446     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4448 echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450 if test "${ac_cv_prog_CC+set}" = set; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   if test -n "$CC"; then
4454   ac_cv_prog_CC="$CC" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469
4470 fi
4471 fi
4472 CC=$ac_cv_prog_CC
4473 if test -n "$CC"; then
4474   echo "$as_me:$LINENO: result: $CC" >&5
4475 echo "${ECHO_T}$CC" >&6
4476 else
4477   echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479 fi
4480
4481     test -n "$CC" && break
4482   done
4483 fi
4484 if test -z "$CC"; then
4485   ac_ct_CC=$CC
4486   for ac_prog in cl
4487 do
4488   # Extract the first word of "$ac_prog", so it can be a program name with args.
4489 set dummy $ac_prog; ac_word=$2
4490 echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4493   echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495   if test -n "$ac_ct_CC"; then
4496   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503   for ac_exec_ext in '' $ac_executable_extensions; do
4504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505     ac_cv_prog_ac_ct_CC="$ac_prog"
4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510 done
4511
4512 fi
4513 fi
4514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4515 if test -n "$ac_ct_CC"; then
4516   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4517 echo "${ECHO_T}$ac_ct_CC" >&6
4518 else
4519   echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4521 fi
4522
4523   test -n "$ac_ct_CC" && break
4524 done
4525
4526   CC=$ac_ct_CC
4527 fi
4528
4529 fi
4530
4531
4532 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4533 See \`config.log' for more details." >&5
4534 echo "$as_me: error: no acceptable C compiler found in \$PATH
4535 See \`config.log' for more details." >&2;}
4536    { (exit 1); exit 1; }; }
4537
4538 # Provide some information about the compiler.
4539 echo "$as_me:$LINENO:" \
4540      "checking for C compiler version" >&5
4541 ac_compiler=`set X $ac_compile; echo $2`
4542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4543   (eval $ac_compiler --version </dev/null >&5) 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4548   (eval $ac_compiler -v </dev/null >&5) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4553   (eval $ac_compiler -V </dev/null >&5) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }
4557
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564
4565 int
4566 main ()
4567 {
4568
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 ac_clean_files_save=$ac_clean_files
4574 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4575 # Try to create an executable without -o first, disregard a.out.
4576 # It will help us diagnose broken compilers, and finding out an intuition
4577 # of exeext.
4578 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4579 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4580 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4581 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4582   (eval $ac_link_default) 2>&5
4583   ac_status=$?
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); }; then
4586   # Find the output, starting from the most likely.  This scheme is
4587 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4588 # resort.
4589
4590 # Be careful to initialize this variable, since it used to be cached.
4591 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4592 ac_cv_exeext=
4593 # b.out is created by i960 compilers.
4594 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4595 do
4596   test -f "$ac_file" || continue
4597   case $ac_file in
4598     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4599         ;;
4600     conftest.$ac_ext )
4601         # This is the source file.
4602         ;;
4603     [ab].out )
4604         # We found the default executable, but exeext='' is most
4605         # certainly right.
4606         break;;
4607     *.* )
4608         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4609         # FIXME: I believe we export ac_cv_exeext for Libtool,
4610         # but it would be cool to find out if it's true.  Does anybody
4611         # maintain Libtool? --akim.
4612         export ac_cv_exeext
4613         break;;
4614     * )
4615         break;;
4616   esac
4617 done
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4623 See \`config.log' for more details." >&5
4624 echo "$as_me: error: C compiler cannot create executables
4625 See \`config.log' for more details." >&2;}
4626    { (exit 77); exit 77; }; }
4627 fi
4628
4629 ac_exeext=$ac_cv_exeext
4630 echo "$as_me:$LINENO: result: $ac_file" >&5
4631 echo "${ECHO_T}$ac_file" >&6
4632
4633 # Check the compiler produces executables we can run.  If not, either
4634 # the compiler is broken, or we cross compile.
4635 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4636 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4637 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4638 # If not cross compiling, check that we can run a simple program.
4639 if test "$cross_compiling" != yes; then
4640   if { ac_try='./$ac_file'
4641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642   (eval $ac_try) 2>&5
4643   ac_status=$?
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }; }; then
4646     cross_compiling=no
4647   else
4648     if test "$cross_compiling" = maybe; then
4649         cross_compiling=yes
4650     else
4651         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details." >&5
4654 echo "$as_me: error: cannot run C compiled programs.
4655 If you meant to cross compile, use \`--host'.
4656 See \`config.log' for more details." >&2;}
4657    { (exit 1); exit 1; }; }
4658     fi
4659   fi
4660 fi
4661 echo "$as_me:$LINENO: result: yes" >&5
4662 echo "${ECHO_T}yes" >&6
4663
4664 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4665 ac_clean_files=$ac_clean_files_save
4666 # Check the compiler produces executables we can run.  If not, either
4667 # the compiler is broken, or we cross compile.
4668 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4669 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4670 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4671 echo "${ECHO_T}$cross_compiling" >&6
4672
4673 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4674 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4676   (eval $ac_link) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; then
4680   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4681 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4682 # work properly (i.e., refer to `conftest.exe'), while it won't with
4683 # `rm'.
4684 for ac_file in conftest.exe conftest conftest.*; do
4685   test -f "$ac_file" || continue
4686   case $ac_file in
4687     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4688     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4689           export ac_cv_exeext
4690           break;;
4691     * ) break;;
4692   esac
4693 done
4694 else
4695   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4696 See \`config.log' for more details." >&5
4697 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4698 See \`config.log' for more details." >&2;}
4699    { (exit 1); exit 1; }; }
4700 fi
4701
4702 rm -f conftest$ac_cv_exeext
4703 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4704 echo "${ECHO_T}$ac_cv_exeext" >&6
4705
4706 rm -f conftest.$ac_ext
4707 EXEEXT=$ac_cv_exeext
4708 ac_exeext=$EXEEXT
4709 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4710 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4711 if test "${ac_cv_objext+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720
4721 int
4722 main ()
4723 {
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.o conftest.obj
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731   (eval $ac_compile) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; then
4735   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4736   case $ac_file in
4737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4738     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4739        break;;
4740   esac
4741 done
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4747 See \`config.log' for more details." >&5
4748 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4749 See \`config.log' for more details." >&2;}
4750    { (exit 1); exit 1; }; }
4751 fi
4752
4753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4756 echo "${ECHO_T}$ac_cv_objext" >&6
4757 OBJEXT=$ac_cv_objext
4758 ac_objext=$OBJEXT
4759 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770
4771 int
4772 main ()
4773 {
4774 #ifndef __GNUC__
4775        choke me
4776 #endif
4777
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -z "$ac_c_werror_flag"
4792                          || test ! -s conftest.err'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; } &&
4798          { ac_try='test -s conftest.$ac_objext'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; }; then
4804   ac_compiler_gnu=yes
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 ac_compiler_gnu=no
4810 fi
4811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4813
4814 fi
4815 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4816 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4817 GCC=`test $ac_compiler_gnu = yes && echo yes`
4818 ac_test_CFLAGS=${CFLAGS+set}
4819 ac_save_CFLAGS=$CFLAGS
4820 CFLAGS="-g"
4821 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4822 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4823 if test "${ac_cv_prog_cc_g+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832
4833 int
4834 main ()
4835 {
4836
4837   ;
4838   return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843   (eval $ac_compile) 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } &&
4850          { ac_try='test -z "$ac_c_werror_flag"
4851                          || test ! -s conftest.err'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; } &&
4857          { ac_try='test -s conftest.$ac_objext'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   ac_cv_prog_cc_g=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ac_cv_prog_cc_g=no
4869 fi
4870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871 fi
4872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4873 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4874 if test "$ac_test_CFLAGS" = set; then
4875   CFLAGS=$ac_save_CFLAGS
4876 elif test $ac_cv_prog_cc_g = yes; then
4877   if test "$GCC" = yes; then
4878     CFLAGS="-g -O2"
4879   else
4880     CFLAGS="-g"
4881   fi
4882 else
4883   if test "$GCC" = yes; then
4884     CFLAGS="-O2"
4885   else
4886     CFLAGS=
4887   fi
4888 fi
4889 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4890 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4891 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   ac_cv_prog_cc_stdc=no
4895 ac_save_CC=$CC
4896 cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902 #include <stdarg.h>
4903 #include <stdio.h>
4904 #include <sys/types.h>
4905 #include <sys/stat.h>
4906 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4907 struct buf { int x; };
4908 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4909 static char *e (p, i)
4910      char **p;
4911      int i;
4912 {
4913   return p[i];
4914 }
4915 static char *f (char * (*g) (char **, int), char **p, ...)
4916 {
4917   char *s;
4918   va_list v;
4919   va_start (v,p);
4920   s = g (p, va_arg (v,int));
4921   va_end (v);
4922   return s;
4923 }
4924
4925 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4926    function prototypes and stuff, but not '\xHH' hex character constants.
4927    These don't provoke an error unfortunately, instead are silently treated
4928    as 'x'.  The following induces an error, until -std1 is added to get
4929    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4930    array size at least.  It's necessary to write '\x00'==0 to get something
4931    that's true only with -std1.  */
4932 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4933
4934 int test (int i, double x);
4935 struct s1 {int (*f) (int a);};
4936 struct s2 {int (*f) (double a);};
4937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4938 int argc;
4939 char **argv;
4940 int
4941 main ()
4942 {
4943 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4944   ;
4945   return 0;
4946 }
4947 _ACEOF
4948 # Don't try gcc -ansi; that turns off useful extensions and
4949 # breaks some systems' header files.
4950 # AIX                   -qlanglvl=ansi
4951 # Ultrix and OSF/1      -std1
4952 # HP-UX 10.20 and later -Ae
4953 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4954 # SVR4                  -Xc -D__EXTENSIONS__
4955 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4956 do
4957   CC="$ac_save_CC $ac_arg"
4958   rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960   (eval $ac_compile) 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -z "$ac_c_werror_flag"
4968                          || test ! -s conftest.err'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; } &&
4974          { ac_try='test -s conftest.$ac_objext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_cv_prog_cc_stdc=$ac_arg
4981 break
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 fi
4987 rm -f conftest.err conftest.$ac_objext
4988 done
4989 rm -f conftest.$ac_ext conftest.$ac_objext
4990 CC=$ac_save_CC
4991
4992 fi
4993
4994 case "x$ac_cv_prog_cc_stdc" in
4995   x|xno)
4996     echo "$as_me:$LINENO: result: none needed" >&5
4997 echo "${ECHO_T}none needed" >&6 ;;
4998   *)
4999     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5000 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5001     CC="$CC $ac_cv_prog_cc_stdc" ;;
5002 esac
5003
5004 # Some people use a C++ compiler to compile C.  Since we use `exit',
5005 # in C++ we need to declare it.  In case someone uses the same compiler
5006 # for both compiling C and C++ we need to have the C++ compiler decide
5007 # the declaration of exit, since it's the most demanding environment.
5008 cat >conftest.$ac_ext <<_ACEOF
5009 #ifndef __cplusplus
5010   choke me
5011 #endif
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015   (eval $ac_compile) 2>conftest.er1
5016   ac_status=$?
5017   grep -v '^ *+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -z "$ac_c_werror_flag"
5023                          || test ! -s conftest.err'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   for ac_declaration in \
5036    '' \
5037    'extern "C" void std::exit (int) throw (); using std::exit;' \
5038    'extern "C" void std::exit (int); using std::exit;' \
5039    'extern "C" void exit (int) throw ();' \
5040    'extern "C" void exit (int);' \
5041    'void exit (int);'
5042 do
5043   cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 $ac_declaration
5050 #include <stdlib.h>
5051 int
5052 main ()
5053 {
5054 exit (42);
5055   ;
5056   return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061   (eval $ac_compile) 2>conftest.er1
5062   ac_status=$?
5063   grep -v '^ *+' conftest.er1 >conftest.err
5064   rm -f conftest.er1
5065   cat conftest.err >&5
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } &&
5068          { ac_try='test -z "$ac_c_werror_flag"
5069                          || test ! -s conftest.err'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; } &&
5075          { ac_try='test -s conftest.$ac_objext'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; }; then
5081   :
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 continue
5087 fi
5088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089   cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h.  */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h.  */
5095 $ac_declaration
5096 int
5097 main ()
5098 {
5099 exit (42);
5100   ;
5101   return 0;
5102 }
5103 _ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106   (eval $ac_compile) 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } &&
5113          { ac_try='test -z "$ac_c_werror_flag"
5114                          || test ! -s conftest.err'
5115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116   (eval $ac_try) 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); }; } &&
5120          { ac_try='test -s conftest.$ac_objext'
5121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122   (eval $ac_try) 2>&5
5123   ac_status=$?
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); }; }; then
5126   break
5127 else
5128   echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131 fi
5132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5133 done
5134 rm -f conftest*
5135 if test -n "$ac_declaration"; then
5136   echo '#ifdef __cplusplus' >>confdefs.h
5137   echo $ac_declaration      >>confdefs.h
5138   echo '#endif'             >>confdefs.h
5139 fi
5140
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 fi
5146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147 ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152
5153 depcc="$CC"   am_compiler_list=
5154
5155 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5156 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5157 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5161   # We make a subdir and do the tests there.  Otherwise we can end up
5162   # making bogus files that we don't know about and never remove.  For
5163   # instance it was reported that on HP-UX the gcc test will end up
5164   # making a dummy file named `D' -- because `-MD' means `put the output
5165   # in D'.
5166   mkdir conftest.dir
5167   # Copy depcomp to subdir because otherwise we won't find it if we're
5168   # using a relative directory.
5169   cp "$am_depcomp" conftest.dir
5170   cd conftest.dir
5171   # We will build objects and dependencies in a subdirectory because
5172   # it helps to detect inapplicable dependency modes.  For instance
5173   # both Tru64's cc and ICC support -MD to output dependencies as a
5174   # side effect of compilation, but ICC will put the dependencies in
5175   # the current directory while Tru64 will put them in the object
5176   # directory.
5177   mkdir sub
5178
5179   am_cv_CC_dependencies_compiler_type=none
5180   if test "$am_compiler_list" = ""; then
5181      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5182   fi
5183   for depmode in $am_compiler_list; do
5184     # Setup a source with many dependencies, because some compilers
5185     # like to wrap large dependency lists on column 80 (with \), and
5186     # we should not choose a depcomp mode which is confused by this.
5187     #
5188     # We need to recreate these files for each test, as the compiler may
5189     # overwrite some of them when testing with obscure command lines.
5190     # This happens at least with the AIX C compiler.
5191     : > sub/conftest.c
5192     for i in 1 2 3 4 5 6; do
5193       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5194       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5195       # Solaris 8's {/usr,}/bin/sh.
5196       touch sub/conftst$i.h
5197     done
5198     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5199
5200     case $depmode in
5201     nosideeffect)
5202       # after this tag, mechanisms are not by side-effect, so they'll
5203       # only be used when explicitly requested
5204       if test "x$enable_dependency_tracking" = xyes; then
5205         continue
5206       else
5207         break
5208       fi
5209       ;;
5210     none) break ;;
5211     esac
5212     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5213     # mode.  It turns out that the SunPro C++ compiler does not properly
5214     # handle `-M -o', and we need to detect this.
5215     if depmode=$depmode \
5216        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5217        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5218        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5219          >/dev/null 2>conftest.err &&
5220        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5221        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5222        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5223       # icc doesn't choke on unknown options, it will just issue warnings
5224       # or remarks (even with -Werror).  So we grep stderr for any message
5225       # that says an option was ignored or not supported.
5226       # When given -MP, icc 7.0 and 7.1 complain thusly:
5227       #   icc: Command line warning: ignoring option '-M'; no argument required
5228       # The diagnosis changed in icc 8.0:
5229       #   icc: Command line remark: option '-MP' not supported
5230       if (grep 'ignoring option' conftest.err ||
5231           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5232         am_cv_CC_dependencies_compiler_type=$depmode
5233         break
5234       fi
5235     fi
5236   done
5237
5238   cd ..
5239   rm -rf conftest.dir
5240 else
5241   am_cv_CC_dependencies_compiler_type=none
5242 fi
5243
5244 fi
5245 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5246 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5247 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5248
5249
5250
5251 if
5252   test "x$enable_dependency_tracking" != xno \
5253   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5254   am__fastdepCC_TRUE=
5255   am__fastdepCC_FALSE='#'
5256 else
5257   am__fastdepCC_TRUE='#'
5258   am__fastdepCC_FALSE=
5259 fi
5260
5261
5262 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5263 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5264 if test "${lt_cv_path_SED+set}" = set; then
5265   echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267   # Loop through the user's path and test for sed and gsed.
5268 # Then use that list of sed's as ones to test for truncation.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274   for lt_ac_prog in sed gsed; do
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5277         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5278       fi
5279     done
5280   done
5281 done
5282 lt_ac_max=0
5283 lt_ac_count=0
5284 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5285 # along with /bin/sed that truncates output.
5286 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5287   test ! -f $lt_ac_sed && continue
5288   cat /dev/null > conftest.in
5289   lt_ac_count=0
5290   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5291   # Check for GNU sed and select it if it is found.
5292   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5293     lt_cv_path_SED=$lt_ac_sed
5294     break
5295   fi
5296   while true; do
5297     cat conftest.in conftest.in >conftest.tmp
5298     mv conftest.tmp conftest.in
5299     cp conftest.in conftest.nl
5300     echo >>conftest.nl
5301     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5302     cmp -s conftest.out conftest.nl || break
5303     # 10000 chars as input seems more than enough
5304     test $lt_ac_count -gt 10 && break
5305     lt_ac_count=`expr $lt_ac_count + 1`
5306     if test $lt_ac_count -gt $lt_ac_max; then
5307       lt_ac_max=$lt_ac_count
5308       lt_cv_path_SED=$lt_ac_sed
5309     fi
5310   done
5311 done
5312
5313 fi
5314
5315 SED=$lt_cv_path_SED
5316 echo "$as_me:$LINENO: result: $SED" >&5
5317 echo "${ECHO_T}$SED" >&6
5318
5319 echo "$as_me:$LINENO: checking for egrep" >&5
5320 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5321 if test "${ac_cv_prog_egrep+set}" = set; then
5322   echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5325     then ac_cv_prog_egrep='grep -E'
5326     else ac_cv_prog_egrep='egrep'
5327     fi
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5330 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5331  EGREP=$ac_cv_prog_egrep
5332
5333
5334
5335 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5336 if test "${with_gnu_ld+set}" = set; then
5337   withval="$with_gnu_ld"
5338   test "$withval" = no || with_gnu_ld=yes
5339 else
5340   with_gnu_ld=no
5341 fi;
5342 ac_prog=ld
5343 if test "$GCC" = yes; then
5344   # Check if gcc -print-prog-name=ld gives a path.
5345   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5346 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5347   case $host in
5348   *-*-mingw*)
5349     # gcc leaves a trailing carriage return which upsets mingw
5350     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5351   *)
5352     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5353   esac
5354   case $ac_prog in
5355     # Accept absolute paths.
5356     [\\/]* | ?:[\\/]*)
5357       re_direlt='/[^/][^/]*/\.\./'
5358       # Canonicalize the pathname of ld
5359       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5360       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5361         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5362       done
5363       test -z "$LD" && LD="$ac_prog"
5364       ;;
5365   "")
5366     # If it fails, then pretend we aren't using GCC.
5367     ac_prog=ld
5368     ;;
5369   *)
5370     # If it is relative, then search for the first ld in PATH.
5371     with_gnu_ld=unknown
5372     ;;
5373   esac
5374 elif test "$with_gnu_ld" = yes; then
5375   echo "$as_me:$LINENO: checking for GNU ld" >&5
5376 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5377 else
5378   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5379 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5380 fi
5381 if test "${lt_cv_path_LD+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   if test -z "$LD"; then
5385   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386   for ac_dir in $PATH; do
5387     IFS="$lt_save_ifs"
5388     test -z "$ac_dir" && ac_dir=.
5389     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5390       lt_cv_path_LD="$ac_dir/$ac_prog"
5391       # Check to see if the program is GNU ld.  I'd rather use --version,
5392       # but apparently some variants of GNU ld only accept -v.
5393       # Break only if it was the GNU/non-GNU ld that we prefer.
5394       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5395       *GNU* | *'with BFD'*)
5396         test "$with_gnu_ld" != no && break
5397         ;;
5398       *)
5399         test "$with_gnu_ld" != yes && break
5400         ;;
5401       esac
5402     fi
5403   done
5404   IFS="$lt_save_ifs"
5405 else
5406   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5407 fi
5408 fi
5409
5410 LD="$lt_cv_path_LD"
5411 if test -n "$LD"; then
5412   echo "$as_me:$LINENO: result: $LD" >&5
5413 echo "${ECHO_T}$LD" >&6
5414 else
5415   echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5417 fi
5418 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5419 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5420    { (exit 1); exit 1; }; }
5421 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5422 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5423 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5427 case `$LD -v 2>&1 </dev/null` in
5428 *GNU* | *'with BFD'*)
5429   lt_cv_prog_gnu_ld=yes
5430   ;;
5431 *)
5432   lt_cv_prog_gnu_ld=no
5433   ;;
5434 esac
5435 fi
5436 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5437 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5438 with_gnu_ld=$lt_cv_prog_gnu_ld
5439
5440
5441 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5442 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5443 if test "${lt_cv_ld_reload_flag+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   lt_cv_ld_reload_flag='-r'
5447 fi
5448 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5449 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5450 reload_flag=$lt_cv_ld_reload_flag
5451 case $reload_flag in
5452 "" | " "*) ;;
5453 *) reload_flag=" $reload_flag" ;;
5454 esac
5455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 case $host_os in
5457   darwin*)
5458     if test "$GCC" = yes; then
5459       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5460     else
5461       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5462     fi
5463     ;;
5464 esac
5465
5466 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5467 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5468 if test "${lt_cv_path_NM+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   if test -n "$NM"; then
5472   # Let the user override the test.
5473   lt_cv_path_NM="$NM"
5474 else
5475   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5476   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5477     IFS="$lt_save_ifs"
5478     test -z "$ac_dir" && ac_dir=.
5479     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5480     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5481       # Check to see if the nm accepts a BSD-compat flag.
5482       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5483       #   nm: unknown option "B" ignored
5484       # Tru64's nm complains that /dev/null is an invalid object file
5485       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5486       */dev/null* | *'Invalid file or object type'*)
5487         lt_cv_path_NM="$tmp_nm -B"
5488         break
5489         ;;
5490       *)
5491         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5492         */dev/null*)
5493           lt_cv_path_NM="$tmp_nm -p"
5494           break
5495           ;;
5496         *)
5497           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5498           continue # so that we can try to find one that supports BSD flags
5499           ;;
5500         esac
5501       esac
5502     fi
5503   done
5504   IFS="$lt_save_ifs"
5505   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5506 fi
5507 fi
5508 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5509 echo "${ECHO_T}$lt_cv_path_NM" >&6
5510 NM="$lt_cv_path_NM"
5511
5512 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5513 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5514 LN_S=$as_ln_s
5515 if test "$LN_S" = "ln -s"; then
5516   echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6
5518 else
5519   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5520 echo "${ECHO_T}no, using $LN_S" >&6
5521 fi
5522
5523 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5524 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5525 if test "${lt_cv_deplibs_check_method+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   lt_cv_file_magic_cmd='$MAGIC_CMD'
5529 lt_cv_file_magic_test_file=
5530 lt_cv_deplibs_check_method='unknown'
5531 # Need to set the preceding variable on all platforms that support
5532 # interlibrary dependencies.
5533 # 'none' -- dependencies not supported.
5534 # `unknown' -- same as none, but documents that we really don't know.
5535 # 'pass_all' -- all dependencies passed with no checks.
5536 # 'test_compile' -- check by making test program.
5537 # 'file_magic [[regex]]' -- check by looking for files in library path
5538 # which responds to the $file_magic_cmd with a given extended regex.
5539 # If you have `file' or equivalent on your system and you're not sure
5540 # whether `pass_all' will *always* work, you probably want this one.
5541
5542 case $host_os in
5543 aix4* | aix5*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 beos*)
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 bsdi[45]*)
5552   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5553   lt_cv_file_magic_cmd='/usr/bin/file -L'
5554   lt_cv_file_magic_test_file=/shlib/libc.so
5555   ;;
5556
5557 cygwin*)
5558   # func_win32_libid is a shell function defined in ltmain.sh
5559   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5560   lt_cv_file_magic_cmd='func_win32_libid'
5561   ;;
5562
5563 mingw* | pw32*)
5564   # Base MSYS/MinGW do not provide the 'file' command needed by
5565   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5566   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5567   lt_cv_file_magic_cmd='$OBJDUMP -f'
5568   ;;
5569
5570 darwin* | rhapsody*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 freebsd* | kfreebsd*-gnu | dragonfly*)
5575   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576     case $host_cpu in
5577     i*86 )
5578       # Not sure whether the presence of OpenBSD here was a mistake.
5579       # Let's accept both of them until this is cleared up.
5580       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5581       lt_cv_file_magic_cmd=/usr/bin/file
5582       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5583       ;;
5584     esac
5585   else
5586     lt_cv_deplibs_check_method=pass_all
5587   fi
5588   ;;
5589
5590 gnu*)
5591   lt_cv_deplibs_check_method=pass_all
5592   ;;
5593
5594 hpux10.20* | hpux11*)
5595   lt_cv_file_magic_cmd=/usr/bin/file
5596   case $host_cpu in
5597   ia64*)
5598     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5599     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5600     ;;
5601   hppa*64*)
5602     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]'
5603     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5604     ;;
5605   *)
5606     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5607     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5608     ;;
5609   esac
5610   ;;
5611
5612 irix5* | irix6* | nonstopux*)
5613   case $LD in
5614   *-32|*"-32 ") libmagic=32-bit;;
5615   *-n32|*"-n32 ") libmagic=N32;;
5616   *-64|*"-64 ") libmagic=64-bit;;
5617   *) libmagic=never-match;;
5618   esac
5619   lt_cv_deplibs_check_method=pass_all
5620   ;;
5621
5622 # This must be Linux ELF.
5623 linux*)
5624   lt_cv_deplibs_check_method=pass_all
5625   ;;
5626
5627 netbsd*)
5628   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5629     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5630   else
5631     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5632   fi
5633   ;;
5634
5635 newos6*)
5636   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5637   lt_cv_file_magic_cmd=/usr/bin/file
5638   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5639   ;;
5640
5641 nto-qnx*)
5642   lt_cv_deplibs_check_method=unknown
5643   ;;
5644
5645 openbsd*)
5646   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5647     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5648   else
5649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5650   fi
5651   ;;
5652
5653 osf3* | osf4* | osf5*)
5654   lt_cv_deplibs_check_method=pass_all
5655   ;;
5656
5657 sco3.2v5*)
5658   lt_cv_deplibs_check_method=pass_all
5659   ;;
5660
5661 solaris*)
5662   lt_cv_deplibs_check_method=pass_all
5663   ;;
5664
5665 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5666   case $host_vendor in
5667   motorola)
5668     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]'
5669     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670     ;;
5671   ncr)
5672     lt_cv_deplibs_check_method=pass_all
5673     ;;
5674   sequent)
5675     lt_cv_file_magic_cmd='/bin/file'
5676     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677     ;;
5678   sni)
5679     lt_cv_file_magic_cmd='/bin/file'
5680     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5681     lt_cv_file_magic_test_file=/lib/libc.so
5682     ;;
5683   siemens)
5684     lt_cv_deplibs_check_method=pass_all
5685     ;;
5686   esac
5687   ;;
5688
5689 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5690   lt_cv_deplibs_check_method=pass_all
5691   ;;
5692 esac
5693
5694 fi
5695 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5696 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5697 file_magic_cmd=$lt_cv_file_magic_cmd
5698 deplibs_check_method=$lt_cv_deplibs_check_method
5699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5700
5701
5702
5703
5704 # If no C compiler was specified, use CC.
5705 LTCC=${LTCC-"$CC"}
5706
5707 # Allow CC to be a program name with arguments.
5708 compiler=$CC
5709
5710
5711 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5712 if test "${enable_libtool_lock+set}" = set; then
5713   enableval="$enable_libtool_lock"
5714
5715 fi;
5716 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5717
5718 # Some flags need to be propagated to the compiler or linker for good
5719 # libtool support.
5720 case $host in
5721 ia64-*-hpux*)
5722   # Find out which ABI we are using.
5723   echo 'int i;' > conftest.$ac_ext
5724   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725   (eval $ac_compile) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; then
5729     case `/usr/bin/file conftest.$ac_objext` in
5730     *ELF-32*)
5731       HPUX_IA64_MODE="32"
5732       ;;
5733     *ELF-64*)
5734       HPUX_IA64_MODE="64"
5735       ;;
5736     esac
5737   fi
5738   rm -rf conftest*
5739   ;;
5740 *-*-irix6*)
5741   # Find out which ABI we are using.
5742   echo '#line 5742 "configure"' > conftest.$ac_ext
5743   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744   (eval $ac_compile) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; then
5748    if test "$lt_cv_prog_gnu_ld" = yes; then
5749     case `/usr/bin/file conftest.$ac_objext` in
5750     *32-bit*)
5751       LD="${LD-ld} -melf32bsmip"
5752       ;;
5753     *N32*)
5754       LD="${LD-ld} -melf32bmipn32"
5755       ;;
5756     *64-bit*)
5757       LD="${LD-ld} -melf64bmip"
5758       ;;
5759     esac
5760    else
5761     case `/usr/bin/file conftest.$ac_objext` in
5762     *32-bit*)
5763       LD="${LD-ld} -32"
5764       ;;
5765     *N32*)
5766       LD="${LD-ld} -n32"
5767       ;;
5768     *64-bit*)
5769       LD="${LD-ld} -64"
5770       ;;
5771     esac
5772    fi
5773   fi
5774   rm -rf conftest*
5775   ;;
5776
5777 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5778   # Find out which ABI we are using.
5779   echo 'int i;' > conftest.$ac_ext
5780   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; then
5785     case `/usr/bin/file conftest.o` in
5786     *32-bit*)
5787       case $host in
5788         x86_64-*linux*)
5789           LD="${LD-ld} -m elf_i386"
5790           ;;
5791         ppc64-*linux*|powerpc64-*linux*)
5792           LD="${LD-ld} -m elf32ppclinux"
5793           ;;
5794         s390x-*linux*)
5795           LD="${LD-ld} -m elf_s390"
5796           ;;
5797         sparc64-*linux*)
5798           LD="${LD-ld} -m elf32_sparc"
5799           ;;
5800       esac
5801       ;;
5802     *64-bit*)
5803       case $host in
5804         x86_64-*linux*)
5805           LD="${LD-ld} -m elf_x86_64"
5806           ;;
5807         ppc*-*linux*|powerpc*-*linux*)
5808           LD="${LD-ld} -m elf64ppc"
5809           ;;
5810         s390*-*linux*)
5811           LD="${LD-ld} -m elf64_s390"
5812           ;;
5813         sparc*-*linux*)
5814           LD="${LD-ld} -m elf64_sparc"
5815           ;;
5816       esac
5817       ;;
5818     esac
5819   fi
5820   rm -rf conftest*
5821   ;;
5822
5823 *-*-sco3.2v5*)
5824   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5825   SAVE_CFLAGS="$CFLAGS"
5826   CFLAGS="$CFLAGS -belf"
5827   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5828 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5829 if test "${lt_cv_cc_needs_belf+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   ac_ext=c
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837
5838      cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844
5845 int
5846 main ()
5847 {
5848
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855   (eval $ac_link) 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -z "$ac_c_werror_flag"
5863                          || test ! -s conftest.err'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; } &&
5869          { ac_try='test -s conftest$ac_exeext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   lt_cv_cc_needs_belf=yes
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 lt_cv_cc_needs_belf=no
5881 fi
5882 rm -f conftest.err conftest.$ac_objext \
5883       conftest$ac_exeext conftest.$ac_ext
5884      ac_ext=c
5885 ac_cpp='$CPP $CPPFLAGS'
5886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
5890 fi
5891 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5892 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5893   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5894     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5895     CFLAGS="$SAVE_CFLAGS"
5896   fi
5897   ;;
5898 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5899   if test -n "$ac_tool_prefix"; then
5900   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   if test -n "$DLLTOOL"; then
5908   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923
5924 fi
5925 fi
5926 DLLTOOL=$ac_cv_prog_DLLTOOL
5927 if test -n "$DLLTOOL"; then
5928   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5929 echo "${ECHO_T}$DLLTOOL" >&6
5930 else
5931   echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5933 fi
5934
5935 fi
5936 if test -z "$ac_cv_prog_DLLTOOL"; then
5937   ac_ct_DLLTOOL=$DLLTOOL
5938   # Extract the first word of "dlltool", so it can be a program name with args.
5939 set dummy dlltool; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   if test -n "$ac_ct_DLLTOOL"; then
5946   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953   for ac_exec_ext in '' $ac_executable_extensions; do
5954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960 done
5961
5962   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5963 fi
5964 fi
5965 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5966 if test -n "$ac_ct_DLLTOOL"; then
5967   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5968 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5969 else
5970   echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6
5972 fi
5973
5974   DLLTOOL=$ac_ct_DLLTOOL
5975 else
5976   DLLTOOL="$ac_cv_prog_DLLTOOL"
5977 fi
5978
5979   if test -n "$ac_tool_prefix"; then
5980   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5981 set dummy ${ac_tool_prefix}as; ac_word=$2
5982 echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5984 if test "${ac_cv_prog_AS+set}" = set; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   if test -n "$AS"; then
5988   ac_cv_prog_AS="$AS" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997     ac_cv_prog_AS="${ac_tool_prefix}as"
5998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003
6004 fi
6005 fi
6006 AS=$ac_cv_prog_AS
6007 if test -n "$AS"; then
6008   echo "$as_me:$LINENO: result: $AS" >&5
6009 echo "${ECHO_T}$AS" >&6
6010 else
6011   echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6
6013 fi
6014
6015 fi
6016 if test -z "$ac_cv_prog_AS"; then
6017   ac_ct_AS=$AS
6018   # Extract the first word of "as", so it can be a program name with args.
6019 set dummy as; ac_word=$2
6020 echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6022 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   if test -n "$ac_ct_AS"; then
6026   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6027 else
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 for as_dir in $PATH
6030 do
6031   IFS=$as_save_IFS
6032   test -z "$as_dir" && as_dir=.
6033   for ac_exec_ext in '' $ac_executable_extensions; do
6034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035     ac_cv_prog_ac_ct_AS="as"
6036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037     break 2
6038   fi
6039 done
6040 done
6041
6042   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6043 fi
6044 fi
6045 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6046 if test -n "$ac_ct_AS"; then
6047   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6048 echo "${ECHO_T}$ac_ct_AS" >&6
6049 else
6050   echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6
6052 fi
6053
6054   AS=$ac_ct_AS
6055 else
6056   AS="$ac_cv_prog_AS"
6057 fi
6058
6059   if test -n "$ac_tool_prefix"; then
6060   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6062 echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6064 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6065   echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067   if test -n "$OBJDUMP"; then
6068   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073   IFS=$as_save_IFS
6074   test -z "$as_dir" && as_dir=.
6075   for ac_exec_ext in '' $ac_executable_extensions; do
6076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079     break 2
6080   fi
6081 done
6082 done
6083
6084 fi
6085 fi
6086 OBJDUMP=$ac_cv_prog_OBJDUMP
6087 if test -n "$OBJDUMP"; then
6088   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6089 echo "${ECHO_T}$OBJDUMP" >&6
6090 else
6091   echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6
6093 fi
6094
6095 fi
6096 if test -z "$ac_cv_prog_OBJDUMP"; then
6097   ac_ct_OBJDUMP=$OBJDUMP
6098   # Extract the first word of "objdump", so it can be a program name with args.
6099 set dummy objdump; ac_word=$2
6100 echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6102 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   if test -n "$ac_ct_OBJDUMP"; then
6106   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113   for ac_exec_ext in '' $ac_executable_extensions; do
6114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120 done
6121
6122   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6123 fi
6124 fi
6125 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6126 if test -n "$ac_ct_OBJDUMP"; then
6127   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6128 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6129 else
6130   echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6132 fi
6133
6134   OBJDUMP=$ac_ct_OBJDUMP
6135 else
6136   OBJDUMP="$ac_cv_prog_OBJDUMP"
6137 fi
6138
6139   ;;
6140
6141 esac
6142
6143 need_locks="$enable_libtool_lock"
6144
6145
6146 ac_ext=c
6147 ac_cpp='$CPP $CPPFLAGS'
6148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6152 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6153 # On Suns, sometimes $CPP names a directory.
6154 if test -n "$CPP" && test -d "$CPP"; then
6155   CPP=
6156 fi
6157 if test -z "$CPP"; then
6158   if test "${ac_cv_prog_CPP+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161       # Double quotes because CPP needs to be expanded
6162     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6163     do
6164       ac_preproc_ok=false
6165 for ac_c_preproc_warn_flag in '' yes
6166 do
6167   # Use a header file that comes with gcc, so configuring glibc
6168   # with a fresh cross-compiler works.
6169   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170   # <limits.h> exists even on freestanding compilers.
6171   # On the NeXT, cc -E runs the code through the compiler's parser,
6172   # not just through cpp. "Syntax error" is here to catch this case.
6173   cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #ifdef __STDC__
6180 # include <limits.h>
6181 #else
6182 # include <assert.h>
6183 #endif
6184                      Syntax error
6185 _ACEOF
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6188   ac_status=$?
6189   grep -v '^ *+' conftest.er1 >conftest.err
6190   rm -f conftest.er1
6191   cat conftest.err >&5
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } >/dev/null; then
6194   if test -s conftest.err; then
6195     ac_cpp_err=$ac_c_preproc_warn_flag
6196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6197   else
6198     ac_cpp_err=
6199   fi
6200 else
6201   ac_cpp_err=yes
6202 fi
6203 if test -z "$ac_cpp_err"; then
6204   :
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209   # Broken: fails on valid input.
6210 continue
6211 fi
6212 rm -f conftest.err conftest.$ac_ext
6213
6214   # OK, works on sane cases.  Now check whether non-existent headers
6215   # can be detected and how.
6216   cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h.  */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h.  */
6222 #include <ac_nonexistent.h>
6223 _ACEOF
6224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6226   ac_status=$?
6227   grep -v '^ *+' conftest.er1 >conftest.err
6228   rm -f conftest.er1
6229   cat conftest.err >&5
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } >/dev/null; then
6232   if test -s conftest.err; then
6233     ac_cpp_err=$ac_c_preproc_warn_flag
6234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6235   else
6236     ac_cpp_err=
6237   fi
6238 else
6239   ac_cpp_err=yes
6240 fi
6241 if test -z "$ac_cpp_err"; then
6242   # Broken: success on invalid input.
6243 continue
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248   # Passes both tests.
6249 ac_preproc_ok=:
6250 break
6251 fi
6252 rm -f conftest.err conftest.$ac_ext
6253
6254 done
6255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6256 rm -f conftest.err conftest.$ac_ext
6257 if $ac_preproc_ok; then
6258   break
6259 fi
6260
6261     done
6262     ac_cv_prog_CPP=$CPP
6263
6264 fi
6265   CPP=$ac_cv_prog_CPP
6266 else
6267   ac_cv_prog_CPP=$CPP
6268 fi
6269 echo "$as_me:$LINENO: result: $CPP" >&5
6270 echo "${ECHO_T}$CPP" >&6
6271 ac_preproc_ok=false
6272 for ac_c_preproc_warn_flag in '' yes
6273 do
6274   # Use a header file that comes with gcc, so configuring glibc
6275   # with a fresh cross-compiler works.
6276   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277   # <limits.h> exists even on freestanding compilers.
6278   # On the NeXT, cc -E runs the code through the compiler's parser,
6279   # not just through cpp. "Syntax error" is here to catch this case.
6280   cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h.  */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h.  */
6286 #ifdef __STDC__
6287 # include <limits.h>
6288 #else
6289 # include <assert.h>
6290 #endif
6291                      Syntax error
6292 _ACEOF
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295   ac_status=$?
6296   grep -v '^ *+' conftest.er1 >conftest.err
6297   rm -f conftest.er1
6298   cat conftest.err >&5
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } >/dev/null; then
6301   if test -s conftest.err; then
6302     ac_cpp_err=$ac_c_preproc_warn_flag
6303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6304   else
6305     ac_cpp_err=
6306   fi
6307 else
6308   ac_cpp_err=yes
6309 fi
6310 if test -z "$ac_cpp_err"; then
6311   :
6312 else
6313   echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316   # Broken: fails on valid input.
6317 continue
6318 fi
6319 rm -f conftest.err conftest.$ac_ext
6320
6321   # OK, works on sane cases.  Now check whether non-existent headers
6322   # can be detected and how.
6323   cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329 #include <ac_nonexistent.h>
6330 _ACEOF
6331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333   ac_status=$?
6334   grep -v '^ *+' conftest.er1 >conftest.err
6335   rm -f conftest.er1
6336   cat conftest.err >&5
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); } >/dev/null; then
6339   if test -s conftest.err; then
6340     ac_cpp_err=$ac_c_preproc_warn_flag
6341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6342   else
6343     ac_cpp_err=
6344   fi
6345 else
6346   ac_cpp_err=yes
6347 fi
6348 if test -z "$ac_cpp_err"; then
6349   # Broken: success on invalid input.
6350 continue
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355   # Passes both tests.
6356 ac_preproc_ok=:
6357 break
6358 fi
6359 rm -f conftest.err conftest.$ac_ext
6360
6361 done
6362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6363 rm -f conftest.err conftest.$ac_ext
6364 if $ac_preproc_ok; then
6365   :
6366 else
6367   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6368 See \`config.log' for more details." >&5
6369 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6370 See \`config.log' for more details." >&2;}
6371    { (exit 1); exit 1; }; }
6372 fi
6373
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379
6380
6381 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6382 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6383 if test "${ac_cv_header_stdc+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 #include <stdlib.h>
6393 #include <stdarg.h>
6394 #include <string.h>
6395 #include <float.h>
6396
6397 int
6398 main ()
6399 {
6400
6401   ;
6402   return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407   (eval $ac_compile) 2>conftest.er1
6408   ac_status=$?
6409   grep -v '^ *+' conftest.er1 >conftest.err
6410   rm -f conftest.er1
6411   cat conftest.err >&5
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -z "$ac_c_werror_flag"
6415                          || test ! -s conftest.err'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; } &&
6421          { ac_try='test -s conftest.$ac_objext'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; }; then
6427   ac_cv_header_stdc=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_cv_header_stdc=no
6433 fi
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435
6436 if test $ac_cv_header_stdc = yes; then
6437   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6438   cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 #include <string.h>
6445
6446 _ACEOF
6447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6448   $EGREP "memchr" >/dev/null 2>&1; then
6449   :
6450 else
6451   ac_cv_header_stdc=no
6452 fi
6453 rm -f conftest*
6454
6455 fi
6456
6457 if test $ac_cv_header_stdc = yes; then
6458   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6459   cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 #include <stdlib.h>
6466
6467 _ACEOF
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469   $EGREP "free" >/dev/null 2>&1; then
6470   :
6471 else
6472   ac_cv_header_stdc=no
6473 fi
6474 rm -f conftest*
6475
6476 fi
6477
6478 if test $ac_cv_header_stdc = yes; then
6479   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6480   if test "$cross_compiling" = yes; then
6481   :
6482 else
6483   cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 #include <ctype.h>
6490 #if ((' ' & 0x0FF) == 0x020)
6491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6493 #else
6494 # define ISLOWER(c) \
6495                    (('a' <= (c) && (c) <= 'i') \
6496                      || ('j' <= (c) && (c) <= 'r') \
6497                      || ('s' <= (c) && (c) <= 'z'))
6498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6499 #endif
6500
6501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6502 int
6503 main ()
6504 {
6505   int i;
6506   for (i = 0; i < 256; i++)
6507     if (XOR (islower (i), ISLOWER (i))
6508         || toupper (i) != TOUPPER (i))
6509       exit(2);
6510   exit (0);
6511 }
6512 _ACEOF
6513 rm -f conftest$ac_exeext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6515   (eval $ac_link) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; }; then
6524   :
6525 else
6526   echo "$as_me: program exited with status $ac_status" >&5
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ( exit $ac_status )
6531 ac_cv_header_stdc=no
6532 fi
6533 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6534 fi
6535 fi
6536 fi
6537 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6538 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6539 if test $ac_cv_header_stdc = yes; then
6540
6541 cat >>confdefs.h <<\_ACEOF
6542 #define STDC_HEADERS 1
6543 _ACEOF
6544
6545 fi
6546
6547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6558                   inttypes.h stdint.h unistd.h
6559 do
6560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h.  */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h.  */
6572 $ac_includes_default
6573
6574 #include <$ac_header>
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578   (eval $ac_compile) 2>conftest.er1
6579   ac_status=$?
6580   grep -v '^ *+' conftest.er1 >conftest.err
6581   rm -f conftest.er1
6582   cat conftest.err >&5
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); } &&
6585          { ac_try='test -z "$ac_c_werror_flag"
6586                          || test ! -s conftest.err'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; } &&
6592          { ac_try='test -s conftest.$ac_objext'
6593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594   (eval $ac_try) 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); }; }; then
6598   eval "$as_ac_Header=yes"
6599 else
6600   echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603 eval "$as_ac_Header=no"
6604 fi
6605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6606 fi
6607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6610   cat >>confdefs.h <<_ACEOF
6611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612 _ACEOF
6613
6614 fi
6615
6616 done
6617
6618
6619
6620 for ac_header in dlfcn.h
6621 do
6622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6624   echo "$as_me:$LINENO: checking for $ac_header" >&5
6625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 fi
6629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6631 else
6632   # Is the header compilable?
6633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h.  */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h.  */
6641 $ac_includes_default
6642 #include <$ac_header>
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646   (eval $ac_compile) 2>conftest.er1
6647   ac_status=$?
6648   grep -v '^ *+' conftest.er1 >conftest.err
6649   rm -f conftest.er1
6650   cat conftest.err >&5
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } &&
6653          { ac_try='test -z "$ac_c_werror_flag"
6654                          || test ! -s conftest.err'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; } &&
6660          { ac_try='test -s conftest.$ac_objext'
6661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; }; then
6666   ac_header_compiler=yes
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 ac_header_compiler=no
6672 fi
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6675 echo "${ECHO_T}$ac_header_compiler" >&6
6676
6677 # Is the header present?
6678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h.  */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h.  */
6686 #include <$ac_header>
6687 _ACEOF
6688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } >/dev/null; then
6696   if test -s conftest.err; then
6697     ac_cpp_err=$ac_c_preproc_warn_flag
6698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6699   else
6700     ac_cpp_err=
6701   fi
6702 else
6703   ac_cpp_err=yes
6704 fi
6705 if test -z "$ac_cpp_err"; then
6706   ac_header_preproc=yes
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711   ac_header_preproc=no
6712 fi
6713 rm -f conftest.err conftest.$ac_ext
6714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6715 echo "${ECHO_T}$ac_header_preproc" >&6
6716
6717 # So?  What about this header?
6718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6719   yes:no: )
6720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6724     ac_header_preproc=yes
6725     ;;
6726   no:yes:* )
6727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6739     (
6740       cat <<\_ASBOX
6741 ## --------------------------------------------- ##
6742 ## Report this to <http://www.openldap.org/its/> ##
6743 ## --------------------------------------------- ##
6744 _ASBOX
6745     ) |
6746       sed "s/^/$as_me: WARNING:     /" >&2
6747     ;;
6748 esac
6749 echo "$as_me:$LINENO: checking for $ac_header" >&5
6750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   eval "$as_ac_Header=\$ac_header_preproc"
6755 fi
6756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6758
6759 fi
6760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6761   cat >>confdefs.h <<_ACEOF
6762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6763 _ACEOF
6764
6765 fi
6766
6767 done
6768
6769
6770 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6771
6772 # find the maximum length of command line arguments
6773 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6774 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6775 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778     i=0
6779   teststring="ABCD"
6780
6781   case $build_os in
6782   msdosdjgpp*)
6783     # On DJGPP, this test can blow up pretty badly due to problems in libc
6784     # (any single argument exceeding 2000 bytes causes a buffer overrun
6785     # during glob expansion).  Even if it were fixed, the result of this
6786     # check would be larger than it should be.
6787     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6788     ;;
6789
6790   gnu*)
6791     # Under GNU Hurd, this test is not required because there is
6792     # no limit to the length of command line arguments.
6793     # Libtool will interpret -1 as no limit whatsoever
6794     lt_cv_sys_max_cmd_len=-1;
6795     ;;
6796
6797   cygwin* | mingw*)
6798     # On Win9x/ME, this test blows up -- it succeeds, but takes
6799     # about 5 minutes as the teststring grows exponentially.
6800     # Worse, since 9x/ME are not pre-emptively multitasking,
6801     # you end up with a "frozen" computer, even though with patience
6802     # the test eventually succeeds (with a max line length of 256k).
6803     # Instead, let's just punt: use the minimum linelength reported by
6804     # all of the supported platforms: 8192 (on NT/2K/XP).
6805     lt_cv_sys_max_cmd_len=8192;
6806     ;;
6807
6808   amigaos*)
6809     # On AmigaOS with pdksh, this test takes hours, literally.
6810     # So we just punt and use a minimum line length of 8192.
6811     lt_cv_sys_max_cmd_len=8192;
6812     ;;
6813
6814   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6815     # This has been around since 386BSD, at least.  Likely further.
6816     if test -x /sbin/sysctl; then
6817       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6818     elif test -x /usr/sbin/sysctl; then
6819       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6820     else
6821       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6822     fi
6823     # And add a safety zone
6824     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6825     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6826     ;;
6827   osf*)
6828     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6829     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6830     # nice to cause kernel panics so lets avoid the loop below.
6831     # First set a reasonable default.
6832     lt_cv_sys_max_cmd_len=16384
6833     #
6834     if test -x /sbin/sysconfig; then
6835       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6836         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6837       esac
6838     fi
6839     ;;
6840   *)
6841     # If test is not a shell built-in, we'll probably end up computing a
6842     # maximum length that is only half of the actual maximum length, but
6843     # we can't tell.
6844     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6845     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6846                = "XX$teststring") >/dev/null 2>&1 &&
6847             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6848             lt_cv_sys_max_cmd_len=$new_result &&
6849             test $i != 17 # 1/2 MB should be enough
6850     do
6851       i=`expr $i + 1`
6852       teststring=$teststring$teststring
6853     done
6854     teststring=
6855     # Add a significant safety factor because C++ compilers can tack on massive
6856     # amounts of additional arguments before passing them to the linker.
6857     # It appears as though 1/2 is a usable value.
6858     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6859     ;;
6860   esac
6861
6862 fi
6863
6864 if test -n $lt_cv_sys_max_cmd_len ; then
6865   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6866 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6867 else
6868   echo "$as_me:$LINENO: result: none" >&5
6869 echo "${ECHO_T}none" >&6
6870 fi
6871
6872
6873
6874
6875 # Check for command to grab the raw symbol name followed by C symbol from nm.
6876 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6877 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881
6882 # These are sane defaults that work on at least a few old systems.
6883 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6884
6885 # Character class describing NM global symbol codes.
6886 symcode='[BCDEGRST]'
6887
6888 # Regexp to match symbols that can be accessed directly from C.
6889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6890
6891 # Transform an extracted symbol line into a proper C declaration
6892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6893
6894 # Transform an extracted symbol line into symbol name and symbol address
6895 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'"
6896
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900   symcode='[BCDT]'
6901   ;;
6902 cygwin* | mingw* | pw32*)
6903   symcode='[ABCDGISTW]'
6904   ;;
6905 hpux*) # Its linker distinguishes data from code symbols
6906   if test "$host_cpu" = ia64; then
6907     symcode='[ABCDEGRST]'
6908   fi
6909   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6910   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'"
6911   ;;
6912 linux*)
6913   if test "$host_cpu" = ia64; then
6914     symcode='[ABCDGIRSTW]'
6915     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6916     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'"
6917   fi
6918   ;;
6919 irix* | nonstopux*)
6920   symcode='[BCDEGRST]'
6921   ;;
6922 osf*)
6923   symcode='[BCDEGQRST]'
6924   ;;
6925 solaris* | sysv5*)
6926   symcode='[BDRT]'
6927   ;;
6928 sysv4)
6929   symcode='[DFNSTU]'
6930   ;;
6931 esac
6932
6933 # Handle CRLF in mingw tool chain
6934 opt_cr=
6935 case $build_os in
6936 mingw*)
6937   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6938   ;;
6939 esac
6940
6941 # If we're using GNU nm, then use its standard symbol codes.
6942 case `$NM -V 2>&1` in
6943 *GNU* | *'with BFD'*)
6944   symcode='[ABCDGIRSTW]' ;;
6945 esac
6946
6947 # Try without a prefix undercore, then with it.
6948 for ac_symprfx in "" "_"; do
6949
6950   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6951   symxfrm="\\1 $ac_symprfx\\2 \\2"
6952
6953   # Write the raw and C identifiers.
6954   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6955
6956   # Check to see that the pipe works correctly.
6957   pipe_works=no
6958
6959   rm -f conftest*
6960   cat > conftest.$ac_ext <<EOF
6961 #ifdef __cplusplus
6962 extern "C" {
6963 #endif
6964 char nm_test_var;
6965 void nm_test_func(){}
6966 #ifdef __cplusplus
6967 }
6968 #endif
6969 int main(){nm_test_var='a';nm_test_func();return(0);}
6970 EOF
6971
6972   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973   (eval $ac_compile) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }; then
6977     # Now try to grab the symbols.
6978     nlist=conftest.nm
6979     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6980   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); } && test -s "$nlist"; then
6984       # Try sorting and uniquifying the output.
6985       if sort "$nlist" | uniq > "$nlist"T; then
6986         mv -f "$nlist"T "$nlist"
6987       else
6988         rm -f "$nlist"T
6989       fi
6990
6991       # Make sure that we snagged all the symbols we need.
6992       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6993         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6994           cat <<EOF > conftest.$ac_ext
6995 #ifdef __cplusplus
6996 extern "C" {
6997 #endif
6998
6999 EOF
7000           # Now generate the symbol file.
7001           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7002
7003           cat <<EOF >> conftest.$ac_ext
7004 #if defined (__STDC__) && __STDC__
7005 # define lt_ptr_t void *
7006 #else
7007 # define lt_ptr_t char *
7008 # define const
7009 #endif
7010
7011 /* The mapping between symbol names and symbols. */
7012 const struct {
7013   const char *name;
7014   lt_ptr_t address;
7015 }
7016 lt_preloaded_symbols[] =
7017 {
7018 EOF
7019           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7020           cat <<\EOF >> conftest.$ac_ext
7021   {0, (lt_ptr_t) 0}
7022 };
7023
7024 #ifdef __cplusplus
7025 }
7026 #endif
7027 EOF
7028           # Now try linking the two files.
7029           mv conftest.$ac_objext conftstm.$ac_objext
7030           lt_save_LIBS="$LIBS"
7031           lt_save_CFLAGS="$CFLAGS"
7032           LIBS="conftstm.$ac_objext"
7033           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7034           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035   (eval $ac_link) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7039             pipe_works=yes
7040           fi
7041           LIBS="$lt_save_LIBS"
7042           CFLAGS="$lt_save_CFLAGS"
7043         else
7044           echo "cannot find nm_test_func in $nlist" >&5
7045         fi
7046       else
7047         echo "cannot find nm_test_var in $nlist" >&5
7048       fi
7049     else
7050       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7051     fi
7052   else
7053     echo "$progname: failed program was:" >&5
7054     cat conftest.$ac_ext >&5
7055   fi
7056   rm -f conftest* conftst*
7057
7058   # Do not use the global_symbol_pipe unless it works.
7059   if test "$pipe_works" = yes; then
7060     break
7061   else
7062     lt_cv_sys_global_symbol_pipe=
7063   fi
7064 done
7065
7066 fi
7067
7068 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7069   lt_cv_sys_global_symbol_to_cdecl=
7070 fi
7071 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7072   echo "$as_me:$LINENO: result: failed" >&5
7073 echo "${ECHO_T}failed" >&6
7074 else
7075   echo "$as_me:$LINENO: result: ok" >&5
7076 echo "${ECHO_T}ok" >&6
7077 fi
7078
7079 echo "$as_me:$LINENO: checking for objdir" >&5
7080 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7081 if test "${lt_cv_objdir+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   rm -f .libs 2>/dev/null
7085 mkdir .libs 2>/dev/null
7086 if test -d .libs; then
7087   lt_cv_objdir=.libs
7088 else
7089   # MS-DOS does not allow filenames that begin with a dot.
7090   lt_cv_objdir=_libs
7091 fi
7092 rmdir .libs 2>/dev/null
7093 fi
7094 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7095 echo "${ECHO_T}$lt_cv_objdir" >&6
7096 objdir=$lt_cv_objdir
7097
7098
7099
7100
7101
7102 case $host_os in
7103 aix3*)
7104   # AIX sometimes has problems with the GCC collect2 program.  For some
7105   # reason, if we set the COLLECT_NAMES environment variable, the problems
7106   # vanish in a puff of smoke.
7107   if test "X${COLLECT_NAMES+set}" != Xset; then
7108     COLLECT_NAMES=
7109     export COLLECT_NAMES
7110   fi
7111   ;;
7112 esac
7113
7114 # Sed substitution that helps us do robust quoting.  It backslashifies
7115 # metacharacters that are still active within double-quoted strings.
7116 Xsed='sed -e 1s/^X//'
7117 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7118
7119 # Same as above, but do not quote variable references.
7120 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7121
7122 # Sed substitution to delay expansion of an escaped shell variable in a
7123 # double_quote_subst'ed string.
7124 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7125
7126 # Sed substitution to avoid accidental globbing in evaled expressions
7127 no_glob_subst='s/\*/\\\*/g'
7128
7129 # Constants:
7130 rm="rm -f"
7131
7132 # Global variables:
7133 default_ofile=libtool
7134 can_build_shared=yes
7135
7136 # All known linkers require a `.a' archive for static linking (except MSVC,
7137 # which needs '.lib').
7138 libext=a
7139 ltmain="$ac_aux_dir/ltmain.sh"
7140 ofile="$default_ofile"
7141 with_gnu_ld="$lt_cv_prog_gnu_ld"
7142
7143 if test -n "$ac_tool_prefix"; then
7144   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}ar; ac_word=$2
7146 echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148 if test "${ac_cv_prog_AR+set}" = set; then
7149   echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151   if test -n "$AR"; then
7152   ac_cv_prog_AR="$AR" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159   for ac_exec_ext in '' $ac_executable_extensions; do
7160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161     ac_cv_prog_AR="${ac_tool_prefix}ar"
7162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166 done
7167
7168 fi
7169 fi
7170 AR=$ac_cv_prog_AR
7171 if test -n "$AR"; then
7172   echo "$as_me:$LINENO: result: $AR" >&5
7173 echo "${ECHO_T}$AR" >&6
7174 else
7175   echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7177 fi
7178
7179 fi
7180 if test -z "$ac_cv_prog_AR"; then
7181   ac_ct_AR=$AR
7182   # Extract the first word of "ar", so it can be a program name with args.
7183 set dummy ar; ac_word=$2
7184 echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   if test -n "$ac_ct_AR"; then
7190   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197   for ac_exec_ext in '' $ac_executable_extensions; do
7198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199     ac_cv_prog_ac_ct_AR="ar"
7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204 done
7205
7206   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7207 fi
7208 fi
7209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7210 if test -n "$ac_ct_AR"; then
7211   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7212 echo "${ECHO_T}$ac_ct_AR" >&6
7213 else
7214   echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7216 fi
7217
7218   AR=$ac_ct_AR
7219 else
7220   AR="$ac_cv_prog_AR"
7221 fi
7222
7223 if test -n "$ac_tool_prefix"; then
7224   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7226 echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228 if test "${ac_cv_prog_RANLIB+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   if test -n "$RANLIB"; then
7232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247
7248 fi
7249 fi
7250 RANLIB=$ac_cv_prog_RANLIB
7251 if test -n "$RANLIB"; then
7252   echo "$as_me:$LINENO: result: $RANLIB" >&5
7253 echo "${ECHO_T}$RANLIB" >&6
7254 else
7255   echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7257 fi
7258
7259 fi
7260 if test -z "$ac_cv_prog_RANLIB"; then
7261   ac_ct_RANLIB=$RANLIB
7262   # Extract the first word of "ranlib", so it can be a program name with args.
7263 set dummy ranlib; ac_word=$2
7264 echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7266 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   if test -n "$ac_ct_RANLIB"; then
7270   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279     ac_cv_prog_ac_ct_RANLIB="ranlib"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285
7286   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7287 fi
7288 fi
7289 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7290 if test -n "$ac_ct_RANLIB"; then
7291   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7292 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7293 else
7294   echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6
7296 fi
7297
7298   RANLIB=$ac_ct_RANLIB
7299 else
7300   RANLIB="$ac_cv_prog_RANLIB"
7301 fi
7302
7303 if test -n "$ac_tool_prefix"; then
7304   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}strip; ac_word=$2
7306 echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308 if test "${ac_cv_prog_STRIP+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   if test -n "$STRIP"; then
7312   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327
7328 fi
7329 fi
7330 STRIP=$ac_cv_prog_STRIP
7331 if test -n "$STRIP"; then
7332   echo "$as_me:$LINENO: result: $STRIP" >&5
7333 echo "${ECHO_T}$STRIP" >&6
7334 else
7335   echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6
7337 fi
7338
7339 fi
7340 if test -z "$ac_cv_prog_STRIP"; then
7341   ac_ct_STRIP=$STRIP
7342   # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   if test -n "$ac_ct_STRIP"; then
7350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357   for ac_exec_ext in '' $ac_executable_extensions; do
7358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359     ac_cv_prog_ac_ct_STRIP="strip"
7360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364 done
7365
7366   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7367 fi
7368 fi
7369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7370 if test -n "$ac_ct_STRIP"; then
7371   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7372 echo "${ECHO_T}$ac_ct_STRIP" >&6
7373 else
7374   echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6
7376 fi
7377
7378   STRIP=$ac_ct_STRIP
7379 else
7380   STRIP="$ac_cv_prog_STRIP"
7381 fi
7382
7383
7384 old_CC="$CC"
7385 old_CFLAGS="$CFLAGS"
7386
7387 # Set sane defaults for various variables
7388 test -z "$AR" && AR=ar
7389 test -z "$AR_FLAGS" && AR_FLAGS=cru
7390 test -z "$AS" && AS=as
7391 test -z "$CC" && CC=cc
7392 test -z "$LTCC" && LTCC=$CC
7393 test -z "$DLLTOOL" && DLLTOOL=dlltool
7394 test -z "$LD" && LD=ld
7395 test -z "$LN_S" && LN_S="ln -s"
7396 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7397 test -z "$NM" && NM=nm
7398 test -z "$SED" && SED=sed
7399 test -z "$OBJDUMP" && OBJDUMP=objdump
7400 test -z "$RANLIB" && RANLIB=:
7401 test -z "$STRIP" && STRIP=:
7402 test -z "$ac_objext" && ac_objext=o
7403
7404 # Determine commands to create old-style static archives.
7405 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7406 old_postinstall_cmds='chmod 644 $oldlib'
7407 old_postuninstall_cmds=
7408
7409 if test -n "$RANLIB"; then
7410   case $host_os in
7411   openbsd*)
7412     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7413     ;;
7414   *)
7415     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7416     ;;
7417   esac
7418   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7419 fi
7420
7421 for cc_temp in $compiler""; do
7422   case $cc_temp in
7423     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7424     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7425     \-*) ;;
7426     *) break;;
7427   esac
7428 done
7429 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7430
7431
7432 # Only perform the check for file, if the check method requires it
7433 case $deplibs_check_method in
7434 file_magic*)
7435   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7436     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7437 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7438 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   case $MAGIC_CMD in
7442 [\\/*] |  ?:[\\/]*)
7443   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7444   ;;
7445 *)
7446   lt_save_MAGIC_CMD="$MAGIC_CMD"
7447   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7448   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7449   for ac_dir in $ac_dummy; do
7450     IFS="$lt_save_ifs"
7451     test -z "$ac_dir" && ac_dir=.
7452     if test -f $ac_dir/${ac_tool_prefix}file; then
7453       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7454       if test -n "$file_magic_test_file"; then
7455         case $deplibs_check_method in
7456         "file_magic "*)
7457           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7458           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7459           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7460             $EGREP "$file_magic_regex" > /dev/null; then
7461             :
7462           else
7463             cat <<EOF 1>&2
7464
7465 *** Warning: the command libtool uses to detect shared libraries,
7466 *** $file_magic_cmd, produces output that libtool cannot recognize.
7467 *** The result is that libtool may fail to recognize shared libraries
7468 *** as such.  This will affect the creation of libtool libraries that
7469 *** depend on shared libraries, but programs linked with such libtool
7470 *** libraries will work regardless of this problem.  Nevertheless, you
7471 *** may want to report the problem to your system manager and/or to
7472 *** bug-libtool@gnu.org
7473
7474 EOF
7475           fi ;;
7476         esac
7477       fi
7478       break
7479     fi
7480   done
7481   IFS="$lt_save_ifs"
7482   MAGIC_CMD="$lt_save_MAGIC_CMD"
7483   ;;
7484 esac
7485 fi
7486
7487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7488 if test -n "$MAGIC_CMD"; then
7489   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7490 echo "${ECHO_T}$MAGIC_CMD" >&6
7491 else
7492   echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494 fi
7495
7496 if test -z "$lt_cv_path_MAGIC_CMD"; then
7497   if test -n "$ac_tool_prefix"; then
7498     echo "$as_me:$LINENO: checking for file" >&5
7499 echo $ECHO_N "checking for file... $ECHO_C" >&6
7500 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   case $MAGIC_CMD in
7504 [\\/*] |  ?:[\\/]*)
7505   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506   ;;
7507 *)
7508   lt_save_MAGIC_CMD="$MAGIC_CMD"
7509   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7510   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7511   for ac_dir in $ac_dummy; do
7512     IFS="$lt_save_ifs"
7513     test -z "$ac_dir" && ac_dir=.
7514     if test -f $ac_dir/file; then
7515       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7516       if test -n "$file_magic_test_file"; then
7517         case $deplibs_check_method in
7518         "file_magic "*)
7519           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7520           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7522             $EGREP "$file_magic_regex" > /dev/null; then
7523             :
7524           else
7525             cat <<EOF 1>&2
7526
7527 *** Warning: the command libtool uses to detect shared libraries,
7528 *** $file_magic_cmd, produces output that libtool cannot recognize.
7529 *** The result is that libtool may fail to recognize shared libraries
7530 *** as such.  This will affect the creation of libtool libraries that
7531 *** depend on shared libraries, but programs linked with such libtool
7532 *** libraries will work regardless of this problem.  Nevertheless, you
7533 *** may want to report the problem to your system manager and/or to
7534 *** bug-libtool@gnu.org
7535
7536 EOF
7537           fi ;;
7538         esac
7539       fi
7540       break
7541     fi
7542   done
7543   IFS="$lt_save_ifs"
7544   MAGIC_CMD="$lt_save_MAGIC_CMD"
7545   ;;
7546 esac
7547 fi
7548
7549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7550 if test -n "$MAGIC_CMD"; then
7551   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7552 echo "${ECHO_T}$MAGIC_CMD" >&6
7553 else
7554   echo "$as_me:$LINENO: result: no" >&5
7555 echo "${ECHO_T}no" >&6
7556 fi
7557
7558   else
7559     MAGIC_CMD=:
7560   fi
7561 fi
7562
7563   fi
7564   ;;
7565 esac
7566
7567 enable_dlopen=yes
7568 enable_win32_dll=yes
7569
7570 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7571 if test "${enable_libtool_lock+set}" = set; then
7572   enableval="$enable_libtool_lock"
7573
7574 fi;
7575 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7576
7577
7578 # Check whether --with-pic or --without-pic was given.
7579 if test "${with_pic+set}" = set; then
7580   withval="$with_pic"
7581   pic_mode="$withval"
7582 else
7583   pic_mode=default
7584 fi;
7585 test -z "$pic_mode" && pic_mode=default
7586
7587 # Use C for the default configuration in the libtool script
7588 tagname=
7589 lt_save_CC="$CC"
7590 ac_ext=c
7591 ac_cpp='$CPP $CPPFLAGS'
7592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596
7597 # Source file extension for C test sources.
7598 ac_ext=c
7599
7600 # Object file extension for compiled C test sources.
7601 objext=o
7602 objext=$objext
7603
7604 # Code to be used in simple compile tests
7605 lt_simple_compile_test_code="int some_variable = 0;\n"
7606
7607 # Code to be used in simple link tests
7608 lt_simple_link_test_code='int main(){return(0);}\n'
7609
7610
7611 # If no C compiler was specified, use CC.
7612 LTCC=${LTCC-"$CC"}
7613
7614 # Allow CC to be a program name with arguments.
7615 compiler=$CC
7616
7617
7618 # save warnings/boilerplate of simple test code
7619 ac_outfile=conftest.$ac_objext
7620 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7622 _lt_compiler_boilerplate=`cat conftest.err`
7623 $rm conftest*
7624
7625 ac_outfile=conftest.$ac_objext
7626 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7628 _lt_linker_boilerplate=`cat conftest.err`
7629 $rm conftest*
7630
7631
7632 #
7633 # Check for any special shared library compilation flags.
7634 #
7635 lt_prog_cc_shlib=
7636 if test "$GCC" = no; then
7637   case $host_os in
7638   sco3.2v5*)
7639     lt_prog_cc_shlib='-belf'
7640     ;;
7641   esac
7642 fi
7643 if test -n "$lt_prog_cc_shlib"; then
7644   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7645 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7646   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7647   else
7648     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7649 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7650     lt_cv_prog_cc_can_build_shared=no
7651   fi
7652 fi
7653
7654
7655 #
7656 # Check to make sure the static flag actually works.
7657 #
7658 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7659 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7660 if test "${lt_prog_compiler_static_works+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   lt_prog_compiler_static_works=no
7664    save_LDFLAGS="$LDFLAGS"
7665    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7666    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7667    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7668      # The linker can only warn and ignore the option if not recognized
7669      # So say no if there are warnings
7670      if test -s conftest.err; then
7671        # Append any errors to the config.log.
7672        cat conftest.err 1>&5
7673        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7674        $SED '/^$/d' conftest.err >conftest.er2
7675        if diff conftest.exp conftest.er2 >/dev/null; then
7676          lt_prog_compiler_static_works=yes
7677        fi
7678      else
7679        lt_prog_compiler_static_works=yes
7680      fi
7681    fi
7682    $rm conftest*
7683    LDFLAGS="$save_LDFLAGS"
7684
7685 fi
7686 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7687 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7688
7689 if test x"$lt_prog_compiler_static_works" = xyes; then
7690     :
7691 else
7692     lt_prog_compiler_static=
7693 fi
7694
7695
7696
7697
7698 lt_prog_compiler_no_builtin_flag=
7699
7700 if test "$GCC" = yes; then
7701   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7702
7703
7704 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7706 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   lt_cv_prog_compiler_rtti_exceptions=no
7710   ac_outfile=conftest.$ac_objext
7711    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7712    lt_compiler_flag="-fno-rtti -fno-exceptions"
7713    # Insert the option either (1) after the last *FLAGS variable, or
7714    # (2) before a word containing "conftest.", or (3) at the end.
7715    # Note that $ac_compile itself does not contain backslashes and begins
7716    # with a dollar sign (not a hyphen), so the echo should work correctly.
7717    # The option is referenced via a variable to avoid confusing sed.
7718    lt_compile=`echo "$ac_compile" | $SED \
7719    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7720    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7721    -e 's:$: $lt_compiler_flag:'`
7722    (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
7723    (eval "$lt_compile" 2>conftest.err)
7724    ac_status=$?
7725    cat conftest.err >&5
7726    echo "$as_me:7726: \$? = $ac_status" >&5
7727    if (exit $ac_status) && test -s "$ac_outfile"; then
7728      # The compiler can only warn and ignore the option if not recognized
7729      # So say no if there are warnings other than the usual output.
7730      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7731      $SED '/^$/d' conftest.err >conftest.er2
7732      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7733        lt_cv_prog_compiler_rtti_exceptions=yes
7734      fi
7735    fi
7736    $rm conftest*
7737
7738 fi
7739 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7740 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7741
7742 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7743     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7744 else
7745     :
7746 fi
7747
7748 fi
7749
7750 lt_prog_compiler_wl=
7751 lt_prog_compiler_pic=
7752 lt_prog_compiler_static=
7753
7754 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7756
7757   if test "$GCC" = yes; then
7758     lt_prog_compiler_wl='-Wl,'
7759     lt_prog_compiler_static='-static'
7760
7761     case $host_os in
7762       aix*)
7763       # All AIX code is PIC.
7764       if test "$host_cpu" = ia64; then
7765         # AIX 5 now supports IA64 processor
7766         lt_prog_compiler_static='-Bstatic'
7767       fi
7768       ;;
7769
7770     amigaos*)
7771       # FIXME: we need at least 68020 code to build shared libraries, but
7772       # adding the `-m68020' flag to GCC prevents building anything better,
7773       # like `-m68040'.
7774       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7775       ;;
7776
7777     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7778       # PIC is the default for these OSes.
7779       ;;
7780
7781     mingw* | pw32* | os2*)
7782       # This hack is so that the source file can tell whether it is being
7783       # built for inclusion in a dll (and should export symbols for example).
7784       lt_prog_compiler_pic='-DDLL_EXPORT'
7785       ;;
7786
7787     darwin* | rhapsody*)
7788       # PIC is the default on this platform
7789       # Common symbols not allowed in MH_DYLIB files
7790       lt_prog_compiler_pic='-fno-common'
7791       ;;
7792
7793     msdosdjgpp*)
7794       # Just because we use GCC doesn't mean we suddenly get shared libraries
7795       # on systems that don't support them.
7796       lt_prog_compiler_can_build_shared=no
7797       enable_shared=no
7798       ;;
7799
7800     sysv4*MP*)
7801       if test -d /usr/nec; then
7802         lt_prog_compiler_pic=-Kconform_pic
7803       fi
7804       ;;
7805
7806     hpux*)
7807       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808       # not for PA HP-UX.
7809       case $host_cpu in
7810       hppa*64*|ia64*)
7811         # +Z the default
7812         ;;
7813       *)
7814         lt_prog_compiler_pic='-fPIC'
7815         ;;
7816       esac
7817       ;;
7818
7819     *)
7820       lt_prog_compiler_pic='-fPIC'
7821       ;;
7822     esac
7823   else
7824     # PORTME Check for flag to pass linker flags through the system compiler.
7825     case $host_os in
7826     aix*)
7827       lt_prog_compiler_wl='-Wl,'
7828       if test "$host_cpu" = ia64; then
7829         # AIX 5 now supports IA64 processor
7830         lt_prog_compiler_static='-Bstatic'
7831       else
7832         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7833       fi
7834       ;;
7835       darwin*)
7836         # PIC is the default on this platform
7837         # Common symbols not allowed in MH_DYLIB files
7838        case $cc_basename in
7839          xlc*)
7840          lt_prog_compiler_pic='-qnocommon'
7841          lt_prog_compiler_wl='-Wl,'
7842          ;;
7843        esac
7844        ;;
7845
7846     mingw* | pw32* | os2*)
7847       # This hack is so that the source file can tell whether it is being
7848       # built for inclusion in a dll (and should export symbols for example).
7849       lt_prog_compiler_pic='-DDLL_EXPORT'
7850       ;;
7851
7852     hpux9* | hpux10* | hpux11*)
7853       lt_prog_compiler_wl='-Wl,'
7854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7855       # not for PA HP-UX.
7856       case $host_cpu in
7857       hppa*64*|ia64*)
7858         # +Z the default
7859         ;;
7860       *)
7861         lt_prog_compiler_pic='+Z'
7862         ;;
7863       esac
7864       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7865       lt_prog_compiler_static='${wl}-a ${wl}archive'
7866       ;;
7867
7868     irix5* | irix6* | nonstopux*)
7869       lt_prog_compiler_wl='-Wl,'
7870       # PIC (with -KPIC) is the default.
7871       lt_prog_compiler_static='-non_shared'
7872       ;;
7873
7874     newsos6)
7875       lt_prog_compiler_pic='-KPIC'
7876       lt_prog_compiler_static='-Bstatic'
7877       ;;
7878
7879     linux*)
7880       case $cc_basename in
7881       icc* | ecc*)
7882         lt_prog_compiler_wl='-Wl,'
7883         lt_prog_compiler_pic='-KPIC'
7884         lt_prog_compiler_static='-static'
7885         ;;
7886       pgcc* | pgf77* | pgf90* | pgf95*)
7887         # Portland Group compilers (*not* the Pentium gcc compiler,
7888         # which looks to be a dead project)
7889         lt_prog_compiler_wl='-Wl,'
7890         lt_prog_compiler_pic='-fpic'
7891         lt_prog_compiler_static='-Bstatic'
7892         ;;
7893       ccc*)
7894         lt_prog_compiler_wl='-Wl,'
7895         # All Alpha code is PIC.
7896         lt_prog_compiler_static='-non_shared'
7897         ;;
7898       esac
7899       ;;
7900
7901     osf3* | osf4* | osf5*)
7902       lt_prog_compiler_wl='-Wl,'
7903       # All OSF/1 code is PIC.
7904       lt_prog_compiler_static='-non_shared'
7905       ;;
7906
7907     sco3.2v5*)
7908       lt_prog_compiler_pic='-Kpic'
7909       lt_prog_compiler_static='-dn'
7910       ;;
7911
7912     solaris*)
7913       lt_prog_compiler_pic='-KPIC'
7914       lt_prog_compiler_static='-Bstatic'
7915       case $cc_basename in
7916       f77* | f90* | f95*)
7917         lt_prog_compiler_wl='-Qoption ld ';;
7918       *)
7919         lt_prog_compiler_wl='-Wl,';;
7920       esac
7921       ;;
7922
7923     sunos4*)
7924       lt_prog_compiler_wl='-Qoption ld '
7925       lt_prog_compiler_pic='-PIC'
7926       lt_prog_compiler_static='-Bstatic'
7927       ;;
7928
7929     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7930       lt_prog_compiler_wl='-Wl,'
7931       lt_prog_compiler_pic='-KPIC'
7932       lt_prog_compiler_static='-Bstatic'
7933       ;;
7934
7935     sysv4*MP*)
7936       if test -d /usr/nec ;then
7937         lt_prog_compiler_pic='-Kconform_pic'
7938         lt_prog_compiler_static='-Bstatic'
7939       fi
7940       ;;
7941
7942     unicos*)
7943       lt_prog_compiler_wl='-Wl,'
7944       lt_prog_compiler_can_build_shared=no
7945       ;;
7946
7947     uts4*)
7948       lt_prog_compiler_pic='-pic'
7949       lt_prog_compiler_static='-Bstatic'
7950       ;;
7951
7952     *)
7953       lt_prog_compiler_can_build_shared=no
7954       ;;
7955     esac
7956   fi
7957
7958 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7959 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7960
7961 #
7962 # Check to make sure the PIC flag actually works.
7963 #
7964 if test -n "$lt_prog_compiler_pic"; then
7965
7966 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7968 if test "${lt_prog_compiler_pic_works+set}" = set; then
7969   echo $ECHO_N "(cached) $ECHO_C" >&6
7970 else
7971   lt_prog_compiler_pic_works=no
7972   ac_outfile=conftest.$ac_objext
7973    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7974    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7975    # Insert the option either (1) after the last *FLAGS variable, or
7976    # (2) before a word containing "conftest.", or (3) at the end.
7977    # Note that $ac_compile itself does not contain backslashes and begins
7978    # with a dollar sign (not a hyphen), so the echo should work correctly.
7979    # The option is referenced via a variable to avoid confusing sed.
7980    lt_compile=`echo "$ac_compile" | $SED \
7981    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7983    -e 's:$: $lt_compiler_flag:'`
7984    (eval echo "\"\$as_me:7984: $lt_compile\"" >&5)
7985    (eval "$lt_compile" 2>conftest.err)
7986    ac_status=$?
7987    cat conftest.err >&5
7988    echo "$as_me:7988: \$? = $ac_status" >&5
7989    if (exit $ac_status) && test -s "$ac_outfile"; then
7990      # The compiler can only warn and ignore the option if not recognized
7991      # So say no if there are warnings other than the usual output.
7992      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7993      $SED '/^$/d' conftest.err >conftest.er2
7994      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7995        lt_prog_compiler_pic_works=yes
7996      fi
7997    fi
7998    $rm conftest*
7999
8000 fi
8001 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8002 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8003
8004 if test x"$lt_prog_compiler_pic_works" = xyes; then
8005     case $lt_prog_compiler_pic in
8006      "" | " "*) ;;
8007      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8008      esac
8009 else
8010     lt_prog_compiler_pic=
8011      lt_prog_compiler_can_build_shared=no
8012 fi
8013
8014 fi
8015 case $host_os in
8016   # For platforms which do not support PIC, -DPIC is meaningless:
8017   *djgpp*)
8018     lt_prog_compiler_pic=
8019     ;;
8020   *)
8021     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8022     ;;
8023 esac
8024
8025 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8026 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8027 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8028   echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030   lt_cv_prog_compiler_c_o=no
8031    $rm -r conftest 2>/dev/null
8032    mkdir conftest
8033    cd conftest
8034    mkdir out
8035    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8036
8037    lt_compiler_flag="-o out/conftest2.$ac_objext"
8038    # Insert the option either (1) after the last *FLAGS variable, or
8039    # (2) before a word containing "conftest.", or (3) at the end.
8040    # Note that $ac_compile itself does not contain backslashes and begins
8041    # with a dollar sign (not a hyphen), so the echo should work correctly.
8042    lt_compile=`echo "$ac_compile" | $SED \
8043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8045    -e 's:$: $lt_compiler_flag:'`
8046    (eval echo "\"\$as_me:8046: $lt_compile\"" >&5)
8047    (eval "$lt_compile" 2>out/conftest.err)
8048    ac_status=$?
8049    cat out/conftest.err >&5
8050    echo "$as_me:8050: \$? = $ac_status" >&5
8051    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8052    then
8053      # The compiler can only warn and ignore the option if not recognized
8054      # So say no if there are warnings
8055      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8056      $SED '/^$/d' out/conftest.err >out/conftest.er2
8057      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8058        lt_cv_prog_compiler_c_o=yes
8059      fi
8060    fi
8061    chmod u+w . 2>&5
8062    $rm conftest*
8063    # SGI C++ compiler will create directory out/ii_files/ for
8064    # template instantiation
8065    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8066    $rm out/* && rmdir out
8067    cd ..
8068    rmdir conftest
8069    $rm conftest*
8070
8071 fi
8072 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8074
8075
8076 hard_links="nottested"
8077 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8078   # do not overwrite the value of need_locks provided by the user
8079   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8081   hard_links=yes
8082   $rm conftest*
8083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8084   touch conftest.a
8085   ln conftest.a conftest.b 2>&5 || hard_links=no
8086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087   echo "$as_me:$LINENO: result: $hard_links" >&5
8088 echo "${ECHO_T}$hard_links" >&6
8089   if test "$hard_links" = no; then
8090     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8092     need_locks=warn
8093   fi
8094 else
8095   need_locks=no
8096 fi
8097
8098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8099 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8100
8101   runpath_var=
8102   allow_undefined_flag=
8103   enable_shared_with_static_runtimes=no
8104   archive_cmds=
8105   archive_expsym_cmds=
8106   old_archive_From_new_cmds=
8107   old_archive_from_expsyms_cmds=
8108   export_dynamic_flag_spec=
8109   whole_archive_flag_spec=
8110   thread_safe_flag_spec=
8111   hardcode_libdir_flag_spec=
8112   hardcode_libdir_flag_spec_ld=
8113   hardcode_libdir_separator=
8114   hardcode_direct=no
8115   hardcode_minus_L=no
8116   hardcode_shlibpath_var=unsupported
8117   link_all_deplibs=unknown
8118   hardcode_automatic=no
8119   module_cmds=
8120   module_expsym_cmds=
8121   always_export_symbols=no
8122   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8123   # include_expsyms should be a list of space-separated symbols to be *always*
8124   # included in the symbol list
8125   include_expsyms=
8126   # exclude_expsyms can be an extended regexp of symbols to exclude
8127   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8128   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8129   # as well as any symbol that contains `d'.
8130   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8131   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8132   # platforms (ab)use it in PIC code, but their linkers get confused if
8133   # the symbol is explicitly referenced.  Since portable code cannot
8134   # rely on this symbol name, it's probably fine to never include it in
8135   # preloaded symbol tables.
8136   extract_expsyms_cmds=
8137   # Just being paranoid about ensuring that cc_basename is set.
8138   for cc_temp in $compiler""; do
8139   case $cc_temp in
8140     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8141     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8142     \-*) ;;
8143     *) break;;
8144   esac
8145 done
8146 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8147
8148   case $host_os in
8149   cygwin* | mingw* | pw32*)
8150     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8151     # When not using gcc, we currently assume that we are using
8152     # Microsoft Visual C++.
8153     if test "$GCC" != yes; then
8154       with_gnu_ld=no
8155     fi
8156     ;;
8157   openbsd*)
8158     with_gnu_ld=no
8159     ;;
8160   esac
8161
8162   ld_shlibs=yes
8163   if test "$with_gnu_ld" = yes; then
8164     # If archive_cmds runs LD, not CC, wlarc should be empty
8165     wlarc='${wl}'
8166
8167     # Set some defaults for GNU ld with shared library support. These
8168     # are reset later if shared libraries are not supported. Putting them
8169     # here allows them to be overridden if necessary.
8170     runpath_var=LD_RUN_PATH
8171     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8172     export_dynamic_flag_spec='${wl}--export-dynamic'
8173     # ancient GNU ld didn't support --whole-archive et. al.
8174     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8175         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8176       else
8177         whole_archive_flag_spec=
8178     fi
8179     supports_anon_versioning=no
8180     case `$LD -v 2>/dev/null` in
8181       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8182       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8183       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8184       *\ 2.11.*) ;; # other 2.11 versions
8185       *) supports_anon_versioning=yes ;;
8186     esac
8187
8188     # See if GNU ld supports shared libraries.
8189     case $host_os in
8190     aix3* | aix4* | aix5*)
8191       # On AIX/PPC, the GNU linker is very broken
8192       if test "$host_cpu" != ia64; then
8193         ld_shlibs=no
8194         cat <<EOF 1>&2
8195
8196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8197 *** to be unable to reliably create shared libraries on AIX.
8198 *** Therefore, libtool is disabling shared libraries support.  If you
8199 *** really care for shared libraries, you may want to modify your PATH
8200 *** so that a non-GNU linker is found, and then restart.
8201
8202 EOF
8203       fi
8204       ;;
8205
8206     amigaos*)
8207       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)'
8208       hardcode_libdir_flag_spec='-L$libdir'
8209       hardcode_minus_L=yes
8210
8211       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8212       # that the semantics of dynamic libraries on AmigaOS, at least up
8213       # to version 4, is to share data among multiple programs linked
8214       # with the same dynamic library.  Since this doesn't match the
8215       # behavior of shared libraries on other platforms, we can't use
8216       # them.
8217       ld_shlibs=no
8218       ;;
8219
8220     beos*)
8221       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222         allow_undefined_flag=unsupported
8223         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8224         # support --undefined.  This deserves some investigation.  FIXME
8225         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226       else
8227         ld_shlibs=no
8228       fi
8229       ;;
8230
8231     cygwin* | mingw* | pw32*)
8232       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8233       # as there is no search path for DLLs.
8234       hardcode_libdir_flag_spec='-L$libdir'
8235       allow_undefined_flag=unsupported
8236       always_export_symbols=no
8237       enable_shared_with_static_runtimes=yes
8238       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8239
8240       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8242         # If the export-symbols file already is a .def file (1st line
8243         # is EXPORTS), use it as is; otherwise, prepend...
8244         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8245           cp $export_symbols $output_objdir/$soname.def;
8246         else
8247           echo EXPORTS > $output_objdir/$soname.def;
8248           cat $export_symbols >> $output_objdir/$soname.def;
8249         fi~
8250         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8251       else
8252         ld_shlibs=no
8253       fi
8254       ;;
8255
8256     linux*)
8257       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258         tmp_addflag=
8259         case $cc_basename,$host_cpu in
8260         pgcc*)                          # Portland Group C compiler
8261           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'
8262           tmp_addflag=' $pic_flag'
8263           ;;
8264         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8265           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'
8266           tmp_addflag=' $pic_flag -Mnomain' ;;
8267         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8268           tmp_addflag=' -i_dynamic' ;;
8269         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8270           tmp_addflag=' -i_dynamic -nofor_main' ;;
8271         ifc* | ifort*)                  # Intel Fortran compiler
8272           tmp_addflag=' -nofor_main' ;;
8273         esac
8274         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275
8276         if test $supports_anon_versioning = yes; then
8277           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279   $echo "local: *; };" >> $output_objdir/$libname.ver~
8280           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8281         fi
8282       else
8283         ld_shlibs=no
8284       fi
8285       ;;
8286
8287     netbsd*)
8288       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8290         wlarc=
8291       else
8292         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294       fi
8295       ;;
8296
8297     solaris* | sysv5*)
8298       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8299         ld_shlibs=no
8300         cat <<EOF 1>&2
8301
8302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8303 *** create shared libraries on Solaris systems.  Therefore, libtool
8304 *** is disabling shared libraries support.  We urge you to upgrade GNU
8305 *** binutils to release 2.9.1 or newer.  Another option is to modify
8306 *** your PATH or compiler configuration so that the native linker is
8307 *** used, and then restart.
8308
8309 EOF
8310       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8311         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313       else
8314         ld_shlibs=no
8315       fi
8316       ;;
8317
8318     sunos4*)
8319       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8320       wlarc=
8321       hardcode_direct=yes
8322       hardcode_shlibpath_var=no
8323       ;;
8324
8325     *)
8326       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8327         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8329       else
8330         ld_shlibs=no
8331       fi
8332       ;;
8333     esac
8334
8335     if test "$ld_shlibs" = no; then
8336       runpath_var=
8337       hardcode_libdir_flag_spec=
8338       export_dynamic_flag_spec=
8339       whole_archive_flag_spec=
8340     fi
8341   else
8342     # PORTME fill in a description of your system's linker (not GNU ld)
8343     case $host_os in
8344     aix3*)
8345       allow_undefined_flag=unsupported
8346       always_export_symbols=yes
8347       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'
8348       # Note: this linker hardcodes the directories in LIBPATH if there
8349       # are no directories specified by -L.
8350       hardcode_minus_L=yes
8351       if test "$GCC" = yes && test -z "$link_static_flag"; then
8352         # Neither direct hardcoding nor static linking is supported with a
8353         # broken collect2.
8354         hardcode_direct=unsupported
8355       fi
8356       ;;
8357
8358     aix4* | aix5*)
8359       if test "$host_cpu" = ia64; then
8360         # On IA64, the linker does run time linking by default, so we don't
8361         # have to do anything special.
8362         aix_use_runtimelinking=no
8363         exp_sym_flag='-Bexport'
8364         no_entry_flag=""
8365       else
8366         # If we're using GNU nm, then we don't want the "-C" option.
8367         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8368         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8369           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'
8370         else
8371           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'
8372         fi
8373         aix_use_runtimelinking=no
8374
8375         # Test if we are trying to use run time linking or normal
8376         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8377         # need to do runtime linking.
8378         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8379           for ld_flag in $LDFLAGS; do
8380           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8381             aix_use_runtimelinking=yes
8382             break
8383           fi
8384           done
8385         esac
8386
8387         exp_sym_flag='-bexport'
8388         no_entry_flag='-bnoentry'
8389       fi
8390
8391       # When large executables or shared objects are built, AIX ld can
8392       # have problems creating the table of contents.  If linking a library
8393       # or program results in "error TOC overflow" add -mminimal-toc to
8394       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8395       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8396
8397       archive_cmds=''
8398       hardcode_direct=yes
8399       hardcode_libdir_separator=':'
8400       link_all_deplibs=yes
8401
8402       if test "$GCC" = yes; then
8403         case $host_os in aix4.[012]|aix4.[012].*)
8404         # We only want to do this on AIX 4.2 and lower, the check
8405         # below for broken collect2 doesn't work under 4.3+
8406           collect2name=`${CC} -print-prog-name=collect2`
8407           if test -f "$collect2name" && \
8408            strings "$collect2name" | grep resolve_lib_name >/dev/null
8409           then
8410           # We have reworked collect2
8411           hardcode_direct=yes
8412           else
8413           # We have old collect2
8414           hardcode_direct=unsupported
8415           # It fails to find uninstalled libraries when the uninstalled
8416           # path is not listed in the libpath.  Setting hardcode_minus_L
8417           # to unsupported forces relinking
8418           hardcode_minus_L=yes
8419           hardcode_libdir_flag_spec='-L$libdir'
8420           hardcode_libdir_separator=
8421           fi
8422         esac
8423         shared_flag='-shared'
8424         if test "$aix_use_runtimelinking" = yes; then
8425           shared_flag="$shared_flag "'${wl}-G'
8426         fi
8427       else
8428         # not using gcc
8429         if test "$host_cpu" = ia64; then
8430         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8431         # chokes on -Wl,-G. The following line is correct:
8432           shared_flag='-G'
8433         else
8434         if test "$aix_use_runtimelinking" = yes; then
8435             shared_flag='${wl}-G'
8436           else
8437             shared_flag='${wl}-bM:SRE'
8438         fi
8439         fi
8440       fi
8441
8442       # It seems that -bexpall does not export symbols beginning with
8443       # underscore (_), so it is better to generate a list of symbols to export.
8444       always_export_symbols=yes
8445       if test "$aix_use_runtimelinking" = yes; then
8446         # Warning - without using the other runtime loading flags (-brtl),
8447         # -berok will link without error, but may produce a broken library.
8448         allow_undefined_flag='-berok'
8449        # Determine the default libpath from the value encoded in an empty executable.
8450        cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456
8457 int
8458 main ()
8459 {
8460
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467   (eval $ac_link) 2>conftest.er1
8468   ac_status=$?
8469   grep -v '^ *+' conftest.er1 >conftest.err
8470   rm -f conftest.er1
8471   cat conftest.err >&5
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } &&
8474          { ac_try='test -z "$ac_c_werror_flag"
8475                          || test ! -s conftest.err'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; } &&
8481          { ac_try='test -s conftest$ac_exeext'
8482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483   (eval $ac_try) 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); }; }; then
8487
8488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8489 }'`
8490 # Check for a 64-bit object if we didn't find anything.
8491 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; }
8492 }'`; fi
8493 else
8494   echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 fi
8498 rm -f conftest.err conftest.$ac_objext \
8499       conftest$ac_exeext conftest.$ac_ext
8500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8501
8502        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8503         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"
8504        else
8505         if test "$host_cpu" = ia64; then
8506           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8507           allow_undefined_flag="-z nodefs"
8508           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"
8509         else
8510          # Determine the default libpath from the value encoded in an empty executable.
8511          cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h.  */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h.  */
8517
8518 int
8519 main ()
8520 {
8521
8522   ;
8523   return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528   (eval $ac_link) 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } &&
8535          { ac_try='test -z "$ac_c_werror_flag"
8536                          || test ! -s conftest.err'
8537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538   (eval $ac_try) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; } &&
8542          { ac_try='test -s conftest$ac_exeext'
8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544   (eval $ac_try) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548
8549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8550 }'`
8551 # Check for a 64-bit object if we didn't find anything.
8552 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; }
8553 }'`; fi
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558 fi
8559 rm -f conftest.err conftest.$ac_objext \
8560       conftest$ac_exeext conftest.$ac_ext
8561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8562
8563          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8564           # Warning - without using the other run time loading flags,
8565           # -berok will link without error, but may produce a broken library.
8566           no_undefined_flag=' ${wl}-bernotok'
8567           allow_undefined_flag=' ${wl}-berok'
8568           # -bexpall does not export symbols beginning with underscore (_)
8569           always_export_symbols=yes
8570           # Exported symbols can be pulled into shared objects from archives
8571           whole_archive_flag_spec=' '
8572           archive_cmds_need_lc=yes
8573           # This is similar to how AIX traditionally builds its shared libraries.
8574           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'
8575         fi
8576       fi
8577       ;;
8578
8579     amigaos*)
8580       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)'
8581       hardcode_libdir_flag_spec='-L$libdir'
8582       hardcode_minus_L=yes
8583       # see comment about different semantics on the GNU ld section
8584       ld_shlibs=no
8585       ;;
8586
8587     bsdi[45]*)
8588       export_dynamic_flag_spec=-rdynamic
8589       ;;
8590
8591     cygwin* | mingw* | pw32*)
8592       # When not using gcc, we currently assume that we are using
8593       # Microsoft Visual C++.
8594       # hardcode_libdir_flag_spec is actually meaningless, as there is
8595       # no search path for DLLs.
8596       hardcode_libdir_flag_spec=' '
8597       allow_undefined_flag=unsupported
8598       # Tell ltmain to make .lib files, not .a files.
8599       libext=lib
8600       # Tell ltmain to make .dll files, not .so files.
8601       shrext_cmds=".dll"
8602       # FIXME: Setting linknames here is a bad hack.
8603       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8604       # The linker will automatically build a .lib file if we build a DLL.
8605       old_archive_From_new_cmds='true'
8606       # FIXME: Should let the user specify the lib program.
8607       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8608       fix_srcfile_path='`cygpath -w "$srcfile"`'
8609       enable_shared_with_static_runtimes=yes
8610       ;;
8611
8612     darwin* | rhapsody*)
8613       case $host_os in
8614         rhapsody* | darwin1.[012])
8615          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8616          ;;
8617        *) # Darwin 1.3 on
8618          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8619            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8620          else
8621            case ${MACOSX_DEPLOYMENT_TARGET} in
8622              10.[012])
8623                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8624                ;;
8625              10.*)
8626                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8627                ;;
8628            esac
8629          fi
8630          ;;
8631       esac
8632       archive_cmds_need_lc=no
8633       hardcode_direct=no
8634       hardcode_automatic=yes
8635       hardcode_shlibpath_var=unsupported
8636       whole_archive_flag_spec=''
8637       link_all_deplibs=yes
8638     if test "$GCC" = yes ; then
8639         output_verbose_link_cmd='echo'
8640         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8641       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8642       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8643       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}'
8644       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}'
8645     else
8646       case $cc_basename in
8647         xlc*)
8648          output_verbose_link_cmd='echo'
8649          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8650          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8651           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8652          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}'
8653           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}'
8654           ;;
8655        *)
8656          ld_shlibs=no
8657           ;;
8658       esac
8659     fi
8660       ;;
8661
8662     dgux*)
8663       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664       hardcode_libdir_flag_spec='-L$libdir'
8665       hardcode_shlibpath_var=no
8666       ;;
8667
8668     freebsd1*)
8669       ld_shlibs=no
8670       ;;
8671
8672     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8673     # support.  Future versions do this automatically, but an explicit c++rt0.o
8674     # does not break anything, and helps significantly (at the cost of a little
8675     # extra space).
8676     freebsd2.2*)
8677       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8678       hardcode_libdir_flag_spec='-R$libdir'
8679       hardcode_direct=yes
8680       hardcode_shlibpath_var=no
8681       ;;
8682
8683     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8684     freebsd2*)
8685       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686       hardcode_direct=yes
8687       hardcode_minus_L=yes
8688       hardcode_shlibpath_var=no
8689       ;;
8690
8691     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8692     freebsd* | kfreebsd*-gnu | dragonfly*)
8693       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8694       hardcode_libdir_flag_spec='-R$libdir'
8695       hardcode_direct=yes
8696       hardcode_shlibpath_var=no
8697       ;;
8698
8699     hpux9*)
8700       if test "$GCC" = yes; then
8701         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'
8702       else
8703         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'
8704       fi
8705       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706       hardcode_libdir_separator=:
8707       hardcode_direct=yes
8708
8709       # hardcode_minus_L: Not really in the search PATH,
8710       # but as the default location of the library.
8711       hardcode_minus_L=yes
8712       export_dynamic_flag_spec='${wl}-E'
8713       ;;
8714
8715     hpux10* | hpux11*)
8716       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717         case $host_cpu in
8718         hppa*64*|ia64*)
8719           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720           ;;
8721         *)
8722           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8723           ;;
8724         esac
8725       else
8726         case $host_cpu in
8727         hppa*64*|ia64*)
8728           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8729           ;;
8730         *)
8731           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8732           ;;
8733         esac
8734       fi
8735       if test "$with_gnu_ld" = no; then
8736         case $host_cpu in
8737         hppa*64*)
8738           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8739           hardcode_libdir_flag_spec_ld='+b $libdir'
8740           hardcode_libdir_separator=:
8741           hardcode_direct=no
8742           hardcode_shlibpath_var=no
8743           ;;
8744         ia64*)
8745           hardcode_libdir_flag_spec='-L$libdir'
8746           hardcode_direct=no
8747           hardcode_shlibpath_var=no
8748
8749           # hardcode_minus_L: Not really in the search PATH,
8750           # but as the default location of the library.
8751           hardcode_minus_L=yes
8752           ;;
8753         *)
8754           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8755           hardcode_libdir_separator=:
8756           hardcode_direct=yes
8757           export_dynamic_flag_spec='${wl}-E'
8758
8759           # hardcode_minus_L: Not really in the search PATH,
8760           # but as the default location of the library.
8761           hardcode_minus_L=yes
8762           ;;
8763         esac
8764       fi
8765       ;;
8766
8767     irix5* | irix6* | nonstopux*)
8768       if test "$GCC" = yes; then
8769         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'
8770       else
8771         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'
8772         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8773       fi
8774       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775       hardcode_libdir_separator=:
8776       link_all_deplibs=yes
8777       ;;
8778
8779     netbsd*)
8780       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8781         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8782       else
8783         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8784       fi
8785       hardcode_libdir_flag_spec='-R$libdir'
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     newsos6)
8791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792       hardcode_direct=yes
8793       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794       hardcode_libdir_separator=:
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     openbsd*)
8799       hardcode_direct=yes
8800       hardcode_shlibpath_var=no
8801       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8802         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8803         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8804         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8805         export_dynamic_flag_spec='${wl}-E'
8806       else
8807        case $host_os in
8808          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8809            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8810            hardcode_libdir_flag_spec='-R$libdir'
8811            ;;
8812          *)
8813            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8814            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8815            ;;
8816        esac
8817       fi
8818       ;;
8819
8820     os2*)
8821       hardcode_libdir_flag_spec='-L$libdir'
8822       hardcode_minus_L=yes
8823       allow_undefined_flag=unsupported
8824       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'
8825       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8826       ;;
8827
8828     osf3*)
8829       if test "$GCC" = yes; then
8830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831         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'
8832       else
8833         allow_undefined_flag=' -expect_unresolved \*'
8834         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'
8835       fi
8836       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8837       hardcode_libdir_separator=:
8838       ;;
8839
8840     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8841       if test "$GCC" = yes; then
8842         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8843         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'
8844         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8845       else
8846         allow_undefined_flag=' -expect_unresolved \*'
8847         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'
8848         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8849         $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'
8850
8851         # Both c and cxx compiler support -rpath directly
8852         hardcode_libdir_flag_spec='-rpath $libdir'
8853       fi
8854       hardcode_libdir_separator=:
8855       ;;
8856
8857     sco3.2v5*)
8858       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859       hardcode_shlibpath_var=no
8860       export_dynamic_flag_spec='${wl}-Bexport'
8861       runpath_var=LD_RUN_PATH
8862       hardcode_runpath_var=yes
8863       ;;
8864
8865     solaris*)
8866       no_undefined_flag=' -z text'
8867       if test "$GCC" = yes; then
8868         wlarc='${wl}'
8869         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8870         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8871           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8872       else
8873         wlarc=''
8874         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8876         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8877       fi
8878       hardcode_libdir_flag_spec='-R$libdir'
8879       hardcode_shlibpath_var=no
8880       case $host_os in
8881       solaris2.[0-5] | solaris2.[0-5].*) ;;
8882       *)
8883         # The compiler driver will combine linker options so we
8884         # cannot just pass the convience library names through
8885         # without $wl, iff we do not link with $LD.
8886         # Luckily, gcc supports the same syntax we need for Sun Studio.
8887         # Supported since Solaris 2.6 (maybe 2.5.1?)
8888         case $wlarc in
8889         '')
8890           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8891         *)
8892           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' ;;
8893         esac ;;
8894       esac
8895       link_all_deplibs=yes
8896       ;;
8897
8898     sunos4*)
8899       if test "x$host_vendor" = xsequent; then
8900         # Use $CC to link under sequent, because it throws in some extra .o
8901         # files that make .init and .fini sections work.
8902         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8903       else
8904         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8905       fi
8906       hardcode_libdir_flag_spec='-L$libdir'
8907       hardcode_direct=yes
8908       hardcode_minus_L=yes
8909       hardcode_shlibpath_var=no
8910       ;;
8911
8912     sysv4)
8913       case $host_vendor in
8914         sni)
8915           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916           hardcode_direct=yes # is this really true???
8917         ;;
8918         siemens)
8919           ## LD is ld it makes a PLAMLIB
8920           ## CC just makes a GrossModule.
8921           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8922           reload_cmds='$CC -r -o $output$reload_objs'
8923           hardcode_direct=no
8924         ;;
8925         motorola)
8926           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8928         ;;
8929       esac
8930       runpath_var='LD_RUN_PATH'
8931       hardcode_shlibpath_var=no
8932       ;;
8933
8934     sysv4.3*)
8935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8936       hardcode_shlibpath_var=no
8937       export_dynamic_flag_spec='-Bexport'
8938       ;;
8939
8940     sysv4*MP*)
8941       if test -d /usr/nec; then
8942         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943         hardcode_shlibpath_var=no
8944         runpath_var=LD_RUN_PATH
8945         hardcode_runpath_var=yes
8946         ld_shlibs=yes
8947       fi
8948       ;;
8949
8950     sysv4.2uw2*)
8951       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8952       hardcode_direct=yes
8953       hardcode_minus_L=no
8954       hardcode_shlibpath_var=no
8955       hardcode_runpath_var=yes
8956       runpath_var=LD_RUN_PATH
8957       ;;
8958
8959    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8960       no_undefined_flag='${wl}-z ${wl}text'
8961       if test "$GCC" = yes; then
8962         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963       else
8964         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965       fi
8966       runpath_var='LD_RUN_PATH'
8967       hardcode_shlibpath_var=no
8968       ;;
8969
8970     sysv5*)
8971       no_undefined_flag=' -z text'
8972       # $CC -shared without GNU ld will not create a library from C++
8973       # object files and a static libstdc++, better avoid it by now
8974       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8976                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8977       hardcode_libdir_flag_spec=
8978       hardcode_shlibpath_var=no
8979       runpath_var='LD_RUN_PATH'
8980       ;;
8981
8982     uts4*)
8983       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8984       hardcode_libdir_flag_spec='-L$libdir'
8985       hardcode_shlibpath_var=no
8986       ;;
8987
8988     *)
8989       ld_shlibs=no
8990       ;;
8991     esac
8992   fi
8993
8994 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8995 echo "${ECHO_T}$ld_shlibs" >&6
8996 test "$ld_shlibs" = no && can_build_shared=no
8997
8998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8999 if test "$GCC" = yes; then
9000   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9001 fi
9002
9003 #
9004 # Do we need to explicitly link libc?
9005 #
9006 case "x$archive_cmds_need_lc" in
9007 x|xyes)
9008   # Assume -lc should be added
9009   archive_cmds_need_lc=yes
9010
9011   if test "$enable_shared" = yes && test "$GCC" = yes; then
9012     case $archive_cmds in
9013     *'~'*)
9014       # FIXME: we may have to deal with multi-command sequences.
9015       ;;
9016     '$CC '*)
9017       # Test whether the compiler implicitly links with -lc since on some
9018       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9019       # to ld, don't add -lc before -lgcc.
9020       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9021 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9022       $rm conftest*
9023       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9024
9025       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026   (eval $ac_compile) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); } 2>conftest.err; then
9030         soname=conftest
9031         lib=conftest
9032         libobjs=conftest.$ac_objext
9033         deplibs=
9034         wl=$lt_prog_compiler_wl
9035         compiler_flags=-v
9036         linker_flags=-v
9037         verstring=
9038         output_objdir=.
9039         libname=conftest
9040         lt_save_allow_undefined_flag=$allow_undefined_flag
9041         allow_undefined_flag=
9042         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9043   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9044   ac_status=$?
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); }
9047         then
9048           archive_cmds_need_lc=no
9049         else
9050           archive_cmds_need_lc=yes
9051         fi
9052         allow_undefined_flag=$lt_save_allow_undefined_flag
9053       else
9054         cat conftest.err 1>&5
9055       fi
9056       $rm conftest*
9057       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9058 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9059       ;;
9060     esac
9061   fi
9062   ;;
9063 esac
9064
9065 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9067 library_names_spec=
9068 libname_spec='lib$name'
9069 soname_spec=
9070 shrext_cmds=".so"
9071 postinstall_cmds=
9072 postuninstall_cmds=
9073 finish_cmds=
9074 finish_eval=
9075 shlibpath_var=
9076 shlibpath_overrides_runpath=unknown
9077 version_type=none
9078 dynamic_linker="$host_os ld.so"
9079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9080 if test "$GCC" = yes; then
9081   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9082   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9083     # if the path contains ";" then we assume it to be the separator
9084     # otherwise default to the standard path separator (i.e. ":") - it is
9085     # assumed that no part of a normal pathname contains ";" but that should
9086     # okay in the real world where ";" in dirpaths is itself problematic.
9087     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9088   else
9089     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9090   fi
9091 else
9092   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9093 fi
9094 need_lib_prefix=unknown
9095 hardcode_into_libs=no
9096
9097 # when you set need_version to no, make sure it does not cause -set_version
9098 # flags to be left without arguments
9099 need_version=unknown
9100
9101 case $host_os in
9102 aix3*)
9103   version_type=linux
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9105   shlibpath_var=LIBPATH
9106
9107   # AIX 3 has no versioning support, so we append a major version to the name.
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   ;;
9110
9111 aix4* | aix5*)
9112   version_type=linux
9113   need_lib_prefix=no
9114   need_version=no
9115   hardcode_into_libs=yes
9116   if test "$host_cpu" = ia64; then
9117     # AIX 5 supports IA64
9118     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9119     shlibpath_var=LD_LIBRARY_PATH
9120   else
9121     # With GCC up to 2.95.x, collect2 would create an import file
9122     # for dependence libraries.  The import file would start with
9123     # the line `#! .'.  This would cause the generated library to
9124     # depend on `.', always an invalid library.  This was fixed in
9125     # development snapshots of GCC prior to 3.0.
9126     case $host_os in
9127       aix4 | aix4.[01] | aix4.[01].*)
9128       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9129            echo ' yes '
9130            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9131         :
9132       else
9133         can_build_shared=no
9134       fi
9135       ;;
9136     esac
9137     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9138     # soname into executable. Probably we can add versioning support to
9139     # collect2, so additional links can be useful in future.
9140     if test "$aix_use_runtimelinking" = yes; then
9141       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9142       # instead of lib<name>.a to let people know that these are not
9143       # typical AIX shared libraries.
9144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145     else
9146       # We preserve .a as extension for shared libraries through AIX4.2
9147       # and later when we are not doing run time linking.
9148       library_names_spec='${libname}${release}.a $libname.a'
9149       soname_spec='${libname}${release}${shared_ext}$major'
9150     fi
9151     shlibpath_var=LIBPATH
9152   fi
9153   ;;
9154
9155 amigaos*)
9156   library_names_spec='$libname.ixlibrary $libname.a'
9157   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9158   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'
9159   ;;
9160
9161 beos*)
9162   library_names_spec='${libname}${shared_ext}'
9163   dynamic_linker="$host_os ld.so"
9164   shlibpath_var=LIBRARY_PATH
9165   ;;
9166
9167 bsdi[45]*)
9168   version_type=linux
9169   need_version=no
9170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171   soname_spec='${libname}${release}${shared_ext}$major'
9172   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9173   shlibpath_var=LD_LIBRARY_PATH
9174   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9175   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9176   # the default ld.so.conf also contains /usr/contrib/lib and
9177   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9178   # libtool to hard-code these into programs
9179   ;;
9180
9181 cygwin* | mingw* | pw32*)
9182   version_type=windows
9183   shrext_cmds=".dll"
9184   need_version=no
9185   need_lib_prefix=no
9186
9187   case $GCC,$host_os in
9188   yes,cygwin* | yes,mingw* | yes,pw32*)
9189     library_names_spec='$libname.dll.a'
9190     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9191     postinstall_cmds='base_file=`basename \${file}`~
9192       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9193       dldir=$destdir/`dirname \$dlpath`~
9194       test -d \$dldir || mkdir -p \$dldir~
9195       $install_prog $dir/$dlname \$dldir/$dlname~
9196       chmod a+x \$dldir/$dlname'
9197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9198       dlpath=$dir/\$dldll~
9199        $rm \$dlpath'
9200     shlibpath_overrides_runpath=yes
9201
9202     case $host_os in
9203     cygwin*)
9204       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9205       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9207       ;;
9208     mingw*)
9209       # MinGW DLLs use traditional 'lib' prefix
9210       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9212       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9213         # It is most probably a Windows format PATH printed by
9214         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9215         # path with ; separators, and with drive letters. We can handle the
9216         # drive letters (cygwin fileutils understands them), so leave them,
9217         # especially as we might pass files found there to a mingw objdump,
9218         # which wouldn't understand a cygwinified path. Ahh.
9219         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9220       else
9221         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9222       fi
9223       ;;
9224     pw32*)
9225       # pw32 DLLs use 'pw' prefix rather than 'lib'
9226       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227       ;;
9228     esac
9229     ;;
9230
9231   *)
9232     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9233     ;;
9234   esac
9235   dynamic_linker='Win32 ld.exe'
9236   # FIXME: first we should search . and the directory the executable is in
9237   shlibpath_var=PATH
9238   ;;
9239
9240 darwin* | rhapsody*)
9241   dynamic_linker="$host_os dyld"
9242   version_type=darwin
9243   need_lib_prefix=no
9244   need_version=no
9245   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9246   soname_spec='${libname}${release}${major}$shared_ext'
9247   shlibpath_overrides_runpath=yes
9248   shlibpath_var=DYLD_LIBRARY_PATH
9249   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9250   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9251   if test "$GCC" = yes; then
9252     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"`
9253   else
9254     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9255   fi
9256   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9257   ;;
9258
9259 dgux*)
9260   version_type=linux
9261   need_lib_prefix=no
9262   need_version=no
9263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9264   soname_spec='${libname}${release}${shared_ext}$major'
9265   shlibpath_var=LD_LIBRARY_PATH
9266   ;;
9267
9268 freebsd1*)
9269   dynamic_linker=no
9270   ;;
9271
9272 kfreebsd*-gnu)
9273   version_type=linux
9274   need_lib_prefix=no
9275   need_version=no
9276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   shlibpath_var=LD_LIBRARY_PATH
9279   shlibpath_overrides_runpath=no
9280   hardcode_into_libs=yes
9281   dynamic_linker='GNU ld.so'
9282   ;;
9283
9284 freebsd* | dragonfly*)
9285   # DragonFly does not have aout.  When/if they implement a new
9286   # versioning mechanism, adjust this.
9287   if test -x /usr/bin/objformat; then
9288     objformat=`/usr/bin/objformat`
9289   else
9290     case $host_os in
9291     freebsd[123]*) objformat=aout ;;
9292     *) objformat=elf ;;
9293     esac
9294   fi
9295   version_type=freebsd-$objformat
9296   case $version_type in
9297     freebsd-elf*)
9298       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9299       need_version=no
9300       need_lib_prefix=no
9301       ;;
9302     freebsd-*)
9303       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9304       need_version=yes
9305       ;;
9306   esac
9307   shlibpath_var=LD_LIBRARY_PATH
9308   case $host_os in
9309   freebsd2*)
9310     shlibpath_overrides_runpath=yes
9311     ;;
9312   freebsd3.[01]* | freebsdelf3.[01]*)
9313     shlibpath_overrides_runpath=yes
9314     hardcode_into_libs=yes
9315     ;;
9316   *) # from 3.2 on
9317     shlibpath_overrides_runpath=no
9318     hardcode_into_libs=yes
9319     ;;
9320   esac
9321   ;;
9322
9323 gnu*)
9324   version_type=linux
9325   need_lib_prefix=no
9326   need_version=no
9327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9328   soname_spec='${libname}${release}${shared_ext}$major'
9329   shlibpath_var=LD_LIBRARY_PATH
9330   hardcode_into_libs=yes
9331   ;;
9332
9333 hpux9* | hpux10* | hpux11*)
9334   # Give a soname corresponding to the major version so that dld.sl refuses to
9335   # link against other versions.
9336   version_type=sunos
9337   need_lib_prefix=no
9338   need_version=no
9339   case $host_cpu in
9340   ia64*)
9341     shrext_cmds='.so'
9342     hardcode_into_libs=yes
9343     dynamic_linker="$host_os dld.so"
9344     shlibpath_var=LD_LIBRARY_PATH
9345     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347     soname_spec='${libname}${release}${shared_ext}$major'
9348     if test "X$HPUX_IA64_MODE" = X32; then
9349       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9350     else
9351       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9352     fi
9353     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9354     ;;
9355    hppa*64*)
9356      shrext_cmds='.sl'
9357      hardcode_into_libs=yes
9358      dynamic_linker="$host_os dld.sl"
9359      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9360      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9361      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362      soname_spec='${libname}${release}${shared_ext}$major'
9363      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9364      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9365      ;;
9366    *)
9367     shrext_cmds='.sl'
9368     dynamic_linker="$host_os dld.sl"
9369     shlibpath_var=SHLIB_PATH
9370     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372     soname_spec='${libname}${release}${shared_ext}$major'
9373     ;;
9374   esac
9375   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9376   postinstall_cmds='chmod 555 $lib'
9377   ;;
9378
9379 irix5* | irix6* | nonstopux*)
9380   case $host_os in
9381     nonstopux*) version_type=nonstopux ;;
9382     *)
9383         if test "$lt_cv_prog_gnu_ld" = yes; then
9384                 version_type=linux
9385         else
9386                 version_type=irix
9387         fi ;;
9388   esac
9389   need_lib_prefix=no
9390   need_version=no
9391   soname_spec='${libname}${release}${shared_ext}$major'
9392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9393   case $host_os in
9394   irix5* | nonstopux*)
9395     libsuff= shlibsuff=
9396     ;;
9397   *)
9398     case $LD in # libtool.m4 will add one of these switches to LD
9399     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9400       libsuff= shlibsuff= libmagic=32-bit;;
9401     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9402       libsuff=32 shlibsuff=N32 libmagic=N32;;
9403     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9404       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9405     *) libsuff= shlibsuff= libmagic=never-match;;
9406     esac
9407     ;;
9408   esac
9409   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9410   shlibpath_overrides_runpath=no
9411   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9412   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9413   hardcode_into_libs=yes
9414   ;;
9415
9416 # No shared lib support for Linux oldld, aout, or coff.
9417 linux*oldld* | linux*aout* | linux*coff*)
9418   dynamic_linker=no
9419   ;;
9420
9421 # This must be Linux ELF.
9422 linux*)
9423   version_type=linux
9424   need_lib_prefix=no
9425   need_version=no
9426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427   soname_spec='${libname}${release}${shared_ext}$major'
9428   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   shlibpath_overrides_runpath=no
9431   # This implies no fast_install, which is unacceptable.
9432   # Some rework will be needed to allow for fast_install
9433   # before this can be enabled.
9434   hardcode_into_libs=yes
9435
9436   # Append ld.so.conf contents to the search path
9437   if test -f /etc/ld.so.conf; then
9438     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' ' '`
9439     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9440   fi
9441
9442   # We used to test for /lib/ld.so.1 and disable shared libraries on
9443   # powerpc, because MkLinux only supported shared libraries with the
9444   # GNU dynamic linker.  Since this was broken with cross compilers,
9445   # most powerpc-linux boxes support dynamic linking these days and
9446   # people can always --disable-shared, the test was removed, and we
9447   # assume the GNU/Linux dynamic linker is in use.
9448   dynamic_linker='GNU/Linux ld.so'
9449   ;;
9450
9451 knetbsd*-gnu)
9452   version_type=linux
9453   need_lib_prefix=no
9454   need_version=no
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9456   soname_spec='${libname}${release}${shared_ext}$major'
9457   shlibpath_var=LD_LIBRARY_PATH
9458   shlibpath_overrides_runpath=no
9459   hardcode_into_libs=yes
9460   dynamic_linker='GNU ld.so'
9461   ;;
9462
9463 netbsd*)
9464   version_type=sunos
9465   need_lib_prefix=no
9466   need_version=no
9467   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9469     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9470     dynamic_linker='NetBSD (a.out) ld.so'
9471   else
9472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473     soname_spec='${libname}${release}${shared_ext}$major'
9474     dynamic_linker='NetBSD ld.elf_so'
9475   fi
9476   shlibpath_var=LD_LIBRARY_PATH
9477   shlibpath_overrides_runpath=yes
9478   hardcode_into_libs=yes
9479   ;;
9480
9481 newsos6)
9482   version_type=linux
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   shlibpath_overrides_runpath=yes
9486   ;;
9487
9488 nto-qnx*)
9489   version_type=linux
9490   need_lib_prefix=no
9491   need_version=no
9492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   shlibpath_var=LD_LIBRARY_PATH
9495   shlibpath_overrides_runpath=yes
9496   ;;
9497
9498 openbsd*)
9499   version_type=sunos
9500   need_lib_prefix=no
9501   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9502   case $host_os in
9503     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9504     *)                         need_version=no  ;;
9505   esac
9506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9507   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9508   shlibpath_var=LD_LIBRARY_PATH
9509   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9510     case $host_os in
9511       openbsd2.[89] | openbsd2.[89].*)
9512         shlibpath_overrides_runpath=no
9513         ;;
9514       *)
9515         shlibpath_overrides_runpath=yes
9516         ;;
9517       esac
9518   else
9519     shlibpath_overrides_runpath=yes
9520   fi
9521   ;;
9522
9523 os2*)
9524   libname_spec='$name'
9525   shrext_cmds=".dll"
9526   need_lib_prefix=no
9527   library_names_spec='$libname${shared_ext} $libname.a'
9528   dynamic_linker='OS/2 ld.exe'
9529   shlibpath_var=LIBPATH
9530   ;;
9531
9532 osf3* | osf4* | osf5*)
9533   version_type=osf
9534   need_lib_prefix=no
9535   need_version=no
9536   soname_spec='${libname}${release}${shared_ext}$major'
9537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9538   shlibpath_var=LD_LIBRARY_PATH
9539   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9540   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9541   ;;
9542
9543 sco3.2v5*)
9544   version_type=osf
9545   soname_spec='${libname}${release}${shared_ext}$major'
9546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547   shlibpath_var=LD_LIBRARY_PATH
9548   ;;
9549
9550 solaris*)
9551   version_type=linux
9552   need_lib_prefix=no
9553   need_version=no
9554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555   soname_spec='${libname}${release}${shared_ext}$major'
9556   shlibpath_var=LD_LIBRARY_PATH
9557   shlibpath_overrides_runpath=yes
9558   hardcode_into_libs=yes
9559   # ldd complains unless libraries are executable
9560   postinstall_cmds='chmod +x $lib'
9561   ;;
9562
9563 sunos4*)
9564   version_type=sunos
9565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9567   shlibpath_var=LD_LIBRARY_PATH
9568   shlibpath_overrides_runpath=yes
9569   if test "$with_gnu_ld" = yes; then
9570     need_lib_prefix=no
9571   fi
9572   need_version=yes
9573   ;;
9574
9575 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9576   version_type=linux
9577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578   soname_spec='${libname}${release}${shared_ext}$major'
9579   shlibpath_var=LD_LIBRARY_PATH
9580   case $host_vendor in
9581     sni)
9582       shlibpath_overrides_runpath=no
9583       need_lib_prefix=no
9584       export_dynamic_flag_spec='${wl}-Blargedynsym'
9585       runpath_var=LD_RUN_PATH
9586       ;;
9587     siemens)
9588       need_lib_prefix=no
9589       ;;
9590     motorola)
9591       need_lib_prefix=no
9592       need_version=no
9593       shlibpath_overrides_runpath=no
9594       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9595       ;;
9596   esac
9597   ;;
9598
9599 sysv4*MP*)
9600   if test -d /usr/nec ;then
9601     version_type=linux
9602     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9603     soname_spec='$libname${shared_ext}.$major'
9604     shlibpath_var=LD_LIBRARY_PATH
9605   fi
9606   ;;
9607
9608 uts4*)
9609   version_type=linux
9610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611   soname_spec='${libname}${release}${shared_ext}$major'
9612   shlibpath_var=LD_LIBRARY_PATH
9613   ;;
9614
9615 *)
9616   dynamic_linker=no
9617   ;;
9618 esac
9619 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9620 echo "${ECHO_T}$dynamic_linker" >&6
9621 test "$dynamic_linker" = no && can_build_shared=no
9622
9623 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9624 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9625 hardcode_action=
9626 if test -n "$hardcode_libdir_flag_spec" || \
9627    test -n "$runpath_var" || \
9628    test "X$hardcode_automatic" = "Xyes" ; then
9629
9630   # We can hardcode non-existant directories.
9631   if test "$hardcode_direct" != no &&
9632      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9633      # have to relink, otherwise we might link with an installed library
9634      # when we should be linking with a yet-to-be-installed one
9635      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9636      test "$hardcode_minus_L" != no; then
9637     # Linking always hardcodes the temporary library directory.
9638     hardcode_action=relink
9639   else
9640     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9641     hardcode_action=immediate
9642   fi
9643 else
9644   # We cannot hardcode anything, or else we can only hardcode existing
9645   # directories.
9646   hardcode_action=unsupported
9647 fi
9648 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9649 echo "${ECHO_T}$hardcode_action" >&6
9650
9651 if test "$hardcode_action" = relink; then
9652   # Fast installation is not supported
9653   enable_fast_install=no
9654 elif test "$shlibpath_overrides_runpath" = yes ||
9655      test "$enable_shared" = no; then
9656   # Fast installation is not necessary
9657   enable_fast_install=needless
9658 fi
9659
9660 striplib=
9661 old_striplib=
9662 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9663 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9664 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9665   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9666   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9667   echo "$as_me:$LINENO: result: yes" >&5
9668 echo "${ECHO_T}yes" >&6
9669 else
9670 # FIXME - insert some real tests, host_os isn't really good enough
9671   case $host_os in
9672    darwin*)
9673        if test -n "$STRIP" ; then
9674          striplib="$STRIP -x"
9675          echo "$as_me:$LINENO: result: yes" >&5
9676 echo "${ECHO_T}yes" >&6
9677        else
9678   echo "$as_me:$LINENO: result: no" >&5
9679 echo "${ECHO_T}no" >&6
9680 fi
9681        ;;
9682    *)
9683   echo "$as_me:$LINENO: result: no" >&5
9684 echo "${ECHO_T}no" >&6
9685     ;;
9686   esac
9687 fi
9688
9689 if test "x$enable_dlopen" != xyes; then
9690   enable_dlopen=unknown
9691   enable_dlopen_self=unknown
9692   enable_dlopen_self_static=unknown
9693 else
9694   lt_cv_dlopen=no
9695   lt_cv_dlopen_libs=
9696
9697   case $host_os in
9698   beos*)
9699     lt_cv_dlopen="load_add_on"
9700     lt_cv_dlopen_libs=
9701     lt_cv_dlopen_self=yes
9702     ;;
9703
9704   mingw* | pw32*)
9705     lt_cv_dlopen="LoadLibrary"
9706     lt_cv_dlopen_libs=
9707    ;;
9708
9709   cygwin*)
9710     lt_cv_dlopen="dlopen"
9711     lt_cv_dlopen_libs=
9712    ;;
9713
9714   darwin*)
9715   # if libdl is installed we need to link against it
9716     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   ac_check_lib_save_LIBS=$LIBS
9722 LIBS="-ldl  $LIBS"
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h.  */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h.  */
9729
9730 /* Override any gcc2 internal prototype to avoid an error.  */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 /* We use char because int might match the return type of a gcc2
9735    builtin and then its argument prototype would still apply.  */
9736 char dlopen ();
9737 int
9738 main ()
9739 {
9740 dlopen ();
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747   (eval $ac_link) 2>conftest.er1
9748   ac_status=$?
9749   grep -v '^ *+' conftest.er1 >conftest.err
9750   rm -f conftest.er1
9751   cat conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -z "$ac_c_werror_flag"
9755                          || test ! -s conftest.err'
9756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757   (eval $ac_try) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; } &&
9761          { ac_try='test -s conftest$ac_exeext'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767   ac_cv_lib_dl_dlopen=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 ac_cv_lib_dl_dlopen=no
9773 fi
9774 rm -f conftest.err conftest.$ac_objext \
9775       conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9777 fi
9778 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9780 if test $ac_cv_lib_dl_dlopen = yes; then
9781   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9782 else
9783
9784     lt_cv_dlopen="dyld"
9785     lt_cv_dlopen_libs=
9786     lt_cv_dlopen_self=yes
9787
9788 fi
9789
9790    ;;
9791
9792   *)
9793     echo "$as_me:$LINENO: checking for shl_load" >&5
9794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9795 if test "${ac_cv_func_shl_load+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9806 #define shl_load innocuous_shl_load
9807
9808 /* System header to define __stub macros and hopefully few prototypes,
9809     which can conflict with char shl_load (); below.
9810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811     <limits.h> exists even on freestanding compilers.  */
9812
9813 #ifdef __STDC__
9814 # include <limits.h>
9815 #else
9816 # include <assert.h>
9817 #endif
9818
9819 #undef shl_load
9820
9821 /* Override any gcc2 internal prototype to avoid an error.  */
9822 #ifdef __cplusplus
9823 extern "C"
9824 {
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827    builtin and then its argument prototype would still apply.  */
9828 char shl_load ();
9829 /* The GNU C library defines this for functions which it implements
9830     to always fail with ENOSYS.  Some functions are actually named
9831     something starting with __ and the normal name is an alias.  */
9832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9833 choke me
9834 #else
9835 char (*f) () = shl_load;
9836 #endif
9837 #ifdef __cplusplus
9838 }
9839 #endif
9840
9841 int
9842 main ()
9843 {
9844 return f != shl_load;
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851   (eval $ac_link) 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag"
9859                          || test ! -s conftest.err'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; } &&
9865          { ac_try='test -s conftest$ac_exeext'
9866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867   (eval $ac_try) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; }; then
9871   ac_cv_func_shl_load=yes
9872 else
9873   echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876 ac_cv_func_shl_load=no
9877 fi
9878 rm -f conftest.err conftest.$ac_objext \
9879       conftest$ac_exeext conftest.$ac_ext
9880 fi
9881 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9882 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9883 if test $ac_cv_func_shl_load = yes; then
9884   lt_cv_dlopen="shl_load"
9885 else
9886   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9887 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   ac_check_lib_save_LIBS=$LIBS
9892 LIBS="-ldld  $LIBS"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899
9900 /* Override any gcc2 internal prototype to avoid an error.  */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 /* We use char because int might match the return type of a gcc2
9905    builtin and then its argument prototype would still apply.  */
9906 char shl_load ();
9907 int
9908 main ()
9909 {
9910 shl_load ();
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917   (eval $ac_link) 2>conftest.er1
9918   ac_status=$?
9919   grep -v '^ *+' conftest.er1 >conftest.err
9920   rm -f conftest.er1
9921   cat conftest.err >&5
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } &&
9924          { ac_try='test -z "$ac_c_werror_flag"
9925                          || test ! -s conftest.err'
9926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927   (eval $ac_try) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; } &&
9931          { ac_try='test -s conftest$ac_exeext'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_lib_dld_shl_load=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_lib_dld_shl_load=no
9943 fi
9944 rm -f conftest.err conftest.$ac_objext \
9945       conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9947 fi
9948 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9949 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9950 if test $ac_cv_lib_dld_shl_load = yes; then
9951   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9952 else
9953   echo "$as_me:$LINENO: checking for dlopen" >&5
9954 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9955 if test "${ac_cv_func_dlopen+set}" = set; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958   cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9966 #define dlopen innocuous_dlopen
9967
9968 /* System header to define __stub macros and hopefully few prototypes,
9969     which can conflict with char dlopen (); below.
9970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9971     <limits.h> exists even on freestanding compilers.  */
9972
9973 #ifdef __STDC__
9974 # include <limits.h>
9975 #else
9976 # include <assert.h>
9977 #endif
9978
9979 #undef dlopen
9980
9981 /* Override any gcc2 internal prototype to avoid an error.  */
9982 #ifdef __cplusplus
9983 extern "C"
9984 {
9985 #endif
9986 /* We use char because int might match the return type of a gcc2
9987    builtin and then its argument prototype would still apply.  */
9988 char dlopen ();
9989 /* The GNU C library defines this for functions which it implements
9990     to always fail with ENOSYS.  Some functions are actually named
9991     something starting with __ and the normal name is an alias.  */
9992 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9993 choke me
9994 #else
9995 char (*f) () = dlopen;
9996 #endif
9997 #ifdef __cplusplus
9998 }
9999 #endif
10000
10001 int
10002 main ()
10003 {
10004 return f != dlopen;
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011   (eval $ac_link) 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } &&
10018          { ac_try='test -z "$ac_c_werror_flag"
10019                          || test ! -s conftest.err'
10020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021   (eval $ac_try) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); }; } &&
10025          { ac_try='test -s conftest$ac_exeext'
10026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; }; then
10031   ac_cv_func_dlopen=yes
10032 else
10033   echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_cv_func_dlopen=no
10037 fi
10038 rm -f conftest.err conftest.$ac_objext \
10039       conftest$ac_exeext conftest.$ac_ext
10040 fi
10041 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10042 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10043 if test $ac_cv_func_dlopen = yes; then
10044   lt_cv_dlopen="dlopen"
10045 else
10046   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10047 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10048 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-ldl  $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059
10060 /* Override any gcc2 internal prototype to avoid an error.  */
10061 #ifdef __cplusplus
10062 extern "C"
10063 #endif
10064 /* We use char because int might match the return type of a gcc2
10065    builtin and then its argument prototype would still apply.  */
10066 char dlopen ();
10067 int
10068 main ()
10069 {
10070 dlopen ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077   (eval $ac_link) 2>conftest.er1
10078   ac_status=$?
10079   grep -v '^ *+' conftest.er1 >conftest.err
10080   rm -f conftest.er1
10081   cat conftest.err >&5
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); } &&
10084          { ac_try='test -z "$ac_c_werror_flag"
10085                          || test ! -s conftest.err'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; } &&
10091          { ac_try='test -s conftest$ac_exeext'
10092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093   (eval $ac_try) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; }; then
10097   ac_cv_lib_dl_dlopen=yes
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102 ac_cv_lib_dl_dlopen=no
10103 fi
10104 rm -f conftest.err conftest.$ac_objext \
10105       conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10107 fi
10108 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10110 if test $ac_cv_lib_dl_dlopen = yes; then
10111   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10112 else
10113   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10114 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10115 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10116   echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118   ac_check_lib_save_LIBS=$LIBS
10119 LIBS="-lsvld  $LIBS"
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h.  */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h.  */
10126
10127 /* Override any gcc2 internal prototype to avoid an error.  */
10128 #ifdef __cplusplus
10129 extern "C"
10130 #endif
10131 /* We use char because int might match the return type of a gcc2
10132    builtin and then its argument prototype would still apply.  */
10133 char dlopen ();
10134 int
10135 main ()
10136 {
10137 dlopen ();
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144   (eval $ac_link) 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -z "$ac_c_werror_flag"
10152                          || test ! -s conftest.err'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; } &&
10158          { ac_try='test -s conftest$ac_exeext'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }; then
10164   ac_cv_lib_svld_dlopen=yes
10165 else
10166   echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10168
10169 ac_cv_lib_svld_dlopen=no
10170 fi
10171 rm -f conftest.err conftest.$ac_objext \
10172       conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10174 fi
10175 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10176 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10177 if test $ac_cv_lib_svld_dlopen = yes; then
10178   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10179 else
10180   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10181 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10182 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10183   echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185   ac_check_lib_save_LIBS=$LIBS
10186 LIBS="-ldld  $LIBS"
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193
10194 /* Override any gcc2 internal prototype to avoid an error.  */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 /* We use char because int might match the return type of a gcc2
10199    builtin and then its argument prototype would still apply.  */
10200 char dld_link ();
10201 int
10202 main ()
10203 {
10204 dld_link ();
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211   (eval $ac_link) 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } &&
10218          { ac_try='test -z "$ac_c_werror_flag"
10219                          || test ! -s conftest.err'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; } &&
10225          { ac_try='test -s conftest$ac_exeext'
10226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227   (eval $ac_try) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231   ac_cv_lib_dld_dld_link=yes
10232 else
10233   echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 ac_cv_lib_dld_dld_link=no
10237 fi
10238 rm -f conftest.err conftest.$ac_objext \
10239       conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10241 fi
10242 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10243 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10244 if test $ac_cv_lib_dld_dld_link = yes; then
10245   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10246 fi
10247
10248
10249 fi
10250
10251
10252 fi
10253
10254
10255 fi
10256
10257
10258 fi
10259
10260
10261 fi
10262
10263     ;;
10264   esac
10265
10266   if test "x$lt_cv_dlopen" != xno; then
10267     enable_dlopen=yes
10268   else
10269     enable_dlopen=no
10270   fi
10271
10272   case $lt_cv_dlopen in
10273   dlopen)
10274     save_CPPFLAGS="$CPPFLAGS"
10275     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10276
10277     save_LDFLAGS="$LDFLAGS"
10278     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10279
10280     save_LIBS="$LIBS"
10281     LIBS="$lt_cv_dlopen_libs $LIBS"
10282
10283     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10284 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10285 if test "${lt_cv_dlopen_self+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288           if test "$cross_compiling" = yes; then :
10289   lt_cv_dlopen_self=cross
10290 else
10291   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10292   lt_status=$lt_dlunknown
10293   cat > conftest.$ac_ext <<EOF
10294 #line 10294 "configure"
10295 #include "confdefs.h"
10296
10297 #if HAVE_DLFCN_H
10298 #include <dlfcn.h>
10299 #endif
10300
10301 #include <stdio.h>
10302
10303 #ifdef RTLD_GLOBAL
10304 #  define LT_DLGLOBAL           RTLD_GLOBAL
10305 #else
10306 #  ifdef DL_GLOBAL
10307 #    define LT_DLGLOBAL         DL_GLOBAL
10308 #  else
10309 #    define LT_DLGLOBAL         0
10310 #  endif
10311 #endif
10312
10313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10314    find out it does not work in some platform. */
10315 #ifndef LT_DLLAZY_OR_NOW
10316 #  ifdef RTLD_LAZY
10317 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10318 #  else
10319 #    ifdef DL_LAZY
10320 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10321 #    else
10322 #      ifdef RTLD_NOW
10323 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10324 #      else
10325 #        ifdef DL_NOW
10326 #          define LT_DLLAZY_OR_NOW      DL_NOW
10327 #        else
10328 #          define LT_DLLAZY_OR_NOW      0
10329 #        endif
10330 #      endif
10331 #    endif
10332 #  endif
10333 #endif
10334
10335 #ifdef __cplusplus
10336 extern "C" void exit (int);
10337 #endif
10338
10339 void fnord() { int i=42;}
10340 int main ()
10341 {
10342   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10343   int status = $lt_dlunknown;
10344
10345   if (self)
10346     {
10347       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10348       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10349       /* dlclose (self); */
10350     }
10351
10352     exit (status);
10353 }
10354 EOF
10355   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356   (eval $ac_link) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10360     (./conftest; exit; ) >&5 2>/dev/null
10361     lt_status=$?
10362     case x$lt_status in
10363       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10364       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10365       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10366     esac
10367   else :
10368     # compilation failed
10369     lt_cv_dlopen_self=no
10370   fi
10371 fi
10372 rm -fr conftest*
10373
10374
10375 fi
10376 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10377 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10378
10379     if test "x$lt_cv_dlopen_self" = xyes; then
10380       LDFLAGS="$LDFLAGS $link_static_flag"
10381       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10383 if test "${lt_cv_dlopen_self_static+set}" = set; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386           if test "$cross_compiling" = yes; then :
10387   lt_cv_dlopen_self_static=cross
10388 else
10389   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390   lt_status=$lt_dlunknown
10391   cat > conftest.$ac_ext <<EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10394
10395 #if HAVE_DLFCN_H
10396 #include <dlfcn.h>
10397 #endif
10398
10399 #include <stdio.h>
10400
10401 #ifdef RTLD_GLOBAL
10402 #  define LT_DLGLOBAL           RTLD_GLOBAL
10403 #else
10404 #  ifdef DL_GLOBAL
10405 #    define LT_DLGLOBAL         DL_GLOBAL
10406 #  else
10407 #    define LT_DLGLOBAL         0
10408 #  endif
10409 #endif
10410
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412    find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10414 #  ifdef RTLD_LAZY
10415 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10416 #  else
10417 #    ifdef DL_LAZY
10418 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10419 #    else
10420 #      ifdef RTLD_NOW
10421 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10422 #      else
10423 #        ifdef DL_NOW
10424 #          define LT_DLLAZY_OR_NOW      DL_NOW
10425 #        else
10426 #          define LT_DLLAZY_OR_NOW      0
10427 #        endif
10428 #      endif
10429 #    endif
10430 #  endif
10431 #endif
10432
10433 #ifdef __cplusplus
10434 extern "C" void exit (int);
10435 #endif
10436
10437 void fnord() { int i=42;}
10438 int main ()
10439 {
10440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441   int status = $lt_dlunknown;
10442
10443   if (self)
10444     {
10445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447       /* dlclose (self); */
10448     }
10449
10450     exit (status);
10451 }
10452 EOF
10453   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454   (eval $ac_link) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10458     (./conftest; exit; ) >&5 2>/dev/null
10459     lt_status=$?
10460     case x$lt_status in
10461       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10462       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10463       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10464     esac
10465   else :
10466     # compilation failed
10467     lt_cv_dlopen_self_static=no
10468   fi
10469 fi
10470 rm -fr conftest*
10471
10472
10473 fi
10474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10475 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10476     fi
10477
10478     CPPFLAGS="$save_CPPFLAGS"
10479     LDFLAGS="$save_LDFLAGS"
10480     LIBS="$save_LIBS"
10481     ;;
10482   esac
10483
10484   case $lt_cv_dlopen_self in
10485   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10486   *) enable_dlopen_self=unknown ;;
10487   esac
10488
10489   case $lt_cv_dlopen_self_static in
10490   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10491   *) enable_dlopen_self_static=unknown ;;
10492   esac
10493 fi
10494
10495
10496 # Report which librarie types wil actually be built
10497 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10498 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10499 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10500 echo "${ECHO_T}$can_build_shared" >&6
10501
10502 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10503 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10504 test "$can_build_shared" = "no" && enable_shared=no
10505
10506 # On AIX, shared libraries and static libraries use the same namespace, and
10507 # are all built from PIC.
10508 case $host_os in
10509 aix3*)
10510   test "$enable_shared" = yes && enable_static=no
10511   if test -n "$RANLIB"; then
10512     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10513     postinstall_cmds='$RANLIB $lib'
10514   fi
10515   ;;
10516
10517 aix4* | aix5*)
10518   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10519     test "$enable_shared" = yes && enable_static=no
10520   fi
10521     ;;
10522 esac
10523 echo "$as_me:$LINENO: result: $enable_shared" >&5
10524 echo "${ECHO_T}$enable_shared" >&6
10525
10526 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10527 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10528 # Make sure either enable_shared or enable_static is yes.
10529 test "$enable_shared" = yes || enable_static=yes
10530 echo "$as_me:$LINENO: result: $enable_static" >&5
10531 echo "${ECHO_T}$enable_static" >&6
10532
10533 # The else clause should only fire when bootstrapping the
10534 # libtool distribution, otherwise you forgot to ship ltmain.sh
10535 # with your package, and you will get complaints that there are
10536 # no rules to generate ltmain.sh.
10537 if test -f "$ltmain"; then
10538   # See if we are running on zsh, and set the options which allow our commands through
10539   # without removal of \ escapes.
10540   if test -n "${ZSH_VERSION+set}" ; then
10541     setopt NO_GLOB_SUBST
10542   fi
10543   # Now quote all the things that may contain metacharacters while being
10544   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10545   # variables and quote the copies for generation of the libtool script.
10546   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10547     SED SHELL STRIP \
10548     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10549     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10550     deplibs_check_method reload_flag reload_cmds need_locks \
10551     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10552     lt_cv_sys_global_symbol_to_c_name_address \
10553     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10554     old_postinstall_cmds old_postuninstall_cmds \
10555     compiler \
10556     CC \
10557     LD \
10558     lt_prog_compiler_wl \
10559     lt_prog_compiler_pic \
10560     lt_prog_compiler_static \
10561     lt_prog_compiler_no_builtin_flag \
10562     export_dynamic_flag_spec \
10563     thread_safe_flag_spec \
10564     whole_archive_flag_spec \
10565     enable_shared_with_static_runtimes \
10566     old_archive_cmds \
10567     old_archive_from_new_cmds \
10568     predep_objects \
10569     postdep_objects \
10570     predeps \
10571     postdeps \
10572     compiler_lib_search_path \
10573     archive_cmds \
10574     archive_expsym_cmds \
10575     postinstall_cmds \
10576     postuninstall_cmds \
10577     old_archive_from_expsyms_cmds \
10578     allow_undefined_flag \
10579     no_undefined_flag \
10580     export_symbols_cmds \
10581     hardcode_libdir_flag_spec \
10582     hardcode_libdir_flag_spec_ld \
10583     hardcode_libdir_separator \
10584     hardcode_automatic \
10585     module_cmds \
10586     module_expsym_cmds \
10587     lt_cv_prog_compiler_c_o \
10588     exclude_expsyms \
10589     include_expsyms; do
10590
10591     case $var in
10592     old_archive_cmds | \
10593     old_archive_from_new_cmds | \
10594     archive_cmds | \
10595     archive_expsym_cmds | \
10596     module_cmds | \
10597     module_expsym_cmds | \
10598     old_archive_from_expsyms_cmds | \
10599     export_symbols_cmds | \
10600     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10601     postinstall_cmds | postuninstall_cmds | \
10602     old_postinstall_cmds | old_postuninstall_cmds | \
10603     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10604       # Double-quote double-evaled strings.
10605       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10606       ;;
10607     *)
10608       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10609       ;;
10610     esac
10611   done
10612
10613   case $lt_echo in
10614   *'\$0 --fallback-echo"')
10615     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10616     ;;
10617   esac
10618
10619 cfgfile="${ofile}T"
10620   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10621   $rm -f "$cfgfile"
10622   { echo "$as_me:$LINENO: creating $ofile" >&5
10623 echo "$as_me: creating $ofile" >&6;}
10624
10625   cat <<__EOF__ >> "$cfgfile"
10626 #! $SHELL
10627
10628 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10629 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10630 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10631 #
10632 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10633 # Free Software Foundation, Inc.
10634 #
10635 # This file is part of GNU Libtool:
10636 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10637 #
10638 # This program is free software; you can redistribute it and/or modify
10639 # it under the terms of the GNU General Public License as published by
10640 # the Free Software Foundation; either version 2 of the License, or
10641 # (at your option) any later version.
10642 #
10643 # This program is distributed in the hope that it will be useful, but
10644 # WITHOUT ANY WARRANTY; without even the implied warranty of
10645 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10646 # General Public License for more details.
10647 #
10648 # You should have received a copy of the GNU General Public License
10649 # along with this program; if not, write to the Free Software
10650 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10651 #
10652 # As a special exception to the GNU General Public License, if you
10653 # distribute this file as part of a program that contains a
10654 # configuration script generated by Autoconf, you may include it under
10655 # the same distribution terms that you use for the rest of that program.
10656
10657 # A sed program that does not truncate output.
10658 SED=$lt_SED
10659
10660 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10661 Xsed="$SED -e 1s/^X//"
10662
10663 # The HP-UX ksh and POSIX shell print the target directory to stdout
10664 # if CDPATH is set.
10665 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10666
10667 # The names of the tagged configurations supported by this script.
10668 available_tags=
10669
10670 # ### BEGIN LIBTOOL CONFIG
10671
10672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10673
10674 # Shell to use when invoking shell scripts.
10675 SHELL=$lt_SHELL
10676
10677 # Whether or not to build shared libraries.
10678 build_libtool_libs=$enable_shared
10679
10680 # Whether or not to build static libraries.
10681 build_old_libs=$enable_static
10682
10683 # Whether or not to add -lc for building shared libraries.
10684 build_libtool_need_lc=$archive_cmds_need_lc
10685
10686 # Whether or not to disallow shared libs when runtime libs are static
10687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10688
10689 # Whether or not to optimize for fast installation.
10690 fast_install=$enable_fast_install
10691
10692 # The host system.
10693 host_alias=$host_alias
10694 host=$host
10695 host_os=$host_os
10696
10697 # The build system.
10698 build_alias=$build_alias
10699 build=$build
10700 build_os=$build_os
10701
10702 # An echo program that does not interpret backslashes.
10703 echo=$lt_echo
10704
10705 # The archiver.
10706 AR=$lt_AR
10707 AR_FLAGS=$lt_AR_FLAGS
10708
10709 # A C compiler.
10710 LTCC=$lt_LTCC
10711
10712 # A language-specific compiler.
10713 CC=$lt_compiler
10714
10715 # Is the compiler the GNU C compiler?
10716 with_gcc=$GCC
10717
10718 # An ERE matcher.
10719 EGREP=$lt_EGREP
10720
10721 # The linker used to build libraries.
10722 LD=$lt_LD
10723
10724 # Whether we need hard or soft links.
10725 LN_S=$lt_LN_S
10726
10727 # A BSD-compatible nm program.
10728 NM=$lt_NM
10729
10730 # A symbol stripping program
10731 STRIP=$lt_STRIP
10732
10733 # Used to examine libraries when file_magic_cmd begins "file"
10734 MAGIC_CMD=$MAGIC_CMD
10735
10736 # Used on cygwin: DLL creation program.
10737 DLLTOOL="$DLLTOOL"
10738
10739 # Used on cygwin: object dumper.
10740 OBJDUMP="$OBJDUMP"
10741
10742 # Used on cygwin: assembler.
10743 AS="$AS"
10744
10745 # The name of the directory that contains temporary libtool files.
10746 objdir=$objdir
10747
10748 # How to create reloadable object files.
10749 reload_flag=$lt_reload_flag
10750 reload_cmds=$lt_reload_cmds
10751
10752 # How to pass a linker flag through the compiler.
10753 wl=$lt_lt_prog_compiler_wl
10754
10755 # Object file suffix (normally "o").
10756 objext="$ac_objext"
10757
10758 # Old archive suffix (normally "a").
10759 libext="$libext"
10760
10761 # Shared library suffix (normally ".so").
10762 shrext_cmds='$shrext_cmds'
10763
10764 # Executable file suffix (normally "").
10765 exeext="$exeext"
10766
10767 # Additional compiler flags for building library objects.
10768 pic_flag=$lt_lt_prog_compiler_pic
10769 pic_mode=$pic_mode
10770
10771 # What is the maximum length of a command?
10772 max_cmd_len=$lt_cv_sys_max_cmd_len
10773
10774 # Does compiler simultaneously support -c and -o options?
10775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10776
10777 # Must we lock files when doing compilation?
10778 need_locks=$lt_need_locks
10779
10780 # Do we need the lib prefix for modules?
10781 need_lib_prefix=$need_lib_prefix
10782
10783 # Do we need a version for libraries?
10784 need_version=$need_version
10785
10786 # Whether dlopen is supported.
10787 dlopen_support=$enable_dlopen
10788
10789 # Whether dlopen of programs is supported.
10790 dlopen_self=$enable_dlopen_self
10791
10792 # Whether dlopen of statically linked programs is supported.
10793 dlopen_self_static=$enable_dlopen_self_static
10794
10795 # Compiler flag to prevent dynamic linking.
10796 link_static_flag=$lt_lt_prog_compiler_static
10797
10798 # Compiler flag to turn off builtin functions.
10799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10800
10801 # Compiler flag to allow reflexive dlopens.
10802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10803
10804 # Compiler flag to generate shared objects directly from archives.
10805 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10806
10807 # Compiler flag to generate thread-safe objects.
10808 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10809
10810 # Library versioning type.
10811 version_type=$version_type
10812
10813 # Format of library name prefix.
10814 libname_spec=$lt_libname_spec
10815
10816 # List of archive names.  First name is the real one, the rest are links.
10817 # The last name is the one that the linker finds with -lNAME.
10818 library_names_spec=$lt_library_names_spec
10819
10820 # The coded name of the library, if different from the real name.
10821 soname_spec=$lt_soname_spec
10822
10823 # Commands used to build and install an old-style archive.
10824 RANLIB=$lt_RANLIB
10825 old_archive_cmds=$lt_old_archive_cmds
10826 old_postinstall_cmds=$lt_old_postinstall_cmds
10827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10828
10829 # Create an old-style archive from a shared archive.
10830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10831
10832 # Create a temporary old-style archive to link instead of a shared archive.
10833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10834
10835 # Commands used to build and install a shared archive.
10836 archive_cmds=$lt_archive_cmds
10837 archive_expsym_cmds=$lt_archive_expsym_cmds
10838 postinstall_cmds=$lt_postinstall_cmds
10839 postuninstall_cmds=$lt_postuninstall_cmds
10840
10841 # Commands used to build a loadable module (assumed same as above if empty)
10842 module_cmds=$lt_module_cmds
10843 module_expsym_cmds=$lt_module_expsym_cmds
10844
10845 # Commands to strip libraries.
10846 old_striplib=$lt_old_striplib
10847 striplib=$lt_striplib
10848
10849 # Dependencies to place before the objects being linked to create a
10850 # shared library.
10851 predep_objects=$lt_predep_objects
10852
10853 # Dependencies to place after the objects being linked to create a
10854 # shared library.
10855 postdep_objects=$lt_postdep_objects
10856
10857 # Dependencies to place before the objects being linked to create a
10858 # shared library.
10859 predeps=$lt_predeps
10860
10861 # Dependencies to place after the objects being linked to create a
10862 # shared library.
10863 postdeps=$lt_postdeps
10864
10865 # The library search path used internally by the compiler when linking
10866 # a shared library.
10867 compiler_lib_search_path=$lt_compiler_lib_search_path
10868
10869 # Method to check whether dependent libraries are shared objects.
10870 deplibs_check_method=$lt_deplibs_check_method
10871
10872 # Command to use when deplibs_check_method == file_magic.
10873 file_magic_cmd=$lt_file_magic_cmd
10874
10875 # Flag that allows shared libraries with undefined symbols to be built.
10876 allow_undefined_flag=$lt_allow_undefined_flag
10877
10878 # Flag that forces no undefined symbols.
10879 no_undefined_flag=$lt_no_undefined_flag
10880
10881 # Commands used to finish a libtool library installation in a directory.
10882 finish_cmds=$lt_finish_cmds
10883
10884 # Same as above, but a single script fragment to be evaled but not shown.
10885 finish_eval=$lt_finish_eval
10886
10887 # Take the output of nm and produce a listing of raw symbols and C names.
10888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10889
10890 # Transform the output of nm in a proper C declaration
10891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10892
10893 # Transform the output of nm in a C name address pair
10894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10895
10896 # This is the shared library runtime path variable.
10897 runpath_var=$runpath_var
10898
10899 # This is the shared library path variable.
10900 shlibpath_var=$shlibpath_var
10901
10902 # Is shlibpath searched before the hard-coded library search path?
10903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10904
10905 # How to hardcode a shared library path into an executable.
10906 hardcode_action=$hardcode_action
10907
10908 # Whether we should hardcode library paths into libraries.
10909 hardcode_into_libs=$hardcode_into_libs
10910
10911 # Flag to hardcode \$libdir into a binary during linking.
10912 # This must work even if \$libdir does not exist.
10913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10914
10915 # If ld is used when linking, flag to hardcode \$libdir into
10916 # a binary during linking. This must work even if \$libdir does
10917 # not exist.
10918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10919
10920 # Whether we need a single -rpath flag with a separated argument.
10921 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10922
10923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10924 # resulting binary.
10925 hardcode_direct=$hardcode_direct
10926
10927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10928 # resulting binary.
10929 hardcode_minus_L=$hardcode_minus_L
10930
10931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10932 # the resulting binary.
10933 hardcode_shlibpath_var=$hardcode_shlibpath_var
10934
10935 # Set to yes if building a shared library automatically hardcodes DIR into the library
10936 # and all subsequent libraries and executables linked against it.
10937 hardcode_automatic=$hardcode_automatic
10938
10939 # Variables whose values should be saved in libtool wrapper scripts and
10940 # restored at relink time.
10941 variables_saved_for_relink="$variables_saved_for_relink"
10942
10943 # Whether libtool must link a program against all its dependency libraries.
10944 link_all_deplibs=$link_all_deplibs
10945
10946 # Compile-time system search path for libraries
10947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10948
10949 # Run-time system search path for libraries
10950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10951
10952 # Fix the shell variable \$srcfile for the compiler.
10953 fix_srcfile_path="$fix_srcfile_path"
10954
10955 # Set to yes if exported symbols are required.
10956 always_export_symbols=$always_export_symbols
10957
10958 # The commands to list exported symbols.
10959 export_symbols_cmds=$lt_export_symbols_cmds
10960
10961 # The commands to extract the exported symbol list from a shared archive.
10962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10963
10964 # Symbols that should not be listed in the preloaded symbols.
10965 exclude_expsyms=$lt_exclude_expsyms
10966
10967 # Symbols that must always be exported.
10968 include_expsyms=$lt_include_expsyms
10969
10970 # ### END LIBTOOL CONFIG
10971
10972 __EOF__
10973
10974
10975   case $host_os in
10976   aix3*)
10977     cat <<\EOF >> "$cfgfile"
10978
10979 # AIX sometimes has problems with the GCC collect2 program.  For some
10980 # reason, if we set the COLLECT_NAMES environment variable, the problems
10981 # vanish in a puff of smoke.
10982 if test "X${COLLECT_NAMES+set}" != Xset; then
10983   COLLECT_NAMES=
10984   export COLLECT_NAMES
10985 fi
10986 EOF
10987     ;;
10988   esac
10989
10990   # We use sed instead of cat because bash on DJGPP gets confused if
10991   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10992   # text mode, it properly converts lines to CR/LF.  This bash problem
10993   # is reportedly fixed, but why not run on old versions too?
10994   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10995
10996   mv -f "$cfgfile" "$ofile" || \
10997     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10998   chmod +x "$ofile"
10999
11000 else
11001   # If there is no Makefile yet, we rely on a make rule to execute
11002   # `config.status --recheck' to rerun these tests and create the
11003   # libtool script then.
11004   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11005   if test -f "$ltmain_in"; then
11006     test -f Makefile && make "$ltmain"
11007   fi
11008 fi
11009
11010
11011 ac_ext=c
11012 ac_cpp='$CPP $CPPFLAGS'
11013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11016
11017 CC="$lt_save_CC"
11018
11019
11020 # Check whether --with-tags or --without-tags was given.
11021 if test "${with_tags+set}" = set; then
11022   withval="$with_tags"
11023   tagnames="$withval"
11024 fi;
11025
11026 if test -f "$ltmain" && test -n "$tagnames"; then
11027   if test ! -f "${ofile}"; then
11028     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11029 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11030   fi
11031
11032   if test -z "$LTCC"; then
11033     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11034     if test -z "$LTCC"; then
11035       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11036 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11037     else
11038       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11039 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11040     fi
11041   fi
11042
11043   # Extract list of available tagged configurations in $ofile.
11044   # Note that this assumes the entire list is on one line.
11045   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11046
11047   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11048   for tagname in $tagnames; do
11049     IFS="$lt_save_ifs"
11050     # Check whether tagname contains only valid characters
11051     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11052     "") ;;
11053     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11054 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11055    { (exit 1); exit 1; }; }
11056         ;;
11057     esac
11058
11059     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11060     then
11061       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11062 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11063    { (exit 1); exit 1; }; }
11064     fi
11065
11066     # Update the list of available tags.
11067     if test -n "$tagname"; then
11068       echo appending configuration tag \"$tagname\" to $ofile
11069
11070       case $tagname in
11071       CXX)
11072         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11073             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11074             (test "X$CXX" != "Xg++"))) ; then
11075           :
11076         else
11077           tagname=""
11078         fi
11079         ;;
11080
11081       F77)
11082         if test -n "$F77" && test "X$F77" != "Xno"; then
11083           :
11084         else
11085           tagname=""
11086         fi
11087         ;;
11088
11089       GCJ)
11090         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11091           :
11092         else
11093           tagname=""
11094         fi
11095         ;;
11096
11097       RC)
11098
11099
11100
11101 # Source file extension for RC test sources.
11102 ac_ext=rc
11103
11104 # Object file extension for compiled RC test sources.
11105 objext=o
11106 objext_RC=$objext
11107
11108 # Code to be used in simple compile tests
11109 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11110
11111 # Code to be used in simple link tests
11112 lt_simple_link_test_code="$lt_simple_compile_test_code"
11113
11114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11115
11116 # If no C compiler was specified, use CC.
11117 LTCC=${LTCC-"$CC"}
11118
11119 # Allow CC to be a program name with arguments.
11120 compiler=$CC
11121
11122
11123 # save warnings/boilerplate of simple test code
11124 ac_outfile=conftest.$ac_objext
11125 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11127 _lt_compiler_boilerplate=`cat conftest.err`
11128 $rm conftest*
11129
11130 ac_outfile=conftest.$ac_objext
11131 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11133 _lt_linker_boilerplate=`cat conftest.err`
11134 $rm conftest*
11135
11136
11137 # Allow CC to be a program name with arguments.
11138 lt_save_CC="$CC"
11139 CC=${RC-"windres"}
11140 compiler=$CC
11141 compiler_RC=$CC
11142 for cc_temp in $compiler""; do
11143   case $cc_temp in
11144     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11145     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11146     \-*) ;;
11147     *) break;;
11148   esac
11149 done
11150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11151
11152 lt_cv_prog_compiler_c_o_RC=yes
11153
11154 # The else clause should only fire when bootstrapping the
11155 # libtool distribution, otherwise you forgot to ship ltmain.sh
11156 # with your package, and you will get complaints that there are
11157 # no rules to generate ltmain.sh.
11158 if test -f "$ltmain"; then
11159   # See if we are running on zsh, and set the options which allow our commands through
11160   # without removal of \ escapes.
11161   if test -n "${ZSH_VERSION+set}" ; then
11162     setopt NO_GLOB_SUBST
11163   fi
11164   # Now quote all the things that may contain metacharacters while being
11165   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11166   # variables and quote the copies for generation of the libtool script.
11167   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11168     SED SHELL STRIP \
11169     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11170     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11171     deplibs_check_method reload_flag reload_cmds need_locks \
11172     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11173     lt_cv_sys_global_symbol_to_c_name_address \
11174     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11175     old_postinstall_cmds old_postuninstall_cmds \
11176     compiler_RC \
11177     CC_RC \
11178     LD_RC \
11179     lt_prog_compiler_wl_RC \
11180     lt_prog_compiler_pic_RC \
11181     lt_prog_compiler_static_RC \
11182     lt_prog_compiler_no_builtin_flag_RC \
11183     export_dynamic_flag_spec_RC \
11184     thread_safe_flag_spec_RC \
11185     whole_archive_flag_spec_RC \
11186     enable_shared_with_static_runtimes_RC \
11187     old_archive_cmds_RC \
11188     old_archive_from_new_cmds_RC \
11189     predep_objects_RC \
11190     postdep_objects_RC \
11191     predeps_RC \
11192     postdeps_RC \
11193     compiler_lib_search_path_RC \
11194     archive_cmds_RC \
11195     archive_expsym_cmds_RC \
11196     postinstall_cmds_RC \
11197     postuninstall_cmds_RC \
11198     old_archive_from_expsyms_cmds_RC \
11199     allow_undefined_flag_RC \
11200     no_undefined_flag_RC \
11201     export_symbols_cmds_RC \
11202     hardcode_libdir_flag_spec_RC \
11203     hardcode_libdir_flag_spec_ld_RC \
11204     hardcode_libdir_separator_RC \
11205     hardcode_automatic_RC \
11206     module_cmds_RC \
11207     module_expsym_cmds_RC \
11208     lt_cv_prog_compiler_c_o_RC \
11209     exclude_expsyms_RC \
11210     include_expsyms_RC; do
11211
11212     case $var in
11213     old_archive_cmds_RC | \
11214     old_archive_from_new_cmds_RC | \
11215     archive_cmds_RC | \
11216     archive_expsym_cmds_RC | \
11217     module_cmds_RC | \
11218     module_expsym_cmds_RC | \
11219     old_archive_from_expsyms_cmds_RC | \
11220     export_symbols_cmds_RC | \
11221     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11222     postinstall_cmds | postuninstall_cmds | \
11223     old_postinstall_cmds | old_postuninstall_cmds | \
11224     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11225       # Double-quote double-evaled strings.
11226       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11227       ;;
11228     *)
11229       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11230       ;;
11231     esac
11232   done
11233
11234   case $lt_echo in
11235   *'\$0 --fallback-echo"')
11236     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11237     ;;
11238   esac
11239
11240 cfgfile="$ofile"
11241
11242   cat <<__EOF__ >> "$cfgfile"
11243 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11244
11245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11246
11247 # Shell to use when invoking shell scripts.
11248 SHELL=$lt_SHELL
11249
11250 # Whether or not to build shared libraries.
11251 build_libtool_libs=$enable_shared
11252
11253 # Whether or not to build static libraries.
11254 build_old_libs=$enable_static
11255
11256 # Whether or not to add -lc for building shared libraries.
11257 build_libtool_need_lc=$archive_cmds_need_lc_RC
11258
11259 # Whether or not to disallow shared libs when runtime libs are static
11260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11261
11262 # Whether or not to optimize for fast installation.
11263 fast_install=$enable_fast_install
11264
11265 # The host system.
11266 host_alias=$host_alias
11267 host=$host
11268 host_os=$host_os
11269
11270 # The build system.
11271 build_alias=$build_alias
11272 build=$build
11273 build_os=$build_os
11274
11275 # An echo program that does not interpret backslashes.
11276 echo=$lt_echo
11277
11278 # The archiver.
11279 AR=$lt_AR
11280 AR_FLAGS=$lt_AR_FLAGS
11281
11282 # A C compiler.
11283 LTCC=$lt_LTCC
11284
11285 # A language-specific compiler.
11286 CC=$lt_compiler_RC
11287
11288 # Is the compiler the GNU C compiler?
11289 with_gcc=$GCC_RC
11290
11291 # An ERE matcher.
11292 EGREP=$lt_EGREP
11293
11294 # The linker used to build libraries.
11295 LD=$lt_LD_RC
11296
11297 # Whether we need hard or soft links.
11298 LN_S=$lt_LN_S
11299
11300 # A BSD-compatible nm program.
11301 NM=$lt_NM
11302
11303 # A symbol stripping program
11304 STRIP=$lt_STRIP
11305
11306 # Used to examine libraries when file_magic_cmd begins "file"
11307 MAGIC_CMD=$MAGIC_CMD
11308
11309 # Used on cygwin: DLL creation program.
11310 DLLTOOL="$DLLTOOL"
11311
11312 # Used on cygwin: object dumper.
11313 OBJDUMP="$OBJDUMP"
11314
11315 # Used on cygwin: assembler.
11316 AS="$AS"
11317
11318 # The name of the directory that contains temporary libtool files.
11319 objdir=$objdir
11320
11321 # How to create reloadable object files.
11322 reload_flag=$lt_reload_flag
11323 reload_cmds=$lt_reload_cmds
11324
11325 # How to pass a linker flag through the compiler.
11326 wl=$lt_lt_prog_compiler_wl_RC
11327
11328 # Object file suffix (normally "o").
11329 objext="$ac_objext"
11330
11331 # Old archive suffix (normally "a").
11332 libext="$libext"
11333
11334 # Shared library suffix (normally ".so").
11335 shrext_cmds='$shrext_cmds'
11336
11337 # Executable file suffix (normally "").
11338 exeext="$exeext"
11339
11340 # Additional compiler flags for building library objects.
11341 pic_flag=$lt_lt_prog_compiler_pic_RC
11342 pic_mode=$pic_mode
11343
11344 # What is the maximum length of a command?
11345 max_cmd_len=$lt_cv_sys_max_cmd_len
11346
11347 # Does compiler simultaneously support -c and -o options?
11348 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11349
11350 # Must we lock files when doing compilation?
11351 need_locks=$lt_need_locks
11352
11353 # Do we need the lib prefix for modules?
11354 need_lib_prefix=$need_lib_prefix
11355
11356 # Do we need a version for libraries?
11357 need_version=$need_version
11358
11359 # Whether dlopen is supported.
11360 dlopen_support=$enable_dlopen
11361
11362 # Whether dlopen of programs is supported.
11363 dlopen_self=$enable_dlopen_self
11364
11365 # Whether dlopen of statically linked programs is supported.
11366 dlopen_self_static=$enable_dlopen_self_static
11367
11368 # Compiler flag to prevent dynamic linking.
11369 link_static_flag=$lt_lt_prog_compiler_static_RC
11370
11371 # Compiler flag to turn off builtin functions.
11372 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11373
11374 # Compiler flag to allow reflexive dlopens.
11375 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11376
11377 # Compiler flag to generate shared objects directly from archives.
11378 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11379
11380 # Compiler flag to generate thread-safe objects.
11381 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11382
11383 # Library versioning type.
11384 version_type=$version_type
11385
11386 # Format of library name prefix.
11387 libname_spec=$lt_libname_spec
11388
11389 # List of archive names.  First name is the real one, the rest are links.
11390 # The last name is the one that the linker finds with -lNAME.
11391 library_names_spec=$lt_library_names_spec
11392
11393 # The coded name of the library, if different from the real name.
11394 soname_spec=$lt_soname_spec
11395
11396 # Commands used to build and install an old-style archive.
11397 RANLIB=$lt_RANLIB
11398 old_archive_cmds=$lt_old_archive_cmds_RC
11399 old_postinstall_cmds=$lt_old_postinstall_cmds
11400 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11401
11402 # Create an old-style archive from a shared archive.
11403 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11404
11405 # Create a temporary old-style archive to link instead of a shared archive.
11406 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11407
11408 # Commands used to build and install a shared archive.
11409 archive_cmds=$lt_archive_cmds_RC
11410 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11411 postinstall_cmds=$lt_postinstall_cmds
11412 postuninstall_cmds=$lt_postuninstall_cmds
11413
11414 # Commands used to build a loadable module (assumed same as above if empty)
11415 module_cmds=$lt_module_cmds_RC
11416 module_expsym_cmds=$lt_module_expsym_cmds_RC
11417
11418 # Commands to strip libraries.
11419 old_striplib=$lt_old_striplib
11420 striplib=$lt_striplib
11421
11422 # Dependencies to place before the objects being linked to create a
11423 # shared library.
11424 predep_objects=$lt_predep_objects_RC
11425
11426 # Dependencies to place after the objects being linked to create a
11427 # shared library.
11428 postdep_objects=$lt_postdep_objects_RC
11429
11430 # Dependencies to place before the objects being linked to create a
11431 # shared library.
11432 predeps=$lt_predeps_RC
11433
11434 # Dependencies to place after the objects being linked to create a
11435 # shared library.
11436 postdeps=$lt_postdeps_RC
11437
11438 # The library search path used internally by the compiler when linking
11439 # a shared library.
11440 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11441
11442 # Method to check whether dependent libraries are shared objects.
11443 deplibs_check_method=$lt_deplibs_check_method
11444
11445 # Command to use when deplibs_check_method == file_magic.
11446 file_magic_cmd=$lt_file_magic_cmd
11447
11448 # Flag that allows shared libraries with undefined symbols to be built.
11449 allow_undefined_flag=$lt_allow_undefined_flag_RC
11450
11451 # Flag that forces no undefined symbols.
11452 no_undefined_flag=$lt_no_undefined_flag_RC
11453
11454 # Commands used to finish a libtool library installation in a directory.
11455 finish_cmds=$lt_finish_cmds
11456
11457 # Same as above, but a single script fragment to be evaled but not shown.
11458 finish_eval=$lt_finish_eval
11459
11460 # Take the output of nm and produce a listing of raw symbols and C names.
11461 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11462
11463 # Transform the output of nm in a proper C declaration
11464 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11465
11466 # Transform the output of nm in a C name address pair
11467 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11468
11469 # This is the shared library runtime path variable.
11470 runpath_var=$runpath_var
11471
11472 # This is the shared library path variable.
11473 shlibpath_var=$shlibpath_var
11474
11475 # Is shlibpath searched before the hard-coded library search path?
11476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11477
11478 # How to hardcode a shared library path into an executable.
11479 hardcode_action=$hardcode_action_RC
11480
11481 # Whether we should hardcode library paths into libraries.
11482 hardcode_into_libs=$hardcode_into_libs
11483
11484 # Flag to hardcode \$libdir into a binary during linking.
11485 # This must work even if \$libdir does not exist.
11486 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11487
11488 # If ld is used when linking, flag to hardcode \$libdir into
11489 # a binary during linking. This must work even if \$libdir does
11490 # not exist.
11491 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11492
11493 # Whether we need a single -rpath flag with a separated argument.
11494 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11495
11496 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11497 # resulting binary.
11498 hardcode_direct=$hardcode_direct_RC
11499
11500 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11501 # resulting binary.
11502 hardcode_minus_L=$hardcode_minus_L_RC
11503
11504 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11505 # the resulting binary.
11506 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11507
11508 # Set to yes if building a shared library automatically hardcodes DIR into the library
11509 # and all subsequent libraries and executables linked against it.
11510 hardcode_automatic=$hardcode_automatic_RC
11511
11512 # Variables whose values should be saved in libtool wrapper scripts and
11513 # restored at relink time.
11514 variables_saved_for_relink="$variables_saved_for_relink"
11515
11516 # Whether libtool must link a program against all its dependency libraries.
11517 link_all_deplibs=$link_all_deplibs_RC
11518
11519 # Compile-time system search path for libraries
11520 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11521
11522 # Run-time system search path for libraries
11523 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11524
11525 # Fix the shell variable \$srcfile for the compiler.
11526 fix_srcfile_path="$fix_srcfile_path_RC"
11527
11528 # Set to yes if exported symbols are required.
11529 always_export_symbols=$always_export_symbols_RC
11530
11531 # The commands to list exported symbols.
11532 export_symbols_cmds=$lt_export_symbols_cmds_RC
11533
11534 # The commands to extract the exported symbol list from a shared archive.
11535 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11536
11537 # Symbols that should not be listed in the preloaded symbols.
11538 exclude_expsyms=$lt_exclude_expsyms_RC
11539
11540 # Symbols that must always be exported.
11541 include_expsyms=$lt_include_expsyms_RC
11542
11543 # ### END LIBTOOL TAG CONFIG: $tagname
11544
11545 __EOF__
11546
11547
11548 else
11549   # If there is no Makefile yet, we rely on a make rule to execute
11550   # `config.status --recheck' to rerun these tests and create the
11551   # libtool script then.
11552   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11553   if test -f "$ltmain_in"; then
11554     test -f Makefile && make "$ltmain"
11555   fi
11556 fi
11557
11558
11559 ac_ext=c
11560 ac_cpp='$CPP $CPPFLAGS'
11561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11564
11565 CC="$lt_save_CC"
11566
11567         ;;
11568
11569       *)
11570         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11571 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11572    { (exit 1); exit 1; }; }
11573         ;;
11574       esac
11575
11576       # Append the new tag name to the list of available tags.
11577       if test -n "$tagname" ; then
11578       available_tags="$available_tags $tagname"
11579     fi
11580     fi
11581   done
11582   IFS="$lt_save_ifs"
11583
11584   # Now substitute the updated list of available tags.
11585   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11586     mv "${ofile}T" "$ofile"
11587     chmod +x "$ofile"
11588   else
11589     rm -f "${ofile}T"
11590     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11591 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11592    { (exit 1); exit 1; }; }
11593   fi
11594 fi
11595
11596
11597
11598 # This can be used to rebuild libtool when needed
11599 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11600
11601 # Always use our own libtool.
11602 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11603
11604 # Prevent multiple expansion
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615 ol_link_perl=no
11616 if test $ol_enable_perl != no ; then
11617         # Extract the first word of "perl", so it can be a program name with args.
11618 set dummy perl; ac_word=$2
11619 echo "$as_me:$LINENO: checking for $ac_word" >&5
11620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11621 if test "${ac_cv_path_PERLBIN+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   case $PERLBIN in
11625   [\\/]* | ?:[\\/]*)
11626   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11627   ;;
11628   *)
11629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11631 do
11632   IFS=$as_save_IFS
11633   test -z "$as_dir" && as_dir=.
11634   for ac_exec_ext in '' $ac_executable_extensions; do
11635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11636     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11638     break 2
11639   fi
11640 done
11641 done
11642
11643   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11644   ;;
11645 esac
11646 fi
11647 PERLBIN=$ac_cv_path_PERLBIN
11648
11649 if test -n "$PERLBIN"; then
11650   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11651 echo "${ECHO_T}$PERLBIN" >&6
11652 else
11653   echo "$as_me:$LINENO: result: no" >&5
11654 echo "${ECHO_T}no" >&6
11655 fi
11656
11657
11658         if test "no$PERLBIN" = "no" ; then
11659                 if test $ol_enable_perl = yes ; then
11660                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11661 echo "$as_me: error: could not locate perl" >&2;}
11662    { (exit 1); exit 1; }; }
11663                 fi
11664
11665         else
11666                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11667                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11668
11669                 if test x"$ol_enable_perl" = "xyes" ; then
11670                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11671                 else
11672                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11673                 fi
11674                                 ol_link_perl=yes
11675         fi
11676 fi
11677
11678 ac_ext=c
11679 ac_cpp='$CPP $CPPFLAGS'
11680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11684 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11685 # On Suns, sometimes $CPP names a directory.
11686 if test -n "$CPP" && test -d "$CPP"; then
11687   CPP=
11688 fi
11689 if test -z "$CPP"; then
11690   if test "${ac_cv_prog_CPP+set}" = set; then
11691   echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693       # Double quotes because CPP needs to be expanded
11694     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11695     do
11696       ac_preproc_ok=false
11697 for ac_c_preproc_warn_flag in '' yes
11698 do
11699   # Use a header file that comes with gcc, so configuring glibc
11700   # with a fresh cross-compiler works.
11701   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702   # <limits.h> exists even on freestanding compilers.
11703   # On the NeXT, cc -E runs the code through the compiler's parser,
11704   # not just through cpp. "Syntax error" is here to catch this case.
11705   cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h.  */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h.  */
11711 #ifdef __STDC__
11712 # include <limits.h>
11713 #else
11714 # include <assert.h>
11715 #endif
11716                      Syntax error
11717 _ACEOF
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } >/dev/null; then
11726   if test -s conftest.err; then
11727     ac_cpp_err=$ac_c_preproc_warn_flag
11728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11729   else
11730     ac_cpp_err=
11731   fi
11732 else
11733   ac_cpp_err=yes
11734 fi
11735 if test -z "$ac_cpp_err"; then
11736   :
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741   # Broken: fails on valid input.
11742 continue
11743 fi
11744 rm -f conftest.err conftest.$ac_ext
11745
11746   # OK, works on sane cases.  Now check whether non-existent headers
11747   # can be detected and how.
11748   cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h.  */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h.  */
11754 #include <ac_nonexistent.h>
11755 _ACEOF
11756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11758   ac_status=$?
11759   grep -v '^ *+' conftest.er1 >conftest.err
11760   rm -f conftest.er1
11761   cat conftest.err >&5
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); } >/dev/null; then
11764   if test -s conftest.err; then
11765     ac_cpp_err=$ac_c_preproc_warn_flag
11766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11767   else
11768     ac_cpp_err=
11769   fi
11770 else
11771   ac_cpp_err=yes
11772 fi
11773 if test -z "$ac_cpp_err"; then
11774   # Broken: success on invalid input.
11775 continue
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780   # Passes both tests.
11781 ac_preproc_ok=:
11782 break
11783 fi
11784 rm -f conftest.err conftest.$ac_ext
11785
11786 done
11787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11788 rm -f conftest.err conftest.$ac_ext
11789 if $ac_preproc_ok; then
11790   break
11791 fi
11792
11793     done
11794     ac_cv_prog_CPP=$CPP
11795
11796 fi
11797   CPP=$ac_cv_prog_CPP
11798 else
11799   ac_cv_prog_CPP=$CPP
11800 fi
11801 echo "$as_me:$LINENO: result: $CPP" >&5
11802 echo "${ECHO_T}$CPP" >&6
11803 ac_preproc_ok=false
11804 for ac_c_preproc_warn_flag in '' yes
11805 do
11806   # Use a header file that comes with gcc, so configuring glibc
11807   # with a fresh cross-compiler works.
11808   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809   # <limits.h> exists even on freestanding compilers.
11810   # On the NeXT, cc -E runs the code through the compiler's parser,
11811   # not just through cpp. "Syntax error" is here to catch this case.
11812   cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 #ifdef __STDC__
11819 # include <limits.h>
11820 #else
11821 # include <assert.h>
11822 #endif
11823                      Syntax error
11824 _ACEOF
11825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } >/dev/null; then
11833   if test -s conftest.err; then
11834     ac_cpp_err=$ac_c_preproc_warn_flag
11835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11836   else
11837     ac_cpp_err=
11838   fi
11839 else
11840   ac_cpp_err=yes
11841 fi
11842 if test -z "$ac_cpp_err"; then
11843   :
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848   # Broken: fails on valid input.
11849 continue
11850 fi
11851 rm -f conftest.err conftest.$ac_ext
11852
11853   # OK, works on sane cases.  Now check whether non-existent headers
11854   # can be detected and how.
11855   cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861 #include <ac_nonexistent.h>
11862 _ACEOF
11863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } >/dev/null; then
11871   if test -s conftest.err; then
11872     ac_cpp_err=$ac_c_preproc_warn_flag
11873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11874   else
11875     ac_cpp_err=
11876   fi
11877 else
11878   ac_cpp_err=yes
11879 fi
11880 if test -z "$ac_cpp_err"; then
11881   # Broken: success on invalid input.
11882 continue
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887   # Passes both tests.
11888 ac_preproc_ok=:
11889 break
11890 fi
11891 rm -f conftest.err conftest.$ac_ext
11892
11893 done
11894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11895 rm -f conftest.err conftest.$ac_ext
11896 if $ac_preproc_ok; then
11897   :
11898 else
11899   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11900 See \`config.log' for more details." >&5
11901 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11902 See \`config.log' for more details." >&2;}
11903    { (exit 1); exit 1; }; }
11904 fi
11905
11906 ac_ext=c
11907 ac_cpp='$CPP $CPPFLAGS'
11908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11911
11912
11913 case $host_os in
11914   *mingw32* ) ac_cv_mingw32=yes ;;
11915   *cygwin* ) ac_cv_cygwin=yes ;;
11916 esac
11917
11918
11919
11920
11921 cat >>confdefs.h <<_ACEOF
11922 #define EXEEXT "${EXEEXT}"
11923 _ACEOF
11924
11925
11926 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11927 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11928 if test "${ac_cv_lib_be_be_app+set}" = set; then
11929   echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931   ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-lbe -lroot -lnet $LIBS"
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939
11940 /* Override any gcc2 internal prototype to avoid an error.  */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 /* We use char because int might match the return type of a gcc2
11945    builtin and then its argument prototype would still apply.  */
11946 char be_app ();
11947 int
11948 main ()
11949 {
11950 be_app ();
11951   ;
11952   return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext conftest$ac_exeext
11956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957   (eval $ac_link) 2>conftest.er1
11958   ac_status=$?
11959   grep -v '^ *+' conftest.er1 >conftest.err
11960   rm -f conftest.er1
11961   cat conftest.err >&5
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } &&
11964          { ac_try='test -z "$ac_c_werror_flag"
11965                          || test ! -s conftest.err'
11966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967   (eval $ac_try) 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); }; } &&
11971          { ac_try='test -s conftest$ac_exeext'
11972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973   (eval $ac_try) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); }; }; then
11977   ac_cv_lib_be_be_app=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 ac_cv_lib_be_be_app=no
11983 fi
11984 rm -f conftest.err conftest.$ac_objext \
11985       conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11989 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11990 if test $ac_cv_lib_be_be_app = yes; then
11991   LIBS="$LIBS -lbe -lroot -lnet"
11992 else
11993   :
11994 fi
11995
11996
11997 ac_ext=c
11998 ac_cpp='$CPP $CPPFLAGS'
11999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12002 if test -n "$ac_tool_prefix"; then
12003   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12005 echo "$as_me:$LINENO: checking for $ac_word" >&5
12006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12007 if test "${ac_cv_prog_CC+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   if test -n "$CC"; then
12011   ac_cv_prog_CC="$CC" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016   IFS=$as_save_IFS
12017   test -z "$as_dir" && as_dir=.
12018   for ac_exec_ext in '' $ac_executable_extensions; do
12019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12022     break 2
12023   fi
12024 done
12025 done
12026
12027 fi
12028 fi
12029 CC=$ac_cv_prog_CC
12030 if test -n "$CC"; then
12031   echo "$as_me:$LINENO: result: $CC" >&5
12032 echo "${ECHO_T}$CC" >&6
12033 else
12034   echo "$as_me:$LINENO: result: no" >&5
12035 echo "${ECHO_T}no" >&6
12036 fi
12037
12038 fi
12039 if test -z "$ac_cv_prog_CC"; then
12040   ac_ct_CC=$CC
12041   # Extract the first word of "gcc", so it can be a program name with args.
12042 set dummy gcc; ac_word=$2
12043 echo "$as_me:$LINENO: checking for $ac_word" >&5
12044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12046   echo $ECHO_N "(cached) $ECHO_C" >&6
12047 else
12048   if test -n "$ac_ct_CC"; then
12049   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12050 else
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12053 do
12054   IFS=$as_save_IFS
12055   test -z "$as_dir" && as_dir=.
12056   for ac_exec_ext in '' $ac_executable_extensions; do
12057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12058     ac_cv_prog_ac_ct_CC="gcc"
12059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12060     break 2
12061   fi
12062 done
12063 done
12064
12065 fi
12066 fi
12067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12068 if test -n "$ac_ct_CC"; then
12069   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12070 echo "${ECHO_T}$ac_ct_CC" >&6
12071 else
12072   echo "$as_me:$LINENO: result: no" >&5
12073 echo "${ECHO_T}no" >&6
12074 fi
12075
12076   CC=$ac_ct_CC
12077 else
12078   CC="$ac_cv_prog_CC"
12079 fi
12080
12081 if test -z "$CC"; then
12082   if test -n "$ac_tool_prefix"; then
12083   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12084 set dummy ${ac_tool_prefix}cc; ac_word=$2
12085 echo "$as_me:$LINENO: checking for $ac_word" >&5
12086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12087 if test "${ac_cv_prog_CC+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   if test -n "$CC"; then
12091   ac_cv_prog_CC="$CC" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098   for ac_exec_ext in '' $ac_executable_extensions; do
12099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100     ac_cv_prog_CC="${ac_tool_prefix}cc"
12101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105 done
12106
12107 fi
12108 fi
12109 CC=$ac_cv_prog_CC
12110 if test -n "$CC"; then
12111   echo "$as_me:$LINENO: result: $CC" >&5
12112 echo "${ECHO_T}$CC" >&6
12113 else
12114   echo "$as_me:$LINENO: result: no" >&5
12115 echo "${ECHO_T}no" >&6
12116 fi
12117
12118 fi
12119 if test -z "$ac_cv_prog_CC"; then
12120   ac_ct_CC=$CC
12121   # Extract the first word of "cc", so it can be a program name with args.
12122 set dummy cc; ac_word=$2
12123 echo "$as_me:$LINENO: checking for $ac_word" >&5
12124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   if test -n "$ac_ct_CC"; then
12129   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12130 else
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12133 do
12134   IFS=$as_save_IFS
12135   test -z "$as_dir" && as_dir=.
12136   for ac_exec_ext in '' $ac_executable_extensions; do
12137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138     ac_cv_prog_ac_ct_CC="cc"
12139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12140     break 2
12141   fi
12142 done
12143 done
12144
12145 fi
12146 fi
12147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12148 if test -n "$ac_ct_CC"; then
12149   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12150 echo "${ECHO_T}$ac_ct_CC" >&6
12151 else
12152   echo "$as_me:$LINENO: result: no" >&5
12153 echo "${ECHO_T}no" >&6
12154 fi
12155
12156   CC=$ac_ct_CC
12157 else
12158   CC="$ac_cv_prog_CC"
12159 fi
12160
12161 fi
12162 if test -z "$CC"; then
12163   # Extract the first word of "cc", so it can be a program name with args.
12164 set dummy cc; ac_word=$2
12165 echo "$as_me:$LINENO: checking for $ac_word" >&5
12166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12167 if test "${ac_cv_prog_CC+set}" = set; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170   if test -n "$CC"; then
12171   ac_cv_prog_CC="$CC" # Let the user override the test.
12172 else
12173   ac_prog_rejected=no
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 for as_dir in $PATH
12176 do
12177   IFS=$as_save_IFS
12178   test -z "$as_dir" && as_dir=.
12179   for ac_exec_ext in '' $ac_executable_extensions; do
12180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12181     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12182        ac_prog_rejected=yes
12183        continue
12184      fi
12185     ac_cv_prog_CC="cc"
12186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12187     break 2
12188   fi
12189 done
12190 done
12191
12192 if test $ac_prog_rejected = yes; then
12193   # We found a bogon in the path, so make sure we never use it.
12194   set dummy $ac_cv_prog_CC
12195   shift
12196   if test $# != 0; then
12197     # We chose a different compiler from the bogus one.
12198     # However, it has the same basename, so the bogon will be chosen
12199     # first if we set CC to just the basename; use the full file name.
12200     shift
12201     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12202   fi
12203 fi
12204 fi
12205 fi
12206 CC=$ac_cv_prog_CC
12207 if test -n "$CC"; then
12208   echo "$as_me:$LINENO: result: $CC" >&5
12209 echo "${ECHO_T}$CC" >&6
12210 else
12211   echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6
12213 fi
12214
12215 fi
12216 if test -z "$CC"; then
12217   if test -n "$ac_tool_prefix"; then
12218   for ac_prog in cl
12219   do
12220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12222 echo "$as_me:$LINENO: checking for $ac_word" >&5
12223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12224 if test "${ac_cv_prog_CC+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   if test -n "$CC"; then
12228   ac_cv_prog_CC="$CC" # Let the user override the test.
12229 else
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12232 do
12233   IFS=$as_save_IFS
12234   test -z "$as_dir" && as_dir=.
12235   for ac_exec_ext in '' $ac_executable_extensions; do
12236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12239     break 2
12240   fi
12241 done
12242 done
12243
12244 fi
12245 fi
12246 CC=$ac_cv_prog_CC
12247 if test -n "$CC"; then
12248   echo "$as_me:$LINENO: result: $CC" >&5
12249 echo "${ECHO_T}$CC" >&6
12250 else
12251   echo "$as_me:$LINENO: result: no" >&5
12252 echo "${ECHO_T}no" >&6
12253 fi
12254
12255     test -n "$CC" && break
12256   done
12257 fi
12258 if test -z "$CC"; then
12259   ac_ct_CC=$CC
12260   for ac_prog in cl
12261 do
12262   # Extract the first word of "$ac_prog", so it can be a program name with args.
12263 set dummy $ac_prog; ac_word=$2
12264 echo "$as_me:$LINENO: checking for $ac_word" >&5
12265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12267   echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269   if test -n "$ac_ct_CC"; then
12270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12271 else
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12274 do
12275   IFS=$as_save_IFS
12276   test -z "$as_dir" && as_dir=.
12277   for ac_exec_ext in '' $ac_executable_extensions; do
12278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279     ac_cv_prog_ac_ct_CC="$ac_prog"
12280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12281     break 2
12282   fi
12283 done
12284 done
12285
12286 fi
12287 fi
12288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12289 if test -n "$ac_ct_CC"; then
12290   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12291 echo "${ECHO_T}$ac_ct_CC" >&6
12292 else
12293   echo "$as_me:$LINENO: result: no" >&5
12294 echo "${ECHO_T}no" >&6
12295 fi
12296
12297   test -n "$ac_ct_CC" && break
12298 done
12299
12300   CC=$ac_ct_CC
12301 fi
12302
12303 fi
12304
12305
12306 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12307 See \`config.log' for more details." >&5
12308 echo "$as_me: error: no acceptable C compiler found in \$PATH
12309 See \`config.log' for more details." >&2;}
12310    { (exit 1); exit 1; }; }
12311
12312 # Provide some information about the compiler.
12313 echo "$as_me:$LINENO:" \
12314      "checking for C compiler version" >&5
12315 ac_compiler=`set X $ac_compile; echo $2`
12316 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12317   (eval $ac_compiler --version </dev/null >&5) 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }
12321 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12322   (eval $ac_compiler -v </dev/null >&5) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }
12326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12327   (eval $ac_compiler -V </dev/null >&5) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }
12331
12332 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12333 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12334 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343
12344 int
12345 main ()
12346 {
12347 #ifndef __GNUC__
12348        choke me
12349 #endif
12350
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12357   (eval $ac_compile) 2>conftest.er1
12358   ac_status=$?
12359   grep -v '^ *+' conftest.er1 >conftest.err
12360   rm -f conftest.er1
12361   cat conftest.err >&5
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -z "$ac_c_werror_flag"
12365                          || test ! -s conftest.err'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; } &&
12371          { ac_try='test -s conftest.$ac_objext'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_compiler_gnu=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_compiler_gnu=no
12383 fi
12384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12386
12387 fi
12388 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12389 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12390 GCC=`test $ac_compiler_gnu = yes && echo yes`
12391 ac_test_CFLAGS=${CFLAGS+set}
12392 ac_save_CFLAGS=$CFLAGS
12393 CFLAGS="-g"
12394 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12395 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12396 if test "${ac_cv_prog_cc_g+set}" = set; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405
12406 int
12407 main ()
12408 {
12409
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 rm -f conftest.$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416   (eval $ac_compile) 2>conftest.er1
12417   ac_status=$?
12418   grep -v '^ *+' conftest.er1 >conftest.err
12419   rm -f conftest.er1
12420   cat conftest.err >&5
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); } &&
12423          { ac_try='test -z "$ac_c_werror_flag"
12424                          || test ! -s conftest.err'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; } &&
12430          { ac_try='test -s conftest.$ac_objext'
12431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432   (eval $ac_try) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; }; then
12436   ac_cv_prog_cc_g=yes
12437 else
12438   echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ac_cv_prog_cc_g=no
12442 fi
12443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12444 fi
12445 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12446 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12447 if test "$ac_test_CFLAGS" = set; then
12448   CFLAGS=$ac_save_CFLAGS
12449 elif test $ac_cv_prog_cc_g = yes; then
12450   if test "$GCC" = yes; then
12451     CFLAGS="-g -O2"
12452   else
12453     CFLAGS="-g"
12454   fi
12455 else
12456   if test "$GCC" = yes; then
12457     CFLAGS="-O2"
12458   else
12459     CFLAGS=
12460   fi
12461 fi
12462 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12463 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12464 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   ac_cv_prog_cc_stdc=no
12468 ac_save_CC=$CC
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h.  */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h.  */
12475 #include <stdarg.h>
12476 #include <stdio.h>
12477 #include <sys/types.h>
12478 #include <sys/stat.h>
12479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12480 struct buf { int x; };
12481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12482 static char *e (p, i)
12483      char **p;
12484      int i;
12485 {
12486   return p[i];
12487 }
12488 static char *f (char * (*g) (char **, int), char **p, ...)
12489 {
12490   char *s;
12491   va_list v;
12492   va_start (v,p);
12493   s = g (p, va_arg (v,int));
12494   va_end (v);
12495   return s;
12496 }
12497
12498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12499    function prototypes and stuff, but not '\xHH' hex character constants.
12500    These don't provoke an error unfortunately, instead are silently treated
12501    as 'x'.  The following induces an error, until -std1 is added to get
12502    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12503    array size at least.  It's necessary to write '\x00'==0 to get something
12504    that's true only with -std1.  */
12505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12506
12507 int test (int i, double x);
12508 struct s1 {int (*f) (int a);};
12509 struct s2 {int (*f) (double a);};
12510 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12511 int argc;
12512 char **argv;
12513 int
12514 main ()
12515 {
12516 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 # Don't try gcc -ansi; that turns off useful extensions and
12522 # breaks some systems' header files.
12523 # AIX                   -qlanglvl=ansi
12524 # Ultrix and OSF/1      -std1
12525 # HP-UX 10.20 and later -Ae
12526 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12527 # SVR4                  -Xc -D__EXTENSIONS__
12528 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12529 do
12530   CC="$ac_save_CC $ac_arg"
12531   rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533   (eval $ac_compile) 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } &&
12540          { ac_try='test -z "$ac_c_werror_flag"
12541                          || test ! -s conftest.err'
12542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543   (eval $ac_try) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; } &&
12547          { ac_try='test -s conftest.$ac_objext'
12548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549   (eval $ac_try) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; }; then
12553   ac_cv_prog_cc_stdc=$ac_arg
12554 break
12555 else
12556   echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559 fi
12560 rm -f conftest.err conftest.$ac_objext
12561 done
12562 rm -f conftest.$ac_ext conftest.$ac_objext
12563 CC=$ac_save_CC
12564
12565 fi
12566
12567 case "x$ac_cv_prog_cc_stdc" in
12568   x|xno)
12569     echo "$as_me:$LINENO: result: none needed" >&5
12570 echo "${ECHO_T}none needed" >&6 ;;
12571   *)
12572     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12573 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12574     CC="$CC $ac_cv_prog_cc_stdc" ;;
12575 esac
12576
12577 # Some people use a C++ compiler to compile C.  Since we use `exit',
12578 # in C++ we need to declare it.  In case someone uses the same compiler
12579 # for both compiling C and C++ we need to have the C++ compiler decide
12580 # the declaration of exit, since it's the most demanding environment.
12581 cat >conftest.$ac_ext <<_ACEOF
12582 #ifndef __cplusplus
12583   choke me
12584 #endif
12585 _ACEOF
12586 rm -f conftest.$ac_objext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588   (eval $ac_compile) 2>conftest.er1
12589   ac_status=$?
12590   grep -v '^ *+' conftest.er1 >conftest.err
12591   rm -f conftest.er1
12592   cat conftest.err >&5
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } &&
12595          { ac_try='test -z "$ac_c_werror_flag"
12596                          || test ! -s conftest.err'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; } &&
12602          { ac_try='test -s conftest.$ac_objext'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; }; then
12608   for ac_declaration in \
12609    '' \
12610    'extern "C" void std::exit (int) throw (); using std::exit;' \
12611    'extern "C" void std::exit (int); using std::exit;' \
12612    'extern "C" void exit (int) throw ();' \
12613    'extern "C" void exit (int);' \
12614    'void exit (int);'
12615 do
12616   cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h.  */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h.  */
12622 $ac_declaration
12623 #include <stdlib.h>
12624 int
12625 main ()
12626 {
12627 exit (42);
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634   (eval $ac_compile) 2>conftest.er1
12635   ac_status=$?
12636   grep -v '^ *+' conftest.er1 >conftest.err
12637   rm -f conftest.er1
12638   cat conftest.err >&5
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } &&
12641          { ac_try='test -z "$ac_c_werror_flag"
12642                          || test ! -s conftest.err'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; } &&
12648          { ac_try='test -s conftest.$ac_objext'
12649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650   (eval $ac_try) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   :
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 continue
12660 fi
12661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662   cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h.  */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h.  */
12668 $ac_declaration
12669 int
12670 main ()
12671 {
12672 exit (42);
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12679   (eval $ac_compile) 2>conftest.er1
12680   ac_status=$?
12681   grep -v '^ *+' conftest.er1 >conftest.err
12682   rm -f conftest.er1
12683   cat conftest.err >&5
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); } &&
12686          { ac_try='test -z "$ac_c_werror_flag"
12687                          || test ! -s conftest.err'
12688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689   (eval $ac_try) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; } &&
12693          { ac_try='test -s conftest.$ac_objext'
12694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695   (eval $ac_try) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }; }; then
12699   break
12700 else
12701   echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 fi
12705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706 done
12707 rm -f conftest*
12708 if test -n "$ac_declaration"; then
12709   echo '#ifdef __cplusplus' >>confdefs.h
12710   echo $ac_declaration      >>confdefs.h
12711   echo '#endif'             >>confdefs.h
12712 fi
12713
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 fi
12719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12720 ac_ext=c
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725
12726 depcc="$CC"   am_compiler_list=
12727
12728 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12729 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12730 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12731   echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12734   # We make a subdir and do the tests there.  Otherwise we can end up
12735   # making bogus files that we don't know about and never remove.  For
12736   # instance it was reported that on HP-UX the gcc test will end up
12737   # making a dummy file named `D' -- because `-MD' means `put the output
12738   # in D'.
12739   mkdir conftest.dir
12740   # Copy depcomp to subdir because otherwise we won't find it if we're
12741   # using a relative directory.
12742   cp "$am_depcomp" conftest.dir
12743   cd conftest.dir
12744   # We will build objects and dependencies in a subdirectory because
12745   # it helps to detect inapplicable dependency modes.  For instance
12746   # both Tru64's cc and ICC support -MD to output dependencies as a
12747   # side effect of compilation, but ICC will put the dependencies in
12748   # the current directory while Tru64 will put them in the object
12749   # directory.
12750   mkdir sub
12751
12752   am_cv_CC_dependencies_compiler_type=none
12753   if test "$am_compiler_list" = ""; then
12754      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12755   fi
12756   for depmode in $am_compiler_list; do
12757     # Setup a source with many dependencies, because some compilers
12758     # like to wrap large dependency lists on column 80 (with \), and
12759     # we should not choose a depcomp mode which is confused by this.
12760     #
12761     # We need to recreate these files for each test, as the compiler may
12762     # overwrite some of them when testing with obscure command lines.
12763     # This happens at least with the AIX C compiler.
12764     : > sub/conftest.c
12765     for i in 1 2 3 4 5 6; do
12766       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12767       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12768       # Solaris 8's {/usr,}/bin/sh.
12769       touch sub/conftst$i.h
12770     done
12771     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12772
12773     case $depmode in
12774     nosideeffect)
12775       # after this tag, mechanisms are not by side-effect, so they'll
12776       # only be used when explicitly requested
12777       if test "x$enable_dependency_tracking" = xyes; then
12778         continue
12779       else
12780         break
12781       fi
12782       ;;
12783     none) break ;;
12784     esac
12785     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12786     # mode.  It turns out that the SunPro C++ compiler does not properly
12787     # handle `-M -o', and we need to detect this.
12788     if depmode=$depmode \
12789        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12790        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12791        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12792          >/dev/null 2>conftest.err &&
12793        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12794        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12795        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12796       # icc doesn't choke on unknown options, it will just issue warnings
12797       # or remarks (even with -Werror).  So we grep stderr for any message
12798       # that says an option was ignored or not supported.
12799       # When given -MP, icc 7.0 and 7.1 complain thusly:
12800       #   icc: Command line warning: ignoring option '-M'; no argument required
12801       # The diagnosis changed in icc 8.0:
12802       #   icc: Command line remark: option '-MP' not supported
12803       if (grep 'ignoring option' conftest.err ||
12804           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12805         am_cv_CC_dependencies_compiler_type=$depmode
12806         break
12807       fi
12808     fi
12809   done
12810
12811   cd ..
12812   rm -rf conftest.dir
12813 else
12814   am_cv_CC_dependencies_compiler_type=none
12815 fi
12816
12817 fi
12818 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12819 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12821
12822
12823
12824 if
12825   test "x$enable_dependency_tracking" != xno \
12826   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12827   am__fastdepCC_TRUE=
12828   am__fastdepCC_FALSE='#'
12829 else
12830   am__fastdepCC_TRUE='#'
12831   am__fastdepCC_FALSE=
12832 fi
12833
12834
12835 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12836         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12837 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12838    { (exit 1); exit 1; }; }
12839 fi
12840
12841 # test for make depend flag
12842 OL_MKDEP=
12843 OL_MKDEP_FLAGS=
12844 if test -z "${MKDEP}"; then
12845         OL_MKDEP="${CC-cc}"
12846         if test -z "${MKDEP_FLAGS}"; then
12847                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12848 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12849 if test "${ol_cv_mkdep+set}" = set; then
12850   echo $ECHO_N "(cached) $ECHO_C" >&6
12851 else
12852
12853                         ol_cv_mkdep=no
12854                         for flag in "-M" "-xM"; do
12855                                 cat > conftest.c <<EOF
12856  noCode;
12857 EOF
12858                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860   (eval $ac_try) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; } \
12864                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12865                                 then
12866                                         if test ! -f conftest."${ac_object}" ; then
12867                                                 ol_cv_mkdep=$flag
12868                                                 OL_MKDEP_FLAGS="$flag"
12869                                                 break
12870                                         fi
12871                                 fi
12872                         done
12873                         rm -f conftest*
12874
12875 fi
12876 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12877 echo "${ECHO_T}$ol_cv_mkdep" >&6
12878         else
12879                 cc_cv_mkdep=yes
12880                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12881         fi
12882 else
12883         cc_cv_mkdep=yes
12884         OL_MKDEP="${MKDEP}"
12885         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12886 fi
12887
12888
12889
12890 if test "${ol_cv_mkdep}" = no ; then
12891         # this will soon become an error
12892         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12893 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12894 fi
12895
12896 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12897 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12898 if test "${ac_cv_lib_s_afopen+set}" = set; then
12899   echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901   ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-ls  $LIBS"
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h.  */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h.  */
12909
12910 /* Override any gcc2 internal prototype to avoid an error.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 /* We use char because int might match the return type of a gcc2
12915    builtin and then its argument prototype would still apply.  */
12916 char afopen ();
12917 int
12918 main ()
12919 {
12920 afopen ();
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927   (eval $ac_link) 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } &&
12934          { ac_try='test -z "$ac_c_werror_flag"
12935                          || test ! -s conftest.err'
12936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937   (eval $ac_try) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); }; } &&
12941          { ac_try='test -s conftest$ac_exeext'
12942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943   (eval $ac_try) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   ac_cv_lib_s_afopen=yes
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 ac_cv_lib_s_afopen=no
12953 fi
12954 rm -f conftest.err conftest.$ac_objext \
12955       conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12957 fi
12958 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12959 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12960 if test $ac_cv_lib_s_afopen = yes; then
12961
12962         AUTH_LIBS=-ls
12963
12964 cat >>confdefs.h <<\_ACEOF
12965 #define HAVE_AIX_SECURITY 1
12966 _ACEOF
12967
12968
12969 fi
12970
12971
12972 case "$target" in
12973 *-ibm-openedition)
12974         ac_cv_func_getopt=no
12975
12976 cat >>confdefs.h <<\_ACEOF
12977 #define BOTH_STRINGS_H 1
12978 _ACEOF
12979
12980         ;;
12981 esac
12982
12983 ol_link_modules=no
12984 WITH_MODULES_ENABLED=no
12985 if test $ol_enable_modules != no ; then
12986
12987 for ac_header in ltdl.h
12988 do
12989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12991   echo "$as_me:$LINENO: checking for $ac_header" >&5
12992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12994   echo $ECHO_N "(cached) $ECHO_C" >&6
12995 fi
12996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12998 else
12999   # Is the header compilable?
13000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h.  */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h.  */
13008 $ac_includes_default
13009 #include <$ac_header>
13010 _ACEOF
13011 rm -f conftest.$ac_objext
13012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013   (eval $ac_compile) 2>conftest.er1
13014   ac_status=$?
13015   grep -v '^ *+' conftest.er1 >conftest.err
13016   rm -f conftest.er1
13017   cat conftest.err >&5
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); } &&
13020          { ac_try='test -z "$ac_c_werror_flag"
13021                          || test ! -s conftest.err'
13022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023   (eval $ac_try) 2>&5
13024   ac_status=$?
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); }; } &&
13027          { ac_try='test -s conftest.$ac_objext'
13028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029   (eval $ac_try) 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); }; }; then
13033   ac_header_compiler=yes
13034 else
13035   echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13037
13038 ac_header_compiler=no
13039 fi
13040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13042 echo "${ECHO_T}$ac_header_compiler" >&6
13043
13044 # Is the header present?
13045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053 #include <$ac_header>
13054 _ACEOF
13055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13057   ac_status=$?
13058   grep -v '^ *+' conftest.er1 >conftest.err
13059   rm -f conftest.er1
13060   cat conftest.err >&5
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); } >/dev/null; then
13063   if test -s conftest.err; then
13064     ac_cpp_err=$ac_c_preproc_warn_flag
13065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13066   else
13067     ac_cpp_err=
13068   fi
13069 else
13070   ac_cpp_err=yes
13071 fi
13072 if test -z "$ac_cpp_err"; then
13073   ac_header_preproc=yes
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078   ac_header_preproc=no
13079 fi
13080 rm -f conftest.err conftest.$ac_ext
13081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13082 echo "${ECHO_T}$ac_header_preproc" >&6
13083
13084 # So?  What about this header?
13085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13086   yes:no: )
13087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13091     ac_header_preproc=yes
13092     ;;
13093   no:yes:* )
13094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13106     (
13107       cat <<\_ASBOX
13108 ## --------------------------------------------- ##
13109 ## Report this to <http://www.openldap.org/its/> ##
13110 ## --------------------------------------------- ##
13111 _ASBOX
13112     ) |
13113       sed "s/^/$as_me: WARNING:     /" >&2
13114     ;;
13115 esac
13116 echo "$as_me:$LINENO: checking for $ac_header" >&5
13117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13119   echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121   eval "$as_ac_Header=\$ac_header_preproc"
13122 fi
13123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13125
13126 fi
13127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13128   cat >>confdefs.h <<_ACEOF
13129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13130 _ACEOF
13131
13132 fi
13133
13134 done
13135
13136
13137         if test $ac_cv_header_ltdl_h = no ; then
13138                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13139 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13140    { (exit 1); exit 1; }; }
13141         fi
13142
13143         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13144 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13145 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13146   echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148   ac_check_lib_save_LIBS=$LIBS
13149 LIBS="-lltdl  $LIBS"
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156
13157 /* Override any gcc2 internal prototype to avoid an error.  */
13158 #ifdef __cplusplus
13159 extern "C"
13160 #endif
13161 /* We use char because int might match the return type of a gcc2
13162    builtin and then its argument prototype would still apply.  */
13163 char lt_dlinit ();
13164 int
13165 main ()
13166 {
13167 lt_dlinit ();
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174   (eval $ac_link) 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } &&
13181          { ac_try='test -z "$ac_c_werror_flag"
13182                          || test ! -s conftest.err'
13183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184   (eval $ac_try) 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }; } &&
13188          { ac_try='test -s conftest$ac_exeext'
13189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190   (eval $ac_try) 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   ac_cv_lib_ltdl_lt_dlinit=yes
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 ac_cv_lib_ltdl_lt_dlinit=no
13200 fi
13201 rm -f conftest.err conftest.$ac_objext \
13202       conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13204 fi
13205 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13206 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13207 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13208
13209                 MODULES_LIBS=-lltdl
13210
13211 cat >>confdefs.h <<\_ACEOF
13212 #define HAVE_LIBLTDL 1
13213 _ACEOF
13214
13215
13216 fi
13217
13218
13219         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13220                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13221 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13222    { (exit 1); exit 1; }; }
13223         fi
13224         ol_link_modules=yes
13225         WITH_MODULES_ENABLED=yes
13226
13227 else
13228         for i in $Backends; do
13229                 eval "ol_tmp=\$ol_enable_$i"
13230                 if test $ol_tmp = mod ; then
13231                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13232 echo "$as_me: WARNING: building static $i backend" >&2;}
13233                         eval "ol_enable_$i=yes"
13234                 fi
13235         done
13236         for i in $Overlays; do
13237                 eval "ol_tmp=\$ol_enable_$i"
13238                 if test $ol_tmp = mod ; then
13239                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13240 echo "$as_me: WARNING: building static $i overlay" >&2;}
13241                         eval "ol_enable_$i=yes"
13242                 fi
13243         done
13244 fi
13245
13246 # test for EBCDIC
13247 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13248 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13249 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13250   echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252
13253         cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259
13260 #if !('M' == 0xd4)
13261 #include <__ASCII__/generate_error.h>
13262 #endif
13263
13264 _ACEOF
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } >/dev/null; then
13273   if test -s conftest.err; then
13274     ac_cpp_err=$ac_c_preproc_warn_flag
13275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13276   else
13277     ac_cpp_err=
13278   fi
13279 else
13280   ac_cpp_err=yes
13281 fi
13282 if test -z "$ac_cpp_err"; then
13283   ol_cv_cpp_ebcdic=yes
13284 else
13285   echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288   ol_cv_cpp_ebcdic=no
13289 fi
13290 rm -f conftest.err conftest.$ac_ext
13291 fi
13292 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13293 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13294 if test $ol_cv_cpp_ebcdic = yes ; then
13295
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_EBCDIC 1
13298 _ACEOF
13299
13300 fi
13301
13302 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13303 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13304 if test "${ol_cv_header_stdc+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h.  */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h.  */
13313 #include <stdlib.h>
13314 #include <stdarg.h>
13315 #include <string.h>
13316 #include <float.h>
13317 _ACEOF
13318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13320   ac_status=$?
13321   grep -v '^ *+' conftest.er1 >conftest.err
13322   rm -f conftest.er1
13323   cat conftest.err >&5
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); } >/dev/null; then
13326   if test -s conftest.err; then
13327     ac_cpp_err=$ac_c_preproc_warn_flag
13328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13329   else
13330     ac_cpp_err=
13331   fi
13332 else
13333   ac_cpp_err=yes
13334 fi
13335 if test -z "$ac_cpp_err"; then
13336   ol_cv_header_stdc=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341   ol_cv_header_stdc=no
13342 fi
13343 rm -f conftest.err conftest.$ac_ext
13344
13345 if test $ol_cv_header_stdc = yes; then
13346   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h.  */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h.  */
13353 #include <string.h>
13354
13355 _ACEOF
13356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13357   $EGREP "memchr" >/dev/null 2>&1; then
13358   :
13359 else
13360   ol_cv_header_stdc=no
13361 fi
13362 rm -f conftest*
13363
13364 fi
13365
13366 if test $ol_cv_header_stdc = yes; then
13367   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374 #include <stdlib.h>
13375
13376 _ACEOF
13377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13378   $EGREP "free" >/dev/null 2>&1; then
13379   :
13380 else
13381   ol_cv_header_stdc=no
13382 fi
13383 rm -f conftest*
13384
13385 fi
13386
13387 if test $ol_cv_header_stdc = yes; then
13388   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13389 if test "$cross_compiling" = yes; then
13390   :
13391 else
13392   cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h.  */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h.  */
13398 #include <ctype.h>
13399 #ifndef HAVE_EBCDIC
13400 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13401 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13402 #else
13403 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13404                 || ('j' <= (c) && (c) <= 'r') \
13405                 || ('s' <= (c) && (c) <= 'z'))
13406 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13407 #endif
13408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13409 int main () { int i; for (i = 0; i < 256; i++)
13410 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13411 exit (0); }
13412
13413 _ACEOF
13414 rm -f conftest$ac_exeext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13416   (eval $ac_link) 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421   (eval $ac_try) 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); }; }; then
13425   :
13426 else
13427   echo "$as_me: program exited with status $ac_status" >&5
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431 ( exit $ac_status )
13432 ol_cv_header_stdc=no
13433 fi
13434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13435 fi
13436 fi
13437 fi
13438 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13439 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13440 if test $ol_cv_header_stdc = yes; then
13441   cat >>confdefs.h <<\_ACEOF
13442 #define STDC_HEADERS 1
13443 _ACEOF
13444
13445 fi
13446 ac_cv_header_stdc=disable
13447
13448
13449 if test $ol_cv_header_stdc != yes; then
13450         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13451 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13452 fi
13453
13454
13455
13456
13457
13458
13459 ac_header_dirent=no
13460 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13461   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13462 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13463 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h.  */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h.  */
13473 #include <sys/types.h>
13474 #include <$ac_hdr>
13475
13476 int
13477 main ()
13478 {
13479 if ((DIR *) 0)
13480 return 0;
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13487   (eval $ac_compile) 2>conftest.er1
13488   ac_status=$?
13489   grep -v '^ *+' conftest.er1 >conftest.err
13490   rm -f conftest.er1
13491   cat conftest.err >&5
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); } &&
13494          { ac_try='test -z "$ac_c_werror_flag"
13495                          || test ! -s conftest.err'
13496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497   (eval $ac_try) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; } &&
13501          { ac_try='test -s conftest.$ac_objext'
13502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503   (eval $ac_try) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }; }; then
13507   eval "$as_ac_Header=yes"
13508 else
13509   echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512 eval "$as_ac_Header=no"
13513 fi
13514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13515 fi
13516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519   cat >>confdefs.h <<_ACEOF
13520 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13521 _ACEOF
13522
13523 ac_header_dirent=$ac_hdr; break
13524 fi
13525
13526 done
13527 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13528 if test $ac_header_dirent = dirent.h; then
13529   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13531 if test "${ac_cv_search_opendir+set}" = set; then
13532   echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534   ac_func_search_save_LIBS=$LIBS
13535 ac_cv_search_opendir=no
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h.  */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h.  */
13542
13543 /* Override any gcc2 internal prototype to avoid an error.  */
13544 #ifdef __cplusplus
13545 extern "C"
13546 #endif
13547 /* We use char because int might match the return type of a gcc2
13548    builtin and then its argument prototype would still apply.  */
13549 char opendir ();
13550 int
13551 main ()
13552 {
13553 opendir ();
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13560   (eval $ac_link) 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } &&
13567          { ac_try='test -z "$ac_c_werror_flag"
13568                          || test ! -s conftest.err'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; } &&
13574          { ac_try='test -s conftest$ac_exeext'
13575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576   (eval $ac_try) 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; }; then
13580   ac_cv_search_opendir="none required"
13581 else
13582   echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585 fi
13586 rm -f conftest.err conftest.$ac_objext \
13587       conftest$ac_exeext conftest.$ac_ext
13588 if test "$ac_cv_search_opendir" = no; then
13589   for ac_lib in dir; do
13590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13591     cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h.  */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h.  */
13597
13598 /* Override any gcc2 internal prototype to avoid an error.  */
13599 #ifdef __cplusplus
13600 extern "C"
13601 #endif
13602 /* We use char because int might match the return type of a gcc2
13603    builtin and then its argument prototype would still apply.  */
13604 char opendir ();
13605 int
13606 main ()
13607 {
13608 opendir ();
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615   (eval $ac_link) 2>conftest.er1
13616   ac_status=$?
13617   grep -v '^ *+' conftest.er1 >conftest.err
13618   rm -f conftest.er1
13619   cat conftest.err >&5
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } &&
13622          { ac_try='test -z "$ac_c_werror_flag"
13623                          || test ! -s conftest.err'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest$ac_exeext'
13630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631   (eval $ac_try) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; }; then
13635   ac_cv_search_opendir="-l$ac_lib"
13636 break
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 fi
13642 rm -f conftest.err conftest.$ac_objext \
13643       conftest$ac_exeext conftest.$ac_ext
13644   done
13645 fi
13646 LIBS=$ac_func_search_save_LIBS
13647 fi
13648 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13649 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13650 if test "$ac_cv_search_opendir" != no; then
13651   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13652
13653 fi
13654
13655 else
13656   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13658 if test "${ac_cv_search_opendir+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   ac_func_search_save_LIBS=$LIBS
13662 ac_cv_search_opendir=no
13663 cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669
13670 /* Override any gcc2 internal prototype to avoid an error.  */
13671 #ifdef __cplusplus
13672 extern "C"
13673 #endif
13674 /* We use char because int might match the return type of a gcc2
13675    builtin and then its argument prototype would still apply.  */
13676 char opendir ();
13677 int
13678 main ()
13679 {
13680 opendir ();
13681   ;
13682   return 0;
13683 }
13684 _ACEOF
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13687   (eval $ac_link) 2>conftest.er1
13688   ac_status=$?
13689   grep -v '^ *+' conftest.er1 >conftest.err
13690   rm -f conftest.er1
13691   cat conftest.err >&5
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); } &&
13694          { ac_try='test -z "$ac_c_werror_flag"
13695                          || test ! -s conftest.err'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; } &&
13701          { ac_try='test -s conftest$ac_exeext'
13702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703   (eval $ac_try) 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); }; }; then
13707   ac_cv_search_opendir="none required"
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712 fi
13713 rm -f conftest.err conftest.$ac_objext \
13714       conftest$ac_exeext conftest.$ac_ext
13715 if test "$ac_cv_search_opendir" = no; then
13716   for ac_lib in x; do
13717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13718     cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h.  */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h.  */
13724
13725 /* Override any gcc2 internal prototype to avoid an error.  */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 /* We use char because int might match the return type of a gcc2
13730    builtin and then its argument prototype would still apply.  */
13731 char opendir ();
13732 int
13733 main ()
13734 {
13735 opendir ();
13736   ;
13737   return 0;
13738 }
13739 _ACEOF
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13742   (eval $ac_link) 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_c_werror_flag"
13750                          || test ! -s conftest.err'
13751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752   (eval $ac_try) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; } &&
13756          { ac_try='test -s conftest$ac_exeext'
13757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758   (eval $ac_try) 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; }; then
13762   ac_cv_search_opendir="-l$ac_lib"
13763 break
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13767
13768 fi
13769 rm -f conftest.err conftest.$ac_objext \
13770       conftest$ac_exeext conftest.$ac_ext
13771   done
13772 fi
13773 LIBS=$ac_func_search_save_LIBS
13774 fi
13775 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13776 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13777 if test "$ac_cv_search_opendir" != no; then
13778   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13779
13780 fi
13781
13782 fi
13783
13784 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13785 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13786 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 else
13789   cat >conftest.$ac_ext <<_ACEOF
13790 /* confdefs.h.  */
13791 _ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h.  */
13795 #include <sys/types.h>
13796 #include <sys/wait.h>
13797 #ifndef WEXITSTATUS
13798 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13799 #endif
13800 #ifndef WIFEXITED
13801 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13802 #endif
13803
13804 int
13805 main ()
13806 {
13807   int s;
13808   wait (&s);
13809   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816   (eval $ac_compile) 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag"
13824                          || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest.$ac_objext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_header_sys_wait_h=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_header_sys_wait_h=no
13842 fi
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13844 fi
13845 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13846 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13847 if test $ac_cv_header_sys_wait_h = yes; then
13848
13849 cat >>confdefs.h <<\_ACEOF
13850 #define HAVE_SYS_WAIT_H 1
13851 _ACEOF
13852
13853 fi
13854
13855 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13856 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13857 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13858   echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860   cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866 #include <sys/types.h>
13867 #include <termios.h>
13868 #ifdef TIOCGWINSZ
13869   yes
13870 #endif
13871
13872 _ACEOF
13873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13874   $EGREP "yes" >/dev/null 2>&1; then
13875   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13876 else
13877   ac_cv_sys_tiocgwinsz_in_termios_h=no
13878 fi
13879 rm -f conftest*
13880
13881 fi
13882 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13883 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13884
13885 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13886   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13887 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13888 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13889   echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891   cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h.  */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h.  */
13897 #include <sys/types.h>
13898 #include <sys/ioctl.h>
13899 #ifdef TIOCGWINSZ
13900   yes
13901 #endif
13902
13903 _ACEOF
13904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13905   $EGREP "yes" >/dev/null 2>&1; then
13906   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13907 else
13908   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13909 fi
13910 rm -f conftest*
13911
13912 fi
13913 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13914 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13915
13916   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13917
13918 cat >>confdefs.h <<\_ACEOF
13919 #define GWINSZ_IN_SYS_IOCTL 1
13920 _ACEOF
13921
13922   fi
13923 fi
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972 for ac_header in \
13973         arpa/inet.h             \
13974         arpa/nameser.h  \
13975         assert.h                \
13976         bits/types.h    \
13977         conio.h                 \
13978         crypt.h                 \
13979         direct.h                \
13980         errno.h                 \
13981         fcntl.h                 \
13982         filio.h                 \
13983         getopt.h                \
13984         grp.h                   \
13985         io.h                    \
13986         libutil.h               \
13987         limits.h                \
13988         locale.h                \
13989         malloc.h                \
13990         memory.h                \
13991         psap.h                  \
13992         pwd.h                   \
13993         process.h               \
13994         sgtty.h                 \
13995         shadow.h                \
13996         stddef.h                \
13997         string.h                \
13998         strings.h               \
13999         sysexits.h              \
14000         sys/file.h              \
14001         sys/filio.h             \
14002         sys/errno.h             \
14003         sys/ioctl.h             \
14004         sys/param.h             \
14005         sys/resource.h  \
14006         sys/select.h    \
14007         sys/socket.h    \
14008         sys/stat.h              \
14009         sys/syslog.h    \
14010         sys/time.h              \
14011         sys/types.h             \
14012         sys/uio.h               \
14013         syslog.h                \
14014         termios.h               \
14015         unistd.h                \
14016         utime.h                 \
14017         winsock.h               \
14018         winsock2.h              \
14019
14020 do
14021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14023   echo "$as_me:$LINENO: checking for $ac_header" >&5
14024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14026   echo $ECHO_N "(cached) $ECHO_C" >&6
14027 fi
14028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14030 else
14031   # Is the header compilable?
14032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14034 cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h.  */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h.  */
14040 $ac_includes_default
14041 #include <$ac_header>
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045   (eval $ac_compile) 2>conftest.er1
14046   ac_status=$?
14047   grep -v '^ *+' conftest.er1 >conftest.err
14048   rm -f conftest.er1
14049   cat conftest.err >&5
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); } &&
14052          { ac_try='test -z "$ac_c_werror_flag"
14053                          || test ! -s conftest.err'
14054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055   (eval $ac_try) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; } &&
14059          { ac_try='test -s conftest.$ac_objext'
14060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061   (eval $ac_try) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; }; then
14065   ac_header_compiler=yes
14066 else
14067   echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070 ac_header_compiler=no
14071 fi
14072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14074 echo "${ECHO_T}$ac_header_compiler" >&6
14075
14076 # Is the header present?
14077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h.  */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h.  */
14085 #include <$ac_header>
14086 _ACEOF
14087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14089   ac_status=$?
14090   grep -v '^ *+' conftest.er1 >conftest.err
14091   rm -f conftest.er1
14092   cat conftest.err >&5
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } >/dev/null; then
14095   if test -s conftest.err; then
14096     ac_cpp_err=$ac_c_preproc_warn_flag
14097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14098   else
14099     ac_cpp_err=
14100   fi
14101 else
14102   ac_cpp_err=yes
14103 fi
14104 if test -z "$ac_cpp_err"; then
14105   ac_header_preproc=yes
14106 else
14107   echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14109
14110   ac_header_preproc=no
14111 fi
14112 rm -f conftest.err conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14114 echo "${ECHO_T}$ac_header_preproc" >&6
14115
14116 # So?  What about this header?
14117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14118   yes:no: )
14119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14123     ac_header_preproc=yes
14124     ;;
14125   no:yes:* )
14126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14138     (
14139       cat <<\_ASBOX
14140 ## --------------------------------------------- ##
14141 ## Report this to <http://www.openldap.org/its/> ##
14142 ## --------------------------------------------- ##
14143 _ASBOX
14144     ) |
14145       sed "s/^/$as_me: WARNING:     /" >&2
14146     ;;
14147 esac
14148 echo "$as_me:$LINENO: checking for $ac_header" >&5
14149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14151   echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153   eval "$as_ac_Header=\$ac_header_preproc"
14154 fi
14155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14157
14158 fi
14159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14160   cat >>confdefs.h <<_ACEOF
14161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14162 _ACEOF
14163
14164 fi
14165
14166 done
14167
14168
14169
14170 for ac_header in resolv.h
14171 do
14172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14173 echo "$as_me:$LINENO: checking for $ac_header" >&5
14174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14176   echo $ECHO_N "(cached) $ECHO_C" >&6
14177 else
14178   cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h.  */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h.  */
14184 $ac_includes_default
14185 #include <netinet/in.h>
14186
14187
14188 #include <$ac_header>
14189 _ACEOF
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192   (eval $ac_compile) 2>conftest.er1
14193   ac_status=$?
14194   grep -v '^ *+' conftest.er1 >conftest.err
14195   rm -f conftest.er1
14196   cat conftest.err >&5
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); } &&
14199          { ac_try='test -z "$ac_c_werror_flag"
14200                          || test ! -s conftest.err'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; } &&
14206          { ac_try='test -s conftest.$ac_objext'
14207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208   (eval $ac_try) 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; }; then
14212   eval "$as_ac_Header=yes"
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 eval "$as_ac_Header=no"
14218 fi
14219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14224   cat >>confdefs.h <<_ACEOF
14225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14226 _ACEOF
14227
14228 fi
14229
14230 done
14231
14232
14233
14234 for ac_header in netinet/tcp.h
14235 do
14236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14237 echo "$as_me:$LINENO: checking for $ac_header" >&5
14238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   cat >conftest.$ac_ext <<_ACEOF
14243 /* confdefs.h.  */
14244 _ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h.  */
14248 $ac_includes_default
14249 #include <netinet/in.h>
14250
14251
14252 #include <$ac_header>
14253 _ACEOF
14254 rm -f conftest.$ac_objext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256   (eval $ac_compile) 2>conftest.er1
14257   ac_status=$?
14258   grep -v '^ *+' conftest.er1 >conftest.err
14259   rm -f conftest.er1
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } &&
14263          { ac_try='test -z "$ac_c_werror_flag"
14264                          || test ! -s conftest.err'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; } &&
14270          { ac_try='test -s conftest.$ac_objext'
14271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272   (eval $ac_try) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; }; then
14276   eval "$as_ac_Header=yes"
14277 else
14278   echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14280
14281 eval "$as_ac_Header=no"
14282 fi
14283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14284 fi
14285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14288   cat >>confdefs.h <<_ACEOF
14289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14290 _ACEOF
14291
14292 fi
14293
14294 done
14295
14296
14297
14298 for ac_header in sys/ucred.h
14299 do
14300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14301 echo "$as_me:$LINENO: checking for $ac_header" >&5
14302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 $ac_includes_default
14313 #ifdef HAVE_SYS_PARAM_H
14314 #include <sys/param.h>
14315 #endif
14316
14317
14318 #include <$ac_header>
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322   (eval $ac_compile) 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } &&
14329          { ac_try='test -z "$ac_c_werror_flag"
14330                          || test ! -s conftest.err'
14331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332   (eval $ac_try) 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; } &&
14336          { ac_try='test -s conftest.$ac_objext'
14337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338   (eval $ac_try) 2>&5
14339   ac_status=$?
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); }; }; then
14342   eval "$as_ac_Header=yes"
14343 else
14344   echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347 eval "$as_ac_Header=no"
14348 fi
14349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350 fi
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354   cat >>confdefs.h <<_ACEOF
14355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14356 _ACEOF
14357
14358 fi
14359
14360 done
14361
14362
14363
14364
14365
14366 for ac_func in sigaction sigset
14367 do
14368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 echo "$as_me:$LINENO: checking for $ac_func" >&5
14370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_var+set}\" = set"; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374   cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14382 #define $ac_func innocuous_$ac_func
14383
14384 /* System header to define __stub macros and hopefully few prototypes,
14385     which can conflict with char $ac_func (); below.
14386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14387     <limits.h> exists even on freestanding compilers.  */
14388
14389 #ifdef __STDC__
14390 # include <limits.h>
14391 #else
14392 # include <assert.h>
14393 #endif
14394
14395 #undef $ac_func
14396
14397 /* Override any gcc2 internal prototype to avoid an error.  */
14398 #ifdef __cplusplus
14399 extern "C"
14400 {
14401 #endif
14402 /* We use char because int might match the return type of a gcc2
14403    builtin and then its argument prototype would still apply.  */
14404 char $ac_func ();
14405 /* The GNU C library defines this for functions which it implements
14406     to always fail with ENOSYS.  Some functions are actually named
14407     something starting with __ and the normal name is an alias.  */
14408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14409 choke me
14410 #else
14411 char (*f) () = $ac_func;
14412 #endif
14413 #ifdef __cplusplus
14414 }
14415 #endif
14416
14417 int
14418 main ()
14419 {
14420 return f != $ac_func;
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427   (eval $ac_link) 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } &&
14434          { ac_try='test -z "$ac_c_werror_flag"
14435                          || test ! -s conftest.err'
14436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437   (eval $ac_try) 2>&5
14438   ac_status=$?
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); }; } &&
14441          { ac_try='test -s conftest$ac_exeext'
14442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443   (eval $ac_try) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }; then
14447   eval "$as_ac_var=yes"
14448 else
14449   echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 eval "$as_ac_var=no"
14453 fi
14454 rm -f conftest.err conftest.$ac_objext \
14455       conftest$ac_exeext conftest.$ac_ext
14456 fi
14457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14459 if test `eval echo '${'$as_ac_var'}'` = yes; then
14460   cat >>confdefs.h <<_ACEOF
14461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14462 _ACEOF
14463
14464 fi
14465 done
14466
14467
14468 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14469
14470 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14471 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14472 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14473   echo $ECHO_N "(cached) $ECHO_C" >&6
14474 else
14475   ac_check_lib_save_LIBS=$LIBS
14476 LIBS="-lV3  $LIBS"
14477 cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h.  */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h.  */
14483
14484 /* Override any gcc2 internal prototype to avoid an error.  */
14485 #ifdef __cplusplus
14486 extern "C"
14487 #endif
14488 /* We use char because int might match the return type of a gcc2
14489    builtin and then its argument prototype would still apply.  */
14490 char sigset ();
14491 int
14492 main ()
14493 {
14494 sigset ();
14495   ;
14496   return 0;
14497 }
14498 _ACEOF
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501   (eval $ac_link) 2>conftest.er1
14502   ac_status=$?
14503   grep -v '^ *+' conftest.er1 >conftest.err
14504   rm -f conftest.er1
14505   cat conftest.err >&5
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); } &&
14508          { ac_try='test -z "$ac_c_werror_flag"
14509                          || test ! -s conftest.err'
14510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511   (eval $ac_try) 2>&5
14512   ac_status=$?
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); }; } &&
14515          { ac_try='test -s conftest$ac_exeext'
14516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517   (eval $ac_try) 2>&5
14518   ac_status=$?
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); }; }; then
14521   ac_cv_lib_V3_sigset=yes
14522 else
14523   echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14525
14526 ac_cv_lib_V3_sigset=no
14527 fi
14528 rm -f conftest.err conftest.$ac_objext \
14529       conftest$ac_exeext conftest.$ac_ext
14530 LIBS=$ac_check_lib_save_LIBS
14531 fi
14532 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14533 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14534 if test $ac_cv_lib_V3_sigset = yes; then
14535   cat >>confdefs.h <<_ACEOF
14536 #define HAVE_LIBV3 1
14537 _ACEOF
14538
14539   LIBS="-lV3 $LIBS"
14540
14541 fi
14542
14543 fi
14544
14545 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14546 echo "$as_me:$LINENO: checking for winsock" >&5
14547 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14548 if test "${ol_cv_winsock+set}" = set; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551   save_LIBS="$LIBS"
14552 for curlib in ws2_32 wsock32; do
14553         LIBS="$LIBS -l$curlib"
14554         cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560 #include <winsock.h>
14561
14562 int
14563 main ()
14564 {
14565
14566                         socket(0,0,0);
14567                         select(0,NULL,NULL,NULL,NULL);
14568                         closesocket(0);
14569                         gethostname(NULL,0);
14570
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577   (eval $ac_link) 2>conftest.er1
14578   ac_status=$?
14579   grep -v '^ *+' conftest.er1 >conftest.err
14580   rm -f conftest.er1
14581   cat conftest.err >&5
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); } &&
14584          { ac_try='test -z "$ac_c_werror_flag"
14585                          || test ! -s conftest.err'
14586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587   (eval $ac_try) 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; } &&
14591          { ac_try='test -s conftest$ac_exeext'
14592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593   (eval $ac_try) 2>&5
14594   ac_status=$?
14595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596   (exit $ac_status); }; }; then
14597   ol_cv_winsock=yes
14598 else
14599   echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14601
14602 ol_cv_winsock=no
14603 fi
14604 rm -f conftest.err conftest.$ac_objext \
14605       conftest$ac_exeext conftest.$ac_ext
14606
14607         if test $ol_cv_winsock = yes; then
14608
14609 cat >>confdefs.h <<\_ACEOF
14610 #define HAVE_WINSOCK 1
14611 _ACEOF
14612
14613                 ac_cv_func_socket=yes
14614                 ac_cv_func_select=yes
14615                 ac_cv_func_closesocket=yes
14616                 ac_cv_func_gethostname=yes
14617                 if test $curlib = ws2_32; then
14618                         ol_cv_winsock=winsock2
14619
14620 cat >>confdefs.h <<\_ACEOF
14621 #define HAVE_WINSOCK2 1
14622 _ACEOF
14623
14624                 fi
14625                 break
14626         fi
14627         LIBS="$save_LIBS"
14628 done
14629 fi
14630 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14631 echo "${ECHO_T}$ol_cv_winsock" >&6
14632 fi
14633
14634
14635 echo "$as_me:$LINENO: checking for socket" >&5
14636 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14637 if test "${ac_cv_func_socket+set}" = set; then
14638   echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640   cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h.  */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h.  */
14646 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14648 #define socket innocuous_socket
14649
14650 /* System header to define __stub macros and hopefully few prototypes,
14651     which can conflict with char socket (); below.
14652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14653     <limits.h> exists even on freestanding compilers.  */
14654
14655 #ifdef __STDC__
14656 # include <limits.h>
14657 #else
14658 # include <assert.h>
14659 #endif
14660
14661 #undef socket
14662
14663 /* Override any gcc2 internal prototype to avoid an error.  */
14664 #ifdef __cplusplus
14665 extern "C"
14666 {
14667 #endif
14668 /* We use char because int might match the return type of a gcc2
14669    builtin and then its argument prototype would still apply.  */
14670 char socket ();
14671 /* The GNU C library defines this for functions which it implements
14672     to always fail with ENOSYS.  Some functions are actually named
14673     something starting with __ and the normal name is an alias.  */
14674 #if defined (__stub_socket) || defined (__stub___socket)
14675 choke me
14676 #else
14677 char (*f) () = socket;
14678 #endif
14679 #ifdef __cplusplus
14680 }
14681 #endif
14682
14683 int
14684 main ()
14685 {
14686 return f != socket;
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693   (eval $ac_link) 2>conftest.er1
14694   ac_status=$?
14695   grep -v '^ *+' conftest.er1 >conftest.err
14696   rm -f conftest.er1
14697   cat conftest.err >&5
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -z "$ac_c_werror_flag"
14701                          || test ! -s conftest.err'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; } &&
14707          { ac_try='test -s conftest$ac_exeext'
14708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709   (eval $ac_try) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; }; then
14713   ac_cv_func_socket=yes
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 ac_cv_func_socket=no
14719 fi
14720 rm -f conftest.err conftest.$ac_objext \
14721       conftest$ac_exeext conftest.$ac_ext
14722 fi
14723 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14724 echo "${ECHO_T}$ac_cv_func_socket" >&6
14725 if test $ac_cv_func_socket = yes; then
14726   :
14727 else
14728
14729
14730 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14731 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14732 if test "${ac_cv_lib_socket_main+set}" = set; then
14733   echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735   ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lsocket  $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h.  */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h.  */
14743
14744
14745 int
14746 main ()
14747 {
14748 main ();
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 rm -f conftest.$ac_objext conftest$ac_exeext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755   (eval $ac_link) 2>conftest.er1
14756   ac_status=$?
14757   grep -v '^ *+' conftest.er1 >conftest.err
14758   rm -f conftest.er1
14759   cat conftest.err >&5
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); } &&
14762          { ac_try='test -z "$ac_c_werror_flag"
14763                          || test ! -s conftest.err'
14764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765   (eval $ac_try) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; } &&
14769          { ac_try='test -s conftest$ac_exeext'
14770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771   (eval $ac_try) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; }; then
14775   ac_cv_lib_socket_main=yes
14776 else
14777   echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14779
14780 ac_cv_lib_socket_main=no
14781 fi
14782 rm -f conftest.err conftest.$ac_objext \
14783       conftest$ac_exeext conftest.$ac_ext
14784 LIBS=$ac_check_lib_save_LIBS
14785 fi
14786 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14787 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14788 if test $ac_cv_lib_socket_main = yes; then
14789   cat >>confdefs.h <<_ACEOF
14790 #define HAVE_LIBSOCKET 1
14791 _ACEOF
14792
14793   LIBS="-lsocket $LIBS"
14794
14795 fi
14796
14797
14798 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14799 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14800 if test "${ac_cv_lib_net_main+set}" = set; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   ac_check_lib_save_LIBS=$LIBS
14804 LIBS="-lnet  $LIBS"
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811
14812
14813 int
14814 main ()
14815 {
14816 main ();
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 rm -f conftest.$ac_objext conftest$ac_exeext
14822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14823   (eval $ac_link) 2>conftest.er1
14824   ac_status=$?
14825   grep -v '^ *+' conftest.er1 >conftest.err
14826   rm -f conftest.er1
14827   cat conftest.err >&5
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); } &&
14830          { ac_try='test -z "$ac_c_werror_flag"
14831                          || test ! -s conftest.err'
14832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833   (eval $ac_try) 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); }; } &&
14837          { ac_try='test -s conftest$ac_exeext'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843   ac_cv_lib_net_main=yes
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 ac_cv_lib_net_main=no
14849 fi
14850 rm -f conftest.err conftest.$ac_objext \
14851       conftest$ac_exeext conftest.$ac_ext
14852 LIBS=$ac_check_lib_save_LIBS
14853 fi
14854 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14855 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14856 if test $ac_cv_lib_net_main = yes; then
14857   cat >>confdefs.h <<_ACEOF
14858 #define HAVE_LIBNET 1
14859 _ACEOF
14860
14861   LIBS="-lnet $LIBS"
14862
14863 fi
14864
14865
14866 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14867 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14868 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   ac_check_lib_save_LIBS=$LIBS
14872 LIBS="-lnsl_s  $LIBS"
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h.  */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h.  */
14879
14880
14881 int
14882 main ()
14883 {
14884 main ();
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891   (eval $ac_link) 2>conftest.er1
14892   ac_status=$?
14893   grep -v '^ *+' conftest.er1 >conftest.err
14894   rm -f conftest.er1
14895   cat conftest.err >&5
14896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897   (exit $ac_status); } &&
14898          { ac_try='test -z "$ac_c_werror_flag"
14899                          || test ! -s conftest.err'
14900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901   (eval $ac_try) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; } &&
14905          { ac_try='test -s conftest$ac_exeext'
14906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907   (eval $ac_try) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); }; }; then
14911   ac_cv_lib_nsl_s_main=yes
14912 else
14913   echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916 ac_cv_lib_nsl_s_main=no
14917 fi
14918 rm -f conftest.err conftest.$ac_objext \
14919       conftest$ac_exeext conftest.$ac_ext
14920 LIBS=$ac_check_lib_save_LIBS
14921 fi
14922 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14923 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14924 if test $ac_cv_lib_nsl_s_main = yes; then
14925   cat >>confdefs.h <<_ACEOF
14926 #define HAVE_LIBNSL_S 1
14927 _ACEOF
14928
14929   LIBS="-lnsl_s $LIBS"
14930
14931 fi
14932
14933
14934 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14935 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14936 if test "${ac_cv_lib_nsl_main+set}" = set; then
14937   echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939   ac_check_lib_save_LIBS=$LIBS
14940 LIBS="-lnsl  $LIBS"
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947
14948
14949 int
14950 main ()
14951 {
14952 main ();
14953   ;
14954   return 0;
14955 }
14956 _ACEOF
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14959   (eval $ac_link) 2>conftest.er1
14960   ac_status=$?
14961   grep -v '^ *+' conftest.er1 >conftest.err
14962   rm -f conftest.er1
14963   cat conftest.err >&5
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } &&
14966          { ac_try='test -z "$ac_c_werror_flag"
14967                          || test ! -s conftest.err'
14968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969   (eval $ac_try) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; } &&
14973          { ac_try='test -s conftest$ac_exeext'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; }; then
14979   ac_cv_lib_nsl_main=yes
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 ac_cv_lib_nsl_main=no
14985 fi
14986 rm -f conftest.err conftest.$ac_objext \
14987       conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14989 fi
14990 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14991 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14992 if test $ac_cv_lib_nsl_main = yes; then
14993   cat >>confdefs.h <<_ACEOF
14994 #define HAVE_LIBNSL 1
14995 _ACEOF
14996
14997   LIBS="-lnsl $LIBS"
14998
14999 fi
15000
15001
15002 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15003 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15004 if test "${ac_cv_lib_inet_socket+set}" = set; then
15005   echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007   ac_check_lib_save_LIBS=$LIBS
15008 LIBS="-linet  $LIBS"
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h.  */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h.  */
15015
15016 /* Override any gcc2 internal prototype to avoid an error.  */
15017 #ifdef __cplusplus
15018 extern "C"
15019 #endif
15020 /* We use char because int might match the return type of a gcc2
15021    builtin and then its argument prototype would still apply.  */
15022 char socket ();
15023 int
15024 main ()
15025 {
15026 socket ();
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033   (eval $ac_link) 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } &&
15040          { ac_try='test -z "$ac_c_werror_flag"
15041                          || test ! -s conftest.err'
15042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043   (eval $ac_try) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; } &&
15047          { ac_try='test -s conftest$ac_exeext'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; }; then
15053   ac_cv_lib_inet_socket=yes
15054 else
15055   echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 ac_cv_lib_inet_socket=no
15059 fi
15060 rm -f conftest.err conftest.$ac_objext \
15061       conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15063 fi
15064 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15065 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15066 if test $ac_cv_lib_inet_socket = yes; then
15067   cat >>confdefs.h <<_ACEOF
15068 #define HAVE_LIBINET 1
15069 _ACEOF
15070
15071   LIBS="-linet $LIBS"
15072
15073 fi
15074
15075
15076 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15077 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15078 if test "${ac_cv_lib_gen_main+set}" = set; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081   ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lgen  $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089
15090
15091 int
15092 main ()
15093 {
15094 main ();
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101   (eval $ac_link) 2>conftest.er1
15102   ac_status=$?
15103   grep -v '^ *+' conftest.er1 >conftest.err
15104   rm -f conftest.er1
15105   cat conftest.err >&5
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -z "$ac_c_werror_flag"
15109                          || test ! -s conftest.err'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; } &&
15115          { ac_try='test -s conftest$ac_exeext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_cv_lib_gen_main=yes
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_cv_lib_gen_main=no
15127 fi
15128 rm -f conftest.err conftest.$ac_objext \
15129       conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15131 fi
15132 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15133 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15134 if test $ac_cv_lib_gen_main = yes; then
15135   cat >>confdefs.h <<_ACEOF
15136 #define HAVE_LIBGEN 1
15137 _ACEOF
15138
15139   LIBS="-lgen $LIBS"
15140
15141 fi
15142
15143
15144 fi
15145
15146
15147 echo "$as_me:$LINENO: checking for select" >&5
15148 echo $ECHO_N "checking for select... $ECHO_C" >&6
15149 if test "${ac_cv_func_select+set}" = set; then
15150   echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152   cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h.  */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h.  */
15158 /* Define select to an innocuous variant, in case <limits.h> declares select.
15159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15160 #define select innocuous_select
15161
15162 /* System header to define __stub macros and hopefully few prototypes,
15163     which can conflict with char select (); below.
15164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15165     <limits.h> exists even on freestanding compilers.  */
15166
15167 #ifdef __STDC__
15168 # include <limits.h>
15169 #else
15170 # include <assert.h>
15171 #endif
15172
15173 #undef select
15174
15175 /* Override any gcc2 internal prototype to avoid an error.  */
15176 #ifdef __cplusplus
15177 extern "C"
15178 {
15179 #endif
15180 /* We use char because int might match the return type of a gcc2
15181    builtin and then its argument prototype would still apply.  */
15182 char select ();
15183 /* The GNU C library defines this for functions which it implements
15184     to always fail with ENOSYS.  Some functions are actually named
15185     something starting with __ and the normal name is an alias.  */
15186 #if defined (__stub_select) || defined (__stub___select)
15187 choke me
15188 #else
15189 char (*f) () = select;
15190 #endif
15191 #ifdef __cplusplus
15192 }
15193 #endif
15194
15195 int
15196 main ()
15197 {
15198 return f != select;
15199   ;
15200   return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15205   (eval $ac_link) 2>conftest.er1
15206   ac_status=$?
15207   grep -v '^ *+' conftest.er1 >conftest.err
15208   rm -f conftest.er1
15209   cat conftest.err >&5
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); } &&
15212          { ac_try='test -z "$ac_c_werror_flag"
15213                          || test ! -s conftest.err'
15214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215   (eval $ac_try) 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; } &&
15219          { ac_try='test -s conftest$ac_exeext'
15220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221   (eval $ac_try) 2>&5
15222   ac_status=$?
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); }; }; then
15225   ac_cv_func_select=yes
15226 else
15227   echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 ac_cv_func_select=no
15231 fi
15232 rm -f conftest.err conftest.$ac_objext \
15233       conftest$ac_exeext conftest.$ac_ext
15234 fi
15235 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15236 echo "${ECHO_T}$ac_cv_func_select" >&6
15237 if test $ac_cv_func_select = yes; then
15238   :
15239 else
15240   { { echo "$as_me:$LINENO: error: select() required." >&5
15241 echo "$as_me: error: select() required." >&2;}
15242    { (exit 1); exit 1; }; }
15243 fi
15244
15245
15246 if test "${ac_cv_header_winsock_h}" != yes; then
15247
15248
15249 for ac_header in sys/select.h sys/socket.h
15250 do
15251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15253   echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256   echo $ECHO_N "(cached) $ECHO_C" >&6
15257 fi
15258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15260 else
15261   # Is the header compilable?
15262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270 $ac_includes_default
15271 #include <$ac_header>
15272 _ACEOF
15273 rm -f conftest.$ac_objext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275   (eval $ac_compile) 2>conftest.er1
15276   ac_status=$?
15277   grep -v '^ *+' conftest.er1 >conftest.err
15278   rm -f conftest.er1
15279   cat conftest.err >&5
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); } &&
15282          { ac_try='test -z "$ac_c_werror_flag"
15283                          || test ! -s conftest.err'
15284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285   (eval $ac_try) 2>&5
15286   ac_status=$?
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); }; } &&
15289          { ac_try='test -s conftest.$ac_objext'
15290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291   (eval $ac_try) 2>&5
15292   ac_status=$?
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); }; }; then
15295   ac_header_compiler=yes
15296 else
15297   echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 ac_header_compiler=no
15301 fi
15302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15304 echo "${ECHO_T}$ac_header_compiler" >&6
15305
15306 # Is the header present?
15307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h.  */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h.  */
15315 #include <$ac_header>
15316 _ACEOF
15317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } >/dev/null; then
15325   if test -s conftest.err; then
15326     ac_cpp_err=$ac_c_preproc_warn_flag
15327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15328   else
15329     ac_cpp_err=
15330   fi
15331 else
15332   ac_cpp_err=yes
15333 fi
15334 if test -z "$ac_cpp_err"; then
15335   ac_header_preproc=yes
15336 else
15337   echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340   ac_header_preproc=no
15341 fi
15342 rm -f conftest.err conftest.$ac_ext
15343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15344 echo "${ECHO_T}$ac_header_preproc" >&6
15345
15346 # So?  What about this header?
15347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15348   yes:no: )
15349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15353     ac_header_preproc=yes
15354     ;;
15355   no:yes:* )
15356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15368     (
15369       cat <<\_ASBOX
15370 ## --------------------------------------------- ##
15371 ## Report this to <http://www.openldap.org/its/> ##
15372 ## --------------------------------------------- ##
15373 _ASBOX
15374     ) |
15375       sed "s/^/$as_me: WARNING:     /" >&2
15376     ;;
15377 esac
15378 echo "$as_me:$LINENO: checking for $ac_header" >&5
15379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15381   echo $ECHO_N "(cached) $ECHO_C" >&6
15382 else
15383   eval "$as_ac_Header=\$ac_header_preproc"
15384 fi
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15387
15388 fi
15389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15390   cat >>confdefs.h <<_ACEOF
15391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15392 _ACEOF
15393
15394 fi
15395
15396 done
15397
15398 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15399 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15400 if test "${ac_cv_func_select_args+set}" = set; then
15401   echo $ECHO_N "(cached) $ECHO_C" >&6
15402 else
15403   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15404  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15405   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15406    cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 $ac_includes_default
15413 #if HAVE_SYS_SELECT_H
15414 # include <sys/select.h>
15415 #endif
15416 #if HAVE_SYS_SOCKET_H
15417 # include <sys/socket.h>
15418 #endif
15419
15420 int
15421 main ()
15422 {
15423 extern int select ($ac_arg1,
15424                                             $ac_arg234, $ac_arg234, $ac_arg234,
15425                                             $ac_arg5);
15426   ;
15427   return 0;
15428 }
15429 _ACEOF
15430 rm -f conftest.$ac_objext
15431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15432   (eval $ac_compile) 2>conftest.er1
15433   ac_status=$?
15434   grep -v '^ *+' conftest.er1 >conftest.err
15435   rm -f conftest.er1
15436   cat conftest.err >&5
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); } &&
15439          { ac_try='test -z "$ac_c_werror_flag"
15440                          || test ! -s conftest.err'
15441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442   (eval $ac_try) 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; } &&
15446          { ac_try='test -s conftest.$ac_objext'
15447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448   (eval $ac_try) 2>&5
15449   ac_status=$?
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); }; }; then
15452   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15453 else
15454   echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15456
15457 fi
15458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15459   done
15460  done
15461 done
15462 # Provide a safe default value.
15463 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15464
15465 fi
15466 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15467 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15468 ac_save_IFS=$IFS; IFS=','
15469 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15470 IFS=$ac_save_IFS
15471 shift
15472
15473 cat >>confdefs.h <<_ACEOF
15474 #define SELECT_TYPE_ARG1 $1
15475 _ACEOF
15476
15477
15478 cat >>confdefs.h <<_ACEOF
15479 #define SELECT_TYPE_ARG234 ($2)
15480 _ACEOF
15481
15482
15483 cat >>confdefs.h <<_ACEOF
15484 #define SELECT_TYPE_ARG5 ($3)
15485 _ACEOF
15486
15487 rm -f conftest*
15488
15489 fi
15490
15491
15492
15493 for ac_func in poll
15494 do
15495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15496 echo "$as_me:$LINENO: checking for $ac_func" >&5
15497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15498 if eval "test \"\${$as_ac_var+set}\" = set"; then
15499   echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501   cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15509 #define $ac_func innocuous_$ac_func
15510
15511 /* System header to define __stub macros and hopefully few prototypes,
15512     which can conflict with char $ac_func (); below.
15513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15514     <limits.h> exists even on freestanding compilers.  */
15515
15516 #ifdef __STDC__
15517 # include <limits.h>
15518 #else
15519 # include <assert.h>
15520 #endif
15521
15522 #undef $ac_func
15523
15524 /* Override any gcc2 internal prototype to avoid an error.  */
15525 #ifdef __cplusplus
15526 extern "C"
15527 {
15528 #endif
15529 /* We use char because int might match the return type of a gcc2
15530    builtin and then its argument prototype would still apply.  */
15531 char $ac_func ();
15532 /* The GNU C library defines this for functions which it implements
15533     to always fail with ENOSYS.  Some functions are actually named
15534     something starting with __ and the normal name is an alias.  */
15535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15536 choke me
15537 #else
15538 char (*f) () = $ac_func;
15539 #endif
15540 #ifdef __cplusplus
15541 }
15542 #endif
15543
15544 int
15545 main ()
15546 {
15547 return f != $ac_func;
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15554   (eval $ac_link) 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_c_werror_flag"
15562                          || test ! -s conftest.err'
15563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564   (eval $ac_try) 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; } &&
15568          { ac_try='test -s conftest$ac_exeext'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   eval "$as_ac_var=yes"
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 eval "$as_ac_var=no"
15580 fi
15581 rm -f conftest.err conftest.$ac_objext \
15582       conftest$ac_exeext conftest.$ac_ext
15583 fi
15584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15586 if test `eval echo '${'$as_ac_var'}'` = yes; then
15587   cat >>confdefs.h <<_ACEOF
15588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15589 _ACEOF
15590
15591 fi
15592 done
15593
15594
15595 for ac_header in poll.h
15596 do
15597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15599   echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602   echo $ECHO_N "(cached) $ECHO_C" >&6
15603 fi
15604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15606 else
15607   # Is the header compilable?
15608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h.  */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h.  */
15616 $ac_includes_default
15617 #include <$ac_header>
15618 _ACEOF
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621   (eval $ac_compile) 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } &&
15628          { ac_try='test -z "$ac_c_werror_flag"
15629                          || test ! -s conftest.err'
15630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631   (eval $ac_try) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); }; } &&
15635          { ac_try='test -s conftest.$ac_objext'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; }; then
15641   ac_header_compiler=yes
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 ac_header_compiler=no
15647 fi
15648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15650 echo "${ECHO_T}$ac_header_compiler" >&6
15651
15652 # Is the header present?
15653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15655 cat >conftest.$ac_ext <<_ACEOF
15656 /* confdefs.h.  */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h.  */
15661 #include <$ac_header>
15662 _ACEOF
15663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15665   ac_status=$?
15666   grep -v '^ *+' conftest.er1 >conftest.err
15667   rm -f conftest.er1
15668   cat conftest.err >&5
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); } >/dev/null; then
15671   if test -s conftest.err; then
15672     ac_cpp_err=$ac_c_preproc_warn_flag
15673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15674   else
15675     ac_cpp_err=
15676   fi
15677 else
15678   ac_cpp_err=yes
15679 fi
15680 if test -z "$ac_cpp_err"; then
15681   ac_header_preproc=yes
15682 else
15683   echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15685
15686   ac_header_preproc=no
15687 fi
15688 rm -f conftest.err conftest.$ac_ext
15689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15690 echo "${ECHO_T}$ac_header_preproc" >&6
15691
15692 # So?  What about this header?
15693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15694   yes:no: )
15695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15699     ac_header_preproc=yes
15700     ;;
15701   no:yes:* )
15702     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15704     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15705 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15706     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15708     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15709 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15712     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15714     (
15715       cat <<\_ASBOX
15716 ## --------------------------------------------- ##
15717 ## Report this to <http://www.openldap.org/its/> ##
15718 ## --------------------------------------------- ##
15719 _ASBOX
15720     ) |
15721       sed "s/^/$as_me: WARNING:     /" >&2
15722     ;;
15723 esac
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 else
15729   eval "$as_ac_Header=\$ac_header_preproc"
15730 fi
15731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15733
15734 fi
15735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15736   cat >>confdefs.h <<_ACEOF
15737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15738 _ACEOF
15739
15740 fi
15741
15742 done
15743
15744
15745
15746 for ac_header in sys/epoll.h
15747 do
15748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15750   echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 fi
15755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15757 else
15758   # Is the header compilable?
15759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767 $ac_includes_default
15768 #include <$ac_header>
15769 _ACEOF
15770 rm -f conftest.$ac_objext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772   (eval $ac_compile) 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -z "$ac_c_werror_flag"
15780                          || test ! -s conftest.err'
15781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782   (eval $ac_try) 2>&5
15783   ac_status=$?
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); }; } &&
15786          { ac_try='test -s conftest.$ac_objext'
15787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788   (eval $ac_try) 2>&5
15789   ac_status=$?
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); }; }; then
15792   ac_header_compiler=yes
15793 else
15794   echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15796
15797 ac_header_compiler=no
15798 fi
15799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15801 echo "${ECHO_T}$ac_header_compiler" >&6
15802
15803 # Is the header present?
15804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15806 cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h.  */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h.  */
15812 #include <$ac_header>
15813 _ACEOF
15814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15816   ac_status=$?
15817   grep -v '^ *+' conftest.er1 >conftest.err
15818   rm -f conftest.er1
15819   cat conftest.err >&5
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } >/dev/null; then
15822   if test -s conftest.err; then
15823     ac_cpp_err=$ac_c_preproc_warn_flag
15824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15825   else
15826     ac_cpp_err=
15827   fi
15828 else
15829   ac_cpp_err=yes
15830 fi
15831 if test -z "$ac_cpp_err"; then
15832   ac_header_preproc=yes
15833 else
15834   echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15836
15837   ac_header_preproc=no
15838 fi
15839 rm -f conftest.err conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15841 echo "${ECHO_T}$ac_header_preproc" >&6
15842
15843 # So?  What about this header?
15844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15845   yes:no: )
15846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15850     ac_header_preproc=yes
15851     ;;
15852   no:yes:* )
15853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15865     (
15866       cat <<\_ASBOX
15867 ## --------------------------------------------- ##
15868 ## Report this to <http://www.openldap.org/its/> ##
15869 ## --------------------------------------------- ##
15870 _ASBOX
15871     ) |
15872       sed "s/^/$as_me: WARNING:     /" >&2
15873     ;;
15874 esac
15875 echo "$as_me:$LINENO: checking for $ac_header" >&5
15876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15878   echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880   eval "$as_ac_Header=\$ac_header_preproc"
15881 fi
15882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15884
15885 fi
15886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15887   cat >>confdefs.h <<_ACEOF
15888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15889 _ACEOF
15890
15891 fi
15892
15893 done
15894
15895 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15896 echo "$as_me:$LINENO: checking for epoll system call" >&5
15897 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15898 if test "$cross_compiling" = yes; then
15899   echo "$as_me:$LINENO: result: no" >&5
15900 echo "${ECHO_T}no" >&6
15901 else
15902   cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h.  */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h.  */
15908 int main(int argc, char *argv)
15909 {
15910         int epfd = epoll_create(256);
15911         exit (epfd == -1 ? 1 : 0);
15912 }
15913 _ACEOF
15914 rm -f conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916   (eval $ac_link) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921   (eval $ac_try) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; }; then
15925   echo "$as_me:$LINENO: result: yes" >&5
15926 echo "${ECHO_T}yes" >&6
15927
15928 cat >>confdefs.h <<\_ACEOF
15929 #define HAVE_EPOLL 1
15930 _ACEOF
15931
15932 else
15933   echo "$as_me: program exited with status $ac_status" >&5
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937 ( exit $ac_status )
15938 echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6
15940 fi
15941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15942 fi
15943 fi
15944
15945 # strerror checks
15946 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15947 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15948 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15949   echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951
15952         cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958
15959 #include <stdio.h>
15960 #include <sys/types.h>
15961 #include <errno.h>
15962 #ifdef WINNT
15963 #include <stdlib.h>
15964 #endif
15965 int
15966 main ()
15967 {
15968 char *c = (char *) *sys_errlist
15969   ;
15970   return 0;
15971 }
15972 _ACEOF
15973 rm -f conftest.$ac_objext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15975   (eval $ac_compile) 2>conftest.er1
15976   ac_status=$?
15977   grep -v '^ *+' conftest.er1 >conftest.err
15978   rm -f conftest.er1
15979   cat conftest.err >&5
15980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); } &&
15982          { ac_try='test -z "$ac_c_werror_flag"
15983                          || test ! -s conftest.err'
15984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985   (eval $ac_try) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); }; } &&
15989          { ac_try='test -s conftest.$ac_objext'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; }; then
15995   ol_cv_dcl_sys_errlist=yes
15996         ol_cv_have_sys_errlist=yes
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001 ol_cv_dcl_sys_errlist=no
16002 fi
16003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16004 fi
16005 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16006 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16007 #
16008 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16009 if test $ol_cv_dcl_sys_errlist = no ; then
16010
16011 cat >>confdefs.h <<\_ACEOF
16012 #define DECL_SYS_ERRLIST 1
16013 _ACEOF
16014
16015
16016         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16017 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16018 if test "${ol_cv_have_sys_errlist+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021
16022                 cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 #include <errno.h>
16029 int
16030 main ()
16031 {
16032 char *c = (char *) *sys_errlist
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039   (eval $ac_link) 2>conftest.er1
16040   ac_status=$?
16041   grep -v '^ *+' conftest.er1 >conftest.err
16042   rm -f conftest.er1
16043   cat conftest.err >&5
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } &&
16046          { ac_try='test -z "$ac_c_werror_flag"
16047                          || test ! -s conftest.err'
16048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049   (eval $ac_try) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); }; } &&
16053          { ac_try='test -s conftest$ac_exeext'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; }; then
16059   ol_cv_have_sys_errlist=yes
16060 else
16061   echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 ol_cv_have_sys_errlist=no
16065 fi
16066 rm -f conftest.err conftest.$ac_objext \
16067       conftest$ac_exeext conftest.$ac_ext
16068 fi
16069 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16070 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16071 fi
16072 if test $ol_cv_have_sys_errlist = yes ; then
16073
16074 cat >>confdefs.h <<\_ACEOF
16075 #define HAVE_SYS_ERRLIST 1
16076 _ACEOF
16077
16078 fi
16079
16080
16081 for ac_func in strerror strerror_r
16082 do
16083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16084 echo "$as_me:$LINENO: checking for $ac_func" >&5
16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16086 if eval "test \"\${$as_ac_var+set}\" = set"; then
16087   echo $ECHO_N "(cached) $ECHO_C" >&6
16088 else
16089   cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16097 #define $ac_func innocuous_$ac_func
16098
16099 /* System header to define __stub macros and hopefully few prototypes,
16100     which can conflict with char $ac_func (); below.
16101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102     <limits.h> exists even on freestanding compilers.  */
16103
16104 #ifdef __STDC__
16105 # include <limits.h>
16106 #else
16107 # include <assert.h>
16108 #endif
16109
16110 #undef $ac_func
16111
16112 /* Override any gcc2 internal prototype to avoid an error.  */
16113 #ifdef __cplusplus
16114 extern "C"
16115 {
16116 #endif
16117 /* We use char because int might match the return type of a gcc2
16118    builtin and then its argument prototype would still apply.  */
16119 char $ac_func ();
16120 /* The GNU C library defines this for functions which it implements
16121     to always fail with ENOSYS.  Some functions are actually named
16122     something starting with __ and the normal name is an alias.  */
16123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16124 choke me
16125 #else
16126 char (*f) () = $ac_func;
16127 #endif
16128 #ifdef __cplusplus
16129 }
16130 #endif
16131
16132 int
16133 main ()
16134 {
16135 return f != $ac_func;
16136   ;
16137   return 0;
16138 }
16139 _ACEOF
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142   (eval $ac_link) 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } &&
16149          { ac_try='test -z "$ac_c_werror_flag"
16150                          || test ! -s conftest.err'
16151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152   (eval $ac_try) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; } &&
16156          { ac_try='test -s conftest$ac_exeext'
16157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158   (eval $ac_try) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; }; then
16162   eval "$as_ac_var=yes"
16163 else
16164   echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 eval "$as_ac_var=no"
16168 fi
16169 rm -f conftest.err conftest.$ac_objext \
16170       conftest$ac_exeext conftest.$ac_ext
16171 fi
16172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16174 if test `eval echo '${'$as_ac_var'}'` = yes; then
16175   cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16177 _ACEOF
16178
16179 fi
16180 done
16181
16182 ol_cv_func_strerror_r=no
16183 if test "${ac_cv_func_strerror_r}" = yes ; then
16184         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16185 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16186 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189
16190         cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h.  */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h.  */
16196 #include <string.h>
16197 _ACEOF
16198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16199   $EGREP "strerror_r" >/dev/null 2>&1; then
16200   ol_decl_strerror_r=yes
16201 else
16202   ol_decl_strerror_r=no
16203 fi
16204 rm -f conftest*
16205
16206         if test $ol_decl_strerror_r = yes ; then
16207                 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 #include <string.h>
16214 int
16215 main ()
16216 {
16217    /* from autoconf 2.59 */
16218                                 char buf[100];
16219                                 char x = *strerror_r (0, buf, sizeof buf);
16220                                 char *p = strerror_r (0, buf, sizeof buf);
16221
16222   ;
16223   return 0;
16224 }
16225 _ACEOF
16226 rm -f conftest.$ac_objext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16228   (eval $ac_compile) 2>conftest.er1
16229   ac_status=$?
16230   grep -v '^ *+' conftest.er1 >conftest.err
16231   rm -f conftest.er1
16232   cat conftest.err >&5
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); } &&
16235          { ac_try='test -z "$ac_c_werror_flag"
16236                          || test ! -s conftest.err'
16237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238   (eval $ac_try) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; } &&
16242          { ac_try='test -s conftest.$ac_objext'
16243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244   (eval $ac_try) 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   ol_cv_nonposix_strerror_r=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253 ol_cv_nonposix_strerror_r=no
16254 fi
16255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16256         else
16257                 if test "$cross_compiling" = yes; then
16258   ol_cv_nonposix_strerror=no
16259 else
16260   cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266
16267                         main() {
16268                                 char buf[100];
16269                                 buf[0] = 0;
16270                                 strerror_r( 1, buf, sizeof buf );
16271                                 exit( buf[0] == 0 );
16272                         }
16273
16274 _ACEOF
16275 rm -f conftest$ac_exeext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277   (eval $ac_link) 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16282   (eval $ac_try) 2>&5
16283   ac_status=$?
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); }; }; then
16286   ol_cv_nonposix_strerror_r=yes
16287 else
16288   echo "$as_me: program exited with status $ac_status" >&5
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 ( exit $ac_status )
16293 ol_cv_nonposix_strerror=no
16294 fi
16295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16296 fi
16297         fi
16298
16299 fi
16300 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16301 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16302 if test $ol_cv_nonposix_strerror_r = yes ; then
16303
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_NONPOSIX_STRERROR_R 1
16306 _ACEOF
16307
16308 fi
16309
16310 elif test "${ac_cv_func_strerror}" = no ; then
16311         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16312 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16313 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16314   echo $ECHO_N "(cached) $ECHO_C" >&6
16315 else
16316
16317         cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323
16324 #include <stdio.h>
16325 #include <sys/types.h>
16326 #include <errno.h>
16327 #ifdef WINNT
16328 #include <stdlib.h>
16329 #endif
16330 int
16331 main ()
16332 {
16333 char *c = (char *) *sys_errlist
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340   (eval $ac_compile) 2>conftest.er1
16341   ac_status=$?
16342   grep -v '^ *+' conftest.er1 >conftest.err
16343   rm -f conftest.er1
16344   cat conftest.err >&5
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); } &&
16347          { ac_try='test -z "$ac_c_werror_flag"
16348                          || test ! -s conftest.err'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; } &&
16354          { ac_try='test -s conftest.$ac_objext'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360   ol_cv_dcl_sys_errlist=yes
16361         ol_cv_have_sys_errlist=yes
16362 else
16363   echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16365
16366 ol_cv_dcl_sys_errlist=no
16367 fi
16368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16369 fi
16370 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16371 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16372 #
16373 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16374 if test $ol_cv_dcl_sys_errlist = no ; then
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define DECL_SYS_ERRLIST 1
16378 _ACEOF
16379
16380
16381         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16382 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16383 if test "${ol_cv_have_sys_errlist+set}" = set; then
16384   echo $ECHO_N "(cached) $ECHO_C" >&6
16385 else
16386
16387                 cat >conftest.$ac_ext <<_ACEOF
16388 /* confdefs.h.  */
16389 _ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h.  */
16393 #include <errno.h>
16394 int
16395 main ()
16396 {
16397 char *c = (char *) *sys_errlist
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16404   (eval $ac_link) 2>conftest.er1
16405   ac_status=$?
16406   grep -v '^ *+' conftest.er1 >conftest.err
16407   rm -f conftest.er1
16408   cat conftest.err >&5
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); } &&
16411          { ac_try='test -z "$ac_c_werror_flag"
16412                          || test ! -s conftest.err'
16413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414   (eval $ac_try) 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; } &&
16418          { ac_try='test -s conftest$ac_exeext'
16419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420   (eval $ac_try) 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); }; }; then
16424   ol_cv_have_sys_errlist=yes
16425 else
16426   echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ol_cv_have_sys_errlist=no
16430 fi
16431 rm -f conftest.err conftest.$ac_objext \
16432       conftest$ac_exeext conftest.$ac_ext
16433 fi
16434 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16435 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16436 fi
16437 if test $ol_cv_have_sys_errlist = yes ; then
16438
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_SYS_ERRLIST 1
16441 _ACEOF
16442
16443 fi
16444
16445 fi
16446
16447
16448
16449 for ac_header in regex.h
16450 do
16451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16453   echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16456   echo $ECHO_N "(cached) $ECHO_C" >&6
16457 fi
16458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16460 else
16461   # Is the header compilable?
16462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h.  */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h.  */
16470 $ac_includes_default
16471 #include <$ac_header>
16472 _ACEOF
16473 rm -f conftest.$ac_objext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16475   (eval $ac_compile) 2>conftest.er1
16476   ac_status=$?
16477   grep -v '^ *+' conftest.er1 >conftest.err
16478   rm -f conftest.er1
16479   cat conftest.err >&5
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); } &&
16482          { ac_try='test -z "$ac_c_werror_flag"
16483                          || test ! -s conftest.err'
16484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485   (eval $ac_try) 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); }; } &&
16489          { ac_try='test -s conftest.$ac_objext'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }; then
16495   ac_header_compiler=yes
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 ac_header_compiler=no
16501 fi
16502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16504 echo "${ECHO_T}$ac_header_compiler" >&6
16505
16506 # Is the header present?
16507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16509 cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515 #include <$ac_header>
16516 _ACEOF
16517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16519   ac_status=$?
16520   grep -v '^ *+' conftest.er1 >conftest.err
16521   rm -f conftest.er1
16522   cat conftest.err >&5
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); } >/dev/null; then
16525   if test -s conftest.err; then
16526     ac_cpp_err=$ac_c_preproc_warn_flag
16527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16528   else
16529     ac_cpp_err=
16530   fi
16531 else
16532   ac_cpp_err=yes
16533 fi
16534 if test -z "$ac_cpp_err"; then
16535   ac_header_preproc=yes
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540   ac_header_preproc=no
16541 fi
16542 rm -f conftest.err conftest.$ac_ext
16543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16544 echo "${ECHO_T}$ac_header_preproc" >&6
16545
16546 # So?  What about this header?
16547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16548   yes:no: )
16549     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16553     ac_header_preproc=yes
16554     ;;
16555   no:yes:* )
16556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16558     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16559 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16560     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16562     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16563 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16566     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16568     (
16569       cat <<\_ASBOX
16570 ## --------------------------------------------- ##
16571 ## Report this to <http://www.openldap.org/its/> ##
16572 ## --------------------------------------------- ##
16573 _ASBOX
16574     ) |
16575       sed "s/^/$as_me: WARNING:     /" >&2
16576     ;;
16577 esac
16578 echo "$as_me:$LINENO: checking for $ac_header" >&5
16579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16581   echo $ECHO_N "(cached) $ECHO_C" >&6
16582 else
16583   eval "$as_ac_Header=\$ac_header_preproc"
16584 fi
16585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16587
16588 fi
16589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16590   cat >>confdefs.h <<_ACEOF
16591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16592 _ACEOF
16593
16594 fi
16595
16596 done
16597
16598 if test "$ac_cv_header_regex_h" != yes ; then
16599         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16600 echo "$as_me: error: POSIX regex.h required." >&2;}
16601    { (exit 1); exit 1; }; }
16602 fi
16603 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16604 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16605 if test "${ac_cv_search_regfree+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608   ac_func_search_save_LIBS=$LIBS
16609 ac_cv_search_regfree=no
16610 cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h.  */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h.  */
16616
16617 /* Override any gcc2 internal prototype to avoid an error.  */
16618 #ifdef __cplusplus
16619 extern "C"
16620 #endif
16621 /* We use char because int might match the return type of a gcc2
16622    builtin and then its argument prototype would still apply.  */
16623 char regfree ();
16624 int
16625 main ()
16626 {
16627 regfree ();
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634   (eval $ac_link) 2>conftest.er1
16635   ac_status=$?
16636   grep -v '^ *+' conftest.er1 >conftest.err
16637   rm -f conftest.er1
16638   cat conftest.err >&5
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); } &&
16641          { ac_try='test -z "$ac_c_werror_flag"
16642                          || test ! -s conftest.err'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; } &&
16648          { ac_try='test -s conftest$ac_exeext'
16649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650   (eval $ac_try) 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; }; then
16654   ac_cv_search_regfree="none required"
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659 fi
16660 rm -f conftest.err conftest.$ac_objext \
16661       conftest$ac_exeext conftest.$ac_ext
16662 if test "$ac_cv_search_regfree" = no; then
16663   for ac_lib in regex gnuregex; do
16664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16665     cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h.  */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h.  */
16671
16672 /* Override any gcc2 internal prototype to avoid an error.  */
16673 #ifdef __cplusplus
16674 extern "C"
16675 #endif
16676 /* We use char because int might match the return type of a gcc2
16677    builtin and then its argument prototype would still apply.  */
16678 char regfree ();
16679 int
16680 main ()
16681 {
16682 regfree ();
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16689   (eval $ac_link) 2>conftest.er1
16690   ac_status=$?
16691   grep -v '^ *+' conftest.er1 >conftest.err
16692   rm -f conftest.er1
16693   cat conftest.err >&5
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); } &&
16696          { ac_try='test -z "$ac_c_werror_flag"
16697                          || test ! -s conftest.err'
16698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699   (eval $ac_try) 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; } &&
16703          { ac_try='test -s conftest$ac_exeext'
16704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705   (eval $ac_try) 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; }; then
16709   ac_cv_search_regfree="-l$ac_lib"
16710 break
16711 else
16712   echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16714
16715 fi
16716 rm -f conftest.err conftest.$ac_objext \
16717       conftest$ac_exeext conftest.$ac_ext
16718   done
16719 fi
16720 LIBS=$ac_func_search_save_LIBS
16721 fi
16722 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16723 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16724 if test "$ac_cv_search_regfree" != no; then
16725   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16726   :
16727 else
16728   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16729 echo "$as_me: error: POSIX regex required." >&2;}
16730    { (exit 1); exit 1; }; }
16731 fi
16732
16733
16734
16735 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16736 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16737 if test "${ol_cv_c_posix_regex+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740
16741         if test "$cross_compiling" = yes; then
16742   ol_cv_c_posix_regex=cross
16743 else
16744   cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750
16751 #include <sys/types.h>
16752 #include <regex.h>
16753 static char *pattern, *string;
16754 main()
16755 {
16756         int rc;
16757         regex_t re;
16758
16759         pattern = "^A";
16760
16761         if(regcomp(&re, pattern, 0)) {
16762                 return -1;
16763         }
16764
16765         string = "ALL MATCH";
16766
16767         rc = regexec(&re, string, 0, (void*)0, 0);
16768
16769         regfree(&re);
16770
16771         return rc;
16772 }
16773 _ACEOF
16774 rm -f conftest$ac_exeext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16776   (eval $ac_link) 2>&5
16777   ac_status=$?
16778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781   (eval $ac_try) 2>&5
16782   ac_status=$?
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); }; }; then
16785   ol_cv_c_posix_regex=yes
16786 else
16787   echo "$as_me: program exited with status $ac_status" >&5
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 ( exit $ac_status )
16792 ol_cv_c_posix_regex=no
16793 fi
16794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16795 fi
16796 fi
16797 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16798 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16799
16800 if test "$ol_cv_c_posix_regex" = no ; then
16801         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16802 echo "$as_me: error: broken POSIX regex!" >&2;}
16803    { (exit 1); exit 1; }; }
16804 fi
16805
16806
16807 have_uuid=no
16808
16809 for ac_header in sys/uuid.h
16810 do
16811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16813   echo "$as_me:$LINENO: checking for $ac_header" >&5
16814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16816   echo $ECHO_N "(cached) $ECHO_C" >&6
16817 fi
16818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16820 else
16821   # Is the header compilable?
16822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16824 cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h.  */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h.  */
16830 $ac_includes_default
16831 #include <$ac_header>
16832 _ACEOF
16833 rm -f conftest.$ac_objext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16835   (eval $ac_compile) 2>conftest.er1
16836   ac_status=$?
16837   grep -v '^ *+' conftest.er1 >conftest.err
16838   rm -f conftest.er1
16839   cat conftest.err >&5
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); } &&
16842          { ac_try='test -z "$ac_c_werror_flag"
16843                          || test ! -s conftest.err'
16844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845   (eval $ac_try) 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; } &&
16849          { ac_try='test -s conftest.$ac_objext'
16850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851   (eval $ac_try) 2>&5
16852   ac_status=$?
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); }; }; then
16855   ac_header_compiler=yes
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ac_header_compiler=no
16861 fi
16862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16864 echo "${ECHO_T}$ac_header_compiler" >&6
16865
16866 # Is the header present?
16867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16869 cat >conftest.$ac_ext <<_ACEOF
16870 /* confdefs.h.  */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h.  */
16875 #include <$ac_header>
16876 _ACEOF
16877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16878   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16879   ac_status=$?
16880   grep -v '^ *+' conftest.er1 >conftest.err
16881   rm -f conftest.er1
16882   cat conftest.err >&5
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); } >/dev/null; then
16885   if test -s conftest.err; then
16886     ac_cpp_err=$ac_c_preproc_warn_flag
16887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16888   else
16889     ac_cpp_err=
16890   fi
16891 else
16892   ac_cpp_err=yes
16893 fi
16894 if test -z "$ac_cpp_err"; then
16895   ac_header_preproc=yes
16896 else
16897   echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16899
16900   ac_header_preproc=no
16901 fi
16902 rm -f conftest.err conftest.$ac_ext
16903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16904 echo "${ECHO_T}$ac_header_preproc" >&6
16905
16906 # So?  What about this header?
16907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16908   yes:no: )
16909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16913     ac_header_preproc=yes
16914     ;;
16915   no:yes:* )
16916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16928     (
16929       cat <<\_ASBOX
16930 ## --------------------------------------------- ##
16931 ## Report this to <http://www.openldap.org/its/> ##
16932 ## --------------------------------------------- ##
16933 _ASBOX
16934     ) |
16935       sed "s/^/$as_me: WARNING:     /" >&2
16936     ;;
16937 esac
16938 echo "$as_me:$LINENO: checking for $ac_header" >&5
16939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16941   echo $ECHO_N "(cached) $ECHO_C" >&6
16942 else
16943   eval "$as_ac_Header=\$ac_header_preproc"
16944 fi
16945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16947
16948 fi
16949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16950   cat >>confdefs.h <<_ACEOF
16951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16952 _ACEOF
16953
16954 fi
16955
16956 done
16957
16958 if test $ac_cv_header_sys_uuid_h = yes ; then
16959         save_LIBS="$LIBS"
16960         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16961 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16962 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16963   echo $ECHO_N "(cached) $ECHO_C" >&6
16964 else
16965   ac_func_search_save_LIBS=$LIBS
16966 ac_cv_search_uuid_to_str=no
16967 cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h.  */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h.  */
16973
16974 /* Override any gcc2 internal prototype to avoid an error.  */
16975 #ifdef __cplusplus
16976 extern "C"
16977 #endif
16978 /* We use char because int might match the return type of a gcc2
16979    builtin and then its argument prototype would still apply.  */
16980 char uuid_to_str ();
16981 int
16982 main ()
16983 {
16984 uuid_to_str ();
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991   (eval $ac_link) 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } &&
16998          { ac_try='test -z "$ac_c_werror_flag"
16999                          || test ! -s conftest.err'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; } &&
17005          { ac_try='test -s conftest$ac_exeext'
17006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007   (eval $ac_try) 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; }; then
17011   ac_cv_search_uuid_to_str="none required"
17012 else
17013   echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 fi
17017 rm -f conftest.err conftest.$ac_objext \
17018       conftest$ac_exeext conftest.$ac_ext
17019 if test "$ac_cv_search_uuid_to_str" = no; then
17020   for ac_lib in uuid; do
17021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17022     cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028
17029 /* Override any gcc2 internal prototype to avoid an error.  */
17030 #ifdef __cplusplus
17031 extern "C"
17032 #endif
17033 /* We use char because int might match the return type of a gcc2
17034    builtin and then its argument prototype would still apply.  */
17035 char uuid_to_str ();
17036 int
17037 main ()
17038 {
17039 uuid_to_str ();
17040   ;
17041   return 0;
17042 }
17043 _ACEOF
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046   (eval $ac_link) 2>conftest.er1
17047   ac_status=$?
17048   grep -v '^ *+' conftest.er1 >conftest.err
17049   rm -f conftest.er1
17050   cat conftest.err >&5
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); } &&
17053          { ac_try='test -z "$ac_c_werror_flag"
17054                          || test ! -s conftest.err'
17055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056   (eval $ac_try) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); }; } &&
17060          { ac_try='test -s conftest$ac_exeext'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; }; then
17066   ac_cv_search_uuid_to_str="-l$ac_lib"
17067 break
17068 else
17069   echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17071
17072 fi
17073 rm -f conftest.err conftest.$ac_objext \
17074       conftest$ac_exeext conftest.$ac_ext
17075   done
17076 fi
17077 LIBS=$ac_func_search_save_LIBS
17078 fi
17079 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17080 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17081 if test "$ac_cv_search_uuid_to_str" != no; then
17082   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17083   have_uuid=yes
17084 else
17085   :
17086 fi
17087
17088         LIBS="$save_LIBS"
17089
17090         if test have_uuid = yes ; then
17091
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_UUID_TO_STR 1
17094 _ACEOF
17095
17096
17097                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17098                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17099         fi
17100 fi
17101
17102 if test $have_uuid = no ; then
17103         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17104 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17105         save_LIBS="$LIBS"
17106         LIBS="$LIBS -lrpcrt4"
17107         cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h.  */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h.  */
17113
17114                 int __stdcall UuidCreate(void *);
17115                 int __stdcall UuidToStringA(void *,void **);
17116
17117 int
17118 main ()
17119 {
17120
17121                 UuidCreate(0);
17122                 UuidToStringA(0,0);
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130   (eval $ac_link) 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag"
17138                          || test ! -s conftest.err'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; } &&
17144          { ac_try='test -s conftest$ac_exeext'
17145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146   (eval $ac_try) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; }; then
17150   need_rpcrt=yes
17151 else
17152   echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155 need_rpcrt=no
17156 fi
17157 rm -f conftest.err conftest.$ac_objext \
17158       conftest$ac_exeext conftest.$ac_ext
17159         if test $need_rpcrt = yes; then
17160                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17161         fi
17162         LIBS="$save_LIBS"
17163         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17164 echo "${ECHO_T}$need_rpcrt" >&6
17165 fi
17166
17167 ol_cv_lib_resolver=no
17168 if test $ol_cv_lib_resolver = no ; then
17169         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17170 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17171 if test "${ol_cv_resolver_none+set}" = set; then
17172   echo $ECHO_N "(cached) $ECHO_C" >&6
17173 else
17174
17175         ol_RESOLVER_LIB=
17176         ol_LIBS=$LIBS
17177         LIBS="$ol_RESOLVER_LIB $LIBS"
17178
17179         cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185
17186 #ifdef HAVE_SYS_TYPES_H
17187 #       include <sys/types.h>
17188 #endif
17189 #include <netinet/in.h>
17190 #ifdef HAVE_ARPA_NAMESER_H
17191 #       include <arpa/nameser.h>
17192 #endif
17193 #ifdef HAVE_RESOLV_H
17194 #       include <resolv.h>
17195 #endif
17196
17197 int
17198 main ()
17199 {
17200 {
17201         int len, status;
17202         char *request = NULL;
17203         unsigned char reply[64*1024];
17204         unsigned char host[64*1024];
17205         unsigned char *p;
17206
17207 #ifdef NS_HFIXEDSZ
17208         /* Bind 8/9 interface */
17209         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17210 #else
17211         /* Bind 4 interface */
17212 # ifndef T_SRV
17213 #  define T_SRV 33
17214 # endif
17215         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17216 #endif
17217         p = reply;
17218 #ifdef NS_HFIXEDSZ
17219         /* Bind 8/9 interface */
17220         p += NS_HFIXEDSZ;
17221 #elif defined(HFIXEDSZ)
17222         /* Bind 4 interface w/ HFIXEDSZ */
17223         p += HFIXEDSZ;
17224 #else
17225         /* Bind 4 interface w/o HFIXEDSZ */
17226         p += sizeof(HEADER);
17227 #endif
17228         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17229 }
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236   (eval $ac_link) 2>conftest.er1
17237   ac_status=$?
17238   grep -v '^ *+' conftest.er1 >conftest.err
17239   rm -f conftest.er1
17240   cat conftest.err >&5
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); } &&
17243          { ac_try='test -z "$ac_c_werror_flag"
17244                          || test ! -s conftest.err'
17245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246   (eval $ac_try) 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; } &&
17250          { ac_try='test -s conftest$ac_exeext'
17251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252   (eval $ac_try) 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; }; then
17256   ol_cv_resolver_none=yes
17257 else
17258   echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 ol_cv_resolver_none=no
17262 fi
17263 rm -f conftest.err conftest.$ac_objext \
17264       conftest$ac_exeext conftest.$ac_ext
17265
17266         LIBS="$ol_LIBS"
17267
17268 fi
17269 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17270 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17271
17272         if test $ol_cv_resolver_none = yes ; then
17273                 ol_cv_lib_resolver=yes
17274         fi
17275 fi
17276
17277 if test $ol_cv_lib_resolver = no ; then
17278         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17279 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17280 if test "${ol_cv_resolver_resolv+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283
17284         ol_RESOLVER_LIB=-lresolv
17285         ol_LIBS=$LIBS
17286         LIBS="$ol_RESOLVER_LIB $LIBS"
17287
17288         cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294
17295 #ifdef HAVE_SYS_TYPES_H
17296 #       include <sys/types.h>
17297 #endif
17298 #include <netinet/in.h>
17299 #ifdef HAVE_ARPA_NAMESER_H
17300 #       include <arpa/nameser.h>
17301 #endif
17302 #ifdef HAVE_RESOLV_H
17303 #       include <resolv.h>
17304 #endif
17305
17306 int
17307 main ()
17308 {
17309 {
17310         int len, status;
17311         char *request = NULL;
17312         unsigned char reply[64*1024];
17313         unsigned char host[64*1024];
17314         unsigned char *p;
17315
17316 #ifdef NS_HFIXEDSZ
17317         /* Bind 8/9 interface */
17318         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17319 #else
17320         /* Bind 4 interface */
17321 # ifndef T_SRV
17322 #  define T_SRV 33
17323 # endif
17324         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17325 #endif
17326         p = reply;
17327 #ifdef NS_HFIXEDSZ
17328         /* Bind 8/9 interface */
17329         p += NS_HFIXEDSZ;
17330 #elif defined(HFIXEDSZ)
17331         /* Bind 4 interface w/ HFIXEDSZ */
17332         p += HFIXEDSZ;
17333 #else
17334         /* Bind 4 interface w/o HFIXEDSZ */
17335         p += sizeof(HEADER);
17336 #endif
17337         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17338 }
17339   ;
17340   return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345   (eval $ac_link) 2>conftest.er1
17346   ac_status=$?
17347   grep -v '^ *+' conftest.er1 >conftest.err
17348   rm -f conftest.er1
17349   cat conftest.err >&5
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); } &&
17352          { ac_try='test -z "$ac_c_werror_flag"
17353                          || test ! -s conftest.err'
17354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355   (eval $ac_try) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; } &&
17359          { ac_try='test -s conftest$ac_exeext'
17360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361   (eval $ac_try) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; }; then
17365   ol_cv_resolver_resolv=yes
17366 else
17367   echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370 ol_cv_resolver_resolv=no
17371 fi
17372 rm -f conftest.err conftest.$ac_objext \
17373       conftest$ac_exeext conftest.$ac_ext
17374
17375         LIBS="$ol_LIBS"
17376
17377 fi
17378 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17379 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17380
17381         if test $ol_cv_resolver_resolv = yes ; then
17382                 ol_cv_lib_resolver=-lresolv
17383         fi
17384 fi
17385
17386 if test $ol_cv_lib_resolver = no ; then
17387         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17388 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17389 if test "${ol_cv_resolver_bind+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392
17393         ol_RESOLVER_LIB=-lbind
17394         ol_LIBS=$LIBS
17395         LIBS="$ol_RESOLVER_LIB $LIBS"
17396
17397         cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403
17404 #ifdef HAVE_SYS_TYPES_H
17405 #       include <sys/types.h>
17406 #endif
17407 #include <netinet/in.h>
17408 #ifdef HAVE_ARPA_NAMESER_H
17409 #       include <arpa/nameser.h>
17410 #endif
17411 #ifdef HAVE_RESOLV_H
17412 #       include <resolv.h>
17413 #endif
17414
17415 int
17416 main ()
17417 {
17418 {
17419         int len, status;
17420         char *request = NULL;
17421         unsigned char reply[64*1024];
17422         unsigned char host[64*1024];
17423         unsigned char *p;
17424
17425 #ifdef NS_HFIXEDSZ
17426         /* Bind 8/9 interface */
17427         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17428 #else
17429         /* Bind 4 interface */
17430 # ifndef T_SRV
17431 #  define T_SRV 33
17432 # endif
17433         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17434 #endif
17435         p = reply;
17436 #ifdef NS_HFIXEDSZ
17437         /* Bind 8/9 interface */
17438         p += NS_HFIXEDSZ;
17439 #elif defined(HFIXEDSZ)
17440         /* Bind 4 interface w/ HFIXEDSZ */
17441         p += HFIXEDSZ;
17442 #else
17443         /* Bind 4 interface w/o HFIXEDSZ */
17444         p += sizeof(HEADER);
17445 #endif
17446         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17447 }
17448   ;
17449   return 0;
17450 }
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454   (eval $ac_link) 2>conftest.er1
17455   ac_status=$?
17456   grep -v '^ *+' conftest.er1 >conftest.err
17457   rm -f conftest.er1
17458   cat conftest.err >&5
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); } &&
17461          { ac_try='test -z "$ac_c_werror_flag"
17462                          || test ! -s conftest.err'
17463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464   (eval $ac_try) 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; } &&
17468          { ac_try='test -s conftest$ac_exeext'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; }; then
17474   ol_cv_resolver_bind=yes
17475 else
17476   echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17478
17479 ol_cv_resolver_bind=no
17480 fi
17481 rm -f conftest.err conftest.$ac_objext \
17482       conftest$ac_exeext conftest.$ac_ext
17483
17484         LIBS="$ol_LIBS"
17485
17486 fi
17487 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17488 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17489
17490         if test $ol_cv_resolver_bind = yes ; then
17491                 ol_cv_lib_resolver=-lbind
17492         fi
17493 fi
17494
17495
17496
17497 ol_link_dnssrv=no
17498 if test "$ol_cv_lib_resolver" != no ; then
17499
17500 cat >>confdefs.h <<\_ACEOF
17501 #define HAVE_RES_QUERY 1
17502 _ACEOF
17503
17504
17505         if test "$ol_enable_dnssrv" != no ; then
17506                 ol_link_dnssrv=yes
17507         fi
17508
17509         if test "$ol_cv_lib_resolver" != yes ; then
17510                 LIBS="$ol_cv_lib_resolver $LIBS"
17511         fi
17512 fi
17513
17514 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17515         if test "$ol_link_dnssrv" = no ; then
17516                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17517 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17518    { (exit 1); exit 1; }; }
17519         fi
17520 else
17521         ol_enable_dnssrv=no
17522 fi
17523
17524
17525 for ac_func in hstrerror
17526 do
17527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17530 if eval "test \"\${$as_ac_var+set}\" = set"; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17541 #define $ac_func innocuous_$ac_func
17542
17543 /* System header to define __stub macros and hopefully few prototypes,
17544     which can conflict with char $ac_func (); below.
17545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546     <limits.h> exists even on freestanding compilers.  */
17547
17548 #ifdef __STDC__
17549 # include <limits.h>
17550 #else
17551 # include <assert.h>
17552 #endif
17553
17554 #undef $ac_func
17555
17556 /* Override any gcc2 internal prototype to avoid an error.  */
17557 #ifdef __cplusplus
17558 extern "C"
17559 {
17560 #endif
17561 /* We use char because int might match the return type of a gcc2
17562    builtin and then its argument prototype would still apply.  */
17563 char $ac_func ();
17564 /* The GNU C library defines this for functions which it implements
17565     to always fail with ENOSYS.  Some functions are actually named
17566     something starting with __ and the normal name is an alias.  */
17567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17568 choke me
17569 #else
17570 char (*f) () = $ac_func;
17571 #endif
17572 #ifdef __cplusplus
17573 }
17574 #endif
17575
17576 int
17577 main ()
17578 {
17579 return f != $ac_func;
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext conftest$ac_exeext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17586   (eval $ac_link) 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } &&
17593          { ac_try='test -z "$ac_c_werror_flag"
17594                          || test ! -s conftest.err'
17595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596   (eval $ac_try) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; } &&
17600          { ac_try='test -s conftest$ac_exeext'
17601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602   (eval $ac_try) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606   eval "$as_ac_var=yes"
17607 else
17608   echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 eval "$as_ac_var=no"
17612 fi
17613 rm -f conftest.err conftest.$ac_objext \
17614       conftest$ac_exeext conftest.$ac_ext
17615 fi
17616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17618 if test `eval echo '${'$as_ac_var'}'` = yes; then
17619   cat >>confdefs.h <<_ACEOF
17620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17621 _ACEOF
17622
17623 fi
17624 done
17625
17626
17627
17628
17629
17630
17631 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17632 do
17633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17634 echo "$as_me:$LINENO: checking for $ac_func" >&5
17635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17636 if eval "test \"\${$as_ac_var+set}\" = set"; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639   cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17647 #define $ac_func innocuous_$ac_func
17648
17649 /* System header to define __stub macros and hopefully few prototypes,
17650     which can conflict with char $ac_func (); below.
17651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17652     <limits.h> exists even on freestanding compilers.  */
17653
17654 #ifdef __STDC__
17655 # include <limits.h>
17656 #else
17657 # include <assert.h>
17658 #endif
17659
17660 #undef $ac_func
17661
17662 /* Override any gcc2 internal prototype to avoid an error.  */
17663 #ifdef __cplusplus
17664 extern "C"
17665 {
17666 #endif
17667 /* We use char because int might match the return type of a gcc2
17668    builtin and then its argument prototype would still apply.  */
17669 char $ac_func ();
17670 /* The GNU C library defines this for functions which it implements
17671     to always fail with ENOSYS.  Some functions are actually named
17672     something starting with __ and the normal name is an alias.  */
17673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17674 choke me
17675 #else
17676 char (*f) () = $ac_func;
17677 #endif
17678 #ifdef __cplusplus
17679 }
17680 #endif
17681
17682 int
17683 main ()
17684 {
17685 return f != $ac_func;
17686   ;
17687   return 0;
17688 }
17689 _ACEOF
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692   (eval $ac_link) 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } &&
17699          { ac_try='test -z "$ac_c_werror_flag"
17700                          || test ! -s conftest.err'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; } &&
17706          { ac_try='test -s conftest$ac_exeext'
17707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708   (eval $ac_try) 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; }; then
17712   eval "$as_ac_var=yes"
17713 else
17714   echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717 eval "$as_ac_var=no"
17718 fi
17719 rm -f conftest.err conftest.$ac_objext \
17720       conftest$ac_exeext conftest.$ac_ext
17721 fi
17722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17724 if test `eval echo '${'$as_ac_var'}'` = yes; then
17725   cat >>confdefs.h <<_ACEOF
17726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17727 _ACEOF
17728
17729 fi
17730 done
17731
17732
17733 ol_link_ipv6=no
17734 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17735         if test $ol_enable_ipv6 = yes ; then
17736                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17737 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17738    { (exit 1); exit 1; }; }
17739         fi
17740 elif test $ol_enable_ipv6 != no ; then
17741         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17742 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17743 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746
17747                 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h.  */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h.  */
17753
17754 #                       include <netinet/in.h>
17755 #                       ifdef INET6_ADDRSTRLEN
17756                                 __has_inet6_addrstrlen__;
17757 #                       endif
17758
17759 _ACEOF
17760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17761   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17762   ol_cv_inet6_addrstrlen=yes
17763 else
17764   ol_cv_inet6_addrstrlen=no
17765 fi
17766 rm -f conftest*
17767
17768 fi
17769 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17770 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17771
17772
17773         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17774 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17775 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17776   echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778
17779                 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h.  */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h.  */
17785
17786 #include <sys/types.h>
17787 #include <sys/socket.h>
17788
17789 int
17790 main ()
17791 {
17792
17793                         struct sockaddr_storage ss;
17794
17795   ;
17796   return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext
17800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17801   (eval $ac_compile) 2>conftest.er1
17802   ac_status=$?
17803   grep -v '^ *+' conftest.er1 >conftest.err
17804   rm -f conftest.er1
17805   cat conftest.err >&5
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); } &&
17808          { ac_try='test -z "$ac_c_werror_flag"
17809                          || test ! -s conftest.err'
17810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811   (eval $ac_try) 2>&5
17812   ac_status=$?
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); }; } &&
17815          { ac_try='test -s conftest.$ac_objext'
17816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817   (eval $ac_try) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; }; then
17821   ol_cv_struct_sockaddr_storage=yes
17822 else
17823   echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17825
17826 ol_cv_struct_sockaddr_storage=no
17827 fi
17828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17829 fi
17830 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17831 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17832
17833         if test $ol_cv_inet6_addrstrlen = yes &&
17834            test $ol_cv_struct_sockaddr_storage = yes ; then
17835                 ol_link_ipv6=yes
17836         elif test $ol_enable_ipv6 = yes &&
17837              test $ol_cv_inet6_addrstrlen = no ; then
17838                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17839 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17840    { (exit 1); exit 1; }; }
17841         elif test $ol_enable_ipv6 = yes &&
17842              test $ol_cv_struct_sockaddr_storage = no ; then
17843                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17844 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17845    { (exit 1); exit 1; }; }
17846         fi
17847 fi
17848
17849 if test $ol_enable_local != no ; then
17850
17851 for ac_header in sys/un.h
17852 do
17853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17855   echo "$as_me:$LINENO: checking for $ac_header" >&5
17856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17858   echo $ECHO_N "(cached) $ECHO_C" >&6
17859 fi
17860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17862 else
17863   # Is the header compilable?
17864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872 $ac_includes_default
17873 #include <$ac_header>
17874 _ACEOF
17875 rm -f conftest.$ac_objext
17876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17877   (eval $ac_compile) 2>conftest.er1
17878   ac_status=$?
17879   grep -v '^ *+' conftest.er1 >conftest.err
17880   rm -f conftest.er1
17881   cat conftest.err >&5
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); } &&
17884          { ac_try='test -z "$ac_c_werror_flag"
17885                          || test ! -s conftest.err'
17886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887   (eval $ac_try) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); }; } &&
17891          { ac_try='test -s conftest.$ac_objext'
17892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893   (eval $ac_try) 2>&5
17894   ac_status=$?
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); }; }; then
17897   ac_header_compiler=yes
17898 else
17899   echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 ac_header_compiler=no
17903 fi
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17906 echo "${ECHO_T}$ac_header_compiler" >&6
17907
17908 # Is the header present?
17909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917 #include <$ac_header>
17918 _ACEOF
17919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17921   ac_status=$?
17922   grep -v '^ *+' conftest.er1 >conftest.err
17923   rm -f conftest.er1
17924   cat conftest.err >&5
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } >/dev/null; then
17927   if test -s conftest.err; then
17928     ac_cpp_err=$ac_c_preproc_warn_flag
17929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17930   else
17931     ac_cpp_err=
17932   fi
17933 else
17934   ac_cpp_err=yes
17935 fi
17936 if test -z "$ac_cpp_err"; then
17937   ac_header_preproc=yes
17938 else
17939   echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942   ac_header_preproc=no
17943 fi
17944 rm -f conftest.err conftest.$ac_ext
17945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17946 echo "${ECHO_T}$ac_header_preproc" >&6
17947
17948 # So?  What about this header?
17949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17950   yes:no: )
17951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17955     ac_header_preproc=yes
17956     ;;
17957   no:yes:* )
17958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17970     (
17971       cat <<\_ASBOX
17972 ## --------------------------------------------- ##
17973 ## Report this to <http://www.openldap.org/its/> ##
17974 ## --------------------------------------------- ##
17975 _ASBOX
17976     ) |
17977       sed "s/^/$as_me: WARNING:     /" >&2
17978     ;;
17979 esac
17980 echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17983   echo $ECHO_N "(cached) $ECHO_C" >&6
17984 else
17985   eval "$as_ac_Header=\$ac_header_preproc"
17986 fi
17987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17989
17990 fi
17991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17992   cat >>confdefs.h <<_ACEOF
17993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17994 _ACEOF
17995
17996 fi
17997
17998 done
17999
18000
18001         if test $ol_enable_local = auto ; then
18002                 ol_enable_local=$ac_cv_header_sys_un_h
18003         elif test $ac_cv_header_sys_un_h = no ; then
18004                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18005 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18006    { (exit 1); exit 1; }; }
18007         fi
18008 fi
18009
18010 ol_link_kbind=no
18011 ol_link_krb5=no
18012 ol_link_krb4=no
18013
18014 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18015
18016
18017 for ac_header in krb5.h
18018 do
18019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18021   echo "$as_me:$LINENO: checking for $ac_header" >&5
18022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18024   echo $ECHO_N "(cached) $ECHO_C" >&6
18025 fi
18026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18028 else
18029   # Is the header compilable?
18030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h.  */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h.  */
18038 $ac_includes_default
18039 #include <$ac_header>
18040 _ACEOF
18041 rm -f conftest.$ac_objext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18043   (eval $ac_compile) 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } &&
18050          { ac_try='test -z "$ac_c_werror_flag"
18051                          || test ! -s conftest.err'
18052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053   (eval $ac_try) 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; } &&
18057          { ac_try='test -s conftest.$ac_objext'
18058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059   (eval $ac_try) 2>&5
18060   ac_status=$?
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); }; }; then
18063   ac_header_compiler=yes
18064 else
18065   echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18067
18068 ac_header_compiler=no
18069 fi
18070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6
18073
18074 # Is the header present?
18075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083 #include <$ac_header>
18084 _ACEOF
18085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18087   ac_status=$?
18088   grep -v '^ *+' conftest.er1 >conftest.err
18089   rm -f conftest.er1
18090   cat conftest.err >&5
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } >/dev/null; then
18093   if test -s conftest.err; then
18094     ac_cpp_err=$ac_c_preproc_warn_flag
18095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18096   else
18097     ac_cpp_err=
18098   fi
18099 else
18100   ac_cpp_err=yes
18101 fi
18102 if test -z "$ac_cpp_err"; then
18103   ac_header_preproc=yes
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108   ac_header_preproc=no
18109 fi
18110 rm -f conftest.err conftest.$ac_ext
18111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6
18113
18114 # So?  What about this header?
18115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18116   yes:no: )
18117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18121     ac_header_preproc=yes
18122     ;;
18123   no:yes:* )
18124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18136     (
18137       cat <<\_ASBOX
18138 ## --------------------------------------------- ##
18139 ## Report this to <http://www.openldap.org/its/> ##
18140 ## --------------------------------------------- ##
18141 _ASBOX
18142     ) |
18143       sed "s/^/$as_me: WARNING:     /" >&2
18144     ;;
18145 esac
18146 echo "$as_me:$LINENO: checking for $ac_header" >&5
18147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151   eval "$as_ac_Header=\$ac_header_preproc"
18152 fi
18153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18155
18156 fi
18157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18158   cat >>confdefs.h <<_ACEOF
18159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18160 _ACEOF
18161
18162 fi
18163
18164 done
18165
18166
18167         if test $ac_cv_header_krb5_h = yes ; then
18168
18169 for ac_header in heim_err.h
18170 do
18171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18173   echo "$as_me:$LINENO: checking for $ac_header" >&5
18174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18176   echo $ECHO_N "(cached) $ECHO_C" >&6
18177 fi
18178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18180 else
18181   # Is the header compilable?
18182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h.  */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h.  */
18190 $ac_includes_default
18191 #include <$ac_header>
18192 _ACEOF
18193 rm -f conftest.$ac_objext
18194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18195   (eval $ac_compile) 2>conftest.er1
18196   ac_status=$?
18197   grep -v '^ *+' conftest.er1 >conftest.err
18198   rm -f conftest.er1
18199   cat conftest.err >&5
18200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201   (exit $ac_status); } &&
18202          { ac_try='test -z "$ac_c_werror_flag"
18203                          || test ! -s conftest.err'
18204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205   (eval $ac_try) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }; } &&
18209          { ac_try='test -s conftest.$ac_objext'
18210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211   (eval $ac_try) 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); }; }; then
18215   ac_header_compiler=yes
18216 else
18217   echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220 ac_header_compiler=no
18221 fi
18222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18224 echo "${ECHO_T}$ac_header_compiler" >&6
18225
18226 # Is the header present?
18227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18229 cat >conftest.$ac_ext <<_ACEOF
18230 /* confdefs.h.  */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h.  */
18235 #include <$ac_header>
18236 _ACEOF
18237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } >/dev/null; then
18245   if test -s conftest.err; then
18246     ac_cpp_err=$ac_c_preproc_warn_flag
18247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18248   else
18249     ac_cpp_err=
18250   fi
18251 else
18252   ac_cpp_err=yes
18253 fi
18254 if test -z "$ac_cpp_err"; then
18255   ac_header_preproc=yes
18256 else
18257   echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260   ac_header_preproc=no
18261 fi
18262 rm -f conftest.err conftest.$ac_ext
18263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18264 echo "${ECHO_T}$ac_header_preproc" >&6
18265
18266 # So?  What about this header?
18267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18268   yes:no: )
18269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18273     ac_header_preproc=yes
18274     ;;
18275   no:yes:* )
18276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18288     (
18289       cat <<\_ASBOX
18290 ## --------------------------------------------- ##
18291 ## Report this to <http://www.openldap.org/its/> ##
18292 ## --------------------------------------------- ##
18293 _ASBOX
18294     ) |
18295       sed "s/^/$as_me: WARNING:     /" >&2
18296     ;;
18297 esac
18298 echo "$as_me:$LINENO: checking for $ac_header" >&5
18299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   eval "$as_ac_Header=\$ac_header_preproc"
18304 fi
18305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18307
18308 fi
18309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18310   cat >>confdefs.h <<_ACEOF
18311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18312 _ACEOF
18313
18314 fi
18315
18316 done
18317
18318                 if test $ac_cv_header_heim_err_h = yes ; then
18319                         krb5_impl=heimdal
18320                 else
18321                         krb5_impl=mit
18322                 fi
18323
18324                 if test $krb5_impl = mit; then
18325                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18326 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18327 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-lk5crypto  $LIBS"
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338
18339
18340 int
18341 main ()
18342 {
18343 main ();
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18350   (eval $ac_link) 2>conftest.er1
18351   ac_status=$?
18352   grep -v '^ *+' conftest.er1 >conftest.err
18353   rm -f conftest.er1
18354   cat conftest.err >&5
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); } &&
18357          { ac_try='test -z "$ac_c_werror_flag"
18358                          || test ! -s conftest.err'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; } &&
18364          { ac_try='test -s conftest$ac_exeext'
18365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366   (eval $ac_try) 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; }; then
18370   ac_cv_lib_k5crypto_main=yes
18371 else
18372   echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375 ac_cv_lib_k5crypto_main=no
18376 fi
18377 rm -f conftest.err conftest.$ac_objext \
18378       conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18380 fi
18381 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18382 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18383 if test $ac_cv_lib_k5crypto_main = yes; then
18384   krb5crypto=k5crypto
18385 else
18386   krb5crypto=crypto
18387 fi
18388
18389
18390                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18391 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18392 if test "${ac_cv_lib_krb5_main+set}" = set; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   ac_check_lib_save_LIBS=$LIBS
18396 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403
18404
18405 int
18406 main ()
18407 {
18408 main ();
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18415   (eval $ac_link) 2>conftest.er1
18416   ac_status=$?
18417   grep -v '^ *+' conftest.er1 >conftest.err
18418   rm -f conftest.er1
18419   cat conftest.err >&5
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); } &&
18422          { ac_try='test -z "$ac_c_werror_flag"
18423                          || test ! -s conftest.err'
18424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425   (eval $ac_try) 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); }; } &&
18429          { ac_try='test -s conftest$ac_exeext'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; }; then
18435   ac_cv_lib_krb5_main=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ac_cv_lib_krb5_main=no
18441 fi
18442 rm -f conftest.err conftest.$ac_objext \
18443       conftest$ac_exeext conftest.$ac_ext
18444 LIBS=$ac_check_lib_save_LIBS
18445 fi
18446 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18447 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18448 if test $ac_cv_lib_krb5_main = yes; then
18449   have_krb5=yes
18450                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18451 else
18452   have_krb5=no
18453 fi
18454
18455
18456                 elif test $krb5_impl = heimdal; then
18457                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18458 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18459 if test "${ac_cv_lib_des_main+set}" = set; then
18460   echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462   ac_check_lib_save_LIBS=$LIBS
18463 LIBS="-ldes  $LIBS"
18464 cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h.  */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h.  */
18470
18471
18472 int
18473 main ()
18474 {
18475 main ();
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482   (eval $ac_link) 2>conftest.er1
18483   ac_status=$?
18484   grep -v '^ *+' conftest.er1 >conftest.err
18485   rm -f conftest.er1
18486   cat conftest.err >&5
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } &&
18489          { ac_try='test -z "$ac_c_werror_flag"
18490                          || test ! -s conftest.err'
18491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492   (eval $ac_try) 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; } &&
18496          { ac_try='test -s conftest$ac_exeext'
18497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498   (eval $ac_try) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; }; then
18502   ac_cv_lib_des_main=yes
18503 else
18504   echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507 ac_cv_lib_des_main=no
18508 fi
18509 rm -f conftest.err conftest.$ac_objext \
18510       conftest$ac_exeext conftest.$ac_ext
18511 LIBS=$ac_check_lib_save_LIBS
18512 fi
18513 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18514 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18515 if test $ac_cv_lib_des_main = yes; then
18516   krb5crypto=des
18517 else
18518   krb5crypto=crypto
18519 fi
18520
18521
18522                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18523 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18524 if test "${ac_cv_lib_krb5_main+set}" = set; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   ac_check_lib_save_LIBS=$LIBS
18528 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18529 cat >conftest.$ac_ext <<_ACEOF
18530 /* confdefs.h.  */
18531 _ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h.  */
18535
18536
18537 int
18538 main ()
18539 {
18540 main ();
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547   (eval $ac_link) 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } &&
18554          { ac_try='test -z "$ac_c_werror_flag"
18555                          || test ! -s conftest.err'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; } &&
18561          { ac_try='test -s conftest$ac_exeext'
18562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563   (eval $ac_try) 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); }; }; then
18567   ac_cv_lib_krb5_main=yes
18568 else
18569   echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 ac_cv_lib_krb5_main=no
18573 fi
18574 rm -f conftest.err conftest.$ac_objext \
18575       conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18577 fi
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18579 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18580 if test $ac_cv_lib_krb5_main = yes; then
18581   have_krb5=yes
18582                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18583 else
18584   have_krb5=no
18585 fi
18586
18587
18588
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_HEIMDAL_KERBEROS 1
18591 _ACEOF
18592
18593
18594                 else
18595                         have_krb5=no
18596                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18597 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18598                 fi
18599
18600                 if test $have_krb5 = yes ; then
18601                         ol_link_krb5=yes
18602
18603
18604 cat >>confdefs.h <<\_ACEOF
18605 #define HAVE_KRB5 1
18606 _ACEOF
18607
18608
18609                         if test $ol_with_kerberos = k5only ; then
18610                                 ol_with_kerberos=found
18611                         fi
18612
18613                 elif test $ol_with_kerberos != auto ; then
18614                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18615 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18616    { (exit 1); exit 1; }; }
18617                 fi
18618
18619         fi
18620         ;;
18621 esac
18622
18623 if test $ol_link_krb5 = yes &&
18624    { test $ol_with_kerberos = yes ||
18625      test $ol_with_kerberos = auto ||
18626      test $ol_with_kerberos = k425; }; then
18627
18628
18629
18630 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18631 do
18632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18634   echo "$as_me:$LINENO: checking for $ac_header" >&5
18635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18637   echo $ECHO_N "(cached) $ECHO_C" >&6
18638 fi
18639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18641 else
18642   # Is the header compilable?
18643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h.  */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h.  */
18651 $ac_includes_default
18652 #include <$ac_header>
18653 _ACEOF
18654 rm -f conftest.$ac_objext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18656   (eval $ac_compile) 2>conftest.er1
18657   ac_status=$?
18658   grep -v '^ *+' conftest.er1 >conftest.err
18659   rm -f conftest.er1
18660   cat conftest.err >&5
18661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662   (exit $ac_status); } &&
18663          { ac_try='test -z "$ac_c_werror_flag"
18664                          || test ! -s conftest.err'
18665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666   (eval $ac_try) 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); }; } &&
18670          { ac_try='test -s conftest.$ac_objext'
18671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672   (eval $ac_try) 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; }; then
18676   ac_header_compiler=yes
18677 else
18678   echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18680
18681 ac_header_compiler=no
18682 fi
18683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18685 echo "${ECHO_T}$ac_header_compiler" >&6
18686
18687 # Is the header present?
18688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18690 cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696 #include <$ac_header>
18697 _ACEOF
18698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } >/dev/null; then
18706   if test -s conftest.err; then
18707     ac_cpp_err=$ac_c_preproc_warn_flag
18708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18709   else
18710     ac_cpp_err=
18711   fi
18712 else
18713   ac_cpp_err=yes
18714 fi
18715 if test -z "$ac_cpp_err"; then
18716   ac_header_preproc=yes
18717 else
18718   echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18720
18721   ac_header_preproc=no
18722 fi
18723 rm -f conftest.err conftest.$ac_ext
18724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18725 echo "${ECHO_T}$ac_header_preproc" >&6
18726
18727 # So?  What about this header?
18728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18729   yes:no: )
18730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18734     ac_header_preproc=yes
18735     ;;
18736   no:yes:* )
18737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18749     (
18750       cat <<\_ASBOX
18751 ## --------------------------------------------- ##
18752 ## Report this to <http://www.openldap.org/its/> ##
18753 ## --------------------------------------------- ##
18754 _ASBOX
18755     ) |
18756       sed "s/^/$as_me: WARNING:     /" >&2
18757     ;;
18758 esac
18759 echo "$as_me:$LINENO: checking for $ac_header" >&5
18760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   eval "$as_ac_Header=\$ac_header_preproc"
18765 fi
18766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18768
18769 fi
18770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18771   cat >>confdefs.h <<_ACEOF
18772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18773 _ACEOF
18774
18775 fi
18776
18777 done
18778
18779
18780         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18781                 if test $krb5_impl = mit; then
18782                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18783 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18784 if test "${ac_cv_lib_krb4_main+set}" = set; then
18785   echo $ECHO_N "(cached) $ECHO_C" >&6
18786 else
18787   ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795
18796
18797 int
18798 main ()
18799 {
18800 main ();
18801   ;
18802   return 0;
18803 }
18804 _ACEOF
18805 rm -f conftest.$ac_objext conftest$ac_exeext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18807   (eval $ac_link) 2>conftest.er1
18808   ac_status=$?
18809   grep -v '^ *+' conftest.er1 >conftest.err
18810   rm -f conftest.er1
18811   cat conftest.err >&5
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -z "$ac_c_werror_flag"
18815                          || test ! -s conftest.err'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; } &&
18821          { ac_try='test -s conftest$ac_exeext'
18822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823   (eval $ac_try) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; }; then
18827   ac_cv_lib_krb4_main=yes
18828 else
18829   echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18831
18832 ac_cv_lib_krb4_main=no
18833 fi
18834 rm -f conftest.err conftest.$ac_objext \
18835       conftest$ac_exeext conftest.$ac_ext
18836 LIBS=$ac_check_lib_save_LIBS
18837 fi
18838 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18839 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18840 if test $ac_cv_lib_krb4_main = yes; then
18841   have_k425=yes
18842                                 KRB4_LIBS="-lkrb4 -ldes425"
18843 else
18844   have_k425=no
18845 fi
18846
18847
18848                 elif test $krb5_impl = heimdal; then
18849                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18850 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18851 if test "${ac_cv_lib_krb4_main+set}" = set; then
18852   echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854   ac_check_lib_save_LIBS=$LIBS
18855 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862
18863
18864 int
18865 main ()
18866 {
18867 main ();
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874   (eval $ac_link) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_c_werror_flag"
18882                          || test ! -s conftest.err'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_cv_lib_krb4_main=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_cv_lib_krb4_main=no
18900 fi
18901 rm -f conftest.err conftest.$ac_objext \
18902       conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18904 fi
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18906 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18907 if test $ac_cv_lib_krb4_main = yes; then
18908   have_k425=yes
18909                                 KRB4_LIBS="-lkrb4"
18910 else
18911   have_k425=no
18912 fi
18913
18914
18915                 else
18916                         have_425=no
18917                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18918 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18919                 fi
18920
18921                 if test $have_k425 = yes ; then
18922                         ol_with_kerberos=found
18923                         ol_link_krb4=yes
18924
18925
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE_KRB425 1
18928 _ACEOF
18929
18930
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_KRB4 1
18933 _ACEOF
18934
18935
18936                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18937 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18938 if test "${ol_cv_var_des_debug+set}" = set; then
18939   echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941
18942                                                                 save_LIBS="$LIBS"
18943                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18944                                 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h.  */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h.  */
18950
18951 #include <kerberosIV/krb.h>
18952 #include <kerberosIV/des.h>
18953 extern int des_debug;
18954
18955 int
18956 main ()
18957 {
18958
18959 des_debug = 1;
18960
18961   ;
18962   return 0;
18963 }
18964 _ACEOF
18965 rm -f conftest.$ac_objext conftest$ac_exeext
18966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18967   (eval $ac_link) 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } &&
18974          { ac_try='test -z "$ac_c_werror_flag"
18975                          || test ! -s conftest.err'
18976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977   (eval $ac_try) 2>&5
18978   ac_status=$?
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); }; } &&
18981          { ac_try='test -s conftest$ac_exeext'
18982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983   (eval $ac_try) 2>&5
18984   ac_status=$?
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); }; }; then
18987   ol_cv_var_des_debug=yes
18988 else
18989   echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992 ol_cv_var_des_debug=no
18993 fi
18994 rm -f conftest.err conftest.$ac_objext \
18995       conftest$ac_exeext conftest.$ac_ext
18996                                                                 LIBS="$save_LIBS"
18997
18998 fi
18999 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19000 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19001
19002                         if test $ol_cv_var_des_debug = yes ; then
19003
19004 cat >>confdefs.h <<\_ACEOF
19005 #define HAVE_DES_DEBUG 1
19006 _ACEOF
19007
19008                         fi
19009
19010                         LIBS="$save_LIBS"
19011                 fi
19012         fi
19013 fi
19014
19015 if test $ol_link_krb5 = yes ; then
19016         ol_with_kerberos=found
19017 fi
19018
19019 case $ol_with_kerberos in yes | auto | k4 | kth)
19020
19021
19022
19023
19024 for ac_header in krb.h des.h krb-archaeology.h
19025 do
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19028   echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 fi
19033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19035 else
19036   # Is the header compilable?
19037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045 $ac_includes_default
19046 #include <$ac_header>
19047 _ACEOF
19048 rm -f conftest.$ac_objext
19049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19050   (eval $ac_compile) 2>conftest.er1
19051   ac_status=$?
19052   grep -v '^ *+' conftest.er1 >conftest.err
19053   rm -f conftest.er1
19054   cat conftest.err >&5
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); } &&
19057          { ac_try='test -z "$ac_c_werror_flag"
19058                          || test ! -s conftest.err'
19059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060   (eval $ac_try) 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; } &&
19064          { ac_try='test -s conftest.$ac_objext'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; }; then
19070   ac_header_compiler=yes
19071 else
19072   echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19074
19075 ac_header_compiler=no
19076 fi
19077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19079 echo "${ECHO_T}$ac_header_compiler" >&6
19080
19081 # Is the header present?
19082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19084 cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h.  */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h.  */
19090 #include <$ac_header>
19091 _ACEOF
19092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } >/dev/null; then
19100   if test -s conftest.err; then
19101     ac_cpp_err=$ac_c_preproc_warn_flag
19102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19103   else
19104     ac_cpp_err=
19105   fi
19106 else
19107   ac_cpp_err=yes
19108 fi
19109 if test -z "$ac_cpp_err"; then
19110   ac_header_preproc=yes
19111 else
19112   echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19114
19115   ac_header_preproc=no
19116 fi
19117 rm -f conftest.err conftest.$ac_ext
19118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19119 echo "${ECHO_T}$ac_header_preproc" >&6
19120
19121 # So?  What about this header?
19122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19123   yes:no: )
19124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19128     ac_header_preproc=yes
19129     ;;
19130   no:yes:* )
19131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19143     (
19144       cat <<\_ASBOX
19145 ## --------------------------------------------- ##
19146 ## Report this to <http://www.openldap.org/its/> ##
19147 ## --------------------------------------------- ##
19148 _ASBOX
19149     ) |
19150       sed "s/^/$as_me: WARNING:     /" >&2
19151     ;;
19152 esac
19153 echo "$as_me:$LINENO: checking for $ac_header" >&5
19154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19156   echo $ECHO_N "(cached) $ECHO_C" >&6
19157 else
19158   eval "$as_ac_Header=\$ac_header_preproc"
19159 fi
19160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19162
19163 fi
19164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19165   cat >>confdefs.h <<_ACEOF
19166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19167 _ACEOF
19168
19169 fi
19170
19171 done
19172
19173
19174         if test $ac_cv_header_krb_h = yes ; then
19175                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19176 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19177 if test "${ac_cv_lib_krb_main+set}" = set; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   ac_check_lib_save_LIBS=$LIBS
19181 LIBS="-lkrb -ldes $LIBS"
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188
19189
19190 int
19191 main ()
19192 {
19193 main ();
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 rm -f conftest.$ac_objext conftest$ac_exeext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19200   (eval $ac_link) 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } &&
19207          { ac_try='test -z "$ac_c_werror_flag"
19208                          || test ! -s conftest.err'
19209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210   (eval $ac_try) 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; } &&
19214          { ac_try='test -s conftest$ac_exeext'
19215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216   (eval $ac_try) 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; }; then
19220   ac_cv_lib_krb_main=yes
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19224
19225 ac_cv_lib_krb_main=no
19226 fi
19227 rm -f conftest.err conftest.$ac_objext \
19228       conftest$ac_exeext conftest.$ac_ext
19229 LIBS=$ac_check_lib_save_LIBS
19230 fi
19231 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19232 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19233 if test $ac_cv_lib_krb_main = yes; then
19234   have_k4=yes
19235 else
19236   have_k4=no
19237 fi
19238
19239
19240                 if test $have_k4 = yes ; then
19241                         ol_with_kerberos=found
19242                         ol_link_krb4=yes
19243
19244
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_KRB4 1
19247 _ACEOF
19248
19249
19250                         KRB4_LIBS="-lkrb -ldes"
19251
19252                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19253
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE_KTH_KERBEROS 1
19256 _ACEOF
19257
19258                         fi
19259                 fi
19260         fi
19261         ;;
19262 esac
19263
19264 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19265         ol_link_kbind=yes
19266
19267 elif test $ol_enable_kbind = yes ; then
19268         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19269 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19270    { (exit 1); exit 1; }; }
19271 fi
19272
19273 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19274
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_KERBEROS 1
19277 _ACEOF
19278
19279
19280 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19281         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19282 echo "$as_me: error: Kerberos detection failed" >&2;}
19283    { (exit 1); exit 1; }; }
19284 fi
19285
19286
19287 ol_link_tls=no
19288 if test $ol_with_tls != no ; then
19289
19290 for ac_header in openssl/ssl.h
19291 do
19292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19294   echo "$as_me:$LINENO: checking for $ac_header" >&5
19295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19297   echo $ECHO_N "(cached) $ECHO_C" >&6
19298 fi
19299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19301 else
19302   # Is the header compilable?
19303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h.  */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h.  */
19311 $ac_includes_default
19312 #include <$ac_header>
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316   (eval $ac_compile) 2>conftest.er1
19317   ac_status=$?
19318   grep -v '^ *+' conftest.er1 >conftest.err
19319   rm -f conftest.er1
19320   cat conftest.err >&5
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); } &&
19323          { ac_try='test -z "$ac_c_werror_flag"
19324                          || test ! -s conftest.err'
19325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326   (eval $ac_try) 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; } &&
19330          { ac_try='test -s conftest.$ac_objext'
19331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332   (eval $ac_try) 2>&5
19333   ac_status=$?
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); }; }; then
19336   ac_header_compiler=yes
19337 else
19338   echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341 ac_header_compiler=no
19342 fi
19343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19345 echo "${ECHO_T}$ac_header_compiler" >&6
19346
19347 # Is the header present?
19348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356 #include <$ac_header>
19357 _ACEOF
19358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19360   ac_status=$?
19361   grep -v '^ *+' conftest.er1 >conftest.err
19362   rm -f conftest.er1
19363   cat conftest.err >&5
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } >/dev/null; then
19366   if test -s conftest.err; then
19367     ac_cpp_err=$ac_c_preproc_warn_flag
19368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19369   else
19370     ac_cpp_err=
19371   fi
19372 else
19373   ac_cpp_err=yes
19374 fi
19375 if test -z "$ac_cpp_err"; then
19376   ac_header_preproc=yes
19377 else
19378   echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381   ac_header_preproc=no
19382 fi
19383 rm -f conftest.err conftest.$ac_ext
19384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19385 echo "${ECHO_T}$ac_header_preproc" >&6
19386
19387 # So?  What about this header?
19388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19389   yes:no: )
19390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19394     ac_header_preproc=yes
19395     ;;
19396   no:yes:* )
19397     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19399     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19400 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19401     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19403     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19404 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19407     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19409     (
19410       cat <<\_ASBOX
19411 ## --------------------------------------------- ##
19412 ## Report this to <http://www.openldap.org/its/> ##
19413 ## --------------------------------------------- ##
19414 _ASBOX
19415     ) |
19416       sed "s/^/$as_me: WARNING:     /" >&2
19417     ;;
19418 esac
19419 echo "$as_me:$LINENO: checking for $ac_header" >&5
19420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   eval "$as_ac_Header=\$ac_header_preproc"
19425 fi
19426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19428
19429 fi
19430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19431   cat >>confdefs.h <<_ACEOF
19432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19433 _ACEOF
19434
19435 fi
19436
19437 done
19438
19439
19440         if test $ac_cv_header_openssl_ssl_h = yes ; then
19441                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19442 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19443 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19444   echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446   ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lssl -lcrypto $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454
19455 /* Override any gcc2 internal prototype to avoid an error.  */
19456 #ifdef __cplusplus
19457 extern "C"
19458 #endif
19459 /* We use char because int might match the return type of a gcc2
19460    builtin and then its argument prototype would still apply.  */
19461 char SSL_library_init ();
19462 int
19463 main ()
19464 {
19465 SSL_library_init ();
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472   (eval $ac_link) 2>conftest.er1
19473   ac_status=$?
19474   grep -v '^ *+' conftest.er1 >conftest.err
19475   rm -f conftest.er1
19476   cat conftest.err >&5
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } &&
19479          { ac_try='test -z "$ac_c_werror_flag"
19480                          || test ! -s conftest.err'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; } &&
19486          { ac_try='test -s conftest$ac_exeext'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   ac_cv_lib_ssl_SSL_library_init=yes
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_cv_lib_ssl_SSL_library_init=no
19498 fi
19499 rm -f conftest.err conftest.$ac_objext \
19500       conftest$ac_exeext conftest.$ac_ext
19501 LIBS=$ac_check_lib_save_LIBS
19502 fi
19503 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19504 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19505 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19506   have_openssl=yes
19507                         need_rsaref=no
19508 else
19509   have_openssl=no
19510 fi
19511
19512
19513                 if test $have_openssl = no ; then
19514                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19515 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19516 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19517   echo $ECHO_N "(cached) $ECHO_C" >&6
19518 else
19519   ac_check_lib_save_LIBS=$LIBS
19520 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19521 cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527
19528 /* Override any gcc2 internal prototype to avoid an error.  */
19529 #ifdef __cplusplus
19530 extern "C"
19531 #endif
19532 /* We use char because int might match the return type of a gcc2
19533    builtin and then its argument prototype would still apply.  */
19534 char ssl3_accept ();
19535 int
19536 main ()
19537 {
19538 ssl3_accept ();
19539   ;
19540   return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext conftest$ac_exeext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19545   (eval $ac_link) 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } &&
19552          { ac_try='test -z "$ac_c_werror_flag"
19553                          || test ! -s conftest.err'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; } &&
19559          { ac_try='test -s conftest$ac_exeext'
19560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561   (eval $ac_try) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; }; then
19565   ac_cv_lib_ssl_ssl3_accept=yes
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 ac_cv_lib_ssl_ssl3_accept=no
19571 fi
19572 rm -f conftest.err conftest.$ac_objext \
19573       conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19575 fi
19576 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19577 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19578 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19579   have_openssl=yes
19580                                 need_rsaref=yes
19581 else
19582   have_openssl=no
19583 fi
19584
19585                 fi
19586
19587                 if test $have_openssl = yes ; then
19588                         ol_with_tls=found
19589                         ol_link_tls=yes
19590
19591
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_OPENSSL 1
19594 _ACEOF
19595
19596
19597                         if test $need_rsaref = yes; then
19598
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_RSAREF 1
19601 _ACEOF
19602
19603
19604                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19605                         else
19606                                 TLS_LIBS="-lssl -lcrypto"
19607                         fi
19608                 fi
19609                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19610 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19611 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 else
19614
19615         cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621
19622 #ifdef HAVE_OPENSSL_SSL_H
19623 #include <openssl/ssl.h>
19624 #else
19625 #include <ssl.h>
19626 #endif
19627
19628 /* Require 0.9.7d+ */
19629 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19630         char *__ssl_compat = "0.9.7d";
19631 #endif
19632
19633 _ACEOF
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19636   ol_cv_ssl_crl_compat=yes
19637 else
19638   ol_cv_ssl_crl_compat=no
19639 fi
19640 rm -f conftest*
19641
19642 fi
19643 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19644 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19645
19646                 if test $ol_cv_ssl_crl_compat = no ; then
19647                         ol_link_ssl=no
19648                 else
19649
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE_OPENSSL_CRL 1
19652 _ACEOF
19653
19654                 fi
19655         fi
19656
19657 else
19658         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19659 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19660 fi
19661
19662 WITH_TLS=no
19663 if test $ol_link_tls = yes ; then
19664
19665 cat >>confdefs.h <<\_ACEOF
19666 #define HAVE_TLS 1
19667 _ACEOF
19668
19669         WITH_TLS=yes
19670
19671 elif test $ol_with_tls = auto ; then
19672         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19673 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19674         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19675 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19676
19677 elif test $ol_with_tls != no ; then
19678         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19679 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19680    { (exit 1); exit 1; }; }
19681 fi
19682
19683 if test $ol_enable_lmpasswd != no; then
19684         if test $ol_link_tls != yes ; then
19685                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19686 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19687    { (exit 1); exit 1; }; }
19688         fi
19689
19690
19691 cat >>confdefs.h <<\_ACEOF
19692 #define SLAPD_LMHASH 1
19693 _ACEOF
19694
19695 fi
19696
19697 ol_link_threads=no
19698
19699 case $ol_with_threads in auto | yes | nt)
19700
19701
19702         echo "$as_me:$LINENO: checking for _beginthread" >&5
19703 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19704 if test "${ac_cv_func__beginthread+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707   cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h.  */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h.  */
19713 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19714    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19715 #define _beginthread innocuous__beginthread
19716
19717 /* System header to define __stub macros and hopefully few prototypes,
19718     which can conflict with char _beginthread (); below.
19719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19720     <limits.h> exists even on freestanding compilers.  */
19721
19722 #ifdef __STDC__
19723 # include <limits.h>
19724 #else
19725 # include <assert.h>
19726 #endif
19727
19728 #undef _beginthread
19729
19730 /* Override any gcc2 internal prototype to avoid an error.  */
19731 #ifdef __cplusplus
19732 extern "C"
19733 {
19734 #endif
19735 /* We use char because int might match the return type of a gcc2
19736    builtin and then its argument prototype would still apply.  */
19737 char _beginthread ();
19738 /* The GNU C library defines this for functions which it implements
19739     to always fail with ENOSYS.  Some functions are actually named
19740     something starting with __ and the normal name is an alias.  */
19741 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19742 choke me
19743 #else
19744 char (*f) () = _beginthread;
19745 #endif
19746 #ifdef __cplusplus
19747 }
19748 #endif
19749
19750 int
19751 main ()
19752 {
19753 return f != _beginthread;
19754   ;
19755   return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19760   (eval $ac_link) 2>conftest.er1
19761   ac_status=$?
19762   grep -v '^ *+' conftest.er1 >conftest.err
19763   rm -f conftest.er1
19764   cat conftest.err >&5
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); } &&
19767          { ac_try='test -z "$ac_c_werror_flag"
19768                          || test ! -s conftest.err'
19769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770   (eval $ac_try) 2>&5
19771   ac_status=$?
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); }; } &&
19774          { ac_try='test -s conftest$ac_exeext'
19775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776   (eval $ac_try) 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; }; then
19780   ac_cv_func__beginthread=yes
19781 else
19782   echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19784
19785 ac_cv_func__beginthread=no
19786 fi
19787 rm -f conftest.err conftest.$ac_objext \
19788       conftest$ac_exeext conftest.$ac_ext
19789 fi
19790 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19791 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19792
19793
19794         if test $ac_cv_func__beginthread = yes ; then
19795
19796 cat >>confdefs.h <<\_ACEOF
19797 #define HAVE_NT_THREADS 1
19798 _ACEOF
19799
19800                 ol_cv_nt_threads=yes
19801         fi
19802
19803
19804         if test "$ol_cv_nt_threads" = yes ; then
19805                 ol_link_threads=nt
19806                 ol_with_threads=found
19807                 ol_with_yielding_select=yes
19808
19809
19810 cat >>confdefs.h <<\_ACEOF
19811 #define HAVE_NT_SERVICE_MANAGER 1
19812 _ACEOF
19813
19814
19815 cat >>confdefs.h <<\_ACEOF
19816 #define HAVE_NT_EVENT_LOG 1
19817 _ACEOF
19818
19819         fi
19820
19821         if test $ol_with_threads = nt ; then
19822                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19823 echo "$as_me: error: could not locate NT Threads" >&2;}
19824    { (exit 1); exit 1; }; }
19825         fi
19826         ;;
19827 esac
19828
19829 case $ol_with_threads in auto | yes | posix)
19830
19831
19832 for ac_header in pthread.h
19833 do
19834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19836   echo "$as_me:$LINENO: checking for $ac_header" >&5
19837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19839   echo $ECHO_N "(cached) $ECHO_C" >&6
19840 fi
19841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19843 else
19844   # Is the header compilable?
19845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853 $ac_includes_default
19854 #include <$ac_header>
19855 _ACEOF
19856 rm -f conftest.$ac_objext
19857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19858   (eval $ac_compile) 2>conftest.er1
19859   ac_status=$?
19860   grep -v '^ *+' conftest.er1 >conftest.err
19861   rm -f conftest.er1
19862   cat conftest.err >&5
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); } &&
19865          { ac_try='test -z "$ac_c_werror_flag"
19866                          || test ! -s conftest.err'
19867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868   (eval $ac_try) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; } &&
19872          { ac_try='test -s conftest.$ac_objext'
19873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874   (eval $ac_try) 2>&5
19875   ac_status=$?
19876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877   (exit $ac_status); }; }; then
19878   ac_header_compiler=yes
19879 else
19880   echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883 ac_header_compiler=no
19884 fi
19885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19887 echo "${ECHO_T}$ac_header_compiler" >&6
19888
19889 # Is the header present?
19890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h.  */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h.  */
19898 #include <$ac_header>
19899 _ACEOF
19900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19902   ac_status=$?
19903   grep -v '^ *+' conftest.er1 >conftest.err
19904   rm -f conftest.er1
19905   cat conftest.err >&5
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } >/dev/null; then
19908   if test -s conftest.err; then
19909     ac_cpp_err=$ac_c_preproc_warn_flag
19910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19911   else
19912     ac_cpp_err=
19913   fi
19914 else
19915   ac_cpp_err=yes
19916 fi
19917 if test -z "$ac_cpp_err"; then
19918   ac_header_preproc=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923   ac_header_preproc=no
19924 fi
19925 rm -f conftest.err conftest.$ac_ext
19926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927 echo "${ECHO_T}$ac_header_preproc" >&6
19928
19929 # So?  What about this header?
19930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19931   yes:no: )
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19936     ac_header_preproc=yes
19937     ;;
19938   no:yes:* )
19939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19951     (
19952       cat <<\_ASBOX
19953 ## --------------------------------------------- ##
19954 ## Report this to <http://www.openldap.org/its/> ##
19955 ## --------------------------------------------- ##
19956 _ASBOX
19957     ) |
19958       sed "s/^/$as_me: WARNING:     /" >&2
19959     ;;
19960 esac
19961 echo "$as_me:$LINENO: checking for $ac_header" >&5
19962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19964   echo $ECHO_N "(cached) $ECHO_C" >&6
19965 else
19966   eval "$as_ac_Header=\$ac_header_preproc"
19967 fi
19968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19970
19971 fi
19972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19973   cat >>confdefs.h <<_ACEOF
19974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19975 _ACEOF
19976
19977 fi
19978
19979 done
19980
19981
19982         if test $ac_cv_header_pthread_h = yes ; then
19983                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19984 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19985 if test "${ol_cv_pthread_version+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988
19989         cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h.  */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h.  */
19995
19996 #               include <pthread.h>
19997
19998 int
19999 main ()
20000 {
20001
20002                 int i = PTHREAD_CREATE_JOINABLE;
20003
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20010   (eval $ac_compile) 2>conftest.er1
20011   ac_status=$?
20012   grep -v '^ *+' conftest.er1 >conftest.err
20013   rm -f conftest.er1
20014   cat conftest.err >&5
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } &&
20017          { ac_try='test -z "$ac_c_werror_flag"
20018                          || test ! -s conftest.err'
20019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020   (eval $ac_try) 2>&5
20021   ac_status=$?
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); }; } &&
20024          { ac_try='test -s conftest.$ac_objext'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; }; then
20030
20031         cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h.  */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h.  */
20037 #include <pthread.h>
20038
20039 _ACEOF
20040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20041   $EGREP "pthread_detach" >/dev/null 2>&1; then
20042   ol_cv_pthread_version=10
20043 else
20044   ol_cv_pthread_version=8
20045 fi
20046 rm -f conftest*
20047
20048 else
20049   echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052
20053         cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059
20060 #               include <pthread.h>
20061 #               ifdef PTHREAD_CREATE_UNDETACHED
20062                 draft7
20063 #               endif
20064
20065 _ACEOF
20066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20067   $EGREP "draft7" >/dev/null 2>&1; then
20068   ol_cv_pthread_version=7
20069 else
20070
20071         cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h.  */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h.  */
20077 #include <pthread.h>
20078
20079 _ACEOF
20080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20081   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20082   ol_cv_pthread_version=6
20083 else
20084
20085         cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h.  */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h.  */
20091
20092 #               include <pthread.h>
20093 #ifdef          PTHREAD_MUTEX_INITIALIZER
20094                 draft5
20095 #endif
20096
20097 _ACEOF
20098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20099   $EGREP "draft5" >/dev/null 2>&1; then
20100   ol_cv_pthread_version=5
20101 else
20102   ol_cv_pthread_version=4
20103 fi
20104 rm -f conftest*
20105
20106 fi
20107 rm -f conftest*
20108
20109 fi
20110 rm -f conftest*
20111
20112 fi
20113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20114
20115 fi
20116 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20117 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20118
20119
20120                 if test $ol_cv_pthread_version != 0 ; then
20121
20122 cat >>confdefs.h <<_ACEOF
20123 #define HAVE_PTHREADS $ol_cv_pthread_version
20124 _ACEOF
20125
20126                 else
20127                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20128 echo "$as_me: error: unknown pthread version" >&2;}
20129    { (exit 1); exit 1; }; }
20130                 fi
20131
20132                 # consider threads found
20133                 ol_with_threads=found
20134
20135
20136         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20137 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20138 if test "${ol_cv_header_linux_threads+set}" = set; then
20139   echo $ECHO_N "(cached) $ECHO_C" >&6
20140 else
20141   cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 #include <pthread.h>
20148 _ACEOF
20149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20150   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20151   ol_cv_header_linux_threads=yes
20152 else
20153   ol_cv_header_linux_threads=no
20154 fi
20155 rm -f conftest*
20156
20157
20158 fi
20159 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20160 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20161         if test $ol_cv_header_linux_threads = yes; then
20162
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_LINUX_THREADS 1
20165 _ACEOF
20166
20167         fi
20168
20169
20170         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20171 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20172 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20173   echo $ECHO_N "(cached) $ECHO_C" >&6
20174 else
20175   cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h.  */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h.  */
20181 #include <pthread.h>
20182 #ifdef _POSIX_THREAD_IS_GNU_PTH
20183         __gnu_pth__;
20184 #endif
20185
20186 _ACEOF
20187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20188   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20189   ol_cv_header_gnu_pth_pthread_h=yes
20190 else
20191   ol_cv_header_gnu_pth_pthread_h=no
20192 fi
20193 rm -f conftest*
20194
20195
20196 fi
20197 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20198 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20199
20200
20201                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20202
20203 for ac_header in sched.h
20204 do
20205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20207   echo "$as_me:$LINENO: checking for $ac_header" >&5
20208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 fi
20212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20214 else
20215   # Is the header compilable?
20216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224 $ac_includes_default
20225 #include <$ac_header>
20226 _ACEOF
20227 rm -f conftest.$ac_objext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20229   (eval $ac_compile) 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } &&
20236          { ac_try='test -z "$ac_c_werror_flag"
20237                          || test ! -s conftest.err'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; } &&
20243          { ac_try='test -s conftest.$ac_objext'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_header_compiler=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 ac_header_compiler=no
20255 fi
20256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20258 echo "${ECHO_T}$ac_header_compiler" >&6
20259
20260 # Is the header present?
20261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h.  */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h.  */
20269 #include <$ac_header>
20270 _ACEOF
20271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20273   ac_status=$?
20274   grep -v '^ *+' conftest.er1 >conftest.err
20275   rm -f conftest.er1
20276   cat conftest.err >&5
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); } >/dev/null; then
20279   if test -s conftest.err; then
20280     ac_cpp_err=$ac_c_preproc_warn_flag
20281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20282   else
20283     ac_cpp_err=
20284   fi
20285 else
20286   ac_cpp_err=yes
20287 fi
20288 if test -z "$ac_cpp_err"; then
20289   ac_header_preproc=yes
20290 else
20291   echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294   ac_header_preproc=no
20295 fi
20296 rm -f conftest.err conftest.$ac_ext
20297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20298 echo "${ECHO_T}$ac_header_preproc" >&6
20299
20300 # So?  What about this header?
20301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20302   yes:no: )
20303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20307     ac_header_preproc=yes
20308     ;;
20309   no:yes:* )
20310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20322     (
20323       cat <<\_ASBOX
20324 ## --------------------------------------------- ##
20325 ## Report this to <http://www.openldap.org/its/> ##
20326 ## --------------------------------------------- ##
20327 _ASBOX
20328     ) |
20329       sed "s/^/$as_me: WARNING:     /" >&2
20330     ;;
20331 esac
20332 echo "$as_me:$LINENO: checking for $ac_header" >&5
20333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20335   echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337   eval "$as_ac_Header=\$ac_header_preproc"
20338 fi
20339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20341
20342 fi
20343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20344   cat >>confdefs.h <<_ACEOF
20345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20346 _ACEOF
20347
20348 fi
20349
20350 done
20351
20352                 fi
20353
20354
20355                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20356 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20357 if test "${ol_cv_pthread_create+set}" = set; then
20358   echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360
20361                         if test "$cross_compiling" = yes; then
20362   cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368
20369 /* pthread test headers */
20370 #include <pthread.h>
20371 #if HAVE_PTHREADS < 7
20372 #include <errno.h>
20373 #endif
20374 #ifndef NULL
20375 #define NULL (void*)0
20376 #endif
20377
20378 static void *task(p)
20379         void *p;
20380 {
20381         return (void *) (p == NULL);
20382 }
20383
20384 int
20385 main ()
20386 {
20387
20388         /* pthread test function */
20389 #ifndef PTHREAD_CREATE_DETACHED
20390 #define PTHREAD_CREATE_DETACHED 1
20391 #endif
20392         pthread_t t;
20393         int status;
20394         int detach = PTHREAD_CREATE_DETACHED;
20395
20396 #if HAVE_PTHREADS > 4
20397         /* Final pthreads */
20398         pthread_attr_t attr;
20399
20400         status = pthread_attr_init(&attr);
20401         if( status ) return status;
20402
20403 #if HAVE_PTHREADS < 7
20404         status = pthread_attr_setdetachstate(&attr, &detach);
20405         if( status < 0 ) status = errno;
20406 #else
20407         status = pthread_attr_setdetachstate(&attr, detach);
20408 #endif
20409         if( status ) return status;
20410         status = pthread_create( &t, &attr, task, NULL );
20411 #if HAVE_PTHREADS < 7
20412         if( status < 0 ) status = errno;
20413 #endif
20414         if( status ) return status;
20415 #else
20416         /* Draft 4 pthreads */
20417         status = pthread_create( &t, pthread_attr_default, task, NULL );
20418         if( status ) return errno;
20419
20420         /* give thread a chance to complete */
20421         /* it should remain joinable and hence detachable */
20422         sleep( 1 );
20423
20424         status = pthread_detach( &t );
20425         if( status ) return errno;
20426 #endif
20427
20428 #ifdef HAVE_LINUX_THREADS
20429         pthread_kill_other_threads_np();
20430 #endif
20431
20432         return 0;
20433
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440   (eval $ac_link) 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } &&
20447          { ac_try='test -z "$ac_c_werror_flag"
20448                          || test ! -s conftest.err'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; } &&
20454          { ac_try='test -s conftest$ac_exeext'
20455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456   (eval $ac_try) 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); }; }; then
20460   ol_cv_pthread_create=yes
20461 else
20462   echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 ol_cv_pthread_create=no
20466 fi
20467 rm -f conftest.err conftest.$ac_objext \
20468       conftest$ac_exeext conftest.$ac_ext
20469 else
20470   cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476
20477 /* pthread test headers */
20478 #include <pthread.h>
20479 #if HAVE_PTHREADS < 7
20480 #include <errno.h>
20481 #endif
20482 #ifndef NULL
20483 #define NULL (void*)0
20484 #endif
20485
20486 static void *task(p)
20487         void *p;
20488 {
20489         return (void *) (p == NULL);
20490 }
20491
20492
20493 int main(argc, argv)
20494         int argc;
20495         char **argv;
20496 {
20497
20498         /* pthread test function */
20499 #ifndef PTHREAD_CREATE_DETACHED
20500 #define PTHREAD_CREATE_DETACHED 1
20501 #endif
20502         pthread_t t;
20503         int status;
20504         int detach = PTHREAD_CREATE_DETACHED;
20505
20506 #if HAVE_PTHREADS > 4
20507         /* Final pthreads */
20508         pthread_attr_t attr;
20509
20510         status = pthread_attr_init(&attr);
20511         if( status ) return status;
20512
20513 #if HAVE_PTHREADS < 7
20514         status = pthread_attr_setdetachstate(&attr, &detach);
20515         if( status < 0 ) status = errno;
20516 #else
20517         status = pthread_attr_setdetachstate(&attr, detach);
20518 #endif
20519         if( status ) return status;
20520         status = pthread_create( &t, &attr, task, NULL );
20521 #if HAVE_PTHREADS < 7
20522         if( status < 0 ) status = errno;
20523 #endif
20524         if( status ) return status;
20525 #else
20526         /* Draft 4 pthreads */
20527         status = pthread_create( &t, pthread_attr_default, task, NULL );
20528         if( status ) return errno;
20529
20530         /* give thread a chance to complete */
20531         /* it should remain joinable and hence detachable */
20532         sleep( 1 );
20533
20534         status = pthread_detach( &t );
20535         if( status ) return errno;
20536 #endif
20537
20538 #ifdef HAVE_LINUX_THREADS
20539         pthread_kill_other_threads_np();
20540 #endif
20541
20542         return 0;
20543
20544 }
20545
20546 _ACEOF
20547 rm -f conftest$ac_exeext
20548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20549   (eval $ac_link) 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554   (eval $ac_try) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; }; then
20558   ol_cv_pthread_create=yes
20559 else
20560   echo "$as_me: program exited with status $ac_status" >&5
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 ( exit $ac_status )
20565 ol_cv_pthread_create=no
20566 fi
20567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20568 fi
20569 fi
20570 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20571 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20572
20573                 if test $ol_cv_pthread_create != no ; then
20574                         ol_link_threads=posix
20575                         ol_link_pthreads=""
20576                 fi
20577
20578                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20579 if test "$ol_link_threads" = no ; then
20580         # try -kthread
20581         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20582 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20583 if test "${ol_cv_pthread_kthread+set}" = set; then
20584   echo $ECHO_N "(cached) $ECHO_C" >&6
20585 else
20586
20587                 # save the flags
20588                 ol_LIBS="$LIBS"
20589                 LIBS="-kthread $LIBS"
20590
20591                 if test "$cross_compiling" = yes; then
20592   cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598
20599 /* pthread test headers */
20600 #include <pthread.h>
20601 #if HAVE_PTHREADS < 7
20602 #include <errno.h>
20603 #endif
20604 #ifndef NULL
20605 #define NULL (void*)0
20606 #endif
20607
20608 static void *task(p)
20609         void *p;
20610 {
20611         return (void *) (p == NULL);
20612 }
20613
20614 int
20615 main ()
20616 {
20617
20618         /* pthread test function */
20619 #ifndef PTHREAD_CREATE_DETACHED
20620 #define PTHREAD_CREATE_DETACHED 1
20621 #endif
20622         pthread_t t;
20623         int status;
20624         int detach = PTHREAD_CREATE_DETACHED;
20625
20626 #if HAVE_PTHREADS > 4
20627         /* Final pthreads */
20628         pthread_attr_t attr;
20629
20630         status = pthread_attr_init(&attr);
20631         if( status ) return status;
20632
20633 #if HAVE_PTHREADS < 7
20634         status = pthread_attr_setdetachstate(&attr, &detach);
20635         if( status < 0 ) status = errno;
20636 #else
20637         status = pthread_attr_setdetachstate(&attr, detach);
20638 #endif
20639         if( status ) return status;
20640         status = pthread_create( &t, &attr, task, NULL );
20641 #if HAVE_PTHREADS < 7
20642         if( status < 0 ) status = errno;
20643 #endif
20644         if( status ) return status;
20645 #else
20646         /* Draft 4 pthreads */
20647         status = pthread_create( &t, pthread_attr_default, task, NULL );
20648         if( status ) return errno;
20649
20650         /* give thread a chance to complete */
20651         /* it should remain joinable and hence detachable */
20652         sleep( 1 );
20653
20654         status = pthread_detach( &t );
20655         if( status ) return errno;
20656 #endif
20657
20658 #ifdef HAVE_LINUX_THREADS
20659         pthread_kill_other_threads_np();
20660 #endif
20661
20662         return 0;
20663
20664   ;
20665   return 0;
20666 }
20667 _ACEOF
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670   (eval $ac_link) 2>conftest.er1
20671   ac_status=$?
20672   grep -v '^ *+' conftest.er1 >conftest.err
20673   rm -f conftest.er1
20674   cat conftest.err >&5
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); } &&
20677          { ac_try='test -z "$ac_c_werror_flag"
20678                          || test ! -s conftest.err'
20679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680   (eval $ac_try) 2>&5
20681   ac_status=$?
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); }; } &&
20684          { ac_try='test -s conftest$ac_exeext'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   ol_cv_pthread_kthread=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695 ol_cv_pthread_kthread=no
20696 fi
20697 rm -f conftest.err conftest.$ac_objext \
20698       conftest$ac_exeext conftest.$ac_ext
20699 else
20700   cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h.  */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h.  */
20706
20707 /* pthread test headers */
20708 #include <pthread.h>
20709 #if HAVE_PTHREADS < 7
20710 #include <errno.h>
20711 #endif
20712 #ifndef NULL
20713 #define NULL (void*)0
20714 #endif
20715
20716 static void *task(p)
20717         void *p;
20718 {
20719         return (void *) (p == NULL);
20720 }
20721
20722
20723 int main(argc, argv)
20724         int argc;
20725         char **argv;
20726 {
20727
20728         /* pthread test function */
20729 #ifndef PTHREAD_CREATE_DETACHED
20730 #define PTHREAD_CREATE_DETACHED 1
20731 #endif
20732         pthread_t t;
20733         int status;
20734         int detach = PTHREAD_CREATE_DETACHED;
20735
20736 #if HAVE_PTHREADS > 4
20737         /* Final pthreads */
20738         pthread_attr_t attr;
20739
20740         status = pthread_attr_init(&attr);
20741         if( status ) return status;
20742
20743 #if HAVE_PTHREADS < 7
20744         status = pthread_attr_setdetachstate(&attr, &detach);
20745         if( status < 0 ) status = errno;
20746 #else
20747         status = pthread_attr_setdetachstate(&attr, detach);
20748 #endif
20749         if( status ) return status;
20750         status = pthread_create( &t, &attr, task, NULL );
20751 #if HAVE_PTHREADS < 7
20752         if( status < 0 ) status = errno;
20753 #endif
20754         if( status ) return status;
20755 #else
20756         /* Draft 4 pthreads */
20757         status = pthread_create( &t, pthread_attr_default, task, NULL );
20758         if( status ) return errno;
20759
20760         /* give thread a chance to complete */
20761         /* it should remain joinable and hence detachable */
20762         sleep( 1 );
20763
20764         status = pthread_detach( &t );
20765         if( status ) return errno;
20766 #endif
20767
20768 #ifdef HAVE_LINUX_THREADS
20769         pthread_kill_other_threads_np();
20770 #endif
20771
20772         return 0;
20773
20774 }
20775
20776 _ACEOF
20777 rm -f conftest$ac_exeext
20778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20779   (eval $ac_link) 2>&5
20780   ac_status=$?
20781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   ol_cv_pthread_kthread=yes
20789 else
20790   echo "$as_me: program exited with status $ac_status" >&5
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 ( exit $ac_status )
20795 ol_cv_pthread_kthread=no
20796 fi
20797 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20798 fi
20799
20800                 # restore the LIBS
20801                 LIBS="$ol_LIBS"
20802
20803 fi
20804 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20805 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20806
20807         if test $ol_cv_pthread_kthread = yes ; then
20808                 ol_link_pthreads="-kthread"
20809                 ol_link_threads=posix
20810         fi
20811 fi
20812
20813                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20814 if test "$ol_link_threads" = no ; then
20815         # try -pthread
20816         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20817 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20818 if test "${ol_cv_pthread_pthread+set}" = set; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821
20822                 # save the flags
20823                 ol_LIBS="$LIBS"
20824                 LIBS="-pthread $LIBS"
20825
20826                 if test "$cross_compiling" = yes; then
20827   cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h.  */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h.  */
20833
20834 /* pthread test headers */
20835 #include <pthread.h>
20836 #if HAVE_PTHREADS < 7
20837 #include <errno.h>
20838 #endif
20839 #ifndef NULL
20840 #define NULL (void*)0
20841 #endif
20842
20843 static void *task(p)
20844         void *p;
20845 {
20846         return (void *) (p == NULL);
20847 }
20848
20849 int
20850 main ()
20851 {
20852
20853         /* pthread test function */
20854 #ifndef PTHREAD_CREATE_DETACHED
20855 #define PTHREAD_CREATE_DETACHED 1
20856 #endif
20857         pthread_t t;
20858         int status;
20859         int detach = PTHREAD_CREATE_DETACHED;
20860
20861 #if HAVE_PTHREADS > 4
20862         /* Final pthreads */
20863         pthread_attr_t attr;
20864
20865         status = pthread_attr_init(&attr);
20866         if( status ) return status;
20867
20868 #if HAVE_PTHREADS < 7
20869         status = pthread_attr_setdetachstate(&attr, &detach);
20870         if( status < 0 ) status = errno;
20871 #else
20872         status = pthread_attr_setdetachstate(&attr, detach);
20873 #endif
20874         if( status ) return status;
20875         status = pthread_create( &t, &attr, task, NULL );
20876 #if HAVE_PTHREADS < 7
20877         if( status < 0 ) status = errno;
20878 #endif
20879         if( status ) return status;
20880 #else
20881         /* Draft 4 pthreads */
20882         status = pthread_create( &t, pthread_attr_default, task, NULL );
20883         if( status ) return errno;
20884
20885         /* give thread a chance to complete */
20886         /* it should remain joinable and hence detachable */
20887         sleep( 1 );
20888
20889         status = pthread_detach( &t );
20890         if( status ) return errno;
20891 #endif
20892
20893 #ifdef HAVE_LINUX_THREADS
20894         pthread_kill_other_threads_np();
20895 #endif
20896
20897         return 0;
20898
20899   ;
20900   return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest.$ac_objext conftest$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905   (eval $ac_link) 2>conftest.er1
20906   ac_status=$?
20907   grep -v '^ *+' conftest.er1 >conftest.err
20908   rm -f conftest.er1
20909   cat conftest.err >&5
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } &&
20912          { ac_try='test -z "$ac_c_werror_flag"
20913                          || test ! -s conftest.err'
20914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915   (eval $ac_try) 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); }; } &&
20919          { ac_try='test -s conftest$ac_exeext'
20920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921   (eval $ac_try) 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; }; then
20925   ol_cv_pthread_pthread=yes
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 ol_cv_pthread_pthread=no
20931 fi
20932 rm -f conftest.err conftest.$ac_objext \
20933       conftest$ac_exeext conftest.$ac_ext
20934 else
20935   cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941
20942 /* pthread test headers */
20943 #include <pthread.h>
20944 #if HAVE_PTHREADS < 7
20945 #include <errno.h>
20946 #endif
20947 #ifndef NULL
20948 #define NULL (void*)0
20949 #endif
20950
20951 static void *task(p)
20952         void *p;
20953 {
20954         return (void *) (p == NULL);
20955 }
20956
20957
20958 int main(argc, argv)
20959         int argc;
20960         char **argv;
20961 {
20962
20963         /* pthread test function */
20964 #ifndef PTHREAD_CREATE_DETACHED
20965 #define PTHREAD_CREATE_DETACHED 1
20966 #endif
20967         pthread_t t;
20968         int status;
20969         int detach = PTHREAD_CREATE_DETACHED;
20970
20971 #if HAVE_PTHREADS > 4
20972         /* Final pthreads */
20973         pthread_attr_t attr;
20974
20975         status = pthread_attr_init(&attr);
20976         if( status ) return status;
20977
20978 #if HAVE_PTHREADS < 7
20979         status = pthread_attr_setdetachstate(&attr, &detach);
20980         if( status < 0 ) status = errno;
20981 #else
20982         status = pthread_attr_setdetachstate(&attr, detach);
20983 #endif
20984         if( status ) return status;
20985         status = pthread_create( &t, &attr, task, NULL );
20986 #if HAVE_PTHREADS < 7
20987         if( status < 0 ) status = errno;
20988 #endif
20989         if( status ) return status;
20990 #else
20991         /* Draft 4 pthreads */
20992         status = pthread_create( &t, pthread_attr_default, task, NULL );
20993         if( status ) return errno;
20994
20995         /* give thread a chance to complete */
20996         /* it should remain joinable and hence detachable */
20997         sleep( 1 );
20998
20999         status = pthread_detach( &t );
21000         if( status ) return errno;
21001 #endif
21002
21003 #ifdef HAVE_LINUX_THREADS
21004         pthread_kill_other_threads_np();
21005 #endif
21006
21007         return 0;
21008
21009 }
21010
21011 _ACEOF
21012 rm -f conftest$ac_exeext
21013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21014   (eval $ac_link) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019   (eval $ac_try) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; }; then
21023   ol_cv_pthread_pthread=yes
21024 else
21025   echo "$as_me: program exited with status $ac_status" >&5
21026 echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 ( exit $ac_status )
21030 ol_cv_pthread_pthread=no
21031 fi
21032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21033 fi
21034
21035                 # restore the LIBS
21036                 LIBS="$ol_LIBS"
21037
21038 fi
21039 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21040 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21041
21042         if test $ol_cv_pthread_pthread = yes ; then
21043                 ol_link_pthreads="-pthread"
21044                 ol_link_threads=posix
21045         fi
21046 fi
21047
21048                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21049 if test "$ol_link_threads" = no ; then
21050         # try -pthreads
21051         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21052 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21053 if test "${ol_cv_pthread_pthreads+set}" = set; then
21054   echo $ECHO_N "(cached) $ECHO_C" >&6
21055 else
21056
21057                 # save the flags
21058                 ol_LIBS="$LIBS"
21059                 LIBS="-pthreads $LIBS"
21060
21061                 if test "$cross_compiling" = yes; then
21062   cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h.  */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h.  */
21068
21069 /* pthread test headers */
21070 #include <pthread.h>
21071 #if HAVE_PTHREADS < 7
21072 #include <errno.h>
21073 #endif
21074 #ifndef NULL
21075 #define NULL (void*)0
21076 #endif
21077
21078 static void *task(p)
21079         void *p;
21080 {
21081         return (void *) (p == NULL);
21082 }
21083
21084 int
21085 main ()
21086 {
21087
21088         /* pthread test function */
21089 #ifndef PTHREAD_CREATE_DETACHED
21090 #define PTHREAD_CREATE_DETACHED 1
21091 #endif
21092         pthread_t t;
21093         int status;
21094         int detach = PTHREAD_CREATE_DETACHED;
21095
21096 #if HAVE_PTHREADS > 4
21097         /* Final pthreads */
21098         pthread_attr_t attr;
21099
21100         status = pthread_attr_init(&attr);
21101         if( status ) return status;
21102
21103 #if HAVE_PTHREADS < 7
21104         status = pthread_attr_setdetachstate(&attr, &detach);
21105         if( status < 0 ) status = errno;
21106 #else
21107         status = pthread_attr_setdetachstate(&attr, detach);
21108 #endif
21109         if( status ) return status;
21110         status = pthread_create( &t, &attr, task, NULL );
21111 #if HAVE_PTHREADS < 7
21112         if( status < 0 ) status = errno;
21113 #endif
21114         if( status ) return status;
21115 #else
21116         /* Draft 4 pthreads */
21117         status = pthread_create( &t, pthread_attr_default, task, NULL );
21118         if( status ) return errno;
21119
21120         /* give thread a chance to complete */
21121         /* it should remain joinable and hence detachable */
21122         sleep( 1 );
21123
21124         status = pthread_detach( &t );
21125         if( status ) return errno;
21126 #endif
21127
21128 #ifdef HAVE_LINUX_THREADS
21129         pthread_kill_other_threads_np();
21130 #endif
21131
21132         return 0;
21133
21134   ;
21135   return 0;
21136 }
21137 _ACEOF
21138 rm -f conftest.$ac_objext conftest$ac_exeext
21139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140   (eval $ac_link) 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } &&
21147          { ac_try='test -z "$ac_c_werror_flag"
21148                          || test ! -s conftest.err'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; } &&
21154          { ac_try='test -s conftest$ac_exeext'
21155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156   (eval $ac_try) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   ol_cv_pthread_pthreads=yes
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 ol_cv_pthread_pthreads=no
21166 fi
21167 rm -f conftest.err conftest.$ac_objext \
21168       conftest$ac_exeext conftest.$ac_ext
21169 else
21170   cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h.  */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h.  */
21176
21177 /* pthread test headers */
21178 #include <pthread.h>
21179 #if HAVE_PTHREADS < 7
21180 #include <errno.h>
21181 #endif
21182 #ifndef NULL
21183 #define NULL (void*)0
21184 #endif
21185
21186 static void *task(p)
21187         void *p;
21188 {
21189         return (void *) (p == NULL);
21190 }
21191
21192
21193 int main(argc, argv)
21194         int argc;
21195         char **argv;
21196 {
21197
21198         /* pthread test function */
21199 #ifndef PTHREAD_CREATE_DETACHED
21200 #define PTHREAD_CREATE_DETACHED 1
21201 #endif
21202         pthread_t t;
21203         int status;
21204         int detach = PTHREAD_CREATE_DETACHED;
21205
21206 #if HAVE_PTHREADS > 4
21207         /* Final pthreads */
21208         pthread_attr_t attr;
21209
21210         status = pthread_attr_init(&attr);
21211         if( status ) return status;
21212
21213 #if HAVE_PTHREADS < 7
21214         status = pthread_attr_setdetachstate(&attr, &detach);
21215         if( status < 0 ) status = errno;
21216 #else
21217         status = pthread_attr_setdetachstate(&attr, detach);
21218 #endif
21219         if( status ) return status;
21220         status = pthread_create( &t, &attr, task, NULL );
21221 #if HAVE_PTHREADS < 7
21222         if( status < 0 ) status = errno;
21223 #endif
21224         if( status ) return status;
21225 #else
21226         /* Draft 4 pthreads */
21227         status = pthread_create( &t, pthread_attr_default, task, NULL );
21228         if( status ) return errno;
21229
21230         /* give thread a chance to complete */
21231         /* it should remain joinable and hence detachable */
21232         sleep( 1 );
21233
21234         status = pthread_detach( &t );
21235         if( status ) return errno;
21236 #endif
21237
21238 #ifdef HAVE_LINUX_THREADS
21239         pthread_kill_other_threads_np();
21240 #endif
21241
21242         return 0;
21243
21244 }
21245
21246 _ACEOF
21247 rm -f conftest$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249   (eval $ac_link) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254   (eval $ac_try) 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); }; }; then
21258   ol_cv_pthread_pthreads=yes
21259 else
21260   echo "$as_me: program exited with status $ac_status" >&5
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ( exit $ac_status )
21265 ol_cv_pthread_pthreads=no
21266 fi
21267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21268 fi
21269
21270                 # restore the LIBS
21271                 LIBS="$ol_LIBS"
21272
21273 fi
21274 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21275 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21276
21277         if test $ol_cv_pthread_pthreads = yes ; then
21278                 ol_link_pthreads="-pthreads"
21279                 ol_link_threads=posix
21280         fi
21281 fi
21282
21283                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21284 if test "$ol_link_threads" = no ; then
21285         # try -mthreads
21286         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21287 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21288 if test "${ol_cv_pthread_mthreads+set}" = set; then
21289   echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291
21292                 # save the flags
21293                 ol_LIBS="$LIBS"
21294                 LIBS="-mthreads $LIBS"
21295
21296                 if test "$cross_compiling" = yes; then
21297   cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h.  */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h.  */
21303
21304 /* pthread test headers */
21305 #include <pthread.h>
21306 #if HAVE_PTHREADS < 7
21307 #include <errno.h>
21308 #endif
21309 #ifndef NULL
21310 #define NULL (void*)0
21311 #endif
21312
21313 static void *task(p)
21314         void *p;
21315 {
21316         return (void *) (p == NULL);
21317 }
21318
21319 int
21320 main ()
21321 {
21322
21323         /* pthread test function */
21324 #ifndef PTHREAD_CREATE_DETACHED
21325 #define PTHREAD_CREATE_DETACHED 1
21326 #endif
21327         pthread_t t;
21328         int status;
21329         int detach = PTHREAD_CREATE_DETACHED;
21330
21331 #if HAVE_PTHREADS > 4
21332         /* Final pthreads */
21333         pthread_attr_t attr;
21334
21335         status = pthread_attr_init(&attr);
21336         if( status ) return status;
21337
21338 #if HAVE_PTHREADS < 7
21339         status = pthread_attr_setdetachstate(&attr, &detach);
21340         if( status < 0 ) status = errno;
21341 #else
21342         status = pthread_attr_setdetachstate(&attr, detach);
21343 #endif
21344         if( status ) return status;
21345         status = pthread_create( &t, &attr, task, NULL );
21346 #if HAVE_PTHREADS < 7
21347         if( status < 0 ) status = errno;
21348 #endif
21349         if( status ) return status;
21350 #else
21351         /* Draft 4 pthreads */
21352         status = pthread_create( &t, pthread_attr_default, task, NULL );
21353         if( status ) return errno;
21354
21355         /* give thread a chance to complete */
21356         /* it should remain joinable and hence detachable */
21357         sleep( 1 );
21358
21359         status = pthread_detach( &t );
21360         if( status ) return errno;
21361 #endif
21362
21363 #ifdef HAVE_LINUX_THREADS
21364         pthread_kill_other_threads_np();
21365 #endif
21366
21367         return 0;
21368
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext conftest$ac_exeext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21375   (eval $ac_link) 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } &&
21382          { ac_try='test -z "$ac_c_werror_flag"
21383                          || test ! -s conftest.err'
21384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385   (eval $ac_try) 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; } &&
21389          { ac_try='test -s conftest$ac_exeext'
21390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391   (eval $ac_try) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }; }; then
21395   ol_cv_pthread_mthreads=yes
21396 else
21397   echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 ol_cv_pthread_mthreads=no
21401 fi
21402 rm -f conftest.err conftest.$ac_objext \
21403       conftest$ac_exeext conftest.$ac_ext
21404 else
21405   cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h.  */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h.  */
21411
21412 /* pthread test headers */
21413 #include <pthread.h>
21414 #if HAVE_PTHREADS < 7
21415 #include <errno.h>
21416 #endif
21417 #ifndef NULL
21418 #define NULL (void*)0
21419 #endif
21420
21421 static void *task(p)
21422         void *p;
21423 {
21424         return (void *) (p == NULL);
21425 }
21426
21427
21428 int main(argc, argv)
21429         int argc;
21430         char **argv;
21431 {
21432
21433         /* pthread test function */
21434 #ifndef PTHREAD_CREATE_DETACHED
21435 #define PTHREAD_CREATE_DETACHED 1
21436 #endif
21437         pthread_t t;
21438         int status;
21439         int detach = PTHREAD_CREATE_DETACHED;
21440
21441 #if HAVE_PTHREADS > 4
21442         /* Final pthreads */
21443         pthread_attr_t attr;
21444
21445         status = pthread_attr_init(&attr);
21446         if( status ) return status;
21447
21448 #if HAVE_PTHREADS < 7
21449         status = pthread_attr_setdetachstate(&attr, &detach);
21450         if( status < 0 ) status = errno;
21451 #else
21452         status = pthread_attr_setdetachstate(&attr, detach);
21453 #endif
21454         if( status ) return status;
21455         status = pthread_create( &t, &attr, task, NULL );
21456 #if HAVE_PTHREADS < 7
21457         if( status < 0 ) status = errno;
21458 #endif
21459         if( status ) return status;
21460 #else
21461         /* Draft 4 pthreads */
21462         status = pthread_create( &t, pthread_attr_default, task, NULL );
21463         if( status ) return errno;
21464
21465         /* give thread a chance to complete */
21466         /* it should remain joinable and hence detachable */
21467         sleep( 1 );
21468
21469         status = pthread_detach( &t );
21470         if( status ) return errno;
21471 #endif
21472
21473 #ifdef HAVE_LINUX_THREADS
21474         pthread_kill_other_threads_np();
21475 #endif
21476
21477         return 0;
21478
21479 }
21480
21481 _ACEOF
21482 rm -f conftest$ac_exeext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21484   (eval $ac_link) 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; }; then
21493   ol_cv_pthread_mthreads=yes
21494 else
21495   echo "$as_me: program exited with status $ac_status" >&5
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 ( exit $ac_status )
21500 ol_cv_pthread_mthreads=no
21501 fi
21502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21503 fi
21504
21505                 # restore the LIBS
21506                 LIBS="$ol_LIBS"
21507
21508 fi
21509 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21510 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21511
21512         if test $ol_cv_pthread_mthreads = yes ; then
21513                 ol_link_pthreads="-mthreads"
21514                 ol_link_threads=posix
21515         fi
21516 fi
21517
21518                 # Pthread try link: -thread (ol_cv_pthread_thread)
21519 if test "$ol_link_threads" = no ; then
21520         # try -thread
21521         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21522 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21523 if test "${ol_cv_pthread_thread+set}" = set; then
21524   echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526
21527                 # save the flags
21528                 ol_LIBS="$LIBS"
21529                 LIBS="-thread $LIBS"
21530
21531                 if test "$cross_compiling" = yes; then
21532   cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h.  */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h.  */
21538
21539 /* pthread test headers */
21540 #include <pthread.h>
21541 #if HAVE_PTHREADS < 7
21542 #include <errno.h>
21543 #endif
21544 #ifndef NULL
21545 #define NULL (void*)0
21546 #endif
21547
21548 static void *task(p)
21549         void *p;
21550 {
21551         return (void *) (p == NULL);
21552 }
21553
21554 int
21555 main ()
21556 {
21557
21558         /* pthread test function */
21559 #ifndef PTHREAD_CREATE_DETACHED
21560 #define PTHREAD_CREATE_DETACHED 1
21561 #endif
21562         pthread_t t;
21563         int status;
21564         int detach = PTHREAD_CREATE_DETACHED;
21565
21566 #if HAVE_PTHREADS > 4
21567         /* Final pthreads */
21568         pthread_attr_t attr;
21569
21570         status = pthread_attr_init(&attr);
21571         if( status ) return status;
21572
21573 #if HAVE_PTHREADS < 7
21574         status = pthread_attr_setdetachstate(&attr, &detach);
21575         if( status < 0 ) status = errno;
21576 #else
21577         status = pthread_attr_setdetachstate(&attr, detach);
21578 #endif
21579         if( status ) return status;
21580         status = pthread_create( &t, &attr, task, NULL );
21581 #if HAVE_PTHREADS < 7
21582         if( status < 0 ) status = errno;
21583 #endif
21584         if( status ) return status;
21585 #else
21586         /* Draft 4 pthreads */
21587         status = pthread_create( &t, pthread_attr_default, task, NULL );
21588         if( status ) return errno;
21589
21590         /* give thread a chance to complete */
21591         /* it should remain joinable and hence detachable */
21592         sleep( 1 );
21593
21594         status = pthread_detach( &t );
21595         if( status ) return errno;
21596 #endif
21597
21598 #ifdef HAVE_LINUX_THREADS
21599         pthread_kill_other_threads_np();
21600 #endif
21601
21602         return 0;
21603
21604   ;
21605   return 0;
21606 }
21607 _ACEOF
21608 rm -f conftest.$ac_objext conftest$ac_exeext
21609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21610   (eval $ac_link) 2>conftest.er1
21611   ac_status=$?
21612   grep -v '^ *+' conftest.er1 >conftest.err
21613   rm -f conftest.er1
21614   cat conftest.err >&5
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); } &&
21617          { ac_try='test -z "$ac_c_werror_flag"
21618                          || test ! -s conftest.err'
21619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620   (eval $ac_try) 2>&5
21621   ac_status=$?
21622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623   (exit $ac_status); }; } &&
21624          { ac_try='test -s conftest$ac_exeext'
21625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626   (eval $ac_try) 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }; }; then
21630   ol_cv_pthread_thread=yes
21631 else
21632   echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635 ol_cv_pthread_thread=no
21636 fi
21637 rm -f conftest.err conftest.$ac_objext \
21638       conftest$ac_exeext conftest.$ac_ext
21639 else
21640   cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h.  */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h.  */
21646
21647 /* pthread test headers */
21648 #include <pthread.h>
21649 #if HAVE_PTHREADS < 7
21650 #include <errno.h>
21651 #endif
21652 #ifndef NULL
21653 #define NULL (void*)0
21654 #endif
21655
21656 static void *task(p)
21657         void *p;
21658 {
21659         return (void *) (p == NULL);
21660 }
21661
21662
21663 int main(argc, argv)
21664         int argc;
21665         char **argv;
21666 {
21667
21668         /* pthread test function */
21669 #ifndef PTHREAD_CREATE_DETACHED
21670 #define PTHREAD_CREATE_DETACHED 1
21671 #endif
21672         pthread_t t;
21673         int status;
21674         int detach = PTHREAD_CREATE_DETACHED;
21675
21676 #if HAVE_PTHREADS > 4
21677         /* Final pthreads */
21678         pthread_attr_t attr;
21679
21680         status = pthread_attr_init(&attr);
21681         if( status ) return status;
21682
21683 #if HAVE_PTHREADS < 7
21684         status = pthread_attr_setdetachstate(&attr, &detach);
21685         if( status < 0 ) status = errno;
21686 #else
21687         status = pthread_attr_setdetachstate(&attr, detach);
21688 #endif
21689         if( status ) return status;
21690         status = pthread_create( &t, &attr, task, NULL );
21691 #if HAVE_PTHREADS < 7
21692         if( status < 0 ) status = errno;
21693 #endif
21694         if( status ) return status;
21695 #else
21696         /* Draft 4 pthreads */
21697         status = pthread_create( &t, pthread_attr_default, task, NULL );
21698         if( status ) return errno;
21699
21700         /* give thread a chance to complete */
21701         /* it should remain joinable and hence detachable */
21702         sleep( 1 );
21703
21704         status = pthread_detach( &t );
21705         if( status ) return errno;
21706 #endif
21707
21708 #ifdef HAVE_LINUX_THREADS
21709         pthread_kill_other_threads_np();
21710 #endif
21711
21712         return 0;
21713
21714 }
21715
21716 _ACEOF
21717 rm -f conftest$ac_exeext
21718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21719   (eval $ac_link) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; }; then
21728   ol_cv_pthread_thread=yes
21729 else
21730   echo "$as_me: program exited with status $ac_status" >&5
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ( exit $ac_status )
21735 ol_cv_pthread_thread=no
21736 fi
21737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21738 fi
21739
21740                 # restore the LIBS
21741                 LIBS="$ol_LIBS"
21742
21743 fi
21744 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21745 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21746
21747         if test $ol_cv_pthread_thread = yes ; then
21748                 ol_link_pthreads="-thread"
21749                 ol_link_threads=posix
21750         fi
21751 fi
21752
21753
21754                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21755 if test "$ol_link_threads" = no ; then
21756         # try -lpthread -lmach -lexc -lc_r
21757         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21758 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21759 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21760   echo $ECHO_N "(cached) $ECHO_C" >&6
21761 else
21762
21763                 # save the flags
21764                 ol_LIBS="$LIBS"
21765                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21766
21767                 if test "$cross_compiling" = yes; then
21768   cat >conftest.$ac_ext <<_ACEOF
21769 /* confdefs.h.  */
21770 _ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h.  */
21774
21775 /* pthread test headers */
21776 #include <pthread.h>
21777 #if HAVE_PTHREADS < 7
21778 #include <errno.h>
21779 #endif
21780 #ifndef NULL
21781 #define NULL (void*)0
21782 #endif
21783
21784 static void *task(p)
21785         void *p;
21786 {
21787         return (void *) (p == NULL);
21788 }
21789
21790 int
21791 main ()
21792 {
21793
21794         /* pthread test function */
21795 #ifndef PTHREAD_CREATE_DETACHED
21796 #define PTHREAD_CREATE_DETACHED 1
21797 #endif
21798         pthread_t t;
21799         int status;
21800         int detach = PTHREAD_CREATE_DETACHED;
21801
21802 #if HAVE_PTHREADS > 4
21803         /* Final pthreads */
21804         pthread_attr_t attr;
21805
21806         status = pthread_attr_init(&attr);
21807         if( status ) return status;
21808
21809 #if HAVE_PTHREADS < 7
21810         status = pthread_attr_setdetachstate(&attr, &detach);
21811         if( status < 0 ) status = errno;
21812 #else
21813         status = pthread_attr_setdetachstate(&attr, detach);
21814 #endif
21815         if( status ) return status;
21816         status = pthread_create( &t, &attr, task, NULL );
21817 #if HAVE_PTHREADS < 7
21818         if( status < 0 ) status = errno;
21819 #endif
21820         if( status ) return status;
21821 #else
21822         /* Draft 4 pthreads */
21823         status = pthread_create( &t, pthread_attr_default, task, NULL );
21824         if( status ) return errno;
21825
21826         /* give thread a chance to complete */
21827         /* it should remain joinable and hence detachable */
21828         sleep( 1 );
21829
21830         status = pthread_detach( &t );
21831         if( status ) return errno;
21832 #endif
21833
21834 #ifdef HAVE_LINUX_THREADS
21835         pthread_kill_other_threads_np();
21836 #endif
21837
21838         return 0;
21839
21840   ;
21841   return 0;
21842 }
21843 _ACEOF
21844 rm -f conftest.$ac_objext conftest$ac_exeext
21845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21846   (eval $ac_link) 2>conftest.er1
21847   ac_status=$?
21848   grep -v '^ *+' conftest.er1 >conftest.err
21849   rm -f conftest.er1
21850   cat conftest.err >&5
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); } &&
21853          { ac_try='test -z "$ac_c_werror_flag"
21854                          || test ! -s conftest.err'
21855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856   (eval $ac_try) 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); }; } &&
21860          { ac_try='test -s conftest$ac_exeext'
21861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862   (eval $ac_try) 2>&5
21863   ac_status=$?
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); }; }; then
21866   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21867 else
21868   echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21872 fi
21873 rm -f conftest.err conftest.$ac_objext \
21874       conftest$ac_exeext conftest.$ac_ext
21875 else
21876   cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h.  */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h.  */
21882
21883 /* pthread test headers */
21884 #include <pthread.h>
21885 #if HAVE_PTHREADS < 7
21886 #include <errno.h>
21887 #endif
21888 #ifndef NULL
21889 #define NULL (void*)0
21890 #endif
21891
21892 static void *task(p)
21893         void *p;
21894 {
21895         return (void *) (p == NULL);
21896 }
21897
21898
21899 int main(argc, argv)
21900         int argc;
21901         char **argv;
21902 {
21903
21904         /* pthread test function */
21905 #ifndef PTHREAD_CREATE_DETACHED
21906 #define PTHREAD_CREATE_DETACHED 1
21907 #endif
21908         pthread_t t;
21909         int status;
21910         int detach = PTHREAD_CREATE_DETACHED;
21911
21912 #if HAVE_PTHREADS > 4
21913         /* Final pthreads */
21914         pthread_attr_t attr;
21915
21916         status = pthread_attr_init(&attr);
21917         if( status ) return status;
21918
21919 #if HAVE_PTHREADS < 7
21920         status = pthread_attr_setdetachstate(&attr, &detach);
21921         if( status < 0 ) status = errno;
21922 #else
21923         status = pthread_attr_setdetachstate(&attr, detach);
21924 #endif
21925         if( status ) return status;
21926         status = pthread_create( &t, &attr, task, NULL );
21927 #if HAVE_PTHREADS < 7
21928         if( status < 0 ) status = errno;
21929 #endif
21930         if( status ) return status;
21931 #else
21932         /* Draft 4 pthreads */
21933         status = pthread_create( &t, pthread_attr_default, task, NULL );
21934         if( status ) return errno;
21935
21936         /* give thread a chance to complete */
21937         /* it should remain joinable and hence detachable */
21938         sleep( 1 );
21939
21940         status = pthread_detach( &t );
21941         if( status ) return errno;
21942 #endif
21943
21944 #ifdef HAVE_LINUX_THREADS
21945         pthread_kill_other_threads_np();
21946 #endif
21947
21948         return 0;
21949
21950 }
21951
21952 _ACEOF
21953 rm -f conftest$ac_exeext
21954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21955   (eval $ac_link) 2>&5
21956   ac_status=$?
21957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; }; then
21964   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21965 else
21966   echo "$as_me: program exited with status $ac_status" >&5
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970 ( exit $ac_status )
21971 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21972 fi
21973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21974 fi
21975
21976                 # restore the LIBS
21977                 LIBS="$ol_LIBS"
21978
21979 fi
21980 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21981 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21982
21983         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21984                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21985                 ol_link_threads=posix
21986         fi
21987 fi
21988
21989                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21990 if test "$ol_link_threads" = no ; then
21991         # try -lpthread -lmach -lexc
21992         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21993 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21994 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21995   echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997
21998                 # save the flags
21999                 ol_LIBS="$LIBS"
22000                 LIBS="-lpthread -lmach -lexc $LIBS"
22001
22002                 if test "$cross_compiling" = yes; then
22003   cat >conftest.$ac_ext <<_ACEOF
22004 /* confdefs.h.  */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h.  */
22009
22010 /* pthread test headers */
22011 #include <pthread.h>
22012 #if HAVE_PTHREADS < 7
22013 #include <errno.h>
22014 #endif
22015 #ifndef NULL
22016 #define NULL (void*)0
22017 #endif
22018
22019 static void *task(p)
22020         void *p;
22021 {
22022         return (void *) (p == NULL);
22023 }
22024
22025 int
22026 main ()
22027 {
22028
22029         /* pthread test function */
22030 #ifndef PTHREAD_CREATE_DETACHED
22031 #define PTHREAD_CREATE_DETACHED 1
22032 #endif
22033         pthread_t t;
22034         int status;
22035         int detach = PTHREAD_CREATE_DETACHED;
22036
22037 #if HAVE_PTHREADS > 4
22038         /* Final pthreads */
22039         pthread_attr_t attr;
22040
22041         status = pthread_attr_init(&attr);
22042         if( status ) return status;
22043
22044 #if HAVE_PTHREADS < 7
22045         status = pthread_attr_setdetachstate(&attr, &detach);
22046         if( status < 0 ) status = errno;
22047 #else
22048         status = pthread_attr_setdetachstate(&attr, detach);
22049 #endif
22050         if( status ) return status;
22051         status = pthread_create( &t, &attr, task, NULL );
22052 #if HAVE_PTHREADS < 7
22053         if( status < 0 ) status = errno;
22054 #endif
22055         if( status ) return status;
22056 #else
22057         /* Draft 4 pthreads */
22058         status = pthread_create( &t, pthread_attr_default, task, NULL );
22059         if( status ) return errno;
22060
22061         /* give thread a chance to complete */
22062         /* it should remain joinable and hence detachable */
22063         sleep( 1 );
22064
22065         status = pthread_detach( &t );
22066         if( status ) return errno;
22067 #endif
22068
22069 #ifdef HAVE_LINUX_THREADS
22070         pthread_kill_other_threads_np();
22071 #endif
22072
22073         return 0;
22074
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 rm -f conftest.$ac_objext conftest$ac_exeext
22080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22081   (eval $ac_link) 2>conftest.er1
22082   ac_status=$?
22083   grep -v '^ *+' conftest.er1 >conftest.err
22084   rm -f conftest.er1
22085   cat conftest.err >&5
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); } &&
22088          { ac_try='test -z "$ac_c_werror_flag"
22089                          || test ! -s conftest.err'
22090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091   (eval $ac_try) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; } &&
22095          { ac_try='test -s conftest$ac_exeext'
22096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097   (eval $ac_try) 2>&5
22098   ac_status=$?
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); }; }; then
22101   ol_cv_pthread_lpthread_lmach_lexc=yes
22102 else
22103   echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106 ol_cv_pthread_lpthread_lmach_lexc=no
22107 fi
22108 rm -f conftest.err conftest.$ac_objext \
22109       conftest$ac_exeext conftest.$ac_ext
22110 else
22111   cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h.  */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h.  */
22117
22118 /* pthread test headers */
22119 #include <pthread.h>
22120 #if HAVE_PTHREADS < 7
22121 #include <errno.h>
22122 #endif
22123 #ifndef NULL
22124 #define NULL (void*)0
22125 #endif
22126
22127 static void *task(p)
22128         void *p;
22129 {
22130         return (void *) (p == NULL);
22131 }
22132
22133
22134 int main(argc, argv)
22135         int argc;
22136         char **argv;
22137 {
22138
22139         /* pthread test function */
22140 #ifndef PTHREAD_CREATE_DETACHED
22141 #define PTHREAD_CREATE_DETACHED 1
22142 #endif
22143         pthread_t t;
22144         int status;
22145         int detach = PTHREAD_CREATE_DETACHED;
22146
22147 #if HAVE_PTHREADS > 4
22148         /* Final pthreads */
22149         pthread_attr_t attr;
22150
22151         status = pthread_attr_init(&attr);
22152         if( status ) return status;
22153
22154 #if HAVE_PTHREADS < 7
22155         status = pthread_attr_setdetachstate(&attr, &detach);
22156         if( status < 0 ) status = errno;
22157 #else
22158         status = pthread_attr_setdetachstate(&attr, detach);
22159 #endif
22160         if( status ) return status;
22161         status = pthread_create( &t, &attr, task, NULL );
22162 #if HAVE_PTHREADS < 7
22163         if( status < 0 ) status = errno;
22164 #endif
22165         if( status ) return status;
22166 #else
22167         /* Draft 4 pthreads */
22168         status = pthread_create( &t, pthread_attr_default, task, NULL );
22169         if( status ) return errno;
22170
22171         /* give thread a chance to complete */
22172         /* it should remain joinable and hence detachable */
22173         sleep( 1 );
22174
22175         status = pthread_detach( &t );
22176         if( status ) return errno;
22177 #endif
22178
22179 #ifdef HAVE_LINUX_THREADS
22180         pthread_kill_other_threads_np();
22181 #endif
22182
22183         return 0;
22184
22185 }
22186
22187 _ACEOF
22188 rm -f conftest$ac_exeext
22189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22190   (eval $ac_link) 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195   (eval $ac_try) 2>&5
22196   ac_status=$?
22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); }; }; then
22199   ol_cv_pthread_lpthread_lmach_lexc=yes
22200 else
22201   echo "$as_me: program exited with status $ac_status" >&5
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205 ( exit $ac_status )
22206 ol_cv_pthread_lpthread_lmach_lexc=no
22207 fi
22208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22209 fi
22210
22211                 # restore the LIBS
22212                 LIBS="$ol_LIBS"
22213
22214 fi
22215 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22216 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22217
22218         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22219                 ol_link_pthreads="-lpthread -lmach -lexc"
22220                 ol_link_threads=posix
22221         fi
22222 fi
22223
22224
22225                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22226 if test "$ol_link_threads" = no ; then
22227         # try -lpthread -Wl,-woff,85
22228         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22229 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22230 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22231   echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233
22234                 # save the flags
22235                 ol_LIBS="$LIBS"
22236                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22237
22238                 if test "$cross_compiling" = yes; then
22239   cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h.  */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h.  */
22245
22246 /* pthread test headers */
22247 #include <pthread.h>
22248 #if HAVE_PTHREADS < 7
22249 #include <errno.h>
22250 #endif
22251 #ifndef NULL
22252 #define NULL (void*)0
22253 #endif
22254
22255 static void *task(p)
22256         void *p;
22257 {
22258         return (void *) (p == NULL);
22259 }
22260
22261 int
22262 main ()
22263 {
22264
22265         /* pthread test function */
22266 #ifndef PTHREAD_CREATE_DETACHED
22267 #define PTHREAD_CREATE_DETACHED 1
22268 #endif
22269         pthread_t t;
22270         int status;
22271         int detach = PTHREAD_CREATE_DETACHED;
22272
22273 #if HAVE_PTHREADS > 4
22274         /* Final pthreads */
22275         pthread_attr_t attr;
22276
22277         status = pthread_attr_init(&attr);
22278         if( status ) return status;
22279
22280 #if HAVE_PTHREADS < 7
22281         status = pthread_attr_setdetachstate(&attr, &detach);
22282         if( status < 0 ) status = errno;
22283 #else
22284         status = pthread_attr_setdetachstate(&attr, detach);
22285 #endif
22286         if( status ) return status;
22287         status = pthread_create( &t, &attr, task, NULL );
22288 #if HAVE_PTHREADS < 7
22289         if( status < 0 ) status = errno;
22290 #endif
22291         if( status ) return status;
22292 #else
22293         /* Draft 4 pthreads */
22294         status = pthread_create( &t, pthread_attr_default, task, NULL );
22295         if( status ) return errno;
22296
22297         /* give thread a chance to complete */
22298         /* it should remain joinable and hence detachable */
22299         sleep( 1 );
22300
22301         status = pthread_detach( &t );
22302         if( status ) return errno;
22303 #endif
22304
22305 #ifdef HAVE_LINUX_THREADS
22306         pthread_kill_other_threads_np();
22307 #endif
22308
22309         return 0;
22310
22311   ;
22312   return 0;
22313 }
22314 _ACEOF
22315 rm -f conftest.$ac_objext conftest$ac_exeext
22316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22317   (eval $ac_link) 2>conftest.er1
22318   ac_status=$?
22319   grep -v '^ *+' conftest.er1 >conftest.err
22320   rm -f conftest.er1
22321   cat conftest.err >&5
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } &&
22324          { ac_try='test -z "$ac_c_werror_flag"
22325                          || test ! -s conftest.err'
22326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327   (eval $ac_try) 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); }; } &&
22331          { ac_try='test -s conftest$ac_exeext'
22332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333   (eval $ac_try) 2>&5
22334   ac_status=$?
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); }; }; then
22337   ol_cv_pthread_lib_lpthread_woff=yes
22338 else
22339   echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22341
22342 ol_cv_pthread_lib_lpthread_woff=no
22343 fi
22344 rm -f conftest.err conftest.$ac_objext \
22345       conftest$ac_exeext conftest.$ac_ext
22346 else
22347   cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h.  */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h.  */
22353
22354 /* pthread test headers */
22355 #include <pthread.h>
22356 #if HAVE_PTHREADS < 7
22357 #include <errno.h>
22358 #endif
22359 #ifndef NULL
22360 #define NULL (void*)0
22361 #endif
22362
22363 static void *task(p)
22364         void *p;
22365 {
22366         return (void *) (p == NULL);
22367 }
22368
22369
22370 int main(argc, argv)
22371         int argc;
22372         char **argv;
22373 {
22374
22375         /* pthread test function */
22376 #ifndef PTHREAD_CREATE_DETACHED
22377 #define PTHREAD_CREATE_DETACHED 1
22378 #endif
22379         pthread_t t;
22380         int status;
22381         int detach = PTHREAD_CREATE_DETACHED;
22382
22383 #if HAVE_PTHREADS > 4
22384         /* Final pthreads */
22385         pthread_attr_t attr;
22386
22387         status = pthread_attr_init(&attr);
22388         if( status ) return status;
22389
22390 #if HAVE_PTHREADS < 7
22391         status = pthread_attr_setdetachstate(&attr, &detach);
22392         if( status < 0 ) status = errno;
22393 #else
22394         status = pthread_attr_setdetachstate(&attr, detach);
22395 #endif
22396         if( status ) return status;
22397         status = pthread_create( &t, &attr, task, NULL );
22398 #if HAVE_PTHREADS < 7
22399         if( status < 0 ) status = errno;
22400 #endif
22401         if( status ) return status;
22402 #else
22403         /* Draft 4 pthreads */
22404         status = pthread_create( &t, pthread_attr_default, task, NULL );
22405         if( status ) return errno;
22406
22407         /* give thread a chance to complete */
22408         /* it should remain joinable and hence detachable */
22409         sleep( 1 );
22410
22411         status = pthread_detach( &t );
22412         if( status ) return errno;
22413 #endif
22414
22415 #ifdef HAVE_LINUX_THREADS
22416         pthread_kill_other_threads_np();
22417 #endif
22418
22419         return 0;
22420
22421 }
22422
22423 _ACEOF
22424 rm -f conftest$ac_exeext
22425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426   (eval $ac_link) 2>&5
22427   ac_status=$?
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431   (eval $ac_try) 2>&5
22432   ac_status=$?
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); }; }; then
22435   ol_cv_pthread_lib_lpthread_woff=yes
22436 else
22437   echo "$as_me: program exited with status $ac_status" >&5
22438 echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22440
22441 ( exit $ac_status )
22442 ol_cv_pthread_lib_lpthread_woff=no
22443 fi
22444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22445 fi
22446
22447                 # restore the LIBS
22448                 LIBS="$ol_LIBS"
22449
22450 fi
22451 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22452 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22453
22454         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22455                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22456                 ol_link_threads=posix
22457         fi
22458 fi
22459
22460
22461                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22462 if test "$ol_link_threads" = no ; then
22463         # try -lpthread
22464         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22465 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22466 if test "${ol_cv_pthread_lpthread+set}" = set; then
22467   echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469
22470                 # save the flags
22471                 ol_LIBS="$LIBS"
22472                 LIBS="-lpthread $LIBS"
22473
22474                 if test "$cross_compiling" = yes; then
22475   cat >conftest.$ac_ext <<_ACEOF
22476 /* confdefs.h.  */
22477 _ACEOF
22478 cat confdefs.h >>conftest.$ac_ext
22479 cat >>conftest.$ac_ext <<_ACEOF
22480 /* end confdefs.h.  */
22481
22482 /* pthread test headers */
22483 #include <pthread.h>
22484 #if HAVE_PTHREADS < 7
22485 #include <errno.h>
22486 #endif
22487 #ifndef NULL
22488 #define NULL (void*)0
22489 #endif
22490
22491 static void *task(p)
22492         void *p;
22493 {
22494         return (void *) (p == NULL);
22495 }
22496
22497 int
22498 main ()
22499 {
22500
22501         /* pthread test function */
22502 #ifndef PTHREAD_CREATE_DETACHED
22503 #define PTHREAD_CREATE_DETACHED 1
22504 #endif
22505         pthread_t t;
22506         int status;
22507         int detach = PTHREAD_CREATE_DETACHED;
22508
22509 #if HAVE_PTHREADS > 4
22510         /* Final pthreads */
22511         pthread_attr_t attr;
22512
22513         status = pthread_attr_init(&attr);
22514         if( status ) return status;
22515
22516 #if HAVE_PTHREADS < 7
22517         status = pthread_attr_setdetachstate(&attr, &detach);
22518         if( status < 0 ) status = errno;
22519 #else
22520         status = pthread_attr_setdetachstate(&attr, detach);
22521 #endif
22522         if( status ) return status;
22523         status = pthread_create( &t, &attr, task, NULL );
22524 #if HAVE_PTHREADS < 7
22525         if( status < 0 ) status = errno;
22526 #endif
22527         if( status ) return status;
22528 #else
22529         /* Draft 4 pthreads */
22530         status = pthread_create( &t, pthread_attr_default, task, NULL );
22531         if( status ) return errno;
22532
22533         /* give thread a chance to complete */
22534         /* it should remain joinable and hence detachable */
22535         sleep( 1 );
22536
22537         status = pthread_detach( &t );
22538         if( status ) return errno;
22539 #endif
22540
22541 #ifdef HAVE_LINUX_THREADS
22542         pthread_kill_other_threads_np();
22543 #endif
22544
22545         return 0;
22546
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext conftest$ac_exeext
22552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22553   (eval $ac_link) 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } &&
22560          { ac_try='test -z "$ac_c_werror_flag"
22561                          || test ! -s conftest.err'
22562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563   (eval $ac_try) 2>&5
22564   ac_status=$?
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); }; } &&
22567          { ac_try='test -s conftest$ac_exeext'
22568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; }; then
22573   ol_cv_pthread_lpthread=yes
22574 else
22575   echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578 ol_cv_pthread_lpthread=no
22579 fi
22580 rm -f conftest.err conftest.$ac_objext \
22581       conftest$ac_exeext conftest.$ac_ext
22582 else
22583   cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589
22590 /* pthread test headers */
22591 #include <pthread.h>
22592 #if HAVE_PTHREADS < 7
22593 #include <errno.h>
22594 #endif
22595 #ifndef NULL
22596 #define NULL (void*)0
22597 #endif
22598
22599 static void *task(p)
22600         void *p;
22601 {
22602         return (void *) (p == NULL);
22603 }
22604
22605
22606 int main(argc, argv)
22607         int argc;
22608         char **argv;
22609 {
22610
22611         /* pthread test function */
22612 #ifndef PTHREAD_CREATE_DETACHED
22613 #define PTHREAD_CREATE_DETACHED 1
22614 #endif
22615         pthread_t t;
22616         int status;
22617         int detach = PTHREAD_CREATE_DETACHED;
22618
22619 #if HAVE_PTHREADS > 4
22620         /* Final pthreads */
22621         pthread_attr_t attr;
22622
22623         status = pthread_attr_init(&attr);
22624         if( status ) return status;
22625
22626 #if HAVE_PTHREADS < 7
22627         status = pthread_attr_setdetachstate(&attr, &detach);
22628         if( status < 0 ) status = errno;
22629 #else
22630         status = pthread_attr_setdetachstate(&attr, detach);
22631 #endif
22632         if( status ) return status;
22633         status = pthread_create( &t, &attr, task, NULL );
22634 #if HAVE_PTHREADS < 7
22635         if( status < 0 ) status = errno;
22636 #endif
22637         if( status ) return status;
22638 #else
22639         /* Draft 4 pthreads */
22640         status = pthread_create( &t, pthread_attr_default, task, NULL );
22641         if( status ) return errno;
22642
22643         /* give thread a chance to complete */
22644         /* it should remain joinable and hence detachable */
22645         sleep( 1 );
22646
22647         status = pthread_detach( &t );
22648         if( status ) return errno;
22649 #endif
22650
22651 #ifdef HAVE_LINUX_THREADS
22652         pthread_kill_other_threads_np();
22653 #endif
22654
22655         return 0;
22656
22657 }
22658
22659 _ACEOF
22660 rm -f conftest$ac_exeext
22661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22662   (eval $ac_link) 2>&5
22663   ac_status=$?
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667   (eval $ac_try) 2>&5
22668   ac_status=$?
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); }; }; then
22671   ol_cv_pthread_lpthread=yes
22672 else
22673   echo "$as_me: program exited with status $ac_status" >&5
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677 ( exit $ac_status )
22678 ol_cv_pthread_lpthread=no
22679 fi
22680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22681 fi
22682
22683                 # restore the LIBS
22684                 LIBS="$ol_LIBS"
22685
22686 fi
22687 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22688 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22689
22690         if test $ol_cv_pthread_lpthread = yes ; then
22691                 ol_link_pthreads="-lpthread"
22692                 ol_link_threads=posix
22693         fi
22694 fi
22695
22696                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22697 if test "$ol_link_threads" = no ; then
22698         # try -lc_r
22699         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22700 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22701 if test "${ol_cv_pthread_lc_r+set}" = set; then
22702   echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704
22705                 # save the flags
22706                 ol_LIBS="$LIBS"
22707                 LIBS="-lc_r $LIBS"
22708
22709                 if test "$cross_compiling" = yes; then
22710   cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716
22717 /* pthread test headers */
22718 #include <pthread.h>
22719 #if HAVE_PTHREADS < 7
22720 #include <errno.h>
22721 #endif
22722 #ifndef NULL
22723 #define NULL (void*)0
22724 #endif
22725
22726 static void *task(p)
22727         void *p;
22728 {
22729         return (void *) (p == NULL);
22730 }
22731
22732 int
22733 main ()
22734 {
22735
22736         /* pthread test function */
22737 #ifndef PTHREAD_CREATE_DETACHED
22738 #define PTHREAD_CREATE_DETACHED 1
22739 #endif
22740         pthread_t t;
22741         int status;
22742         int detach = PTHREAD_CREATE_DETACHED;
22743
22744 #if HAVE_PTHREADS > 4
22745         /* Final pthreads */
22746         pthread_attr_t attr;
22747
22748         status = pthread_attr_init(&attr);
22749         if( status ) return status;
22750
22751 #if HAVE_PTHREADS < 7
22752         status = pthread_attr_setdetachstate(&attr, &detach);
22753         if( status < 0 ) status = errno;
22754 #else
22755         status = pthread_attr_setdetachstate(&attr, detach);
22756 #endif
22757         if( status ) return status;
22758         status = pthread_create( &t, &attr, task, NULL );
22759 #if HAVE_PTHREADS < 7
22760         if( status < 0 ) status = errno;
22761 #endif
22762         if( status ) return status;
22763 #else
22764         /* Draft 4 pthreads */
22765         status = pthread_create( &t, pthread_attr_default, task, NULL );
22766         if( status ) return errno;
22767
22768         /* give thread a chance to complete */
22769         /* it should remain joinable and hence detachable */
22770         sleep( 1 );
22771
22772         status = pthread_detach( &t );
22773         if( status ) return errno;
22774 #endif
22775
22776 #ifdef HAVE_LINUX_THREADS
22777         pthread_kill_other_threads_np();
22778 #endif
22779
22780         return 0;
22781
22782   ;
22783   return 0;
22784 }
22785 _ACEOF
22786 rm -f conftest.$ac_objext conftest$ac_exeext
22787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22788   (eval $ac_link) 2>conftest.er1
22789   ac_status=$?
22790   grep -v '^ *+' conftest.er1 >conftest.err
22791   rm -f conftest.er1
22792   cat conftest.err >&5
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); } &&
22795          { ac_try='test -z "$ac_c_werror_flag"
22796                          || test ! -s conftest.err'
22797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798   (eval $ac_try) 2>&5
22799   ac_status=$?
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); }; } &&
22802          { ac_try='test -s conftest$ac_exeext'
22803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804   (eval $ac_try) 2>&5
22805   ac_status=$?
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); }; }; then
22808   ol_cv_pthread_lc_r=yes
22809 else
22810   echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813 ol_cv_pthread_lc_r=no
22814 fi
22815 rm -f conftest.err conftest.$ac_objext \
22816       conftest$ac_exeext conftest.$ac_ext
22817 else
22818   cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h.  */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h.  */
22824
22825 /* pthread test headers */
22826 #include <pthread.h>
22827 #if HAVE_PTHREADS < 7
22828 #include <errno.h>
22829 #endif
22830 #ifndef NULL
22831 #define NULL (void*)0
22832 #endif
22833
22834 static void *task(p)
22835         void *p;
22836 {
22837         return (void *) (p == NULL);
22838 }
22839
22840
22841 int main(argc, argv)
22842         int argc;
22843         char **argv;
22844 {
22845
22846         /* pthread test function */
22847 #ifndef PTHREAD_CREATE_DETACHED
22848 #define PTHREAD_CREATE_DETACHED 1
22849 #endif
22850         pthread_t t;
22851         int status;
22852         int detach = PTHREAD_CREATE_DETACHED;
22853
22854 #if HAVE_PTHREADS > 4
22855         /* Final pthreads */
22856         pthread_attr_t attr;
22857
22858         status = pthread_attr_init(&attr);
22859         if( status ) return status;
22860
22861 #if HAVE_PTHREADS < 7
22862         status = pthread_attr_setdetachstate(&attr, &detach);
22863         if( status < 0 ) status = errno;
22864 #else
22865         status = pthread_attr_setdetachstate(&attr, detach);
22866 #endif
22867         if( status ) return status;
22868         status = pthread_create( &t, &attr, task, NULL );
22869 #if HAVE_PTHREADS < 7
22870         if( status < 0 ) status = errno;
22871 #endif
22872         if( status ) return status;
22873 #else
22874         /* Draft 4 pthreads */
22875         status = pthread_create( &t, pthread_attr_default, task, NULL );
22876         if( status ) return errno;
22877
22878         /* give thread a chance to complete */
22879         /* it should remain joinable and hence detachable */
22880         sleep( 1 );
22881
22882         status = pthread_detach( &t );
22883         if( status ) return errno;
22884 #endif
22885
22886 #ifdef HAVE_LINUX_THREADS
22887         pthread_kill_other_threads_np();
22888 #endif
22889
22890         return 0;
22891
22892 }
22893
22894 _ACEOF
22895 rm -f conftest$ac_exeext
22896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22897   (eval $ac_link) 2>&5
22898   ac_status=$?
22899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902   (eval $ac_try) 2>&5
22903   ac_status=$?
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); }; }; then
22906   ol_cv_pthread_lc_r=yes
22907 else
22908   echo "$as_me: program exited with status $ac_status" >&5
22909 echo "$as_me: failed program was:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22911
22912 ( exit $ac_status )
22913 ol_cv_pthread_lc_r=no
22914 fi
22915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22916 fi
22917
22918                 # restore the LIBS
22919                 LIBS="$ol_LIBS"
22920
22921 fi
22922 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22923 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22924
22925         if test $ol_cv_pthread_lc_r = yes ; then
22926                 ol_link_pthreads="-lc_r"
22927                 ol_link_threads=posix
22928         fi
22929 fi
22930
22931
22932                 # Pthread try link: -threads (ol_cv_pthread_threads)
22933 if test "$ol_link_threads" = no ; then
22934         # try -threads
22935         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22936 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22937 if test "${ol_cv_pthread_threads+set}" = set; then
22938   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940
22941                 # save the flags
22942                 ol_LIBS="$LIBS"
22943                 LIBS="-threads $LIBS"
22944
22945                 if test "$cross_compiling" = yes; then
22946   cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h.  */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h.  */
22952
22953 /* pthread test headers */
22954 #include <pthread.h>
22955 #if HAVE_PTHREADS < 7
22956 #include <errno.h>
22957 #endif
22958 #ifndef NULL
22959 #define NULL (void*)0
22960 #endif
22961
22962 static void *task(p)
22963         void *p;
22964 {
22965         return (void *) (p == NULL);
22966 }
22967
22968 int
22969 main ()
22970 {
22971
22972         /* pthread test function */
22973 #ifndef PTHREAD_CREATE_DETACHED
22974 #define PTHREAD_CREATE_DETACHED 1
22975 #endif
22976         pthread_t t;
22977         int status;
22978         int detach = PTHREAD_CREATE_DETACHED;
22979
22980 #if HAVE_PTHREADS > 4
22981         /* Final pthreads */
22982         pthread_attr_t attr;
22983
22984         status = pthread_attr_init(&attr);
22985         if( status ) return status;
22986
22987 #if HAVE_PTHREADS < 7
22988         status = pthread_attr_setdetachstate(&attr, &detach);
22989         if( status < 0 ) status = errno;
22990 #else
22991         status = pthread_attr_setdetachstate(&attr, detach);
22992 #endif
22993         if( status ) return status;
22994         status = pthread_create( &t, &attr, task, NULL );
22995 #if HAVE_PTHREADS < 7
22996         if( status < 0 ) status = errno;
22997 #endif
22998         if( status ) return status;
22999 #else
23000         /* Draft 4 pthreads */
23001         status = pthread_create( &t, pthread_attr_default, task, NULL );
23002         if( status ) return errno;
23003
23004         /* give thread a chance to complete */
23005         /* it should remain joinable and hence detachable */
23006         sleep( 1 );
23007
23008         status = pthread_detach( &t );
23009         if( status ) return errno;
23010 #endif
23011
23012 #ifdef HAVE_LINUX_THREADS
23013         pthread_kill_other_threads_np();
23014 #endif
23015
23016         return 0;
23017
23018   ;
23019   return 0;
23020 }
23021 _ACEOF
23022 rm -f conftest.$ac_objext conftest$ac_exeext
23023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23024   (eval $ac_link) 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } &&
23031          { ac_try='test -z "$ac_c_werror_flag"
23032                          || test ! -s conftest.err'
23033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034   (eval $ac_try) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }; } &&
23038          { ac_try='test -s conftest$ac_exeext'
23039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040   (eval $ac_try) 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; }; then
23044   ol_cv_pthread_threads=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049 ol_cv_pthread_threads=no
23050 fi
23051 rm -f conftest.err conftest.$ac_objext \
23052       conftest$ac_exeext conftest.$ac_ext
23053 else
23054   cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h.  */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h.  */
23060
23061 /* pthread test headers */
23062 #include <pthread.h>
23063 #if HAVE_PTHREADS < 7
23064 #include <errno.h>
23065 #endif
23066 #ifndef NULL
23067 #define NULL (void*)0
23068 #endif
23069
23070 static void *task(p)
23071         void *p;
23072 {
23073         return (void *) (p == NULL);
23074 }
23075
23076
23077 int main(argc, argv)
23078         int argc;
23079         char **argv;
23080 {
23081
23082         /* pthread test function */
23083 #ifndef PTHREAD_CREATE_DETACHED
23084 #define PTHREAD_CREATE_DETACHED 1
23085 #endif
23086         pthread_t t;
23087         int status;
23088         int detach = PTHREAD_CREATE_DETACHED;
23089
23090 #if HAVE_PTHREADS > 4
23091         /* Final pthreads */
23092         pthread_attr_t attr;
23093
23094         status = pthread_attr_init(&attr);
23095         if( status ) return status;
23096
23097 #if HAVE_PTHREADS < 7
23098         status = pthread_attr_setdetachstate(&attr, &detach);
23099         if( status < 0 ) status = errno;
23100 #else
23101         status = pthread_attr_setdetachstate(&attr, detach);
23102 #endif
23103         if( status ) return status;
23104         status = pthread_create( &t, &attr, task, NULL );
23105 #if HAVE_PTHREADS < 7
23106         if( status < 0 ) status = errno;
23107 #endif
23108         if( status ) return status;
23109 #else
23110         /* Draft 4 pthreads */
23111         status = pthread_create( &t, pthread_attr_default, task, NULL );
23112         if( status ) return errno;
23113
23114         /* give thread a chance to complete */
23115         /* it should remain joinable and hence detachable */
23116         sleep( 1 );
23117
23118         status = pthread_detach( &t );
23119         if( status ) return errno;
23120 #endif
23121
23122 #ifdef HAVE_LINUX_THREADS
23123         pthread_kill_other_threads_np();
23124 #endif
23125
23126         return 0;
23127
23128 }
23129
23130 _ACEOF
23131 rm -f conftest$ac_exeext
23132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23133   (eval $ac_link) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138   (eval $ac_try) 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); }; }; then
23142   ol_cv_pthread_threads=yes
23143 else
23144   echo "$as_me: program exited with status $ac_status" >&5
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 ( exit $ac_status )
23149 ol_cv_pthread_threads=no
23150 fi
23151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23152 fi
23153
23154                 # restore the LIBS
23155                 LIBS="$ol_LIBS"
23156
23157 fi
23158 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23159 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23160
23161         if test $ol_cv_pthread_threads = yes ; then
23162                 ol_link_pthreads="-threads"
23163                 ol_link_threads=posix
23164         fi
23165 fi
23166
23167
23168                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23169 if test "$ol_link_threads" = no ; then
23170         # try -lpthreads -lmach -lexc -lc_r
23171         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23172 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23173 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23174   echo $ECHO_N "(cached) $ECHO_C" >&6
23175 else
23176
23177                 # save the flags
23178                 ol_LIBS="$LIBS"
23179                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23180
23181                 if test "$cross_compiling" = yes; then
23182   cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188
23189 /* pthread test headers */
23190 #include <pthread.h>
23191 #if HAVE_PTHREADS < 7
23192 #include <errno.h>
23193 #endif
23194 #ifndef NULL
23195 #define NULL (void*)0
23196 #endif
23197
23198 static void *task(p)
23199         void *p;
23200 {
23201         return (void *) (p == NULL);
23202 }
23203
23204 int
23205 main ()
23206 {
23207
23208         /* pthread test function */
23209 #ifndef PTHREAD_CREATE_DETACHED
23210 #define PTHREAD_CREATE_DETACHED 1
23211 #endif
23212         pthread_t t;
23213         int status;
23214         int detach = PTHREAD_CREATE_DETACHED;
23215
23216 #if HAVE_PTHREADS > 4
23217         /* Final pthreads */
23218         pthread_attr_t attr;
23219
23220         status = pthread_attr_init(&attr);
23221         if( status ) return status;
23222
23223 #if HAVE_PTHREADS < 7
23224         status = pthread_attr_setdetachstate(&attr, &detach);
23225         if( status < 0 ) status = errno;
23226 #else
23227         status = pthread_attr_setdetachstate(&attr, detach);
23228 #endif
23229         if( status ) return status;
23230         status = pthread_create( &t, &attr, task, NULL );
23231 #if HAVE_PTHREADS < 7
23232         if( status < 0 ) status = errno;
23233 #endif
23234         if( status ) return status;
23235 #else
23236         /* Draft 4 pthreads */
23237         status = pthread_create( &t, pthread_attr_default, task, NULL );
23238         if( status ) return errno;
23239
23240         /* give thread a chance to complete */
23241         /* it should remain joinable and hence detachable */
23242         sleep( 1 );
23243
23244         status = pthread_detach( &t );
23245         if( status ) return errno;
23246 #endif
23247
23248 #ifdef HAVE_LINUX_THREADS
23249         pthread_kill_other_threads_np();
23250 #endif
23251
23252         return 0;
23253
23254   ;
23255   return 0;
23256 }
23257 _ACEOF
23258 rm -f conftest.$ac_objext conftest$ac_exeext
23259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23260   (eval $ac_link) 2>conftest.er1
23261   ac_status=$?
23262   grep -v '^ *+' conftest.er1 >conftest.err
23263   rm -f conftest.er1
23264   cat conftest.err >&5
23265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266   (exit $ac_status); } &&
23267          { ac_try='test -z "$ac_c_werror_flag"
23268                          || test ! -s conftest.err'
23269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270   (eval $ac_try) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); }; } &&
23274          { ac_try='test -s conftest$ac_exeext'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; }; then
23280   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23281 else
23282   echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23284
23285 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23286 fi
23287 rm -f conftest.err conftest.$ac_objext \
23288       conftest$ac_exeext conftest.$ac_ext
23289 else
23290   cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296
23297 /* pthread test headers */
23298 #include <pthread.h>
23299 #if HAVE_PTHREADS < 7
23300 #include <errno.h>
23301 #endif
23302 #ifndef NULL
23303 #define NULL (void*)0
23304 #endif
23305
23306 static void *task(p)
23307         void *p;
23308 {
23309         return (void *) (p == NULL);
23310 }
23311
23312
23313 int main(argc, argv)
23314         int argc;
23315         char **argv;
23316 {
23317
23318         /* pthread test function */
23319 #ifndef PTHREAD_CREATE_DETACHED
23320 #define PTHREAD_CREATE_DETACHED 1
23321 #endif
23322         pthread_t t;
23323         int status;
23324         int detach = PTHREAD_CREATE_DETACHED;
23325
23326 #if HAVE_PTHREADS > 4
23327         /* Final pthreads */
23328         pthread_attr_t attr;
23329
23330         status = pthread_attr_init(&attr);
23331         if( status ) return status;
23332
23333 #if HAVE_PTHREADS < 7
23334         status = pthread_attr_setdetachstate(&attr, &detach);
23335         if( status < 0 ) status = errno;
23336 #else
23337         status = pthread_attr_setdetachstate(&attr, detach);
23338 #endif
23339         if( status ) return status;
23340         status = pthread_create( &t, &attr, task, NULL );
23341 #if HAVE_PTHREADS < 7
23342         if( status < 0 ) status = errno;
23343 #endif
23344         if( status ) return status;
23345 #else
23346         /* Draft 4 pthreads */
23347         status = pthread_create( &t, pthread_attr_default, task, NULL );
23348         if( status ) return errno;
23349
23350         /* give thread a chance to complete */
23351         /* it should remain joinable and hence detachable */
23352         sleep( 1 );
23353
23354         status = pthread_detach( &t );
23355         if( status ) return errno;
23356 #endif
23357
23358 #ifdef HAVE_LINUX_THREADS
23359         pthread_kill_other_threads_np();
23360 #endif
23361
23362         return 0;
23363
23364 }
23365
23366 _ACEOF
23367 rm -f conftest$ac_exeext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23369   (eval $ac_link) 2>&5
23370   ac_status=$?
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374   (eval $ac_try) 2>&5
23375   ac_status=$?
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); }; }; then
23378   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23379 else
23380   echo "$as_me: program exited with status $ac_status" >&5
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384 ( exit $ac_status )
23385 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23386 fi
23387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23388 fi
23389
23390                 # restore the LIBS
23391                 LIBS="$ol_LIBS"
23392
23393 fi
23394 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23395 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23396
23397         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23398                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23399                 ol_link_threads=posix
23400         fi
23401 fi
23402
23403                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23404 if test "$ol_link_threads" = no ; then
23405         # try -lpthreads -lmach -lexc
23406         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23407 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23408 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23409   echo $ECHO_N "(cached) $ECHO_C" >&6
23410 else
23411
23412                 # save the flags
23413                 ol_LIBS="$LIBS"
23414                 LIBS="-lpthreads -lmach -lexc $LIBS"
23415
23416                 if test "$cross_compiling" = yes; then
23417   cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h.  */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h.  */
23423
23424 /* pthread test headers */
23425 #include <pthread.h>
23426 #if HAVE_PTHREADS < 7
23427 #include <errno.h>
23428 #endif
23429 #ifndef NULL
23430 #define NULL (void*)0
23431 #endif
23432
23433 static void *task(p)
23434         void *p;
23435 {
23436         return (void *) (p == NULL);
23437 }
23438
23439 int
23440 main ()
23441 {
23442
23443         /* pthread test function */
23444 #ifndef PTHREAD_CREATE_DETACHED
23445 #define PTHREAD_CREATE_DETACHED 1
23446 #endif
23447         pthread_t t;
23448         int status;
23449         int detach = PTHREAD_CREATE_DETACHED;
23450
23451 #if HAVE_PTHREADS > 4
23452         /* Final pthreads */
23453         pthread_attr_t attr;
23454
23455         status = pthread_attr_init(&attr);
23456         if( status ) return status;
23457
23458 #if HAVE_PTHREADS < 7
23459         status = pthread_attr_setdetachstate(&attr, &detach);
23460         if( status < 0 ) status = errno;
23461 #else
23462         status = pthread_attr_setdetachstate(&attr, detach);
23463 #endif
23464         if( status ) return status;
23465         status = pthread_create( &t, &attr, task, NULL );
23466 #if HAVE_PTHREADS < 7
23467         if( status < 0 ) status = errno;
23468 #endif
23469         if( status ) return status;
23470 #else
23471         /* Draft 4 pthreads */
23472         status = pthread_create( &t, pthread_attr_default, task, NULL );
23473         if( status ) return errno;
23474
23475         /* give thread a chance to complete */
23476         /* it should remain joinable and hence detachable */
23477         sleep( 1 );
23478
23479         status = pthread_detach( &t );
23480         if( status ) return errno;
23481 #endif
23482
23483 #ifdef HAVE_LINUX_THREADS
23484         pthread_kill_other_threads_np();
23485 #endif
23486
23487         return 0;
23488
23489   ;
23490   return 0;
23491 }
23492 _ACEOF
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23495   (eval $ac_link) 2>conftest.er1
23496   ac_status=$?
23497   grep -v '^ *+' conftest.er1 >conftest.err
23498   rm -f conftest.er1
23499   cat conftest.err >&5
23500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501   (exit $ac_status); } &&
23502          { ac_try='test -z "$ac_c_werror_flag"
23503                          || test ! -s conftest.err'
23504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505   (eval $ac_try) 2>&5
23506   ac_status=$?
23507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); }; } &&
23509          { ac_try='test -s conftest$ac_exeext'
23510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; }; then
23515   ol_cv_pthread_lpthreads_lmach_lexc=yes
23516 else
23517   echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23519
23520 ol_cv_pthread_lpthreads_lmach_lexc=no
23521 fi
23522 rm -f conftest.err conftest.$ac_objext \
23523       conftest$ac_exeext conftest.$ac_ext
23524 else
23525   cat >conftest.$ac_ext <<_ACEOF
23526 /* confdefs.h.  */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h.  */
23531
23532 /* pthread test headers */
23533 #include <pthread.h>
23534 #if HAVE_PTHREADS < 7
23535 #include <errno.h>
23536 #endif
23537 #ifndef NULL
23538 #define NULL (void*)0
23539 #endif
23540
23541 static void *task(p)
23542         void *p;
23543 {
23544         return (void *) (p == NULL);
23545 }
23546
23547
23548 int main(argc, argv)
23549         int argc;
23550         char **argv;
23551 {
23552
23553         /* pthread test function */
23554 #ifndef PTHREAD_CREATE_DETACHED
23555 #define PTHREAD_CREATE_DETACHED 1
23556 #endif
23557         pthread_t t;
23558         int status;
23559         int detach = PTHREAD_CREATE_DETACHED;
23560
23561 #if HAVE_PTHREADS > 4
23562         /* Final pthreads */
23563         pthread_attr_t attr;
23564
23565         status = pthread_attr_init(&attr);
23566         if( status ) return status;
23567
23568 #if HAVE_PTHREADS < 7
23569         status = pthread_attr_setdetachstate(&attr, &detach);
23570         if( status < 0 ) status = errno;
23571 #else
23572         status = pthread_attr_setdetachstate(&attr, detach);
23573 #endif
23574         if( status ) return status;
23575         status = pthread_create( &t, &attr, task, NULL );
23576 #if HAVE_PTHREADS < 7
23577         if( status < 0 ) status = errno;
23578 #endif
23579         if( status ) return status;
23580 #else
23581         /* Draft 4 pthreads */
23582         status = pthread_create( &t, pthread_attr_default, task, NULL );
23583         if( status ) return errno;
23584
23585         /* give thread a chance to complete */
23586         /* it should remain joinable and hence detachable */
23587         sleep( 1 );
23588
23589         status = pthread_detach( &t );
23590         if( status ) return errno;
23591 #endif
23592
23593 #ifdef HAVE_LINUX_THREADS
23594         pthread_kill_other_threads_np();
23595 #endif
23596
23597         return 0;
23598
23599 }
23600
23601 _ACEOF
23602 rm -f conftest$ac_exeext
23603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23604   (eval $ac_link) 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; }; then
23613   ol_cv_pthread_lpthreads_lmach_lexc=yes
23614 else
23615   echo "$as_me: program exited with status $ac_status" >&5
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 ( exit $ac_status )
23620 ol_cv_pthread_lpthreads_lmach_lexc=no
23621 fi
23622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23623 fi
23624
23625                 # restore the LIBS
23626                 LIBS="$ol_LIBS"
23627
23628 fi
23629 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23630 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23631
23632         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23633                 ol_link_pthreads="-lpthreads -lmach -lexc"
23634                 ol_link_threads=posix
23635         fi
23636 fi
23637
23638                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23639 if test "$ol_link_threads" = no ; then
23640         # try -lpthreads -lexc
23641         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23642 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23643 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23644   echo $ECHO_N "(cached) $ECHO_C" >&6
23645 else
23646
23647                 # save the flags
23648                 ol_LIBS="$LIBS"
23649                 LIBS="-lpthreads -lexc $LIBS"
23650
23651                 if test "$cross_compiling" = yes; then
23652   cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658
23659 /* pthread test headers */
23660 #include <pthread.h>
23661 #if HAVE_PTHREADS < 7
23662 #include <errno.h>
23663 #endif
23664 #ifndef NULL
23665 #define NULL (void*)0
23666 #endif
23667
23668 static void *task(p)
23669         void *p;
23670 {
23671         return (void *) (p == NULL);
23672 }
23673
23674 int
23675 main ()
23676 {
23677
23678         /* pthread test function */
23679 #ifndef PTHREAD_CREATE_DETACHED
23680 #define PTHREAD_CREATE_DETACHED 1
23681 #endif
23682         pthread_t t;
23683         int status;
23684         int detach = PTHREAD_CREATE_DETACHED;
23685
23686 #if HAVE_PTHREADS > 4
23687         /* Final pthreads */
23688         pthread_attr_t attr;
23689
23690         status = pthread_attr_init(&attr);
23691         if( status ) return status;
23692
23693 #if HAVE_PTHREADS < 7
23694         status = pthread_attr_setdetachstate(&attr, &detach);
23695         if( status < 0 ) status = errno;
23696 #else
23697         status = pthread_attr_setdetachstate(&attr, detach);
23698 #endif
23699         if( status ) return status;
23700         status = pthread_create( &t, &attr, task, NULL );
23701 #if HAVE_PTHREADS < 7
23702         if( status < 0 ) status = errno;
23703 #endif
23704         if( status ) return status;
23705 #else
23706         /* Draft 4 pthreads */
23707         status = pthread_create( &t, pthread_attr_default, task, NULL );
23708         if( status ) return errno;
23709
23710         /* give thread a chance to complete */
23711         /* it should remain joinable and hence detachable */
23712         sleep( 1 );
23713
23714         status = pthread_detach( &t );
23715         if( status ) return errno;
23716 #endif
23717
23718 #ifdef HAVE_LINUX_THREADS
23719         pthread_kill_other_threads_np();
23720 #endif
23721
23722         return 0;
23723
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730   (eval $ac_link) 2>conftest.er1
23731   ac_status=$?
23732   grep -v '^ *+' conftest.er1 >conftest.err
23733   rm -f conftest.er1
23734   cat conftest.err >&5
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); } &&
23737          { ac_try='test -z "$ac_c_werror_flag"
23738                          || test ! -s conftest.err'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; } &&
23744          { ac_try='test -s conftest$ac_exeext'
23745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746   (eval $ac_try) 2>&5
23747   ac_status=$?
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); }; }; then
23750   ol_cv_pthread_lpthreads_lexc=yes
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 ol_cv_pthread_lpthreads_lexc=no
23756 fi
23757 rm -f conftest.err conftest.$ac_objext \
23758       conftest$ac_exeext conftest.$ac_ext
23759 else
23760   cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766
23767 /* pthread test headers */
23768 #include <pthread.h>
23769 #if HAVE_PTHREADS < 7
23770 #include <errno.h>
23771 #endif
23772 #ifndef NULL
23773 #define NULL (void*)0
23774 #endif
23775
23776 static void *task(p)
23777         void *p;
23778 {
23779         return (void *) (p == NULL);
23780 }
23781
23782
23783 int main(argc, argv)
23784         int argc;
23785         char **argv;
23786 {
23787
23788         /* pthread test function */
23789 #ifndef PTHREAD_CREATE_DETACHED
23790 #define PTHREAD_CREATE_DETACHED 1
23791 #endif
23792         pthread_t t;
23793         int status;
23794         int detach = PTHREAD_CREATE_DETACHED;
23795
23796 #if HAVE_PTHREADS > 4
23797         /* Final pthreads */
23798         pthread_attr_t attr;
23799
23800         status = pthread_attr_init(&attr);
23801         if( status ) return status;
23802
23803 #if HAVE_PTHREADS < 7
23804         status = pthread_attr_setdetachstate(&attr, &detach);
23805         if( status < 0 ) status = errno;
23806 #else
23807         status = pthread_attr_setdetachstate(&attr, detach);
23808 #endif
23809         if( status ) return status;
23810         status = pthread_create( &t, &attr, task, NULL );
23811 #if HAVE_PTHREADS < 7
23812         if( status < 0 ) status = errno;
23813 #endif
23814         if( status ) return status;
23815 #else
23816         /* Draft 4 pthreads */
23817         status = pthread_create( &t, pthread_attr_default, task, NULL );
23818         if( status ) return errno;
23819
23820         /* give thread a chance to complete */
23821         /* it should remain joinable and hence detachable */
23822         sleep( 1 );
23823
23824         status = pthread_detach( &t );
23825         if( status ) return errno;
23826 #endif
23827
23828 #ifdef HAVE_LINUX_THREADS
23829         pthread_kill_other_threads_np();
23830 #endif
23831
23832         return 0;
23833
23834 }
23835
23836 _ACEOF
23837 rm -f conftest$ac_exeext
23838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23839   (eval $ac_link) 2>&5
23840   ac_status=$?
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844   (eval $ac_try) 2>&5
23845   ac_status=$?
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); }; }; then
23848   ol_cv_pthread_lpthreads_lexc=yes
23849 else
23850   echo "$as_me: program exited with status $ac_status" >&5
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854 ( exit $ac_status )
23855 ol_cv_pthread_lpthreads_lexc=no
23856 fi
23857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23858 fi
23859
23860                 # restore the LIBS
23861                 LIBS="$ol_LIBS"
23862
23863 fi
23864 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23865 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23866
23867         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23868                 ol_link_pthreads="-lpthreads -lexc"
23869                 ol_link_threads=posix
23870         fi
23871 fi
23872
23873
23874                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23875 if test "$ol_link_threads" = no ; then
23876         # try -lpthreads
23877         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23878 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23879 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23880   echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23882
23883                 # save the flags
23884                 ol_LIBS="$LIBS"
23885                 LIBS="-lpthreads $LIBS"
23886
23887                 if test "$cross_compiling" = yes; then
23888   cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894
23895 /* pthread test headers */
23896 #include <pthread.h>
23897 #if HAVE_PTHREADS < 7
23898 #include <errno.h>
23899 #endif
23900 #ifndef NULL
23901 #define NULL (void*)0
23902 #endif
23903
23904 static void *task(p)
23905         void *p;
23906 {
23907         return (void *) (p == NULL);
23908 }
23909
23910 int
23911 main ()
23912 {
23913
23914         /* pthread test function */
23915 #ifndef PTHREAD_CREATE_DETACHED
23916 #define PTHREAD_CREATE_DETACHED 1
23917 #endif
23918         pthread_t t;
23919         int status;
23920         int detach = PTHREAD_CREATE_DETACHED;
23921
23922 #if HAVE_PTHREADS > 4
23923         /* Final pthreads */
23924         pthread_attr_t attr;
23925
23926         status = pthread_attr_init(&attr);
23927         if( status ) return status;
23928
23929 #if HAVE_PTHREADS < 7
23930         status = pthread_attr_setdetachstate(&attr, &detach);
23931         if( status < 0 ) status = errno;
23932 #else
23933         status = pthread_attr_setdetachstate(&attr, detach);
23934 #endif
23935         if( status ) return status;
23936         status = pthread_create( &t, &attr, task, NULL );
23937 #if HAVE_PTHREADS < 7
23938         if( status < 0 ) status = errno;
23939 #endif
23940         if( status ) return status;
23941 #else
23942         /* Draft 4 pthreads */
23943         status = pthread_create( &t, pthread_attr_default, task, NULL );
23944         if( status ) return errno;
23945
23946         /* give thread a chance to complete */
23947         /* it should remain joinable and hence detachable */
23948         sleep( 1 );
23949
23950         status = pthread_detach( &t );
23951         if( status ) return errno;
23952 #endif
23953
23954 #ifdef HAVE_LINUX_THREADS
23955         pthread_kill_other_threads_np();
23956 #endif
23957
23958         return 0;
23959
23960   ;
23961   return 0;
23962 }
23963 _ACEOF
23964 rm -f conftest.$ac_objext conftest$ac_exeext
23965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23966   (eval $ac_link) 2>conftest.er1
23967   ac_status=$?
23968   grep -v '^ *+' conftest.er1 >conftest.err
23969   rm -f conftest.er1
23970   cat conftest.err >&5
23971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972   (exit $ac_status); } &&
23973          { ac_try='test -z "$ac_c_werror_flag"
23974                          || test ! -s conftest.err'
23975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23976   (eval $ac_try) 2>&5
23977   ac_status=$?
23978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979   (exit $ac_status); }; } &&
23980          { ac_try='test -s conftest$ac_exeext'
23981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982   (eval $ac_try) 2>&5
23983   ac_status=$?
23984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985   (exit $ac_status); }; }; then
23986   ol_cv_pthread_lib_lpthreads=yes
23987 else
23988   echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23990
23991 ol_cv_pthread_lib_lpthreads=no
23992 fi
23993 rm -f conftest.err conftest.$ac_objext \
23994       conftest$ac_exeext conftest.$ac_ext
23995 else
23996   cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h.  */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h.  */
24002
24003 /* pthread test headers */
24004 #include <pthread.h>
24005 #if HAVE_PTHREADS < 7
24006 #include <errno.h>
24007 #endif
24008 #ifndef NULL
24009 #define NULL (void*)0
24010 #endif
24011
24012 static void *task(p)
24013         void *p;
24014 {
24015         return (void *) (p == NULL);
24016 }
24017
24018
24019 int main(argc, argv)
24020         int argc;
24021         char **argv;
24022 {
24023
24024         /* pthread test function */
24025 #ifndef PTHREAD_CREATE_DETACHED
24026 #define PTHREAD_CREATE_DETACHED 1
24027 #endif
24028         pthread_t t;
24029         int status;
24030         int detach = PTHREAD_CREATE_DETACHED;
24031
24032 #if HAVE_PTHREADS > 4
24033         /* Final pthreads */
24034         pthread_attr_t attr;
24035
24036         status = pthread_attr_init(&attr);
24037         if( status ) return status;
24038
24039 #if HAVE_PTHREADS < 7
24040         status = pthread_attr_setdetachstate(&attr, &detach);
24041         if( status < 0 ) status = errno;
24042 #else
24043         status = pthread_attr_setdetachstate(&attr, detach);
24044 #endif
24045         if( status ) return status;
24046         status = pthread_create( &t, &attr, task, NULL );
24047 #if HAVE_PTHREADS < 7
24048         if( status < 0 ) status = errno;
24049 #endif
24050         if( status ) return status;
24051 #else
24052         /* Draft 4 pthreads */
24053         status = pthread_create( &t, pthread_attr_default, task, NULL );
24054         if( status ) return errno;
24055
24056         /* give thread a chance to complete */
24057         /* it should remain joinable and hence detachable */
24058         sleep( 1 );
24059
24060         status = pthread_detach( &t );
24061         if( status ) return errno;
24062 #endif
24063
24064 #ifdef HAVE_LINUX_THREADS
24065         pthread_kill_other_threads_np();
24066 #endif
24067
24068         return 0;
24069
24070 }
24071
24072 _ACEOF
24073 rm -f conftest$ac_exeext
24074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24075   (eval $ac_link) 2>&5
24076   ac_status=$?
24077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080   (eval $ac_try) 2>&5
24081   ac_status=$?
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); }; }; then
24084   ol_cv_pthread_lib_lpthreads=yes
24085 else
24086   echo "$as_me: program exited with status $ac_status" >&5
24087 echo "$as_me: failed program was:" >&5
24088 sed 's/^/| /' conftest.$ac_ext >&5
24089
24090 ( exit $ac_status )
24091 ol_cv_pthread_lib_lpthreads=no
24092 fi
24093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24094 fi
24095
24096                 # restore the LIBS
24097                 LIBS="$ol_LIBS"
24098
24099 fi
24100 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24101 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24102
24103         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24104                 ol_link_pthreads="-lpthreads"
24105                 ol_link_threads=posix
24106         fi
24107 fi
24108
24109
24110                 if test $ol_link_threads != no ; then
24111                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24112
24113                                                 save_CPPFLAGS="$CPPFLAGS"
24114                         save_LIBS="$LIBS"
24115                         LIBS="$LTHREAD_LIBS $LIBS"
24116
24117
24118
24119
24120 for ac_func in sched_yield pthread_yield thr_yield
24121 do
24122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24123 echo "$as_me:$LINENO: checking for $ac_func" >&5
24124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24125 if eval "test \"\${$as_ac_var+set}\" = set"; then
24126   echo $ECHO_N "(cached) $ECHO_C" >&6
24127 else
24128   cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24136 #define $ac_func innocuous_$ac_func
24137
24138 /* System header to define __stub macros and hopefully few prototypes,
24139     which can conflict with char $ac_func (); below.
24140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24141     <limits.h> exists even on freestanding compilers.  */
24142
24143 #ifdef __STDC__
24144 # include <limits.h>
24145 #else
24146 # include <assert.h>
24147 #endif
24148
24149 #undef $ac_func
24150
24151 /* Override any gcc2 internal prototype to avoid an error.  */
24152 #ifdef __cplusplus
24153 extern "C"
24154 {
24155 #endif
24156 /* We use char because int might match the return type of a gcc2
24157    builtin and then its argument prototype would still apply.  */
24158 char $ac_func ();
24159 /* The GNU C library defines this for functions which it implements
24160     to always fail with ENOSYS.  Some functions are actually named
24161     something starting with __ and the normal name is an alias.  */
24162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24163 choke me
24164 #else
24165 char (*f) () = $ac_func;
24166 #endif
24167 #ifdef __cplusplus
24168 }
24169 #endif
24170
24171 int
24172 main ()
24173 {
24174 return f != $ac_func;
24175   ;
24176   return 0;
24177 }
24178 _ACEOF
24179 rm -f conftest.$ac_objext conftest$ac_exeext
24180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24181   (eval $ac_link) 2>conftest.er1
24182   ac_status=$?
24183   grep -v '^ *+' conftest.er1 >conftest.err
24184   rm -f conftest.er1
24185   cat conftest.err >&5
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); } &&
24188          { ac_try='test -z "$ac_c_werror_flag"
24189                          || test ! -s conftest.err'
24190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191   (eval $ac_try) 2>&5
24192   ac_status=$?
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); }; } &&
24195          { ac_try='test -s conftest$ac_exeext'
24196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197   (eval $ac_try) 2>&5
24198   ac_status=$?
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); }; }; then
24201   eval "$as_ac_var=yes"
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206 eval "$as_ac_var=no"
24207 fi
24208 rm -f conftest.err conftest.$ac_objext \
24209       conftest$ac_exeext conftest.$ac_ext
24210 fi
24211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24213 if test `eval echo '${'$as_ac_var'}'` = yes; then
24214   cat >>confdefs.h <<_ACEOF
24215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24216 _ACEOF
24217
24218 fi
24219 done
24220
24221
24222                         if test $ac_cv_func_sched_yield = no &&
24223                            test $ac_cv_func_pthread_yield = no &&
24224                            test $ac_cv_func_thr_yield = no ; then
24225                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24226 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24227 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24228   echo $ECHO_N "(cached) $ECHO_C" >&6
24229 else
24230   ac_check_lib_save_LIBS=$LIBS
24231 LIBS="-lrt  $LIBS"
24232 cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h.  */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h.  */
24238
24239 /* Override any gcc2 internal prototype to avoid an error.  */
24240 #ifdef __cplusplus
24241 extern "C"
24242 #endif
24243 /* We use char because int might match the return type of a gcc2
24244    builtin and then its argument prototype would still apply.  */
24245 char sched_yield ();
24246 int
24247 main ()
24248 {
24249 sched_yield ();
24250   ;
24251   return 0;
24252 }
24253 _ACEOF
24254 rm -f conftest.$ac_objext conftest$ac_exeext
24255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24256   (eval $ac_link) 2>conftest.er1
24257   ac_status=$?
24258   grep -v '^ *+' conftest.er1 >conftest.err
24259   rm -f conftest.er1
24260   cat conftest.err >&5
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); } &&
24263          { ac_try='test -z "$ac_c_werror_flag"
24264                          || test ! -s conftest.err'
24265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24266   (eval $ac_try) 2>&5
24267   ac_status=$?
24268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269   (exit $ac_status); }; } &&
24270          { ac_try='test -s conftest$ac_exeext'
24271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272   (eval $ac_try) 2>&5
24273   ac_status=$?
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); }; }; then
24276   ac_cv_lib_rt_sched_yield=yes
24277 else
24278   echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24280
24281 ac_cv_lib_rt_sched_yield=no
24282 fi
24283 rm -f conftest.err conftest.$ac_objext \
24284       conftest$ac_exeext conftest.$ac_ext
24285 LIBS=$ac_check_lib_save_LIBS
24286 fi
24287 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24288 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24289 if test $ac_cv_lib_rt_sched_yield = yes; then
24290   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24291
24292 cat >>confdefs.h <<\_ACEOF
24293 #define HAVE_SCHED_YIELD 1
24294 _ACEOF
24295
24296                                         ac_cv_func_sched_yield=yes
24297 else
24298   ac_cv_func_sched_yield=no
24299 fi
24300
24301                         fi
24302                         if test $ac_cv_func_sched_yield = no &&
24303                            test $ac_cv_func_pthread_yield = no &&
24304                            test "$ac_cv_func_thr_yield" = no ; then
24305                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24306 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24307                         fi
24308
24309
24310
24311 for ac_func in pthread_kill pthread_rwlock_destroy
24312 do
24313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24314 echo "$as_me:$LINENO: checking for $ac_func" >&5
24315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24316 if eval "test \"\${$as_ac_var+set}\" = set"; then
24317   echo $ECHO_N "(cached) $ECHO_C" >&6
24318 else
24319   cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h.  */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h.  */
24325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24327 #define $ac_func innocuous_$ac_func
24328
24329 /* System header to define __stub macros and hopefully few prototypes,
24330     which can conflict with char $ac_func (); below.
24331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24332     <limits.h> exists even on freestanding compilers.  */
24333
24334 #ifdef __STDC__
24335 # include <limits.h>
24336 #else
24337 # include <assert.h>
24338 #endif
24339
24340 #undef $ac_func
24341
24342 /* Override any gcc2 internal prototype to avoid an error.  */
24343 #ifdef __cplusplus
24344 extern "C"
24345 {
24346 #endif
24347 /* We use char because int might match the return type of a gcc2
24348    builtin and then its argument prototype would still apply.  */
24349 char $ac_func ();
24350 /* The GNU C library defines this for functions which it implements
24351     to always fail with ENOSYS.  Some functions are actually named
24352     something starting with __ and the normal name is an alias.  */
24353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24354 choke me
24355 #else
24356 char (*f) () = $ac_func;
24357 #endif
24358 #ifdef __cplusplus
24359 }
24360 #endif
24361
24362 int
24363 main ()
24364 {
24365 return f != $ac_func;
24366   ;
24367   return 0;
24368 }
24369 _ACEOF
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24372   (eval $ac_link) 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } &&
24379          { ac_try='test -z "$ac_c_werror_flag"
24380                          || test ! -s conftest.err'
24381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382   (eval $ac_try) 2>&5
24383   ac_status=$?
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); }; } &&
24386          { ac_try='test -s conftest$ac_exeext'
24387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388   (eval $ac_try) 2>&5
24389   ac_status=$?
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); }; }; then
24392   eval "$as_ac_var=yes"
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397 eval "$as_ac_var=no"
24398 fi
24399 rm -f conftest.err conftest.$ac_objext \
24400       conftest$ac_exeext conftest.$ac_ext
24401 fi
24402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24404 if test `eval echo '${'$as_ac_var'}'` = yes; then
24405   cat >>confdefs.h <<_ACEOF
24406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24407 _ACEOF
24408
24409 fi
24410 done
24411
24412
24413                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24414 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24415 if test "${ol_cv_func_pthread_detach+set}" = set; then
24416   echo $ECHO_N "(cached) $ECHO_C" >&6
24417 else
24418
24419                                                                 cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h.  */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h.  */
24425
24426 #include <pthread.h>
24427 #ifndef NULL
24428 #define NULL (void*)0
24429 #endif
24430
24431 int
24432 main ()
24433 {
24434 pthread_detach(NULL);
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24441   (eval $ac_link) 2>conftest.er1
24442   ac_status=$?
24443   grep -v '^ *+' conftest.er1 >conftest.err
24444   rm -f conftest.er1
24445   cat conftest.err >&5
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); } &&
24448          { ac_try='test -z "$ac_c_werror_flag"
24449                          || test ! -s conftest.err'
24450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24451   (eval $ac_try) 2>&5
24452   ac_status=$?
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); }; } &&
24455          { ac_try='test -s conftest$ac_exeext'
24456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; }; then
24461   ol_cv_func_pthread_detach=yes
24462 else
24463   echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24465
24466 ol_cv_func_pthread_detach=no
24467 fi
24468 rm -f conftest.err conftest.$ac_objext \
24469       conftest$ac_exeext conftest.$ac_ext
24470
24471 fi
24472 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24473 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24474
24475                         if test $ol_cv_func_pthread_detach = no ; then
24476                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24477 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24478    { (exit 1); exit 1; }; }
24479                         fi
24480
24481
24482 cat >>confdefs.h <<\_ACEOF
24483 #define HAVE_PTHREAD_DETACH 1
24484 _ACEOF
24485
24486
24487
24488
24489
24490
24491 for ac_func in \
24492                                 pthread_setconcurrency \
24493                                 pthread_getconcurrency \
24494                                 thr_setconcurrency \
24495                                 thr_getconcurrency \
24496
24497 do
24498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24499 echo "$as_me:$LINENO: checking for $ac_func" >&5
24500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24501 if eval "test \"\${$as_ac_var+set}\" = set"; then
24502   echo $ECHO_N "(cached) $ECHO_C" >&6
24503 else
24504   cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h.  */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h.  */
24510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24512 #define $ac_func innocuous_$ac_func
24513
24514 /* System header to define __stub macros and hopefully few prototypes,
24515     which can conflict with char $ac_func (); below.
24516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24517     <limits.h> exists even on freestanding compilers.  */
24518
24519 #ifdef __STDC__
24520 # include <limits.h>
24521 #else
24522 # include <assert.h>
24523 #endif
24524
24525 #undef $ac_func
24526
24527 /* Override any gcc2 internal prototype to avoid an error.  */
24528 #ifdef __cplusplus
24529 extern "C"
24530 {
24531 #endif
24532 /* We use char because int might match the return type of a gcc2
24533    builtin and then its argument prototype would still apply.  */
24534 char $ac_func ();
24535 /* The GNU C library defines this for functions which it implements
24536     to always fail with ENOSYS.  Some functions are actually named
24537     something starting with __ and the normal name is an alias.  */
24538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24539 choke me
24540 #else
24541 char (*f) () = $ac_func;
24542 #endif
24543 #ifdef __cplusplus
24544 }
24545 #endif
24546
24547 int
24548 main ()
24549 {
24550 return f != $ac_func;
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24557   (eval $ac_link) 2>conftest.er1
24558   ac_status=$?
24559   grep -v '^ *+' conftest.er1 >conftest.err
24560   rm -f conftest.er1
24561   cat conftest.err >&5
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); } &&
24564          { ac_try='test -z "$ac_c_werror_flag"
24565                          || test ! -s conftest.err'
24566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567   (eval $ac_try) 2>&5
24568   ac_status=$?
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); }; } &&
24571          { ac_try='test -s conftest$ac_exeext'
24572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573   (eval $ac_try) 2>&5
24574   ac_status=$?
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); }; }; then
24577   eval "$as_ac_var=yes"
24578 else
24579   echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 eval "$as_ac_var=no"
24583 fi
24584 rm -f conftest.err conftest.$ac_objext \
24585       conftest$ac_exeext conftest.$ac_ext
24586 fi
24587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590   cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24592 _ACEOF
24593
24594 fi
24595 done
24596
24597
24598
24599
24600 for ac_func in pthread_kill_other_threads_np
24601 do
24602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24603 echo "$as_me:$LINENO: checking for $ac_func" >&5
24604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24605 if eval "test \"\${$as_ac_var+set}\" = set"; then
24606   echo $ECHO_N "(cached) $ECHO_C" >&6
24607 else
24608   cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h.  */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h.  */
24614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24616 #define $ac_func innocuous_$ac_func
24617
24618 /* System header to define __stub macros and hopefully few prototypes,
24619     which can conflict with char $ac_func (); below.
24620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24621     <limits.h> exists even on freestanding compilers.  */
24622
24623 #ifdef __STDC__
24624 # include <limits.h>
24625 #else
24626 # include <assert.h>
24627 #endif
24628
24629 #undef $ac_func
24630
24631 /* Override any gcc2 internal prototype to avoid an error.  */
24632 #ifdef __cplusplus
24633 extern "C"
24634 {
24635 #endif
24636 /* We use char because int might match the return type of a gcc2
24637    builtin and then its argument prototype would still apply.  */
24638 char $ac_func ();
24639 /* The GNU C library defines this for functions which it implements
24640     to always fail with ENOSYS.  Some functions are actually named
24641     something starting with __ and the normal name is an alias.  */
24642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24643 choke me
24644 #else
24645 char (*f) () = $ac_func;
24646 #endif
24647 #ifdef __cplusplus
24648 }
24649 #endif
24650
24651 int
24652 main ()
24653 {
24654 return f != $ac_func;
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext conftest$ac_exeext
24660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24661   (eval $ac_link) 2>conftest.er1
24662   ac_status=$?
24663   grep -v '^ *+' conftest.er1 >conftest.err
24664   rm -f conftest.er1
24665   cat conftest.err >&5
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); } &&
24668          { ac_try='test -z "$ac_c_werror_flag"
24669                          || test ! -s conftest.err'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; } &&
24675          { ac_try='test -s conftest$ac_exeext'
24676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677   (eval $ac_try) 2>&5
24678   ac_status=$?
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); }; }; then
24681   eval "$as_ac_var=yes"
24682 else
24683   echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686 eval "$as_ac_var=no"
24687 fi
24688 rm -f conftest.err conftest.$ac_objext \
24689       conftest$ac_exeext conftest.$ac_ext
24690 fi
24691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24693 if test `eval echo '${'$as_ac_var'}'` = yes; then
24694   cat >>confdefs.h <<_ACEOF
24695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24696 _ACEOF
24697
24698 fi
24699 done
24700
24701         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24702 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24703 if test "${ol_cv_sys_linux_threads+set}" = set; then
24704   echo $ECHO_N "(cached) $ECHO_C" >&6
24705 else
24706   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24707 fi
24708 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24709 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24710
24711
24712
24713
24714         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24715 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24716 if test "${ol_cv_linux_threads+set}" = set; then
24717   echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719
24720                 if test $ol_cv_header_linux_threads = yes &&
24721                    test $ol_cv_sys_linux_threads = yes; then
24722                         ol_cv_linux_threads=yes
24723                 elif test $ol_cv_header_linux_threads = no &&
24724                      test $ol_cv_sys_linux_threads = no; then
24725                         ol_cv_linux_threads=no
24726                 else
24727                         ol_cv_linux_threads=error
24728                 fi
24729
24730 fi
24731 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24732 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24733
24734
24735                         if test $ol_cv_linux_threads = error; then
24736                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24737 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24738    { (exit 1); exit 1; }; };
24739                         fi
24740
24741                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24742 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24743 if test "${ol_cv_pthread_create_works+set}" = set; then
24744   echo $ECHO_N "(cached) $ECHO_C" >&6
24745 else
24746
24747                         if test "$cross_compiling" = yes; then
24748                                 ol_cv_pthread_create_works=yes
24749 else
24750   cat >conftest.$ac_ext <<_ACEOF
24751 /* confdefs.h.  */
24752 _ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h.  */
24756
24757 /* pthread test headers */
24758 #include <pthread.h>
24759 #if HAVE_PTHREADS < 7
24760 #include <errno.h>
24761 #endif
24762 #ifndef NULL
24763 #define NULL (void*)0
24764 #endif
24765
24766 static void *task(p)
24767         void *p;
24768 {
24769         return (void *) (p == NULL);
24770 }
24771
24772
24773 int main(argc, argv)
24774         int argc;
24775         char **argv;
24776 {
24777
24778         /* pthread test function */
24779 #ifndef PTHREAD_CREATE_DETACHED
24780 #define PTHREAD_CREATE_DETACHED 1
24781 #endif
24782         pthread_t t;
24783         int status;
24784         int detach = PTHREAD_CREATE_DETACHED;
24785
24786 #if HAVE_PTHREADS > 4
24787         /* Final pthreads */
24788         pthread_attr_t attr;
24789
24790         status = pthread_attr_init(&attr);
24791         if( status ) return status;
24792
24793 #if HAVE_PTHREADS < 7
24794         status = pthread_attr_setdetachstate(&attr, &detach);
24795         if( status < 0 ) status = errno;
24796 #else
24797         status = pthread_attr_setdetachstate(&attr, detach);
24798 #endif
24799         if( status ) return status;
24800         status = pthread_create( &t, &attr, task, NULL );
24801 #if HAVE_PTHREADS < 7
24802         if( status < 0 ) status = errno;
24803 #endif
24804         if( status ) return status;
24805 #else
24806         /* Draft 4 pthreads */
24807         status = pthread_create( &t, pthread_attr_default, task, NULL );
24808         if( status ) return errno;
24809
24810         /* give thread a chance to complete */
24811         /* it should remain joinable and hence detachable */
24812         sleep( 1 );
24813
24814         status = pthread_detach( &t );
24815         if( status ) return errno;
24816 #endif
24817
24818 #ifdef HAVE_LINUX_THREADS
24819         pthread_kill_other_threads_np();
24820 #endif
24821
24822         return 0;
24823
24824 }
24825
24826 _ACEOF
24827 rm -f conftest$ac_exeext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24829   (eval $ac_link) 2>&5
24830   ac_status=$?
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834   (eval $ac_try) 2>&5
24835   ac_status=$?
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); }; }; then
24838   ol_cv_pthread_create_works=yes
24839 else
24840   echo "$as_me: program exited with status $ac_status" >&5
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 ( exit $ac_status )
24845 ol_cv_pthread_create_works=no
24846 fi
24847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24848 fi
24849 fi
24850 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24851 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24852
24853                         if test $ol_cv_pthread_create_works = no ; then
24854                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24855 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24856    { (exit 1); exit 1; }; }
24857                         fi
24858
24859                         ol_replace_broken_yield=no
24860
24861                         if test $ol_replace_broken_yield = yes ; then
24862
24863 cat >>confdefs.h <<\_ACEOF
24864 #define REPLACE_BROKEN_YIELD 1
24865 _ACEOF
24866
24867                         fi
24868
24869                                                 if test $ol_with_yielding_select = auto ; then
24870                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24871 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24872 if test "${ol_cv_pthread_select_yields+set}" = set; then
24873   echo $ECHO_N "(cached) $ECHO_C" >&6
24874 else
24875
24876                                 if test "$cross_compiling" = yes; then
24877   ol_cv_pthread_select_yields=cross
24878 else
24879   cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h.  */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h.  */
24885
24886 #include <sys/types.h>
24887 #include <sys/time.h>
24888 #include <unistd.h>
24889 #include <pthread.h>
24890 #ifndef NULL
24891 #define NULL (void*) 0
24892 #endif
24893
24894 static int fildes[2];
24895
24896 static void *task(p)
24897         void *p;
24898 {
24899         int i;
24900         struct timeval tv;
24901
24902         fd_set rfds;
24903
24904         tv.tv_sec=10;
24905         tv.tv_usec=0;
24906
24907         FD_ZERO(&rfds);
24908         FD_SET(fildes[0], &rfds);
24909
24910         /* we're not interested in any fds */
24911         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24912
24913         if(i < 0) {
24914                 perror("select");
24915                 exit(10);
24916         }
24917
24918         exit(0); /* if we exit here, the select blocked the whole process */
24919 }
24920
24921 int main(argc, argv)
24922         int argc;
24923         char **argv;
24924 {
24925         pthread_t t;
24926
24927         /* create a pipe to select */
24928         if(pipe(&fildes[0])) {
24929                 perror("select");
24930                 exit(1);
24931         }
24932
24933 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24934         (void) pthread_setconcurrency(2);
24935 #else
24936 #ifdef HAVE_THR_SETCONCURRENCY
24937         /* Set Solaris LWP concurrency to 2 */
24938         thr_setconcurrency(2);
24939 #endif
24940 #endif
24941
24942 #if HAVE_PTHREADS < 6
24943         pthread_create(&t, pthread_attr_default, task, NULL);
24944 #else
24945         pthread_create(&t, NULL, task, NULL);
24946 #endif
24947
24948         /* make sure task runs first */
24949 #if HAVE_THR_YIELD
24950         thr_yield();
24951 #elif defined( HAVE_SCHED_YIELD )
24952         sched_yield();
24953 #elif defined( HAVE_PTHREAD_YIELD )
24954         pthread_yield();
24955 #endif
24956
24957         exit(2);
24958 }
24959 _ACEOF
24960 rm -f conftest$ac_exeext
24961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24962   (eval $ac_link) 2>&5
24963   ac_status=$?
24964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24967   (eval $ac_try) 2>&5
24968   ac_status=$?
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); }; }; then
24971   ol_cv_pthread_select_yields=no
24972 else
24973   echo "$as_me: program exited with status $ac_status" >&5
24974 echo "$as_me: failed program was:" >&5
24975 sed 's/^/| /' conftest.$ac_ext >&5
24976
24977 ( exit $ac_status )
24978 ol_cv_pthread_select_yields=yes
24979 fi
24980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24981 fi
24982 fi
24983 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24984 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24985
24986                                 if test $ol_cv_pthread_select_yields = cross ; then
24987                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24988 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24989    { (exit 1); exit 1; }; }
24990                                 fi
24991
24992                                 if test $ol_cv_pthread_select_yields = yes ; then
24993                                         ol_with_yielding_select=yes
24994                                 fi
24995                         fi
24996
24997                                                 CPPFLAGS="$save_CPPFLAGS"
24998                         LIBS="$save_LIBS"
24999                 else
25000                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25001 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25002    { (exit 1); exit 1; }; }
25003                 fi
25004         fi
25005
25006         if test $ol_with_threads = posix ; then
25007                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25008 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25009    { (exit 1); exit 1; }; }
25010         fi
25011         ;;
25012 esac
25013
25014 case $ol_with_threads in auto | yes | mach)
25015
25016
25017
25018 for ac_header in mach/cthreads.h cthreads.h
25019 do
25020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25022   echo "$as_me:$LINENO: checking for $ac_header" >&5
25023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25025   echo $ECHO_N "(cached) $ECHO_C" >&6
25026 fi
25027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25029 else
25030   # Is the header compilable?
25031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25033 cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h.  */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h.  */
25039 $ac_includes_default
25040 #include <$ac_header>
25041 _ACEOF
25042 rm -f conftest.$ac_objext
25043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25044   (eval $ac_compile) 2>conftest.er1
25045   ac_status=$?
25046   grep -v '^ *+' conftest.er1 >conftest.err
25047   rm -f conftest.er1
25048   cat conftest.err >&5
25049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050   (exit $ac_status); } &&
25051          { ac_try='test -z "$ac_c_werror_flag"
25052                          || test ! -s conftest.err'
25053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25054   (eval $ac_try) 2>&5
25055   ac_status=$?
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); }; } &&
25058          { ac_try='test -s conftest.$ac_objext'
25059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25060   (eval $ac_try) 2>&5
25061   ac_status=$?
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); }; }; then
25064   ac_header_compiler=yes
25065 else
25066   echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069 ac_header_compiler=no
25070 fi
25071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25072 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25073 echo "${ECHO_T}$ac_header_compiler" >&6
25074
25075 # Is the header present?
25076 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25078 cat >conftest.$ac_ext <<_ACEOF
25079 /* confdefs.h.  */
25080 _ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h.  */
25084 #include <$ac_header>
25085 _ACEOF
25086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25088   ac_status=$?
25089   grep -v '^ *+' conftest.er1 >conftest.err
25090   rm -f conftest.er1
25091   cat conftest.err >&5
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); } >/dev/null; then
25094   if test -s conftest.err; then
25095     ac_cpp_err=$ac_c_preproc_warn_flag
25096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25097   else
25098     ac_cpp_err=
25099   fi
25100 else
25101   ac_cpp_err=yes
25102 fi
25103 if test -z "$ac_cpp_err"; then
25104   ac_header_preproc=yes
25105 else
25106   echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25108
25109   ac_header_preproc=no
25110 fi
25111 rm -f conftest.err conftest.$ac_ext
25112 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25113 echo "${ECHO_T}$ac_header_preproc" >&6
25114
25115 # So?  What about this header?
25116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25117   yes:no: )
25118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25122     ac_header_preproc=yes
25123     ;;
25124   no:yes:* )
25125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25137     (
25138       cat <<\_ASBOX
25139 ## --------------------------------------------- ##
25140 ## Report this to <http://www.openldap.org/its/> ##
25141 ## --------------------------------------------- ##
25142 _ASBOX
25143     ) |
25144       sed "s/^/$as_me: WARNING:     /" >&2
25145     ;;
25146 esac
25147 echo "$as_me:$LINENO: checking for $ac_header" >&5
25148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25150   echo $ECHO_N "(cached) $ECHO_C" >&6
25151 else
25152   eval "$as_ac_Header=\$ac_header_preproc"
25153 fi
25154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25156
25157 fi
25158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25159   cat >>confdefs.h <<_ACEOF
25160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25161 _ACEOF
25162
25163 fi
25164
25165 done
25166
25167         if test $ac_cv_header_mach_cthreads_h = yes ; then
25168                 ol_with_threads=found
25169
25170                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25171 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25172 if test "${ac_cv_func_cthread_fork+set}" = set; then
25173   echo $ECHO_N "(cached) $ECHO_C" >&6
25174 else
25175   cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h.  */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h.  */
25181 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25183 #define cthread_fork innocuous_cthread_fork
25184
25185 /* System header to define __stub macros and hopefully few prototypes,
25186     which can conflict with char cthread_fork (); below.
25187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25188     <limits.h> exists even on freestanding compilers.  */
25189
25190 #ifdef __STDC__
25191 # include <limits.h>
25192 #else
25193 # include <assert.h>
25194 #endif
25195
25196 #undef cthread_fork
25197
25198 /* Override any gcc2 internal prototype to avoid an error.  */
25199 #ifdef __cplusplus
25200 extern "C"
25201 {
25202 #endif
25203 /* We use char because int might match the return type of a gcc2
25204    builtin and then its argument prototype would still apply.  */
25205 char cthread_fork ();
25206 /* The GNU C library defines this for functions which it implements
25207     to always fail with ENOSYS.  Some functions are actually named
25208     something starting with __ and the normal name is an alias.  */
25209 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25210 choke me
25211 #else
25212 char (*f) () = cthread_fork;
25213 #endif
25214 #ifdef __cplusplus
25215 }
25216 #endif
25217
25218 int
25219 main ()
25220 {
25221 return f != cthread_fork;
25222   ;
25223   return 0;
25224 }
25225 _ACEOF
25226 rm -f conftest.$ac_objext conftest$ac_exeext
25227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228   (eval $ac_link) 2>conftest.er1
25229   ac_status=$?
25230   grep -v '^ *+' conftest.er1 >conftest.err
25231   rm -f conftest.er1
25232   cat conftest.err >&5
25233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234   (exit $ac_status); } &&
25235          { ac_try='test -z "$ac_c_werror_flag"
25236                          || test ! -s conftest.err'
25237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238   (eval $ac_try) 2>&5
25239   ac_status=$?
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); }; } &&
25242          { ac_try='test -s conftest$ac_exeext'
25243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244   (eval $ac_try) 2>&5
25245   ac_status=$?
25246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); }; }; then
25248   ac_cv_func_cthread_fork=yes
25249 else
25250   echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25252
25253 ac_cv_func_cthread_fork=no
25254 fi
25255 rm -f conftest.err conftest.$ac_objext \
25256       conftest$ac_exeext conftest.$ac_ext
25257 fi
25258 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25259 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25260 if test $ac_cv_func_cthread_fork = yes; then
25261   ol_link_threads=yes
25262 fi
25263
25264
25265                 if test $ol_link_threads = no ; then
25266                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25267 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25268 if test "${ol_cv_cthread_all_load+set}" = set; then
25269   echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271
25272                                                                 save_LIBS="$LIBS"
25273                                 LIBS="-all_load $LIBS"
25274                                 cat >conftest.$ac_ext <<_ACEOF
25275 /* confdefs.h.  */
25276 _ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>conftest.$ac_ext <<_ACEOF
25279 /* end confdefs.h.  */
25280 #include <mach/cthreads.h>
25281 int
25282 main ()
25283 {
25284
25285                                         cthread_fork((void *)0, (void *)0);
25286
25287   ;
25288   return 0;
25289 }
25290 _ACEOF
25291 rm -f conftest.$ac_objext conftest$ac_exeext
25292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25293   (eval $ac_link) 2>conftest.er1
25294   ac_status=$?
25295   grep -v '^ *+' conftest.er1 >conftest.err
25296   rm -f conftest.er1
25297   cat conftest.err >&5
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); } &&
25300          { ac_try='test -z "$ac_c_werror_flag"
25301                          || test ! -s conftest.err'
25302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303   (eval $ac_try) 2>&5
25304   ac_status=$?
25305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306   (exit $ac_status); }; } &&
25307          { ac_try='test -s conftest$ac_exeext'
25308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309   (eval $ac_try) 2>&5
25310   ac_status=$?
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); }; }; then
25313   ol_cv_cthread_all_load=yes
25314 else
25315   echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318 ol_cv_cthread_all_load=no
25319 fi
25320 rm -f conftest.err conftest.$ac_objext \
25321       conftest$ac_exeext conftest.$ac_ext
25322                                                                 LIBS="$save_LIBS"
25323
25324 fi
25325 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25326 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25327
25328                         if test $ol_cv_cthread_all_load = yes ; then
25329                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25330                                 ol_link_threads=mach
25331                                 ol_with_threads=found
25332                         fi
25333                 fi
25334
25335         elif test $ac_cv_header_cthreads_h = yes ; then
25336
25337                 ol_with_threads=found
25338
25339                                 save_LIBS="$LIBS"
25340                 LIBS="$LIBS -lthreads"
25341                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25342 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25343 if test "${ac_cv_func_cthread_fork+set}" = set; then
25344   echo $ECHO_N "(cached) $ECHO_C" >&6
25345 else
25346   cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25354 #define cthread_fork innocuous_cthread_fork
25355
25356 /* System header to define __stub macros and hopefully few prototypes,
25357     which can conflict with char cthread_fork (); below.
25358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25359     <limits.h> exists even on freestanding compilers.  */
25360
25361 #ifdef __STDC__
25362 # include <limits.h>
25363 #else
25364 # include <assert.h>
25365 #endif
25366
25367 #undef cthread_fork
25368
25369 /* Override any gcc2 internal prototype to avoid an error.  */
25370 #ifdef __cplusplus
25371 extern "C"
25372 {
25373 #endif
25374 /* We use char because int might match the return type of a gcc2
25375    builtin and then its argument prototype would still apply.  */
25376 char cthread_fork ();
25377 /* The GNU C library defines this for functions which it implements
25378     to always fail with ENOSYS.  Some functions are actually named
25379     something starting with __ and the normal name is an alias.  */
25380 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25381 choke me
25382 #else
25383 char (*f) () = cthread_fork;
25384 #endif
25385 #ifdef __cplusplus
25386 }
25387 #endif
25388
25389 int
25390 main ()
25391 {
25392 return f != cthread_fork;
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 rm -f conftest.$ac_objext conftest$ac_exeext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25399   (eval $ac_link) 2>conftest.er1
25400   ac_status=$?
25401   grep -v '^ *+' conftest.er1 >conftest.err
25402   rm -f conftest.er1
25403   cat conftest.err >&5
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); } &&
25406          { ac_try='test -z "$ac_c_werror_flag"
25407                          || test ! -s conftest.err'
25408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25409   (eval $ac_try) 2>&5
25410   ac_status=$?
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); }; } &&
25413          { ac_try='test -s conftest$ac_exeext'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; }; then
25419   ac_cv_func_cthread_fork=yes
25420 else
25421   echo "$as_me: failed program was:" >&5
25422 sed 's/^/| /' conftest.$ac_ext >&5
25423
25424 ac_cv_func_cthread_fork=no
25425 fi
25426 rm -f conftest.err conftest.$ac_objext \
25427       conftest$ac_exeext conftest.$ac_ext
25428 fi
25429 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25430 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25431 if test $ac_cv_func_cthread_fork = yes; then
25432   ol_link_threads=yes
25433 fi
25434
25435                 LIBS="$save_LIBS"
25436
25437                 if test $ol_link_threads = yes ; then
25438                         LTHREAD_LIBS="-lthreads"
25439                         ol_link_threads=mach
25440                         ol_with_threads=found
25441                 else
25442                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25443 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25444    { (exit 1); exit 1; }; }
25445                 fi
25446
25447         elif test $ol_with_threads = mach ; then
25448                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25449 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25450    { (exit 1); exit 1; }; }
25451         fi
25452
25453         if test $ol_link_threads = mach ; then
25454
25455 cat >>confdefs.h <<\_ACEOF
25456 #define HAVE_MACH_CTHREADS 1
25457 _ACEOF
25458
25459         elif test $ol_with_threads = found ; then
25460                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25461 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25462    { (exit 1); exit 1; }; }
25463         fi
25464         ;;
25465 esac
25466
25467 case $ol_with_threads in auto | yes | pth)
25468
25469
25470 for ac_header in pth.h
25471 do
25472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25474   echo "$as_me:$LINENO: checking for $ac_header" >&5
25475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25477   echo $ECHO_N "(cached) $ECHO_C" >&6
25478 fi
25479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25481 else
25482   # Is the header compilable?
25483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25485 cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h.  */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h.  */
25491 $ac_includes_default
25492 #include <$ac_header>
25493 _ACEOF
25494 rm -f conftest.$ac_objext
25495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25496   (eval $ac_compile) 2>conftest.er1
25497   ac_status=$?
25498   grep -v '^ *+' conftest.er1 >conftest.err
25499   rm -f conftest.er1
25500   cat conftest.err >&5
25501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502   (exit $ac_status); } &&
25503          { ac_try='test -z "$ac_c_werror_flag"
25504                          || test ! -s conftest.err'
25505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506   (eval $ac_try) 2>&5
25507   ac_status=$?
25508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); }; } &&
25510          { ac_try='test -s conftest.$ac_objext'
25511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512   (eval $ac_try) 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); }; }; then
25516   ac_header_compiler=yes
25517 else
25518   echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25520
25521 ac_header_compiler=no
25522 fi
25523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25525 echo "${ECHO_T}$ac_header_compiler" >&6
25526
25527 # Is the header present?
25528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25530 cat >conftest.$ac_ext <<_ACEOF
25531 /* confdefs.h.  */
25532 _ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h.  */
25536 #include <$ac_header>
25537 _ACEOF
25538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25540   ac_status=$?
25541   grep -v '^ *+' conftest.er1 >conftest.err
25542   rm -f conftest.er1
25543   cat conftest.err >&5
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); } >/dev/null; then
25546   if test -s conftest.err; then
25547     ac_cpp_err=$ac_c_preproc_warn_flag
25548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25549   else
25550     ac_cpp_err=
25551   fi
25552 else
25553   ac_cpp_err=yes
25554 fi
25555 if test -z "$ac_cpp_err"; then
25556   ac_header_preproc=yes
25557 else
25558   echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.$ac_ext >&5
25560
25561   ac_header_preproc=no
25562 fi
25563 rm -f conftest.err conftest.$ac_ext
25564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25565 echo "${ECHO_T}$ac_header_preproc" >&6
25566
25567 # So?  What about this header?
25568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25569   yes:no: )
25570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25574     ac_header_preproc=yes
25575     ;;
25576   no:yes:* )
25577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25589     (
25590       cat <<\_ASBOX
25591 ## --------------------------------------------- ##
25592 ## Report this to <http://www.openldap.org/its/> ##
25593 ## --------------------------------------------- ##
25594 _ASBOX
25595     ) |
25596       sed "s/^/$as_me: WARNING:     /" >&2
25597     ;;
25598 esac
25599 echo "$as_me:$LINENO: checking for $ac_header" >&5
25600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25602   echo $ECHO_N "(cached) $ECHO_C" >&6
25603 else
25604   eval "$as_ac_Header=\$ac_header_preproc"
25605 fi
25606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25608
25609 fi
25610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25611   cat >>confdefs.h <<_ACEOF
25612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25613 _ACEOF
25614
25615 fi
25616
25617 done
25618
25619
25620         if test $ac_cv_header_pth_h = yes ; then
25621                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25622 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25623 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25624   echo $ECHO_N "(cached) $ECHO_C" >&6
25625 else
25626   ac_check_lib_save_LIBS=$LIBS
25627 LIBS="-lpth  $LIBS"
25628 cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634
25635 /* Override any gcc2 internal prototype to avoid an error.  */
25636 #ifdef __cplusplus
25637 extern "C"
25638 #endif
25639 /* We use char because int might match the return type of a gcc2
25640    builtin and then its argument prototype would still apply.  */
25641 char pth_version ();
25642 int
25643 main ()
25644 {
25645 pth_version ();
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 rm -f conftest.$ac_objext conftest$ac_exeext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652   (eval $ac_link) 2>conftest.er1
25653   ac_status=$?
25654   grep -v '^ *+' conftest.er1 >conftest.err
25655   rm -f conftest.er1
25656   cat conftest.err >&5
25657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658   (exit $ac_status); } &&
25659          { ac_try='test -z "$ac_c_werror_flag"
25660                          || test ! -s conftest.err'
25661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25662   (eval $ac_try) 2>&5
25663   ac_status=$?
25664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665   (exit $ac_status); }; } &&
25666          { ac_try='test -s conftest$ac_exeext'
25667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668   (eval $ac_try) 2>&5
25669   ac_status=$?
25670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671   (exit $ac_status); }; }; then
25672   ac_cv_lib_pth_pth_version=yes
25673 else
25674   echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25676
25677 ac_cv_lib_pth_pth_version=no
25678 fi
25679 rm -f conftest.err conftest.$ac_objext \
25680       conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25682 fi
25683 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25684 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25685 if test $ac_cv_lib_pth_pth_version = yes; then
25686   have_pth=yes
25687 else
25688   have_pth=no
25689 fi
25690
25691
25692                 if test $have_pth = yes ; then
25693
25694 cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_GNU_PTH 1
25696 _ACEOF
25697
25698                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25699                         ol_link_threads=pth
25700                         ol_with_threads=found
25701
25702                         if test $ol_with_yielding_select = auto ; then
25703                                 ol_with_yielding_select=yes
25704                         fi
25705                 fi
25706         fi
25707         ;;
25708 esac
25709
25710 case $ol_with_threads in auto | yes | lwp)
25711
25712
25713
25714 for ac_header in thread.h synch.h
25715 do
25716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25718   echo "$as_me:$LINENO: checking for $ac_header" >&5
25719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 fi
25723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25725 else
25726   # Is the header compilable?
25727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25729 cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 $ac_includes_default
25736 #include <$ac_header>
25737 _ACEOF
25738 rm -f conftest.$ac_objext
25739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25740   (eval $ac_compile) 2>conftest.er1
25741   ac_status=$?
25742   grep -v '^ *+' conftest.er1 >conftest.err
25743   rm -f conftest.er1
25744   cat conftest.err >&5
25745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746   (exit $ac_status); } &&
25747          { ac_try='test -z "$ac_c_werror_flag"
25748                          || test ! -s conftest.err'
25749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750   (eval $ac_try) 2>&5
25751   ac_status=$?
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); }; } &&
25754          { ac_try='test -s conftest.$ac_objext'
25755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756   (eval $ac_try) 2>&5
25757   ac_status=$?
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); }; }; then
25760   ac_header_compiler=yes
25761 else
25762   echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765 ac_header_compiler=no
25766 fi
25767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25769 echo "${ECHO_T}$ac_header_compiler" >&6
25770
25771 # Is the header present?
25772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25774 cat >conftest.$ac_ext <<_ACEOF
25775 /* confdefs.h.  */
25776 _ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h.  */
25780 #include <$ac_header>
25781 _ACEOF
25782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25784   ac_status=$?
25785   grep -v '^ *+' conftest.er1 >conftest.err
25786   rm -f conftest.er1
25787   cat conftest.err >&5
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); } >/dev/null; then
25790   if test -s conftest.err; then
25791     ac_cpp_err=$ac_c_preproc_warn_flag
25792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25793   else
25794     ac_cpp_err=
25795   fi
25796 else
25797   ac_cpp_err=yes
25798 fi
25799 if test -z "$ac_cpp_err"; then
25800   ac_header_preproc=yes
25801 else
25802   echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25804
25805   ac_header_preproc=no
25806 fi
25807 rm -f conftest.err conftest.$ac_ext
25808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25809 echo "${ECHO_T}$ac_header_preproc" >&6
25810
25811 # So?  What about this header?
25812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25813   yes:no: )
25814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25818     ac_header_preproc=yes
25819     ;;
25820   no:yes:* )
25821     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25823     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25824 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25825     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25827     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25828 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25831     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25833     (
25834       cat <<\_ASBOX
25835 ## --------------------------------------------- ##
25836 ## Report this to <http://www.openldap.org/its/> ##
25837 ## --------------------------------------------- ##
25838 _ASBOX
25839     ) |
25840       sed "s/^/$as_me: WARNING:     /" >&2
25841     ;;
25842 esac
25843 echo "$as_me:$LINENO: checking for $ac_header" >&5
25844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25846   echo $ECHO_N "(cached) $ECHO_C" >&6
25847 else
25848   eval "$as_ac_Header=\$ac_header_preproc"
25849 fi
25850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25852
25853 fi
25854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25855   cat >>confdefs.h <<_ACEOF
25856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25857 _ACEOF
25858
25859 fi
25860
25861 done
25862
25863         if test $ac_cv_header_thread_h = yes &&
25864            test $ac_cv_header_synch_h = yes ; then
25865                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25866 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25867 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25868   echo $ECHO_N "(cached) $ECHO_C" >&6
25869 else
25870   ac_check_lib_save_LIBS=$LIBS
25871 LIBS="-lthread  $LIBS"
25872 cat >conftest.$ac_ext <<_ACEOF
25873 /* confdefs.h.  */
25874 _ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h.  */
25878
25879 /* Override any gcc2 internal prototype to avoid an error.  */
25880 #ifdef __cplusplus
25881 extern "C"
25882 #endif
25883 /* We use char because int might match the return type of a gcc2
25884    builtin and then its argument prototype would still apply.  */
25885 char thr_create ();
25886 int
25887 main ()
25888 {
25889 thr_create ();
25890   ;
25891   return 0;
25892 }
25893 _ACEOF
25894 rm -f conftest.$ac_objext conftest$ac_exeext
25895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25896   (eval $ac_link) 2>conftest.er1
25897   ac_status=$?
25898   grep -v '^ *+' conftest.er1 >conftest.err
25899   rm -f conftest.er1
25900   cat conftest.err >&5
25901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); } &&
25903          { ac_try='test -z "$ac_c_werror_flag"
25904                          || test ! -s conftest.err'
25905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906   (eval $ac_try) 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; } &&
25910          { ac_try='test -s conftest$ac_exeext'
25911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912   (eval $ac_try) 2>&5
25913   ac_status=$?
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); }; }; then
25916   ac_cv_lib_thread_thr_create=yes
25917 else
25918   echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921 ac_cv_lib_thread_thr_create=no
25922 fi
25923 rm -f conftest.err conftest.$ac_objext \
25924       conftest$ac_exeext conftest.$ac_ext
25925 LIBS=$ac_check_lib_save_LIBS
25926 fi
25927 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25928 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25929 if test $ac_cv_lib_thread_thr_create = yes; then
25930   have_thr=yes
25931 else
25932   have_thr=no
25933 fi
25934
25935
25936                 if test $have_thr = yes ; then
25937
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_THR 1
25940 _ACEOF
25941
25942                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25943                         ol_link_threads=thr
25944
25945                         if test $ol_with_yielding_select = auto ; then
25946                                 ol_with_yielding_select=yes
25947                         fi
25948
25949
25950
25951 for ac_func in \
25952                                 thr_setconcurrency \
25953                                 thr_getconcurrency \
25954
25955 do
25956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25957 echo "$as_me:$LINENO: checking for $ac_func" >&5
25958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25959 if eval "test \"\${$as_ac_var+set}\" = set"; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h.  */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h.  */
25968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25970 #define $ac_func innocuous_$ac_func
25971
25972 /* System header to define __stub macros and hopefully few prototypes,
25973     which can conflict with char $ac_func (); below.
25974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25975     <limits.h> exists even on freestanding compilers.  */
25976
25977 #ifdef __STDC__
25978 # include <limits.h>
25979 #else
25980 # include <assert.h>
25981 #endif
25982
25983 #undef $ac_func
25984
25985 /* Override any gcc2 internal prototype to avoid an error.  */
25986 #ifdef __cplusplus
25987 extern "C"
25988 {
25989 #endif
25990 /* We use char because int might match the return type of a gcc2
25991    builtin and then its argument prototype would still apply.  */
25992 char $ac_func ();
25993 /* The GNU C library defines this for functions which it implements
25994     to always fail with ENOSYS.  Some functions are actually named
25995     something starting with __ and the normal name is an alias.  */
25996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25997 choke me
25998 #else
25999 char (*f) () = $ac_func;
26000 #endif
26001 #ifdef __cplusplus
26002 }
26003 #endif
26004
26005 int
26006 main ()
26007 {
26008 return f != $ac_func;
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 rm -f conftest.$ac_objext conftest$ac_exeext
26014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26015   (eval $ac_link) 2>conftest.er1
26016   ac_status=$?
26017   grep -v '^ *+' conftest.er1 >conftest.err
26018   rm -f conftest.er1
26019   cat conftest.err >&5
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); } &&
26022          { ac_try='test -z "$ac_c_werror_flag"
26023                          || test ! -s conftest.err'
26024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025   (eval $ac_try) 2>&5
26026   ac_status=$?
26027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028   (exit $ac_status); }; } &&
26029          { ac_try='test -s conftest$ac_exeext'
26030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26031   (eval $ac_try) 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); }; }; then
26035   eval "$as_ac_var=yes"
26036 else
26037   echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
26040 eval "$as_ac_var=no"
26041 fi
26042 rm -f conftest.err conftest.$ac_objext \
26043       conftest$ac_exeext conftest.$ac_ext
26044 fi
26045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26047 if test `eval echo '${'$as_ac_var'}'` = yes; then
26048   cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26050 _ACEOF
26051
26052 fi
26053 done
26054
26055                 fi
26056         fi
26057
26058
26059 for ac_header in lwp/lwp.h
26060 do
26061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26063   echo "$as_me:$LINENO: checking for $ac_header" >&5
26064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26066   echo $ECHO_N "(cached) $ECHO_C" >&6
26067 fi
26068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26070 else
26071   # Is the header compilable?
26072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26074 cat >conftest.$ac_ext <<_ACEOF
26075 /* confdefs.h.  */
26076 _ACEOF
26077 cat confdefs.h >>conftest.$ac_ext
26078 cat >>conftest.$ac_ext <<_ACEOF
26079 /* end confdefs.h.  */
26080 $ac_includes_default
26081 #include <$ac_header>
26082 _ACEOF
26083 rm -f conftest.$ac_objext
26084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26085   (eval $ac_compile) 2>conftest.er1
26086   ac_status=$?
26087   grep -v '^ *+' conftest.er1 >conftest.err
26088   rm -f conftest.er1
26089   cat conftest.err >&5
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); } &&
26092          { ac_try='test -z "$ac_c_werror_flag"
26093                          || test ! -s conftest.err'
26094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095   (eval $ac_try) 2>&5
26096   ac_status=$?
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); }; } &&
26099          { ac_try='test -s conftest.$ac_objext'
26100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101   (eval $ac_try) 2>&5
26102   ac_status=$?
26103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104   (exit $ac_status); }; }; then
26105   ac_header_compiler=yes
26106 else
26107   echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26109
26110 ac_header_compiler=no
26111 fi
26112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26114 echo "${ECHO_T}$ac_header_compiler" >&6
26115
26116 # Is the header present?
26117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26119 cat >conftest.$ac_ext <<_ACEOF
26120 /* confdefs.h.  */
26121 _ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h.  */
26125 #include <$ac_header>
26126 _ACEOF
26127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26129   ac_status=$?
26130   grep -v '^ *+' conftest.er1 >conftest.err
26131   rm -f conftest.er1
26132   cat conftest.err >&5
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); } >/dev/null; then
26135   if test -s conftest.err; then
26136     ac_cpp_err=$ac_c_preproc_warn_flag
26137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26138   else
26139     ac_cpp_err=
26140   fi
26141 else
26142   ac_cpp_err=yes
26143 fi
26144 if test -z "$ac_cpp_err"; then
26145   ac_header_preproc=yes
26146 else
26147   echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26149
26150   ac_header_preproc=no
26151 fi
26152 rm -f conftest.err conftest.$ac_ext
26153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26154 echo "${ECHO_T}$ac_header_preproc" >&6
26155
26156 # So?  What about this header?
26157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26158   yes:no: )
26159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26163     ac_header_preproc=yes
26164     ;;
26165   no:yes:* )
26166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26168     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26169 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26170     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26172     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26173 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26176     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26178     (
26179       cat <<\_ASBOX
26180 ## --------------------------------------------- ##
26181 ## Report this to <http://www.openldap.org/its/> ##
26182 ## --------------------------------------------- ##
26183 _ASBOX
26184     ) |
26185       sed "s/^/$as_me: WARNING:     /" >&2
26186     ;;
26187 esac
26188 echo "$as_me:$LINENO: checking for $ac_header" >&5
26189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26191   echo $ECHO_N "(cached) $ECHO_C" >&6
26192 else
26193   eval "$as_ac_Header=\$ac_header_preproc"
26194 fi
26195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26197
26198 fi
26199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26200   cat >>confdefs.h <<_ACEOF
26201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26202 _ACEOF
26203
26204 fi
26205
26206 done
26207
26208         if test $ac_cv_header_lwp_lwp_h = yes ; then
26209                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26210 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26211 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26212   echo $ECHO_N "(cached) $ECHO_C" >&6
26213 else
26214   ac_check_lib_save_LIBS=$LIBS
26215 LIBS="-llwp  $LIBS"
26216 cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h.  */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h.  */
26222
26223 /* Override any gcc2 internal prototype to avoid an error.  */
26224 #ifdef __cplusplus
26225 extern "C"
26226 #endif
26227 /* We use char because int might match the return type of a gcc2
26228    builtin and then its argument prototype would still apply.  */
26229 char lwp_create ();
26230 int
26231 main ()
26232 {
26233 lwp_create ();
26234   ;
26235   return 0;
26236 }
26237 _ACEOF
26238 rm -f conftest.$ac_objext conftest$ac_exeext
26239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26240   (eval $ac_link) 2>conftest.er1
26241   ac_status=$?
26242   grep -v '^ *+' conftest.er1 >conftest.err
26243   rm -f conftest.er1
26244   cat conftest.err >&5
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); } &&
26247          { ac_try='test -z "$ac_c_werror_flag"
26248                          || test ! -s conftest.err'
26249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250   (eval $ac_try) 2>&5
26251   ac_status=$?
26252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253   (exit $ac_status); }; } &&
26254          { ac_try='test -s conftest$ac_exeext'
26255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256   (eval $ac_try) 2>&5
26257   ac_status=$?
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); }; }; then
26260   ac_cv_lib_lwp_lwp_create=yes
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265 ac_cv_lib_lwp_lwp_create=no
26266 fi
26267 rm -f conftest.err conftest.$ac_objext \
26268       conftest$ac_exeext conftest.$ac_ext
26269 LIBS=$ac_check_lib_save_LIBS
26270 fi
26271 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26272 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26273 if test $ac_cv_lib_lwp_lwp_create = yes; then
26274   have_lwp=yes
26275 else
26276   have_lwp=no
26277 fi
26278
26279
26280                 if test $have_lwp = yes ; then
26281
26282 cat >>confdefs.h <<\_ACEOF
26283 #define HAVE_LWP 1
26284 _ACEOF
26285
26286                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26287                         ol_link_threads=lwp
26288
26289                         if test $ol_with_yielding_select = auto ; then
26290                                 ol_with_yielding_select=no
26291                         fi
26292                 fi
26293         fi
26294         ;;
26295 esac
26296
26297 if test $ol_with_yielding_select = yes ; then
26298
26299 cat >>confdefs.h <<\_ACEOF
26300 #define HAVE_YIELDING_SELECT 1
26301 _ACEOF
26302
26303 fi
26304
26305 if test $ol_with_threads = manual ; then
26306                 ol_link_threads=yes
26307
26308         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26309 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26310
26311
26312
26313 for ac_header in pthread.h sched.h
26314 do
26315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26317   echo "$as_me:$LINENO: checking for $ac_header" >&5
26318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26320   echo $ECHO_N "(cached) $ECHO_C" >&6
26321 fi
26322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26324 else
26325   # Is the header compilable?
26326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26328 cat >conftest.$ac_ext <<_ACEOF
26329 /* confdefs.h.  */
26330 _ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h.  */
26334 $ac_includes_default
26335 #include <$ac_header>
26336 _ACEOF
26337 rm -f conftest.$ac_objext
26338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26339   (eval $ac_compile) 2>conftest.er1
26340   ac_status=$?
26341   grep -v '^ *+' conftest.er1 >conftest.err
26342   rm -f conftest.er1
26343   cat conftest.err >&5
26344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345   (exit $ac_status); } &&
26346          { ac_try='test -z "$ac_c_werror_flag"
26347                          || test ! -s conftest.err'
26348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349   (eval $ac_try) 2>&5
26350   ac_status=$?
26351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352   (exit $ac_status); }; } &&
26353          { ac_try='test -s conftest.$ac_objext'
26354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355   (eval $ac_try) 2>&5
26356   ac_status=$?
26357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358   (exit $ac_status); }; }; then
26359   ac_header_compiler=yes
26360 else
26361   echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26363
26364 ac_header_compiler=no
26365 fi
26366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26368 echo "${ECHO_T}$ac_header_compiler" >&6
26369
26370 # Is the header present?
26371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379 #include <$ac_header>
26380 _ACEOF
26381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26383   ac_status=$?
26384   grep -v '^ *+' conftest.er1 >conftest.err
26385   rm -f conftest.er1
26386   cat conftest.err >&5
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); } >/dev/null; then
26389   if test -s conftest.err; then
26390     ac_cpp_err=$ac_c_preproc_warn_flag
26391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26392   else
26393     ac_cpp_err=
26394   fi
26395 else
26396   ac_cpp_err=yes
26397 fi
26398 if test -z "$ac_cpp_err"; then
26399   ac_header_preproc=yes
26400 else
26401   echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26403
26404   ac_header_preproc=no
26405 fi
26406 rm -f conftest.err conftest.$ac_ext
26407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26408 echo "${ECHO_T}$ac_header_preproc" >&6
26409
26410 # So?  What about this header?
26411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26412   yes:no: )
26413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26417     ac_header_preproc=yes
26418     ;;
26419   no:yes:* )
26420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26432     (
26433       cat <<\_ASBOX
26434 ## --------------------------------------------- ##
26435 ## Report this to <http://www.openldap.org/its/> ##
26436 ## --------------------------------------------- ##
26437 _ASBOX
26438     ) |
26439       sed "s/^/$as_me: WARNING:     /" >&2
26440     ;;
26441 esac
26442 echo "$as_me:$LINENO: checking for $ac_header" >&5
26443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26445   echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26447   eval "$as_ac_Header=\$ac_header_preproc"
26448 fi
26449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26451
26452 fi
26453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26454   cat >>confdefs.h <<_ACEOF
26455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26456 _ACEOF
26457
26458 fi
26459
26460 done
26461
26462
26463
26464 for ac_func in sched_yield pthread_yield
26465 do
26466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26467 echo "$as_me:$LINENO: checking for $ac_func" >&5
26468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26469 if eval "test \"\${$as_ac_var+set}\" = set"; then
26470   echo $ECHO_N "(cached) $ECHO_C" >&6
26471 else
26472   cat >conftest.$ac_ext <<_ACEOF
26473 /* confdefs.h.  */
26474 _ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h.  */
26478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26480 #define $ac_func innocuous_$ac_func
26481
26482 /* System header to define __stub macros and hopefully few prototypes,
26483     which can conflict with char $ac_func (); below.
26484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26485     <limits.h> exists even on freestanding compilers.  */
26486
26487 #ifdef __STDC__
26488 # include <limits.h>
26489 #else
26490 # include <assert.h>
26491 #endif
26492
26493 #undef $ac_func
26494
26495 /* Override any gcc2 internal prototype to avoid an error.  */
26496 #ifdef __cplusplus
26497 extern "C"
26498 {
26499 #endif
26500 /* We use char because int might match the return type of a gcc2
26501    builtin and then its argument prototype would still apply.  */
26502 char $ac_func ();
26503 /* The GNU C library defines this for functions which it implements
26504     to always fail with ENOSYS.  Some functions are actually named
26505     something starting with __ and the normal name is an alias.  */
26506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26507 choke me
26508 #else
26509 char (*f) () = $ac_func;
26510 #endif
26511 #ifdef __cplusplus
26512 }
26513 #endif
26514
26515 int
26516 main ()
26517 {
26518 return f != $ac_func;
26519   ;
26520   return 0;
26521 }
26522 _ACEOF
26523 rm -f conftest.$ac_objext conftest$ac_exeext
26524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26525   (eval $ac_link) 2>conftest.er1
26526   ac_status=$?
26527   grep -v '^ *+' conftest.er1 >conftest.err
26528   rm -f conftest.er1
26529   cat conftest.err >&5
26530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); } &&
26532          { ac_try='test -z "$ac_c_werror_flag"
26533                          || test ! -s conftest.err'
26534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535   (eval $ac_try) 2>&5
26536   ac_status=$?
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); }; } &&
26539          { ac_try='test -s conftest$ac_exeext'
26540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26541   (eval $ac_try) 2>&5
26542   ac_status=$?
26543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544   (exit $ac_status); }; }; then
26545   eval "$as_ac_var=yes"
26546 else
26547   echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26549
26550 eval "$as_ac_var=no"
26551 fi
26552 rm -f conftest.err conftest.$ac_objext \
26553       conftest$ac_exeext conftest.$ac_ext
26554 fi
26555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26557 if test `eval echo '${'$as_ac_var'}'` = yes; then
26558   cat >>confdefs.h <<_ACEOF
26559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26560 _ACEOF
26561
26562 fi
26563 done
26564
26565
26566         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26567 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26568 if test "${ol_cv_header_linux_threads+set}" = set; then
26569   echo $ECHO_N "(cached) $ECHO_C" >&6
26570 else
26571   cat >conftest.$ac_ext <<_ACEOF
26572 /* confdefs.h.  */
26573 _ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h.  */
26577 #include <pthread.h>
26578 _ACEOF
26579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26580   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26581   ol_cv_header_linux_threads=yes
26582 else
26583   ol_cv_header_linux_threads=no
26584 fi
26585 rm -f conftest*
26586
26587
26588 fi
26589 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26590 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26591         if test $ol_cv_header_linux_threads = yes; then
26592
26593 cat >>confdefs.h <<\_ACEOF
26594 #define HAVE_LINUX_THREADS 1
26595 _ACEOF
26596
26597         fi
26598
26599
26600
26601 for ac_header in mach/cthreads.h
26602 do
26603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26605   echo "$as_me:$LINENO: checking for $ac_header" >&5
26606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26608   echo $ECHO_N "(cached) $ECHO_C" >&6
26609 fi
26610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26612 else
26613   # Is the header compilable?
26614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26616 cat >conftest.$ac_ext <<_ACEOF
26617 /* confdefs.h.  */
26618 _ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h.  */
26622 $ac_includes_default
26623 #include <$ac_header>
26624 _ACEOF
26625 rm -f conftest.$ac_objext
26626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26627   (eval $ac_compile) 2>conftest.er1
26628   ac_status=$?
26629   grep -v '^ *+' conftest.er1 >conftest.err
26630   rm -f conftest.er1
26631   cat conftest.err >&5
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); } &&
26634          { ac_try='test -z "$ac_c_werror_flag"
26635                          || test ! -s conftest.err'
26636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637   (eval $ac_try) 2>&5
26638   ac_status=$?
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); }; } &&
26641          { ac_try='test -s conftest.$ac_objext'
26642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643   (eval $ac_try) 2>&5
26644   ac_status=$?
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); }; }; then
26647   ac_header_compiler=yes
26648 else
26649   echo "$as_me: failed program was:" >&5
26650 sed 's/^/| /' conftest.$ac_ext >&5
26651
26652 ac_header_compiler=no
26653 fi
26654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26656 echo "${ECHO_T}$ac_header_compiler" >&6
26657
26658 # Is the header present?
26659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26661 cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h.  */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h.  */
26667 #include <$ac_header>
26668 _ACEOF
26669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } >/dev/null; then
26677   if test -s conftest.err; then
26678     ac_cpp_err=$ac_c_preproc_warn_flag
26679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26680   else
26681     ac_cpp_err=
26682   fi
26683 else
26684   ac_cpp_err=yes
26685 fi
26686 if test -z "$ac_cpp_err"; then
26687   ac_header_preproc=yes
26688 else
26689   echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26691
26692   ac_header_preproc=no
26693 fi
26694 rm -f conftest.err conftest.$ac_ext
26695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26696 echo "${ECHO_T}$ac_header_preproc" >&6
26697
26698 # So?  What about this header?
26699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26700   yes:no: )
26701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26705     ac_header_preproc=yes
26706     ;;
26707   no:yes:* )
26708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26720     (
26721       cat <<\_ASBOX
26722 ## --------------------------------------------- ##
26723 ## Report this to <http://www.openldap.org/its/> ##
26724 ## --------------------------------------------- ##
26725 _ASBOX
26726     ) |
26727       sed "s/^/$as_me: WARNING:     /" >&2
26728     ;;
26729 esac
26730 echo "$as_me:$LINENO: checking for $ac_header" >&5
26731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26733   echo $ECHO_N "(cached) $ECHO_C" >&6
26734 else
26735   eval "$as_ac_Header=\$ac_header_preproc"
26736 fi
26737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26739
26740 fi
26741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26742   cat >>confdefs.h <<_ACEOF
26743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26744 _ACEOF
26745
26746 fi
26747
26748 done
26749
26750
26751 for ac_header in lwp/lwp.h
26752 do
26753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755   echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758   echo $ECHO_N "(cached) $ECHO_C" >&6
26759 fi
26760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26762 else
26763   # Is the header compilable?
26764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26766 cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772 $ac_includes_default
26773 #include <$ac_header>
26774 _ACEOF
26775 rm -f conftest.$ac_objext
26776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26777   (eval $ac_compile) 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } &&
26784          { ac_try='test -z "$ac_c_werror_flag"
26785                          || test ! -s conftest.err'
26786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787   (eval $ac_try) 2>&5
26788   ac_status=$?
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); }; } &&
26791          { ac_try='test -s conftest.$ac_objext'
26792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793   (eval $ac_try) 2>&5
26794   ac_status=$?
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); }; }; then
26797   ac_header_compiler=yes
26798 else
26799   echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 ac_header_compiler=no
26803 fi
26804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26806 echo "${ECHO_T}$ac_header_compiler" >&6
26807
26808 # Is the header present?
26809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 #include <$ac_header>
26818 _ACEOF
26819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26821   ac_status=$?
26822   grep -v '^ *+' conftest.er1 >conftest.err
26823   rm -f conftest.er1
26824   cat conftest.err >&5
26825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); } >/dev/null; then
26827   if test -s conftest.err; then
26828     ac_cpp_err=$ac_c_preproc_warn_flag
26829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26830   else
26831     ac_cpp_err=
26832   fi
26833 else
26834   ac_cpp_err=yes
26835 fi
26836 if test -z "$ac_cpp_err"; then
26837   ac_header_preproc=yes
26838 else
26839   echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842   ac_header_preproc=no
26843 fi
26844 rm -f conftest.err conftest.$ac_ext
26845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26846 echo "${ECHO_T}$ac_header_preproc" >&6
26847
26848 # So?  What about this header?
26849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26850   yes:no: )
26851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26855     ac_header_preproc=yes
26856     ;;
26857   no:yes:* )
26858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26870     (
26871       cat <<\_ASBOX
26872 ## --------------------------------------------- ##
26873 ## Report this to <http://www.openldap.org/its/> ##
26874 ## --------------------------------------------- ##
26875 _ASBOX
26876     ) |
26877       sed "s/^/$as_me: WARNING:     /" >&2
26878     ;;
26879 esac
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 else
26885   eval "$as_ac_Header=\$ac_header_preproc"
26886 fi
26887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26889
26890 fi
26891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26892   cat >>confdefs.h <<_ACEOF
26893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26894 _ACEOF
26895
26896 fi
26897
26898 done
26899
26900
26901
26902 for ac_header in thread.h synch.h
26903 do
26904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906   echo "$as_me:$LINENO: checking for $ac_header" >&5
26907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26909   echo $ECHO_N "(cached) $ECHO_C" >&6
26910 fi
26911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26913 else
26914   # Is the header compilable?
26915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26917 cat >conftest.$ac_ext <<_ACEOF
26918 /* confdefs.h.  */
26919 _ACEOF
26920 cat confdefs.h >>conftest.$ac_ext
26921 cat >>conftest.$ac_ext <<_ACEOF
26922 /* end confdefs.h.  */
26923 $ac_includes_default
26924 #include <$ac_header>
26925 _ACEOF
26926 rm -f conftest.$ac_objext
26927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26928   (eval $ac_compile) 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } &&
26935          { ac_try='test -z "$ac_c_werror_flag"
26936                          || test ! -s conftest.err'
26937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938   (eval $ac_try) 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); }; } &&
26942          { ac_try='test -s conftest.$ac_objext'
26943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944   (eval $ac_try) 2>&5
26945   ac_status=$?
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); }; }; then
26948   ac_header_compiler=yes
26949 else
26950   echo "$as_me: failed program was:" >&5
26951 sed 's/^/| /' conftest.$ac_ext >&5
26952
26953 ac_header_compiler=no
26954 fi
26955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26957 echo "${ECHO_T}$ac_header_compiler" >&6
26958
26959 # Is the header present?
26960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26962 cat >conftest.$ac_ext <<_ACEOF
26963 /* confdefs.h.  */
26964 _ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h.  */
26968 #include <$ac_header>
26969 _ACEOF
26970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } >/dev/null; then
26978   if test -s conftest.err; then
26979     ac_cpp_err=$ac_c_preproc_warn_flag
26980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26981   else
26982     ac_cpp_err=
26983   fi
26984 else
26985   ac_cpp_err=yes
26986 fi
26987 if test -z "$ac_cpp_err"; then
26988   ac_header_preproc=yes
26989 else
26990   echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26992
26993   ac_header_preproc=no
26994 fi
26995 rm -f conftest.err conftest.$ac_ext
26996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26997 echo "${ECHO_T}$ac_header_preproc" >&6
26998
26999 # So?  What about this header?
27000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27001   yes:no: )
27002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27006     ac_header_preproc=yes
27007     ;;
27008   no:yes:* )
27009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27021     (
27022       cat <<\_ASBOX
27023 ## --------------------------------------------- ##
27024 ## Report this to <http://www.openldap.org/its/> ##
27025 ## --------------------------------------------- ##
27026 _ASBOX
27027     ) |
27028       sed "s/^/$as_me: WARNING:     /" >&2
27029     ;;
27030 esac
27031 echo "$as_me:$LINENO: checking for $ac_header" >&5
27032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27034   echo $ECHO_N "(cached) $ECHO_C" >&6
27035 else
27036   eval "$as_ac_Header=\$ac_header_preproc"
27037 fi
27038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27040
27041 fi
27042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27043   cat >>confdefs.h <<_ACEOF
27044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27045 _ACEOF
27046
27047 fi
27048
27049 done
27050
27051 fi
27052
27053 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27054                         cat >>confdefs.h <<\_ACEOF
27055 #define REENTRANT 1
27056 _ACEOF
27057
27058         cat >>confdefs.h <<\_ACEOF
27059 #define _REENTRANT 1
27060 _ACEOF
27061
27062         cat >>confdefs.h <<\_ACEOF
27063 #define THREAD_SAFE 1
27064 _ACEOF
27065
27066         cat >>confdefs.h <<\_ACEOF
27067 #define _THREAD_SAFE 1
27068 _ACEOF
27069
27070         cat >>confdefs.h <<\_ACEOF
27071 #define THREADSAFE 1
27072 _ACEOF
27073
27074         cat >>confdefs.h <<\_ACEOF
27075 #define _THREADSAFE 1
27076 _ACEOF
27077
27078         cat >>confdefs.h <<\_ACEOF
27079 #define _SGI_MP_SOURCE 1
27080 _ACEOF
27081
27082
27083                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27084 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27085 if test "${ol_cv_errno_thread_specific+set}" = set; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088
27089                 cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095 #include <errno.h>
27096 int
27097 main ()
27098 {
27099 errno = 0;
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest.$ac_objext conftest$ac_exeext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27106   (eval $ac_link) 2>conftest.er1
27107   ac_status=$?
27108   grep -v '^ *+' conftest.er1 >conftest.err
27109   rm -f conftest.er1
27110   cat conftest.err >&5
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); } &&
27113          { ac_try='test -z "$ac_c_werror_flag"
27114                          || test ! -s conftest.err'
27115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116   (eval $ac_try) 2>&5
27117   ac_status=$?
27118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); }; } &&
27120          { ac_try='test -s conftest$ac_exeext'
27121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122   (eval $ac_try) 2>&5
27123   ac_status=$?
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); }; }; then
27126   ol_cv_errno_thread_specific=yes
27127 else
27128   echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27130
27131 ol_cv_errno_thread_specific=no
27132 fi
27133 rm -f conftest.err conftest.$ac_objext \
27134       conftest$ac_exeext conftest.$ac_ext
27135
27136 fi
27137 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27138 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27139
27140                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27141 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27142 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27143   echo $ECHO_N "(cached) $ECHO_C" >&6
27144 else
27145
27146                 cat >conftest.$ac_ext <<_ACEOF
27147 /* confdefs.h.  */
27148 _ACEOF
27149 cat confdefs.h >>conftest.$ac_ext
27150 cat >>conftest.$ac_ext <<_ACEOF
27151 /* end confdefs.h.  */
27152 #include <netdb.h>
27153 int
27154 main ()
27155 {
27156 h_errno = 0;
27157   ;
27158   return 0;
27159 }
27160 _ACEOF
27161 rm -f conftest.$ac_objext conftest$ac_exeext
27162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27163   (eval $ac_link) 2>conftest.er1
27164   ac_status=$?
27165   grep -v '^ *+' conftest.er1 >conftest.err
27166   rm -f conftest.er1
27167   cat conftest.err >&5
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); } &&
27170          { ac_try='test -z "$ac_c_werror_flag"
27171                          || test ! -s conftest.err'
27172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173   (eval $ac_try) 2>&5
27174   ac_status=$?
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); }; } &&
27177          { ac_try='test -s conftest$ac_exeext'
27178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27179   (eval $ac_try) 2>&5
27180   ac_status=$?
27181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182   (exit $ac_status); }; }; then
27183   ol_cv_h_errno_thread_specific=yes
27184 else
27185   echo "$as_me: failed program was:" >&5
27186 sed 's/^/| /' conftest.$ac_ext >&5
27187
27188 ol_cv_h_errno_thread_specific=no
27189 fi
27190 rm -f conftest.err conftest.$ac_objext \
27191       conftest$ac_exeext conftest.$ac_ext
27192
27193 fi
27194 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27195 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27196
27197         if test $ol_cv_errno_thread_specific != yes ||
27198            test $ol_cv_h_errno_thread_specific != yes ; then
27199                 LIBS="$LTHREAD_LIBS $LIBS"
27200                 LTHREAD_LIBS=""
27201         fi
27202
27203 fi
27204
27205 if test $ol_link_threads = no ; then
27206         if test $ol_with_threads = yes ; then
27207                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27208 echo "$as_me: error: no suitable thread support" >&2;}
27209    { (exit 1); exit 1; }; }
27210         fi
27211
27212         if test $ol_with_threads = auto ; then
27213                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27214 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27215                 ol_with_threads=no
27216         fi
27217
27218
27219 cat >>confdefs.h <<\_ACEOF
27220 #define NO_THREADS 1
27221 _ACEOF
27222
27223         LTHREAD_LIBS=""
27224         BUILD_THREAD=no
27225 else
27226         BUILD_THREAD=yes
27227 fi
27228
27229 if test $ol_link_threads != no ; then
27230
27231 cat >>confdefs.h <<\_ACEOF
27232 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27233 _ACEOF
27234
27235 fi
27236
27237
27238
27239
27240 for ac_func in \
27241         ctime_r                 \
27242         gethostbyname_r gethostbyaddr_r \
27243
27244 do
27245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 echo "$as_me:$LINENO: checking for $ac_func" >&5
27247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27248 if eval "test \"\${$as_ac_var+set}\" = set"; then
27249   echo $ECHO_N "(cached) $ECHO_C" >&6
27250 else
27251   cat >conftest.$ac_ext <<_ACEOF
27252 /* confdefs.h.  */
27253 _ACEOF
27254 cat confdefs.h >>conftest.$ac_ext
27255 cat >>conftest.$ac_ext <<_ACEOF
27256 /* end confdefs.h.  */
27257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27259 #define $ac_func innocuous_$ac_func
27260
27261 /* System header to define __stub macros and hopefully few prototypes,
27262     which can conflict with char $ac_func (); below.
27263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27264     <limits.h> exists even on freestanding compilers.  */
27265
27266 #ifdef __STDC__
27267 # include <limits.h>
27268 #else
27269 # include <assert.h>
27270 #endif
27271
27272 #undef $ac_func
27273
27274 /* Override any gcc2 internal prototype to avoid an error.  */
27275 #ifdef __cplusplus
27276 extern "C"
27277 {
27278 #endif
27279 /* We use char because int might match the return type of a gcc2
27280    builtin and then its argument prototype would still apply.  */
27281 char $ac_func ();
27282 /* The GNU C library defines this for functions which it implements
27283     to always fail with ENOSYS.  Some functions are actually named
27284     something starting with __ and the normal name is an alias.  */
27285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27286 choke me
27287 #else
27288 char (*f) () = $ac_func;
27289 #endif
27290 #ifdef __cplusplus
27291 }
27292 #endif
27293
27294 int
27295 main ()
27296 {
27297 return f != $ac_func;
27298   ;
27299   return 0;
27300 }
27301 _ACEOF
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27304   (eval $ac_link) 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } &&
27311          { ac_try='test -z "$ac_c_werror_flag"
27312                          || test ! -s conftest.err'
27313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314   (eval $ac_try) 2>&5
27315   ac_status=$?
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); }; } &&
27318          { ac_try='test -s conftest$ac_exeext'
27319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320   (eval $ac_try) 2>&5
27321   ac_status=$?
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); }; }; then
27324   eval "$as_ac_var=yes"
27325 else
27326   echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27328
27329 eval "$as_ac_var=no"
27330 fi
27331 rm -f conftest.err conftest.$ac_objext \
27332       conftest$ac_exeext conftest.$ac_ext
27333 fi
27334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27336 if test `eval echo '${'$as_ac_var'}'` = yes; then
27337   cat >>confdefs.h <<_ACEOF
27338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27339 _ACEOF
27340
27341 fi
27342 done
27343
27344
27345 if test "$ac_cv_func_ctime_r" = no ; then
27346         ol_cv_func_ctime_r_nargs=0
27347 else
27348         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27349 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27350 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27351   echo $ECHO_N "(cached) $ECHO_C" >&6
27352 else
27353   cat >conftest.$ac_ext <<_ACEOF
27354 /* confdefs.h.  */
27355 _ACEOF
27356 cat confdefs.h >>conftest.$ac_ext
27357 cat >>conftest.$ac_ext <<_ACEOF
27358 /* end confdefs.h.  */
27359 #include <time.h>
27360 int
27361 main ()
27362 {
27363 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27364   ;
27365   return 0;
27366 }
27367 _ACEOF
27368 rm -f conftest.$ac_objext
27369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27370   (eval $ac_compile) 2>conftest.er1
27371   ac_status=$?
27372   grep -v '^ *+' conftest.er1 >conftest.err
27373   rm -f conftest.er1
27374   cat conftest.err >&5
27375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376   (exit $ac_status); } &&
27377          { ac_try='test -z "$ac_c_werror_flag"
27378                          || test ! -s conftest.err'
27379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380   (eval $ac_try) 2>&5
27381   ac_status=$?
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); }; } &&
27384          { ac_try='test -s conftest.$ac_objext'
27385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386   (eval $ac_try) 2>&5
27387   ac_status=$?
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); }; }; then
27390   ol_cv_func_ctime_r_nargs3=yes
27391 else
27392   echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395 ol_cv_func_ctime_r_nargs3=no
27396 fi
27397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27398
27399         cat >conftest.$ac_ext <<_ACEOF
27400 /* confdefs.h.  */
27401 _ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h.  */
27405 #include <time.h>
27406 int
27407 main ()
27408 {
27409 time_t ti; char *buffer; ctime_r(&ti,buffer);
27410   ;
27411   return 0;
27412 }
27413 _ACEOF
27414 rm -f conftest.$ac_objext
27415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27416   (eval $ac_compile) 2>conftest.er1
27417   ac_status=$?
27418   grep -v '^ *+' conftest.er1 >conftest.err
27419   rm -f conftest.er1
27420   cat conftest.err >&5
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); } &&
27423          { ac_try='test -z "$ac_c_werror_flag"
27424                          || test ! -s conftest.err'
27425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27426   (eval $ac_try) 2>&5
27427   ac_status=$?
27428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429   (exit $ac_status); }; } &&
27430          { ac_try='test -s conftest.$ac_objext'
27431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27432   (eval $ac_try) 2>&5
27433   ac_status=$?
27434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435   (exit $ac_status); }; }; then
27436   ol_cv_func_ctime_r_nargs2=yes
27437 else
27438   echo "$as_me: failed program was:" >&5
27439 sed 's/^/| /' conftest.$ac_ext >&5
27440
27441 ol_cv_func_ctime_r_nargs2=no
27442 fi
27443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27444
27445         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27446            test $ol_cv_func_ctime_r_nargs2 = no ; then
27447
27448                 ol_cv_func_ctime_r_nargs=3
27449
27450         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27451              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27452
27453                 ol_cv_func_ctime_r_nargs=2
27454
27455         else
27456                 ol_cv_func_ctime_r_nargs=0
27457         fi
27458
27459 fi
27460 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27461 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27462
27463   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27464
27465 cat >>confdefs.h <<_ACEOF
27466 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27467 _ACEOF
27468
27469   fi
27470
27471 fi
27472
27473 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27474         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27475 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27476 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27477   echo $ECHO_N "(cached) $ECHO_C" >&6
27478 else
27479   cat >conftest.$ac_ext <<_ACEOF
27480 /* confdefs.h.  */
27481 _ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h.  */
27485 #include <sys/types.h>
27486 #include <sys/socket.h>
27487 #include <netinet/in.h>
27488 #include <netdb.h>
27489 #define BUFSIZE (sizeof(struct hostent)+10)
27490 int
27491 main ()
27492 {
27493 struct hostent hent; char buffer[BUFSIZE];
27494                 int bufsize=BUFSIZE;int h_errno;
27495                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27496                         buffer, bufsize, &h_errno);
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest.$ac_objext
27502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27503   (eval $ac_compile) 2>conftest.er1
27504   ac_status=$?
27505   grep -v '^ *+' conftest.er1 >conftest.err
27506   rm -f conftest.er1
27507   cat conftest.err >&5
27508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509   (exit $ac_status); } &&
27510          { ac_try='test -z "$ac_c_werror_flag"
27511                          || test ! -s conftest.err'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; } &&
27517          { ac_try='test -s conftest.$ac_objext'
27518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519   (eval $ac_try) 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; }; then
27523   ol_cv_func_gethostbyname_r_nargs5=yes
27524 else
27525   echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528 ol_cv_func_gethostbyname_r_nargs5=no
27529 fi
27530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27531
27532         cat >conftest.$ac_ext <<_ACEOF
27533 /* confdefs.h.  */
27534 _ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h.  */
27538 #include <sys/types.h>
27539 #include <sys/socket.h>
27540 #include <netinet/in.h>
27541 #include <netdb.h>
27542 #define BUFSIZE (sizeof(struct hostent)+10)
27543 int
27544 main ()
27545 {
27546 struct hostent hent;struct hostent *rhent;
27547                 char buffer[BUFSIZE];
27548                 int bufsize=BUFSIZE;int h_errno;
27549                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27550                         &rhent, &h_errno);
27551   ;
27552   return 0;
27553 }
27554 _ACEOF
27555 rm -f conftest.$ac_objext
27556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27557   (eval $ac_compile) 2>conftest.er1
27558   ac_status=$?
27559   grep -v '^ *+' conftest.er1 >conftest.err
27560   rm -f conftest.er1
27561   cat conftest.err >&5
27562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563   (exit $ac_status); } &&
27564          { ac_try='test -z "$ac_c_werror_flag"
27565                          || test ! -s conftest.err'
27566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567   (eval $ac_try) 2>&5
27568   ac_status=$?
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); }; } &&
27571          { ac_try='test -s conftest.$ac_objext'
27572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27573   (eval $ac_try) 2>&5
27574   ac_status=$?
27575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576   (exit $ac_status); }; }; then
27577   ol_cv_func_gethostbyname_r_nargs6=yes
27578 else
27579   echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582 ol_cv_func_gethostbyname_r_nargs6=no
27583 fi
27584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27585
27586         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27587            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27588
27589                 ol_cv_func_gethostbyname_r_nargs=5
27590
27591         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27592              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27593
27594                 ol_cv_func_gethostbyname_r_nargs=6
27595
27596         else
27597                 ol_cv_func_gethostbyname_r_nargs=0
27598         fi
27599
27600 fi
27601 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27602 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27603   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27604
27605 cat >>confdefs.h <<_ACEOF
27606 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27607 _ACEOF
27608
27609   fi
27610
27611 else
27612         ol_cv_func_gethostbyname_r_nargs=0
27613 fi
27614
27615 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27616         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27617 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27618 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27619   echo $ECHO_N "(cached) $ECHO_C" >&6
27620 else
27621   cat >conftest.$ac_ext <<_ACEOF
27622 /* confdefs.h.  */
27623 _ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h.  */
27627 #include <sys/types.h>
27628 #include <sys/socket.h>
27629 #include <netinet/in.h>
27630 #include <netdb.h>
27631 #define BUFSIZE (sizeof(struct hostent)+10)
27632 int
27633 main ()
27634 {
27635 struct hostent hent; char buffer[BUFSIZE];
27636             struct in_addr add;
27637             size_t alen=sizeof(struct in_addr);
27638             int bufsize=BUFSIZE;int h_errno;
27639                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27640                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest.$ac_objext
27646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27647   (eval $ac_compile) 2>conftest.er1
27648   ac_status=$?
27649   grep -v '^ *+' conftest.er1 >conftest.err
27650   rm -f conftest.er1
27651   cat conftest.err >&5
27652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653   (exit $ac_status); } &&
27654          { ac_try='test -z "$ac_c_werror_flag"
27655                          || test ! -s conftest.err'
27656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27657   (eval $ac_try) 2>&5
27658   ac_status=$?
27659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); }; } &&
27661          { ac_try='test -s conftest.$ac_objext'
27662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663   (eval $ac_try) 2>&5
27664   ac_status=$?
27665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666   (exit $ac_status); }; }; then
27667   ol_cv_func_gethostbyaddr_r_nargs7=yes
27668 else
27669   echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27671
27672 ol_cv_func_gethostbyaddr_r_nargs7=no
27673 fi
27674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27675
27676         cat >conftest.$ac_ext <<_ACEOF
27677 /* confdefs.h.  */
27678 _ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h.  */
27682 #include <sys/types.h>
27683 #include <sys/socket.h>
27684 #include <netinet/in.h>
27685 #include <netdb.h>
27686 #define BUFSIZE (sizeof(struct hostent)+10)
27687 int
27688 main ()
27689 {
27690 struct hostent hent;
27691                 struct hostent *rhent; char buffer[BUFSIZE];
27692                 struct in_addr add;
27693                 size_t alen=sizeof(struct in_addr);
27694                 int bufsize=BUFSIZE;int h_errno;
27695                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27696                         alen, AF_INET, &hent, buffer, bufsize,
27697                         &rhent, &h_errno);
27698   ;
27699   return 0;
27700 }
27701 _ACEOF
27702 rm -f conftest.$ac_objext
27703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27704   (eval $ac_compile) 2>conftest.er1
27705   ac_status=$?
27706   grep -v '^ *+' conftest.er1 >conftest.err
27707   rm -f conftest.er1
27708   cat conftest.err >&5
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); } &&
27711          { ac_try='test -z "$ac_c_werror_flag"
27712                          || test ! -s conftest.err'
27713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714   (eval $ac_try) 2>&5
27715   ac_status=$?
27716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); }; } &&
27718          { ac_try='test -s conftest.$ac_objext'
27719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720   (eval $ac_try) 2>&5
27721   ac_status=$?
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); }; }; then
27724   ol_cv_func_gethostbyaddr_r_nargs8=yes
27725 else
27726   echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27728
27729 ol_cv_func_gethostbyaddr_r_nargs8=no
27730 fi
27731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27732
27733         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27734            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27735
27736                 ol_cv_func_gethostbyaddr_r_nargs=7
27737
27738         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27739              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27740
27741                 ol_cv_func_gethostbyaddr_r_nargs=8
27742
27743         else
27744                 ol_cv_func_gethostbyaddr_r_nargs=0
27745         fi
27746
27747 fi
27748 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27749 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27750   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27751
27752 cat >>confdefs.h <<_ACEOF
27753 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27754 _ACEOF
27755
27756   fi
27757
27758 else
27759         ol_cv_func_gethostbyaddr_r_nargs=0
27760 fi
27761
27762 ol_link_ldbm=no
27763
27764 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27765
27766         if test $ol_enable_ldbm_api = bcompat; then \
27767
27768
27769 for ac_header in db_185.h db.h
27770 do
27771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27773   echo "$as_me:$LINENO: checking for $ac_header" >&5
27774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27776   echo $ECHO_N "(cached) $ECHO_C" >&6
27777 fi
27778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27780 else
27781   # Is the header compilable?
27782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27784 cat >conftest.$ac_ext <<_ACEOF
27785 /* confdefs.h.  */
27786 _ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h.  */
27790 $ac_includes_default
27791 #include <$ac_header>
27792 _ACEOF
27793 rm -f conftest.$ac_objext
27794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27795   (eval $ac_compile) 2>conftest.er1
27796   ac_status=$?
27797   grep -v '^ *+' conftest.er1 >conftest.err
27798   rm -f conftest.er1
27799   cat conftest.err >&5
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); } &&
27802          { ac_try='test -z "$ac_c_werror_flag"
27803                          || test ! -s conftest.err'
27804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805   (eval $ac_try) 2>&5
27806   ac_status=$?
27807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808   (exit $ac_status); }; } &&
27809          { ac_try='test -s conftest.$ac_objext'
27810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811   (eval $ac_try) 2>&5
27812   ac_status=$?
27813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814   (exit $ac_status); }; }; then
27815   ac_header_compiler=yes
27816 else
27817   echo "$as_me: failed program was:" >&5
27818 sed 's/^/| /' conftest.$ac_ext >&5
27819
27820 ac_header_compiler=no
27821 fi
27822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27824 echo "${ECHO_T}$ac_header_compiler" >&6
27825
27826 # Is the header present?
27827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27829 cat >conftest.$ac_ext <<_ACEOF
27830 /* confdefs.h.  */
27831 _ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h.  */
27835 #include <$ac_header>
27836 _ACEOF
27837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27839   ac_status=$?
27840   grep -v '^ *+' conftest.er1 >conftest.err
27841   rm -f conftest.er1
27842   cat conftest.err >&5
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } >/dev/null; then
27845   if test -s conftest.err; then
27846     ac_cpp_err=$ac_c_preproc_warn_flag
27847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27848   else
27849     ac_cpp_err=
27850   fi
27851 else
27852   ac_cpp_err=yes
27853 fi
27854 if test -z "$ac_cpp_err"; then
27855   ac_header_preproc=yes
27856 else
27857   echo "$as_me: failed program was:" >&5
27858 sed 's/^/| /' conftest.$ac_ext >&5
27859
27860   ac_header_preproc=no
27861 fi
27862 rm -f conftest.err conftest.$ac_ext
27863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27864 echo "${ECHO_T}$ac_header_preproc" >&6
27865
27866 # So?  What about this header?
27867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27868   yes:no: )
27869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27873     ac_header_preproc=yes
27874     ;;
27875   no:yes:* )
27876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27878     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27879 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27880     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27882     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27883 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27886     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27888     (
27889       cat <<\_ASBOX
27890 ## --------------------------------------------- ##
27891 ## Report this to <http://www.openldap.org/its/> ##
27892 ## --------------------------------------------- ##
27893 _ASBOX
27894     ) |
27895       sed "s/^/$as_me: WARNING:     /" >&2
27896     ;;
27897 esac
27898 echo "$as_me:$LINENO: checking for $ac_header" >&5
27899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27901   echo $ECHO_N "(cached) $ECHO_C" >&6
27902 else
27903   eval "$as_ac_Header=\$ac_header_preproc"
27904 fi
27905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27907
27908 fi
27909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27910   cat >>confdefs.h <<_ACEOF
27911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27912 _ACEOF
27913
27914 fi
27915
27916 done
27917
27918 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27919         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27920 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27921 if test "${ol_cv_header_db1+set}" = set; then
27922   echo $ECHO_N "(cached) $ECHO_C" >&6
27923 else
27924
27925                 cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h.  */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h.  */
27931
27932 #if HAVE_DB_185_H
27933 #       include <db_185.h>
27934 #else
27935 #       include <db.h>
27936 #endif
27937
27938  /* this check could be improved */
27939 #ifndef DB_VERSION_MAJOR
27940 #       define DB_VERSION_MAJOR 1
27941 #endif
27942
27943 #if DB_VERSION_MAJOR == 1
27944         __db_version_1
27945 #endif
27946
27947 _ACEOF
27948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27949   $EGREP "__db_version_1" >/dev/null 2>&1; then
27950   ol_cv_header_db1=yes
27951 else
27952   ol_cv_header_db1=no
27953 fi
27954 rm -f conftest*
27955
27956 fi
27957 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27958 echo "${ECHO_T}$ol_cv_header_db1" >&6
27959
27960         if test $ol_cv_header_db1 = yes ; then
27961                 ol_cv_lib_db=no
27962
27963 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27964 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27965 if test "${ol_cv_bdb_major+set}" = set; then
27966   echo $ECHO_N "(cached) $ECHO_C" >&6
27967 else
27968
27969         ol_cv_bdb_major=0
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 == 4
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=4
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 == 3
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=3
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 == 2
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=2
28042 else
28043   :
28044 fi
28045 rm -f conftest*
28046
28047         fi
28048         if test $ol_cv_bdb_major = 0 ; then
28049                 cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h.  */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h.  */
28055
28056 #include <db.h>
28057 #ifndef DB_VERSION_MAJOR
28058 #       define DB_VERSION_MAJOR 1
28059 #endif
28060 #if DB_VERSION_MAJOR == 1
28061 __db_version
28062 #endif
28063
28064 _ACEOF
28065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28066   $EGREP "__db_version" >/dev/null 2>&1; then
28067   ol_cv_bdb_major=1
28068 else
28069   :
28070 fi
28071 rm -f conftest*
28072
28073         fi
28074
28075         if test $ol_cv_bdb_major = 0 ; then
28076                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28077 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28078    { (exit 1); exit 1; }; }
28079         fi
28080
28081 fi
28082 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28083 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28084
28085 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28086 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28087 if test "${ol_cv_bdb_minor+set}" = set; then
28088   echo $ECHO_N "(cached) $ECHO_C" >&6
28089 else
28090
28091         ol_cv_bdb_minor=0
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 == 9
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=9
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 == 8
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=8
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 == 7
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=7
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 == 6
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=6
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 == 5
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=5
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 == 4
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=4
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 == 3
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=3
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 == 2
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=2
28294 else
28295   :
28296 fi
28297 rm -f conftest*
28298
28299         fi
28300         if test $ol_cv_bdb_minor = 0 ; then
28301                 cat >conftest.$ac_ext <<_ACEOF
28302 /* confdefs.h.  */
28303 _ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h.  */
28307
28308 #include <db.h>
28309 #ifndef DB_VERSION_MINOR
28310 #       define DB_VERSION_MINOR 0
28311 #endif
28312 #if DB_VERSION_MINOR == 1
28313 __db_version
28314 #endif
28315
28316 _ACEOF
28317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28318   $EGREP "__db_version" >/dev/null 2>&1; then
28319   ol_cv_bdb_minor=1
28320 else
28321   :
28322 fi
28323 rm -f conftest*
28324
28325         fi
28326
28327 fi
28328 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28329 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28330
28331 if test $ol_cv_bdb_major = 4 ; then
28332         if test $ol_cv_bdb_minor = 4 ; then
28333                 if test $ol_cv_lib_db = no ; then
28334         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28335 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28336 if test "${ol_cv_db_db44+set}" = set; then
28337   echo $ECHO_N "(cached) $ECHO_C" >&6
28338 else
28339
28340         ol_DB_LIB=-ldb44
28341         ol_LIBS=$LIBS
28342         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28343
28344         cat >conftest.$ac_ext <<_ACEOF
28345 /* confdefs.h.  */
28346 _ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h.  */
28350
28351 #ifdef HAVE_DB_185_H
28352 # include <db_185.h>
28353 #else
28354 # include <db.h>
28355 #endif
28356
28357 #ifndef DB_VERSION_MAJOR
28358 # define DB_VERSION_MAJOR 1
28359 #endif
28360
28361 #ifndef NULL
28362 #define NULL ((void*)0)
28363 #endif
28364
28365 int
28366 main ()
28367 {
28368
28369 #if DB_VERSION_MAJOR > 1
28370         {
28371                 char *version;
28372                 int major, minor, patch;
28373
28374                 version = db_version( &major, &minor, &patch );
28375
28376                 if( major != DB_VERSION_MAJOR ||
28377                         minor < DB_VERSION_MINOR )
28378                 {
28379                         printf("Berkeley DB version mismatch\n"
28380                                 "\theader: %s\n\tlibrary: %s\n",
28381                                 DB_VERSION_STRING, version);
28382                         return 1;
28383                 }
28384         }
28385 #endif
28386
28387 #if DB_VERSION_MAJOR > 2
28388         db_env_create( NULL, 0 );
28389 #elif DB_VERSION_MAJOR > 1
28390         db_appexit( NULL );
28391 #else
28392         (void) dbopen( NULL, 0, 0, 0, NULL);
28393 #endif
28394
28395   ;
28396   return 0;
28397 }
28398 _ACEOF
28399 rm -f conftest.$ac_objext conftest$ac_exeext
28400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28401   (eval $ac_link) 2>conftest.er1
28402   ac_status=$?
28403   grep -v '^ *+' conftest.er1 >conftest.err
28404   rm -f conftest.er1
28405   cat conftest.err >&5
28406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407   (exit $ac_status); } &&
28408          { ac_try='test -z "$ac_c_werror_flag"
28409                          || test ! -s conftest.err'
28410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411   (eval $ac_try) 2>&5
28412   ac_status=$?
28413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414   (exit $ac_status); }; } &&
28415          { ac_try='test -s conftest$ac_exeext'
28416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417   (eval $ac_try) 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; }; then
28421   ol_cv_db_db44=yes
28422 else
28423   echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426 ol_cv_db_db44=no
28427 fi
28428 rm -f conftest.err conftest.$ac_objext \
28429       conftest$ac_exeext conftest.$ac_ext
28430
28431         LIBS="$ol_LIBS"
28432
28433 fi
28434 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28435 echo "${ECHO_T}$ol_cv_db_db44" >&6
28436
28437         if test $ol_cv_db_db44 = yes ; then
28438                 ol_cv_lib_db=-ldb44
28439         fi
28440 fi
28441
28442                 if test $ol_cv_lib_db = no ; then
28443         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28444 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28445 if test "${ol_cv_db_db_44+set}" = set; then
28446   echo $ECHO_N "(cached) $ECHO_C" >&6
28447 else
28448
28449         ol_DB_LIB=-ldb-44
28450         ol_LIBS=$LIBS
28451         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28452
28453         cat >conftest.$ac_ext <<_ACEOF
28454 /* confdefs.h.  */
28455 _ACEOF
28456 cat confdefs.h >>conftest.$ac_ext
28457 cat >>conftest.$ac_ext <<_ACEOF
28458 /* end confdefs.h.  */
28459
28460 #ifdef HAVE_DB_185_H
28461 # include <db_185.h>
28462 #else
28463 # include <db.h>
28464 #endif
28465
28466 #ifndef DB_VERSION_MAJOR
28467 # define DB_VERSION_MAJOR 1
28468 #endif
28469
28470 #ifndef NULL
28471 #define NULL ((void*)0)
28472 #endif
28473
28474 int
28475 main ()
28476 {
28477
28478 #if DB_VERSION_MAJOR > 1
28479         {
28480                 char *version;
28481                 int major, minor, patch;
28482
28483                 version = db_version( &major, &minor, &patch );
28484
28485                 if( major != DB_VERSION_MAJOR ||
28486                         minor < DB_VERSION_MINOR )
28487                 {
28488                         printf("Berkeley DB version mismatch\n"
28489                                 "\theader: %s\n\tlibrary: %s\n",
28490                                 DB_VERSION_STRING, version);
28491                         return 1;
28492                 }
28493         }
28494 #endif
28495
28496 #if DB_VERSION_MAJOR > 2
28497         db_env_create( NULL, 0 );
28498 #elif DB_VERSION_MAJOR > 1
28499         db_appexit( NULL );
28500 #else
28501         (void) dbopen( NULL, 0, 0, 0, NULL);
28502 #endif
28503
28504   ;
28505   return 0;
28506 }
28507 _ACEOF
28508 rm -f conftest.$ac_objext conftest$ac_exeext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510   (eval $ac_link) 2>conftest.er1
28511   ac_status=$?
28512   grep -v '^ *+' conftest.er1 >conftest.err
28513   rm -f conftest.er1
28514   cat conftest.err >&5
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); } &&
28517          { ac_try='test -z "$ac_c_werror_flag"
28518                          || test ! -s conftest.err'
28519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520   (eval $ac_try) 2>&5
28521   ac_status=$?
28522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523   (exit $ac_status); }; } &&
28524          { ac_try='test -s conftest$ac_exeext'
28525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526   (eval $ac_try) 2>&5
28527   ac_status=$?
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); }; }; then
28530   ol_cv_db_db_44=yes
28531 else
28532   echo "$as_me: failed program was:" >&5
28533 sed 's/^/| /' conftest.$ac_ext >&5
28534
28535 ol_cv_db_db_44=no
28536 fi
28537 rm -f conftest.err conftest.$ac_objext \
28538       conftest$ac_exeext conftest.$ac_ext
28539
28540         LIBS="$ol_LIBS"
28541
28542 fi
28543 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28544 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28545
28546         if test $ol_cv_db_db_44 = yes ; then
28547                 ol_cv_lib_db=-ldb-44
28548         fi
28549 fi
28550
28551                 if test $ol_cv_lib_db = no ; then
28552         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28553 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28554 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28555   echo $ECHO_N "(cached) $ECHO_C" >&6
28556 else
28557
28558         ol_DB_LIB=-ldb-4.4
28559         ol_LIBS=$LIBS
28560         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28561
28562         cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568
28569 #ifdef HAVE_DB_185_H
28570 # include <db_185.h>
28571 #else
28572 # include <db.h>
28573 #endif
28574
28575 #ifndef DB_VERSION_MAJOR
28576 # define DB_VERSION_MAJOR 1
28577 #endif
28578
28579 #ifndef NULL
28580 #define NULL ((void*)0)
28581 #endif
28582
28583 int
28584 main ()
28585 {
28586
28587 #if DB_VERSION_MAJOR > 1
28588         {
28589                 char *version;
28590                 int major, minor, patch;
28591
28592                 version = db_version( &major, &minor, &patch );
28593
28594                 if( major != DB_VERSION_MAJOR ||
28595                         minor < DB_VERSION_MINOR )
28596                 {
28597                         printf("Berkeley DB version mismatch\n"
28598                                 "\theader: %s\n\tlibrary: %s\n",
28599                                 DB_VERSION_STRING, version);
28600                         return 1;
28601                 }
28602         }
28603 #endif
28604
28605 #if DB_VERSION_MAJOR > 2
28606         db_env_create( NULL, 0 );
28607 #elif DB_VERSION_MAJOR > 1
28608         db_appexit( NULL );
28609 #else
28610         (void) dbopen( NULL, 0, 0, 0, NULL);
28611 #endif
28612
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28619   (eval $ac_link) 2>conftest.er1
28620   ac_status=$?
28621   grep -v '^ *+' conftest.er1 >conftest.err
28622   rm -f conftest.er1
28623   cat conftest.err >&5
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); } &&
28626          { ac_try='test -z "$ac_c_werror_flag"
28627                          || test ! -s conftest.err'
28628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629   (eval $ac_try) 2>&5
28630   ac_status=$?
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); }; } &&
28633          { ac_try='test -s conftest$ac_exeext'
28634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635   (eval $ac_try) 2>&5
28636   ac_status=$?
28637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638   (exit $ac_status); }; }; then
28639   ol_cv_db_db_4_dot_4=yes
28640 else
28641   echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28643
28644 ol_cv_db_db_4_dot_4=no
28645 fi
28646 rm -f conftest.err conftest.$ac_objext \
28647       conftest$ac_exeext conftest.$ac_ext
28648
28649         LIBS="$ol_LIBS"
28650
28651 fi
28652 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28653 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28654
28655         if test $ol_cv_db_db_4_dot_4 = yes ; then
28656                 ol_cv_lib_db=-ldb-4.4
28657         fi
28658 fi
28659
28660                 if test $ol_cv_lib_db = no ; then
28661         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28662 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28663 if test "${ol_cv_db_db_4_4+set}" = set; then
28664   echo $ECHO_N "(cached) $ECHO_C" >&6
28665 else
28666
28667         ol_DB_LIB=-ldb-4-4
28668         ol_LIBS=$LIBS
28669         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28670
28671         cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677
28678 #ifdef HAVE_DB_185_H
28679 # include <db_185.h>
28680 #else
28681 # include <db.h>
28682 #endif
28683
28684 #ifndef DB_VERSION_MAJOR
28685 # define DB_VERSION_MAJOR 1
28686 #endif
28687
28688 #ifndef NULL
28689 #define NULL ((void*)0)
28690 #endif
28691
28692 int
28693 main ()
28694 {
28695
28696 #if DB_VERSION_MAJOR > 1
28697         {
28698                 char *version;
28699                 int major, minor, patch;
28700
28701                 version = db_version( &major, &minor, &patch );
28702
28703                 if( major != DB_VERSION_MAJOR ||
28704                         minor < DB_VERSION_MINOR )
28705                 {
28706                         printf("Berkeley DB version mismatch\n"
28707                                 "\theader: %s\n\tlibrary: %s\n",
28708                                 DB_VERSION_STRING, version);
28709                         return 1;
28710                 }
28711         }
28712 #endif
28713
28714 #if DB_VERSION_MAJOR > 2
28715         db_env_create( NULL, 0 );
28716 #elif DB_VERSION_MAJOR > 1
28717         db_appexit( NULL );
28718 #else
28719         (void) dbopen( NULL, 0, 0, 0, NULL);
28720 #endif
28721
28722   ;
28723   return 0;
28724 }
28725 _ACEOF
28726 rm -f conftest.$ac_objext conftest$ac_exeext
28727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28728   (eval $ac_link) 2>conftest.er1
28729   ac_status=$?
28730   grep -v '^ *+' conftest.er1 >conftest.err
28731   rm -f conftest.er1
28732   cat conftest.err >&5
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); } &&
28735          { ac_try='test -z "$ac_c_werror_flag"
28736                          || test ! -s conftest.err'
28737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738   (eval $ac_try) 2>&5
28739   ac_status=$?
28740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741   (exit $ac_status); }; } &&
28742          { ac_try='test -s conftest$ac_exeext'
28743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744   (eval $ac_try) 2>&5
28745   ac_status=$?
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); }; }; then
28748   ol_cv_db_db_4_4=yes
28749 else
28750   echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.$ac_ext >&5
28752
28753 ol_cv_db_db_4_4=no
28754 fi
28755 rm -f conftest.err conftest.$ac_objext \
28756       conftest$ac_exeext conftest.$ac_ext
28757
28758         LIBS="$ol_LIBS"
28759
28760 fi
28761 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28762 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28763
28764         if test $ol_cv_db_db_4_4 = yes ; then
28765                 ol_cv_lib_db=-ldb-4-4
28766         fi
28767 fi
28768
28769         elif test $ol_cv_bdb_minor = 3 ; then
28770                 if test $ol_cv_lib_db = no ; then
28771         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28772 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28773 if test "${ol_cv_db_db43+set}" = set; then
28774   echo $ECHO_N "(cached) $ECHO_C" >&6
28775 else
28776
28777         ol_DB_LIB=-ldb43
28778         ol_LIBS=$LIBS
28779         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28780
28781         cat >conftest.$ac_ext <<_ACEOF
28782 /* confdefs.h.  */
28783 _ACEOF
28784 cat confdefs.h >>conftest.$ac_ext
28785 cat >>conftest.$ac_ext <<_ACEOF
28786 /* end confdefs.h.  */
28787
28788 #ifdef HAVE_DB_185_H
28789 # include <db_185.h>
28790 #else
28791 # include <db.h>
28792 #endif
28793
28794 #ifndef DB_VERSION_MAJOR
28795 # define DB_VERSION_MAJOR 1
28796 #endif
28797
28798 #ifndef NULL
28799 #define NULL ((void*)0)
28800 #endif
28801
28802 int
28803 main ()
28804 {
28805
28806 #if DB_VERSION_MAJOR > 1
28807         {
28808                 char *version;
28809                 int major, minor, patch;
28810
28811                 version = db_version( &major, &minor, &patch );
28812
28813                 if( major != DB_VERSION_MAJOR ||
28814                         minor < DB_VERSION_MINOR )
28815                 {
28816                         printf("Berkeley DB version mismatch\n"
28817                                 "\theader: %s\n\tlibrary: %s\n",
28818                                 DB_VERSION_STRING, version);
28819                         return 1;
28820                 }
28821         }
28822 #endif
28823
28824 #if DB_VERSION_MAJOR > 2
28825         db_env_create( NULL, 0 );
28826 #elif DB_VERSION_MAJOR > 1
28827         db_appexit( NULL );
28828 #else
28829         (void) dbopen( NULL, 0, 0, 0, NULL);
28830 #endif
28831
28832   ;
28833   return 0;
28834 }
28835 _ACEOF
28836 rm -f conftest.$ac_objext conftest$ac_exeext
28837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28838   (eval $ac_link) 2>conftest.er1
28839   ac_status=$?
28840   grep -v '^ *+' conftest.er1 >conftest.err
28841   rm -f conftest.er1
28842   cat conftest.err >&5
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); } &&
28845          { ac_try='test -z "$ac_c_werror_flag"
28846                          || test ! -s conftest.err'
28847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28848   (eval $ac_try) 2>&5
28849   ac_status=$?
28850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851   (exit $ac_status); }; } &&
28852          { ac_try='test -s conftest$ac_exeext'
28853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854   (eval $ac_try) 2>&5
28855   ac_status=$?
28856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); }; }; then
28858   ol_cv_db_db43=yes
28859 else
28860   echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28862
28863 ol_cv_db_db43=no
28864 fi
28865 rm -f conftest.err conftest.$ac_objext \
28866       conftest$ac_exeext conftest.$ac_ext
28867
28868         LIBS="$ol_LIBS"
28869
28870 fi
28871 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28872 echo "${ECHO_T}$ol_cv_db_db43" >&6
28873
28874         if test $ol_cv_db_db43 = yes ; then
28875                 ol_cv_lib_db=-ldb43
28876         fi
28877 fi
28878
28879                 if test $ol_cv_lib_db = no ; then
28880         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28881 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28882 if test "${ol_cv_db_db_43+set}" = set; then
28883   echo $ECHO_N "(cached) $ECHO_C" >&6
28884 else
28885
28886         ol_DB_LIB=-ldb-43
28887         ol_LIBS=$LIBS
28888         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28889
28890         cat >conftest.$ac_ext <<_ACEOF
28891 /* confdefs.h.  */
28892 _ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h.  */
28896
28897 #ifdef HAVE_DB_185_H
28898 # include <db_185.h>
28899 #else
28900 # include <db.h>
28901 #endif
28902
28903 #ifndef DB_VERSION_MAJOR
28904 # define DB_VERSION_MAJOR 1
28905 #endif
28906
28907 #ifndef NULL
28908 #define NULL ((void*)0)
28909 #endif
28910
28911 int
28912 main ()
28913 {
28914
28915 #if DB_VERSION_MAJOR > 1
28916         {
28917                 char *version;
28918                 int major, minor, patch;
28919
28920                 version = db_version( &major, &minor, &patch );
28921
28922                 if( major != DB_VERSION_MAJOR ||
28923                         minor < DB_VERSION_MINOR )
28924                 {
28925                         printf("Berkeley DB version mismatch\n"
28926                                 "\theader: %s\n\tlibrary: %s\n",
28927                                 DB_VERSION_STRING, version);
28928                         return 1;
28929                 }
28930         }
28931 #endif
28932
28933 #if DB_VERSION_MAJOR > 2
28934         db_env_create( NULL, 0 );
28935 #elif DB_VERSION_MAJOR > 1
28936         db_appexit( NULL );
28937 #else
28938         (void) dbopen( NULL, 0, 0, 0, NULL);
28939 #endif
28940
28941   ;
28942   return 0;
28943 }
28944 _ACEOF
28945 rm -f conftest.$ac_objext conftest$ac_exeext
28946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28947   (eval $ac_link) 2>conftest.er1
28948   ac_status=$?
28949   grep -v '^ *+' conftest.er1 >conftest.err
28950   rm -f conftest.er1
28951   cat conftest.err >&5
28952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953   (exit $ac_status); } &&
28954          { ac_try='test -z "$ac_c_werror_flag"
28955                          || test ! -s conftest.err'
28956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957   (eval $ac_try) 2>&5
28958   ac_status=$?
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); }; } &&
28961          { ac_try='test -s conftest$ac_exeext'
28962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963   (eval $ac_try) 2>&5
28964   ac_status=$?
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); }; }; then
28967   ol_cv_db_db_43=yes
28968 else
28969   echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28971
28972 ol_cv_db_db_43=no
28973 fi
28974 rm -f conftest.err conftest.$ac_objext \
28975       conftest$ac_exeext conftest.$ac_ext
28976
28977         LIBS="$ol_LIBS"
28978
28979 fi
28980 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28981 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28982
28983         if test $ol_cv_db_db_43 = yes ; then
28984                 ol_cv_lib_db=-ldb-43
28985         fi
28986 fi
28987
28988                 if test $ol_cv_lib_db = no ; then
28989         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28990 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28991 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28992   echo $ECHO_N "(cached) $ECHO_C" >&6
28993 else
28994
28995         ol_DB_LIB=-ldb-4.3
28996         ol_LIBS=$LIBS
28997         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28998
28999         cat >conftest.$ac_ext <<_ACEOF
29000 /* confdefs.h.  */
29001 _ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h.  */
29005
29006 #ifdef HAVE_DB_185_H
29007 # include <db_185.h>
29008 #else
29009 # include <db.h>
29010 #endif
29011
29012 #ifndef DB_VERSION_MAJOR
29013 # define DB_VERSION_MAJOR 1
29014 #endif
29015
29016 #ifndef NULL
29017 #define NULL ((void*)0)
29018 #endif
29019
29020 int
29021 main ()
29022 {
29023
29024 #if DB_VERSION_MAJOR > 1
29025         {
29026                 char *version;
29027                 int major, minor, patch;
29028
29029                 version = db_version( &major, &minor, &patch );
29030
29031                 if( major != DB_VERSION_MAJOR ||
29032                         minor < DB_VERSION_MINOR )
29033                 {
29034                         printf("Berkeley DB version mismatch\n"
29035                                 "\theader: %s\n\tlibrary: %s\n",
29036                                 DB_VERSION_STRING, version);
29037                         return 1;
29038                 }
29039         }
29040 #endif
29041
29042 #if DB_VERSION_MAJOR > 2
29043         db_env_create( NULL, 0 );
29044 #elif DB_VERSION_MAJOR > 1
29045         db_appexit( NULL );
29046 #else
29047         (void) dbopen( NULL, 0, 0, 0, NULL);
29048 #endif
29049
29050   ;
29051   return 0;
29052 }
29053 _ACEOF
29054 rm -f conftest.$ac_objext conftest$ac_exeext
29055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29056   (eval $ac_link) 2>conftest.er1
29057   ac_status=$?
29058   grep -v '^ *+' conftest.er1 >conftest.err
29059   rm -f conftest.er1
29060   cat conftest.err >&5
29061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); } &&
29063          { ac_try='test -z "$ac_c_werror_flag"
29064                          || test ! -s conftest.err'
29065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066   (eval $ac_try) 2>&5
29067   ac_status=$?
29068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069   (exit $ac_status); }; } &&
29070          { ac_try='test -s conftest$ac_exeext'
29071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072   (eval $ac_try) 2>&5
29073   ac_status=$?
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); }; }; then
29076   ol_cv_db_db_4_dot_3=yes
29077 else
29078   echo "$as_me: failed program was:" >&5
29079 sed 's/^/| /' conftest.$ac_ext >&5
29080
29081 ol_cv_db_db_4_dot_3=no
29082 fi
29083 rm -f conftest.err conftest.$ac_objext \
29084       conftest$ac_exeext conftest.$ac_ext
29085
29086         LIBS="$ol_LIBS"
29087
29088 fi
29089 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29090 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29091
29092         if test $ol_cv_db_db_4_dot_3 = yes ; then
29093                 ol_cv_lib_db=-ldb-4.3
29094         fi
29095 fi
29096
29097                 if test $ol_cv_lib_db = no ; then
29098         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29099 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29100 if test "${ol_cv_db_db_4_3+set}" = set; then
29101   echo $ECHO_N "(cached) $ECHO_C" >&6
29102 else
29103
29104         ol_DB_LIB=-ldb-4-3
29105         ol_LIBS=$LIBS
29106         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29107
29108         cat >conftest.$ac_ext <<_ACEOF
29109 /* confdefs.h.  */
29110 _ACEOF
29111 cat confdefs.h >>conftest.$ac_ext
29112 cat >>conftest.$ac_ext <<_ACEOF
29113 /* end confdefs.h.  */
29114
29115 #ifdef HAVE_DB_185_H
29116 # include <db_185.h>
29117 #else
29118 # include <db.h>
29119 #endif
29120
29121 #ifndef DB_VERSION_MAJOR
29122 # define DB_VERSION_MAJOR 1
29123 #endif
29124
29125 #ifndef NULL
29126 #define NULL ((void*)0)
29127 #endif
29128
29129 int
29130 main ()
29131 {
29132
29133 #if DB_VERSION_MAJOR > 1
29134         {
29135                 char *version;
29136                 int major, minor, patch;
29137
29138                 version = db_version( &major, &minor, &patch );
29139
29140                 if( major != DB_VERSION_MAJOR ||
29141                         minor < DB_VERSION_MINOR )
29142                 {
29143                         printf("Berkeley DB version mismatch\n"
29144                                 "\theader: %s\n\tlibrary: %s\n",
29145                                 DB_VERSION_STRING, version);
29146                         return 1;
29147                 }
29148         }
29149 #endif
29150
29151 #if DB_VERSION_MAJOR > 2
29152         db_env_create( NULL, 0 );
29153 #elif DB_VERSION_MAJOR > 1
29154         db_appexit( NULL );
29155 #else
29156         (void) dbopen( NULL, 0, 0, 0, NULL);
29157 #endif
29158
29159   ;
29160   return 0;
29161 }
29162 _ACEOF
29163 rm -f conftest.$ac_objext conftest$ac_exeext
29164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29165   (eval $ac_link) 2>conftest.er1
29166   ac_status=$?
29167   grep -v '^ *+' conftest.er1 >conftest.err
29168   rm -f conftest.er1
29169   cat conftest.err >&5
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } &&
29172          { ac_try='test -z "$ac_c_werror_flag"
29173                          || test ! -s conftest.err'
29174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175   (eval $ac_try) 2>&5
29176   ac_status=$?
29177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178   (exit $ac_status); }; } &&
29179          { ac_try='test -s conftest$ac_exeext'
29180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181   (eval $ac_try) 2>&5
29182   ac_status=$?
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); }; }; then
29185   ol_cv_db_db_4_3=yes
29186 else
29187   echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29189
29190 ol_cv_db_db_4_3=no
29191 fi
29192 rm -f conftest.err conftest.$ac_objext \
29193       conftest$ac_exeext conftest.$ac_ext
29194
29195         LIBS="$ol_LIBS"
29196
29197 fi
29198 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29199 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29200
29201         if test $ol_cv_db_db_4_3 = yes ; then
29202                 ol_cv_lib_db=-ldb-4-3
29203         fi
29204 fi
29205
29206         elif test $ol_cv_bdb_minor = 2 ; then
29207                 if test $ol_cv_lib_db = no ; then
29208         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29209 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29210 if test "${ol_cv_db_db42+set}" = set; then
29211   echo $ECHO_N "(cached) $ECHO_C" >&6
29212 else
29213
29214         ol_DB_LIB=-ldb42
29215         ol_LIBS=$LIBS
29216         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29217
29218         cat >conftest.$ac_ext <<_ACEOF
29219 /* confdefs.h.  */
29220 _ACEOF
29221 cat confdefs.h >>conftest.$ac_ext
29222 cat >>conftest.$ac_ext <<_ACEOF
29223 /* end confdefs.h.  */
29224
29225 #ifdef HAVE_DB_185_H
29226 # include <db_185.h>
29227 #else
29228 # include <db.h>
29229 #endif
29230
29231 #ifndef DB_VERSION_MAJOR
29232 # define DB_VERSION_MAJOR 1
29233 #endif
29234
29235 #ifndef NULL
29236 #define NULL ((void*)0)
29237 #endif
29238
29239 int
29240 main ()
29241 {
29242
29243 #if DB_VERSION_MAJOR > 1
29244         {
29245                 char *version;
29246                 int major, minor, patch;
29247
29248                 version = db_version( &major, &minor, &patch );
29249
29250                 if( major != DB_VERSION_MAJOR ||
29251                         minor < DB_VERSION_MINOR )
29252                 {
29253                         printf("Berkeley DB version mismatch\n"
29254                                 "\theader: %s\n\tlibrary: %s\n",
29255                                 DB_VERSION_STRING, version);
29256                         return 1;
29257                 }
29258         }
29259 #endif
29260
29261 #if DB_VERSION_MAJOR > 2
29262         db_env_create( NULL, 0 );
29263 #elif DB_VERSION_MAJOR > 1
29264         db_appexit( NULL );
29265 #else
29266         (void) dbopen( NULL, 0, 0, 0, NULL);
29267 #endif
29268
29269   ;
29270   return 0;
29271 }
29272 _ACEOF
29273 rm -f conftest.$ac_objext conftest$ac_exeext
29274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29275   (eval $ac_link) 2>conftest.er1
29276   ac_status=$?
29277   grep -v '^ *+' conftest.er1 >conftest.err
29278   rm -f conftest.er1
29279   cat conftest.err >&5
29280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281   (exit $ac_status); } &&
29282          { ac_try='test -z "$ac_c_werror_flag"
29283                          || test ! -s conftest.err'
29284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285   (eval $ac_try) 2>&5
29286   ac_status=$?
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); }; } &&
29289          { ac_try='test -s conftest$ac_exeext'
29290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291   (eval $ac_try) 2>&5
29292   ac_status=$?
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; }; then
29295   ol_cv_db_db42=yes
29296 else
29297   echo "$as_me: failed program was:" >&5
29298 sed 's/^/| /' conftest.$ac_ext >&5
29299
29300 ol_cv_db_db42=no
29301 fi
29302 rm -f conftest.err conftest.$ac_objext \
29303       conftest$ac_exeext conftest.$ac_ext
29304
29305         LIBS="$ol_LIBS"
29306
29307 fi
29308 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29309 echo "${ECHO_T}$ol_cv_db_db42" >&6
29310
29311         if test $ol_cv_db_db42 = yes ; then
29312                 ol_cv_lib_db=-ldb42
29313         fi
29314 fi
29315
29316                 if test $ol_cv_lib_db = no ; then
29317         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29318 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29319 if test "${ol_cv_db_db_42+set}" = set; then
29320   echo $ECHO_N "(cached) $ECHO_C" >&6
29321 else
29322
29323         ol_DB_LIB=-ldb-42
29324         ol_LIBS=$LIBS
29325         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29326
29327         cat >conftest.$ac_ext <<_ACEOF
29328 /* confdefs.h.  */
29329 _ACEOF
29330 cat confdefs.h >>conftest.$ac_ext
29331 cat >>conftest.$ac_ext <<_ACEOF
29332 /* end confdefs.h.  */
29333
29334 #ifdef HAVE_DB_185_H
29335 # include <db_185.h>
29336 #else
29337 # include <db.h>
29338 #endif
29339
29340 #ifndef DB_VERSION_MAJOR
29341 # define DB_VERSION_MAJOR 1
29342 #endif
29343
29344 #ifndef NULL
29345 #define NULL ((void*)0)
29346 #endif
29347
29348 int
29349 main ()
29350 {
29351
29352 #if DB_VERSION_MAJOR > 1
29353         {
29354                 char *version;
29355                 int major, minor, patch;
29356
29357                 version = db_version( &major, &minor, &patch );
29358
29359                 if( major != DB_VERSION_MAJOR ||
29360                         minor < DB_VERSION_MINOR )
29361                 {
29362                         printf("Berkeley DB version mismatch\n"
29363                                 "\theader: %s\n\tlibrary: %s\n",
29364                                 DB_VERSION_STRING, version);
29365                         return 1;
29366                 }
29367         }
29368 #endif
29369
29370 #if DB_VERSION_MAJOR > 2
29371         db_env_create( NULL, 0 );
29372 #elif DB_VERSION_MAJOR > 1
29373         db_appexit( NULL );
29374 #else
29375         (void) dbopen( NULL, 0, 0, 0, NULL);
29376 #endif
29377
29378   ;
29379   return 0;
29380 }
29381 _ACEOF
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29384   (eval $ac_link) 2>conftest.er1
29385   ac_status=$?
29386   grep -v '^ *+' conftest.er1 >conftest.err
29387   rm -f conftest.er1
29388   cat conftest.err >&5
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } &&
29391          { ac_try='test -z "$ac_c_werror_flag"
29392                          || test ! -s conftest.err'
29393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394   (eval $ac_try) 2>&5
29395   ac_status=$?
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); }; } &&
29398          { ac_try='test -s conftest$ac_exeext'
29399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400   (eval $ac_try) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); }; }; then
29404   ol_cv_db_db_42=yes
29405 else
29406   echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29408
29409 ol_cv_db_db_42=no
29410 fi
29411 rm -f conftest.err conftest.$ac_objext \
29412       conftest$ac_exeext conftest.$ac_ext
29413
29414         LIBS="$ol_LIBS"
29415
29416 fi
29417 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29418 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29419
29420         if test $ol_cv_db_db_42 = yes ; then
29421                 ol_cv_lib_db=-ldb-42
29422         fi
29423 fi
29424
29425                 if test $ol_cv_lib_db = no ; then
29426         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29427 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29428 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 else
29431
29432         ol_DB_LIB=-ldb-4.2
29433         ol_LIBS=$LIBS
29434         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29435
29436         cat >conftest.$ac_ext <<_ACEOF
29437 /* confdefs.h.  */
29438 _ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h.  */
29442
29443 #ifdef HAVE_DB_185_H
29444 # include <db_185.h>
29445 #else
29446 # include <db.h>
29447 #endif
29448
29449 #ifndef DB_VERSION_MAJOR
29450 # define DB_VERSION_MAJOR 1
29451 #endif
29452
29453 #ifndef NULL
29454 #define NULL ((void*)0)
29455 #endif
29456
29457 int
29458 main ()
29459 {
29460
29461 #if DB_VERSION_MAJOR > 1
29462         {
29463                 char *version;
29464                 int major, minor, patch;
29465
29466                 version = db_version( &major, &minor, &patch );
29467
29468                 if( major != DB_VERSION_MAJOR ||
29469                         minor < DB_VERSION_MINOR )
29470                 {
29471                         printf("Berkeley DB version mismatch\n"
29472                                 "\theader: %s\n\tlibrary: %s\n",
29473                                 DB_VERSION_STRING, version);
29474                         return 1;
29475                 }
29476         }
29477 #endif
29478
29479 #if DB_VERSION_MAJOR > 2
29480         db_env_create( NULL, 0 );
29481 #elif DB_VERSION_MAJOR > 1
29482         db_appexit( NULL );
29483 #else
29484         (void) dbopen( NULL, 0, 0, 0, NULL);
29485 #endif
29486
29487   ;
29488   return 0;
29489 }
29490 _ACEOF
29491 rm -f conftest.$ac_objext conftest$ac_exeext
29492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29493   (eval $ac_link) 2>conftest.er1
29494   ac_status=$?
29495   grep -v '^ *+' conftest.er1 >conftest.err
29496   rm -f conftest.er1
29497   cat conftest.err >&5
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); } &&
29500          { ac_try='test -z "$ac_c_werror_flag"
29501                          || test ! -s conftest.err'
29502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503   (eval $ac_try) 2>&5
29504   ac_status=$?
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); }; } &&
29507          { ac_try='test -s conftest$ac_exeext'
29508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509   (eval $ac_try) 2>&5
29510   ac_status=$?
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); }; }; then
29513   ol_cv_db_db_4_dot_2=yes
29514 else
29515   echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29517
29518 ol_cv_db_db_4_dot_2=no
29519 fi
29520 rm -f conftest.err conftest.$ac_objext \
29521       conftest$ac_exeext conftest.$ac_ext
29522
29523         LIBS="$ol_LIBS"
29524
29525 fi
29526 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29527 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29528
29529         if test $ol_cv_db_db_4_dot_2 = yes ; then
29530                 ol_cv_lib_db=-ldb-4.2
29531         fi
29532 fi
29533
29534                 if test $ol_cv_lib_db = no ; then
29535         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29536 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29537 if test "${ol_cv_db_db_4_2+set}" = set; then
29538   echo $ECHO_N "(cached) $ECHO_C" >&6
29539 else
29540
29541         ol_DB_LIB=-ldb-4-2
29542         ol_LIBS=$LIBS
29543         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29544
29545         cat >conftest.$ac_ext <<_ACEOF
29546 /* confdefs.h.  */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h.  */
29551
29552 #ifdef HAVE_DB_185_H
29553 # include <db_185.h>
29554 #else
29555 # include <db.h>
29556 #endif
29557
29558 #ifndef DB_VERSION_MAJOR
29559 # define DB_VERSION_MAJOR 1
29560 #endif
29561
29562 #ifndef NULL
29563 #define NULL ((void*)0)
29564 #endif
29565
29566 int
29567 main ()
29568 {
29569
29570 #if DB_VERSION_MAJOR > 1
29571         {
29572                 char *version;
29573                 int major, minor, patch;
29574
29575                 version = db_version( &major, &minor, &patch );
29576
29577                 if( major != DB_VERSION_MAJOR ||
29578                         minor < DB_VERSION_MINOR )
29579                 {
29580                         printf("Berkeley DB version mismatch\n"
29581                                 "\theader: %s\n\tlibrary: %s\n",
29582                                 DB_VERSION_STRING, version);
29583                         return 1;
29584                 }
29585         }
29586 #endif
29587
29588 #if DB_VERSION_MAJOR > 2
29589         db_env_create( NULL, 0 );
29590 #elif DB_VERSION_MAJOR > 1
29591         db_appexit( NULL );
29592 #else
29593         (void) dbopen( NULL, 0, 0, 0, NULL);
29594 #endif
29595
29596   ;
29597   return 0;
29598 }
29599 _ACEOF
29600 rm -f conftest.$ac_objext conftest$ac_exeext
29601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29602   (eval $ac_link) 2>conftest.er1
29603   ac_status=$?
29604   grep -v '^ *+' conftest.er1 >conftest.err
29605   rm -f conftest.er1
29606   cat conftest.err >&5
29607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608   (exit $ac_status); } &&
29609          { ac_try='test -z "$ac_c_werror_flag"
29610                          || test ! -s conftest.err'
29611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29612   (eval $ac_try) 2>&5
29613   ac_status=$?
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); }; } &&
29616          { ac_try='test -s conftest$ac_exeext'
29617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618   (eval $ac_try) 2>&5
29619   ac_status=$?
29620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); }; }; then
29622   ol_cv_db_db_4_2=yes
29623 else
29624   echo "$as_me: failed program was:" >&5
29625 sed 's/^/| /' conftest.$ac_ext >&5
29626
29627 ol_cv_db_db_4_2=no
29628 fi
29629 rm -f conftest.err conftest.$ac_objext \
29630       conftest$ac_exeext conftest.$ac_ext
29631
29632         LIBS="$ol_LIBS"
29633
29634 fi
29635 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29636 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29637
29638         if test $ol_cv_db_db_4_2 = yes ; then
29639                 ol_cv_lib_db=-ldb-4-2
29640         fi
29641 fi
29642
29643         elif test $ol_cv_bdb_minor = 1 ; then
29644                 if test $ol_cv_lib_db = no ; then
29645         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29646 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29647 if test "${ol_cv_db_db41+set}" = set; then
29648   echo $ECHO_N "(cached) $ECHO_C" >&6
29649 else
29650
29651         ol_DB_LIB=-ldb41
29652         ol_LIBS=$LIBS
29653         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29654
29655         cat >conftest.$ac_ext <<_ACEOF
29656 /* confdefs.h.  */
29657 _ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h.  */
29661
29662 #ifdef HAVE_DB_185_H
29663 # include <db_185.h>
29664 #else
29665 # include <db.h>
29666 #endif
29667
29668 #ifndef DB_VERSION_MAJOR
29669 # define DB_VERSION_MAJOR 1
29670 #endif
29671
29672 #ifndef NULL
29673 #define NULL ((void*)0)
29674 #endif
29675
29676 int
29677 main ()
29678 {
29679
29680 #if DB_VERSION_MAJOR > 1
29681         {
29682                 char *version;
29683                 int major, minor, patch;
29684
29685                 version = db_version( &major, &minor, &patch );
29686
29687                 if( major != DB_VERSION_MAJOR ||
29688                         minor < DB_VERSION_MINOR )
29689                 {
29690                         printf("Berkeley DB version mismatch\n"
29691                                 "\theader: %s\n\tlibrary: %s\n",
29692                                 DB_VERSION_STRING, version);
29693                         return 1;
29694                 }
29695         }
29696 #endif
29697
29698 #if DB_VERSION_MAJOR > 2
29699         db_env_create( NULL, 0 );
29700 #elif DB_VERSION_MAJOR > 1
29701         db_appexit( NULL );
29702 #else
29703         (void) dbopen( NULL, 0, 0, 0, NULL);
29704 #endif
29705
29706   ;
29707   return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext conftest$ac_exeext
29711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29712   (eval $ac_link) 2>conftest.er1
29713   ac_status=$?
29714   grep -v '^ *+' conftest.er1 >conftest.err
29715   rm -f conftest.er1
29716   cat conftest.err >&5
29717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718   (exit $ac_status); } &&
29719          { ac_try='test -z "$ac_c_werror_flag"
29720                          || test ! -s conftest.err'
29721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722   (eval $ac_try) 2>&5
29723   ac_status=$?
29724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725   (exit $ac_status); }; } &&
29726          { ac_try='test -s conftest$ac_exeext'
29727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728   (eval $ac_try) 2>&5
29729   ac_status=$?
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); }; }; then
29732   ol_cv_db_db41=yes
29733 else
29734   echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737 ol_cv_db_db41=no
29738 fi
29739 rm -f conftest.err conftest.$ac_objext \
29740       conftest$ac_exeext conftest.$ac_ext
29741
29742         LIBS="$ol_LIBS"
29743
29744 fi
29745 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29746 echo "${ECHO_T}$ol_cv_db_db41" >&6
29747
29748         if test $ol_cv_db_db41 = yes ; then
29749                 ol_cv_lib_db=-ldb41
29750         fi
29751 fi
29752
29753                 if test $ol_cv_lib_db = no ; then
29754         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29755 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29756 if test "${ol_cv_db_db_41+set}" = set; then
29757   echo $ECHO_N "(cached) $ECHO_C" >&6
29758 else
29759
29760         ol_DB_LIB=-ldb-41
29761         ol_LIBS=$LIBS
29762         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29763
29764         cat >conftest.$ac_ext <<_ACEOF
29765 /* confdefs.h.  */
29766 _ACEOF
29767 cat confdefs.h >>conftest.$ac_ext
29768 cat >>conftest.$ac_ext <<_ACEOF
29769 /* end confdefs.h.  */
29770
29771 #ifdef HAVE_DB_185_H
29772 # include <db_185.h>
29773 #else
29774 # include <db.h>
29775 #endif
29776
29777 #ifndef DB_VERSION_MAJOR
29778 # define DB_VERSION_MAJOR 1
29779 #endif
29780
29781 #ifndef NULL
29782 #define NULL ((void*)0)
29783 #endif
29784
29785 int
29786 main ()
29787 {
29788
29789 #if DB_VERSION_MAJOR > 1
29790         {
29791                 char *version;
29792                 int major, minor, patch;
29793
29794                 version = db_version( &major, &minor, &patch );
29795
29796                 if( major != DB_VERSION_MAJOR ||
29797                         minor < DB_VERSION_MINOR )
29798                 {
29799                         printf("Berkeley DB version mismatch\n"
29800                                 "\theader: %s\n\tlibrary: %s\n",
29801                                 DB_VERSION_STRING, version);
29802                         return 1;
29803                 }
29804         }
29805 #endif
29806
29807 #if DB_VERSION_MAJOR > 2
29808         db_env_create( NULL, 0 );
29809 #elif DB_VERSION_MAJOR > 1
29810         db_appexit( NULL );
29811 #else
29812         (void) dbopen( NULL, 0, 0, 0, NULL);
29813 #endif
29814
29815   ;
29816   return 0;
29817 }
29818 _ACEOF
29819 rm -f conftest.$ac_objext conftest$ac_exeext
29820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29821   (eval $ac_link) 2>conftest.er1
29822   ac_status=$?
29823   grep -v '^ *+' conftest.er1 >conftest.err
29824   rm -f conftest.er1
29825   cat conftest.err >&5
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); } &&
29828          { ac_try='test -z "$ac_c_werror_flag"
29829                          || test ! -s conftest.err'
29830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29831   (eval $ac_try) 2>&5
29832   ac_status=$?
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); }; } &&
29835          { ac_try='test -s conftest$ac_exeext'
29836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837   (eval $ac_try) 2>&5
29838   ac_status=$?
29839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840   (exit $ac_status); }; }; then
29841   ol_cv_db_db_41=yes
29842 else
29843   echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29845
29846 ol_cv_db_db_41=no
29847 fi
29848 rm -f conftest.err conftest.$ac_objext \
29849       conftest$ac_exeext conftest.$ac_ext
29850
29851         LIBS="$ol_LIBS"
29852
29853 fi
29854 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29855 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29856
29857         if test $ol_cv_db_db_41 = yes ; then
29858                 ol_cv_lib_db=-ldb-41
29859         fi
29860 fi
29861
29862                 if test $ol_cv_lib_db = no ; then
29863         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29864 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29865 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29866   echo $ECHO_N "(cached) $ECHO_C" >&6
29867 else
29868
29869         ol_DB_LIB=-ldb-4.1
29870         ol_LIBS=$LIBS
29871         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29872
29873         cat >conftest.$ac_ext <<_ACEOF
29874 /* confdefs.h.  */
29875 _ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h.  */
29879
29880 #ifdef HAVE_DB_185_H
29881 # include <db_185.h>
29882 #else
29883 # include <db.h>
29884 #endif
29885
29886 #ifndef DB_VERSION_MAJOR
29887 # define DB_VERSION_MAJOR 1
29888 #endif
29889
29890 #ifndef NULL
29891 #define NULL ((void*)0)
29892 #endif
29893
29894 int
29895 main ()
29896 {
29897
29898 #if DB_VERSION_MAJOR > 1
29899         {
29900                 char *version;
29901                 int major, minor, patch;
29902
29903                 version = db_version( &major, &minor, &patch );
29904
29905                 if( major != DB_VERSION_MAJOR ||
29906                         minor < DB_VERSION_MINOR )
29907                 {
29908                         printf("Berkeley DB version mismatch\n"
29909                                 "\theader: %s\n\tlibrary: %s\n",
29910                                 DB_VERSION_STRING, version);
29911                         return 1;
29912                 }
29913         }
29914 #endif
29915
29916 #if DB_VERSION_MAJOR > 2
29917         db_env_create( NULL, 0 );
29918 #elif DB_VERSION_MAJOR > 1
29919         db_appexit( NULL );
29920 #else
29921         (void) dbopen( NULL, 0, 0, 0, NULL);
29922 #endif
29923
29924   ;
29925   return 0;
29926 }
29927 _ACEOF
29928 rm -f conftest.$ac_objext conftest$ac_exeext
29929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29930   (eval $ac_link) 2>conftest.er1
29931   ac_status=$?
29932   grep -v '^ *+' conftest.er1 >conftest.err
29933   rm -f conftest.er1
29934   cat conftest.err >&5
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } &&
29937          { ac_try='test -z "$ac_c_werror_flag"
29938                          || test ! -s conftest.err'
29939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940   (eval $ac_try) 2>&5
29941   ac_status=$?
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); }; } &&
29944          { ac_try='test -s conftest$ac_exeext'
29945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946   (eval $ac_try) 2>&5
29947   ac_status=$?
29948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949   (exit $ac_status); }; }; then
29950   ol_cv_db_db_4_dot_1=yes
29951 else
29952   echo "$as_me: failed program was:" >&5
29953 sed 's/^/| /' conftest.$ac_ext >&5
29954
29955 ol_cv_db_db_4_dot_1=no
29956 fi
29957 rm -f conftest.err conftest.$ac_objext \
29958       conftest$ac_exeext conftest.$ac_ext
29959
29960         LIBS="$ol_LIBS"
29961
29962 fi
29963 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29964 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29965
29966         if test $ol_cv_db_db_4_dot_1 = yes ; then
29967                 ol_cv_lib_db=-ldb-4.1
29968         fi
29969 fi
29970
29971                 if test $ol_cv_lib_db = no ; then
29972         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29973 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29974 if test "${ol_cv_db_db_4_1+set}" = set; then
29975   echo $ECHO_N "(cached) $ECHO_C" >&6
29976 else
29977
29978         ol_DB_LIB=-ldb-4-1
29979         ol_LIBS=$LIBS
29980         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29981
29982         cat >conftest.$ac_ext <<_ACEOF
29983 /* confdefs.h.  */
29984 _ACEOF
29985 cat confdefs.h >>conftest.$ac_ext
29986 cat >>conftest.$ac_ext <<_ACEOF
29987 /* end confdefs.h.  */
29988
29989 #ifdef HAVE_DB_185_H
29990 # include <db_185.h>
29991 #else
29992 # include <db.h>
29993 #endif
29994
29995 #ifndef DB_VERSION_MAJOR
29996 # define DB_VERSION_MAJOR 1
29997 #endif
29998
29999 #ifndef NULL
30000 #define NULL ((void*)0)
30001 #endif
30002
30003 int
30004 main ()
30005 {
30006
30007 #if DB_VERSION_MAJOR > 1
30008         {
30009                 char *version;
30010                 int major, minor, patch;
30011
30012                 version = db_version( &major, &minor, &patch );
30013
30014                 if( major != DB_VERSION_MAJOR ||
30015                         minor < DB_VERSION_MINOR )
30016                 {
30017                         printf("Berkeley DB version mismatch\n"
30018                                 "\theader: %s\n\tlibrary: %s\n",
30019                                 DB_VERSION_STRING, version);
30020                         return 1;
30021                 }
30022         }
30023 #endif
30024
30025 #if DB_VERSION_MAJOR > 2
30026         db_env_create( NULL, 0 );
30027 #elif DB_VERSION_MAJOR > 1
30028         db_appexit( NULL );
30029 #else
30030         (void) dbopen( NULL, 0, 0, 0, NULL);
30031 #endif
30032
30033   ;
30034   return 0;
30035 }
30036 _ACEOF
30037 rm -f conftest.$ac_objext conftest$ac_exeext
30038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30039   (eval $ac_link) 2>conftest.er1
30040   ac_status=$?
30041   grep -v '^ *+' conftest.er1 >conftest.err
30042   rm -f conftest.er1
30043   cat conftest.err >&5
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); } &&
30046          { ac_try='test -z "$ac_c_werror_flag"
30047                          || test ! -s conftest.err'
30048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30049   (eval $ac_try) 2>&5
30050   ac_status=$?
30051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052   (exit $ac_status); }; } &&
30053          { ac_try='test -s conftest$ac_exeext'
30054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30055   (eval $ac_try) 2>&5
30056   ac_status=$?
30057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058   (exit $ac_status); }; }; then
30059   ol_cv_db_db_4_1=yes
30060 else
30061   echo "$as_me: failed program was:" >&5
30062 sed 's/^/| /' conftest.$ac_ext >&5
30063
30064 ol_cv_db_db_4_1=no
30065 fi
30066 rm -f conftest.err conftest.$ac_objext \
30067       conftest$ac_exeext conftest.$ac_ext
30068
30069         LIBS="$ol_LIBS"
30070
30071 fi
30072 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30073 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30074
30075         if test $ol_cv_db_db_4_1 = yes ; then
30076                 ol_cv_lib_db=-ldb-4-1
30077         fi
30078 fi
30079
30080         fi
30081         if test $ol_cv_lib_db = no ; then
30082         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30083 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30084 if test "${ol_cv_db_db_4+set}" = set; then
30085   echo $ECHO_N "(cached) $ECHO_C" >&6
30086 else
30087
30088         ol_DB_LIB=-ldb-4
30089         ol_LIBS=$LIBS
30090         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30091
30092         cat >conftest.$ac_ext <<_ACEOF
30093 /* confdefs.h.  */
30094 _ACEOF
30095 cat confdefs.h >>conftest.$ac_ext
30096 cat >>conftest.$ac_ext <<_ACEOF
30097 /* end confdefs.h.  */
30098
30099 #ifdef HAVE_DB_185_H
30100 # include <db_185.h>
30101 #else
30102 # include <db.h>
30103 #endif
30104
30105 #ifndef DB_VERSION_MAJOR
30106 # define DB_VERSION_MAJOR 1
30107 #endif
30108
30109 #ifndef NULL
30110 #define NULL ((void*)0)
30111 #endif
30112
30113 int
30114 main ()
30115 {
30116
30117 #if DB_VERSION_MAJOR > 1
30118         {
30119                 char *version;
30120                 int major, minor, patch;
30121
30122                 version = db_version( &major, &minor, &patch );
30123
30124                 if( major != DB_VERSION_MAJOR ||
30125                         minor < DB_VERSION_MINOR )
30126                 {
30127                         printf("Berkeley DB version mismatch\n"
30128                                 "\theader: %s\n\tlibrary: %s\n",
30129                                 DB_VERSION_STRING, version);
30130                         return 1;
30131                 }
30132         }
30133 #endif
30134
30135 #if DB_VERSION_MAJOR > 2
30136         db_env_create( NULL, 0 );
30137 #elif DB_VERSION_MAJOR > 1
30138         db_appexit( NULL );
30139 #else
30140         (void) dbopen( NULL, 0, 0, 0, NULL);
30141 #endif
30142
30143   ;
30144   return 0;
30145 }
30146 _ACEOF
30147 rm -f conftest.$ac_objext conftest$ac_exeext
30148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30149   (eval $ac_link) 2>conftest.er1
30150   ac_status=$?
30151   grep -v '^ *+' conftest.er1 >conftest.err
30152   rm -f conftest.er1
30153   cat conftest.err >&5
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); } &&
30156          { ac_try='test -z "$ac_c_werror_flag"
30157                          || test ! -s conftest.err'
30158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30159   (eval $ac_try) 2>&5
30160   ac_status=$?
30161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162   (exit $ac_status); }; } &&
30163          { ac_try='test -s conftest$ac_exeext'
30164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165   (eval $ac_try) 2>&5
30166   ac_status=$?
30167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168   (exit $ac_status); }; }; then
30169   ol_cv_db_db_4=yes
30170 else
30171   echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30173
30174 ol_cv_db_db_4=no
30175 fi
30176 rm -f conftest.err conftest.$ac_objext \
30177       conftest$ac_exeext conftest.$ac_ext
30178
30179         LIBS="$ol_LIBS"
30180
30181 fi
30182 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30183 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30184
30185         if test $ol_cv_db_db_4 = yes ; then
30186                 ol_cv_lib_db=-ldb-4
30187         fi
30188 fi
30189
30190         if test $ol_cv_lib_db = no ; then
30191         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30192 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30193 if test "${ol_cv_db_db4+set}" = set; then
30194   echo $ECHO_N "(cached) $ECHO_C" >&6
30195 else
30196
30197         ol_DB_LIB=-ldb4
30198         ol_LIBS=$LIBS
30199         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30200
30201         cat >conftest.$ac_ext <<_ACEOF
30202 /* confdefs.h.  */
30203 _ACEOF
30204 cat confdefs.h >>conftest.$ac_ext
30205 cat >>conftest.$ac_ext <<_ACEOF
30206 /* end confdefs.h.  */
30207
30208 #ifdef HAVE_DB_185_H
30209 # include <db_185.h>
30210 #else
30211 # include <db.h>
30212 #endif
30213
30214 #ifndef DB_VERSION_MAJOR
30215 # define DB_VERSION_MAJOR 1
30216 #endif
30217
30218 #ifndef NULL
30219 #define NULL ((void*)0)
30220 #endif
30221
30222 int
30223 main ()
30224 {
30225
30226 #if DB_VERSION_MAJOR > 1
30227         {
30228                 char *version;
30229                 int major, minor, patch;
30230
30231                 version = db_version( &major, &minor, &patch );
30232
30233                 if( major != DB_VERSION_MAJOR ||
30234                         minor < DB_VERSION_MINOR )
30235                 {
30236                         printf("Berkeley DB version mismatch\n"
30237                                 "\theader: %s\n\tlibrary: %s\n",
30238                                 DB_VERSION_STRING, version);
30239                         return 1;
30240                 }
30241         }
30242 #endif
30243
30244 #if DB_VERSION_MAJOR > 2
30245         db_env_create( NULL, 0 );
30246 #elif DB_VERSION_MAJOR > 1
30247         db_appexit( NULL );
30248 #else
30249         (void) dbopen( NULL, 0, 0, 0, NULL);
30250 #endif
30251
30252   ;
30253   return 0;
30254 }
30255 _ACEOF
30256 rm -f conftest.$ac_objext conftest$ac_exeext
30257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30258   (eval $ac_link) 2>conftest.er1
30259   ac_status=$?
30260   grep -v '^ *+' conftest.er1 >conftest.err
30261   rm -f conftest.er1
30262   cat conftest.err >&5
30263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264   (exit $ac_status); } &&
30265          { ac_try='test -z "$ac_c_werror_flag"
30266                          || test ! -s conftest.err'
30267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268   (eval $ac_try) 2>&5
30269   ac_status=$?
30270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271   (exit $ac_status); }; } &&
30272          { ac_try='test -s conftest$ac_exeext'
30273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274   (eval $ac_try) 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; }; then
30278   ol_cv_db_db4=yes
30279 else
30280   echo "$as_me: failed program was:" >&5
30281 sed 's/^/| /' conftest.$ac_ext >&5
30282
30283 ol_cv_db_db4=no
30284 fi
30285 rm -f conftest.err conftest.$ac_objext \
30286       conftest$ac_exeext conftest.$ac_ext
30287
30288         LIBS="$ol_LIBS"
30289
30290 fi
30291 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30292 echo "${ECHO_T}$ol_cv_db_db4" >&6
30293
30294         if test $ol_cv_db_db4 = yes ; then
30295                 ol_cv_lib_db=-ldb4
30296         fi
30297 fi
30298
30299         if test $ol_cv_lib_db = no ; then
30300         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30301 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30302 if test "${ol_cv_db_db+set}" = set; then
30303   echo $ECHO_N "(cached) $ECHO_C" >&6
30304 else
30305
30306         ol_DB_LIB=-ldb
30307         ol_LIBS=$LIBS
30308         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30309
30310         cat >conftest.$ac_ext <<_ACEOF
30311 /* confdefs.h.  */
30312 _ACEOF
30313 cat confdefs.h >>conftest.$ac_ext
30314 cat >>conftest.$ac_ext <<_ACEOF
30315 /* end confdefs.h.  */
30316
30317 #ifdef HAVE_DB_185_H
30318 # include <db_185.h>
30319 #else
30320 # include <db.h>
30321 #endif
30322
30323 #ifndef DB_VERSION_MAJOR
30324 # define DB_VERSION_MAJOR 1
30325 #endif
30326
30327 #ifndef NULL
30328 #define NULL ((void*)0)
30329 #endif
30330
30331 int
30332 main ()
30333 {
30334
30335 #if DB_VERSION_MAJOR > 1
30336         {
30337                 char *version;
30338                 int major, minor, patch;
30339
30340                 version = db_version( &major, &minor, &patch );
30341
30342                 if( major != DB_VERSION_MAJOR ||
30343                         minor < DB_VERSION_MINOR )
30344                 {
30345                         printf("Berkeley DB version mismatch\n"
30346                                 "\theader: %s\n\tlibrary: %s\n",
30347                                 DB_VERSION_STRING, version);
30348                         return 1;
30349                 }
30350         }
30351 #endif
30352
30353 #if DB_VERSION_MAJOR > 2
30354         db_env_create( NULL, 0 );
30355 #elif DB_VERSION_MAJOR > 1
30356         db_appexit( NULL );
30357 #else
30358         (void) dbopen( NULL, 0, 0, 0, NULL);
30359 #endif
30360
30361   ;
30362   return 0;
30363 }
30364 _ACEOF
30365 rm -f conftest.$ac_objext conftest$ac_exeext
30366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30367   (eval $ac_link) 2>conftest.er1
30368   ac_status=$?
30369   grep -v '^ *+' conftest.er1 >conftest.err
30370   rm -f conftest.er1
30371   cat conftest.err >&5
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); } &&
30374          { ac_try='test -z "$ac_c_werror_flag"
30375                          || test ! -s conftest.err'
30376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30377   (eval $ac_try) 2>&5
30378   ac_status=$?
30379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380   (exit $ac_status); }; } &&
30381          { ac_try='test -s conftest$ac_exeext'
30382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383   (eval $ac_try) 2>&5
30384   ac_status=$?
30385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386   (exit $ac_status); }; }; then
30387   ol_cv_db_db=yes
30388 else
30389   echo "$as_me: failed program was:" >&5
30390 sed 's/^/| /' conftest.$ac_ext >&5
30391
30392 ol_cv_db_db=no
30393 fi
30394 rm -f conftest.err conftest.$ac_objext \
30395       conftest$ac_exeext conftest.$ac_ext
30396
30397         LIBS="$ol_LIBS"
30398
30399 fi
30400 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30401 echo "${ECHO_T}$ol_cv_db_db" >&6
30402
30403         if test $ol_cv_db_db = yes ; then
30404                 ol_cv_lib_db=-ldb
30405         fi
30406 fi
30407
30408
30409 elif test $ol_cv_bdb_major = 3 ; then
30410         if test $ol_cv_lib_db = no ; then
30411         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30412 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30413 if test "${ol_cv_db_db3+set}" = set; then
30414   echo $ECHO_N "(cached) $ECHO_C" >&6
30415 else
30416
30417         ol_DB_LIB=-ldb3
30418         ol_LIBS=$LIBS
30419         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30420
30421         cat >conftest.$ac_ext <<_ACEOF
30422 /* confdefs.h.  */
30423 _ACEOF
30424 cat confdefs.h >>conftest.$ac_ext
30425 cat >>conftest.$ac_ext <<_ACEOF
30426 /* end confdefs.h.  */
30427
30428 #ifdef HAVE_DB_185_H
30429 # include <db_185.h>
30430 #else
30431 # include <db.h>
30432 #endif
30433
30434 #ifndef DB_VERSION_MAJOR
30435 # define DB_VERSION_MAJOR 1
30436 #endif
30437
30438 #ifndef NULL
30439 #define NULL ((void*)0)
30440 #endif
30441
30442 int
30443 main ()
30444 {
30445
30446 #if DB_VERSION_MAJOR > 1
30447         {
30448                 char *version;
30449                 int major, minor, patch;
30450
30451                 version = db_version( &major, &minor, &patch );
30452
30453                 if( major != DB_VERSION_MAJOR ||
30454                         minor < DB_VERSION_MINOR )
30455                 {
30456                         printf("Berkeley DB version mismatch\n"
30457                                 "\theader: %s\n\tlibrary: %s\n",
30458                                 DB_VERSION_STRING, version);
30459                         return 1;
30460                 }
30461         }
30462 #endif
30463
30464 #if DB_VERSION_MAJOR > 2
30465         db_env_create( NULL, 0 );
30466 #elif DB_VERSION_MAJOR > 1
30467         db_appexit( NULL );
30468 #else
30469         (void) dbopen( NULL, 0, 0, 0, NULL);
30470 #endif
30471
30472   ;
30473   return 0;
30474 }
30475 _ACEOF
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30478   (eval $ac_link) 2>conftest.er1
30479   ac_status=$?
30480   grep -v '^ *+' conftest.er1 >conftest.err
30481   rm -f conftest.er1
30482   cat conftest.err >&5
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); } &&
30485          { ac_try='test -z "$ac_c_werror_flag"
30486                          || test ! -s conftest.err'
30487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30488   (eval $ac_try) 2>&5
30489   ac_status=$?
30490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491   (exit $ac_status); }; } &&
30492          { ac_try='test -s conftest$ac_exeext'
30493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494   (eval $ac_try) 2>&5
30495   ac_status=$?
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); }; }; then
30498   ol_cv_db_db3=yes
30499 else
30500   echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30502
30503 ol_cv_db_db3=no
30504 fi
30505 rm -f conftest.err conftest.$ac_objext \
30506       conftest$ac_exeext conftest.$ac_ext
30507
30508         LIBS="$ol_LIBS"
30509
30510 fi
30511 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30512 echo "${ECHO_T}$ol_cv_db_db3" >&6
30513
30514         if test $ol_cv_db_db3 = yes ; then
30515                 ol_cv_lib_db=-ldb3
30516         fi
30517 fi
30518
30519         if test $ol_cv_lib_db = no ; then
30520         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30521 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30522 if test "${ol_cv_db_db_3+set}" = set; then
30523   echo $ECHO_N "(cached) $ECHO_C" >&6
30524 else
30525
30526         ol_DB_LIB=-ldb-3
30527         ol_LIBS=$LIBS
30528         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30529
30530         cat >conftest.$ac_ext <<_ACEOF
30531 /* confdefs.h.  */
30532 _ACEOF
30533 cat confdefs.h >>conftest.$ac_ext
30534 cat >>conftest.$ac_ext <<_ACEOF
30535 /* end confdefs.h.  */
30536
30537 #ifdef HAVE_DB_185_H
30538 # include <db_185.h>
30539 #else
30540 # include <db.h>
30541 #endif
30542
30543 #ifndef DB_VERSION_MAJOR
30544 # define DB_VERSION_MAJOR 1
30545 #endif
30546
30547 #ifndef NULL
30548 #define NULL ((void*)0)
30549 #endif
30550
30551 int
30552 main ()
30553 {
30554
30555 #if DB_VERSION_MAJOR > 1
30556         {
30557                 char *version;
30558                 int major, minor, patch;
30559
30560                 version = db_version( &major, &minor, &patch );
30561
30562                 if( major != DB_VERSION_MAJOR ||
30563                         minor < DB_VERSION_MINOR )
30564                 {
30565                         printf("Berkeley DB version mismatch\n"
30566                                 "\theader: %s\n\tlibrary: %s\n",
30567                                 DB_VERSION_STRING, version);
30568                         return 1;
30569                 }
30570         }
30571 #endif
30572
30573 #if DB_VERSION_MAJOR > 2
30574         db_env_create( NULL, 0 );
30575 #elif DB_VERSION_MAJOR > 1
30576         db_appexit( NULL );
30577 #else
30578         (void) dbopen( NULL, 0, 0, 0, NULL);
30579 #endif
30580
30581   ;
30582   return 0;
30583 }
30584 _ACEOF
30585 rm -f conftest.$ac_objext conftest$ac_exeext
30586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30587   (eval $ac_link) 2>conftest.er1
30588   ac_status=$?
30589   grep -v '^ *+' conftest.er1 >conftest.err
30590   rm -f conftest.er1
30591   cat conftest.err >&5
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); } &&
30594          { ac_try='test -z "$ac_c_werror_flag"
30595                          || test ! -s conftest.err'
30596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597   (eval $ac_try) 2>&5
30598   ac_status=$?
30599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600   (exit $ac_status); }; } &&
30601          { ac_try='test -s conftest$ac_exeext'
30602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30603   (eval $ac_try) 2>&5
30604   ac_status=$?
30605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606   (exit $ac_status); }; }; then
30607   ol_cv_db_db_3=yes
30608 else
30609   echo "$as_me: failed program was:" >&5
30610 sed 's/^/| /' conftest.$ac_ext >&5
30611
30612 ol_cv_db_db_3=no
30613 fi
30614 rm -f conftest.err conftest.$ac_objext \
30615       conftest$ac_exeext conftest.$ac_ext
30616
30617         LIBS="$ol_LIBS"
30618
30619 fi
30620 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30621 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30622
30623         if test $ol_cv_db_db_3 = yes ; then
30624                 ol_cv_lib_db=-ldb-3
30625         fi
30626 fi
30627
30628
30629 elif test $ol_cv_bdb_major = 2 ; then
30630         if test $ol_cv_lib_db = no ; then
30631         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30632 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30633 if test "${ol_cv_db_db2+set}" = set; then
30634   echo $ECHO_N "(cached) $ECHO_C" >&6
30635 else
30636
30637         ol_DB_LIB=-ldb2
30638         ol_LIBS=$LIBS
30639         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30640
30641         cat >conftest.$ac_ext <<_ACEOF
30642 /* confdefs.h.  */
30643 _ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h.  */
30647
30648 #ifdef HAVE_DB_185_H
30649 # include <db_185.h>
30650 #else
30651 # include <db.h>
30652 #endif
30653
30654 #ifndef DB_VERSION_MAJOR
30655 # define DB_VERSION_MAJOR 1
30656 #endif
30657
30658 #ifndef NULL
30659 #define NULL ((void*)0)
30660 #endif
30661
30662 int
30663 main ()
30664 {
30665
30666 #if DB_VERSION_MAJOR > 1
30667         {
30668                 char *version;
30669                 int major, minor, patch;
30670
30671                 version = db_version( &major, &minor, &patch );
30672
30673                 if( major != DB_VERSION_MAJOR ||
30674                         minor < DB_VERSION_MINOR )
30675                 {
30676                         printf("Berkeley DB version mismatch\n"
30677                                 "\theader: %s\n\tlibrary: %s\n",
30678                                 DB_VERSION_STRING, version);
30679                         return 1;
30680                 }
30681         }
30682 #endif
30683
30684 #if DB_VERSION_MAJOR > 2
30685         db_env_create( NULL, 0 );
30686 #elif DB_VERSION_MAJOR > 1
30687         db_appexit( NULL );
30688 #else
30689         (void) dbopen( NULL, 0, 0, 0, NULL);
30690 #endif
30691
30692   ;
30693   return 0;
30694 }
30695 _ACEOF
30696 rm -f conftest.$ac_objext conftest$ac_exeext
30697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30698   (eval $ac_link) 2>conftest.er1
30699   ac_status=$?
30700   grep -v '^ *+' conftest.er1 >conftest.err
30701   rm -f conftest.er1
30702   cat conftest.err >&5
30703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704   (exit $ac_status); } &&
30705          { ac_try='test -z "$ac_c_werror_flag"
30706                          || test ! -s conftest.err'
30707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708   (eval $ac_try) 2>&5
30709   ac_status=$?
30710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711   (exit $ac_status); }; } &&
30712          { ac_try='test -s conftest$ac_exeext'
30713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714   (eval $ac_try) 2>&5
30715   ac_status=$?
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); }; }; then
30718   ol_cv_db_db2=yes
30719 else
30720   echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30722
30723 ol_cv_db_db2=no
30724 fi
30725 rm -f conftest.err conftest.$ac_objext \
30726       conftest$ac_exeext conftest.$ac_ext
30727
30728         LIBS="$ol_LIBS"
30729
30730 fi
30731 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30732 echo "${ECHO_T}$ol_cv_db_db2" >&6
30733
30734         if test $ol_cv_db_db2 = yes ; then
30735                 ol_cv_lib_db=-ldb2
30736         fi
30737 fi
30738
30739         if test $ol_cv_lib_db = no ; then
30740         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30741 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30742 if test "${ol_cv_db_db_2+set}" = set; then
30743   echo $ECHO_N "(cached) $ECHO_C" >&6
30744 else
30745
30746         ol_DB_LIB=-ldb-2
30747         ol_LIBS=$LIBS
30748         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30749
30750         cat >conftest.$ac_ext <<_ACEOF
30751 /* confdefs.h.  */
30752 _ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h.  */
30756
30757 #ifdef HAVE_DB_185_H
30758 # include <db_185.h>
30759 #else
30760 # include <db.h>
30761 #endif
30762
30763 #ifndef DB_VERSION_MAJOR
30764 # define DB_VERSION_MAJOR 1
30765 #endif
30766
30767 #ifndef NULL
30768 #define NULL ((void*)0)
30769 #endif
30770
30771 int
30772 main ()
30773 {
30774
30775 #if DB_VERSION_MAJOR > 1
30776         {
30777                 char *version;
30778                 int major, minor, patch;
30779
30780                 version = db_version( &major, &minor, &patch );
30781
30782                 if( major != DB_VERSION_MAJOR ||
30783                         minor < DB_VERSION_MINOR )
30784                 {
30785                         printf("Berkeley DB version mismatch\n"
30786                                 "\theader: %s\n\tlibrary: %s\n",
30787                                 DB_VERSION_STRING, version);
30788                         return 1;
30789                 }
30790         }
30791 #endif
30792
30793 #if DB_VERSION_MAJOR > 2
30794         db_env_create( NULL, 0 );
30795 #elif DB_VERSION_MAJOR > 1
30796         db_appexit( NULL );
30797 #else
30798         (void) dbopen( NULL, 0, 0, 0, NULL);
30799 #endif
30800
30801   ;
30802   return 0;
30803 }
30804 _ACEOF
30805 rm -f conftest.$ac_objext conftest$ac_exeext
30806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30807   (eval $ac_link) 2>conftest.er1
30808   ac_status=$?
30809   grep -v '^ *+' conftest.er1 >conftest.err
30810   rm -f conftest.er1
30811   cat conftest.err >&5
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); } &&
30814          { ac_try='test -z "$ac_c_werror_flag"
30815                          || test ! -s conftest.err'
30816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817   (eval $ac_try) 2>&5
30818   ac_status=$?
30819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820   (exit $ac_status); }; } &&
30821          { ac_try='test -s conftest$ac_exeext'
30822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823   (eval $ac_try) 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; }; then
30827   ol_cv_db_db_2=yes
30828 else
30829   echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.$ac_ext >&5
30831
30832 ol_cv_db_db_2=no
30833 fi
30834 rm -f conftest.err conftest.$ac_objext \
30835       conftest$ac_exeext conftest.$ac_ext
30836
30837         LIBS="$ol_LIBS"
30838
30839 fi
30840 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30841 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30842
30843         if test $ol_cv_db_db_2 = yes ; then
30844                 ol_cv_lib_db=-ldb-2
30845         fi
30846 fi
30847
30848
30849 elif test $ol_cv_bdb_major = 1 ; then
30850         if test $ol_cv_lib_db = no ; then
30851         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30852 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30853 if test "${ol_cv_db_db1+set}" = set; then
30854   echo $ECHO_N "(cached) $ECHO_C" >&6
30855 else
30856
30857         ol_DB_LIB=-ldb1
30858         ol_LIBS=$LIBS
30859         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30860
30861         cat >conftest.$ac_ext <<_ACEOF
30862 /* confdefs.h.  */
30863 _ACEOF
30864 cat confdefs.h >>conftest.$ac_ext
30865 cat >>conftest.$ac_ext <<_ACEOF
30866 /* end confdefs.h.  */
30867
30868 #ifdef HAVE_DB_185_H
30869 # include <db_185.h>
30870 #else
30871 # include <db.h>
30872 #endif
30873
30874 #ifndef DB_VERSION_MAJOR
30875 # define DB_VERSION_MAJOR 1
30876 #endif
30877
30878 #ifndef NULL
30879 #define NULL ((void*)0)
30880 #endif
30881
30882 int
30883 main ()
30884 {
30885
30886 #if DB_VERSION_MAJOR > 1
30887         {
30888                 char *version;
30889                 int major, minor, patch;
30890
30891                 version = db_version( &major, &minor, &patch );
30892
30893                 if( major != DB_VERSION_MAJOR ||
30894                         minor < DB_VERSION_MINOR )
30895                 {
30896                         printf("Berkeley DB version mismatch\n"
30897                                 "\theader: %s\n\tlibrary: %s\n",
30898                                 DB_VERSION_STRING, version);
30899                         return 1;
30900                 }
30901         }
30902 #endif
30903
30904 #if DB_VERSION_MAJOR > 2
30905         db_env_create( NULL, 0 );
30906 #elif DB_VERSION_MAJOR > 1
30907         db_appexit( NULL );
30908 #else
30909         (void) dbopen( NULL, 0, 0, 0, NULL);
30910 #endif
30911
30912   ;
30913   return 0;
30914 }
30915 _ACEOF
30916 rm -f conftest.$ac_objext conftest$ac_exeext
30917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30918   (eval $ac_link) 2>conftest.er1
30919   ac_status=$?
30920   grep -v '^ *+' conftest.er1 >conftest.err
30921   rm -f conftest.er1
30922   cat conftest.err >&5
30923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924   (exit $ac_status); } &&
30925          { ac_try='test -z "$ac_c_werror_flag"
30926                          || test ! -s conftest.err'
30927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928   (eval $ac_try) 2>&5
30929   ac_status=$?
30930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931   (exit $ac_status); }; } &&
30932          { ac_try='test -s conftest$ac_exeext'
30933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934   (eval $ac_try) 2>&5
30935   ac_status=$?
30936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937   (exit $ac_status); }; }; then
30938   ol_cv_db_db1=yes
30939 else
30940   echo "$as_me: failed program was:" >&5
30941 sed 's/^/| /' conftest.$ac_ext >&5
30942
30943 ol_cv_db_db1=no
30944 fi
30945 rm -f conftest.err conftest.$ac_objext \
30946       conftest$ac_exeext conftest.$ac_ext
30947
30948         LIBS="$ol_LIBS"
30949
30950 fi
30951 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30952 echo "${ECHO_T}$ol_cv_db_db1" >&6
30953
30954         if test $ol_cv_db_db1 = yes ; then
30955                 ol_cv_lib_db=-ldb1
30956         fi
30957 fi
30958
30959         if test $ol_cv_lib_db = no ; then
30960         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30961 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30962 if test "${ol_cv_db_db_1+set}" = set; then
30963   echo $ECHO_N "(cached) $ECHO_C" >&6
30964 else
30965
30966         ol_DB_LIB=-ldb-1
30967         ol_LIBS=$LIBS
30968         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30969
30970         cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h.  */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h.  */
30976
30977 #ifdef HAVE_DB_185_H
30978 # include <db_185.h>
30979 #else
30980 # include <db.h>
30981 #endif
30982
30983 #ifndef DB_VERSION_MAJOR
30984 # define DB_VERSION_MAJOR 1
30985 #endif
30986
30987 #ifndef NULL
30988 #define NULL ((void*)0)
30989 #endif
30990
30991 int
30992 main ()
30993 {
30994
30995 #if DB_VERSION_MAJOR > 1
30996         {
30997                 char *version;
30998                 int major, minor, patch;
30999
31000                 version = db_version( &major, &minor, &patch );
31001
31002                 if( major != DB_VERSION_MAJOR ||
31003                         minor < DB_VERSION_MINOR )
31004                 {
31005                         printf("Berkeley DB version mismatch\n"
31006                                 "\theader: %s\n\tlibrary: %s\n",
31007                                 DB_VERSION_STRING, version);
31008                         return 1;
31009                 }
31010         }
31011 #endif
31012
31013 #if DB_VERSION_MAJOR > 2
31014         db_env_create( NULL, 0 );
31015 #elif DB_VERSION_MAJOR > 1
31016         db_appexit( NULL );
31017 #else
31018         (void) dbopen( NULL, 0, 0, 0, NULL);
31019 #endif
31020
31021   ;
31022   return 0;
31023 }
31024 _ACEOF
31025 rm -f conftest.$ac_objext conftest$ac_exeext
31026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31027   (eval $ac_link) 2>conftest.er1
31028   ac_status=$?
31029   grep -v '^ *+' conftest.er1 >conftest.err
31030   rm -f conftest.er1
31031   cat conftest.err >&5
31032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033   (exit $ac_status); } &&
31034          { ac_try='test -z "$ac_c_werror_flag"
31035                          || test ! -s conftest.err'
31036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31037   (eval $ac_try) 2>&5
31038   ac_status=$?
31039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040   (exit $ac_status); }; } &&
31041          { ac_try='test -s conftest$ac_exeext'
31042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043   (eval $ac_try) 2>&5
31044   ac_status=$?
31045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046   (exit $ac_status); }; }; then
31047   ol_cv_db_db_1=yes
31048 else
31049   echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31051
31052 ol_cv_db_db_1=no
31053 fi
31054 rm -f conftest.err conftest.$ac_objext \
31055       conftest$ac_exeext conftest.$ac_ext
31056
31057         LIBS="$ol_LIBS"
31058
31059 fi
31060 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31061 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31062
31063         if test $ol_cv_db_db_1 = yes ; then
31064                 ol_cv_lib_db=-ldb-1
31065         fi
31066 fi
31067
31068 fi
31069 if test $ol_cv_lib_db = no ; then
31070         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31071 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31072 if test "${ol_cv_db_none+set}" = set; then
31073   echo $ECHO_N "(cached) $ECHO_C" >&6
31074 else
31075
31076         ol_DB_LIB=
31077         ol_LIBS=$LIBS
31078         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31079
31080         cat >conftest.$ac_ext <<_ACEOF
31081 /* confdefs.h.  */
31082 _ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h.  */
31086
31087 #ifdef HAVE_DB_185_H
31088 # include <db_185.h>
31089 #else
31090 # include <db.h>
31091 #endif
31092
31093 #ifndef DB_VERSION_MAJOR
31094 # define DB_VERSION_MAJOR 1
31095 #endif
31096
31097 #ifndef NULL
31098 #define NULL ((void*)0)
31099 #endif
31100
31101 int
31102 main ()
31103 {
31104
31105 #if DB_VERSION_MAJOR > 1
31106         {
31107                 char *version;
31108                 int major, minor, patch;
31109
31110                 version = db_version( &major, &minor, &patch );
31111
31112                 if( major != DB_VERSION_MAJOR ||
31113                         minor < DB_VERSION_MINOR )
31114                 {
31115                         printf("Berkeley DB version mismatch\n"
31116                                 "\theader: %s\n\tlibrary: %s\n",
31117                                 DB_VERSION_STRING, version);
31118                         return 1;
31119                 }
31120         }
31121 #endif
31122
31123 #if DB_VERSION_MAJOR > 2
31124         db_env_create( NULL, 0 );
31125 #elif DB_VERSION_MAJOR > 1
31126         db_appexit( NULL );
31127 #else
31128         (void) dbopen( NULL, 0, 0, 0, NULL);
31129 #endif
31130
31131   ;
31132   return 0;
31133 }
31134 _ACEOF
31135 rm -f conftest.$ac_objext conftest$ac_exeext
31136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31137   (eval $ac_link) 2>conftest.er1
31138   ac_status=$?
31139   grep -v '^ *+' conftest.er1 >conftest.err
31140   rm -f conftest.er1
31141   cat conftest.err >&5
31142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143   (exit $ac_status); } &&
31144          { ac_try='test -z "$ac_c_werror_flag"
31145                          || test ! -s conftest.err'
31146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147   (eval $ac_try) 2>&5
31148   ac_status=$?
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); }; } &&
31151          { ac_try='test -s conftest$ac_exeext'
31152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31153   (eval $ac_try) 2>&5
31154   ac_status=$?
31155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156   (exit $ac_status); }; }; then
31157   ol_cv_db_none=yes
31158 else
31159   echo "$as_me: failed program was:" >&5
31160 sed 's/^/| /' conftest.$ac_ext >&5
31161
31162 ol_cv_db_none=no
31163 fi
31164 rm -f conftest.err conftest.$ac_objext \
31165       conftest$ac_exeext conftest.$ac_ext
31166
31167         LIBS="$ol_LIBS"
31168
31169 fi
31170 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31171 echo "${ECHO_T}$ol_cv_db_none" >&6
31172
31173         if test $ol_cv_db_none = yes ; then
31174                 ol_cv_lib_db=yes
31175         fi
31176 fi
31177
31178
31179                 if test "$ol_cv_lib_db" != no ; then
31180                         ol_cv_berkeley_db=yes
31181                 fi
31182         fi
31183 fi
31184
31185         else
31186                 ol_cv_berkeley_db=no
31187
31188 for ac_header in db.h
31189 do
31190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31192   echo "$as_me:$LINENO: checking for $ac_header" >&5
31193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31195   echo $ECHO_N "(cached) $ECHO_C" >&6
31196 fi
31197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31199 else
31200   # Is the header compilable?
31201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31203 cat >conftest.$ac_ext <<_ACEOF
31204 /* confdefs.h.  */
31205 _ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h.  */
31209 $ac_includes_default
31210 #include <$ac_header>
31211 _ACEOF
31212 rm -f conftest.$ac_objext
31213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31214   (eval $ac_compile) 2>conftest.er1
31215   ac_status=$?
31216   grep -v '^ *+' conftest.er1 >conftest.err
31217   rm -f conftest.er1
31218   cat conftest.err >&5
31219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220   (exit $ac_status); } &&
31221          { ac_try='test -z "$ac_c_werror_flag"
31222                          || test ! -s conftest.err'
31223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224   (eval $ac_try) 2>&5
31225   ac_status=$?
31226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227   (exit $ac_status); }; } &&
31228          { ac_try='test -s conftest.$ac_objext'
31229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230   (eval $ac_try) 2>&5
31231   ac_status=$?
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); }; }; then
31234   ac_header_compiler=yes
31235 else
31236   echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31238
31239 ac_header_compiler=no
31240 fi
31241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31243 echo "${ECHO_T}$ac_header_compiler" >&6
31244
31245 # Is the header present?
31246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31248 cat >conftest.$ac_ext <<_ACEOF
31249 /* confdefs.h.  */
31250 _ACEOF
31251 cat confdefs.h >>conftest.$ac_ext
31252 cat >>conftest.$ac_ext <<_ACEOF
31253 /* end confdefs.h.  */
31254 #include <$ac_header>
31255 _ACEOF
31256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31258   ac_status=$?
31259   grep -v '^ *+' conftest.er1 >conftest.err
31260   rm -f conftest.er1
31261   cat conftest.err >&5
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } >/dev/null; then
31264   if test -s conftest.err; then
31265     ac_cpp_err=$ac_c_preproc_warn_flag
31266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31267   else
31268     ac_cpp_err=
31269   fi
31270 else
31271   ac_cpp_err=yes
31272 fi
31273 if test -z "$ac_cpp_err"; then
31274   ac_header_preproc=yes
31275 else
31276   echo "$as_me: failed program was:" >&5
31277 sed 's/^/| /' conftest.$ac_ext >&5
31278
31279   ac_header_preproc=no
31280 fi
31281 rm -f conftest.err conftest.$ac_ext
31282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31283 echo "${ECHO_T}$ac_header_preproc" >&6
31284
31285 # So?  What about this header?
31286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31287   yes:no: )
31288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31292     ac_header_preproc=yes
31293     ;;
31294   no:yes:* )
31295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31307     (
31308       cat <<\_ASBOX
31309 ## --------------------------------------------- ##
31310 ## Report this to <http://www.openldap.org/its/> ##
31311 ## --------------------------------------------- ##
31312 _ASBOX
31313     ) |
31314       sed "s/^/$as_me: WARNING:     /" >&2
31315     ;;
31316 esac
31317 echo "$as_me:$LINENO: checking for $ac_header" >&5
31318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31320   echo $ECHO_N "(cached) $ECHO_C" >&6
31321 else
31322   eval "$as_ac_Header=\$ac_header_preproc"
31323 fi
31324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31326
31327 fi
31328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31329   cat >>confdefs.h <<_ACEOF
31330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31331 _ACEOF
31332
31333 fi
31334
31335 done
31336
31337 if test $ac_cv_header_db_h = yes; then
31338         ol_cv_lib_db=no
31339
31340 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31341 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31342 if test "${ol_cv_bdb_major+set}" = set; then
31343   echo $ECHO_N "(cached) $ECHO_C" >&6
31344 else
31345
31346         ol_cv_bdb_major=0
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 == 4
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=4
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 == 3
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=3
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 == 2
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=2
31419 else
31420   :
31421 fi
31422 rm -f conftest*
31423
31424         fi
31425         if test $ol_cv_bdb_major = 0 ; then
31426                 cat >conftest.$ac_ext <<_ACEOF
31427 /* confdefs.h.  */
31428 _ACEOF
31429 cat confdefs.h >>conftest.$ac_ext
31430 cat >>conftest.$ac_ext <<_ACEOF
31431 /* end confdefs.h.  */
31432
31433 #include <db.h>
31434 #ifndef DB_VERSION_MAJOR
31435 #       define DB_VERSION_MAJOR 1
31436 #endif
31437 #if DB_VERSION_MAJOR == 1
31438 __db_version
31439 #endif
31440
31441 _ACEOF
31442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31443   $EGREP "__db_version" >/dev/null 2>&1; then
31444   ol_cv_bdb_major=1
31445 else
31446   :
31447 fi
31448 rm -f conftest*
31449
31450         fi
31451
31452         if test $ol_cv_bdb_major = 0 ; then
31453                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31454 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31455    { (exit 1); exit 1; }; }
31456         fi
31457
31458 fi
31459 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31460 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31461
31462 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31463 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31464 if test "${ol_cv_bdb_minor+set}" = set; then
31465   echo $ECHO_N "(cached) $ECHO_C" >&6
31466 else
31467
31468         ol_cv_bdb_minor=0
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 == 9
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=9
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 == 8
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=8
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 == 7
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=7
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 == 6
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=6
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 == 5
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=5
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 == 4
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=4
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 == 3
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=3
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 == 2
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=2
31671 else
31672   :
31673 fi
31674 rm -f conftest*
31675
31676         fi
31677         if test $ol_cv_bdb_minor = 0 ; then
31678                 cat >conftest.$ac_ext <<_ACEOF
31679 /* confdefs.h.  */
31680 _ACEOF
31681 cat confdefs.h >>conftest.$ac_ext
31682 cat >>conftest.$ac_ext <<_ACEOF
31683 /* end confdefs.h.  */
31684
31685 #include <db.h>
31686 #ifndef DB_VERSION_MINOR
31687 #       define DB_VERSION_MINOR 0
31688 #endif
31689 #if DB_VERSION_MINOR == 1
31690 __db_version
31691 #endif
31692
31693 _ACEOF
31694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31695   $EGREP "__db_version" >/dev/null 2>&1; then
31696   ol_cv_bdb_minor=1
31697 else
31698   :
31699 fi
31700 rm -f conftest*
31701
31702         fi
31703
31704 fi
31705 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31706 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31707
31708 if test $ol_cv_bdb_major = 4 ; then
31709         if test $ol_cv_bdb_minor = 4 ; then
31710                 if test $ol_cv_lib_db = no ; then
31711         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31712 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31713 if test "${ol_cv_db_db44+set}" = set; then
31714   echo $ECHO_N "(cached) $ECHO_C" >&6
31715 else
31716
31717         ol_DB_LIB=-ldb44
31718         ol_LIBS=$LIBS
31719         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31720
31721         cat >conftest.$ac_ext <<_ACEOF
31722 /* confdefs.h.  */
31723 _ACEOF
31724 cat confdefs.h >>conftest.$ac_ext
31725 cat >>conftest.$ac_ext <<_ACEOF
31726 /* end confdefs.h.  */
31727
31728 #ifdef HAVE_DB_185_H
31729 # include <db_185.h>
31730 #else
31731 # include <db.h>
31732 #endif
31733
31734 #ifndef DB_VERSION_MAJOR
31735 # define DB_VERSION_MAJOR 1
31736 #endif
31737
31738 #ifndef NULL
31739 #define NULL ((void*)0)
31740 #endif
31741
31742 int
31743 main ()
31744 {
31745
31746 #if DB_VERSION_MAJOR > 1
31747         {
31748                 char *version;
31749                 int major, minor, patch;
31750
31751                 version = db_version( &major, &minor, &patch );
31752
31753                 if( major != DB_VERSION_MAJOR ||
31754                         minor < DB_VERSION_MINOR )
31755                 {
31756                         printf("Berkeley DB version mismatch\n"
31757                                 "\theader: %s\n\tlibrary: %s\n",
31758                                 DB_VERSION_STRING, version);
31759                         return 1;
31760                 }
31761         }
31762 #endif
31763
31764 #if DB_VERSION_MAJOR > 2
31765         db_env_create( NULL, 0 );
31766 #elif DB_VERSION_MAJOR > 1
31767         db_appexit( NULL );
31768 #else
31769         (void) dbopen( NULL, 0, 0, 0, NULL);
31770 #endif
31771
31772   ;
31773   return 0;
31774 }
31775 _ACEOF
31776 rm -f conftest.$ac_objext conftest$ac_exeext
31777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31778   (eval $ac_link) 2>conftest.er1
31779   ac_status=$?
31780   grep -v '^ *+' conftest.er1 >conftest.err
31781   rm -f conftest.er1
31782   cat conftest.err >&5
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); } &&
31785          { ac_try='test -z "$ac_c_werror_flag"
31786                          || test ! -s conftest.err'
31787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788   (eval $ac_try) 2>&5
31789   ac_status=$?
31790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791   (exit $ac_status); }; } &&
31792          { ac_try='test -s conftest$ac_exeext'
31793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794   (eval $ac_try) 2>&5
31795   ac_status=$?
31796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797   (exit $ac_status); }; }; then
31798   ol_cv_db_db44=yes
31799 else
31800   echo "$as_me: failed program was:" >&5
31801 sed 's/^/| /' conftest.$ac_ext >&5
31802
31803 ol_cv_db_db44=no
31804 fi
31805 rm -f conftest.err conftest.$ac_objext \
31806       conftest$ac_exeext conftest.$ac_ext
31807
31808         LIBS="$ol_LIBS"
31809
31810 fi
31811 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31812 echo "${ECHO_T}$ol_cv_db_db44" >&6
31813
31814         if test $ol_cv_db_db44 = yes ; then
31815                 ol_cv_lib_db=-ldb44
31816         fi
31817 fi
31818
31819                 if test $ol_cv_lib_db = no ; then
31820         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31821 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31822 if test "${ol_cv_db_db_44+set}" = set; then
31823   echo $ECHO_N "(cached) $ECHO_C" >&6
31824 else
31825
31826         ol_DB_LIB=-ldb-44
31827         ol_LIBS=$LIBS
31828         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31829
31830         cat >conftest.$ac_ext <<_ACEOF
31831 /* confdefs.h.  */
31832 _ACEOF
31833 cat confdefs.h >>conftest.$ac_ext
31834 cat >>conftest.$ac_ext <<_ACEOF
31835 /* end confdefs.h.  */
31836
31837 #ifdef HAVE_DB_185_H
31838 # include <db_185.h>
31839 #else
31840 # include <db.h>
31841 #endif
31842
31843 #ifndef DB_VERSION_MAJOR
31844 # define DB_VERSION_MAJOR 1
31845 #endif
31846
31847 #ifndef NULL
31848 #define NULL ((void*)0)
31849 #endif
31850
31851 int
31852 main ()
31853 {
31854
31855 #if DB_VERSION_MAJOR > 1
31856         {
31857                 char *version;
31858                 int major, minor, patch;
31859
31860                 version = db_version( &major, &minor, &patch );
31861
31862                 if( major != DB_VERSION_MAJOR ||
31863                         minor < DB_VERSION_MINOR )
31864                 {
31865                         printf("Berkeley DB version mismatch\n"
31866                                 "\theader: %s\n\tlibrary: %s\n",
31867                                 DB_VERSION_STRING, version);
31868                         return 1;
31869                 }
31870         }
31871 #endif
31872
31873 #if DB_VERSION_MAJOR > 2
31874         db_env_create( NULL, 0 );
31875 #elif DB_VERSION_MAJOR > 1
31876         db_appexit( NULL );
31877 #else
31878         (void) dbopen( NULL, 0, 0, 0, NULL);
31879 #endif
31880
31881   ;
31882   return 0;
31883 }
31884 _ACEOF
31885 rm -f conftest.$ac_objext conftest$ac_exeext
31886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31887   (eval $ac_link) 2>conftest.er1
31888   ac_status=$?
31889   grep -v '^ *+' conftest.er1 >conftest.err
31890   rm -f conftest.er1
31891   cat conftest.err >&5
31892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893   (exit $ac_status); } &&
31894          { ac_try='test -z "$ac_c_werror_flag"
31895                          || test ! -s conftest.err'
31896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31897   (eval $ac_try) 2>&5
31898   ac_status=$?
31899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900   (exit $ac_status); }; } &&
31901          { ac_try='test -s conftest$ac_exeext'
31902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903   (eval $ac_try) 2>&5
31904   ac_status=$?
31905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906   (exit $ac_status); }; }; then
31907   ol_cv_db_db_44=yes
31908 else
31909   echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31911
31912 ol_cv_db_db_44=no
31913 fi
31914 rm -f conftest.err conftest.$ac_objext \
31915       conftest$ac_exeext conftest.$ac_ext
31916
31917         LIBS="$ol_LIBS"
31918
31919 fi
31920 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31921 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31922
31923         if test $ol_cv_db_db_44 = yes ; then
31924                 ol_cv_lib_db=-ldb-44
31925         fi
31926 fi
31927
31928                 if test $ol_cv_lib_db = no ; then
31929         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31930 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31931 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31932   echo $ECHO_N "(cached) $ECHO_C" >&6
31933 else
31934
31935         ol_DB_LIB=-ldb-4.4
31936         ol_LIBS=$LIBS
31937         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31938
31939         cat >conftest.$ac_ext <<_ACEOF
31940 /* confdefs.h.  */
31941 _ACEOF
31942 cat confdefs.h >>conftest.$ac_ext
31943 cat >>conftest.$ac_ext <<_ACEOF
31944 /* end confdefs.h.  */
31945
31946 #ifdef HAVE_DB_185_H
31947 # include <db_185.h>
31948 #else
31949 # include <db.h>
31950 #endif
31951
31952 #ifndef DB_VERSION_MAJOR
31953 # define DB_VERSION_MAJOR 1
31954 #endif
31955
31956 #ifndef NULL
31957 #define NULL ((void*)0)
31958 #endif
31959
31960 int
31961 main ()
31962 {
31963
31964 #if DB_VERSION_MAJOR > 1
31965         {
31966                 char *version;
31967                 int major, minor, patch;
31968
31969                 version = db_version( &major, &minor, &patch );
31970
31971                 if( major != DB_VERSION_MAJOR ||
31972                         minor < DB_VERSION_MINOR )
31973                 {
31974                         printf("Berkeley DB version mismatch\n"
31975                                 "\theader: %s\n\tlibrary: %s\n",
31976                                 DB_VERSION_STRING, version);
31977                         return 1;
31978                 }
31979         }
31980 #endif
31981
31982 #if DB_VERSION_MAJOR > 2
31983         db_env_create( NULL, 0 );
31984 #elif DB_VERSION_MAJOR > 1
31985         db_appexit( NULL );
31986 #else
31987         (void) dbopen( NULL, 0, 0, 0, NULL);
31988 #endif
31989
31990   ;
31991   return 0;
31992 }
31993 _ACEOF
31994 rm -f conftest.$ac_objext conftest$ac_exeext
31995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31996   (eval $ac_link) 2>conftest.er1
31997   ac_status=$?
31998   grep -v '^ *+' conftest.er1 >conftest.err
31999   rm -f conftest.er1
32000   cat conftest.err >&5
32001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002   (exit $ac_status); } &&
32003          { ac_try='test -z "$ac_c_werror_flag"
32004                          || test ! -s conftest.err'
32005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006   (eval $ac_try) 2>&5
32007   ac_status=$?
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); }; } &&
32010          { ac_try='test -s conftest$ac_exeext'
32011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32012   (eval $ac_try) 2>&5
32013   ac_status=$?
32014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015   (exit $ac_status); }; }; then
32016   ol_cv_db_db_4_dot_4=yes
32017 else
32018   echo "$as_me: failed program was:" >&5
32019 sed 's/^/| /' conftest.$ac_ext >&5
32020
32021 ol_cv_db_db_4_dot_4=no
32022 fi
32023 rm -f conftest.err conftest.$ac_objext \
32024       conftest$ac_exeext conftest.$ac_ext
32025
32026         LIBS="$ol_LIBS"
32027
32028 fi
32029 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32030 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32031
32032         if test $ol_cv_db_db_4_dot_4 = yes ; then
32033                 ol_cv_lib_db=-ldb-4.4
32034         fi
32035 fi
32036
32037                 if test $ol_cv_lib_db = no ; then
32038         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32039 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32040 if test "${ol_cv_db_db_4_4+set}" = set; then
32041   echo $ECHO_N "(cached) $ECHO_C" >&6
32042 else
32043
32044         ol_DB_LIB=-ldb-4-4
32045         ol_LIBS=$LIBS
32046         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32047
32048         cat >conftest.$ac_ext <<_ACEOF
32049 /* confdefs.h.  */
32050 _ACEOF
32051 cat confdefs.h >>conftest.$ac_ext
32052 cat >>conftest.$ac_ext <<_ACEOF
32053 /* end confdefs.h.  */
32054
32055 #ifdef HAVE_DB_185_H
32056 # include <db_185.h>
32057 #else
32058 # include <db.h>
32059 #endif
32060
32061 #ifndef DB_VERSION_MAJOR
32062 # define DB_VERSION_MAJOR 1
32063 #endif
32064
32065 #ifndef NULL
32066 #define NULL ((void*)0)
32067 #endif
32068
32069 int
32070 main ()
32071 {
32072
32073 #if DB_VERSION_MAJOR > 1
32074         {
32075                 char *version;
32076                 int major, minor, patch;
32077
32078                 version = db_version( &major, &minor, &patch );
32079
32080                 if( major != DB_VERSION_MAJOR ||
32081                         minor < DB_VERSION_MINOR )
32082                 {
32083                         printf("Berkeley DB version mismatch\n"
32084                                 "\theader: %s\n\tlibrary: %s\n",
32085                                 DB_VERSION_STRING, version);
32086                         return 1;
32087                 }
32088         }
32089 #endif
32090
32091 #if DB_VERSION_MAJOR > 2
32092         db_env_create( NULL, 0 );
32093 #elif DB_VERSION_MAJOR > 1
32094         db_appexit( NULL );
32095 #else
32096         (void) dbopen( NULL, 0, 0, 0, NULL);
32097 #endif
32098
32099   ;
32100   return 0;
32101 }
32102 _ACEOF
32103 rm -f conftest.$ac_objext conftest$ac_exeext
32104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32105   (eval $ac_link) 2>conftest.er1
32106   ac_status=$?
32107   grep -v '^ *+' conftest.er1 >conftest.err
32108   rm -f conftest.er1
32109   cat conftest.err >&5
32110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111   (exit $ac_status); } &&
32112          { ac_try='test -z "$ac_c_werror_flag"
32113                          || test ! -s conftest.err'
32114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32115   (eval $ac_try) 2>&5
32116   ac_status=$?
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); }; } &&
32119          { ac_try='test -s conftest$ac_exeext'
32120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32121   (eval $ac_try) 2>&5
32122   ac_status=$?
32123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124   (exit $ac_status); }; }; then
32125   ol_cv_db_db_4_4=yes
32126 else
32127   echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32129
32130 ol_cv_db_db_4_4=no
32131 fi
32132 rm -f conftest.err conftest.$ac_objext \
32133       conftest$ac_exeext conftest.$ac_ext
32134
32135         LIBS="$ol_LIBS"
32136
32137 fi
32138 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32139 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32140
32141         if test $ol_cv_db_db_4_4 = yes ; then
32142                 ol_cv_lib_db=-ldb-4-4
32143         fi
32144 fi
32145
32146         elif test $ol_cv_bdb_minor = 3 ; then
32147                 if test $ol_cv_lib_db = no ; then
32148         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32149 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32150 if test "${ol_cv_db_db43+set}" = set; then
32151   echo $ECHO_N "(cached) $ECHO_C" >&6
32152 else
32153
32154         ol_DB_LIB=-ldb43
32155         ol_LIBS=$LIBS
32156         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32157
32158         cat >conftest.$ac_ext <<_ACEOF
32159 /* confdefs.h.  */
32160 _ACEOF
32161 cat confdefs.h >>conftest.$ac_ext
32162 cat >>conftest.$ac_ext <<_ACEOF
32163 /* end confdefs.h.  */
32164
32165 #ifdef HAVE_DB_185_H
32166 # include <db_185.h>
32167 #else
32168 # include <db.h>
32169 #endif
32170
32171 #ifndef DB_VERSION_MAJOR
32172 # define DB_VERSION_MAJOR 1
32173 #endif
32174
32175 #ifndef NULL
32176 #define NULL ((void*)0)
32177 #endif
32178
32179 int
32180 main ()
32181 {
32182
32183 #if DB_VERSION_MAJOR > 1
32184         {
32185                 char *version;
32186                 int major, minor, patch;
32187
32188                 version = db_version( &major, &minor, &patch );
32189
32190                 if( major != DB_VERSION_MAJOR ||
32191                         minor < DB_VERSION_MINOR )
32192                 {
32193                         printf("Berkeley DB version mismatch\n"
32194                                 "\theader: %s\n\tlibrary: %s\n",
32195                                 DB_VERSION_STRING, version);
32196                         return 1;
32197                 }
32198         }
32199 #endif
32200
32201 #if DB_VERSION_MAJOR > 2
32202         db_env_create( NULL, 0 );
32203 #elif DB_VERSION_MAJOR > 1
32204         db_appexit( NULL );
32205 #else
32206         (void) dbopen( NULL, 0, 0, 0, NULL);
32207 #endif
32208
32209   ;
32210   return 0;
32211 }
32212 _ACEOF
32213 rm -f conftest.$ac_objext conftest$ac_exeext
32214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32215   (eval $ac_link) 2>conftest.er1
32216   ac_status=$?
32217   grep -v '^ *+' conftest.er1 >conftest.err
32218   rm -f conftest.er1
32219   cat conftest.err >&5
32220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221   (exit $ac_status); } &&
32222          { ac_try='test -z "$ac_c_werror_flag"
32223                          || test ! -s conftest.err'
32224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32225   (eval $ac_try) 2>&5
32226   ac_status=$?
32227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228   (exit $ac_status); }; } &&
32229          { ac_try='test -s conftest$ac_exeext'
32230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231   (eval $ac_try) 2>&5
32232   ac_status=$?
32233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234   (exit $ac_status); }; }; then
32235   ol_cv_db_db43=yes
32236 else
32237   echo "$as_me: failed program was:" >&5
32238 sed 's/^/| /' conftest.$ac_ext >&5
32239
32240 ol_cv_db_db43=no
32241 fi
32242 rm -f conftest.err conftest.$ac_objext \
32243       conftest$ac_exeext conftest.$ac_ext
32244
32245         LIBS="$ol_LIBS"
32246
32247 fi
32248 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32249 echo "${ECHO_T}$ol_cv_db_db43" >&6
32250
32251         if test $ol_cv_db_db43 = yes ; then
32252                 ol_cv_lib_db=-ldb43
32253         fi
32254 fi
32255
32256                 if test $ol_cv_lib_db = no ; then
32257         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32258 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32259 if test "${ol_cv_db_db_43+set}" = set; then
32260   echo $ECHO_N "(cached) $ECHO_C" >&6
32261 else
32262
32263         ol_DB_LIB=-ldb-43
32264         ol_LIBS=$LIBS
32265         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32266
32267         cat >conftest.$ac_ext <<_ACEOF
32268 /* confdefs.h.  */
32269 _ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h.  */
32273
32274 #ifdef HAVE_DB_185_H
32275 # include <db_185.h>
32276 #else
32277 # include <db.h>
32278 #endif
32279
32280 #ifndef DB_VERSION_MAJOR
32281 # define DB_VERSION_MAJOR 1
32282 #endif
32283
32284 #ifndef NULL
32285 #define NULL ((void*)0)
32286 #endif
32287
32288 int
32289 main ()
32290 {
32291
32292 #if DB_VERSION_MAJOR > 1
32293         {
32294                 char *version;
32295                 int major, minor, patch;
32296
32297                 version = db_version( &major, &minor, &patch );
32298
32299                 if( major != DB_VERSION_MAJOR ||
32300                         minor < DB_VERSION_MINOR )
32301                 {
32302                         printf("Berkeley DB version mismatch\n"
32303                                 "\theader: %s\n\tlibrary: %s\n",
32304                                 DB_VERSION_STRING, version);
32305                         return 1;
32306                 }
32307         }
32308 #endif
32309
32310 #if DB_VERSION_MAJOR > 2
32311         db_env_create( NULL, 0 );
32312 #elif DB_VERSION_MAJOR > 1
32313         db_appexit( NULL );
32314 #else
32315         (void) dbopen( NULL, 0, 0, 0, NULL);
32316 #endif
32317
32318   ;
32319   return 0;
32320 }
32321 _ACEOF
32322 rm -f conftest.$ac_objext conftest$ac_exeext
32323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32324   (eval $ac_link) 2>conftest.er1
32325   ac_status=$?
32326   grep -v '^ *+' conftest.er1 >conftest.err
32327   rm -f conftest.er1
32328   cat conftest.err >&5
32329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330   (exit $ac_status); } &&
32331          { ac_try='test -z "$ac_c_werror_flag"
32332                          || test ! -s conftest.err'
32333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32334   (eval $ac_try) 2>&5
32335   ac_status=$?
32336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337   (exit $ac_status); }; } &&
32338          { ac_try='test -s conftest$ac_exeext'
32339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32340   (eval $ac_try) 2>&5
32341   ac_status=$?
32342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343   (exit $ac_status); }; }; then
32344   ol_cv_db_db_43=yes
32345 else
32346   echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32348
32349 ol_cv_db_db_43=no
32350 fi
32351 rm -f conftest.err conftest.$ac_objext \
32352       conftest$ac_exeext conftest.$ac_ext
32353
32354         LIBS="$ol_LIBS"
32355
32356 fi
32357 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32358 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32359
32360         if test $ol_cv_db_db_43 = yes ; then
32361                 ol_cv_lib_db=-ldb-43
32362         fi
32363 fi
32364
32365                 if test $ol_cv_lib_db = no ; then
32366         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32367 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32368 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32369   echo $ECHO_N "(cached) $ECHO_C" >&6
32370 else
32371
32372         ol_DB_LIB=-ldb-4.3
32373         ol_LIBS=$LIBS
32374         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32375
32376         cat >conftest.$ac_ext <<_ACEOF
32377 /* confdefs.h.  */
32378 _ACEOF
32379 cat confdefs.h >>conftest.$ac_ext
32380 cat >>conftest.$ac_ext <<_ACEOF
32381 /* end confdefs.h.  */
32382
32383 #ifdef HAVE_DB_185_H
32384 # include <db_185.h>
32385 #else
32386 # include <db.h>
32387 #endif
32388
32389 #ifndef DB_VERSION_MAJOR
32390 # define DB_VERSION_MAJOR 1
32391 #endif
32392
32393 #ifndef NULL
32394 #define NULL ((void*)0)
32395 #endif
32396
32397 int
32398 main ()
32399 {
32400
32401 #if DB_VERSION_MAJOR > 1
32402         {
32403                 char *version;
32404                 int major, minor, patch;
32405
32406                 version = db_version( &major, &minor, &patch );
32407
32408                 if( major != DB_VERSION_MAJOR ||
32409                         minor < DB_VERSION_MINOR )
32410                 {
32411                         printf("Berkeley DB version mismatch\n"
32412                                 "\theader: %s\n\tlibrary: %s\n",
32413                                 DB_VERSION_STRING, version);
32414                         return 1;
32415                 }
32416         }
32417 #endif
32418
32419 #if DB_VERSION_MAJOR > 2
32420         db_env_create( NULL, 0 );
32421 #elif DB_VERSION_MAJOR > 1
32422         db_appexit( NULL );
32423 #else
32424         (void) dbopen( NULL, 0, 0, 0, NULL);
32425 #endif
32426
32427   ;
32428   return 0;
32429 }
32430 _ACEOF
32431 rm -f conftest.$ac_objext conftest$ac_exeext
32432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32433   (eval $ac_link) 2>conftest.er1
32434   ac_status=$?
32435   grep -v '^ *+' conftest.er1 >conftest.err
32436   rm -f conftest.er1
32437   cat conftest.err >&5
32438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439   (exit $ac_status); } &&
32440          { ac_try='test -z "$ac_c_werror_flag"
32441                          || test ! -s conftest.err'
32442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32443   (eval $ac_try) 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; } &&
32447          { ac_try='test -s conftest$ac_exeext'
32448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32449   (eval $ac_try) 2>&5
32450   ac_status=$?
32451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452   (exit $ac_status); }; }; then
32453   ol_cv_db_db_4_dot_3=yes
32454 else
32455   echo "$as_me: failed program was:" >&5
32456 sed 's/^/| /' conftest.$ac_ext >&5
32457
32458 ol_cv_db_db_4_dot_3=no
32459 fi
32460 rm -f conftest.err conftest.$ac_objext \
32461       conftest$ac_exeext conftest.$ac_ext
32462
32463         LIBS="$ol_LIBS"
32464
32465 fi
32466 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32467 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32468
32469         if test $ol_cv_db_db_4_dot_3 = yes ; then
32470                 ol_cv_lib_db=-ldb-4.3
32471         fi
32472 fi
32473
32474                 if test $ol_cv_lib_db = no ; then
32475         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32476 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32477 if test "${ol_cv_db_db_4_3+set}" = set; then
32478   echo $ECHO_N "(cached) $ECHO_C" >&6
32479 else
32480
32481         ol_DB_LIB=-ldb-4-3
32482         ol_LIBS=$LIBS
32483         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32484
32485         cat >conftest.$ac_ext <<_ACEOF
32486 /* confdefs.h.  */
32487 _ACEOF
32488 cat confdefs.h >>conftest.$ac_ext
32489 cat >>conftest.$ac_ext <<_ACEOF
32490 /* end confdefs.h.  */
32491
32492 #ifdef HAVE_DB_185_H
32493 # include <db_185.h>
32494 #else
32495 # include <db.h>
32496 #endif
32497
32498 #ifndef DB_VERSION_MAJOR
32499 # define DB_VERSION_MAJOR 1
32500 #endif
32501
32502 #ifndef NULL
32503 #define NULL ((void*)0)
32504 #endif
32505
32506 int
32507 main ()
32508 {
32509
32510 #if DB_VERSION_MAJOR > 1
32511         {
32512                 char *version;
32513                 int major, minor, patch;
32514
32515                 version = db_version( &major, &minor, &patch );
32516
32517                 if( major != DB_VERSION_MAJOR ||
32518                         minor < DB_VERSION_MINOR )
32519                 {
32520                         printf("Berkeley DB version mismatch\n"
32521                                 "\theader: %s\n\tlibrary: %s\n",
32522                                 DB_VERSION_STRING, version);
32523                         return 1;
32524                 }
32525         }
32526 #endif
32527
32528 #if DB_VERSION_MAJOR > 2
32529         db_env_create( NULL, 0 );
32530 #elif DB_VERSION_MAJOR > 1
32531         db_appexit( NULL );
32532 #else
32533         (void) dbopen( NULL, 0, 0, 0, NULL);
32534 #endif
32535
32536   ;
32537   return 0;
32538 }
32539 _ACEOF
32540 rm -f conftest.$ac_objext conftest$ac_exeext
32541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32542   (eval $ac_link) 2>conftest.er1
32543   ac_status=$?
32544   grep -v '^ *+' conftest.er1 >conftest.err
32545   rm -f conftest.er1
32546   cat conftest.err >&5
32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548   (exit $ac_status); } &&
32549          { ac_try='test -z "$ac_c_werror_flag"
32550                          || test ! -s conftest.err'
32551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32552   (eval $ac_try) 2>&5
32553   ac_status=$?
32554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555   (exit $ac_status); }; } &&
32556          { ac_try='test -s conftest$ac_exeext'
32557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32558   (eval $ac_try) 2>&5
32559   ac_status=$?
32560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561   (exit $ac_status); }; }; then
32562   ol_cv_db_db_4_3=yes
32563 else
32564   echo "$as_me: failed program was:" >&5
32565 sed 's/^/| /' conftest.$ac_ext >&5
32566
32567 ol_cv_db_db_4_3=no
32568 fi
32569 rm -f conftest.err conftest.$ac_objext \
32570       conftest$ac_exeext conftest.$ac_ext
32571
32572         LIBS="$ol_LIBS"
32573
32574 fi
32575 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32576 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32577
32578         if test $ol_cv_db_db_4_3 = yes ; then
32579                 ol_cv_lib_db=-ldb-4-3
32580         fi
32581 fi
32582
32583         elif test $ol_cv_bdb_minor = 2 ; then
32584                 if test $ol_cv_lib_db = no ; then
32585         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32586 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32587 if test "${ol_cv_db_db42+set}" = set; then
32588   echo $ECHO_N "(cached) $ECHO_C" >&6
32589 else
32590
32591         ol_DB_LIB=-ldb42
32592         ol_LIBS=$LIBS
32593         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32594
32595         cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601
32602 #ifdef HAVE_DB_185_H
32603 # include <db_185.h>
32604 #else
32605 # include <db.h>
32606 #endif
32607
32608 #ifndef DB_VERSION_MAJOR
32609 # define DB_VERSION_MAJOR 1
32610 #endif
32611
32612 #ifndef NULL
32613 #define NULL ((void*)0)
32614 #endif
32615
32616 int
32617 main ()
32618 {
32619
32620 #if DB_VERSION_MAJOR > 1
32621         {
32622                 char *version;
32623                 int major, minor, patch;
32624
32625                 version = db_version( &major, &minor, &patch );
32626
32627                 if( major != DB_VERSION_MAJOR ||
32628                         minor < DB_VERSION_MINOR )
32629                 {
32630                         printf("Berkeley DB version mismatch\n"
32631                                 "\theader: %s\n\tlibrary: %s\n",
32632                                 DB_VERSION_STRING, version);
32633                         return 1;
32634                 }
32635         }
32636 #endif
32637
32638 #if DB_VERSION_MAJOR > 2
32639         db_env_create( NULL, 0 );
32640 #elif DB_VERSION_MAJOR > 1
32641         db_appexit( NULL );
32642 #else
32643         (void) dbopen( NULL, 0, 0, 0, NULL);
32644 #endif
32645
32646   ;
32647   return 0;
32648 }
32649 _ACEOF
32650 rm -f conftest.$ac_objext conftest$ac_exeext
32651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32652   (eval $ac_link) 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } &&
32659          { ac_try='test -z "$ac_c_werror_flag"
32660                          || test ! -s conftest.err'
32661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662   (eval $ac_try) 2>&5
32663   ac_status=$?
32664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665   (exit $ac_status); }; } &&
32666          { ac_try='test -s conftest$ac_exeext'
32667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668   (eval $ac_try) 2>&5
32669   ac_status=$?
32670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671   (exit $ac_status); }; }; then
32672   ol_cv_db_db42=yes
32673 else
32674   echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32676
32677 ol_cv_db_db42=no
32678 fi
32679 rm -f conftest.err conftest.$ac_objext \
32680       conftest$ac_exeext conftest.$ac_ext
32681
32682         LIBS="$ol_LIBS"
32683
32684 fi
32685 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32686 echo "${ECHO_T}$ol_cv_db_db42" >&6
32687
32688         if test $ol_cv_db_db42 = yes ; then
32689                 ol_cv_lib_db=-ldb42
32690         fi
32691 fi
32692
32693                 if test $ol_cv_lib_db = no ; then
32694         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32695 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32696 if test "${ol_cv_db_db_42+set}" = set; then
32697   echo $ECHO_N "(cached) $ECHO_C" >&6
32698 else
32699
32700         ol_DB_LIB=-ldb-42
32701         ol_LIBS=$LIBS
32702         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32703
32704         cat >conftest.$ac_ext <<_ACEOF
32705 /* confdefs.h.  */
32706 _ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h.  */
32710
32711 #ifdef HAVE_DB_185_H
32712 # include <db_185.h>
32713 #else
32714 # include <db.h>
32715 #endif
32716
32717 #ifndef DB_VERSION_MAJOR
32718 # define DB_VERSION_MAJOR 1
32719 #endif
32720
32721 #ifndef NULL
32722 #define NULL ((void*)0)
32723 #endif
32724
32725 int
32726 main ()
32727 {
32728
32729 #if DB_VERSION_MAJOR > 1
32730         {
32731                 char *version;
32732                 int major, minor, patch;
32733
32734                 version = db_version( &major, &minor, &patch );
32735
32736                 if( major != DB_VERSION_MAJOR ||
32737                         minor < DB_VERSION_MINOR )
32738                 {
32739                         printf("Berkeley DB version mismatch\n"
32740                                 "\theader: %s\n\tlibrary: %s\n",
32741                                 DB_VERSION_STRING, version);
32742                         return 1;
32743                 }
32744         }
32745 #endif
32746
32747 #if DB_VERSION_MAJOR > 2
32748         db_env_create( NULL, 0 );
32749 #elif DB_VERSION_MAJOR > 1
32750         db_appexit( NULL );
32751 #else
32752         (void) dbopen( NULL, 0, 0, 0, NULL);
32753 #endif
32754
32755   ;
32756   return 0;
32757 }
32758 _ACEOF
32759 rm -f conftest.$ac_objext conftest$ac_exeext
32760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32761   (eval $ac_link) 2>conftest.er1
32762   ac_status=$?
32763   grep -v '^ *+' conftest.er1 >conftest.err
32764   rm -f conftest.er1
32765   cat conftest.err >&5
32766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767   (exit $ac_status); } &&
32768          { ac_try='test -z "$ac_c_werror_flag"
32769                          || test ! -s conftest.err'
32770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771   (eval $ac_try) 2>&5
32772   ac_status=$?
32773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774   (exit $ac_status); }; } &&
32775          { ac_try='test -s conftest$ac_exeext'
32776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777   (eval $ac_try) 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781   ol_cv_db_db_42=yes
32782 else
32783   echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32785
32786 ol_cv_db_db_42=no
32787 fi
32788 rm -f conftest.err conftest.$ac_objext \
32789       conftest$ac_exeext conftest.$ac_ext
32790
32791         LIBS="$ol_LIBS"
32792
32793 fi
32794 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32795 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32796
32797         if test $ol_cv_db_db_42 = yes ; then
32798                 ol_cv_lib_db=-ldb-42
32799         fi
32800 fi
32801
32802                 if test $ol_cv_lib_db = no ; then
32803         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32804 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32805 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32806   echo $ECHO_N "(cached) $ECHO_C" >&6
32807 else
32808
32809         ol_DB_LIB=-ldb-4.2
32810         ol_LIBS=$LIBS
32811         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32812
32813         cat >conftest.$ac_ext <<_ACEOF
32814 /* confdefs.h.  */
32815 _ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h.  */
32819
32820 #ifdef HAVE_DB_185_H
32821 # include <db_185.h>
32822 #else
32823 # include <db.h>
32824 #endif
32825
32826 #ifndef DB_VERSION_MAJOR
32827 # define DB_VERSION_MAJOR 1
32828 #endif
32829
32830 #ifndef NULL
32831 #define NULL ((void*)0)
32832 #endif
32833
32834 int
32835 main ()
32836 {
32837
32838 #if DB_VERSION_MAJOR > 1
32839         {
32840                 char *version;
32841                 int major, minor, patch;
32842
32843                 version = db_version( &major, &minor, &patch );
32844
32845                 if( major != DB_VERSION_MAJOR ||
32846                         minor < DB_VERSION_MINOR )
32847                 {
32848                         printf("Berkeley DB version mismatch\n"
32849                                 "\theader: %s\n\tlibrary: %s\n",
32850                                 DB_VERSION_STRING, version);
32851                         return 1;
32852                 }
32853         }
32854 #endif
32855
32856 #if DB_VERSION_MAJOR > 2
32857         db_env_create( NULL, 0 );
32858 #elif DB_VERSION_MAJOR > 1
32859         db_appexit( NULL );
32860 #else
32861         (void) dbopen( NULL, 0, 0, 0, NULL);
32862 #endif
32863
32864   ;
32865   return 0;
32866 }
32867 _ACEOF
32868 rm -f conftest.$ac_objext conftest$ac_exeext
32869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32870   (eval $ac_link) 2>conftest.er1
32871   ac_status=$?
32872   grep -v '^ *+' conftest.er1 >conftest.err
32873   rm -f conftest.er1
32874   cat conftest.err >&5
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); } &&
32877          { ac_try='test -z "$ac_c_werror_flag"
32878                          || test ! -s conftest.err'
32879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880   (eval $ac_try) 2>&5
32881   ac_status=$?
32882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883   (exit $ac_status); }; } &&
32884          { ac_try='test -s conftest$ac_exeext'
32885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886   (eval $ac_try) 2>&5
32887   ac_status=$?
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); }; }; then
32890   ol_cv_db_db_4_dot_2=yes
32891 else
32892   echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895 ol_cv_db_db_4_dot_2=no
32896 fi
32897 rm -f conftest.err conftest.$ac_objext \
32898       conftest$ac_exeext conftest.$ac_ext
32899
32900         LIBS="$ol_LIBS"
32901
32902 fi
32903 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32904 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32905
32906         if test $ol_cv_db_db_4_dot_2 = yes ; then
32907                 ol_cv_lib_db=-ldb-4.2
32908         fi
32909 fi
32910
32911                 if test $ol_cv_lib_db = no ; then
32912         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32913 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32914 if test "${ol_cv_db_db_4_2+set}" = set; then
32915   echo $ECHO_N "(cached) $ECHO_C" >&6
32916 else
32917
32918         ol_DB_LIB=-ldb-4-2
32919         ol_LIBS=$LIBS
32920         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32921
32922         cat >conftest.$ac_ext <<_ACEOF
32923 /* confdefs.h.  */
32924 _ACEOF
32925 cat confdefs.h >>conftest.$ac_ext
32926 cat >>conftest.$ac_ext <<_ACEOF
32927 /* end confdefs.h.  */
32928
32929 #ifdef HAVE_DB_185_H
32930 # include <db_185.h>
32931 #else
32932 # include <db.h>
32933 #endif
32934
32935 #ifndef DB_VERSION_MAJOR
32936 # define DB_VERSION_MAJOR 1
32937 #endif
32938
32939 #ifndef NULL
32940 #define NULL ((void*)0)
32941 #endif
32942
32943 int
32944 main ()
32945 {
32946
32947 #if DB_VERSION_MAJOR > 1
32948         {
32949                 char *version;
32950                 int major, minor, patch;
32951
32952                 version = db_version( &major, &minor, &patch );
32953
32954                 if( major != DB_VERSION_MAJOR ||
32955                         minor < DB_VERSION_MINOR )
32956                 {
32957                         printf("Berkeley DB version mismatch\n"
32958                                 "\theader: %s\n\tlibrary: %s\n",
32959                                 DB_VERSION_STRING, version);
32960                         return 1;
32961                 }
32962         }
32963 #endif
32964
32965 #if DB_VERSION_MAJOR > 2
32966         db_env_create( NULL, 0 );
32967 #elif DB_VERSION_MAJOR > 1
32968         db_appexit( NULL );
32969 #else
32970         (void) dbopen( NULL, 0, 0, 0, NULL);
32971 #endif
32972
32973   ;
32974   return 0;
32975 }
32976 _ACEOF
32977 rm -f conftest.$ac_objext conftest$ac_exeext
32978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32979   (eval $ac_link) 2>conftest.er1
32980   ac_status=$?
32981   grep -v '^ *+' conftest.er1 >conftest.err
32982   rm -f conftest.er1
32983   cat conftest.err >&5
32984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985   (exit $ac_status); } &&
32986          { ac_try='test -z "$ac_c_werror_flag"
32987                          || test ! -s conftest.err'
32988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32989   (eval $ac_try) 2>&5
32990   ac_status=$?
32991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32992   (exit $ac_status); }; } &&
32993          { ac_try='test -s conftest$ac_exeext'
32994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32995   (eval $ac_try) 2>&5
32996   ac_status=$?
32997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998   (exit $ac_status); }; }; then
32999   ol_cv_db_db_4_2=yes
33000 else
33001   echo "$as_me: failed program was:" >&5
33002 sed 's/^/| /' conftest.$ac_ext >&5
33003
33004 ol_cv_db_db_4_2=no
33005 fi
33006 rm -f conftest.err conftest.$ac_objext \
33007       conftest$ac_exeext conftest.$ac_ext
33008
33009         LIBS="$ol_LIBS"
33010
33011 fi
33012 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33013 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33014
33015         if test $ol_cv_db_db_4_2 = yes ; then
33016                 ol_cv_lib_db=-ldb-4-2
33017         fi
33018 fi
33019
33020         elif test $ol_cv_bdb_minor = 1 ; then
33021                 if test $ol_cv_lib_db = no ; then
33022         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33023 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33024 if test "${ol_cv_db_db41+set}" = set; then
33025   echo $ECHO_N "(cached) $ECHO_C" >&6
33026 else
33027
33028         ol_DB_LIB=-ldb41
33029         ol_LIBS=$LIBS
33030         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33031
33032         cat >conftest.$ac_ext <<_ACEOF
33033 /* confdefs.h.  */
33034 _ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h.  */
33038
33039 #ifdef HAVE_DB_185_H
33040 # include <db_185.h>
33041 #else
33042 # include <db.h>
33043 #endif
33044
33045 #ifndef DB_VERSION_MAJOR
33046 # define DB_VERSION_MAJOR 1
33047 #endif
33048
33049 #ifndef NULL
33050 #define NULL ((void*)0)
33051 #endif
33052
33053 int
33054 main ()
33055 {
33056
33057 #if DB_VERSION_MAJOR > 1
33058         {
33059                 char *version;
33060                 int major, minor, patch;
33061
33062                 version = db_version( &major, &minor, &patch );
33063
33064                 if( major != DB_VERSION_MAJOR ||
33065                         minor < DB_VERSION_MINOR )
33066                 {
33067                         printf("Berkeley DB version mismatch\n"
33068                                 "\theader: %s\n\tlibrary: %s\n",
33069                                 DB_VERSION_STRING, version);
33070                         return 1;
33071                 }
33072         }
33073 #endif
33074
33075 #if DB_VERSION_MAJOR > 2
33076         db_env_create( NULL, 0 );
33077 #elif DB_VERSION_MAJOR > 1
33078         db_appexit( NULL );
33079 #else
33080         (void) dbopen( NULL, 0, 0, 0, NULL);
33081 #endif
33082
33083   ;
33084   return 0;
33085 }
33086 _ACEOF
33087 rm -f conftest.$ac_objext conftest$ac_exeext
33088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33089   (eval $ac_link) 2>conftest.er1
33090   ac_status=$?
33091   grep -v '^ *+' conftest.er1 >conftest.err
33092   rm -f conftest.er1
33093   cat conftest.err >&5
33094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095   (exit $ac_status); } &&
33096          { ac_try='test -z "$ac_c_werror_flag"
33097                          || test ! -s conftest.err'
33098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33099   (eval $ac_try) 2>&5
33100   ac_status=$?
33101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102   (exit $ac_status); }; } &&
33103          { ac_try='test -s conftest$ac_exeext'
33104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33105   (eval $ac_try) 2>&5
33106   ac_status=$?
33107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108   (exit $ac_status); }; }; then
33109   ol_cv_db_db41=yes
33110 else
33111   echo "$as_me: failed program was:" >&5
33112 sed 's/^/| /' conftest.$ac_ext >&5
33113
33114 ol_cv_db_db41=no
33115 fi
33116 rm -f conftest.err conftest.$ac_objext \
33117       conftest$ac_exeext conftest.$ac_ext
33118
33119         LIBS="$ol_LIBS"
33120
33121 fi
33122 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33123 echo "${ECHO_T}$ol_cv_db_db41" >&6
33124
33125         if test $ol_cv_db_db41 = yes ; then
33126                 ol_cv_lib_db=-ldb41
33127         fi
33128 fi
33129
33130                 if test $ol_cv_lib_db = no ; then
33131         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33132 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33133 if test "${ol_cv_db_db_41+set}" = set; then
33134   echo $ECHO_N "(cached) $ECHO_C" >&6
33135 else
33136
33137         ol_DB_LIB=-ldb-41
33138         ol_LIBS=$LIBS
33139         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33140
33141         cat >conftest.$ac_ext <<_ACEOF
33142 /* confdefs.h.  */
33143 _ACEOF
33144 cat confdefs.h >>conftest.$ac_ext
33145 cat >>conftest.$ac_ext <<_ACEOF
33146 /* end confdefs.h.  */
33147
33148 #ifdef HAVE_DB_185_H
33149 # include <db_185.h>
33150 #else
33151 # include <db.h>
33152 #endif
33153
33154 #ifndef DB_VERSION_MAJOR
33155 # define DB_VERSION_MAJOR 1
33156 #endif
33157
33158 #ifndef NULL
33159 #define NULL ((void*)0)
33160 #endif
33161
33162 int
33163 main ()
33164 {
33165
33166 #if DB_VERSION_MAJOR > 1
33167         {
33168                 char *version;
33169                 int major, minor, patch;
33170
33171                 version = db_version( &major, &minor, &patch );
33172
33173                 if( major != DB_VERSION_MAJOR ||
33174                         minor < DB_VERSION_MINOR )
33175                 {
33176                         printf("Berkeley DB version mismatch\n"
33177                                 "\theader: %s\n\tlibrary: %s\n",
33178                                 DB_VERSION_STRING, version);
33179                         return 1;
33180                 }
33181         }
33182 #endif
33183
33184 #if DB_VERSION_MAJOR > 2
33185         db_env_create( NULL, 0 );
33186 #elif DB_VERSION_MAJOR > 1
33187         db_appexit( NULL );
33188 #else
33189         (void) dbopen( NULL, 0, 0, 0, NULL);
33190 #endif
33191
33192   ;
33193   return 0;
33194 }
33195 _ACEOF
33196 rm -f conftest.$ac_objext conftest$ac_exeext
33197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33198   (eval $ac_link) 2>conftest.er1
33199   ac_status=$?
33200   grep -v '^ *+' conftest.er1 >conftest.err
33201   rm -f conftest.er1
33202   cat conftest.err >&5
33203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33204   (exit $ac_status); } &&
33205          { ac_try='test -z "$ac_c_werror_flag"
33206                          || test ! -s conftest.err'
33207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208   (eval $ac_try) 2>&5
33209   ac_status=$?
33210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211   (exit $ac_status); }; } &&
33212          { ac_try='test -s conftest$ac_exeext'
33213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214   (eval $ac_try) 2>&5
33215   ac_status=$?
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); }; }; then
33218   ol_cv_db_db_41=yes
33219 else
33220   echo "$as_me: failed program was:" >&5
33221 sed 's/^/| /' conftest.$ac_ext >&5
33222
33223 ol_cv_db_db_41=no
33224 fi
33225 rm -f conftest.err conftest.$ac_objext \
33226       conftest$ac_exeext conftest.$ac_ext
33227
33228         LIBS="$ol_LIBS"
33229
33230 fi
33231 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33232 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33233
33234         if test $ol_cv_db_db_41 = yes ; then
33235                 ol_cv_lib_db=-ldb-41
33236         fi
33237 fi
33238
33239                 if test $ol_cv_lib_db = no ; then
33240         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33241 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33242 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33243   echo $ECHO_N "(cached) $ECHO_C" >&6
33244 else
33245
33246         ol_DB_LIB=-ldb-4.1
33247         ol_LIBS=$LIBS
33248         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33249
33250         cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h.  */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h.  */
33256
33257 #ifdef HAVE_DB_185_H
33258 # include <db_185.h>
33259 #else
33260 # include <db.h>
33261 #endif
33262
33263 #ifndef DB_VERSION_MAJOR
33264 # define DB_VERSION_MAJOR 1
33265 #endif
33266
33267 #ifndef NULL
33268 #define NULL ((void*)0)
33269 #endif
33270
33271 int
33272 main ()
33273 {
33274
33275 #if DB_VERSION_MAJOR > 1
33276         {
33277                 char *version;
33278                 int major, minor, patch;
33279
33280                 version = db_version( &major, &minor, &patch );
33281
33282                 if( major != DB_VERSION_MAJOR ||
33283                         minor < DB_VERSION_MINOR )
33284                 {
33285                         printf("Berkeley DB version mismatch\n"
33286                                 "\theader: %s\n\tlibrary: %s\n",
33287                                 DB_VERSION_STRING, version);
33288                         return 1;
33289                 }
33290         }
33291 #endif
33292
33293 #if DB_VERSION_MAJOR > 2
33294         db_env_create( NULL, 0 );
33295 #elif DB_VERSION_MAJOR > 1
33296         db_appexit( NULL );
33297 #else
33298         (void) dbopen( NULL, 0, 0, 0, NULL);
33299 #endif
33300
33301   ;
33302   return 0;
33303 }
33304 _ACEOF
33305 rm -f conftest.$ac_objext conftest$ac_exeext
33306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33307   (eval $ac_link) 2>conftest.er1
33308   ac_status=$?
33309   grep -v '^ *+' conftest.er1 >conftest.err
33310   rm -f conftest.er1
33311   cat conftest.err >&5
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); } &&
33314          { ac_try='test -z "$ac_c_werror_flag"
33315                          || test ! -s conftest.err'
33316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33317   (eval $ac_try) 2>&5
33318   ac_status=$?
33319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320   (exit $ac_status); }; } &&
33321          { ac_try='test -s conftest$ac_exeext'
33322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323   (eval $ac_try) 2>&5
33324   ac_status=$?
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); }; }; then
33327   ol_cv_db_db_4_dot_1=yes
33328 else
33329   echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33331
33332 ol_cv_db_db_4_dot_1=no
33333 fi
33334 rm -f conftest.err conftest.$ac_objext \
33335       conftest$ac_exeext conftest.$ac_ext
33336
33337         LIBS="$ol_LIBS"
33338
33339 fi
33340 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33341 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33342
33343         if test $ol_cv_db_db_4_dot_1 = yes ; then
33344                 ol_cv_lib_db=-ldb-4.1
33345         fi
33346 fi
33347
33348                 if test $ol_cv_lib_db = no ; then
33349         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33350 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33351 if test "${ol_cv_db_db_4_1+set}" = set; then
33352   echo $ECHO_N "(cached) $ECHO_C" >&6
33353 else
33354
33355         ol_DB_LIB=-ldb-4-1
33356         ol_LIBS=$LIBS
33357         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33358
33359         cat >conftest.$ac_ext <<_ACEOF
33360 /* confdefs.h.  */
33361 _ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h.  */
33365
33366 #ifdef HAVE_DB_185_H
33367 # include <db_185.h>
33368 #else
33369 # include <db.h>
33370 #endif
33371
33372 #ifndef DB_VERSION_MAJOR
33373 # define DB_VERSION_MAJOR 1
33374 #endif
33375
33376 #ifndef NULL
33377 #define NULL ((void*)0)
33378 #endif
33379
33380 int
33381 main ()
33382 {
33383
33384 #if DB_VERSION_MAJOR > 1
33385         {
33386                 char *version;
33387                 int major, minor, patch;
33388
33389                 version = db_version( &major, &minor, &patch );
33390
33391                 if( major != DB_VERSION_MAJOR ||
33392                         minor < DB_VERSION_MINOR )
33393                 {
33394                         printf("Berkeley DB version mismatch\n"
33395                                 "\theader: %s\n\tlibrary: %s\n",
33396                                 DB_VERSION_STRING, version);
33397                         return 1;
33398                 }
33399         }
33400 #endif
33401
33402 #if DB_VERSION_MAJOR > 2
33403         db_env_create( NULL, 0 );
33404 #elif DB_VERSION_MAJOR > 1
33405         db_appexit( NULL );
33406 #else
33407         (void) dbopen( NULL, 0, 0, 0, NULL);
33408 #endif
33409
33410   ;
33411   return 0;
33412 }
33413 _ACEOF
33414 rm -f conftest.$ac_objext conftest$ac_exeext
33415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33416   (eval $ac_link) 2>conftest.er1
33417   ac_status=$?
33418   grep -v '^ *+' conftest.er1 >conftest.err
33419   rm -f conftest.er1
33420   cat conftest.err >&5
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); } &&
33423          { ac_try='test -z "$ac_c_werror_flag"
33424                          || test ! -s conftest.err'
33425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426   (eval $ac_try) 2>&5
33427   ac_status=$?
33428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429   (exit $ac_status); }; } &&
33430          { ac_try='test -s conftest$ac_exeext'
33431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33432   (eval $ac_try) 2>&5
33433   ac_status=$?
33434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435   (exit $ac_status); }; }; then
33436   ol_cv_db_db_4_1=yes
33437 else
33438   echo "$as_me: failed program was:" >&5
33439 sed 's/^/| /' conftest.$ac_ext >&5
33440
33441 ol_cv_db_db_4_1=no
33442 fi
33443 rm -f conftest.err conftest.$ac_objext \
33444       conftest$ac_exeext conftest.$ac_ext
33445
33446         LIBS="$ol_LIBS"
33447
33448 fi
33449 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33450 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33451
33452         if test $ol_cv_db_db_4_1 = yes ; then
33453                 ol_cv_lib_db=-ldb-4-1
33454         fi
33455 fi
33456
33457         fi
33458         if test $ol_cv_lib_db = no ; then
33459         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33460 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33461 if test "${ol_cv_db_db_4+set}" = set; then
33462   echo $ECHO_N "(cached) $ECHO_C" >&6
33463 else
33464
33465         ol_DB_LIB=-ldb-4
33466         ol_LIBS=$LIBS
33467         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33468
33469         cat >conftest.$ac_ext <<_ACEOF
33470 /* confdefs.h.  */
33471 _ACEOF
33472 cat confdefs.h >>conftest.$ac_ext
33473 cat >>conftest.$ac_ext <<_ACEOF
33474 /* end confdefs.h.  */
33475
33476 #ifdef HAVE_DB_185_H
33477 # include <db_185.h>
33478 #else
33479 # include <db.h>
33480 #endif
33481
33482 #ifndef DB_VERSION_MAJOR
33483 # define DB_VERSION_MAJOR 1
33484 #endif
33485
33486 #ifndef NULL
33487 #define NULL ((void*)0)
33488 #endif
33489
33490 int
33491 main ()
33492 {
33493
33494 #if DB_VERSION_MAJOR > 1
33495         {
33496                 char *version;
33497                 int major, minor, patch;
33498
33499                 version = db_version( &major, &minor, &patch );
33500
33501                 if( major != DB_VERSION_MAJOR ||
33502                         minor < DB_VERSION_MINOR )
33503                 {
33504                         printf("Berkeley DB version mismatch\n"
33505                                 "\theader: %s\n\tlibrary: %s\n",
33506                                 DB_VERSION_STRING, version);
33507                         return 1;
33508                 }
33509         }
33510 #endif
33511
33512 #if DB_VERSION_MAJOR > 2
33513         db_env_create( NULL, 0 );
33514 #elif DB_VERSION_MAJOR > 1
33515         db_appexit( NULL );
33516 #else
33517         (void) dbopen( NULL, 0, 0, 0, NULL);
33518 #endif
33519
33520   ;
33521   return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext conftest$ac_exeext
33525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33526   (eval $ac_link) 2>conftest.er1
33527   ac_status=$?
33528   grep -v '^ *+' conftest.er1 >conftest.err
33529   rm -f conftest.er1
33530   cat conftest.err >&5
33531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532   (exit $ac_status); } &&
33533          { ac_try='test -z "$ac_c_werror_flag"
33534                          || test ! -s conftest.err'
33535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536   (eval $ac_try) 2>&5
33537   ac_status=$?
33538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539   (exit $ac_status); }; } &&
33540          { ac_try='test -s conftest$ac_exeext'
33541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542   (eval $ac_try) 2>&5
33543   ac_status=$?
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); }; }; then
33546   ol_cv_db_db_4=yes
33547 else
33548   echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551 ol_cv_db_db_4=no
33552 fi
33553 rm -f conftest.err conftest.$ac_objext \
33554       conftest$ac_exeext conftest.$ac_ext
33555
33556         LIBS="$ol_LIBS"
33557
33558 fi
33559 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33560 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33561
33562         if test $ol_cv_db_db_4 = yes ; then
33563                 ol_cv_lib_db=-ldb-4
33564         fi
33565 fi
33566
33567         if test $ol_cv_lib_db = no ; then
33568         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33569 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33570 if test "${ol_cv_db_db4+set}" = set; then
33571   echo $ECHO_N "(cached) $ECHO_C" >&6
33572 else
33573
33574         ol_DB_LIB=-ldb4
33575         ol_LIBS=$LIBS
33576         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33577
33578         cat >conftest.$ac_ext <<_ACEOF
33579 /* confdefs.h.  */
33580 _ACEOF
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h.  */
33584
33585 #ifdef HAVE_DB_185_H
33586 # include <db_185.h>
33587 #else
33588 # include <db.h>
33589 #endif
33590
33591 #ifndef DB_VERSION_MAJOR
33592 # define DB_VERSION_MAJOR 1
33593 #endif
33594
33595 #ifndef NULL
33596 #define NULL ((void*)0)
33597 #endif
33598
33599 int
33600 main ()
33601 {
33602
33603 #if DB_VERSION_MAJOR > 1
33604         {
33605                 char *version;
33606                 int major, minor, patch;
33607
33608                 version = db_version( &major, &minor, &patch );
33609
33610                 if( major != DB_VERSION_MAJOR ||
33611                         minor < DB_VERSION_MINOR )
33612                 {
33613                         printf("Berkeley DB version mismatch\n"
33614                                 "\theader: %s\n\tlibrary: %s\n",
33615                                 DB_VERSION_STRING, version);
33616                         return 1;
33617                 }
33618         }
33619 #endif
33620
33621 #if DB_VERSION_MAJOR > 2
33622         db_env_create( NULL, 0 );
33623 #elif DB_VERSION_MAJOR > 1
33624         db_appexit( NULL );
33625 #else
33626         (void) dbopen( NULL, 0, 0, 0, NULL);
33627 #endif
33628
33629   ;
33630   return 0;
33631 }
33632 _ACEOF
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33635   (eval $ac_link) 2>conftest.er1
33636   ac_status=$?
33637   grep -v '^ *+' conftest.er1 >conftest.err
33638   rm -f conftest.er1
33639   cat conftest.err >&5
33640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641   (exit $ac_status); } &&
33642          { ac_try='test -z "$ac_c_werror_flag"
33643                          || test ! -s conftest.err'
33644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645   (eval $ac_try) 2>&5
33646   ac_status=$?
33647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648   (exit $ac_status); }; } &&
33649          { ac_try='test -s conftest$ac_exeext'
33650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651   (eval $ac_try) 2>&5
33652   ac_status=$?
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); }; }; then
33655   ol_cv_db_db4=yes
33656 else
33657   echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33659
33660 ol_cv_db_db4=no
33661 fi
33662 rm -f conftest.err conftest.$ac_objext \
33663       conftest$ac_exeext conftest.$ac_ext
33664
33665         LIBS="$ol_LIBS"
33666
33667 fi
33668 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33669 echo "${ECHO_T}$ol_cv_db_db4" >&6
33670
33671         if test $ol_cv_db_db4 = yes ; then
33672                 ol_cv_lib_db=-ldb4
33673         fi
33674 fi
33675
33676         if test $ol_cv_lib_db = no ; then
33677         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33678 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33679 if test "${ol_cv_db_db+set}" = set; then
33680   echo $ECHO_N "(cached) $ECHO_C" >&6
33681 else
33682
33683         ol_DB_LIB=-ldb
33684         ol_LIBS=$LIBS
33685         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33686
33687         cat >conftest.$ac_ext <<_ACEOF
33688 /* confdefs.h.  */
33689 _ACEOF
33690 cat confdefs.h >>conftest.$ac_ext
33691 cat >>conftest.$ac_ext <<_ACEOF
33692 /* end confdefs.h.  */
33693
33694 #ifdef HAVE_DB_185_H
33695 # include <db_185.h>
33696 #else
33697 # include <db.h>
33698 #endif
33699
33700 #ifndef DB_VERSION_MAJOR
33701 # define DB_VERSION_MAJOR 1
33702 #endif
33703
33704 #ifndef NULL
33705 #define NULL ((void*)0)
33706 #endif
33707
33708 int
33709 main ()
33710 {
33711
33712 #if DB_VERSION_MAJOR > 1
33713         {
33714                 char *version;
33715                 int major, minor, patch;
33716
33717                 version = db_version( &major, &minor, &patch );
33718
33719                 if( major != DB_VERSION_MAJOR ||
33720                         minor < DB_VERSION_MINOR )
33721                 {
33722                         printf("Berkeley DB version mismatch\n"
33723                                 "\theader: %s\n\tlibrary: %s\n",
33724                                 DB_VERSION_STRING, version);
33725                         return 1;
33726                 }
33727         }
33728 #endif
33729
33730 #if DB_VERSION_MAJOR > 2
33731         db_env_create( NULL, 0 );
33732 #elif DB_VERSION_MAJOR > 1
33733         db_appexit( NULL );
33734 #else
33735         (void) dbopen( NULL, 0, 0, 0, NULL);
33736 #endif
33737
33738   ;
33739   return 0;
33740 }
33741 _ACEOF
33742 rm -f conftest.$ac_objext conftest$ac_exeext
33743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33744   (eval $ac_link) 2>conftest.er1
33745   ac_status=$?
33746   grep -v '^ *+' conftest.er1 >conftest.err
33747   rm -f conftest.er1
33748   cat conftest.err >&5
33749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750   (exit $ac_status); } &&
33751          { ac_try='test -z "$ac_c_werror_flag"
33752                          || test ! -s conftest.err'
33753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33754   (eval $ac_try) 2>&5
33755   ac_status=$?
33756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757   (exit $ac_status); }; } &&
33758          { ac_try='test -s conftest$ac_exeext'
33759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760   (eval $ac_try) 2>&5
33761   ac_status=$?
33762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763   (exit $ac_status); }; }; then
33764   ol_cv_db_db=yes
33765 else
33766   echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33768
33769 ol_cv_db_db=no
33770 fi
33771 rm -f conftest.err conftest.$ac_objext \
33772       conftest$ac_exeext conftest.$ac_ext
33773
33774         LIBS="$ol_LIBS"
33775
33776 fi
33777 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33778 echo "${ECHO_T}$ol_cv_db_db" >&6
33779
33780         if test $ol_cv_db_db = yes ; then
33781                 ol_cv_lib_db=-ldb
33782         fi
33783 fi
33784
33785
33786 elif test $ol_cv_bdb_major = 3 ; then
33787         if test $ol_cv_lib_db = no ; then
33788         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33789 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33790 if test "${ol_cv_db_db3+set}" = set; then
33791   echo $ECHO_N "(cached) $ECHO_C" >&6
33792 else
33793
33794         ol_DB_LIB=-ldb3
33795         ol_LIBS=$LIBS
33796         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33797
33798         cat >conftest.$ac_ext <<_ACEOF
33799 /* confdefs.h.  */
33800 _ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h.  */
33804
33805 #ifdef HAVE_DB_185_H
33806 # include <db_185.h>
33807 #else
33808 # include <db.h>
33809 #endif
33810
33811 #ifndef DB_VERSION_MAJOR
33812 # define DB_VERSION_MAJOR 1
33813 #endif
33814
33815 #ifndef NULL
33816 #define NULL ((void*)0)
33817 #endif
33818
33819 int
33820 main ()
33821 {
33822
33823 #if DB_VERSION_MAJOR > 1
33824         {
33825                 char *version;
33826                 int major, minor, patch;
33827
33828                 version = db_version( &major, &minor, &patch );
33829
33830                 if( major != DB_VERSION_MAJOR ||
33831                         minor < DB_VERSION_MINOR )
33832                 {
33833                         printf("Berkeley DB version mismatch\n"
33834                                 "\theader: %s\n\tlibrary: %s\n",
33835                                 DB_VERSION_STRING, version);
33836                         return 1;
33837                 }
33838         }
33839 #endif
33840
33841 #if DB_VERSION_MAJOR > 2
33842         db_env_create( NULL, 0 );
33843 #elif DB_VERSION_MAJOR > 1
33844         db_appexit( NULL );
33845 #else
33846         (void) dbopen( NULL, 0, 0, 0, NULL);
33847 #endif
33848
33849   ;
33850   return 0;
33851 }
33852 _ACEOF
33853 rm -f conftest.$ac_objext conftest$ac_exeext
33854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33855   (eval $ac_link) 2>conftest.er1
33856   ac_status=$?
33857   grep -v '^ *+' conftest.er1 >conftest.err
33858   rm -f conftest.er1
33859   cat conftest.err >&5
33860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33861   (exit $ac_status); } &&
33862          { ac_try='test -z "$ac_c_werror_flag"
33863                          || test ! -s conftest.err'
33864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865   (eval $ac_try) 2>&5
33866   ac_status=$?
33867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868   (exit $ac_status); }; } &&
33869          { ac_try='test -s conftest$ac_exeext'
33870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871   (eval $ac_try) 2>&5
33872   ac_status=$?
33873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874   (exit $ac_status); }; }; then
33875   ol_cv_db_db3=yes
33876 else
33877   echo "$as_me: failed program was:" >&5
33878 sed 's/^/| /' conftest.$ac_ext >&5
33879
33880 ol_cv_db_db3=no
33881 fi
33882 rm -f conftest.err conftest.$ac_objext \
33883       conftest$ac_exeext conftest.$ac_ext
33884
33885         LIBS="$ol_LIBS"
33886
33887 fi
33888 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33889 echo "${ECHO_T}$ol_cv_db_db3" >&6
33890
33891         if test $ol_cv_db_db3 = yes ; then
33892                 ol_cv_lib_db=-ldb3
33893         fi
33894 fi
33895
33896         if test $ol_cv_lib_db = no ; then
33897         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33898 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33899 if test "${ol_cv_db_db_3+set}" = set; then
33900   echo $ECHO_N "(cached) $ECHO_C" >&6
33901 else
33902
33903         ol_DB_LIB=-ldb-3
33904         ol_LIBS=$LIBS
33905         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33906
33907         cat >conftest.$ac_ext <<_ACEOF
33908 /* confdefs.h.  */
33909 _ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h.  */
33913
33914 #ifdef HAVE_DB_185_H
33915 # include <db_185.h>
33916 #else
33917 # include <db.h>
33918 #endif
33919
33920 #ifndef DB_VERSION_MAJOR
33921 # define DB_VERSION_MAJOR 1
33922 #endif
33923
33924 #ifndef NULL
33925 #define NULL ((void*)0)
33926 #endif
33927
33928 int
33929 main ()
33930 {
33931
33932 #if DB_VERSION_MAJOR > 1
33933         {
33934                 char *version;
33935                 int major, minor, patch;
33936
33937                 version = db_version( &major, &minor, &patch );
33938
33939                 if( major != DB_VERSION_MAJOR ||
33940                         minor < DB_VERSION_MINOR )
33941                 {
33942                         printf("Berkeley DB version mismatch\n"
33943                                 "\theader: %s\n\tlibrary: %s\n",
33944                                 DB_VERSION_STRING, version);
33945                         return 1;
33946                 }
33947         }
33948 #endif
33949
33950 #if DB_VERSION_MAJOR > 2
33951         db_env_create( NULL, 0 );
33952 #elif DB_VERSION_MAJOR > 1
33953         db_appexit( NULL );
33954 #else
33955         (void) dbopen( NULL, 0, 0, 0, NULL);
33956 #endif
33957
33958   ;
33959   return 0;
33960 }
33961 _ACEOF
33962 rm -f conftest.$ac_objext conftest$ac_exeext
33963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33964   (eval $ac_link) 2>conftest.er1
33965   ac_status=$?
33966   grep -v '^ *+' conftest.er1 >conftest.err
33967   rm -f conftest.er1
33968   cat conftest.err >&5
33969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970   (exit $ac_status); } &&
33971          { ac_try='test -z "$ac_c_werror_flag"
33972                          || test ! -s conftest.err'
33973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974   (eval $ac_try) 2>&5
33975   ac_status=$?
33976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977   (exit $ac_status); }; } &&
33978          { ac_try='test -s conftest$ac_exeext'
33979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33980   (eval $ac_try) 2>&5
33981   ac_status=$?
33982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983   (exit $ac_status); }; }; then
33984   ol_cv_db_db_3=yes
33985 else
33986   echo "$as_me: failed program was:" >&5
33987 sed 's/^/| /' conftest.$ac_ext >&5
33988
33989 ol_cv_db_db_3=no
33990 fi
33991 rm -f conftest.err conftest.$ac_objext \
33992       conftest$ac_exeext conftest.$ac_ext
33993
33994         LIBS="$ol_LIBS"
33995
33996 fi
33997 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33998 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33999
34000         if test $ol_cv_db_db_3 = yes ; then
34001                 ol_cv_lib_db=-ldb-3
34002         fi
34003 fi
34004
34005
34006 elif test $ol_cv_bdb_major = 2 ; then
34007         if test $ol_cv_lib_db = no ; then
34008         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34009 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34010 if test "${ol_cv_db_db2+set}" = set; then
34011   echo $ECHO_N "(cached) $ECHO_C" >&6
34012 else
34013
34014         ol_DB_LIB=-ldb2
34015         ol_LIBS=$LIBS
34016         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34017
34018         cat >conftest.$ac_ext <<_ACEOF
34019 /* confdefs.h.  */
34020 _ACEOF
34021 cat confdefs.h >>conftest.$ac_ext
34022 cat >>conftest.$ac_ext <<_ACEOF
34023 /* end confdefs.h.  */
34024
34025 #ifdef HAVE_DB_185_H
34026 # include <db_185.h>
34027 #else
34028 # include <db.h>
34029 #endif
34030
34031 #ifndef DB_VERSION_MAJOR
34032 # define DB_VERSION_MAJOR 1
34033 #endif
34034
34035 #ifndef NULL
34036 #define NULL ((void*)0)
34037 #endif
34038
34039 int
34040 main ()
34041 {
34042
34043 #if DB_VERSION_MAJOR > 1
34044         {
34045                 char *version;
34046                 int major, minor, patch;
34047
34048                 version = db_version( &major, &minor, &patch );
34049
34050                 if( major != DB_VERSION_MAJOR ||
34051                         minor < DB_VERSION_MINOR )
34052                 {
34053                         printf("Berkeley DB version mismatch\n"
34054                                 "\theader: %s\n\tlibrary: %s\n",
34055                                 DB_VERSION_STRING, version);
34056                         return 1;
34057                 }
34058         }
34059 #endif
34060
34061 #if DB_VERSION_MAJOR > 2
34062         db_env_create( NULL, 0 );
34063 #elif DB_VERSION_MAJOR > 1
34064         db_appexit( NULL );
34065 #else
34066         (void) dbopen( NULL, 0, 0, 0, NULL);
34067 #endif
34068
34069   ;
34070   return 0;
34071 }
34072 _ACEOF
34073 rm -f conftest.$ac_objext conftest$ac_exeext
34074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34075   (eval $ac_link) 2>conftest.er1
34076   ac_status=$?
34077   grep -v '^ *+' conftest.er1 >conftest.err
34078   rm -f conftest.er1
34079   cat conftest.err >&5
34080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081   (exit $ac_status); } &&
34082          { ac_try='test -z "$ac_c_werror_flag"
34083                          || test ! -s conftest.err'
34084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085   (eval $ac_try) 2>&5
34086   ac_status=$?
34087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088   (exit $ac_status); }; } &&
34089          { ac_try='test -s conftest$ac_exeext'
34090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091   (eval $ac_try) 2>&5
34092   ac_status=$?
34093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094   (exit $ac_status); }; }; then
34095   ol_cv_db_db2=yes
34096 else
34097   echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34099
34100 ol_cv_db_db2=no
34101 fi
34102 rm -f conftest.err conftest.$ac_objext \
34103       conftest$ac_exeext conftest.$ac_ext
34104
34105         LIBS="$ol_LIBS"
34106
34107 fi
34108 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34109 echo "${ECHO_T}$ol_cv_db_db2" >&6
34110
34111         if test $ol_cv_db_db2 = yes ; then
34112                 ol_cv_lib_db=-ldb2
34113         fi
34114 fi
34115
34116         if test $ol_cv_lib_db = no ; then
34117         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34118 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34119 if test "${ol_cv_db_db_2+set}" = set; then
34120   echo $ECHO_N "(cached) $ECHO_C" >&6
34121 else
34122
34123         ol_DB_LIB=-ldb-2
34124         ol_LIBS=$LIBS
34125         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34126
34127         cat >conftest.$ac_ext <<_ACEOF
34128 /* confdefs.h.  */
34129 _ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h.  */
34133
34134 #ifdef HAVE_DB_185_H
34135 # include <db_185.h>
34136 #else
34137 # include <db.h>
34138 #endif
34139
34140 #ifndef DB_VERSION_MAJOR
34141 # define DB_VERSION_MAJOR 1
34142 #endif
34143
34144 #ifndef NULL
34145 #define NULL ((void*)0)
34146 #endif
34147
34148 int
34149 main ()
34150 {
34151
34152 #if DB_VERSION_MAJOR > 1
34153         {
34154                 char *version;
34155                 int major, minor, patch;
34156
34157                 version = db_version( &major, &minor, &patch );
34158
34159                 if( major != DB_VERSION_MAJOR ||
34160                         minor < DB_VERSION_MINOR )
34161                 {
34162                         printf("Berkeley DB version mismatch\n"
34163                                 "\theader: %s\n\tlibrary: %s\n",
34164                                 DB_VERSION_STRING, version);
34165                         return 1;
34166                 }
34167         }
34168 #endif
34169
34170 #if DB_VERSION_MAJOR > 2
34171         db_env_create( NULL, 0 );
34172 #elif DB_VERSION_MAJOR > 1
34173         db_appexit( NULL );
34174 #else
34175         (void) dbopen( NULL, 0, 0, 0, NULL);
34176 #endif
34177
34178   ;
34179   return 0;
34180 }
34181 _ACEOF
34182 rm -f conftest.$ac_objext conftest$ac_exeext
34183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34184   (eval $ac_link) 2>conftest.er1
34185   ac_status=$?
34186   grep -v '^ *+' conftest.er1 >conftest.err
34187   rm -f conftest.er1
34188   cat conftest.err >&5
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); } &&
34191          { ac_try='test -z "$ac_c_werror_flag"
34192                          || test ! -s conftest.err'
34193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34194   (eval $ac_try) 2>&5
34195   ac_status=$?
34196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197   (exit $ac_status); }; } &&
34198          { ac_try='test -s conftest$ac_exeext'
34199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200   (eval $ac_try) 2>&5
34201   ac_status=$?
34202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203   (exit $ac_status); }; }; then
34204   ol_cv_db_db_2=yes
34205 else
34206   echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34208
34209 ol_cv_db_db_2=no
34210 fi
34211 rm -f conftest.err conftest.$ac_objext \
34212       conftest$ac_exeext conftest.$ac_ext
34213
34214         LIBS="$ol_LIBS"
34215
34216 fi
34217 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34218 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34219
34220         if test $ol_cv_db_db_2 = yes ; then
34221                 ol_cv_lib_db=-ldb-2
34222         fi
34223 fi
34224
34225
34226 elif test $ol_cv_bdb_major = 1 ; then
34227         if test $ol_cv_lib_db = no ; then
34228         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34229 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34230 if test "${ol_cv_db_db1+set}" = set; then
34231   echo $ECHO_N "(cached) $ECHO_C" >&6
34232 else
34233
34234         ol_DB_LIB=-ldb1
34235         ol_LIBS=$LIBS
34236         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34237
34238         cat >conftest.$ac_ext <<_ACEOF
34239 /* confdefs.h.  */
34240 _ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h.  */
34244
34245 #ifdef HAVE_DB_185_H
34246 # include <db_185.h>
34247 #else
34248 # include <db.h>
34249 #endif
34250
34251 #ifndef DB_VERSION_MAJOR
34252 # define DB_VERSION_MAJOR 1
34253 #endif
34254
34255 #ifndef NULL
34256 #define NULL ((void*)0)
34257 #endif
34258
34259 int
34260 main ()
34261 {
34262
34263 #if DB_VERSION_MAJOR > 1
34264         {
34265                 char *version;
34266                 int major, minor, patch;
34267
34268                 version = db_version( &major, &minor, &patch );
34269
34270                 if( major != DB_VERSION_MAJOR ||
34271                         minor < DB_VERSION_MINOR )
34272                 {
34273                         printf("Berkeley DB version mismatch\n"
34274                                 "\theader: %s\n\tlibrary: %s\n",
34275                                 DB_VERSION_STRING, version);
34276                         return 1;
34277                 }
34278         }
34279 #endif
34280
34281 #if DB_VERSION_MAJOR > 2
34282         db_env_create( NULL, 0 );
34283 #elif DB_VERSION_MAJOR > 1
34284         db_appexit( NULL );
34285 #else
34286         (void) dbopen( NULL, 0, 0, 0, NULL);
34287 #endif
34288
34289   ;
34290   return 0;
34291 }
34292 _ACEOF
34293 rm -f conftest.$ac_objext conftest$ac_exeext
34294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34295   (eval $ac_link) 2>conftest.er1
34296   ac_status=$?
34297   grep -v '^ *+' conftest.er1 >conftest.err
34298   rm -f conftest.er1
34299   cat conftest.err >&5
34300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301   (exit $ac_status); } &&
34302          { ac_try='test -z "$ac_c_werror_flag"
34303                          || test ! -s conftest.err'
34304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305   (eval $ac_try) 2>&5
34306   ac_status=$?
34307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308   (exit $ac_status); }; } &&
34309          { ac_try='test -s conftest$ac_exeext'
34310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311   (eval $ac_try) 2>&5
34312   ac_status=$?
34313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314   (exit $ac_status); }; }; then
34315   ol_cv_db_db1=yes
34316 else
34317   echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34319
34320 ol_cv_db_db1=no
34321 fi
34322 rm -f conftest.err conftest.$ac_objext \
34323       conftest$ac_exeext conftest.$ac_ext
34324
34325         LIBS="$ol_LIBS"
34326
34327 fi
34328 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34329 echo "${ECHO_T}$ol_cv_db_db1" >&6
34330
34331         if test $ol_cv_db_db1 = yes ; then
34332                 ol_cv_lib_db=-ldb1
34333         fi
34334 fi
34335
34336         if test $ol_cv_lib_db = no ; then
34337         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34338 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34339 if test "${ol_cv_db_db_1+set}" = set; then
34340   echo $ECHO_N "(cached) $ECHO_C" >&6
34341 else
34342
34343         ol_DB_LIB=-ldb-1
34344         ol_LIBS=$LIBS
34345         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34346
34347         cat >conftest.$ac_ext <<_ACEOF
34348 /* confdefs.h.  */
34349 _ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h.  */
34353
34354 #ifdef HAVE_DB_185_H
34355 # include <db_185.h>
34356 #else
34357 # include <db.h>
34358 #endif
34359
34360 #ifndef DB_VERSION_MAJOR
34361 # define DB_VERSION_MAJOR 1
34362 #endif
34363
34364 #ifndef NULL
34365 #define NULL ((void*)0)
34366 #endif
34367
34368 int
34369 main ()
34370 {
34371
34372 #if DB_VERSION_MAJOR > 1
34373         {
34374                 char *version;
34375                 int major, minor, patch;
34376
34377                 version = db_version( &major, &minor, &patch );
34378
34379                 if( major != DB_VERSION_MAJOR ||
34380                         minor < DB_VERSION_MINOR )
34381                 {
34382                         printf("Berkeley DB version mismatch\n"
34383                                 "\theader: %s\n\tlibrary: %s\n",
34384                                 DB_VERSION_STRING, version);
34385                         return 1;
34386                 }
34387         }
34388 #endif
34389
34390 #if DB_VERSION_MAJOR > 2
34391         db_env_create( NULL, 0 );
34392 #elif DB_VERSION_MAJOR > 1
34393         db_appexit( NULL );
34394 #else
34395         (void) dbopen( NULL, 0, 0, 0, NULL);
34396 #endif
34397
34398   ;
34399   return 0;
34400 }
34401 _ACEOF
34402 rm -f conftest.$ac_objext conftest$ac_exeext
34403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34404   (eval $ac_link) 2>conftest.er1
34405   ac_status=$?
34406   grep -v '^ *+' conftest.er1 >conftest.err
34407   rm -f conftest.er1
34408   cat conftest.err >&5
34409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); } &&
34411          { ac_try='test -z "$ac_c_werror_flag"
34412                          || test ! -s conftest.err'
34413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414   (eval $ac_try) 2>&5
34415   ac_status=$?
34416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417   (exit $ac_status); }; } &&
34418          { ac_try='test -s conftest$ac_exeext'
34419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420   (eval $ac_try) 2>&5
34421   ac_status=$?
34422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423   (exit $ac_status); }; }; then
34424   ol_cv_db_db_1=yes
34425 else
34426   echo "$as_me: failed program was:" >&5
34427 sed 's/^/| /' conftest.$ac_ext >&5
34428
34429 ol_cv_db_db_1=no
34430 fi
34431 rm -f conftest.err conftest.$ac_objext \
34432       conftest$ac_exeext conftest.$ac_ext
34433
34434         LIBS="$ol_LIBS"
34435
34436 fi
34437 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34438 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34439
34440         if test $ol_cv_db_db_1 = yes ; then
34441                 ol_cv_lib_db=-ldb-1
34442         fi
34443 fi
34444
34445 fi
34446 if test $ol_cv_lib_db = no ; then
34447         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34448 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34449 if test "${ol_cv_db_none+set}" = set; then
34450   echo $ECHO_N "(cached) $ECHO_C" >&6
34451 else
34452
34453         ol_DB_LIB=
34454         ol_LIBS=$LIBS
34455         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34456
34457         cat >conftest.$ac_ext <<_ACEOF
34458 /* confdefs.h.  */
34459 _ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h.  */
34463
34464 #ifdef HAVE_DB_185_H
34465 # include <db_185.h>
34466 #else
34467 # include <db.h>
34468 #endif
34469
34470 #ifndef DB_VERSION_MAJOR
34471 # define DB_VERSION_MAJOR 1
34472 #endif
34473
34474 #ifndef NULL
34475 #define NULL ((void*)0)
34476 #endif
34477
34478 int
34479 main ()
34480 {
34481
34482 #if DB_VERSION_MAJOR > 1
34483         {
34484                 char *version;
34485                 int major, minor, patch;
34486
34487                 version = db_version( &major, &minor, &patch );
34488
34489                 if( major != DB_VERSION_MAJOR ||
34490                         minor < DB_VERSION_MINOR )
34491                 {
34492                         printf("Berkeley DB version mismatch\n"
34493                                 "\theader: %s\n\tlibrary: %s\n",
34494                                 DB_VERSION_STRING, version);
34495                         return 1;
34496                 }
34497         }
34498 #endif
34499
34500 #if DB_VERSION_MAJOR > 2
34501         db_env_create( NULL, 0 );
34502 #elif DB_VERSION_MAJOR > 1
34503         db_appexit( NULL );
34504 #else
34505         (void) dbopen( NULL, 0, 0, 0, NULL);
34506 #endif
34507
34508   ;
34509   return 0;
34510 }
34511 _ACEOF
34512 rm -f conftest.$ac_objext conftest$ac_exeext
34513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34514   (eval $ac_link) 2>conftest.er1
34515   ac_status=$?
34516   grep -v '^ *+' conftest.er1 >conftest.err
34517   rm -f conftest.er1
34518   cat conftest.err >&5
34519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520   (exit $ac_status); } &&
34521          { ac_try='test -z "$ac_c_werror_flag"
34522                          || test ! -s conftest.err'
34523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524   (eval $ac_try) 2>&5
34525   ac_status=$?
34526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); }; } &&
34528          { ac_try='test -s conftest$ac_exeext'
34529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34530   (eval $ac_try) 2>&5
34531   ac_status=$?
34532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533   (exit $ac_status); }; }; then
34534   ol_cv_db_none=yes
34535 else
34536   echo "$as_me: failed program was:" >&5
34537 sed 's/^/| /' conftest.$ac_ext >&5
34538
34539 ol_cv_db_none=no
34540 fi
34541 rm -f conftest.err conftest.$ac_objext \
34542       conftest$ac_exeext conftest.$ac_ext
34543
34544         LIBS="$ol_LIBS"
34545
34546 fi
34547 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34548 echo "${ECHO_T}$ol_cv_db_none" >&6
34549
34550         if test $ol_cv_db_none = yes ; then
34551                 ol_cv_lib_db=yes
34552         fi
34553 fi
34554
34555
34556         if test "$ol_cv_lib_db" != no ; then
34557                 ol_cv_berkeley_db=yes
34558                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34559 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34560 if test "${ol_cv_berkeley_db_version+set}" = set; then
34561   echo $ECHO_N "(cached) $ECHO_C" >&6
34562 else
34563
34564         ol_LIBS="$LIBS"
34565         LIBS="$LTHREAD_LIBS $LIBS"
34566         if test $ol_cv_lib_db != yes ; then
34567                 LIBS="$ol_cv_lib_db $LIBS"
34568         fi
34569
34570         if test "$cross_compiling" = yes; then
34571   ol_cv_berkeley_db_version=cross
34572 else
34573   cat >conftest.$ac_ext <<_ACEOF
34574 /* confdefs.h.  */
34575 _ACEOF
34576 cat confdefs.h >>conftest.$ac_ext
34577 cat >>conftest.$ac_ext <<_ACEOF
34578 /* end confdefs.h.  */
34579
34580 #ifdef HAVE_DB_185_H
34581         choke me;
34582 #else
34583 #include <db.h>
34584 #endif
34585 #ifndef DB_VERSION_MAJOR
34586 # define DB_VERSION_MAJOR 1
34587 #endif
34588 #ifndef NULL
34589 #define NULL ((void *)0)
34590 #endif
34591 main()
34592 {
34593 #if DB_VERSION_MAJOR > 1
34594         char *version;
34595         int major, minor, patch;
34596
34597         version = db_version( &major, &minor, &patch );
34598
34599         if( major != DB_VERSION_MAJOR ||
34600                 minor != DB_VERSION_MINOR ||
34601                 patch != DB_VERSION_PATCH )
34602         {
34603                 printf("Berkeley DB version mismatch\n"
34604                         "\theader: %s\n\tlibrary: %s\n",
34605                         DB_VERSION_STRING, version);
34606                 return 1;
34607         }
34608 #endif
34609
34610         return 0;
34611 }
34612 _ACEOF
34613 rm -f conftest$ac_exeext
34614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34615   (eval $ac_link) 2>&5
34616   ac_status=$?
34617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34620   (eval $ac_try) 2>&5
34621   ac_status=$?
34622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623   (exit $ac_status); }; }; then
34624   ol_cv_berkeley_db_version=yes
34625 else
34626   echo "$as_me: program exited with status $ac_status" >&5
34627 echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34629
34630 ( exit $ac_status )
34631 ol_cv_berkeley_db_version=no
34632 fi
34633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34634 fi
34635
34636         LIBS="$ol_LIBS"
34637
34638 fi
34639 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34640 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34641
34642         if test $ol_cv_berkeley_db_version = no ; then
34643                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34644 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34645    { (exit 1); exit 1; }; }
34646         fi
34647
34648                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34649 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34650 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34651   echo $ECHO_N "(cached) $ECHO_C" >&6
34652 else
34653
34654         ol_LIBS="$LIBS"
34655         LIBS="$LTHREAD_LIBS $LIBS"
34656         if test $ol_cv_lib_db != yes ; then
34657                 LIBS="$ol_cv_lib_db $LIBS"
34658         fi
34659
34660         if test "$cross_compiling" = yes; then
34661   ol_cv_berkeley_db_thread=cross
34662 else
34663   cat >conftest.$ac_ext <<_ACEOF
34664 /* confdefs.h.  */
34665 _ACEOF
34666 cat confdefs.h >>conftest.$ac_ext
34667 cat >>conftest.$ac_ext <<_ACEOF
34668 /* end confdefs.h.  */
34669
34670 #ifdef HAVE_DB_185_H
34671         choke me;
34672 #else
34673 #include <db.h>
34674 #endif
34675 #ifndef NULL
34676 #define NULL ((void *)0)
34677 #endif
34678 main()
34679 {
34680         int rc;
34681         u_int32_t flags = DB_CREATE |
34682 #ifdef DB_PRIVATE
34683                 DB_PRIVATE |
34684 #endif
34685                 DB_THREAD;
34686
34687 #if DB_VERSION_MAJOR > 2
34688         DB_ENV *env = NULL;
34689
34690         rc = db_env_create( &env, 0 );
34691
34692         flags |= DB_INIT_MPOOL;
34693 #ifdef DB_MPOOL_PRIVATE
34694         flags |= DB_MPOOL_PRIVATE;
34695 #endif
34696
34697         if( rc ) {
34698                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34699                 return rc;
34700         }
34701
34702 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34703         rc = env->open( env, NULL, flags, 0 );
34704 #else
34705         rc = env->open( env, NULL, NULL, flags, 0 );
34706 #endif
34707
34708         if ( rc == 0 ) {
34709                 rc = env->close( env, 0 );
34710         }
34711
34712         if( rc ) {
34713                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34714                 return rc;
34715         }
34716
34717 #else
34718         DB_ENV env;
34719         memset( &env, '\0', sizeof(env) );
34720
34721         rc = db_appinit( NULL, NULL, &env, flags );
34722
34723         if( rc == 0 ) {
34724                 db_appexit( &env );
34725         }
34726
34727         unlink("__db_mpool.share");
34728         unlink("__db_lock.share");
34729 #endif
34730
34731         return rc;
34732 }
34733 _ACEOF
34734 rm -f conftest$ac_exeext
34735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34736   (eval $ac_link) 2>&5
34737   ac_status=$?
34738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741   (eval $ac_try) 2>&5
34742   ac_status=$?
34743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744   (exit $ac_status); }; }; then
34745   ol_cv_berkeley_db_thread=yes
34746 else
34747   echo "$as_me: program exited with status $ac_status" >&5
34748 echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34750
34751 ( exit $ac_status )
34752 ol_cv_berkeley_db_thread=no
34753 fi
34754 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34755 fi
34756
34757         LIBS="$ol_LIBS"
34758
34759 fi
34760 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34761 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34762
34763         if test $ol_cv_berkeley_db_thread != no ; then
34764
34765 cat >>confdefs.h <<\_ACEOF
34766 #define HAVE_BERKELEY_DB_THREAD 1
34767 _ACEOF
34768
34769         fi
34770
34771         fi
34772 fi
34773
34774         fi
34775
34776         if test $ol_cv_berkeley_db != no ; then
34777
34778 cat >>confdefs.h <<\_ACEOF
34779 #define HAVE_BERKELEY_DB 1
34780 _ACEOF
34781
34782
34783                 ol_link_ldbm=berkeley
34784                 ol_enable_ldbm_api=berkeley
34785
34786                 if test $ol_enable_ldbm_type = hash ; then
34787
34788 cat >>confdefs.h <<\_ACEOF
34789 #define LDBM_USE_DBHASH 1
34790 _ACEOF
34791
34792                 else
34793
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LDBM_USE_DBBTREE 1
34796 _ACEOF
34797
34798                 fi
34799
34800                                                 if test $ol_cv_lib_db != yes ; then
34801                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34802                 fi
34803         fi
34804         ;;
34805 esac
34806
34807 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34808         if test $ol_link_ldbm != berkeley ; then
34809                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34810 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34811    { (exit 1); exit 1; }; }
34812         else
34813                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34814 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34815 if test "${ol_cv_bdb_compat+set}" = set; then
34816   echo $ECHO_N "(cached) $ECHO_C" >&6
34817 else
34818
34819         cat >conftest.$ac_ext <<_ACEOF
34820 /* confdefs.h.  */
34821 _ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h.  */
34825
34826 #include <db.h>
34827
34828  /* this check could be improved */
34829 #ifndef DB_VERSION_MAJOR
34830 #       define DB_VERSION_MAJOR 1
34831 #endif
34832 #ifndef DB_VERSION_MINOR
34833 #       define DB_VERSION_MINOR 0
34834 #endif
34835
34836 /* require 4.2 or later */
34837 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34838         __db_version_compat
34839 #endif
34840
34841 _ACEOF
34842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34843   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34844   ol_cv_bdb_compat=yes
34845 else
34846   ol_cv_bdb_compat=no
34847 fi
34848 rm -f conftest*
34849
34850 fi
34851 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34852 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34853
34854
34855                 if test $ol_cv_bdb_compat != yes ; then
34856                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34857 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34858    { (exit 1); exit 1; }; }
34859                 fi
34860         fi
34861 fi
34862
34863 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34864         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34865 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34866         ol_enable_ldbm_api=none
34867 fi
34868
34869 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34870         echo "$as_me:$LINENO: checking for MDBM library" >&5
34871 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34872 if test "${ol_cv_lib_mdbm+set}" = set; then
34873   echo $ECHO_N "(cached) $ECHO_C" >&6
34874 else
34875         ol_LIBS="$LIBS"
34876         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34877 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34878 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34879   echo $ECHO_N "(cached) $ECHO_C" >&6
34880 else
34881   cat >conftest.$ac_ext <<_ACEOF
34882 /* confdefs.h.  */
34883 _ACEOF
34884 cat confdefs.h >>conftest.$ac_ext
34885 cat >>conftest.$ac_ext <<_ACEOF
34886 /* end confdefs.h.  */
34887 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34889 #define mdbm_set_chain innocuous_mdbm_set_chain
34890
34891 /* System header to define __stub macros and hopefully few prototypes,
34892     which can conflict with char mdbm_set_chain (); below.
34893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34894     <limits.h> exists even on freestanding compilers.  */
34895
34896 #ifdef __STDC__
34897 # include <limits.h>
34898 #else
34899 # include <assert.h>
34900 #endif
34901
34902 #undef mdbm_set_chain
34903
34904 /* Override any gcc2 internal prototype to avoid an error.  */
34905 #ifdef __cplusplus
34906 extern "C"
34907 {
34908 #endif
34909 /* We use char because int might match the return type of a gcc2
34910    builtin and then its argument prototype would still apply.  */
34911 char mdbm_set_chain ();
34912 /* The GNU C library defines this for functions which it implements
34913     to always fail with ENOSYS.  Some functions are actually named
34914     something starting with __ and the normal name is an alias.  */
34915 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34916 choke me
34917 #else
34918 char (*f) () = mdbm_set_chain;
34919 #endif
34920 #ifdef __cplusplus
34921 }
34922 #endif
34923
34924 int
34925 main ()
34926 {
34927 return f != mdbm_set_chain;
34928   ;
34929   return 0;
34930 }
34931 _ACEOF
34932 rm -f conftest.$ac_objext conftest$ac_exeext
34933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34934   (eval $ac_link) 2>conftest.er1
34935   ac_status=$?
34936   grep -v '^ *+' conftest.er1 >conftest.err
34937   rm -f conftest.er1
34938   cat conftest.err >&5
34939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940   (exit $ac_status); } &&
34941          { ac_try='test -z "$ac_c_werror_flag"
34942                          || test ! -s conftest.err'
34943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944   (eval $ac_try) 2>&5
34945   ac_status=$?
34946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947   (exit $ac_status); }; } &&
34948          { ac_try='test -s conftest$ac_exeext'
34949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34950   (eval $ac_try) 2>&5
34951   ac_status=$?
34952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953   (exit $ac_status); }; }; then
34954   ac_cv_func_mdbm_set_chain=yes
34955 else
34956   echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34958
34959 ac_cv_func_mdbm_set_chain=no
34960 fi
34961 rm -f conftest.err conftest.$ac_objext \
34962       conftest$ac_exeext conftest.$ac_ext
34963 fi
34964 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34965 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34966 if test $ac_cv_func_mdbm_set_chain = yes; then
34967   ol_cv_lib_mdbm=yes
34968 else
34969
34970                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34971 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34972 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34973   echo $ECHO_N "(cached) $ECHO_C" >&6
34974 else
34975   ac_check_lib_save_LIBS=$LIBS
34976 LIBS="-lmdbm  $LIBS"
34977 cat >conftest.$ac_ext <<_ACEOF
34978 /* confdefs.h.  */
34979 _ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h.  */
34983
34984 /* Override any gcc2 internal prototype to avoid an error.  */
34985 #ifdef __cplusplus
34986 extern "C"
34987 #endif
34988 /* We use char because int might match the return type of a gcc2
34989    builtin and then its argument prototype would still apply.  */
34990 char mdbm_set_chain ();
34991 int
34992 main ()
34993 {
34994 mdbm_set_chain ();
34995   ;
34996   return 0;
34997 }
34998 _ACEOF
34999 rm -f conftest.$ac_objext conftest$ac_exeext
35000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35001   (eval $ac_link) 2>conftest.er1
35002   ac_status=$?
35003   grep -v '^ *+' conftest.er1 >conftest.err
35004   rm -f conftest.er1
35005   cat conftest.err >&5
35006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007   (exit $ac_status); } &&
35008          { ac_try='test -z "$ac_c_werror_flag"
35009                          || test ! -s conftest.err'
35010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35011   (eval $ac_try) 2>&5
35012   ac_status=$?
35013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014   (exit $ac_status); }; } &&
35015          { ac_try='test -s conftest$ac_exeext'
35016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35017   (eval $ac_try) 2>&5
35018   ac_status=$?
35019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020   (exit $ac_status); }; }; then
35021   ac_cv_lib_mdbm_mdbm_set_chain=yes
35022 else
35023   echo "$as_me: failed program was:" >&5
35024 sed 's/^/| /' conftest.$ac_ext >&5
35025
35026 ac_cv_lib_mdbm_mdbm_set_chain=no
35027 fi
35028 rm -f conftest.err conftest.$ac_objext \
35029       conftest$ac_exeext conftest.$ac_ext
35030 LIBS=$ac_check_lib_save_LIBS
35031 fi
35032 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35033 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35034 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35035   ol_cv_lib_mdbm=-lmdbm
35036 else
35037   ol_cv_lib_mdbm=no
35038 fi
35039
35040
35041 fi
35042
35043         LIBS="$ol_LIBS"
35044
35045 fi
35046 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35047 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35048
35049
35050
35051 for ac_header in mdbm.h
35052 do
35053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35055   echo "$as_me:$LINENO: checking for $ac_header" >&5
35056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35058   echo $ECHO_N "(cached) $ECHO_C" >&6
35059 fi
35060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35062 else
35063   # Is the header compilable?
35064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35066 cat >conftest.$ac_ext <<_ACEOF
35067 /* confdefs.h.  */
35068 _ACEOF
35069 cat confdefs.h >>conftest.$ac_ext
35070 cat >>conftest.$ac_ext <<_ACEOF
35071 /* end confdefs.h.  */
35072 $ac_includes_default
35073 #include <$ac_header>
35074 _ACEOF
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077   (eval $ac_compile) 2>conftest.er1
35078   ac_status=$?
35079   grep -v '^ *+' conftest.er1 >conftest.err
35080   rm -f conftest.er1
35081   cat conftest.err >&5
35082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083   (exit $ac_status); } &&
35084          { ac_try='test -z "$ac_c_werror_flag"
35085                          || test ! -s conftest.err'
35086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087   (eval $ac_try) 2>&5
35088   ac_status=$?
35089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090   (exit $ac_status); }; } &&
35091          { ac_try='test -s conftest.$ac_objext'
35092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093   (eval $ac_try) 2>&5
35094   ac_status=$?
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); }; }; then
35097   ac_header_compiler=yes
35098 else
35099   echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35101
35102 ac_header_compiler=no
35103 fi
35104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35106 echo "${ECHO_T}$ac_header_compiler" >&6
35107
35108 # Is the header present?
35109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35111 cat >conftest.$ac_ext <<_ACEOF
35112 /* confdefs.h.  */
35113 _ACEOF
35114 cat confdefs.h >>conftest.$ac_ext
35115 cat >>conftest.$ac_ext <<_ACEOF
35116 /* end confdefs.h.  */
35117 #include <$ac_header>
35118 _ACEOF
35119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35121   ac_status=$?
35122   grep -v '^ *+' conftest.er1 >conftest.err
35123   rm -f conftest.er1
35124   cat conftest.err >&5
35125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126   (exit $ac_status); } >/dev/null; then
35127   if test -s conftest.err; then
35128     ac_cpp_err=$ac_c_preproc_warn_flag
35129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35130   else
35131     ac_cpp_err=
35132   fi
35133 else
35134   ac_cpp_err=yes
35135 fi
35136 if test -z "$ac_cpp_err"; then
35137   ac_header_preproc=yes
35138 else
35139   echo "$as_me: failed program was:" >&5
35140 sed 's/^/| /' conftest.$ac_ext >&5
35141
35142   ac_header_preproc=no
35143 fi
35144 rm -f conftest.err conftest.$ac_ext
35145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35146 echo "${ECHO_T}$ac_header_preproc" >&6
35147
35148 # So?  What about this header?
35149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35150   yes:no: )
35151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35155     ac_header_preproc=yes
35156     ;;
35157   no:yes:* )
35158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35170     (
35171       cat <<\_ASBOX
35172 ## --------------------------------------------- ##
35173 ## Report this to <http://www.openldap.org/its/> ##
35174 ## --------------------------------------------- ##
35175 _ASBOX
35176     ) |
35177       sed "s/^/$as_me: WARNING:     /" >&2
35178     ;;
35179 esac
35180 echo "$as_me:$LINENO: checking for $ac_header" >&5
35181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35183   echo $ECHO_N "(cached) $ECHO_C" >&6
35184 else
35185   eval "$as_ac_Header=\$ac_header_preproc"
35186 fi
35187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35189
35190 fi
35191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35192   cat >>confdefs.h <<_ACEOF
35193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35194 _ACEOF
35195
35196 fi
35197
35198 done
35199
35200  echo "$as_me:$LINENO: checking for db" >&5
35201 echo $ECHO_N "checking for db... $ECHO_C" >&6
35202 if test "${ol_cv_mdbm+set}" = set; then
35203   echo $ECHO_N "(cached) $ECHO_C" >&6
35204 else
35205
35206         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35207                 ol_cv_mdbm=no
35208         else
35209                 ol_cv_mdbm=yes
35210         fi
35211
35212 fi
35213 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35214 echo "${ECHO_T}$ol_cv_mdbm" >&6
35215  if test $ol_cv_mdbm = yes ; then
35216
35217 cat >>confdefs.h <<\_ACEOF
35218 #define HAVE_MDBM 1
35219 _ACEOF
35220
35221  fi
35222
35223
35224         if test $ol_cv_mdbm = yes ; then
35225                 ol_link_ldbm=mdbm
35226                 ol_enable_ldbm_api=mdbm
35227                 if test $ol_cv_lib_mdbm != yes ; then
35228                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35229                 fi
35230         fi
35231 fi
35232
35233 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35234         echo "$as_me:$LINENO: checking for GDBM library" >&5
35235 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35236 if test "${ol_cv_lib_gdbm+set}" = set; then
35237   echo $ECHO_N "(cached) $ECHO_C" >&6
35238 else
35239         ol_LIBS="$LIBS"
35240         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35241 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35242 if test "${ac_cv_func_gdbm_open+set}" = set; then
35243   echo $ECHO_N "(cached) $ECHO_C" >&6
35244 else
35245   cat >conftest.$ac_ext <<_ACEOF
35246 /* confdefs.h.  */
35247 _ACEOF
35248 cat confdefs.h >>conftest.$ac_ext
35249 cat >>conftest.$ac_ext <<_ACEOF
35250 /* end confdefs.h.  */
35251 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35253 #define gdbm_open innocuous_gdbm_open
35254
35255 /* System header to define __stub macros and hopefully few prototypes,
35256     which can conflict with char gdbm_open (); below.
35257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35258     <limits.h> exists even on freestanding compilers.  */
35259
35260 #ifdef __STDC__
35261 # include <limits.h>
35262 #else
35263 # include <assert.h>
35264 #endif
35265
35266 #undef gdbm_open
35267
35268 /* Override any gcc2 internal prototype to avoid an error.  */
35269 #ifdef __cplusplus
35270 extern "C"
35271 {
35272 #endif
35273 /* We use char because int might match the return type of a gcc2
35274    builtin and then its argument prototype would still apply.  */
35275 char gdbm_open ();
35276 /* The GNU C library defines this for functions which it implements
35277     to always fail with ENOSYS.  Some functions are actually named
35278     something starting with __ and the normal name is an alias.  */
35279 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35280 choke me
35281 #else
35282 char (*f) () = gdbm_open;
35283 #endif
35284 #ifdef __cplusplus
35285 }
35286 #endif
35287
35288 int
35289 main ()
35290 {
35291 return f != gdbm_open;
35292   ;
35293   return 0;
35294 }
35295 _ACEOF
35296 rm -f conftest.$ac_objext conftest$ac_exeext
35297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35298   (eval $ac_link) 2>conftest.er1
35299   ac_status=$?
35300   grep -v '^ *+' conftest.er1 >conftest.err
35301   rm -f conftest.er1
35302   cat conftest.err >&5
35303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304   (exit $ac_status); } &&
35305          { ac_try='test -z "$ac_c_werror_flag"
35306                          || test ! -s conftest.err'
35307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35308   (eval $ac_try) 2>&5
35309   ac_status=$?
35310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311   (exit $ac_status); }; } &&
35312          { ac_try='test -s conftest$ac_exeext'
35313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314   (eval $ac_try) 2>&5
35315   ac_status=$?
35316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317   (exit $ac_status); }; }; then
35318   ac_cv_func_gdbm_open=yes
35319 else
35320   echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35322
35323 ac_cv_func_gdbm_open=no
35324 fi
35325 rm -f conftest.err conftest.$ac_objext \
35326       conftest$ac_exeext conftest.$ac_ext
35327 fi
35328 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35329 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35330 if test $ac_cv_func_gdbm_open = yes; then
35331   ol_cv_lib_gdbm=yes
35332 else
35333
35334                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35335 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35336 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35337   echo $ECHO_N "(cached) $ECHO_C" >&6
35338 else
35339   ac_check_lib_save_LIBS=$LIBS
35340 LIBS="-lgdbm  $LIBS"
35341 cat >conftest.$ac_ext <<_ACEOF
35342 /* confdefs.h.  */
35343 _ACEOF
35344 cat confdefs.h >>conftest.$ac_ext
35345 cat >>conftest.$ac_ext <<_ACEOF
35346 /* end confdefs.h.  */
35347
35348 /* Override any gcc2 internal prototype to avoid an error.  */
35349 #ifdef __cplusplus
35350 extern "C"
35351 #endif
35352 /* We use char because int might match the return type of a gcc2
35353    builtin and then its argument prototype would still apply.  */
35354 char gdbm_open ();
35355 int
35356 main ()
35357 {
35358 gdbm_open ();
35359   ;
35360   return 0;
35361 }
35362 _ACEOF
35363 rm -f conftest.$ac_objext conftest$ac_exeext
35364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35365   (eval $ac_link) 2>conftest.er1
35366   ac_status=$?
35367   grep -v '^ *+' conftest.er1 >conftest.err
35368   rm -f conftest.er1
35369   cat conftest.err >&5
35370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371   (exit $ac_status); } &&
35372          { ac_try='test -z "$ac_c_werror_flag"
35373                          || test ! -s conftest.err'
35374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35375   (eval $ac_try) 2>&5
35376   ac_status=$?
35377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35378   (exit $ac_status); }; } &&
35379          { ac_try='test -s conftest$ac_exeext'
35380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35381   (eval $ac_try) 2>&5
35382   ac_status=$?
35383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384   (exit $ac_status); }; }; then
35385   ac_cv_lib_gdbm_gdbm_open=yes
35386 else
35387   echo "$as_me: failed program was:" >&5
35388 sed 's/^/| /' conftest.$ac_ext >&5
35389
35390 ac_cv_lib_gdbm_gdbm_open=no
35391 fi
35392 rm -f conftest.err conftest.$ac_objext \
35393       conftest$ac_exeext conftest.$ac_ext
35394 LIBS=$ac_check_lib_save_LIBS
35395 fi
35396 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35397 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35398 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35399   ol_cv_lib_gdbm=-lgdbm
35400 else
35401   ol_cv_lib_gdbm=no
35402 fi
35403
35404
35405 fi
35406
35407         LIBS="$ol_LIBS"
35408
35409 fi
35410 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35411 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35412
35413
35414
35415 for ac_header in gdbm.h
35416 do
35417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35419   echo "$as_me:$LINENO: checking for $ac_header" >&5
35420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35422   echo $ECHO_N "(cached) $ECHO_C" >&6
35423 fi
35424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35426 else
35427   # Is the header compilable?
35428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35430 cat >conftest.$ac_ext <<_ACEOF
35431 /* confdefs.h.  */
35432 _ACEOF
35433 cat confdefs.h >>conftest.$ac_ext
35434 cat >>conftest.$ac_ext <<_ACEOF
35435 /* end confdefs.h.  */
35436 $ac_includes_default
35437 #include <$ac_header>
35438 _ACEOF
35439 rm -f conftest.$ac_objext
35440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35441   (eval $ac_compile) 2>conftest.er1
35442   ac_status=$?
35443   grep -v '^ *+' conftest.er1 >conftest.err
35444   rm -f conftest.er1
35445   cat conftest.err >&5
35446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447   (exit $ac_status); } &&
35448          { ac_try='test -z "$ac_c_werror_flag"
35449                          || test ! -s conftest.err'
35450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35451   (eval $ac_try) 2>&5
35452   ac_status=$?
35453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454   (exit $ac_status); }; } &&
35455          { ac_try='test -s conftest.$ac_objext'
35456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35457   (eval $ac_try) 2>&5
35458   ac_status=$?
35459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460   (exit $ac_status); }; }; then
35461   ac_header_compiler=yes
35462 else
35463   echo "$as_me: failed program was:" >&5
35464 sed 's/^/| /' conftest.$ac_ext >&5
35465
35466 ac_header_compiler=no
35467 fi
35468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35470 echo "${ECHO_T}$ac_header_compiler" >&6
35471
35472 # Is the header present?
35473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35475 cat >conftest.$ac_ext <<_ACEOF
35476 /* confdefs.h.  */
35477 _ACEOF
35478 cat confdefs.h >>conftest.$ac_ext
35479 cat >>conftest.$ac_ext <<_ACEOF
35480 /* end confdefs.h.  */
35481 #include <$ac_header>
35482 _ACEOF
35483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35485   ac_status=$?
35486   grep -v '^ *+' conftest.er1 >conftest.err
35487   rm -f conftest.er1
35488   cat conftest.err >&5
35489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490   (exit $ac_status); } >/dev/null; then
35491   if test -s conftest.err; then
35492     ac_cpp_err=$ac_c_preproc_warn_flag
35493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35494   else
35495     ac_cpp_err=
35496   fi
35497 else
35498   ac_cpp_err=yes
35499 fi
35500 if test -z "$ac_cpp_err"; then
35501   ac_header_preproc=yes
35502 else
35503   echo "$as_me: failed program was:" >&5
35504 sed 's/^/| /' conftest.$ac_ext >&5
35505
35506   ac_header_preproc=no
35507 fi
35508 rm -f conftest.err conftest.$ac_ext
35509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35510 echo "${ECHO_T}$ac_header_preproc" >&6
35511
35512 # So?  What about this header?
35513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35514   yes:no: )
35515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35519     ac_header_preproc=yes
35520     ;;
35521   no:yes:* )
35522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35534     (
35535       cat <<\_ASBOX
35536 ## --------------------------------------------- ##
35537 ## Report this to <http://www.openldap.org/its/> ##
35538 ## --------------------------------------------- ##
35539 _ASBOX
35540     ) |
35541       sed "s/^/$as_me: WARNING:     /" >&2
35542     ;;
35543 esac
35544 echo "$as_me:$LINENO: checking for $ac_header" >&5
35545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35547   echo $ECHO_N "(cached) $ECHO_C" >&6
35548 else
35549   eval "$as_ac_Header=\$ac_header_preproc"
35550 fi
35551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35553
35554 fi
35555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35556   cat >>confdefs.h <<_ACEOF
35557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35558 _ACEOF
35559
35560 fi
35561
35562 done
35563
35564  echo "$as_me:$LINENO: checking for db" >&5
35565 echo $ECHO_N "checking for db... $ECHO_C" >&6
35566 if test "${ol_cv_gdbm+set}" = set; then
35567   echo $ECHO_N "(cached) $ECHO_C" >&6
35568 else
35569
35570         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35571                 ol_cv_gdbm=no
35572         else
35573                 ol_cv_gdbm=yes
35574         fi
35575
35576 fi
35577 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35578 echo "${ECHO_T}$ol_cv_gdbm" >&6
35579  if test $ol_cv_gdbm = yes ; then
35580
35581 cat >>confdefs.h <<\_ACEOF
35582 #define HAVE_GDBM 1
35583 _ACEOF
35584
35585  fi
35586
35587
35588         if test $ol_cv_gdbm = yes ; then
35589                 ol_link_ldbm=gdbm
35590                 ol_enable_ldbm_api=gdbm
35591
35592                 if test $ol_cv_lib_gdbm != yes ; then
35593                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35594                 fi
35595         fi
35596 fi
35597
35598 if test $ol_enable_ldbm_api = ndbm ; then
35599         echo "$as_me:$LINENO: checking for NDBM library" >&5
35600 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35601 if test "${ol_cv_lib_ndbm+set}" = set; then
35602   echo $ECHO_N "(cached) $ECHO_C" >&6
35603 else
35604         ol_LIBS="$LIBS"
35605         echo "$as_me:$LINENO: checking for dbm_open" >&5
35606 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35607 if test "${ac_cv_func_dbm_open+set}" = set; then
35608   echo $ECHO_N "(cached) $ECHO_C" >&6
35609 else
35610   cat >conftest.$ac_ext <<_ACEOF
35611 /* confdefs.h.  */
35612 _ACEOF
35613 cat confdefs.h >>conftest.$ac_ext
35614 cat >>conftest.$ac_ext <<_ACEOF
35615 /* end confdefs.h.  */
35616 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35618 #define dbm_open innocuous_dbm_open
35619
35620 /* System header to define __stub macros and hopefully few prototypes,
35621     which can conflict with char dbm_open (); below.
35622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35623     <limits.h> exists even on freestanding compilers.  */
35624
35625 #ifdef __STDC__
35626 # include <limits.h>
35627 #else
35628 # include <assert.h>
35629 #endif
35630
35631 #undef dbm_open
35632
35633 /* Override any gcc2 internal prototype to avoid an error.  */
35634 #ifdef __cplusplus
35635 extern "C"
35636 {
35637 #endif
35638 /* We use char because int might match the return type of a gcc2
35639    builtin and then its argument prototype would still apply.  */
35640 char dbm_open ();
35641 /* The GNU C library defines this for functions which it implements
35642     to always fail with ENOSYS.  Some functions are actually named
35643     something starting with __ and the normal name is an alias.  */
35644 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35645 choke me
35646 #else
35647 char (*f) () = dbm_open;
35648 #endif
35649 #ifdef __cplusplus
35650 }
35651 #endif
35652
35653 int
35654 main ()
35655 {
35656 return f != dbm_open;
35657   ;
35658   return 0;
35659 }
35660 _ACEOF
35661 rm -f conftest.$ac_objext conftest$ac_exeext
35662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35663   (eval $ac_link) 2>conftest.er1
35664   ac_status=$?
35665   grep -v '^ *+' conftest.er1 >conftest.err
35666   rm -f conftest.er1
35667   cat conftest.err >&5
35668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669   (exit $ac_status); } &&
35670          { ac_try='test -z "$ac_c_werror_flag"
35671                          || test ! -s conftest.err'
35672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35673   (eval $ac_try) 2>&5
35674   ac_status=$?
35675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676   (exit $ac_status); }; } &&
35677          { ac_try='test -s conftest$ac_exeext'
35678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35679   (eval $ac_try) 2>&5
35680   ac_status=$?
35681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682   (exit $ac_status); }; }; then
35683   ac_cv_func_dbm_open=yes
35684 else
35685   echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35687
35688 ac_cv_func_dbm_open=no
35689 fi
35690 rm -f conftest.err conftest.$ac_objext \
35691       conftest$ac_exeext conftest.$ac_ext
35692 fi
35693 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35694 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35695 if test $ac_cv_func_dbm_open = yes; then
35696   ol_cv_lib_ndbm=yes
35697 else
35698
35699                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35700 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35701 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35702   echo $ECHO_N "(cached) $ECHO_C" >&6
35703 else
35704   ac_check_lib_save_LIBS=$LIBS
35705 LIBS="-lndbm  $LIBS"
35706 cat >conftest.$ac_ext <<_ACEOF
35707 /* confdefs.h.  */
35708 _ACEOF
35709 cat confdefs.h >>conftest.$ac_ext
35710 cat >>conftest.$ac_ext <<_ACEOF
35711 /* end confdefs.h.  */
35712
35713 /* Override any gcc2 internal prototype to avoid an error.  */
35714 #ifdef __cplusplus
35715 extern "C"
35716 #endif
35717 /* We use char because int might match the return type of a gcc2
35718    builtin and then its argument prototype would still apply.  */
35719 char dbm_open ();
35720 int
35721 main ()
35722 {
35723 dbm_open ();
35724   ;
35725   return 0;
35726 }
35727 _ACEOF
35728 rm -f conftest.$ac_objext conftest$ac_exeext
35729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35730   (eval $ac_link) 2>conftest.er1
35731   ac_status=$?
35732   grep -v '^ *+' conftest.er1 >conftest.err
35733   rm -f conftest.er1
35734   cat conftest.err >&5
35735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736   (exit $ac_status); } &&
35737          { ac_try='test -z "$ac_c_werror_flag"
35738                          || test ! -s conftest.err'
35739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740   (eval $ac_try) 2>&5
35741   ac_status=$?
35742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743   (exit $ac_status); }; } &&
35744          { ac_try='test -s conftest$ac_exeext'
35745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35746   (eval $ac_try) 2>&5
35747   ac_status=$?
35748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749   (exit $ac_status); }; }; then
35750   ac_cv_lib_ndbm_dbm_open=yes
35751 else
35752   echo "$as_me: failed program was:" >&5
35753 sed 's/^/| /' conftest.$ac_ext >&5
35754
35755 ac_cv_lib_ndbm_dbm_open=no
35756 fi
35757 rm -f conftest.err conftest.$ac_objext \
35758       conftest$ac_exeext conftest.$ac_ext
35759 LIBS=$ac_check_lib_save_LIBS
35760 fi
35761 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35762 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35763 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35764   ol_cv_lib_ndbm=-lndbm
35765 else
35766
35767                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35768 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35769 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35770   echo $ECHO_N "(cached) $ECHO_C" >&6
35771 else
35772   ac_check_lib_save_LIBS=$LIBS
35773 LIBS="-ldbm  $LIBS"
35774 cat >conftest.$ac_ext <<_ACEOF
35775 /* confdefs.h.  */
35776 _ACEOF
35777 cat confdefs.h >>conftest.$ac_ext
35778 cat >>conftest.$ac_ext <<_ACEOF
35779 /* end confdefs.h.  */
35780
35781 /* Override any gcc2 internal prototype to avoid an error.  */
35782 #ifdef __cplusplus
35783 extern "C"
35784 #endif
35785 /* We use char because int might match the return type of a gcc2
35786    builtin and then its argument prototype would still apply.  */
35787 char dbm_open ();
35788 int
35789 main ()
35790 {
35791 dbm_open ();
35792   ;
35793   return 0;
35794 }
35795 _ACEOF
35796 rm -f conftest.$ac_objext conftest$ac_exeext
35797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35798   (eval $ac_link) 2>conftest.er1
35799   ac_status=$?
35800   grep -v '^ *+' conftest.er1 >conftest.err
35801   rm -f conftest.er1
35802   cat conftest.err >&5
35803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804   (exit $ac_status); } &&
35805          { ac_try='test -z "$ac_c_werror_flag"
35806                          || test ! -s conftest.err'
35807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35808   (eval $ac_try) 2>&5
35809   ac_status=$?
35810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35811   (exit $ac_status); }; } &&
35812          { ac_try='test -s conftest$ac_exeext'
35813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35814   (eval $ac_try) 2>&5
35815   ac_status=$?
35816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817   (exit $ac_status); }; }; then
35818   ac_cv_lib_dbm_dbm_open=yes
35819 else
35820   echo "$as_me: failed program was:" >&5
35821 sed 's/^/| /' conftest.$ac_ext >&5
35822
35823 ac_cv_lib_dbm_dbm_open=no
35824 fi
35825 rm -f conftest.err conftest.$ac_objext \
35826       conftest$ac_exeext conftest.$ac_ext
35827 LIBS=$ac_check_lib_save_LIBS
35828 fi
35829 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35830 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35831 if test $ac_cv_lib_dbm_dbm_open = yes; then
35832   ol_cv_lib_ndbm=-ldbm
35833 else
35834   ol_cv_lib_ndbm=no
35835 fi
35836
35837 fi
35838
35839
35840 fi
35841
35842         LIBS="$ol_LIBS"
35843
35844 fi
35845 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35846 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35847
35848
35849
35850 for ac_header in ndbm.h
35851 do
35852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35854   echo "$as_me:$LINENO: checking for $ac_header" >&5
35855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35857   echo $ECHO_N "(cached) $ECHO_C" >&6
35858 fi
35859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35861 else
35862   # Is the header compilable?
35863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35865 cat >conftest.$ac_ext <<_ACEOF
35866 /* confdefs.h.  */
35867 _ACEOF
35868 cat confdefs.h >>conftest.$ac_ext
35869 cat >>conftest.$ac_ext <<_ACEOF
35870 /* end confdefs.h.  */
35871 $ac_includes_default
35872 #include <$ac_header>
35873 _ACEOF
35874 rm -f conftest.$ac_objext
35875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35876   (eval $ac_compile) 2>conftest.er1
35877   ac_status=$?
35878   grep -v '^ *+' conftest.er1 >conftest.err
35879   rm -f conftest.er1
35880   cat conftest.err >&5
35881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882   (exit $ac_status); } &&
35883          { ac_try='test -z "$ac_c_werror_flag"
35884                          || test ! -s conftest.err'
35885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35886   (eval $ac_try) 2>&5
35887   ac_status=$?
35888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35889   (exit $ac_status); }; } &&
35890          { ac_try='test -s conftest.$ac_objext'
35891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35892   (eval $ac_try) 2>&5
35893   ac_status=$?
35894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35895   (exit $ac_status); }; }; then
35896   ac_header_compiler=yes
35897 else
35898   echo "$as_me: failed program was:" >&5
35899 sed 's/^/| /' conftest.$ac_ext >&5
35900
35901 ac_header_compiler=no
35902 fi
35903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35905 echo "${ECHO_T}$ac_header_compiler" >&6
35906
35907 # Is the header present?
35908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35910 cat >conftest.$ac_ext <<_ACEOF
35911 /* confdefs.h.  */
35912 _ACEOF
35913 cat confdefs.h >>conftest.$ac_ext
35914 cat >>conftest.$ac_ext <<_ACEOF
35915 /* end confdefs.h.  */
35916 #include <$ac_header>
35917 _ACEOF
35918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35920   ac_status=$?
35921   grep -v '^ *+' conftest.er1 >conftest.err
35922   rm -f conftest.er1
35923   cat conftest.err >&5
35924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925   (exit $ac_status); } >/dev/null; then
35926   if test -s conftest.err; then
35927     ac_cpp_err=$ac_c_preproc_warn_flag
35928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35929   else
35930     ac_cpp_err=
35931   fi
35932 else
35933   ac_cpp_err=yes
35934 fi
35935 if test -z "$ac_cpp_err"; then
35936   ac_header_preproc=yes
35937 else
35938   echo "$as_me: failed program was:" >&5
35939 sed 's/^/| /' conftest.$ac_ext >&5
35940
35941   ac_header_preproc=no
35942 fi
35943 rm -f conftest.err conftest.$ac_ext
35944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35945 echo "${ECHO_T}$ac_header_preproc" >&6
35946
35947 # So?  What about this header?
35948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35949   yes:no: )
35950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35954     ac_header_preproc=yes
35955     ;;
35956   no:yes:* )
35957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35969     (
35970       cat <<\_ASBOX
35971 ## --------------------------------------------- ##
35972 ## Report this to <http://www.openldap.org/its/> ##
35973 ## --------------------------------------------- ##
35974 _ASBOX
35975     ) |
35976       sed "s/^/$as_me: WARNING:     /" >&2
35977     ;;
35978 esac
35979 echo "$as_me:$LINENO: checking for $ac_header" >&5
35980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35982   echo $ECHO_N "(cached) $ECHO_C" >&6
35983 else
35984   eval "$as_ac_Header=\$ac_header_preproc"
35985 fi
35986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35988
35989 fi
35990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35991   cat >>confdefs.h <<_ACEOF
35992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35993 _ACEOF
35994
35995 fi
35996
35997 done
35998
35999  echo "$as_me:$LINENO: checking for db" >&5
36000 echo $ECHO_N "checking for db... $ECHO_C" >&6
36001 if test "${ol_cv_ndbm+set}" = set; then
36002   echo $ECHO_N "(cached) $ECHO_C" >&6
36003 else
36004
36005         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36006                 ol_cv_ndbm=no
36007         else
36008                 ol_cv_ndbm=yes
36009         fi
36010
36011 fi
36012 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36013 echo "${ECHO_T}$ol_cv_ndbm" >&6
36014  if test $ol_cv_ndbm = yes ; then
36015
36016 cat >>confdefs.h <<\_ACEOF
36017 #define HAVE_NDBM 1
36018 _ACEOF
36019
36020  fi
36021
36022
36023         if test $ol_cv_ndbm = yes ; then
36024                 ol_link_ldbm=ndbm
36025                 ol_enable_ldbm_api=ndbm
36026
36027                 if test $ol_cv_lib_ndbm != yes ; then
36028                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36029                 fi
36030         fi
36031 fi
36032
36033 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36034         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36035 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36036    { (exit 1); exit 1; }; }
36037 fi
36038
36039 if test $ol_enable_bdb = yes ||
36040    test $ol_enable_hdb = yes ||
36041    test $ol_enable_ldbm = yes ; then
36042         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36043 fi
36044
36045
36046 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36047         BUILD_LIBS_DYNAMIC=shared
36048
36049 cat >>confdefs.h <<\_ACEOF
36050 #define LDAP_LIBS_DYNAMIC 1
36051 _ACEOF
36052
36053         LTSTATIC=""
36054 else
36055         BUILD_LIBS_DYNAMIC=static
36056         LTSTATIC="-static"
36057 fi
36058
36059 if test $ol_enable_wrappers != no ; then
36060
36061 for ac_header in tcpd.h
36062 do
36063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36065   echo "$as_me:$LINENO: checking for $ac_header" >&5
36066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36068   echo $ECHO_N "(cached) $ECHO_C" >&6
36069 fi
36070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36072 else
36073   # Is the header compilable?
36074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36076 cat >conftest.$ac_ext <<_ACEOF
36077 /* confdefs.h.  */
36078 _ACEOF
36079 cat confdefs.h >>conftest.$ac_ext
36080 cat >>conftest.$ac_ext <<_ACEOF
36081 /* end confdefs.h.  */
36082 $ac_includes_default
36083 #include <$ac_header>
36084 _ACEOF
36085 rm -f conftest.$ac_objext
36086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36087   (eval $ac_compile) 2>conftest.er1
36088   ac_status=$?
36089   grep -v '^ *+' conftest.er1 >conftest.err
36090   rm -f conftest.er1
36091   cat conftest.err >&5
36092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093   (exit $ac_status); } &&
36094          { ac_try='test -z "$ac_c_werror_flag"
36095                          || test ! -s conftest.err'
36096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36097   (eval $ac_try) 2>&5
36098   ac_status=$?
36099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100   (exit $ac_status); }; } &&
36101          { ac_try='test -s conftest.$ac_objext'
36102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36103   (eval $ac_try) 2>&5
36104   ac_status=$?
36105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106   (exit $ac_status); }; }; then
36107   ac_header_compiler=yes
36108 else
36109   echo "$as_me: failed program was:" >&5
36110 sed 's/^/| /' conftest.$ac_ext >&5
36111
36112 ac_header_compiler=no
36113 fi
36114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36116 echo "${ECHO_T}$ac_header_compiler" >&6
36117
36118 # Is the header present?
36119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36121 cat >conftest.$ac_ext <<_ACEOF
36122 /* confdefs.h.  */
36123 _ACEOF
36124 cat confdefs.h >>conftest.$ac_ext
36125 cat >>conftest.$ac_ext <<_ACEOF
36126 /* end confdefs.h.  */
36127 #include <$ac_header>
36128 _ACEOF
36129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36131   ac_status=$?
36132   grep -v '^ *+' conftest.er1 >conftest.err
36133   rm -f conftest.er1
36134   cat conftest.err >&5
36135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136   (exit $ac_status); } >/dev/null; then
36137   if test -s conftest.err; then
36138     ac_cpp_err=$ac_c_preproc_warn_flag
36139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36140   else
36141     ac_cpp_err=
36142   fi
36143 else
36144   ac_cpp_err=yes
36145 fi
36146 if test -z "$ac_cpp_err"; then
36147   ac_header_preproc=yes
36148 else
36149   echo "$as_me: failed program was:" >&5
36150 sed 's/^/| /' conftest.$ac_ext >&5
36151
36152   ac_header_preproc=no
36153 fi
36154 rm -f conftest.err conftest.$ac_ext
36155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36156 echo "${ECHO_T}$ac_header_preproc" >&6
36157
36158 # So?  What about this header?
36159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36160   yes:no: )
36161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36165     ac_header_preproc=yes
36166     ;;
36167   no:yes:* )
36168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36180     (
36181       cat <<\_ASBOX
36182 ## --------------------------------------------- ##
36183 ## Report this to <http://www.openldap.org/its/> ##
36184 ## --------------------------------------------- ##
36185 _ASBOX
36186     ) |
36187       sed "s/^/$as_me: WARNING:     /" >&2
36188     ;;
36189 esac
36190 echo "$as_me:$LINENO: checking for $ac_header" >&5
36191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36193   echo $ECHO_N "(cached) $ECHO_C" >&6
36194 else
36195   eval "$as_ac_Header=\$ac_header_preproc"
36196 fi
36197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36199
36200 fi
36201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36202   cat >>confdefs.h <<_ACEOF
36203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36204 _ACEOF
36205
36206                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36207 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36208                 save_LIBS="$LIBS"
36209                 LIBS="$LIBS -lwrap"
36210                 cat >conftest.$ac_ext <<_ACEOF
36211 /* confdefs.h.  */
36212 _ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h.  */
36216
36217 #include <tcpd.h>
36218 int allow_severity = 0;
36219 int deny_severity  = 0;
36220
36221 struct request_info *req;
36222
36223 int
36224 main ()
36225 {
36226
36227 hosts_access(req)
36228
36229   ;
36230   return 0;
36231 }
36232 _ACEOF
36233 rm -f conftest.$ac_objext conftest$ac_exeext
36234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36235   (eval $ac_link) 2>conftest.er1
36236   ac_status=$?
36237   grep -v '^ *+' conftest.er1 >conftest.err
36238   rm -f conftest.er1
36239   cat conftest.err >&5
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); } &&
36242          { ac_try='test -z "$ac_c_werror_flag"
36243                          || test ! -s conftest.err'
36244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36245   (eval $ac_try) 2>&5
36246   ac_status=$?
36247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248   (exit $ac_status); }; } &&
36249          { ac_try='test -s conftest$ac_exeext'
36250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251   (eval $ac_try) 2>&5
36252   ac_status=$?
36253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254   (exit $ac_status); }; }; then
36255   echo "$as_me:$LINENO: result: -lwrap" >&5
36256 echo "${ECHO_T}-lwrap" >&6
36257                 have_wrappers=yes
36258                 LIBS="$save_LIBS"
36259 else
36260   echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36262
36263
36264                                 LIBS="$LIBS -lnsl"
36265                 cat >conftest.$ac_ext <<_ACEOF
36266 /* confdefs.h.  */
36267 _ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h.  */
36271
36272 #include <tcpd.h>
36273 int allow_severity = 0;
36274 int deny_severity  = 0;
36275
36276 struct request_info *req;
36277
36278 int
36279 main ()
36280 {
36281
36282 hosts_access(req)
36283
36284   ;
36285   return 0;
36286 }
36287 _ACEOF
36288 rm -f conftest.$ac_objext conftest$ac_exeext
36289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36290   (eval $ac_link) 2>conftest.er1
36291   ac_status=$?
36292   grep -v '^ *+' conftest.er1 >conftest.err
36293   rm -f conftest.er1
36294   cat conftest.err >&5
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); } &&
36297          { ac_try='test -z "$ac_c_werror_flag"
36298                          || test ! -s conftest.err'
36299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36300   (eval $ac_try) 2>&5
36301   ac_status=$?
36302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36303   (exit $ac_status); }; } &&
36304          { ac_try='test -s conftest$ac_exeext'
36305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36306   (eval $ac_try) 2>&5
36307   ac_status=$?
36308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309   (exit $ac_status); }; }; then
36310   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36311 echo "${ECHO_T}-lwrap -lnsl" >&6
36312                 have_wrappers=yes
36313                 LIBS="$save_LIBS -lnsl"
36314 else
36315   echo "$as_me: failed program was:" >&5
36316 sed 's/^/| /' conftest.$ac_ext >&5
36317
36318
36319                 echo "$as_me:$LINENO: result: no" >&5
36320 echo "${ECHO_T}no" >&6
36321                 have_wrappers=no
36322                 LIBS=$save_LIBS
36323 fi
36324 rm -f conftest.err conftest.$ac_objext \
36325       conftest$ac_exeext conftest.$ac_ext
36326 fi
36327 rm -f conftest.err conftest.$ac_objext \
36328       conftest$ac_exeext conftest.$ac_ext
36329 else
36330   have_wrappers=no
36331 fi
36332
36333 done
36334
36335
36336         if test $have_wrappers = yes ; then
36337
36338 cat >>confdefs.h <<\_ACEOF
36339 #define HAVE_TCPD 1
36340 _ACEOF
36341
36342                 WRAP_LIBS="-lwrap"
36343         elif test $ol_enable_wrappers = yes ; then
36344                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36345 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36346    { (exit 1); exit 1; }; }
36347         else
36348                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36349 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36350                 WRAP_LIBS=""
36351         fi
36352 fi
36353
36354 if test $ol_enable_syslog != no ; then
36355         echo "$as_me:$LINENO: checking for openlog" >&5
36356 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36357 if test "${ac_cv_func_openlog+set}" = set; then
36358   echo $ECHO_N "(cached) $ECHO_C" >&6
36359 else
36360   cat >conftest.$ac_ext <<_ACEOF
36361 /* confdefs.h.  */
36362 _ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h.  */
36366 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36368 #define openlog innocuous_openlog
36369
36370 /* System header to define __stub macros and hopefully few prototypes,
36371     which can conflict with char openlog (); below.
36372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36373     <limits.h> exists even on freestanding compilers.  */
36374
36375 #ifdef __STDC__
36376 # include <limits.h>
36377 #else
36378 # include <assert.h>
36379 #endif
36380
36381 #undef openlog
36382
36383 /* Override any gcc2 internal prototype to avoid an error.  */
36384 #ifdef __cplusplus
36385 extern "C"
36386 {
36387 #endif
36388 /* We use char because int might match the return type of a gcc2
36389    builtin and then its argument prototype would still apply.  */
36390 char openlog ();
36391 /* The GNU C library defines this for functions which it implements
36392     to always fail with ENOSYS.  Some functions are actually named
36393     something starting with __ and the normal name is an alias.  */
36394 #if defined (__stub_openlog) || defined (__stub___openlog)
36395 choke me
36396 #else
36397 char (*f) () = openlog;
36398 #endif
36399 #ifdef __cplusplus
36400 }
36401 #endif
36402
36403 int
36404 main ()
36405 {
36406 return f != openlog;
36407   ;
36408   return 0;
36409 }
36410 _ACEOF
36411 rm -f conftest.$ac_objext conftest$ac_exeext
36412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36413   (eval $ac_link) 2>conftest.er1
36414   ac_status=$?
36415   grep -v '^ *+' conftest.er1 >conftest.err
36416   rm -f conftest.er1
36417   cat conftest.err >&5
36418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); } &&
36420          { ac_try='test -z "$ac_c_werror_flag"
36421                          || test ! -s conftest.err'
36422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36423   (eval $ac_try) 2>&5
36424   ac_status=$?
36425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426   (exit $ac_status); }; } &&
36427          { ac_try='test -s conftest$ac_exeext'
36428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36429   (eval $ac_try) 2>&5
36430   ac_status=$?
36431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432   (exit $ac_status); }; }; then
36433   ac_cv_func_openlog=yes
36434 else
36435   echo "$as_me: failed program was:" >&5
36436 sed 's/^/| /' conftest.$ac_ext >&5
36437
36438 ac_cv_func_openlog=no
36439 fi
36440 rm -f conftest.err conftest.$ac_objext \
36441       conftest$ac_exeext conftest.$ac_ext
36442 fi
36443 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36444 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36445
36446         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36447                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36448 echo "$as_me: error: could not find syslog" >&2;}
36449    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36450         fi
36451         ol_enable_syslog=$ac_cv_func_openlog
36452 fi
36453
36454 ol_link_sql=no
36455 if test $ol_enable_sql != no ; then
36456
36457
36458 for ac_header in sql.h sqlext.h
36459 do
36460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36462   echo "$as_me:$LINENO: checking for $ac_header" >&5
36463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36465   echo $ECHO_N "(cached) $ECHO_C" >&6
36466 fi
36467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36469 else
36470   # Is the header compilable?
36471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36473 cat >conftest.$ac_ext <<_ACEOF
36474 /* confdefs.h.  */
36475 _ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h.  */
36479 $ac_includes_default
36480 #include <$ac_header>
36481 _ACEOF
36482 rm -f conftest.$ac_objext
36483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36484   (eval $ac_compile) 2>conftest.er1
36485   ac_status=$?
36486   grep -v '^ *+' conftest.er1 >conftest.err
36487   rm -f conftest.er1
36488   cat conftest.err >&5
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); } &&
36491          { ac_try='test -z "$ac_c_werror_flag"
36492                          || test ! -s conftest.err'
36493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36494   (eval $ac_try) 2>&5
36495   ac_status=$?
36496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36497   (exit $ac_status); }; } &&
36498          { ac_try='test -s conftest.$ac_objext'
36499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36500   (eval $ac_try) 2>&5
36501   ac_status=$?
36502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503   (exit $ac_status); }; }; then
36504   ac_header_compiler=yes
36505 else
36506   echo "$as_me: failed program was:" >&5
36507 sed 's/^/| /' conftest.$ac_ext >&5
36508
36509 ac_header_compiler=no
36510 fi
36511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36513 echo "${ECHO_T}$ac_header_compiler" >&6
36514
36515 # Is the header present?
36516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36518 cat >conftest.$ac_ext <<_ACEOF
36519 /* confdefs.h.  */
36520 _ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h.  */
36524 #include <$ac_header>
36525 _ACEOF
36526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36528   ac_status=$?
36529   grep -v '^ *+' conftest.er1 >conftest.err
36530   rm -f conftest.er1
36531   cat conftest.err >&5
36532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533   (exit $ac_status); } >/dev/null; then
36534   if test -s conftest.err; then
36535     ac_cpp_err=$ac_c_preproc_warn_flag
36536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36537   else
36538     ac_cpp_err=
36539   fi
36540 else
36541   ac_cpp_err=yes
36542 fi
36543 if test -z "$ac_cpp_err"; then
36544   ac_header_preproc=yes
36545 else
36546   echo "$as_me: failed program was:" >&5
36547 sed 's/^/| /' conftest.$ac_ext >&5
36548
36549   ac_header_preproc=no
36550 fi
36551 rm -f conftest.err conftest.$ac_ext
36552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36553 echo "${ECHO_T}$ac_header_preproc" >&6
36554
36555 # So?  What about this header?
36556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36557   yes:no: )
36558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36562     ac_header_preproc=yes
36563     ;;
36564   no:yes:* )
36565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36577     (
36578       cat <<\_ASBOX
36579 ## --------------------------------------------- ##
36580 ## Report this to <http://www.openldap.org/its/> ##
36581 ## --------------------------------------------- ##
36582 _ASBOX
36583     ) |
36584       sed "s/^/$as_me: WARNING:     /" >&2
36585     ;;
36586 esac
36587 echo "$as_me:$LINENO: checking for $ac_header" >&5
36588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36590   echo $ECHO_N "(cached) $ECHO_C" >&6
36591 else
36592   eval "$as_ac_Header=\$ac_header_preproc"
36593 fi
36594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36596
36597 fi
36598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36599   cat >>confdefs.h <<_ACEOF
36600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36601 _ACEOF
36602
36603 else
36604
36605                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36606 echo "$as_me: error: could not locate SQL headers" >&2;}
36607    { (exit 1); exit 1; }; }
36608
36609 fi
36610
36611 done
36612
36613
36614         sql_LIBS="$LIBS"
36615         LIBS="$LTHREAD_LIBS"
36616
36617         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36618 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36619 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36620   echo $ECHO_N "(cached) $ECHO_C" >&6
36621 else
36622   ac_check_lib_save_LIBS=$LIBS
36623 LIBS="-liodbc  $LIBS"
36624 cat >conftest.$ac_ext <<_ACEOF
36625 /* confdefs.h.  */
36626 _ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h.  */
36630
36631 /* Override any gcc2 internal prototype to avoid an error.  */
36632 #ifdef __cplusplus
36633 extern "C"
36634 #endif
36635 /* We use char because int might match the return type of a gcc2
36636    builtin and then its argument prototype would still apply.  */
36637 char SQLDriverConnect ();
36638 int
36639 main ()
36640 {
36641 SQLDriverConnect ();
36642   ;
36643   return 0;
36644 }
36645 _ACEOF
36646 rm -f conftest.$ac_objext conftest$ac_exeext
36647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36648   (eval $ac_link) 2>conftest.er1
36649   ac_status=$?
36650   grep -v '^ *+' conftest.er1 >conftest.err
36651   rm -f conftest.er1
36652   cat conftest.err >&5
36653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36654   (exit $ac_status); } &&
36655          { ac_try='test -z "$ac_c_werror_flag"
36656                          || test ! -s conftest.err'
36657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658   (eval $ac_try) 2>&5
36659   ac_status=$?
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); }; } &&
36662          { ac_try='test -s conftest$ac_exeext'
36663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664   (eval $ac_try) 2>&5
36665   ac_status=$?
36666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667   (exit $ac_status); }; }; then
36668   ac_cv_lib_iodbc_SQLDriverConnect=yes
36669 else
36670   echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36672
36673 ac_cv_lib_iodbc_SQLDriverConnect=no
36674 fi
36675 rm -f conftest.err conftest.$ac_objext \
36676       conftest$ac_exeext conftest.$ac_ext
36677 LIBS=$ac_check_lib_save_LIBS
36678 fi
36679 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36680 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36681 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36682   have_iodbc=yes
36683 else
36684   have_iodbc=no
36685 fi
36686
36687         if test $have_iodbc = yes ; then
36688                 ol_link_sql="-liodbc"
36689         else
36690                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36691 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36692 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36693   echo $ECHO_N "(cached) $ECHO_C" >&6
36694 else
36695   ac_check_lib_save_LIBS=$LIBS
36696 LIBS="-lodbc  $LIBS"
36697 cat >conftest.$ac_ext <<_ACEOF
36698 /* confdefs.h.  */
36699 _ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h.  */
36703
36704 /* Override any gcc2 internal prototype to avoid an error.  */
36705 #ifdef __cplusplus
36706 extern "C"
36707 #endif
36708 /* We use char because int might match the return type of a gcc2
36709    builtin and then its argument prototype would still apply.  */
36710 char SQLDriverConnect ();
36711 int
36712 main ()
36713 {
36714 SQLDriverConnect ();
36715   ;
36716   return 0;
36717 }
36718 _ACEOF
36719 rm -f conftest.$ac_objext conftest$ac_exeext
36720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36721   (eval $ac_link) 2>conftest.er1
36722   ac_status=$?
36723   grep -v '^ *+' conftest.er1 >conftest.err
36724   rm -f conftest.er1
36725   cat conftest.err >&5
36726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727   (exit $ac_status); } &&
36728          { ac_try='test -z "$ac_c_werror_flag"
36729                          || test ! -s conftest.err'
36730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36731   (eval $ac_try) 2>&5
36732   ac_status=$?
36733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734   (exit $ac_status); }; } &&
36735          { ac_try='test -s conftest$ac_exeext'
36736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737   (eval $ac_try) 2>&5
36738   ac_status=$?
36739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740   (exit $ac_status); }; }; then
36741   ac_cv_lib_odbc_SQLDriverConnect=yes
36742 else
36743   echo "$as_me: failed program was:" >&5
36744 sed 's/^/| /' conftest.$ac_ext >&5
36745
36746 ac_cv_lib_odbc_SQLDriverConnect=no
36747 fi
36748 rm -f conftest.err conftest.$ac_objext \
36749       conftest$ac_exeext conftest.$ac_ext
36750 LIBS=$ac_check_lib_save_LIBS
36751 fi
36752 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36753 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36754 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36755   have_odbc=yes
36756 else
36757   have_odbc=no
36758 fi
36759
36760                 if test $have_odbc = yes ; then
36761                         ol_link_sql="-lodbc"
36762                 fi
36763         fi
36764
36765         LIBS="$sql_LIBS"
36766
36767         if test $ol_link_sql != no ; then
36768                 SLAPD_SQL_LIBS="$ol_link_sql"
36769
36770         elif test $ol_enable_sql != auto ; then
36771                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36772 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36773    { (exit 1); exit 1; }; }
36774         fi
36775 fi
36776
36777 ol_icu=no
36778
36779 for ac_header in unicode/utypes.h
36780 do
36781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36783   echo "$as_me:$LINENO: checking for $ac_header" >&5
36784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36786   echo $ECHO_N "(cached) $ECHO_C" >&6
36787 fi
36788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36790 else
36791   # Is the header compilable?
36792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36794 cat >conftest.$ac_ext <<_ACEOF
36795 /* confdefs.h.  */
36796 _ACEOF
36797 cat confdefs.h >>conftest.$ac_ext
36798 cat >>conftest.$ac_ext <<_ACEOF
36799 /* end confdefs.h.  */
36800 $ac_includes_default
36801 #include <$ac_header>
36802 _ACEOF
36803 rm -f conftest.$ac_objext
36804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36805   (eval $ac_compile) 2>conftest.er1
36806   ac_status=$?
36807   grep -v '^ *+' conftest.er1 >conftest.err
36808   rm -f conftest.er1
36809   cat conftest.err >&5
36810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36811   (exit $ac_status); } &&
36812          { ac_try='test -z "$ac_c_werror_flag"
36813                          || test ! -s conftest.err'
36814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36815   (eval $ac_try) 2>&5
36816   ac_status=$?
36817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818   (exit $ac_status); }; } &&
36819          { ac_try='test -s conftest.$ac_objext'
36820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36821   (eval $ac_try) 2>&5
36822   ac_status=$?
36823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824   (exit $ac_status); }; }; then
36825   ac_header_compiler=yes
36826 else
36827   echo "$as_me: failed program was:" >&5
36828 sed 's/^/| /' conftest.$ac_ext >&5
36829
36830 ac_header_compiler=no
36831 fi
36832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36834 echo "${ECHO_T}$ac_header_compiler" >&6
36835
36836 # Is the header present?
36837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36839 cat >conftest.$ac_ext <<_ACEOF
36840 /* confdefs.h.  */
36841 _ACEOF
36842 cat confdefs.h >>conftest.$ac_ext
36843 cat >>conftest.$ac_ext <<_ACEOF
36844 /* end confdefs.h.  */
36845 #include <$ac_header>
36846 _ACEOF
36847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36849   ac_status=$?
36850   grep -v '^ *+' conftest.er1 >conftest.err
36851   rm -f conftest.er1
36852   cat conftest.err >&5
36853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854   (exit $ac_status); } >/dev/null; then
36855   if test -s conftest.err; then
36856     ac_cpp_err=$ac_c_preproc_warn_flag
36857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36858   else
36859     ac_cpp_err=
36860   fi
36861 else
36862   ac_cpp_err=yes
36863 fi
36864 if test -z "$ac_cpp_err"; then
36865   ac_header_preproc=yes
36866 else
36867   echo "$as_me: failed program was:" >&5
36868 sed 's/^/| /' conftest.$ac_ext >&5
36869
36870   ac_header_preproc=no
36871 fi
36872 rm -f conftest.err conftest.$ac_ext
36873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36874 echo "${ECHO_T}$ac_header_preproc" >&6
36875
36876 # So?  What about this header?
36877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36878   yes:no: )
36879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36883     ac_header_preproc=yes
36884     ;;
36885   no:yes:* )
36886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36898     (
36899       cat <<\_ASBOX
36900 ## --------------------------------------------- ##
36901 ## Report this to <http://www.openldap.org/its/> ##
36902 ## --------------------------------------------- ##
36903 _ASBOX
36904     ) |
36905       sed "s/^/$as_me: WARNING:     /" >&2
36906     ;;
36907 esac
36908 echo "$as_me:$LINENO: checking for $ac_header" >&5
36909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36911   echo $ECHO_N "(cached) $ECHO_C" >&6
36912 else
36913   eval "$as_ac_Header=\$ac_header_preproc"
36914 fi
36915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36917
36918 fi
36919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36920   cat >>confdefs.h <<_ACEOF
36921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36922 _ACEOF
36923
36924 fi
36925
36926 done
36927
36928 if test $ac_cv_header_unicode_utypes_h = yes ; then
36929                 OL_ICULIBS="-licuuc -licudata"
36930
36931         echo "$as_me:$LINENO: checking for ICU libraries" >&5
36932 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36933 if test "${ol_cv_lib_icu+set}" = set; then
36934   echo $ECHO_N "(cached) $ECHO_C" >&6
36935 else
36936
36937                 ol_LIBS="$LIBS"
36938                 LIBS="$OL_ICULIBS $LIBS"
36939                 cat >conftest.$ac_ext <<_ACEOF
36940 /* confdefs.h.  */
36941 _ACEOF
36942 cat confdefs.h >>conftest.$ac_ext
36943 cat >>conftest.$ac_ext <<_ACEOF
36944 /* end confdefs.h.  */
36945
36946 #include <unicode/utypes.h>
36947
36948 int
36949 main ()
36950 {
36951
36952 (void) u_errorName(0);
36953
36954   ;
36955   return 0;
36956 }
36957 _ACEOF
36958 rm -f conftest.$ac_objext conftest$ac_exeext
36959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36960   (eval $ac_link) 2>conftest.er1
36961   ac_status=$?
36962   grep -v '^ *+' conftest.er1 >conftest.err
36963   rm -f conftest.er1
36964   cat conftest.err >&5
36965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966   (exit $ac_status); } &&
36967          { ac_try='test -z "$ac_c_werror_flag"
36968                          || test ! -s conftest.err'
36969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36970   (eval $ac_try) 2>&5
36971   ac_status=$?
36972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973   (exit $ac_status); }; } &&
36974          { ac_try='test -s conftest$ac_exeext'
36975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36976   (eval $ac_try) 2>&5
36977   ac_status=$?
36978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979   (exit $ac_status); }; }; then
36980   ol_cv_lib_icu=yes
36981 else
36982   echo "$as_me: failed program was:" >&5
36983 sed 's/^/| /' conftest.$ac_ext >&5
36984
36985 ol_cv_lib_icu=no
36986 fi
36987 rm -f conftest.err conftest.$ac_objext \
36988       conftest$ac_exeext conftest.$ac_ext
36989                 LIBS="$ol_LIBS"
36990
36991 fi
36992 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36993 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36994
36995         if test $ol_cv_lib_icu != no ; then
36996                 ol_icu="$OL_ICULIBS"
36997
36998 cat >>confdefs.h <<\_ACEOF
36999 #define HAVE_ICU 1
37000 _ACEOF
37001
37002         fi
37003 fi
37004
37005 if test "$ol_icu" = no ; then
37006         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
37007 echo "$as_me: WARNING: ICU not available" >&2;}
37008 else
37009         ICU_LIBS="$ol_icu"
37010 fi
37011 WITH_SASL=no
37012 ol_link_sasl=no
37013 ol_link_spasswd=no
37014 if test $ol_with_cyrus_sasl != no ; then
37015
37016
37017 for ac_header in sasl/sasl.h sasl.h
37018 do
37019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37021   echo "$as_me:$LINENO: checking for $ac_header" >&5
37022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37024   echo $ECHO_N "(cached) $ECHO_C" >&6
37025 fi
37026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37028 else
37029   # Is the header compilable?
37030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37032 cat >conftest.$ac_ext <<_ACEOF
37033 /* confdefs.h.  */
37034 _ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h.  */
37038 $ac_includes_default
37039 #include <$ac_header>
37040 _ACEOF
37041 rm -f conftest.$ac_objext
37042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37043   (eval $ac_compile) 2>conftest.er1
37044   ac_status=$?
37045   grep -v '^ *+' conftest.er1 >conftest.err
37046   rm -f conftest.er1
37047   cat conftest.err >&5
37048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049   (exit $ac_status); } &&
37050          { ac_try='test -z "$ac_c_werror_flag"
37051                          || test ! -s conftest.err'
37052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37053   (eval $ac_try) 2>&5
37054   ac_status=$?
37055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056   (exit $ac_status); }; } &&
37057          { ac_try='test -s conftest.$ac_objext'
37058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37059   (eval $ac_try) 2>&5
37060   ac_status=$?
37061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062   (exit $ac_status); }; }; then
37063   ac_header_compiler=yes
37064 else
37065   echo "$as_me: failed program was:" >&5
37066 sed 's/^/| /' conftest.$ac_ext >&5
37067
37068 ac_header_compiler=no
37069 fi
37070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37072 echo "${ECHO_T}$ac_header_compiler" >&6
37073
37074 # Is the header present?
37075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37077 cat >conftest.$ac_ext <<_ACEOF
37078 /* confdefs.h.  */
37079 _ACEOF
37080 cat confdefs.h >>conftest.$ac_ext
37081 cat >>conftest.$ac_ext <<_ACEOF
37082 /* end confdefs.h.  */
37083 #include <$ac_header>
37084 _ACEOF
37085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37087   ac_status=$?
37088   grep -v '^ *+' conftest.er1 >conftest.err
37089   rm -f conftest.er1
37090   cat conftest.err >&5
37091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092   (exit $ac_status); } >/dev/null; then
37093   if test -s conftest.err; then
37094     ac_cpp_err=$ac_c_preproc_warn_flag
37095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37096   else
37097     ac_cpp_err=
37098   fi
37099 else
37100   ac_cpp_err=yes
37101 fi
37102 if test -z "$ac_cpp_err"; then
37103   ac_header_preproc=yes
37104 else
37105   echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37107
37108   ac_header_preproc=no
37109 fi
37110 rm -f conftest.err conftest.$ac_ext
37111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37112 echo "${ECHO_T}$ac_header_preproc" >&6
37113
37114 # So?  What about this header?
37115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37116   yes:no: )
37117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37121     ac_header_preproc=yes
37122     ;;
37123   no:yes:* )
37124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37136     (
37137       cat <<\_ASBOX
37138 ## --------------------------------------------- ##
37139 ## Report this to <http://www.openldap.org/its/> ##
37140 ## --------------------------------------------- ##
37141 _ASBOX
37142     ) |
37143       sed "s/^/$as_me: WARNING:     /" >&2
37144     ;;
37145 esac
37146 echo "$as_me:$LINENO: checking for $ac_header" >&5
37147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37149   echo $ECHO_N "(cached) $ECHO_C" >&6
37150 else
37151   eval "$as_ac_Header=\$ac_header_preproc"
37152 fi
37153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37155
37156 fi
37157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37158   cat >>confdefs.h <<_ACEOF
37159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37160 _ACEOF
37161
37162 fi
37163
37164 done
37165
37166
37167         if test $ac_cv_header_sasl_sasl_h = yes ||
37168            test $ac_cv_header_sasl_h = yes; then
37169                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37170 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37171 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37172   echo $ECHO_N "(cached) $ECHO_C" >&6
37173 else
37174   ac_check_lib_save_LIBS=$LIBS
37175 LIBS="-lsasl2  $LIBS"
37176 cat >conftest.$ac_ext <<_ACEOF
37177 /* confdefs.h.  */
37178 _ACEOF
37179 cat confdefs.h >>conftest.$ac_ext
37180 cat >>conftest.$ac_ext <<_ACEOF
37181 /* end confdefs.h.  */
37182
37183 /* Override any gcc2 internal prototype to avoid an error.  */
37184 #ifdef __cplusplus
37185 extern "C"
37186 #endif
37187 /* We use char because int might match the return type of a gcc2
37188    builtin and then its argument prototype would still apply.  */
37189 char sasl_client_init ();
37190 int
37191 main ()
37192 {
37193 sasl_client_init ();
37194   ;
37195   return 0;
37196 }
37197 _ACEOF
37198 rm -f conftest.$ac_objext conftest$ac_exeext
37199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37200   (eval $ac_link) 2>conftest.er1
37201   ac_status=$?
37202   grep -v '^ *+' conftest.er1 >conftest.err
37203   rm -f conftest.er1
37204   cat conftest.err >&5
37205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206   (exit $ac_status); } &&
37207          { ac_try='test -z "$ac_c_werror_flag"
37208                          || test ! -s conftest.err'
37209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210   (eval $ac_try) 2>&5
37211   ac_status=$?
37212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213   (exit $ac_status); }; } &&
37214          { ac_try='test -s conftest$ac_exeext'
37215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37216   (eval $ac_try) 2>&5
37217   ac_status=$?
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); }; }; then
37220   ac_cv_lib_sasl2_sasl_client_init=yes
37221 else
37222   echo "$as_me: failed program was:" >&5
37223 sed 's/^/| /' conftest.$ac_ext >&5
37224
37225 ac_cv_lib_sasl2_sasl_client_init=no
37226 fi
37227 rm -f conftest.err conftest.$ac_objext \
37228       conftest$ac_exeext conftest.$ac_ext
37229 LIBS=$ac_check_lib_save_LIBS
37230 fi
37231 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37232 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37233 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37234   ol_link_sasl="-lsasl2"
37235 else
37236   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37237 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37238 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37239   echo $ECHO_N "(cached) $ECHO_C" >&6
37240 else
37241   ac_check_lib_save_LIBS=$LIBS
37242 LIBS="-lsasl  $LIBS"
37243 cat >conftest.$ac_ext <<_ACEOF
37244 /* confdefs.h.  */
37245 _ACEOF
37246 cat confdefs.h >>conftest.$ac_ext
37247 cat >>conftest.$ac_ext <<_ACEOF
37248 /* end confdefs.h.  */
37249
37250 /* Override any gcc2 internal prototype to avoid an error.  */
37251 #ifdef __cplusplus
37252 extern "C"
37253 #endif
37254 /* We use char because int might match the return type of a gcc2
37255    builtin and then its argument prototype would still apply.  */
37256 char sasl_client_init ();
37257 int
37258 main ()
37259 {
37260 sasl_client_init ();
37261   ;
37262   return 0;
37263 }
37264 _ACEOF
37265 rm -f conftest.$ac_objext conftest$ac_exeext
37266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37267   (eval $ac_link) 2>conftest.er1
37268   ac_status=$?
37269   grep -v '^ *+' conftest.er1 >conftest.err
37270   rm -f conftest.er1
37271   cat conftest.err >&5
37272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273   (exit $ac_status); } &&
37274          { ac_try='test -z "$ac_c_werror_flag"
37275                          || test ! -s conftest.err'
37276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277   (eval $ac_try) 2>&5
37278   ac_status=$?
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); }; } &&
37281          { ac_try='test -s conftest$ac_exeext'
37282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37283   (eval $ac_try) 2>&5
37284   ac_status=$?
37285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37286   (exit $ac_status); }; }; then
37287   ac_cv_lib_sasl_sasl_client_init=yes
37288 else
37289   echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37291
37292 ac_cv_lib_sasl_sasl_client_init=no
37293 fi
37294 rm -f conftest.err conftest.$ac_objext \
37295       conftest$ac_exeext conftest.$ac_ext
37296 LIBS=$ac_check_lib_save_LIBS
37297 fi
37298 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37299 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37300 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37301   ol_link_sasl="-lsasl"
37302 fi
37303
37304 fi
37305
37306         fi
37307
37308         if test $ol_link_sasl = no ; then
37309                 if test $ol_with_cyrus_sasl != auto ; then
37310                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37311 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37312    { (exit 1); exit 1; }; }
37313                 else
37314                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37315 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37316                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37317 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37318                         if test $ol_link_tls = no ; then
37319                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37320 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37321                         fi
37322                 fi
37323         else
37324                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37325 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37326 if test "${ol_cv_sasl_compat+set}" = set; then
37327   echo $ECHO_N "(cached) $ECHO_C" >&6
37328 else
37329
37330         cat >conftest.$ac_ext <<_ACEOF
37331 /* confdefs.h.  */
37332 _ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h.  */
37336
37337 #ifdef HAVE_SASL_SASL_H
37338 #include <sasl/sasl.h>
37339 #else
37340 #include <sasl.h>
37341 #endif
37342
37343 /* Require 2.1.15+ */
37344 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
37345         char *__sasl_compat = "2.2+ or better okay (we guess)";
37346 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
37347         && SASL_VERSION_STEP >=15
37348         char *__sasl_compat = "2.1.15+ or better okay";
37349 #endif
37350
37351 _ACEOF
37352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37353   $EGREP "__sasl_compat" >/dev/null 2>&1; then
37354   ol_cv_sasl_compat=yes
37355 else
37356   ol_cv_sasl_compat=no
37357 fi
37358 rm -f conftest*
37359
37360 fi
37361 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37362 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37363
37364                 if test $ol_cv_sasl_compat = no ; then
37365                         ol_link_sasl=no
37366                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37367 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37368    { (exit 1); exit 1; }; }
37369                 fi
37370
37371
37372 cat >>confdefs.h <<\_ACEOF
37373 #define HAVE_CYRUS_SASL 1
37374 _ACEOF
37375
37376                 SASL_LIBS="$ol_link_sasl"
37377                 if test $ol_enable_spasswd != no ; then
37378                         ol_link_spasswd=yes
37379                 fi
37380
37381                 ac_save_LIBS="$LIBS"
37382                 LIBS="$LIBS $ol_link_sasl"
37383                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37384 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37385 if test "${ac_cv_func_sasl_version+set}" = set; then
37386   echo $ECHO_N "(cached) $ECHO_C" >&6
37387 else
37388   cat >conftest.$ac_ext <<_ACEOF
37389 /* confdefs.h.  */
37390 _ACEOF
37391 cat confdefs.h >>conftest.$ac_ext
37392 cat >>conftest.$ac_ext <<_ACEOF
37393 /* end confdefs.h.  */
37394 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37396 #define sasl_version innocuous_sasl_version
37397
37398 /* System header to define __stub macros and hopefully few prototypes,
37399     which can conflict with char sasl_version (); below.
37400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37401     <limits.h> exists even on freestanding compilers.  */
37402
37403 #ifdef __STDC__
37404 # include <limits.h>
37405 #else
37406 # include <assert.h>
37407 #endif
37408
37409 #undef sasl_version
37410
37411 /* Override any gcc2 internal prototype to avoid an error.  */
37412 #ifdef __cplusplus
37413 extern "C"
37414 {
37415 #endif
37416 /* We use char because int might match the return type of a gcc2
37417    builtin and then its argument prototype would still apply.  */
37418 char sasl_version ();
37419 /* The GNU C library defines this for functions which it implements
37420     to always fail with ENOSYS.  Some functions are actually named
37421     something starting with __ and the normal name is an alias.  */
37422 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37423 choke me
37424 #else
37425 char (*f) () = sasl_version;
37426 #endif
37427 #ifdef __cplusplus
37428 }
37429 #endif
37430
37431 int
37432 main ()
37433 {
37434 return f != sasl_version;
37435   ;
37436   return 0;
37437 }
37438 _ACEOF
37439 rm -f conftest.$ac_objext conftest$ac_exeext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37441   (eval $ac_link) 2>conftest.er1
37442   ac_status=$?
37443   grep -v '^ *+' conftest.er1 >conftest.err
37444   rm -f conftest.er1
37445   cat conftest.err >&5
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); } &&
37448          { ac_try='test -z "$ac_c_werror_flag"
37449                          || test ! -s conftest.err'
37450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451   (eval $ac_try) 2>&5
37452   ac_status=$?
37453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454   (exit $ac_status); }; } &&
37455          { ac_try='test -s conftest$ac_exeext'
37456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457   (eval $ac_try) 2>&5
37458   ac_status=$?
37459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460   (exit $ac_status); }; }; then
37461   ac_cv_func_sasl_version=yes
37462 else
37463   echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37465
37466 ac_cv_func_sasl_version=no
37467 fi
37468 rm -f conftest.err conftest.$ac_objext \
37469       conftest$ac_exeext conftest.$ac_ext
37470 fi
37471 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37472 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37473 if test $ac_cv_func_sasl_version = yes; then
37474
37475 cat >>confdefs.h <<\_ACEOF
37476 #define HAVE_SASL_VERSION 1
37477 _ACEOF
37478
37479 fi
37480
37481                 LIBS="$ac_save_LIBS"
37482
37483                 WITH_SASL=yes
37484         fi
37485
37486 else
37487         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37488 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37489         if test $ol_link_tls = no ; then
37490                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37491 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37492         fi
37493 fi
37494
37495 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37496         dev=no
37497         if test -r /dev/urandom ; then
37498                 dev="/dev/urandom";
37499         elif test -r /idev/urandom ; then
37500                 dev="/idev/urandom";
37501         elif test -r /dev/srandom ; then
37502                 dev="/dev/srandom";
37503         elif test -r /dev/random ; then
37504                 dev="/dev/random";
37505         elif test -r /idev/random ; then
37506                 dev="/idev/random";
37507         fi
37508
37509         if test $dev != no ; then
37510
37511 cat >>confdefs.h <<_ACEOF
37512 #define URANDOM_DEVICE "$dev"
37513 _ACEOF
37514
37515         fi
37516 fi
37517
37518 ol_link_fetch=no
37519 if test $ol_with_fetch != no ; then
37520         ol_LIBS=$LIBS
37521 LIBS="-lfetch -lcom_err $LIBS"
37522 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37523 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37524 if test "${ol_cv_lib_fetch+set}" = set; then
37525   echo $ECHO_N "(cached) $ECHO_C" >&6
37526 else
37527
37528         cat >conftest.$ac_ext <<_ACEOF
37529 /* confdefs.h.  */
37530 _ACEOF
37531 cat confdefs.h >>conftest.$ac_ext
37532 cat >>conftest.$ac_ext <<_ACEOF
37533 /* end confdefs.h.  */
37534
37535 #include <sys/param.h>
37536 #include <stdio.h>
37537 #include <fetch.h>
37538 int
37539 main ()
37540 {
37541 struct url *u = fetchParseURL("file:///");
37542   ;
37543   return 0;
37544 }
37545 _ACEOF
37546 rm -f conftest.$ac_objext conftest$ac_exeext
37547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37548   (eval $ac_link) 2>conftest.er1
37549   ac_status=$?
37550   grep -v '^ *+' conftest.er1 >conftest.err
37551   rm -f conftest.er1
37552   cat conftest.err >&5
37553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554   (exit $ac_status); } &&
37555          { ac_try='test -z "$ac_c_werror_flag"
37556                          || test ! -s conftest.err'
37557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37558   (eval $ac_try) 2>&5
37559   ac_status=$?
37560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561   (exit $ac_status); }; } &&
37562          { ac_try='test -s conftest$ac_exeext'
37563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564   (eval $ac_try) 2>&5
37565   ac_status=$?
37566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567   (exit $ac_status); }; }; then
37568   ol_cv_lib_fetch=yes
37569 else
37570   echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37572
37573 ol_cv_lib_fetch=no
37574 fi
37575 rm -f conftest.err conftest.$ac_objext \
37576       conftest$ac_exeext conftest.$ac_ext
37577 fi
37578 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37579 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37580 LIBS=$ol_LIBS
37581 if test $ol_cv_lib_fetch != no ; then
37582         ol_link_fetch="-lfetch -lcom_err"
37583
37584 cat >>confdefs.h <<\_ACEOF
37585 #define HAVE_FETCH 1
37586 _ACEOF
37587
37588 fi
37589
37590
37591         if test $ol_cv_lib_fetch != no ; then
37592                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37593                 ol_link_fetch=freebsd
37594
37595         elif test $ol_with_fetch != auto ; then
37596                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37597 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37598    { (exit 1); exit 1; }; }
37599         fi
37600 fi
37601
37602 if test $ol_enable_crypt != no ; then
37603         save_LIBS="$LIBS"
37604         LIBS="$TLS_LIBS $LIBS"
37605
37606         echo "$as_me:$LINENO: checking for crypt" >&5
37607 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37608 if test "${ac_cv_func_crypt+set}" = set; then
37609   echo $ECHO_N "(cached) $ECHO_C" >&6
37610 else
37611   cat >conftest.$ac_ext <<_ACEOF
37612 /* confdefs.h.  */
37613 _ACEOF
37614 cat confdefs.h >>conftest.$ac_ext
37615 cat >>conftest.$ac_ext <<_ACEOF
37616 /* end confdefs.h.  */
37617 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37619 #define crypt innocuous_crypt
37620
37621 /* System header to define __stub macros and hopefully few prototypes,
37622     which can conflict with char crypt (); below.
37623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37624     <limits.h> exists even on freestanding compilers.  */
37625
37626 #ifdef __STDC__
37627 # include <limits.h>
37628 #else
37629 # include <assert.h>
37630 #endif
37631
37632 #undef crypt
37633
37634 /* Override any gcc2 internal prototype to avoid an error.  */
37635 #ifdef __cplusplus
37636 extern "C"
37637 {
37638 #endif
37639 /* We use char because int might match the return type of a gcc2
37640    builtin and then its argument prototype would still apply.  */
37641 char crypt ();
37642 /* The GNU C library defines this for functions which it implements
37643     to always fail with ENOSYS.  Some functions are actually named
37644     something starting with __ and the normal name is an alias.  */
37645 #if defined (__stub_crypt) || defined (__stub___crypt)
37646 choke me
37647 #else
37648 char (*f) () = crypt;
37649 #endif
37650 #ifdef __cplusplus
37651 }
37652 #endif
37653
37654 int
37655 main ()
37656 {
37657 return f != crypt;
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_func_crypt=yes
37685 else
37686   echo "$as_me: failed program was:" >&5
37687 sed 's/^/| /' conftest.$ac_ext >&5
37688
37689 ac_cv_func_crypt=no
37690 fi
37691 rm -f conftest.err conftest.$ac_objext \
37692       conftest$ac_exeext conftest.$ac_ext
37693 fi
37694 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37695 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37696 if test $ac_cv_func_crypt = yes; then
37697   have_crypt=yes
37698 else
37699
37700                 LIBS="$save_LIBS"
37701                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37702 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37703 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37704   echo $ECHO_N "(cached) $ECHO_C" >&6
37705 else
37706   ac_check_lib_save_LIBS=$LIBS
37707 LIBS="-lcrypt  $LIBS"
37708 cat >conftest.$ac_ext <<_ACEOF
37709 /* confdefs.h.  */
37710 _ACEOF
37711 cat confdefs.h >>conftest.$ac_ext
37712 cat >>conftest.$ac_ext <<_ACEOF
37713 /* end confdefs.h.  */
37714
37715 /* Override any gcc2 internal prototype to avoid an error.  */
37716 #ifdef __cplusplus
37717 extern "C"
37718 #endif
37719 /* We use char because int might match the return type of a gcc2
37720    builtin and then its argument prototype would still apply.  */
37721 char crypt ();
37722 int
37723 main ()
37724 {
37725 crypt ();
37726   ;
37727   return 0;
37728 }
37729 _ACEOF
37730 rm -f conftest.$ac_objext conftest$ac_exeext
37731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37732   (eval $ac_link) 2>conftest.er1
37733   ac_status=$?
37734   grep -v '^ *+' conftest.er1 >conftest.err
37735   rm -f conftest.er1
37736   cat conftest.err >&5
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); } &&
37739          { ac_try='test -z "$ac_c_werror_flag"
37740                          || test ! -s conftest.err'
37741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37742   (eval $ac_try) 2>&5
37743   ac_status=$?
37744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745   (exit $ac_status); }; } &&
37746          { ac_try='test -s conftest$ac_exeext'
37747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37748   (eval $ac_try) 2>&5
37749   ac_status=$?
37750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751   (exit $ac_status); }; }; then
37752   ac_cv_lib_crypt_crypt=yes
37753 else
37754   echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37756
37757 ac_cv_lib_crypt_crypt=no
37758 fi
37759 rm -f conftest.err conftest.$ac_objext \
37760       conftest$ac_exeext conftest.$ac_ext
37761 LIBS=$ac_check_lib_save_LIBS
37762 fi
37763 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37764 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37765 if test $ac_cv_lib_crypt_crypt = yes; then
37766   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37767                         have_crypt=yes
37768 else
37769   have_crypt=no
37770 fi
37771
37772 fi
37773
37774
37775         LIBS="$save_LIBS"
37776
37777         if test $have_crypt = yes ; then
37778
37779 cat >>confdefs.h <<\_ACEOF
37780 #define HAVE_CRYPT 1
37781 _ACEOF
37782
37783         else
37784                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37785 echo "$as_me: WARNING: could not find crypt" >&2;}
37786                 if test $ol_enable_crypt = yes ; then
37787                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37788 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37789    { (exit 1); exit 1; }; }
37790                 fi
37791
37792                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37793 echo "$as_me: WARNING: disabling crypt support" >&2;}
37794                 ol_enable_crypt=no
37795         fi
37796 fi
37797
37798 if test $ol_enable_proctitle != no ; then
37799         echo "$as_me:$LINENO: checking for setproctitle" >&5
37800 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37801 if test "${ac_cv_func_setproctitle+set}" = set; then
37802   echo $ECHO_N "(cached) $ECHO_C" >&6
37803 else
37804   cat >conftest.$ac_ext <<_ACEOF
37805 /* confdefs.h.  */
37806 _ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h.  */
37810 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37812 #define setproctitle innocuous_setproctitle
37813
37814 /* System header to define __stub macros and hopefully few prototypes,
37815     which can conflict with char setproctitle (); below.
37816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37817     <limits.h> exists even on freestanding compilers.  */
37818
37819 #ifdef __STDC__
37820 # include <limits.h>
37821 #else
37822 # include <assert.h>
37823 #endif
37824
37825 #undef setproctitle
37826
37827 /* Override any gcc2 internal prototype to avoid an error.  */
37828 #ifdef __cplusplus
37829 extern "C"
37830 {
37831 #endif
37832 /* We use char because int might match the return type of a gcc2
37833    builtin and then its argument prototype would still apply.  */
37834 char setproctitle ();
37835 /* The GNU C library defines this for functions which it implements
37836     to always fail with ENOSYS.  Some functions are actually named
37837     something starting with __ and the normal name is an alias.  */
37838 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37839 choke me
37840 #else
37841 char (*f) () = setproctitle;
37842 #endif
37843 #ifdef __cplusplus
37844 }
37845 #endif
37846
37847 int
37848 main ()
37849 {
37850 return f != setproctitle;
37851   ;
37852   return 0;
37853 }
37854 _ACEOF
37855 rm -f conftest.$ac_objext conftest$ac_exeext
37856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37857   (eval $ac_link) 2>conftest.er1
37858   ac_status=$?
37859   grep -v '^ *+' conftest.er1 >conftest.err
37860   rm -f conftest.er1
37861   cat conftest.err >&5
37862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863   (exit $ac_status); } &&
37864          { ac_try='test -z "$ac_c_werror_flag"
37865                          || test ! -s conftest.err'
37866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37867   (eval $ac_try) 2>&5
37868   ac_status=$?
37869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37870   (exit $ac_status); }; } &&
37871          { ac_try='test -s conftest$ac_exeext'
37872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37873   (eval $ac_try) 2>&5
37874   ac_status=$?
37875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876   (exit $ac_status); }; }; then
37877   ac_cv_func_setproctitle=yes
37878 else
37879   echo "$as_me: failed program was:" >&5
37880 sed 's/^/| /' conftest.$ac_ext >&5
37881
37882 ac_cv_func_setproctitle=no
37883 fi
37884 rm -f conftest.err conftest.$ac_objext \
37885       conftest$ac_exeext conftest.$ac_ext
37886 fi
37887 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37888 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37889 if test $ac_cv_func_setproctitle = yes; then
37890   have_setproctitle=yes
37891 else
37892
37893                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37894 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37895 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37896   echo $ECHO_N "(cached) $ECHO_C" >&6
37897 else
37898   ac_check_lib_save_LIBS=$LIBS
37899 LIBS="-lutil  $LIBS"
37900 cat >conftest.$ac_ext <<_ACEOF
37901 /* confdefs.h.  */
37902 _ACEOF
37903 cat confdefs.h >>conftest.$ac_ext
37904 cat >>conftest.$ac_ext <<_ACEOF
37905 /* end confdefs.h.  */
37906
37907 /* Override any gcc2 internal prototype to avoid an error.  */
37908 #ifdef __cplusplus
37909 extern "C"
37910 #endif
37911 /* We use char because int might match the return type of a gcc2
37912    builtin and then its argument prototype would still apply.  */
37913 char setproctitle ();
37914 int
37915 main ()
37916 {
37917 setproctitle ();
37918   ;
37919   return 0;
37920 }
37921 _ACEOF
37922 rm -f conftest.$ac_objext conftest$ac_exeext
37923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37924   (eval $ac_link) 2>conftest.er1
37925   ac_status=$?
37926   grep -v '^ *+' conftest.er1 >conftest.err
37927   rm -f conftest.er1
37928   cat conftest.err >&5
37929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930   (exit $ac_status); } &&
37931          { ac_try='test -z "$ac_c_werror_flag"
37932                          || test ! -s conftest.err'
37933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37934   (eval $ac_try) 2>&5
37935   ac_status=$?
37936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); }; } &&
37938          { ac_try='test -s conftest$ac_exeext'
37939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940   (eval $ac_try) 2>&5
37941   ac_status=$?
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); }; }; then
37944   ac_cv_lib_util_setproctitle=yes
37945 else
37946   echo "$as_me: failed program was:" >&5
37947 sed 's/^/| /' conftest.$ac_ext >&5
37948
37949 ac_cv_lib_util_setproctitle=no
37950 fi
37951 rm -f conftest.err conftest.$ac_objext \
37952       conftest$ac_exeext conftest.$ac_ext
37953 LIBS=$ac_check_lib_save_LIBS
37954 fi
37955 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37956 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37957 if test $ac_cv_lib_util_setproctitle = yes; then
37958   have_setproctitle=yes
37959                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37960 else
37961   have_setproctitle=no
37962                         case $LIBOBJS in
37963     "setproctitle.$ac_objext"   | \
37964   *" setproctitle.$ac_objext"   | \
37965     "setproctitle.$ac_objext "* | \
37966   *" setproctitle.$ac_objext "* ) ;;
37967   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37968 esac
37969
37970                         LIBSRCS="$LIBSRCS setproctitle.c"
37971 fi
37972
37973 fi
37974
37975
37976         if test $have_setproctitle = yes ; then
37977
37978 cat >>confdefs.h <<\_ACEOF
37979 #define HAVE_SETPROCTITLE 1
37980 _ACEOF
37981
37982         fi
37983 fi
37984
37985 if test $ol_enable_slp != no ; then
37986
37987 for ac_header in slp.h
37988 do
37989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37991   echo "$as_me:$LINENO: checking for $ac_header" >&5
37992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37994   echo $ECHO_N "(cached) $ECHO_C" >&6
37995 fi
37996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37998 else
37999   # Is the header compilable?
38000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38002 cat >conftest.$ac_ext <<_ACEOF
38003 /* confdefs.h.  */
38004 _ACEOF
38005 cat confdefs.h >>conftest.$ac_ext
38006 cat >>conftest.$ac_ext <<_ACEOF
38007 /* end confdefs.h.  */
38008 $ac_includes_default
38009 #include <$ac_header>
38010 _ACEOF
38011 rm -f conftest.$ac_objext
38012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38013   (eval $ac_compile) 2>conftest.er1
38014   ac_status=$?
38015   grep -v '^ *+' conftest.er1 >conftest.err
38016   rm -f conftest.er1
38017   cat conftest.err >&5
38018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38019   (exit $ac_status); } &&
38020          { ac_try='test -z "$ac_c_werror_flag"
38021                          || test ! -s conftest.err'
38022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38023   (eval $ac_try) 2>&5
38024   ac_status=$?
38025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026   (exit $ac_status); }; } &&
38027          { ac_try='test -s conftest.$ac_objext'
38028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38029   (eval $ac_try) 2>&5
38030   ac_status=$?
38031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38032   (exit $ac_status); }; }; then
38033   ac_header_compiler=yes
38034 else
38035   echo "$as_me: failed program was:" >&5
38036 sed 's/^/| /' conftest.$ac_ext >&5
38037
38038 ac_header_compiler=no
38039 fi
38040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38042 echo "${ECHO_T}$ac_header_compiler" >&6
38043
38044 # Is the header present?
38045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38047 cat >conftest.$ac_ext <<_ACEOF
38048 /* confdefs.h.  */
38049 _ACEOF
38050 cat confdefs.h >>conftest.$ac_ext
38051 cat >>conftest.$ac_ext <<_ACEOF
38052 /* end confdefs.h.  */
38053 #include <$ac_header>
38054 _ACEOF
38055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38056   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
38063   if test -s conftest.err; then
38064     ac_cpp_err=$ac_c_preproc_warn_flag
38065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38066   else
38067     ac_cpp_err=
38068   fi
38069 else
38070   ac_cpp_err=yes
38071 fi
38072 if test -z "$ac_cpp_err"; then
38073   ac_header_preproc=yes
38074 else
38075   echo "$as_me: failed program was:" >&5
38076 sed 's/^/| /' conftest.$ac_ext >&5
38077
38078   ac_header_preproc=no
38079 fi
38080 rm -f conftest.err conftest.$ac_ext
38081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38082 echo "${ECHO_T}$ac_header_preproc" >&6
38083
38084 # So?  What about this header?
38085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38086   yes:no: )
38087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38091     ac_header_preproc=yes
38092     ;;
38093   no:yes:* )
38094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38106     (
38107       cat <<\_ASBOX
38108 ## --------------------------------------------- ##
38109 ## Report this to <http://www.openldap.org/its/> ##
38110 ## --------------------------------------------- ##
38111 _ASBOX
38112     ) |
38113       sed "s/^/$as_me: WARNING:     /" >&2
38114     ;;
38115 esac
38116 echo "$as_me:$LINENO: checking for $ac_header" >&5
38117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38119   echo $ECHO_N "(cached) $ECHO_C" >&6
38120 else
38121   eval "$as_ac_Header=\$ac_header_preproc"
38122 fi
38123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38125
38126 fi
38127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38128   cat >>confdefs.h <<_ACEOF
38129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38130 _ACEOF
38131
38132 fi
38133
38134 done
38135
38136
38137         if test $ac_cv_header_slp_h = yes ; then
38138                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38139 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38140 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38141   echo $ECHO_N "(cached) $ECHO_C" >&6
38142 else
38143   ac_check_lib_save_LIBS=$LIBS
38144 LIBS="-lslp  $LIBS"
38145 cat >conftest.$ac_ext <<_ACEOF
38146 /* confdefs.h.  */
38147 _ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h.  */
38151
38152 /* Override any gcc2 internal prototype to avoid an error.  */
38153 #ifdef __cplusplus
38154 extern "C"
38155 #endif
38156 /* We use char because int might match the return type of a gcc2
38157    builtin and then its argument prototype would still apply.  */
38158 char SLPOpen ();
38159 int
38160 main ()
38161 {
38162 SLPOpen ();
38163   ;
38164   return 0;
38165 }
38166 _ACEOF
38167 rm -f conftest.$ac_objext conftest$ac_exeext
38168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169   (eval $ac_link) 2>conftest.er1
38170   ac_status=$?
38171   grep -v '^ *+' conftest.er1 >conftest.err
38172   rm -f conftest.er1
38173   cat conftest.err >&5
38174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175   (exit $ac_status); } &&
38176          { ac_try='test -z "$ac_c_werror_flag"
38177                          || test ! -s conftest.err'
38178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179   (eval $ac_try) 2>&5
38180   ac_status=$?
38181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182   (exit $ac_status); }; } &&
38183          { ac_try='test -s conftest$ac_exeext'
38184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185   (eval $ac_try) 2>&5
38186   ac_status=$?
38187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188   (exit $ac_status); }; }; then
38189   ac_cv_lib_slp_SLPOpen=yes
38190 else
38191   echo "$as_me: failed program was:" >&5
38192 sed 's/^/| /' conftest.$ac_ext >&5
38193
38194 ac_cv_lib_slp_SLPOpen=no
38195 fi
38196 rm -f conftest.err conftest.$ac_objext \
38197       conftest$ac_exeext conftest.$ac_ext
38198 LIBS=$ac_check_lib_save_LIBS
38199 fi
38200 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38201 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38202 if test $ac_cv_lib_slp_SLPOpen = yes; then
38203   have_slp=yes
38204 else
38205   have_slp=no
38206 fi
38207
38208                 if test $have_slp = yes ; then
38209
38210 cat >>confdefs.h <<\_ACEOF
38211 #define HAVE_SLP 1
38212 _ACEOF
38213
38214                         SLAPD_SLP_LIBS=-lslp
38215                 fi
38216
38217         elif test $ol_enable_slp = yes ; then
38218                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38219 echo "$as_me: error: SLP not found" >&2;}
38220    { (exit 1); exit 1; }; }
38221         fi
38222 fi
38223
38224 if test "$ol_with_multiple_precision" != "no" ; then
38225         ol_have_bignum=no
38226         ol_have_gmp=no
38227
38228
38229
38230 for ac_header in openssl/bn.h bn.h
38231 do
38232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38234   echo "$as_me:$LINENO: checking for $ac_header" >&5
38235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38237   echo $ECHO_N "(cached) $ECHO_C" >&6
38238 fi
38239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38241 else
38242   # Is the header compilable?
38243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38245 cat >conftest.$ac_ext <<_ACEOF
38246 /* confdefs.h.  */
38247 _ACEOF
38248 cat confdefs.h >>conftest.$ac_ext
38249 cat >>conftest.$ac_ext <<_ACEOF
38250 /* end confdefs.h.  */
38251 $ac_includes_default
38252 #include <$ac_header>
38253 _ACEOF
38254 rm -f conftest.$ac_objext
38255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38256   (eval $ac_compile) 2>conftest.er1
38257   ac_status=$?
38258   grep -v '^ *+' conftest.er1 >conftest.err
38259   rm -f conftest.er1
38260   cat conftest.err >&5
38261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262   (exit $ac_status); } &&
38263          { ac_try='test -z "$ac_c_werror_flag"
38264                          || test ! -s conftest.err'
38265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38266   (eval $ac_try) 2>&5
38267   ac_status=$?
38268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269   (exit $ac_status); }; } &&
38270          { ac_try='test -s conftest.$ac_objext'
38271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272   (eval $ac_try) 2>&5
38273   ac_status=$?
38274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); }; }; then
38276   ac_header_compiler=yes
38277 else
38278   echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38280
38281 ac_header_compiler=no
38282 fi
38283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38285 echo "${ECHO_T}$ac_header_compiler" >&6
38286
38287 # Is the header present?
38288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38290 cat >conftest.$ac_ext <<_ACEOF
38291 /* confdefs.h.  */
38292 _ACEOF
38293 cat confdefs.h >>conftest.$ac_ext
38294 cat >>conftest.$ac_ext <<_ACEOF
38295 /* end confdefs.h.  */
38296 #include <$ac_header>
38297 _ACEOF
38298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38300   ac_status=$?
38301   grep -v '^ *+' conftest.er1 >conftest.err
38302   rm -f conftest.er1
38303   cat conftest.err >&5
38304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305   (exit $ac_status); } >/dev/null; then
38306   if test -s conftest.err; then
38307     ac_cpp_err=$ac_c_preproc_warn_flag
38308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38309   else
38310     ac_cpp_err=
38311   fi
38312 else
38313   ac_cpp_err=yes
38314 fi
38315 if test -z "$ac_cpp_err"; then
38316   ac_header_preproc=yes
38317 else
38318   echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38320
38321   ac_header_preproc=no
38322 fi
38323 rm -f conftest.err conftest.$ac_ext
38324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38325 echo "${ECHO_T}$ac_header_preproc" >&6
38326
38327 # So?  What about this header?
38328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38329   yes:no: )
38330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38334     ac_header_preproc=yes
38335     ;;
38336   no:yes:* )
38337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38349     (
38350       cat <<\_ASBOX
38351 ## --------------------------------------------- ##
38352 ## Report this to <http://www.openldap.org/its/> ##
38353 ## --------------------------------------------- ##
38354 _ASBOX
38355     ) |
38356       sed "s/^/$as_me: WARNING:     /" >&2
38357     ;;
38358 esac
38359 echo "$as_me:$LINENO: checking for $ac_header" >&5
38360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38362   echo $ECHO_N "(cached) $ECHO_C" >&6
38363 else
38364   eval "$as_ac_Header=\$ac_header_preproc"
38365 fi
38366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38368
38369 fi
38370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38371   cat >>confdefs.h <<_ACEOF
38372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38373 _ACEOF
38374
38375 fi
38376
38377 done
38378
38379
38380
38381 for ac_header in openssl/crypto.h crypto.h
38382 do
38383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38385   echo "$as_me:$LINENO: checking for $ac_header" >&5
38386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38388   echo $ECHO_N "(cached) $ECHO_C" >&6
38389 fi
38390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38392 else
38393   # Is the header compilable?
38394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38396 cat >conftest.$ac_ext <<_ACEOF
38397 /* confdefs.h.  */
38398 _ACEOF
38399 cat confdefs.h >>conftest.$ac_ext
38400 cat >>conftest.$ac_ext <<_ACEOF
38401 /* end confdefs.h.  */
38402 $ac_includes_default
38403 #include <$ac_header>
38404 _ACEOF
38405 rm -f conftest.$ac_objext
38406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38407   (eval $ac_compile) 2>conftest.er1
38408   ac_status=$?
38409   grep -v '^ *+' conftest.er1 >conftest.err
38410   rm -f conftest.er1
38411   cat conftest.err >&5
38412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413   (exit $ac_status); } &&
38414          { ac_try='test -z "$ac_c_werror_flag"
38415                          || test ! -s conftest.err'
38416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38417   (eval $ac_try) 2>&5
38418   ac_status=$?
38419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420   (exit $ac_status); }; } &&
38421          { ac_try='test -s conftest.$ac_objext'
38422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38423   (eval $ac_try) 2>&5
38424   ac_status=$?
38425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426   (exit $ac_status); }; }; then
38427   ac_header_compiler=yes
38428 else
38429   echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.$ac_ext >&5
38431
38432 ac_header_compiler=no
38433 fi
38434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38436 echo "${ECHO_T}$ac_header_compiler" >&6
38437
38438 # Is the header present?
38439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38441 cat >conftest.$ac_ext <<_ACEOF
38442 /* confdefs.h.  */
38443 _ACEOF
38444 cat confdefs.h >>conftest.$ac_ext
38445 cat >>conftest.$ac_ext <<_ACEOF
38446 /* end confdefs.h.  */
38447 #include <$ac_header>
38448 _ACEOF
38449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38451   ac_status=$?
38452   grep -v '^ *+' conftest.er1 >conftest.err
38453   rm -f conftest.er1
38454   cat conftest.err >&5
38455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456   (exit $ac_status); } >/dev/null; then
38457   if test -s conftest.err; then
38458     ac_cpp_err=$ac_c_preproc_warn_flag
38459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38460   else
38461     ac_cpp_err=
38462   fi
38463 else
38464   ac_cpp_err=yes
38465 fi
38466 if test -z "$ac_cpp_err"; then
38467   ac_header_preproc=yes
38468 else
38469   echo "$as_me: failed program was:" >&5
38470 sed 's/^/| /' conftest.$ac_ext >&5
38471
38472   ac_header_preproc=no
38473 fi
38474 rm -f conftest.err conftest.$ac_ext
38475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38476 echo "${ECHO_T}$ac_header_preproc" >&6
38477
38478 # So?  What about this header?
38479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38480   yes:no: )
38481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38485     ac_header_preproc=yes
38486     ;;
38487   no:yes:* )
38488     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38490     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38491 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38492     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38494     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38495 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38498     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38500     (
38501       cat <<\_ASBOX
38502 ## --------------------------------------------- ##
38503 ## Report this to <http://www.openldap.org/its/> ##
38504 ## --------------------------------------------- ##
38505 _ASBOX
38506     ) |
38507       sed "s/^/$as_me: WARNING:     /" >&2
38508     ;;
38509 esac
38510 echo "$as_me:$LINENO: checking for $ac_header" >&5
38511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38513   echo $ECHO_N "(cached) $ECHO_C" >&6
38514 else
38515   eval "$as_ac_Header=\$ac_header_preproc"
38516 fi
38517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38519
38520 fi
38521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38522   cat >>confdefs.h <<_ACEOF
38523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38524 _ACEOF
38525
38526 fi
38527
38528 done
38529
38530
38531 for ac_header in gmp.h
38532 do
38533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38535   echo "$as_me:$LINENO: checking for $ac_header" >&5
38536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38538   echo $ECHO_N "(cached) $ECHO_C" >&6
38539 fi
38540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38542 else
38543   # Is the header compilable?
38544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38546 cat >conftest.$ac_ext <<_ACEOF
38547 /* confdefs.h.  */
38548 _ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h.  */
38552 $ac_includes_default
38553 #include <$ac_header>
38554 _ACEOF
38555 rm -f conftest.$ac_objext
38556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38557   (eval $ac_compile) 2>conftest.er1
38558   ac_status=$?
38559   grep -v '^ *+' conftest.er1 >conftest.err
38560   rm -f conftest.er1
38561   cat conftest.err >&5
38562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38563   (exit $ac_status); } &&
38564          { ac_try='test -z "$ac_c_werror_flag"
38565                          || test ! -s conftest.err'
38566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38567   (eval $ac_try) 2>&5
38568   ac_status=$?
38569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570   (exit $ac_status); }; } &&
38571          { ac_try='test -s conftest.$ac_objext'
38572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38573   (eval $ac_try) 2>&5
38574   ac_status=$?
38575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576   (exit $ac_status); }; }; then
38577   ac_header_compiler=yes
38578 else
38579   echo "$as_me: failed program was:" >&5
38580 sed 's/^/| /' conftest.$ac_ext >&5
38581
38582 ac_header_compiler=no
38583 fi
38584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38586 echo "${ECHO_T}$ac_header_compiler" >&6
38587
38588 # Is the header present?
38589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38591 cat >conftest.$ac_ext <<_ACEOF
38592 /* confdefs.h.  */
38593 _ACEOF
38594 cat confdefs.h >>conftest.$ac_ext
38595 cat >>conftest.$ac_ext <<_ACEOF
38596 /* end confdefs.h.  */
38597 #include <$ac_header>
38598 _ACEOF
38599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38601   ac_status=$?
38602   grep -v '^ *+' conftest.er1 >conftest.err
38603   rm -f conftest.er1
38604   cat conftest.err >&5
38605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606   (exit $ac_status); } >/dev/null; then
38607   if test -s conftest.err; then
38608     ac_cpp_err=$ac_c_preproc_warn_flag
38609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38610   else
38611     ac_cpp_err=
38612   fi
38613 else
38614   ac_cpp_err=yes
38615 fi
38616 if test -z "$ac_cpp_err"; then
38617   ac_header_preproc=yes
38618 else
38619   echo "$as_me: failed program was:" >&5
38620 sed 's/^/| /' conftest.$ac_ext >&5
38621
38622   ac_header_preproc=no
38623 fi
38624 rm -f conftest.err conftest.$ac_ext
38625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38626 echo "${ECHO_T}$ac_header_preproc" >&6
38627
38628 # So?  What about this header?
38629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38630   yes:no: )
38631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38635     ac_header_preproc=yes
38636     ;;
38637   no:yes:* )
38638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38650     (
38651       cat <<\_ASBOX
38652 ## --------------------------------------------- ##
38653 ## Report this to <http://www.openldap.org/its/> ##
38654 ## --------------------------------------------- ##
38655 _ASBOX
38656     ) |
38657       sed "s/^/$as_me: WARNING:     /" >&2
38658     ;;
38659 esac
38660 echo "$as_me:$LINENO: checking for $ac_header" >&5
38661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38663   echo $ECHO_N "(cached) $ECHO_C" >&6
38664 else
38665   eval "$as_ac_Header=\$ac_header_preproc"
38666 fi
38667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38669
38670 fi
38671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38672   cat >>confdefs.h <<_ACEOF
38673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38674 _ACEOF
38675
38676 fi
38677
38678 done
38679
38680
38681         if test "$ol_with_tls" = "found" ; then
38682                 ol_have_bn_h=no
38683                 ol_have_crypto_h=no
38684
38685                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38686                    test "$ac_cv_header_bn_h" = "yes" ; then
38687                         ol_have_bn_h=yes
38688                 fi
38689
38690                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38691                    test "$ac_cv_header_crypto_h" = "yes" ; then
38692                         ol_have_crypto_h=yes
38693                 fi
38694
38695                 if test "$ol_have_bn_h" = "yes" &&
38696                    test "$ol_have_crypto_h" = "yes" ; then
38697                         ol_have_bignum=yes
38698                 fi
38699         fi
38700
38701         if test $ac_cv_header_gmp_h = yes ; then
38702                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38703 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38704 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38705   echo $ECHO_N "(cached) $ECHO_C" >&6
38706 else
38707   ac_check_lib_save_LIBS=$LIBS
38708 LIBS="-lgmp  $LIBS"
38709 cat >conftest.$ac_ext <<_ACEOF
38710 /* confdefs.h.  */
38711 _ACEOF
38712 cat confdefs.h >>conftest.$ac_ext
38713 cat >>conftest.$ac_ext <<_ACEOF
38714 /* end confdefs.h.  */
38715
38716 /* Override any gcc2 internal prototype to avoid an error.  */
38717 #ifdef __cplusplus
38718 extern "C"
38719 #endif
38720 /* We use char because int might match the return type of a gcc2
38721    builtin and then its argument prototype would still apply.  */
38722 char __gmpz_add_ui ();
38723 int
38724 main ()
38725 {
38726 __gmpz_add_ui ();
38727   ;
38728   return 0;
38729 }
38730 _ACEOF
38731 rm -f conftest.$ac_objext conftest$ac_exeext
38732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38733   (eval $ac_link) 2>conftest.er1
38734   ac_status=$?
38735   grep -v '^ *+' conftest.er1 >conftest.err
38736   rm -f conftest.er1
38737   cat conftest.err >&5
38738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739   (exit $ac_status); } &&
38740          { ac_try='test -z "$ac_c_werror_flag"
38741                          || test ! -s conftest.err'
38742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743   (eval $ac_try) 2>&5
38744   ac_status=$?
38745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746   (exit $ac_status); }; } &&
38747          { ac_try='test -s conftest$ac_exeext'
38748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38749   (eval $ac_try) 2>&5
38750   ac_status=$?
38751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38752   (exit $ac_status); }; }; then
38753   ac_cv_lib_gmp___gmpz_add_ui=yes
38754 else
38755   echo "$as_me: failed program was:" >&5
38756 sed 's/^/| /' conftest.$ac_ext >&5
38757
38758 ac_cv_lib_gmp___gmpz_add_ui=no
38759 fi
38760 rm -f conftest.err conftest.$ac_objext \
38761       conftest$ac_exeext conftest.$ac_ext
38762 LIBS=$ac_check_lib_save_LIBS
38763 fi
38764 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38765 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38766 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38767   have_gmp=yes
38768 else
38769   have_gmp=no
38770 fi
38771
38772                 if test $have_gmp = yes ; then
38773                         ol_have_gmp=yes
38774                 fi
38775         fi
38776
38777         echo "$as_me:$LINENO: checking for multiple precision support" >&5
38778 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38779
38780         ol_mp_support="none"
38781         case "$ol_with_multiple_precision" in
38782         auto)
38783                                                                                 if test "$ol_have_bignum" = "yes" ; then
38784                         ol_mp_support="bignum"
38785                 else
38786                         if test "$ol_have_gmp" = "yes" ; then
38787                                 ol_mp_support="gmp"
38788                         fi
38789                 fi
38790                 ;;
38791         bignum)
38792                 if test "$ol_have_bignum" != "yes" ; then
38793                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38794 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38795    { (exit 1); exit 1; }; }
38796                 fi
38797                 ol_mp_support="bignum"
38798                 ;;
38799         gmp)
38800                 if test "$ol_have_gmp" != "yes" ; then
38801                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
38802 echo "$as_me: error: GMP not available" >&2;}
38803    { (exit 1); exit 1; }; }
38804                 fi
38805                 ol_mp_support="gmp"
38806                 ;;
38807         yes)
38808                 if test "$ol_have_bignum" = "yes" ; then
38809                         ol_mp_support="bignum"
38810                 elif test "$ol_have_gmp" = "yes" ; then
38811                         ol_mp_support="gmp"
38812                 else
38813                         { { echo "$as_me:$LINENO: error: not available" >&5
38814 echo "$as_me: error: not available" >&2;}
38815    { (exit 1); exit 1; }; }
38816                 fi
38817                 ;;
38818         esac
38819
38820         case "$ol_mp_support" in
38821         bignum)
38822
38823 cat >>confdefs.h <<\_ACEOF
38824 #define HAVE_BIGNUM 1
38825 _ACEOF
38826
38827                 ;;
38828         gmp)
38829
38830 cat >>confdefs.h <<\_ACEOF
38831 #define HAVE_GMP 1
38832 _ACEOF
38833
38834                 SLAPD_GMP_LIBS=-lgmp
38835                 ;;
38836         none)
38837                 ;;
38838         esac
38839
38840         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38841 echo "${ECHO_T}$ol_mp_support" >&6
38842 fi
38843
38844
38845 echo "$as_me:$LINENO: checking for mode_t" >&5
38846 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38847 if test "${ac_cv_type_mode_t+set}" = set; then
38848   echo $ECHO_N "(cached) $ECHO_C" >&6
38849 else
38850   cat >conftest.$ac_ext <<_ACEOF
38851 /* confdefs.h.  */
38852 _ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h.  */
38856 $ac_includes_default
38857 int
38858 main ()
38859 {
38860 if ((mode_t *) 0)
38861   return 0;
38862 if (sizeof (mode_t))
38863   return 0;
38864   ;
38865   return 0;
38866 }
38867 _ACEOF
38868 rm -f conftest.$ac_objext
38869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38870   (eval $ac_compile) 2>conftest.er1
38871   ac_status=$?
38872   grep -v '^ *+' conftest.er1 >conftest.err
38873   rm -f conftest.er1
38874   cat conftest.err >&5
38875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876   (exit $ac_status); } &&
38877          { ac_try='test -z "$ac_c_werror_flag"
38878                          || test ! -s conftest.err'
38879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38880   (eval $ac_try) 2>&5
38881   ac_status=$?
38882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883   (exit $ac_status); }; } &&
38884          { ac_try='test -s conftest.$ac_objext'
38885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38886   (eval $ac_try) 2>&5
38887   ac_status=$?
38888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889   (exit $ac_status); }; }; then
38890   ac_cv_type_mode_t=yes
38891 else
38892   echo "$as_me: failed program was:" >&5
38893 sed 's/^/| /' conftest.$ac_ext >&5
38894
38895 ac_cv_type_mode_t=no
38896 fi
38897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38898 fi
38899 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38900 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38901 if test $ac_cv_type_mode_t = yes; then
38902   :
38903 else
38904
38905 cat >>confdefs.h <<_ACEOF
38906 #define mode_t int
38907 _ACEOF
38908
38909 fi
38910
38911 echo "$as_me:$LINENO: checking for off_t" >&5
38912 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38913 if test "${ac_cv_type_off_t+set}" = set; then
38914   echo $ECHO_N "(cached) $ECHO_C" >&6
38915 else
38916   cat >conftest.$ac_ext <<_ACEOF
38917 /* confdefs.h.  */
38918 _ACEOF
38919 cat confdefs.h >>conftest.$ac_ext
38920 cat >>conftest.$ac_ext <<_ACEOF
38921 /* end confdefs.h.  */
38922 $ac_includes_default
38923 int
38924 main ()
38925 {
38926 if ((off_t *) 0)
38927   return 0;
38928 if (sizeof (off_t))
38929   return 0;
38930   ;
38931   return 0;
38932 }
38933 _ACEOF
38934 rm -f conftest.$ac_objext
38935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38936   (eval $ac_compile) 2>conftest.er1
38937   ac_status=$?
38938   grep -v '^ *+' conftest.er1 >conftest.err
38939   rm -f conftest.er1
38940   cat conftest.err >&5
38941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38942   (exit $ac_status); } &&
38943          { ac_try='test -z "$ac_c_werror_flag"
38944                          || test ! -s conftest.err'
38945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38946   (eval $ac_try) 2>&5
38947   ac_status=$?
38948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949   (exit $ac_status); }; } &&
38950          { ac_try='test -s conftest.$ac_objext'
38951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952   (eval $ac_try) 2>&5
38953   ac_status=$?
38954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955   (exit $ac_status); }; }; then
38956   ac_cv_type_off_t=yes
38957 else
38958   echo "$as_me: failed program was:" >&5
38959 sed 's/^/| /' conftest.$ac_ext >&5
38960
38961 ac_cv_type_off_t=no
38962 fi
38963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38964 fi
38965 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38966 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38967 if test $ac_cv_type_off_t = yes; then
38968   :
38969 else
38970
38971 cat >>confdefs.h <<_ACEOF
38972 #define off_t long
38973 _ACEOF
38974
38975 fi
38976
38977 echo "$as_me:$LINENO: checking for pid_t" >&5
38978 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38979 if test "${ac_cv_type_pid_t+set}" = set; then
38980   echo $ECHO_N "(cached) $ECHO_C" >&6
38981 else
38982   cat >conftest.$ac_ext <<_ACEOF
38983 /* confdefs.h.  */
38984 _ACEOF
38985 cat confdefs.h >>conftest.$ac_ext
38986 cat >>conftest.$ac_ext <<_ACEOF
38987 /* end confdefs.h.  */
38988 $ac_includes_default
38989 int
38990 main ()
38991 {
38992 if ((pid_t *) 0)
38993   return 0;
38994 if (sizeof (pid_t))
38995   return 0;
38996   ;
38997   return 0;
38998 }
38999 _ACEOF
39000 rm -f conftest.$ac_objext
39001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39002   (eval $ac_compile) 2>conftest.er1
39003   ac_status=$?
39004   grep -v '^ *+' conftest.er1 >conftest.err
39005   rm -f conftest.er1
39006   cat conftest.err >&5
39007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008   (exit $ac_status); } &&
39009          { ac_try='test -z "$ac_c_werror_flag"
39010                          || test ! -s conftest.err'
39011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012   (eval $ac_try) 2>&5
39013   ac_status=$?
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); }; } &&
39016          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39022   ac_cv_type_pid_t=yes
39023 else
39024   echo "$as_me: failed program was:" >&5
39025 sed 's/^/| /' conftest.$ac_ext >&5
39026
39027 ac_cv_type_pid_t=no
39028 fi
39029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39030 fi
39031 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39032 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39033 if test $ac_cv_type_pid_t = yes; then
39034   :
39035 else
39036
39037 cat >>confdefs.h <<_ACEOF
39038 #define pid_t int
39039 _ACEOF
39040
39041 fi
39042
39043 echo "$as_me:$LINENO: checking for ssize_t" >&5
39044 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39045 if test "${ac_cv_type_ssize_t+set}" = set; then
39046   echo $ECHO_N "(cached) $ECHO_C" >&6
39047 else
39048   cat >conftest.$ac_ext <<_ACEOF
39049 /* confdefs.h.  */
39050 _ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h.  */
39054 $ac_includes_default
39055 int
39056 main ()
39057 {
39058 if ((ssize_t *) 0)
39059   return 0;
39060 if (sizeof (ssize_t))
39061   return 0;
39062   ;
39063   return 0;
39064 }
39065 _ACEOF
39066 rm -f conftest.$ac_objext
39067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39068   (eval $ac_compile) 2>conftest.er1
39069   ac_status=$?
39070   grep -v '^ *+' conftest.er1 >conftest.err
39071   rm -f conftest.er1
39072   cat conftest.err >&5
39073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074   (exit $ac_status); } &&
39075          { ac_try='test -z "$ac_c_werror_flag"
39076                          || test ! -s conftest.err'
39077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39078   (eval $ac_try) 2>&5
39079   ac_status=$?
39080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081   (exit $ac_status); }; } &&
39082          { ac_try='test -s conftest.$ac_objext'
39083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39084   (eval $ac_try) 2>&5
39085   ac_status=$?
39086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087   (exit $ac_status); }; }; then
39088   ac_cv_type_ssize_t=yes
39089 else
39090   echo "$as_me: failed program was:" >&5
39091 sed 's/^/| /' conftest.$ac_ext >&5
39092
39093 ac_cv_type_ssize_t=no
39094 fi
39095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39096 fi
39097 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39098 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39099 if test $ac_cv_type_ssize_t = yes; then
39100   :
39101 else
39102
39103 cat >>confdefs.h <<_ACEOF
39104 #define ssize_t signed int
39105 _ACEOF
39106
39107 fi
39108
39109 echo "$as_me:$LINENO: checking for caddr_t" >&5
39110 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39111 if test "${ac_cv_type_caddr_t+set}" = set; then
39112   echo $ECHO_N "(cached) $ECHO_C" >&6
39113 else
39114   cat >conftest.$ac_ext <<_ACEOF
39115 /* confdefs.h.  */
39116 _ACEOF
39117 cat confdefs.h >>conftest.$ac_ext
39118 cat >>conftest.$ac_ext <<_ACEOF
39119 /* end confdefs.h.  */
39120 $ac_includes_default
39121 int
39122 main ()
39123 {
39124 if ((caddr_t *) 0)
39125   return 0;
39126 if (sizeof (caddr_t))
39127   return 0;
39128   ;
39129   return 0;
39130 }
39131 _ACEOF
39132 rm -f conftest.$ac_objext
39133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39134   (eval $ac_compile) 2>conftest.er1
39135   ac_status=$?
39136   grep -v '^ *+' conftest.er1 >conftest.err
39137   rm -f conftest.er1
39138   cat conftest.err >&5
39139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140   (exit $ac_status); } &&
39141          { ac_try='test -z "$ac_c_werror_flag"
39142                          || test ! -s conftest.err'
39143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39144   (eval $ac_try) 2>&5
39145   ac_status=$?
39146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147   (exit $ac_status); }; } &&
39148          { ac_try='test -s conftest.$ac_objext'
39149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39150   (eval $ac_try) 2>&5
39151   ac_status=$?
39152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153   (exit $ac_status); }; }; then
39154   ac_cv_type_caddr_t=yes
39155 else
39156   echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39158
39159 ac_cv_type_caddr_t=no
39160 fi
39161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39162 fi
39163 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39164 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39165 if test $ac_cv_type_caddr_t = yes; then
39166   :
39167 else
39168
39169 cat >>confdefs.h <<_ACEOF
39170 #define caddr_t char *
39171 _ACEOF
39172
39173 fi
39174
39175 echo "$as_me:$LINENO: checking for size_t" >&5
39176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39177 if test "${ac_cv_type_size_t+set}" = set; then
39178   echo $ECHO_N "(cached) $ECHO_C" >&6
39179 else
39180   cat >conftest.$ac_ext <<_ACEOF
39181 /* confdefs.h.  */
39182 _ACEOF
39183 cat confdefs.h >>conftest.$ac_ext
39184 cat >>conftest.$ac_ext <<_ACEOF
39185 /* end confdefs.h.  */
39186 $ac_includes_default
39187 int
39188 main ()
39189 {
39190 if ((size_t *) 0)
39191   return 0;
39192 if (sizeof (size_t))
39193   return 0;
39194   ;
39195   return 0;
39196 }
39197 _ACEOF
39198 rm -f conftest.$ac_objext
39199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39200   (eval $ac_compile) 2>conftest.er1
39201   ac_status=$?
39202   grep -v '^ *+' conftest.er1 >conftest.err
39203   rm -f conftest.er1
39204   cat conftest.err >&5
39205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206   (exit $ac_status); } &&
39207          { ac_try='test -z "$ac_c_werror_flag"
39208                          || test ! -s conftest.err'
39209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210   (eval $ac_try) 2>&5
39211   ac_status=$?
39212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213   (exit $ac_status); }; } &&
39214          { ac_try='test -s conftest.$ac_objext'
39215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216   (eval $ac_try) 2>&5
39217   ac_status=$?
39218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219   (exit $ac_status); }; }; then
39220   ac_cv_type_size_t=yes
39221 else
39222   echo "$as_me: failed program was:" >&5
39223 sed 's/^/| /' conftest.$ac_ext >&5
39224
39225 ac_cv_type_size_t=no
39226 fi
39227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39228 fi
39229 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39230 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39231 if test $ac_cv_type_size_t = yes; then
39232   :
39233 else
39234
39235 cat >>confdefs.h <<_ACEOF
39236 #define size_t unsigned
39237 _ACEOF
39238
39239 fi
39240
39241
39242 echo "$as_me:$LINENO: checking for long long" >&5
39243 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39244 if test "${ac_cv_type_long_long+set}" = set; then
39245   echo $ECHO_N "(cached) $ECHO_C" >&6
39246 else
39247   cat >conftest.$ac_ext <<_ACEOF
39248 /* confdefs.h.  */
39249 _ACEOF
39250 cat confdefs.h >>conftest.$ac_ext
39251 cat >>conftest.$ac_ext <<_ACEOF
39252 /* end confdefs.h.  */
39253 $ac_includes_default
39254 int
39255 main ()
39256 {
39257 if ((long long *) 0)
39258   return 0;
39259 if (sizeof (long long))
39260   return 0;
39261   ;
39262   return 0;
39263 }
39264 _ACEOF
39265 rm -f conftest.$ac_objext
39266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39267   (eval $ac_compile) 2>conftest.er1
39268   ac_status=$?
39269   grep -v '^ *+' conftest.er1 >conftest.err
39270   rm -f conftest.er1
39271   cat conftest.err >&5
39272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39273   (exit $ac_status); } &&
39274          { ac_try='test -z "$ac_c_werror_flag"
39275                          || test ! -s conftest.err'
39276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39277   (eval $ac_try) 2>&5
39278   ac_status=$?
39279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280   (exit $ac_status); }; } &&
39281          { ac_try='test -s conftest.$ac_objext'
39282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283   (eval $ac_try) 2>&5
39284   ac_status=$?
39285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286   (exit $ac_status); }; }; then
39287   ac_cv_type_long_long=yes
39288 else
39289   echo "$as_me: failed program was:" >&5
39290 sed 's/^/| /' conftest.$ac_ext >&5
39291
39292 ac_cv_type_long_long=no
39293 fi
39294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39295 fi
39296 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39297 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39298 if test $ac_cv_type_long_long = yes; then
39299
39300 cat >>confdefs.h <<_ACEOF
39301 #define HAVE_LONG_LONG 1
39302 _ACEOF
39303
39304
39305 fi
39306
39307 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39308 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39309 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39310   echo $ECHO_N "(cached) $ECHO_C" >&6
39311 else
39312   cat >conftest.$ac_ext <<_ACEOF
39313 /* confdefs.h.  */
39314 _ACEOF
39315 cat confdefs.h >>conftest.$ac_ext
39316 cat >>conftest.$ac_ext <<_ACEOF
39317 /* end confdefs.h.  */
39318 $ac_includes_default
39319 int
39320 main ()
39321 {
39322 if ((ptrdiff_t *) 0)
39323   return 0;
39324 if (sizeof (ptrdiff_t))
39325   return 0;
39326   ;
39327   return 0;
39328 }
39329 _ACEOF
39330 rm -f conftest.$ac_objext
39331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39332   (eval $ac_compile) 2>conftest.er1
39333   ac_status=$?
39334   grep -v '^ *+' conftest.er1 >conftest.err
39335   rm -f conftest.er1
39336   cat conftest.err >&5
39337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338   (exit $ac_status); } &&
39339          { ac_try='test -z "$ac_c_werror_flag"
39340                          || test ! -s conftest.err'
39341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39342   (eval $ac_try) 2>&5
39343   ac_status=$?
39344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39345   (exit $ac_status); }; } &&
39346          { ac_try='test -s conftest.$ac_objext'
39347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39348   (eval $ac_try) 2>&5
39349   ac_status=$?
39350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351   (exit $ac_status); }; }; then
39352   ac_cv_type_ptrdiff_t=yes
39353 else
39354   echo "$as_me: failed program was:" >&5
39355 sed 's/^/| /' conftest.$ac_ext >&5
39356
39357 ac_cv_type_ptrdiff_t=no
39358 fi
39359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39360 fi
39361 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39362 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39363 if test $ac_cv_type_ptrdiff_t = yes; then
39364
39365 cat >>confdefs.h <<_ACEOF
39366 #define HAVE_PTRDIFF_T 1
39367 _ACEOF
39368
39369
39370 fi
39371
39372
39373 echo "$as_me:$LINENO: checking for socklen_t" >&5
39374 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39375 if test "${ac_cv_type_socklen_t+set}" = set; then
39376   echo $ECHO_N "(cached) $ECHO_C" >&6
39377 else
39378   cat >conftest.$ac_ext <<_ACEOF
39379 /* confdefs.h.  */
39380 _ACEOF
39381 cat confdefs.h >>conftest.$ac_ext
39382 cat >>conftest.$ac_ext <<_ACEOF
39383 /* end confdefs.h.  */
39384 $ac_includes_default
39385 #ifdef HAVE_SYS_SOCKET_H
39386 #include <sys/socket.h>
39387 #endif
39388
39389
39390 int
39391 main ()
39392 {
39393 if ((socklen_t *) 0)
39394   return 0;
39395 if (sizeof (socklen_t))
39396   return 0;
39397   ;
39398   return 0;
39399 }
39400 _ACEOF
39401 rm -f conftest.$ac_objext
39402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39403   (eval $ac_compile) 2>conftest.er1
39404   ac_status=$?
39405   grep -v '^ *+' conftest.er1 >conftest.err
39406   rm -f conftest.er1
39407   cat conftest.err >&5
39408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39409   (exit $ac_status); } &&
39410          { ac_try='test -z "$ac_c_werror_flag"
39411                          || test ! -s conftest.err'
39412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39413   (eval $ac_try) 2>&5
39414   ac_status=$?
39415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39416   (exit $ac_status); }; } &&
39417          { ac_try='test -s conftest.$ac_objext'
39418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39419   (eval $ac_try) 2>&5
39420   ac_status=$?
39421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39422   (exit $ac_status); }; }; then
39423   ac_cv_type_socklen_t=yes
39424 else
39425   echo "$as_me: failed program was:" >&5
39426 sed 's/^/| /' conftest.$ac_ext >&5
39427
39428 ac_cv_type_socklen_t=no
39429 fi
39430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39431 fi
39432 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39433 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39434 if test $ac_cv_type_socklen_t = yes; then
39435   :
39436 else
39437
39438 cat >>confdefs.h <<_ACEOF
39439 #define socklen_t int
39440 _ACEOF
39441
39442 fi
39443
39444
39445 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39446 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39447 if test "${ac_cv_type_signal+set}" = set; then
39448   echo $ECHO_N "(cached) $ECHO_C" >&6
39449 else
39450   cat >conftest.$ac_ext <<_ACEOF
39451 /* confdefs.h.  */
39452 _ACEOF
39453 cat confdefs.h >>conftest.$ac_ext
39454 cat >>conftest.$ac_ext <<_ACEOF
39455 /* end confdefs.h.  */
39456 #include <sys/types.h>
39457 #include <signal.h>
39458 #ifdef signal
39459 # undef signal
39460 #endif
39461 #ifdef __cplusplus
39462 extern "C" void (*signal (int, void (*)(int)))(int);
39463 #else
39464 void (*signal ()) ();
39465 #endif
39466
39467 int
39468 main ()
39469 {
39470 int i;
39471   ;
39472   return 0;
39473 }
39474 _ACEOF
39475 rm -f conftest.$ac_objext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39477   (eval $ac_compile) 2>conftest.er1
39478   ac_status=$?
39479   grep -v '^ *+' conftest.er1 >conftest.err
39480   rm -f conftest.er1
39481   cat conftest.err >&5
39482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483   (exit $ac_status); } &&
39484          { ac_try='test -z "$ac_c_werror_flag"
39485                          || test ! -s conftest.err'
39486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487   (eval $ac_try) 2>&5
39488   ac_status=$?
39489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490   (exit $ac_status); }; } &&
39491          { ac_try='test -s conftest.$ac_objext'
39492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493   (eval $ac_try) 2>&5
39494   ac_status=$?
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); }; }; then
39497   ac_cv_type_signal=void
39498 else
39499   echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39501
39502 ac_cv_type_signal=int
39503 fi
39504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39505 fi
39506 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39507 echo "${ECHO_T}$ac_cv_type_signal" >&6
39508
39509 cat >>confdefs.h <<_ACEOF
39510 #define RETSIGTYPE $ac_cv_type_signal
39511 _ACEOF
39512
39513
39514
39515 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39516 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39517 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39518   echo $ECHO_N "(cached) $ECHO_C" >&6
39519 else
39520   cat >conftest.$ac_ext <<_ACEOF
39521 /* confdefs.h.  */
39522 _ACEOF
39523 cat confdefs.h >>conftest.$ac_ext
39524 cat >>conftest.$ac_ext <<_ACEOF
39525 /* end confdefs.h.  */
39526 $ac_includes_default
39527 #include <signal.h>
39528
39529
39530 int
39531 main ()
39532 {
39533 if ((sig_atomic_t *) 0)
39534   return 0;
39535 if (sizeof (sig_atomic_t))
39536   return 0;
39537   ;
39538   return 0;
39539 }
39540 _ACEOF
39541 rm -f conftest.$ac_objext
39542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39543   (eval $ac_compile) 2>conftest.er1
39544   ac_status=$?
39545   grep -v '^ *+' conftest.er1 >conftest.err
39546   rm -f conftest.er1
39547   cat conftest.err >&5
39548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39549   (exit $ac_status); } &&
39550          { ac_try='test -z "$ac_c_werror_flag"
39551                          || test ! -s conftest.err'
39552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39553   (eval $ac_try) 2>&5
39554   ac_status=$?
39555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556   (exit $ac_status); }; } &&
39557          { ac_try='test -s conftest.$ac_objext'
39558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559   (eval $ac_try) 2>&5
39560   ac_status=$?
39561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562   (exit $ac_status); }; }; then
39563   ac_cv_type_sig_atomic_t=yes
39564 else
39565   echo "$as_me: failed program was:" >&5
39566 sed 's/^/| /' conftest.$ac_ext >&5
39567
39568 ac_cv_type_sig_atomic_t=no
39569 fi
39570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39571 fi
39572 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39573 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39574 if test $ac_cv_type_sig_atomic_t = yes; then
39575   :
39576 else
39577
39578 cat >>confdefs.h <<_ACEOF
39579 #define sig_atomic_t int
39580 _ACEOF
39581
39582 fi
39583
39584
39585 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39586 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39587 if test "${ac_cv_type_uid_t+set}" = set; then
39588   echo $ECHO_N "(cached) $ECHO_C" >&6
39589 else
39590   cat >conftest.$ac_ext <<_ACEOF
39591 /* confdefs.h.  */
39592 _ACEOF
39593 cat confdefs.h >>conftest.$ac_ext
39594 cat >>conftest.$ac_ext <<_ACEOF
39595 /* end confdefs.h.  */
39596 #include <sys/types.h>
39597
39598 _ACEOF
39599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39600   $EGREP "uid_t" >/dev/null 2>&1; then
39601   ac_cv_type_uid_t=yes
39602 else
39603   ac_cv_type_uid_t=no
39604 fi
39605 rm -f conftest*
39606
39607 fi
39608 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39609 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39610 if test $ac_cv_type_uid_t = no; then
39611
39612 cat >>confdefs.h <<\_ACEOF
39613 #define uid_t int
39614 _ACEOF
39615
39616
39617 cat >>confdefs.h <<\_ACEOF
39618 #define gid_t int
39619 _ACEOF
39620
39621 fi
39622
39623
39624 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39625 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39626 if test "${ac_cv_header_time+set}" = set; then
39627   echo $ECHO_N "(cached) $ECHO_C" >&6
39628 else
39629   cat >conftest.$ac_ext <<_ACEOF
39630 /* confdefs.h.  */
39631 _ACEOF
39632 cat confdefs.h >>conftest.$ac_ext
39633 cat >>conftest.$ac_ext <<_ACEOF
39634 /* end confdefs.h.  */
39635 #include <sys/types.h>
39636 #include <sys/time.h>
39637 #include <time.h>
39638
39639 int
39640 main ()
39641 {
39642 if ((struct tm *) 0)
39643 return 0;
39644   ;
39645   return 0;
39646 }
39647 _ACEOF
39648 rm -f conftest.$ac_objext
39649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39650   (eval $ac_compile) 2>conftest.er1
39651   ac_status=$?
39652   grep -v '^ *+' conftest.er1 >conftest.err
39653   rm -f conftest.er1
39654   cat conftest.err >&5
39655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656   (exit $ac_status); } &&
39657          { ac_try='test -z "$ac_c_werror_flag"
39658                          || test ! -s conftest.err'
39659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660   (eval $ac_try) 2>&5
39661   ac_status=$?
39662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663   (exit $ac_status); }; } &&
39664          { ac_try='test -s conftest.$ac_objext'
39665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39666   (eval $ac_try) 2>&5
39667   ac_status=$?
39668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669   (exit $ac_status); }; }; then
39670   ac_cv_header_time=yes
39671 else
39672   echo "$as_me: failed program was:" >&5
39673 sed 's/^/| /' conftest.$ac_ext >&5
39674
39675 ac_cv_header_time=no
39676 fi
39677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39678 fi
39679 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39680 echo "${ECHO_T}$ac_cv_header_time" >&6
39681 if test $ac_cv_header_time = yes; then
39682
39683 cat >>confdefs.h <<\_ACEOF
39684 #define TIME_WITH_SYS_TIME 1
39685 _ACEOF
39686
39687 fi
39688
39689 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39690 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39691 if test "${ac_cv_struct_tm+set}" = set; then
39692   echo $ECHO_N "(cached) $ECHO_C" >&6
39693 else
39694   cat >conftest.$ac_ext <<_ACEOF
39695 /* confdefs.h.  */
39696 _ACEOF
39697 cat confdefs.h >>conftest.$ac_ext
39698 cat >>conftest.$ac_ext <<_ACEOF
39699 /* end confdefs.h.  */
39700 #include <sys/types.h>
39701 #include <time.h>
39702
39703 int
39704 main ()
39705 {
39706 struct tm *tp; tp->tm_sec;
39707   ;
39708   return 0;
39709 }
39710 _ACEOF
39711 rm -f conftest.$ac_objext
39712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39713   (eval $ac_compile) 2>conftest.er1
39714   ac_status=$?
39715   grep -v '^ *+' conftest.er1 >conftest.err
39716   rm -f conftest.er1
39717   cat conftest.err >&5
39718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719   (exit $ac_status); } &&
39720          { ac_try='test -z "$ac_c_werror_flag"
39721                          || test ! -s conftest.err'
39722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39723   (eval $ac_try) 2>&5
39724   ac_status=$?
39725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726   (exit $ac_status); }; } &&
39727          { ac_try='test -s conftest.$ac_objext'
39728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39729   (eval $ac_try) 2>&5
39730   ac_status=$?
39731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732   (exit $ac_status); }; }; then
39733   ac_cv_struct_tm=time.h
39734 else
39735   echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39737
39738 ac_cv_struct_tm=sys/time.h
39739 fi
39740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39741 fi
39742 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39743 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39744 if test $ac_cv_struct_tm = sys/time.h; then
39745
39746 cat >>confdefs.h <<\_ACEOF
39747 #define TM_IN_SYS_TIME 1
39748 _ACEOF
39749
39750 fi
39751
39752 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39753 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39754 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39755   echo $ECHO_N "(cached) $ECHO_C" >&6
39756 else
39757   cat >conftest.$ac_ext <<_ACEOF
39758 /* confdefs.h.  */
39759 _ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h.  */
39763 $ac_includes_default
39764 int
39765 main ()
39766 {
39767 static struct stat ac_aggr;
39768 if (ac_aggr.st_blksize)
39769 return 0;
39770   ;
39771   return 0;
39772 }
39773 _ACEOF
39774 rm -f conftest.$ac_objext
39775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39776   (eval $ac_compile) 2>conftest.er1
39777   ac_status=$?
39778   grep -v '^ *+' conftest.er1 >conftest.err
39779   rm -f conftest.er1
39780   cat conftest.err >&5
39781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782   (exit $ac_status); } &&
39783          { ac_try='test -z "$ac_c_werror_flag"
39784                          || test ! -s conftest.err'
39785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39786   (eval $ac_try) 2>&5
39787   ac_status=$?
39788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39789   (exit $ac_status); }; } &&
39790          { ac_try='test -s conftest.$ac_objext'
39791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39792   (eval $ac_try) 2>&5
39793   ac_status=$?
39794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39795   (exit $ac_status); }; }; then
39796   ac_cv_member_struct_stat_st_blksize=yes
39797 else
39798   echo "$as_me: failed program was:" >&5
39799 sed 's/^/| /' conftest.$ac_ext >&5
39800
39801 cat >conftest.$ac_ext <<_ACEOF
39802 /* confdefs.h.  */
39803 _ACEOF
39804 cat confdefs.h >>conftest.$ac_ext
39805 cat >>conftest.$ac_ext <<_ACEOF
39806 /* end confdefs.h.  */
39807 $ac_includes_default
39808 int
39809 main ()
39810 {
39811 static struct stat ac_aggr;
39812 if (sizeof ac_aggr.st_blksize)
39813 return 0;
39814   ;
39815   return 0;
39816 }
39817 _ACEOF
39818 rm -f conftest.$ac_objext
39819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39820   (eval $ac_compile) 2>conftest.er1
39821   ac_status=$?
39822   grep -v '^ *+' conftest.er1 >conftest.err
39823   rm -f conftest.er1
39824   cat conftest.err >&5
39825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826   (exit $ac_status); } &&
39827          { ac_try='test -z "$ac_c_werror_flag"
39828                          || test ! -s conftest.err'
39829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39830   (eval $ac_try) 2>&5
39831   ac_status=$?
39832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833   (exit $ac_status); }; } &&
39834          { ac_try='test -s conftest.$ac_objext'
39835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836   (eval $ac_try) 2>&5
39837   ac_status=$?
39838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839   (exit $ac_status); }; }; then
39840   ac_cv_member_struct_stat_st_blksize=yes
39841 else
39842   echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39844
39845 ac_cv_member_struct_stat_st_blksize=no
39846 fi
39847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39848 fi
39849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39850 fi
39851 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39852 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39853 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39854
39855 cat >>confdefs.h <<_ACEOF
39856 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39857 _ACEOF
39858
39859
39860 fi
39861
39862 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39863 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39864 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39865   echo $ECHO_N "(cached) $ECHO_C" >&6
39866 else
39867   cat >conftest.$ac_ext <<_ACEOF
39868 /* confdefs.h.  */
39869 _ACEOF
39870 cat confdefs.h >>conftest.$ac_ext
39871 cat >>conftest.$ac_ext <<_ACEOF
39872 /* end confdefs.h.  */
39873 $ac_includes_default
39874 #include <pwd.h>
39875
39876 int
39877 main ()
39878 {
39879 static struct passwd ac_aggr;
39880 if (ac_aggr.pw_gecos)
39881 return 0;
39882   ;
39883   return 0;
39884 }
39885 _ACEOF
39886 rm -f conftest.$ac_objext
39887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39888   (eval $ac_compile) 2>conftest.er1
39889   ac_status=$?
39890   grep -v '^ *+' conftest.er1 >conftest.err
39891   rm -f conftest.er1
39892   cat conftest.err >&5
39893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894   (exit $ac_status); } &&
39895          { ac_try='test -z "$ac_c_werror_flag"
39896                          || test ! -s conftest.err'
39897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39898   (eval $ac_try) 2>&5
39899   ac_status=$?
39900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901   (exit $ac_status); }; } &&
39902          { ac_try='test -s conftest.$ac_objext'
39903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39904   (eval $ac_try) 2>&5
39905   ac_status=$?
39906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907   (exit $ac_status); }; }; then
39908   ac_cv_member_struct_passwd_pw_gecos=yes
39909 else
39910   echo "$as_me: failed program was:" >&5
39911 sed 's/^/| /' conftest.$ac_ext >&5
39912
39913 cat >conftest.$ac_ext <<_ACEOF
39914 /* confdefs.h.  */
39915 _ACEOF
39916 cat confdefs.h >>conftest.$ac_ext
39917 cat >>conftest.$ac_ext <<_ACEOF
39918 /* end confdefs.h.  */
39919 $ac_includes_default
39920 #include <pwd.h>
39921
39922 int
39923 main ()
39924 {
39925 static struct passwd ac_aggr;
39926 if (sizeof ac_aggr.pw_gecos)
39927 return 0;
39928   ;
39929   return 0;
39930 }
39931 _ACEOF
39932 rm -f conftest.$ac_objext
39933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39934   (eval $ac_compile) 2>conftest.er1
39935   ac_status=$?
39936   grep -v '^ *+' conftest.er1 >conftest.err
39937   rm -f conftest.er1
39938   cat conftest.err >&5
39939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940   (exit $ac_status); } &&
39941          { ac_try='test -z "$ac_c_werror_flag"
39942                          || test ! -s conftest.err'
39943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944   (eval $ac_try) 2>&5
39945   ac_status=$?
39946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947   (exit $ac_status); }; } &&
39948          { ac_try='test -s conftest.$ac_objext'
39949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39950   (eval $ac_try) 2>&5
39951   ac_status=$?
39952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953   (exit $ac_status); }; }; then
39954   ac_cv_member_struct_passwd_pw_gecos=yes
39955 else
39956   echo "$as_me: failed program was:" >&5
39957 sed 's/^/| /' conftest.$ac_ext >&5
39958
39959 ac_cv_member_struct_passwd_pw_gecos=no
39960 fi
39961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39962 fi
39963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39964 fi
39965 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39966 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39967 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39968
39969 cat >>confdefs.h <<_ACEOF
39970 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39971 _ACEOF
39972
39973
39974 fi
39975
39976 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39977 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39978 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39979   echo $ECHO_N "(cached) $ECHO_C" >&6
39980 else
39981   cat >conftest.$ac_ext <<_ACEOF
39982 /* confdefs.h.  */
39983 _ACEOF
39984 cat confdefs.h >>conftest.$ac_ext
39985 cat >>conftest.$ac_ext <<_ACEOF
39986 /* end confdefs.h.  */
39987 $ac_includes_default
39988 #include <pwd.h>
39989
39990 int
39991 main ()
39992 {
39993 static struct passwd ac_aggr;
39994 if (ac_aggr.pw_passwd)
39995 return 0;
39996   ;
39997   return 0;
39998 }
39999 _ACEOF
40000 rm -f conftest.$ac_objext
40001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40002   (eval $ac_compile) 2>conftest.er1
40003   ac_status=$?
40004   grep -v '^ *+' conftest.er1 >conftest.err
40005   rm -f conftest.er1
40006   cat conftest.err >&5
40007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40008   (exit $ac_status); } &&
40009          { ac_try='test -z "$ac_c_werror_flag"
40010                          || test ! -s conftest.err'
40011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40012   (eval $ac_try) 2>&5
40013   ac_status=$?
40014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015   (exit $ac_status); }; } &&
40016          { ac_try='test -s conftest.$ac_objext'
40017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40018   (eval $ac_try) 2>&5
40019   ac_status=$?
40020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021   (exit $ac_status); }; }; then
40022   ac_cv_member_struct_passwd_pw_passwd=yes
40023 else
40024   echo "$as_me: failed program was:" >&5
40025 sed 's/^/| /' conftest.$ac_ext >&5
40026
40027 cat >conftest.$ac_ext <<_ACEOF
40028 /* confdefs.h.  */
40029 _ACEOF
40030 cat confdefs.h >>conftest.$ac_ext
40031 cat >>conftest.$ac_ext <<_ACEOF
40032 /* end confdefs.h.  */
40033 $ac_includes_default
40034 #include <pwd.h>
40035
40036 int
40037 main ()
40038 {
40039 static struct passwd ac_aggr;
40040 if (sizeof ac_aggr.pw_passwd)
40041 return 0;
40042   ;
40043   return 0;
40044 }
40045 _ACEOF
40046 rm -f conftest.$ac_objext
40047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40048   (eval $ac_compile) 2>conftest.er1
40049   ac_status=$?
40050   grep -v '^ *+' conftest.er1 >conftest.err
40051   rm -f conftest.er1
40052   cat conftest.err >&5
40053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054   (exit $ac_status); } &&
40055          { ac_try='test -z "$ac_c_werror_flag"
40056                          || test ! -s conftest.err'
40057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40058   (eval $ac_try) 2>&5
40059   ac_status=$?
40060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061   (exit $ac_status); }; } &&
40062          { ac_try='test -s conftest.$ac_objext'
40063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40064   (eval $ac_try) 2>&5
40065   ac_status=$?
40066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067   (exit $ac_status); }; }; then
40068   ac_cv_member_struct_passwd_pw_passwd=yes
40069 else
40070   echo "$as_me: failed program was:" >&5
40071 sed 's/^/| /' conftest.$ac_ext >&5
40072
40073 ac_cv_member_struct_passwd_pw_passwd=no
40074 fi
40075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40076 fi
40077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40078 fi
40079 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40080 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40081 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40082
40083 cat >>confdefs.h <<_ACEOF
40084 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40085 _ACEOF
40086
40087
40088 fi
40089
40090
40091 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40092 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40093 if test "${ol_cv_c_upper_lower+set}" = set; then
40094   echo $ECHO_N "(cached) $ECHO_C" >&6
40095 else
40096
40097         if test "$cross_compiling" = yes; then
40098   ol_cv_c_upper_lower=safe
40099 else
40100   cat >conftest.$ac_ext <<_ACEOF
40101 /* confdefs.h.  */
40102 _ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h.  */
40106
40107 #include <ctype.h>
40108 main()
40109 {
40110         if ('C' == toupper('C'))
40111                 exit(0);
40112         else
40113                 exit(1);
40114 }
40115 _ACEOF
40116 rm -f conftest$ac_exeext
40117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40118   (eval $ac_link) 2>&5
40119   ac_status=$?
40120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40123   (eval $ac_try) 2>&5
40124   ac_status=$?
40125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40126   (exit $ac_status); }; }; then
40127   ol_cv_c_upper_lower=no
40128 else
40129   echo "$as_me: program exited with status $ac_status" >&5
40130 echo "$as_me: failed program was:" >&5
40131 sed 's/^/| /' conftest.$ac_ext >&5
40132
40133 ( exit $ac_status )
40134 ol_cv_c_upper_lower=yes
40135 fi
40136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40137 fi
40138 fi
40139 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40140 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40141 if test $ol_cv_c_upper_lower != no ; then
40142
40143 cat >>confdefs.h <<\_ACEOF
40144 #define C_UPPER_LOWER 1
40145 _ACEOF
40146
40147 fi
40148
40149 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40150 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40151 if test "${ac_cv_c_const+set}" = set; then
40152   echo $ECHO_N "(cached) $ECHO_C" >&6
40153 else
40154   cat >conftest.$ac_ext <<_ACEOF
40155 /* confdefs.h.  */
40156 _ACEOF
40157 cat confdefs.h >>conftest.$ac_ext
40158 cat >>conftest.$ac_ext <<_ACEOF
40159 /* end confdefs.h.  */
40160
40161 int
40162 main ()
40163 {
40164 /* FIXME: Include the comments suggested by Paul. */
40165 #ifndef __cplusplus
40166   /* Ultrix mips cc rejects this.  */
40167   typedef int charset[2];
40168   const charset x;
40169   /* SunOS 4.1.1 cc rejects this.  */
40170   char const *const *ccp;
40171   char **p;
40172   /* NEC SVR4.0.2 mips cc rejects this.  */
40173   struct point {int x, y;};
40174   static struct point const zero = {0,0};
40175   /* AIX XL C 1.02.0.0 rejects this.
40176      It does not let you subtract one const X* pointer from another in
40177      an arm of an if-expression whose if-part is not a constant
40178      expression */
40179   const char *g = "string";
40180   ccp = &g + (g ? g-g : 0);
40181   /* HPUX 7.0 cc rejects these. */
40182   ++ccp;
40183   p = (char**) ccp;
40184   ccp = (char const *const *) p;
40185   { /* SCO 3.2v4 cc rejects this.  */
40186     char *t;
40187     char const *s = 0 ? (char *) 0 : (char const *) 0;
40188
40189     *t++ = 0;
40190   }
40191   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
40192     int x[] = {25, 17};
40193     const int *foo = &x[0];
40194     ++foo;
40195   }
40196   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40197     typedef const int *iptr;
40198     iptr p = 0;
40199     ++p;
40200   }
40201   { /* AIX XL C 1.02.0.0 rejects this saying
40202        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40203     struct s { int j; const int *ap[3]; };
40204     struct s *b; b->j = 5;
40205   }
40206   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40207     const int foo = 10;
40208   }
40209 #endif
40210
40211   ;
40212   return 0;
40213 }
40214 _ACEOF
40215 rm -f conftest.$ac_objext
40216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40217   (eval $ac_compile) 2>conftest.er1
40218   ac_status=$?
40219   grep -v '^ *+' conftest.er1 >conftest.err
40220   rm -f conftest.er1
40221   cat conftest.err >&5
40222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223   (exit $ac_status); } &&
40224          { ac_try='test -z "$ac_c_werror_flag"
40225                          || test ! -s conftest.err'
40226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40227   (eval $ac_try) 2>&5
40228   ac_status=$?
40229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230   (exit $ac_status); }; } &&
40231          { ac_try='test -s conftest.$ac_objext'
40232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233   (eval $ac_try) 2>&5
40234   ac_status=$?
40235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236   (exit $ac_status); }; }; then
40237   ac_cv_c_const=yes
40238 else
40239   echo "$as_me: failed program was:" >&5
40240 sed 's/^/| /' conftest.$ac_ext >&5
40241
40242 ac_cv_c_const=no
40243 fi
40244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40245 fi
40246 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40247 echo "${ECHO_T}$ac_cv_c_const" >&6
40248 if test $ac_cv_c_const = no; then
40249
40250 cat >>confdefs.h <<\_ACEOF
40251 #define const
40252 _ACEOF
40253
40254 fi
40255
40256 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40257 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40258 if test "${ol_cv_c_volatile+set}" = set; then
40259   echo $ECHO_N "(cached) $ECHO_C" >&6
40260 else
40261   cat >conftest.$ac_ext <<_ACEOF
40262 /* confdefs.h.  */
40263 _ACEOF
40264 cat confdefs.h >>conftest.$ac_ext
40265 cat >>conftest.$ac_ext <<_ACEOF
40266 /* end confdefs.h.  */
40267 int x, y, z;
40268 int
40269 main ()
40270 {
40271 volatile int a; int * volatile b = x ? &y : &z;
40272       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40273       *b = 0;
40274   ;
40275   return 0;
40276 }
40277 _ACEOF
40278 rm -f conftest.$ac_objext
40279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40280   (eval $ac_compile) 2>conftest.er1
40281   ac_status=$?
40282   grep -v '^ *+' conftest.er1 >conftest.err
40283   rm -f conftest.er1
40284   cat conftest.err >&5
40285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286   (exit $ac_status); } &&
40287          { ac_try='test -z "$ac_c_werror_flag"
40288                          || test ! -s conftest.err'
40289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40290   (eval $ac_try) 2>&5
40291   ac_status=$?
40292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293   (exit $ac_status); }; } &&
40294          { ac_try='test -s conftest.$ac_objext'
40295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40296   (eval $ac_try) 2>&5
40297   ac_status=$?
40298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299   (exit $ac_status); }; }; then
40300   ol_cv_c_volatile=yes
40301 else
40302   echo "$as_me: failed program was:" >&5
40303 sed 's/^/| /' conftest.$ac_ext >&5
40304
40305 ol_cv_c_volatile=no
40306 fi
40307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40308 fi
40309 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40310 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40311   if test $ol_cv_c_volatile = yes; then
40312     :
40313   else
40314
40315 cat >>confdefs.h <<\_ACEOF
40316 #define volatile
40317 _ACEOF
40318
40319   fi
40320
40321
40322 if test $cross_compiling = yes ; then
40323         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40324 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40325
40326 cat >>confdefs.h <<\_ACEOF
40327 #define CROSS_COMPILING 1
40328 _ACEOF
40329
40330 else
40331         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40332 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40333 if test "${ac_cv_c_bigendian+set}" = set; then
40334   echo $ECHO_N "(cached) $ECHO_C" >&6
40335 else
40336   # See if sys/param.h defines the BYTE_ORDER macro.
40337 cat >conftest.$ac_ext <<_ACEOF
40338 /* confdefs.h.  */
40339 _ACEOF
40340 cat confdefs.h >>conftest.$ac_ext
40341 cat >>conftest.$ac_ext <<_ACEOF
40342 /* end confdefs.h.  */
40343 #include <sys/types.h>
40344 #include <sys/param.h>
40345
40346 int
40347 main ()
40348 {
40349 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40350  bogus endian macros
40351 #endif
40352
40353   ;
40354   return 0;
40355 }
40356 _ACEOF
40357 rm -f conftest.$ac_objext
40358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40359   (eval $ac_compile) 2>conftest.er1
40360   ac_status=$?
40361   grep -v '^ *+' conftest.er1 >conftest.err
40362   rm -f conftest.er1
40363   cat conftest.err >&5
40364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365   (exit $ac_status); } &&
40366          { ac_try='test -z "$ac_c_werror_flag"
40367                          || test ! -s conftest.err'
40368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40369   (eval $ac_try) 2>&5
40370   ac_status=$?
40371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372   (exit $ac_status); }; } &&
40373          { ac_try='test -s conftest.$ac_objext'
40374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40375   (eval $ac_try) 2>&5
40376   ac_status=$?
40377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378   (exit $ac_status); }; }; then
40379   # It does; now see whether it defined to BIG_ENDIAN or not.
40380 cat >conftest.$ac_ext <<_ACEOF
40381 /* confdefs.h.  */
40382 _ACEOF
40383 cat confdefs.h >>conftest.$ac_ext
40384 cat >>conftest.$ac_ext <<_ACEOF
40385 /* end confdefs.h.  */
40386 #include <sys/types.h>
40387 #include <sys/param.h>
40388
40389 int
40390 main ()
40391 {
40392 #if BYTE_ORDER != BIG_ENDIAN
40393  not big endian
40394 #endif
40395
40396   ;
40397   return 0;
40398 }
40399 _ACEOF
40400 rm -f conftest.$ac_objext
40401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40402   (eval $ac_compile) 2>conftest.er1
40403   ac_status=$?
40404   grep -v '^ *+' conftest.er1 >conftest.err
40405   rm -f conftest.er1
40406   cat conftest.err >&5
40407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408   (exit $ac_status); } &&
40409          { ac_try='test -z "$ac_c_werror_flag"
40410                          || test ! -s conftest.err'
40411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40412   (eval $ac_try) 2>&5
40413   ac_status=$?
40414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40415   (exit $ac_status); }; } &&
40416          { ac_try='test -s conftest.$ac_objext'
40417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40418   (eval $ac_try) 2>&5
40419   ac_status=$?
40420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421   (exit $ac_status); }; }; then
40422   ac_cv_c_bigendian=yes
40423 else
40424   echo "$as_me: failed program was:" >&5
40425 sed 's/^/| /' conftest.$ac_ext >&5
40426
40427 ac_cv_c_bigendian=no
40428 fi
40429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40430 else
40431   echo "$as_me: failed program was:" >&5
40432 sed 's/^/| /' conftest.$ac_ext >&5
40433
40434 # It does not; compile a test program.
40435 if test "$cross_compiling" = yes; then
40436   # try to guess the endianness by grepping values into an object file
40437   ac_cv_c_bigendian=unknown
40438   cat >conftest.$ac_ext <<_ACEOF
40439 /* confdefs.h.  */
40440 _ACEOF
40441 cat confdefs.h >>conftest.$ac_ext
40442 cat >>conftest.$ac_ext <<_ACEOF
40443 /* end confdefs.h.  */
40444 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40445 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40446 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40447 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40448 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40449 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40450 int
40451 main ()
40452 {
40453  _ascii (); _ebcdic ();
40454   ;
40455   return 0;
40456 }
40457 _ACEOF
40458 rm -f conftest.$ac_objext
40459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40460   (eval $ac_compile) 2>conftest.er1
40461   ac_status=$?
40462   grep -v '^ *+' conftest.er1 >conftest.err
40463   rm -f conftest.er1
40464   cat conftest.err >&5
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); } &&
40467          { ac_try='test -z "$ac_c_werror_flag"
40468                          || test ! -s conftest.err'
40469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40470   (eval $ac_try) 2>&5
40471   ac_status=$?
40472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473   (exit $ac_status); }; } &&
40474          { ac_try='test -s conftest.$ac_objext'
40475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476   (eval $ac_try) 2>&5
40477   ac_status=$?
40478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479   (exit $ac_status); }; }; then
40480   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40481   ac_cv_c_bigendian=yes
40482 fi
40483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40484   if test "$ac_cv_c_bigendian" = unknown; then
40485     ac_cv_c_bigendian=no
40486   else
40487     # finding both strings is unlikely to happen, but who knows?
40488     ac_cv_c_bigendian=unknown
40489   fi
40490 fi
40491 else
40492   echo "$as_me: failed program was:" >&5
40493 sed 's/^/| /' conftest.$ac_ext >&5
40494
40495 fi
40496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40497 else
40498   cat >conftest.$ac_ext <<_ACEOF
40499 /* confdefs.h.  */
40500 _ACEOF
40501 cat confdefs.h >>conftest.$ac_ext
40502 cat >>conftest.$ac_ext <<_ACEOF
40503 /* end confdefs.h.  */
40504 int
40505 main ()
40506 {
40507   /* Are we little or big endian?  From Harbison&Steele.  */
40508   union
40509   {
40510     long l;
40511     char c[sizeof (long)];
40512   } u;
40513   u.l = 1;
40514   exit (u.c[sizeof (long) - 1] == 1);
40515 }
40516 _ACEOF
40517 rm -f conftest$ac_exeext
40518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40519   (eval $ac_link) 2>&5
40520   ac_status=$?
40521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40524   (eval $ac_try) 2>&5
40525   ac_status=$?
40526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40527   (exit $ac_status); }; }; then
40528   ac_cv_c_bigendian=no
40529 else
40530   echo "$as_me: program exited with status $ac_status" >&5
40531 echo "$as_me: failed program was:" >&5
40532 sed 's/^/| /' conftest.$ac_ext >&5
40533
40534 ( exit $ac_status )
40535 ac_cv_c_bigendian=yes
40536 fi
40537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40538 fi
40539 fi
40540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40541 fi
40542 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40543 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40544 case $ac_cv_c_bigendian in
40545   yes)
40546
40547 cat >>confdefs.h <<\_ACEOF
40548 #define WORDS_BIGENDIAN 1
40549 _ACEOF
40550  ;;
40551   no)
40552      ;;
40553   *)
40554     { { echo "$as_me:$LINENO: error: unknown endianness
40555 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40556 echo "$as_me: error: unknown endianness
40557 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40558    { (exit 1); exit 1; }; } ;;
40559 esac
40560
40561 fi
40562
40563 echo "$as_me:$LINENO: checking for short" >&5
40564 echo $ECHO_N "checking for short... $ECHO_C" >&6
40565 if test "${ac_cv_type_short+set}" = set; then
40566   echo $ECHO_N "(cached) $ECHO_C" >&6
40567 else
40568   cat >conftest.$ac_ext <<_ACEOF
40569 /* confdefs.h.  */
40570 _ACEOF
40571 cat confdefs.h >>conftest.$ac_ext
40572 cat >>conftest.$ac_ext <<_ACEOF
40573 /* end confdefs.h.  */
40574 $ac_includes_default
40575 int
40576 main ()
40577 {
40578 if ((short *) 0)
40579   return 0;
40580 if (sizeof (short))
40581   return 0;
40582   ;
40583   return 0;
40584 }
40585 _ACEOF
40586 rm -f conftest.$ac_objext
40587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40588   (eval $ac_compile) 2>conftest.er1
40589   ac_status=$?
40590   grep -v '^ *+' conftest.er1 >conftest.err
40591   rm -f conftest.er1
40592   cat conftest.err >&5
40593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594   (exit $ac_status); } &&
40595          { ac_try='test -z "$ac_c_werror_flag"
40596                          || test ! -s conftest.err'
40597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40598   (eval $ac_try) 2>&5
40599   ac_status=$?
40600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601   (exit $ac_status); }; } &&
40602          { ac_try='test -s conftest.$ac_objext'
40603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40604   (eval $ac_try) 2>&5
40605   ac_status=$?
40606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40607   (exit $ac_status); }; }; then
40608   ac_cv_type_short=yes
40609 else
40610   echo "$as_me: failed program was:" >&5
40611 sed 's/^/| /' conftest.$ac_ext >&5
40612
40613 ac_cv_type_short=no
40614 fi
40615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40616 fi
40617 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40618 echo "${ECHO_T}$ac_cv_type_short" >&6
40619
40620 echo "$as_me:$LINENO: checking size of short" >&5
40621 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40622 if test "${ac_cv_sizeof_short+set}" = set; then
40623   echo $ECHO_N "(cached) $ECHO_C" >&6
40624 else
40625   if test "$ac_cv_type_short" = yes; then
40626   # The cast to unsigned long works around a bug in the HP C Compiler
40627   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40628   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40629   # This bug is HP SR number 8606223364.
40630   if test "$cross_compiling" = yes; then
40631   # Depending upon the size, compute the lo and hi bounds.
40632 cat >conftest.$ac_ext <<_ACEOF
40633 /* confdefs.h.  */
40634 _ACEOF
40635 cat confdefs.h >>conftest.$ac_ext
40636 cat >>conftest.$ac_ext <<_ACEOF
40637 /* end confdefs.h.  */
40638 $ac_includes_default
40639 int
40640 main ()
40641 {
40642 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40643 test_array [0] = 0
40644
40645   ;
40646   return 0;
40647 }
40648 _ACEOF
40649 rm -f conftest.$ac_objext
40650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40651   (eval $ac_compile) 2>conftest.er1
40652   ac_status=$?
40653   grep -v '^ *+' conftest.er1 >conftest.err
40654   rm -f conftest.er1
40655   cat conftest.err >&5
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); } &&
40658          { ac_try='test -z "$ac_c_werror_flag"
40659                          || test ! -s conftest.err'
40660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40661   (eval $ac_try) 2>&5
40662   ac_status=$?
40663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664   (exit $ac_status); }; } &&
40665          { ac_try='test -s conftest.$ac_objext'
40666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667   (eval $ac_try) 2>&5
40668   ac_status=$?
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); }; }; then
40671   ac_lo=0 ac_mid=0
40672   while :; do
40673     cat >conftest.$ac_ext <<_ACEOF
40674 /* confdefs.h.  */
40675 _ACEOF
40676 cat confdefs.h >>conftest.$ac_ext
40677 cat >>conftest.$ac_ext <<_ACEOF
40678 /* end confdefs.h.  */
40679 $ac_includes_default
40680 int
40681 main ()
40682 {
40683 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40684 test_array [0] = 0
40685
40686   ;
40687   return 0;
40688 }
40689 _ACEOF
40690 rm -f conftest.$ac_objext
40691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40692   (eval $ac_compile) 2>conftest.er1
40693   ac_status=$?
40694   grep -v '^ *+' conftest.er1 >conftest.err
40695   rm -f conftest.er1
40696   cat conftest.err >&5
40697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698   (exit $ac_status); } &&
40699          { ac_try='test -z "$ac_c_werror_flag"
40700                          || test ! -s conftest.err'
40701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40702   (eval $ac_try) 2>&5
40703   ac_status=$?
40704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705   (exit $ac_status); }; } &&
40706          { ac_try='test -s conftest.$ac_objext'
40707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40708   (eval $ac_try) 2>&5
40709   ac_status=$?
40710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40711   (exit $ac_status); }; }; then
40712   ac_hi=$ac_mid; break
40713 else
40714   echo "$as_me: failed program was:" >&5
40715 sed 's/^/| /' conftest.$ac_ext >&5
40716
40717 ac_lo=`expr $ac_mid + 1`
40718                     if test $ac_lo -le $ac_mid; then
40719                       ac_lo= ac_hi=
40720                       break
40721                     fi
40722                     ac_mid=`expr 2 '*' $ac_mid + 1`
40723 fi
40724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40725   done
40726 else
40727   echo "$as_me: failed program was:" >&5
40728 sed 's/^/| /' conftest.$ac_ext >&5
40729
40730 cat >conftest.$ac_ext <<_ACEOF
40731 /* confdefs.h.  */
40732 _ACEOF
40733 cat confdefs.h >>conftest.$ac_ext
40734 cat >>conftest.$ac_ext <<_ACEOF
40735 /* end confdefs.h.  */
40736 $ac_includes_default
40737 int
40738 main ()
40739 {
40740 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40741 test_array [0] = 0
40742
40743   ;
40744   return 0;
40745 }
40746 _ACEOF
40747 rm -f conftest.$ac_objext
40748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40749   (eval $ac_compile) 2>conftest.er1
40750   ac_status=$?
40751   grep -v '^ *+' conftest.er1 >conftest.err
40752   rm -f conftest.er1
40753   cat conftest.err >&5
40754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755   (exit $ac_status); } &&
40756          { ac_try='test -z "$ac_c_werror_flag"
40757                          || test ! -s conftest.err'
40758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40759   (eval $ac_try) 2>&5
40760   ac_status=$?
40761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40762   (exit $ac_status); }; } &&
40763          { ac_try='test -s conftest.$ac_objext'
40764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40765   (eval $ac_try) 2>&5
40766   ac_status=$?
40767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768   (exit $ac_status); }; }; then
40769   ac_hi=-1 ac_mid=-1
40770   while :; do
40771     cat >conftest.$ac_ext <<_ACEOF
40772 /* confdefs.h.  */
40773 _ACEOF
40774 cat confdefs.h >>conftest.$ac_ext
40775 cat >>conftest.$ac_ext <<_ACEOF
40776 /* end confdefs.h.  */
40777 $ac_includes_default
40778 int
40779 main ()
40780 {
40781 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40782 test_array [0] = 0
40783
40784   ;
40785   return 0;
40786 }
40787 _ACEOF
40788 rm -f conftest.$ac_objext
40789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40790   (eval $ac_compile) 2>conftest.er1
40791   ac_status=$?
40792   grep -v '^ *+' conftest.er1 >conftest.err
40793   rm -f conftest.er1
40794   cat conftest.err >&5
40795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796   (exit $ac_status); } &&
40797          { ac_try='test -z "$ac_c_werror_flag"
40798                          || test ! -s conftest.err'
40799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40800   (eval $ac_try) 2>&5
40801   ac_status=$?
40802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803   (exit $ac_status); }; } &&
40804          { ac_try='test -s conftest.$ac_objext'
40805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806   (eval $ac_try) 2>&5
40807   ac_status=$?
40808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809   (exit $ac_status); }; }; then
40810   ac_lo=$ac_mid; break
40811 else
40812   echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40814
40815 ac_hi=`expr '(' $ac_mid ')' - 1`
40816                        if test $ac_mid -le $ac_hi; then
40817                          ac_lo= ac_hi=
40818                          break
40819                        fi
40820                        ac_mid=`expr 2 '*' $ac_mid`
40821 fi
40822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40823   done
40824 else
40825   echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40827
40828 ac_lo= ac_hi=
40829 fi
40830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40831 fi
40832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40833 # Binary search between lo and hi bounds.
40834 while test "x$ac_lo" != "x$ac_hi"; do
40835   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40836   cat >conftest.$ac_ext <<_ACEOF
40837 /* confdefs.h.  */
40838 _ACEOF
40839 cat confdefs.h >>conftest.$ac_ext
40840 cat >>conftest.$ac_ext <<_ACEOF
40841 /* end confdefs.h.  */
40842 $ac_includes_default
40843 int
40844 main ()
40845 {
40846 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40847 test_array [0] = 0
40848
40849   ;
40850   return 0;
40851 }
40852 _ACEOF
40853 rm -f conftest.$ac_objext
40854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40855   (eval $ac_compile) 2>conftest.er1
40856   ac_status=$?
40857   grep -v '^ *+' conftest.er1 >conftest.err
40858   rm -f conftest.er1
40859   cat conftest.err >&5
40860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40861   (exit $ac_status); } &&
40862          { ac_try='test -z "$ac_c_werror_flag"
40863                          || test ! -s conftest.err'
40864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865   (eval $ac_try) 2>&5
40866   ac_status=$?
40867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868   (exit $ac_status); }; } &&
40869          { ac_try='test -s conftest.$ac_objext'
40870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40871   (eval $ac_try) 2>&5
40872   ac_status=$?
40873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874   (exit $ac_status); }; }; then
40875   ac_hi=$ac_mid
40876 else
40877   echo "$as_me: failed program was:" >&5
40878 sed 's/^/| /' conftest.$ac_ext >&5
40879
40880 ac_lo=`expr '(' $ac_mid ')' + 1`
40881 fi
40882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40883 done
40884 case $ac_lo in
40885 ?*) ac_cv_sizeof_short=$ac_lo;;
40886 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40887 See \`config.log' for more details." >&5
40888 echo "$as_me: error: cannot compute sizeof (short), 77
40889 See \`config.log' for more details." >&2;}
40890    { (exit 1); exit 1; }; } ;;
40891 esac
40892 else
40893   if test "$cross_compiling" = yes; then
40894   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40895 See \`config.log' for more details." >&5
40896 echo "$as_me: error: cannot run test program while cross compiling
40897 See \`config.log' for more details." >&2;}
40898    { (exit 1); exit 1; }; }
40899 else
40900   cat >conftest.$ac_ext <<_ACEOF
40901 /* confdefs.h.  */
40902 _ACEOF
40903 cat confdefs.h >>conftest.$ac_ext
40904 cat >>conftest.$ac_ext <<_ACEOF
40905 /* end confdefs.h.  */
40906 $ac_includes_default
40907 long longval () { return (long) (sizeof (short)); }
40908 unsigned long ulongval () { return (long) (sizeof (short)); }
40909 #include <stdio.h>
40910 #include <stdlib.h>
40911 int
40912 main ()
40913 {
40914
40915   FILE *f = fopen ("conftest.val", "w");
40916   if (! f)
40917     exit (1);
40918   if (((long) (sizeof (short))) < 0)
40919     {
40920       long i = longval ();
40921       if (i != ((long) (sizeof (short))))
40922         exit (1);
40923       fprintf (f, "%ld\n", i);
40924     }
40925   else
40926     {
40927       unsigned long i = ulongval ();
40928       if (i != ((long) (sizeof (short))))
40929         exit (1);
40930       fprintf (f, "%lu\n", i);
40931     }
40932   exit (ferror (f) || fclose (f) != 0);
40933
40934   ;
40935   return 0;
40936 }
40937 _ACEOF
40938 rm -f conftest$ac_exeext
40939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40940   (eval $ac_link) 2>&5
40941   ac_status=$?
40942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40945   (eval $ac_try) 2>&5
40946   ac_status=$?
40947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948   (exit $ac_status); }; }; then
40949   ac_cv_sizeof_short=`cat conftest.val`
40950 else
40951   echo "$as_me: program exited with status $ac_status" >&5
40952 echo "$as_me: failed program was:" >&5
40953 sed 's/^/| /' conftest.$ac_ext >&5
40954
40955 ( exit $ac_status )
40956 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40957 See \`config.log' for more details." >&5
40958 echo "$as_me: error: cannot compute sizeof (short), 77
40959 See \`config.log' for more details." >&2;}
40960    { (exit 1); exit 1; }; }
40961 fi
40962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40963 fi
40964 fi
40965 rm -f conftest.val
40966 else
40967   ac_cv_sizeof_short=0
40968 fi
40969 fi
40970 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40971 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40972 cat >>confdefs.h <<_ACEOF
40973 #define SIZEOF_SHORT $ac_cv_sizeof_short
40974 _ACEOF
40975
40976
40977 echo "$as_me:$LINENO: checking for int" >&5
40978 echo $ECHO_N "checking for int... $ECHO_C" >&6
40979 if test "${ac_cv_type_int+set}" = set; then
40980   echo $ECHO_N "(cached) $ECHO_C" >&6
40981 else
40982   cat >conftest.$ac_ext <<_ACEOF
40983 /* confdefs.h.  */
40984 _ACEOF
40985 cat confdefs.h >>conftest.$ac_ext
40986 cat >>conftest.$ac_ext <<_ACEOF
40987 /* end confdefs.h.  */
40988 $ac_includes_default
40989 int
40990 main ()
40991 {
40992 if ((int *) 0)
40993   return 0;
40994 if (sizeof (int))
40995   return 0;
40996   ;
40997   return 0;
40998 }
40999 _ACEOF
41000 rm -f conftest.$ac_objext
41001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41002   (eval $ac_compile) 2>conftest.er1
41003   ac_status=$?
41004   grep -v '^ *+' conftest.er1 >conftest.err
41005   rm -f conftest.er1
41006   cat conftest.err >&5
41007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41008   (exit $ac_status); } &&
41009          { ac_try='test -z "$ac_c_werror_flag"
41010                          || test ! -s conftest.err'
41011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41012   (eval $ac_try) 2>&5
41013   ac_status=$?
41014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015   (exit $ac_status); }; } &&
41016          { ac_try='test -s conftest.$ac_objext'
41017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41018   (eval $ac_try) 2>&5
41019   ac_status=$?
41020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41021   (exit $ac_status); }; }; then
41022   ac_cv_type_int=yes
41023 else
41024   echo "$as_me: failed program was:" >&5
41025 sed 's/^/| /' conftest.$ac_ext >&5
41026
41027 ac_cv_type_int=no
41028 fi
41029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41030 fi
41031 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
41032 echo "${ECHO_T}$ac_cv_type_int" >&6
41033
41034 echo "$as_me:$LINENO: checking size of int" >&5
41035 echo $ECHO_N "checking size of int... $ECHO_C" >&6
41036 if test "${ac_cv_sizeof_int+set}" = set; then
41037   echo $ECHO_N "(cached) $ECHO_C" >&6
41038 else
41039   if test "$ac_cv_type_int" = yes; then
41040   # The cast to unsigned long works around a bug in the HP C Compiler
41041   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41042   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41043   # This bug is HP SR number 8606223364.
41044   if test "$cross_compiling" = yes; then
41045   # Depending upon the size, compute the lo and hi bounds.
41046 cat >conftest.$ac_ext <<_ACEOF
41047 /* confdefs.h.  */
41048 _ACEOF
41049 cat confdefs.h >>conftest.$ac_ext
41050 cat >>conftest.$ac_ext <<_ACEOF
41051 /* end confdefs.h.  */
41052 $ac_includes_default
41053 int
41054 main ()
41055 {
41056 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41057 test_array [0] = 0
41058
41059   ;
41060   return 0;
41061 }
41062 _ACEOF
41063 rm -f conftest.$ac_objext
41064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41065   (eval $ac_compile) 2>conftest.er1
41066   ac_status=$?
41067   grep -v '^ *+' conftest.er1 >conftest.err
41068   rm -f conftest.er1
41069   cat conftest.err >&5
41070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071   (exit $ac_status); } &&
41072          { ac_try='test -z "$ac_c_werror_flag"
41073                          || test ! -s conftest.err'
41074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075   (eval $ac_try) 2>&5
41076   ac_status=$?
41077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078   (exit $ac_status); }; } &&
41079          { ac_try='test -s conftest.$ac_objext'
41080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081   (eval $ac_try) 2>&5
41082   ac_status=$?
41083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084   (exit $ac_status); }; }; then
41085   ac_lo=0 ac_mid=0
41086   while :; do
41087     cat >conftest.$ac_ext <<_ACEOF
41088 /* confdefs.h.  */
41089 _ACEOF
41090 cat confdefs.h >>conftest.$ac_ext
41091 cat >>conftest.$ac_ext <<_ACEOF
41092 /* end confdefs.h.  */
41093 $ac_includes_default
41094 int
41095 main ()
41096 {
41097 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41098 test_array [0] = 0
41099
41100   ;
41101   return 0;
41102 }
41103 _ACEOF
41104 rm -f conftest.$ac_objext
41105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41106   (eval $ac_compile) 2>conftest.er1
41107   ac_status=$?
41108   grep -v '^ *+' conftest.er1 >conftest.err
41109   rm -f conftest.er1
41110   cat conftest.err >&5
41111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41112   (exit $ac_status); } &&
41113          { ac_try='test -z "$ac_c_werror_flag"
41114                          || test ! -s conftest.err'
41115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41116   (eval $ac_try) 2>&5
41117   ac_status=$?
41118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119   (exit $ac_status); }; } &&
41120          { ac_try='test -s conftest.$ac_objext'
41121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41122   (eval $ac_try) 2>&5
41123   ac_status=$?
41124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41125   (exit $ac_status); }; }; then
41126   ac_hi=$ac_mid; break
41127 else
41128   echo "$as_me: failed program was:" >&5
41129 sed 's/^/| /' conftest.$ac_ext >&5
41130
41131 ac_lo=`expr $ac_mid + 1`
41132                     if test $ac_lo -le $ac_mid; then
41133                       ac_lo= ac_hi=
41134                       break
41135                     fi
41136                     ac_mid=`expr 2 '*' $ac_mid + 1`
41137 fi
41138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41139   done
41140 else
41141   echo "$as_me: failed program was:" >&5
41142 sed 's/^/| /' conftest.$ac_ext >&5
41143
41144 cat >conftest.$ac_ext <<_ACEOF
41145 /* confdefs.h.  */
41146 _ACEOF
41147 cat confdefs.h >>conftest.$ac_ext
41148 cat >>conftest.$ac_ext <<_ACEOF
41149 /* end confdefs.h.  */
41150 $ac_includes_default
41151 int
41152 main ()
41153 {
41154 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41155 test_array [0] = 0
41156
41157   ;
41158   return 0;
41159 }
41160 _ACEOF
41161 rm -f conftest.$ac_objext
41162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41163   (eval $ac_compile) 2>conftest.er1
41164   ac_status=$?
41165   grep -v '^ *+' conftest.er1 >conftest.err
41166   rm -f conftest.er1
41167   cat conftest.err >&5
41168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169   (exit $ac_status); } &&
41170          { ac_try='test -z "$ac_c_werror_flag"
41171                          || test ! -s conftest.err'
41172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41173   (eval $ac_try) 2>&5
41174   ac_status=$?
41175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41176   (exit $ac_status); }; } &&
41177          { ac_try='test -s conftest.$ac_objext'
41178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41179   (eval $ac_try) 2>&5
41180   ac_status=$?
41181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182   (exit $ac_status); }; }; then
41183   ac_hi=-1 ac_mid=-1
41184   while :; do
41185     cat >conftest.$ac_ext <<_ACEOF
41186 /* confdefs.h.  */
41187 _ACEOF
41188 cat confdefs.h >>conftest.$ac_ext
41189 cat >>conftest.$ac_ext <<_ACEOF
41190 /* end confdefs.h.  */
41191 $ac_includes_default
41192 int
41193 main ()
41194 {
41195 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41196 test_array [0] = 0
41197
41198   ;
41199   return 0;
41200 }
41201 _ACEOF
41202 rm -f conftest.$ac_objext
41203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41204   (eval $ac_compile) 2>conftest.er1
41205   ac_status=$?
41206   grep -v '^ *+' conftest.er1 >conftest.err
41207   rm -f conftest.er1
41208   cat conftest.err >&5
41209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210   (exit $ac_status); } &&
41211          { ac_try='test -z "$ac_c_werror_flag"
41212                          || test ! -s conftest.err'
41213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41214   (eval $ac_try) 2>&5
41215   ac_status=$?
41216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41217   (exit $ac_status); }; } &&
41218          { ac_try='test -s conftest.$ac_objext'
41219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41220   (eval $ac_try) 2>&5
41221   ac_status=$?
41222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223   (exit $ac_status); }; }; then
41224   ac_lo=$ac_mid; break
41225 else
41226   echo "$as_me: failed program was:" >&5
41227 sed 's/^/| /' conftest.$ac_ext >&5
41228
41229 ac_hi=`expr '(' $ac_mid ')' - 1`
41230                        if test $ac_mid -le $ac_hi; then
41231                          ac_lo= ac_hi=
41232                          break
41233                        fi
41234                        ac_mid=`expr 2 '*' $ac_mid`
41235 fi
41236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41237   done
41238 else
41239   echo "$as_me: failed program was:" >&5
41240 sed 's/^/| /' conftest.$ac_ext >&5
41241
41242 ac_lo= ac_hi=
41243 fi
41244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41245 fi
41246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41247 # Binary search between lo and hi bounds.
41248 while test "x$ac_lo" != "x$ac_hi"; do
41249   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41250   cat >conftest.$ac_ext <<_ACEOF
41251 /* confdefs.h.  */
41252 _ACEOF
41253 cat confdefs.h >>conftest.$ac_ext
41254 cat >>conftest.$ac_ext <<_ACEOF
41255 /* end confdefs.h.  */
41256 $ac_includes_default
41257 int
41258 main ()
41259 {
41260 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41261 test_array [0] = 0
41262
41263   ;
41264   return 0;
41265 }
41266 _ACEOF
41267 rm -f conftest.$ac_objext
41268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41269   (eval $ac_compile) 2>conftest.er1
41270   ac_status=$?
41271   grep -v '^ *+' conftest.er1 >conftest.err
41272   rm -f conftest.er1
41273   cat conftest.err >&5
41274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41275   (exit $ac_status); } &&
41276          { ac_try='test -z "$ac_c_werror_flag"
41277                          || test ! -s conftest.err'
41278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41279   (eval $ac_try) 2>&5
41280   ac_status=$?
41281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41282   (exit $ac_status); }; } &&
41283          { ac_try='test -s conftest.$ac_objext'
41284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41285   (eval $ac_try) 2>&5
41286   ac_status=$?
41287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41288   (exit $ac_status); }; }; then
41289   ac_hi=$ac_mid
41290 else
41291   echo "$as_me: failed program was:" >&5
41292 sed 's/^/| /' conftest.$ac_ext >&5
41293
41294 ac_lo=`expr '(' $ac_mid ')' + 1`
41295 fi
41296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41297 done
41298 case $ac_lo in
41299 ?*) ac_cv_sizeof_int=$ac_lo;;
41300 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41301 See \`config.log' for more details." >&5
41302 echo "$as_me: error: cannot compute sizeof (int), 77
41303 See \`config.log' for more details." >&2;}
41304    { (exit 1); exit 1; }; } ;;
41305 esac
41306 else
41307   if test "$cross_compiling" = yes; then
41308   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41309 See \`config.log' for more details." >&5
41310 echo "$as_me: error: cannot run test program while cross compiling
41311 See \`config.log' for more details." >&2;}
41312    { (exit 1); exit 1; }; }
41313 else
41314   cat >conftest.$ac_ext <<_ACEOF
41315 /* confdefs.h.  */
41316 _ACEOF
41317 cat confdefs.h >>conftest.$ac_ext
41318 cat >>conftest.$ac_ext <<_ACEOF
41319 /* end confdefs.h.  */
41320 $ac_includes_default
41321 long longval () { return (long) (sizeof (int)); }
41322 unsigned long ulongval () { return (long) (sizeof (int)); }
41323 #include <stdio.h>
41324 #include <stdlib.h>
41325 int
41326 main ()
41327 {
41328
41329   FILE *f = fopen ("conftest.val", "w");
41330   if (! f)
41331     exit (1);
41332   if (((long) (sizeof (int))) < 0)
41333     {
41334       long i = longval ();
41335       if (i != ((long) (sizeof (int))))
41336         exit (1);
41337       fprintf (f, "%ld\n", i);
41338     }
41339   else
41340     {
41341       unsigned long i = ulongval ();
41342       if (i != ((long) (sizeof (int))))
41343         exit (1);
41344       fprintf (f, "%lu\n", i);
41345     }
41346   exit (ferror (f) || fclose (f) != 0);
41347
41348   ;
41349   return 0;
41350 }
41351 _ACEOF
41352 rm -f conftest$ac_exeext
41353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41354   (eval $ac_link) 2>&5
41355   ac_status=$?
41356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41359   (eval $ac_try) 2>&5
41360   ac_status=$?
41361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362   (exit $ac_status); }; }; then
41363   ac_cv_sizeof_int=`cat conftest.val`
41364 else
41365   echo "$as_me: program exited with status $ac_status" >&5
41366 echo "$as_me: failed program was:" >&5
41367 sed 's/^/| /' conftest.$ac_ext >&5
41368
41369 ( exit $ac_status )
41370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41371 See \`config.log' for more details." >&5
41372 echo "$as_me: error: cannot compute sizeof (int), 77
41373 See \`config.log' for more details." >&2;}
41374    { (exit 1); exit 1; }; }
41375 fi
41376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41377 fi
41378 fi
41379 rm -f conftest.val
41380 else
41381   ac_cv_sizeof_int=0
41382 fi
41383 fi
41384 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41385 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41386 cat >>confdefs.h <<_ACEOF
41387 #define SIZEOF_INT $ac_cv_sizeof_int
41388 _ACEOF
41389
41390
41391 echo "$as_me:$LINENO: checking for long" >&5
41392 echo $ECHO_N "checking for long... $ECHO_C" >&6
41393 if test "${ac_cv_type_long+set}" = set; then
41394   echo $ECHO_N "(cached) $ECHO_C" >&6
41395 else
41396   cat >conftest.$ac_ext <<_ACEOF
41397 /* confdefs.h.  */
41398 _ACEOF
41399 cat confdefs.h >>conftest.$ac_ext
41400 cat >>conftest.$ac_ext <<_ACEOF
41401 /* end confdefs.h.  */
41402 $ac_includes_default
41403 int
41404 main ()
41405 {
41406 if ((long *) 0)
41407   return 0;
41408 if (sizeof (long))
41409   return 0;
41410   ;
41411   return 0;
41412 }
41413 _ACEOF
41414 rm -f conftest.$ac_objext
41415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41416   (eval $ac_compile) 2>conftest.er1
41417   ac_status=$?
41418   grep -v '^ *+' conftest.er1 >conftest.err
41419   rm -f conftest.er1
41420   cat conftest.err >&5
41421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41422   (exit $ac_status); } &&
41423          { ac_try='test -z "$ac_c_werror_flag"
41424                          || test ! -s conftest.err'
41425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41426   (eval $ac_try) 2>&5
41427   ac_status=$?
41428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429   (exit $ac_status); }; } &&
41430          { ac_try='test -s conftest.$ac_objext'
41431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41432   (eval $ac_try) 2>&5
41433   ac_status=$?
41434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435   (exit $ac_status); }; }; then
41436   ac_cv_type_long=yes
41437 else
41438   echo "$as_me: failed program was:" >&5
41439 sed 's/^/| /' conftest.$ac_ext >&5
41440
41441 ac_cv_type_long=no
41442 fi
41443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41444 fi
41445 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41446 echo "${ECHO_T}$ac_cv_type_long" >&6
41447
41448 echo "$as_me:$LINENO: checking size of long" >&5
41449 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41450 if test "${ac_cv_sizeof_long+set}" = set; then
41451   echo $ECHO_N "(cached) $ECHO_C" >&6
41452 else
41453   if test "$ac_cv_type_long" = yes; then
41454   # The cast to unsigned long works around a bug in the HP C Compiler
41455   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41456   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41457   # This bug is HP SR number 8606223364.
41458   if test "$cross_compiling" = yes; then
41459   # Depending upon the size, compute the lo and hi bounds.
41460 cat >conftest.$ac_ext <<_ACEOF
41461 /* confdefs.h.  */
41462 _ACEOF
41463 cat confdefs.h >>conftest.$ac_ext
41464 cat >>conftest.$ac_ext <<_ACEOF
41465 /* end confdefs.h.  */
41466 $ac_includes_default
41467 int
41468 main ()
41469 {
41470 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41471 test_array [0] = 0
41472
41473   ;
41474   return 0;
41475 }
41476 _ACEOF
41477 rm -f conftest.$ac_objext
41478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41479   (eval $ac_compile) 2>conftest.er1
41480   ac_status=$?
41481   grep -v '^ *+' conftest.er1 >conftest.err
41482   rm -f conftest.er1
41483   cat conftest.err >&5
41484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485   (exit $ac_status); } &&
41486          { ac_try='test -z "$ac_c_werror_flag"
41487                          || test ! -s conftest.err'
41488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41489   (eval $ac_try) 2>&5
41490   ac_status=$?
41491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492   (exit $ac_status); }; } &&
41493          { ac_try='test -s conftest.$ac_objext'
41494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41495   (eval $ac_try) 2>&5
41496   ac_status=$?
41497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498   (exit $ac_status); }; }; then
41499   ac_lo=0 ac_mid=0
41500   while :; do
41501     cat >conftest.$ac_ext <<_ACEOF
41502 /* confdefs.h.  */
41503 _ACEOF
41504 cat confdefs.h >>conftest.$ac_ext
41505 cat >>conftest.$ac_ext <<_ACEOF
41506 /* end confdefs.h.  */
41507 $ac_includes_default
41508 int
41509 main ()
41510 {
41511 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41512 test_array [0] = 0
41513
41514   ;
41515   return 0;
41516 }
41517 _ACEOF
41518 rm -f conftest.$ac_objext
41519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41520   (eval $ac_compile) 2>conftest.er1
41521   ac_status=$?
41522   grep -v '^ *+' conftest.er1 >conftest.err
41523   rm -f conftest.er1
41524   cat conftest.err >&5
41525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526   (exit $ac_status); } &&
41527          { ac_try='test -z "$ac_c_werror_flag"
41528                          || test ! -s conftest.err'
41529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41530   (eval $ac_try) 2>&5
41531   ac_status=$?
41532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41533   (exit $ac_status); }; } &&
41534          { ac_try='test -s conftest.$ac_objext'
41535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41536   (eval $ac_try) 2>&5
41537   ac_status=$?
41538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539   (exit $ac_status); }; }; then
41540   ac_hi=$ac_mid; break
41541 else
41542   echo "$as_me: failed program was:" >&5
41543 sed 's/^/| /' conftest.$ac_ext >&5
41544
41545 ac_lo=`expr $ac_mid + 1`
41546                     if test $ac_lo -le $ac_mid; then
41547                       ac_lo= ac_hi=
41548                       break
41549                     fi
41550                     ac_mid=`expr 2 '*' $ac_mid + 1`
41551 fi
41552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41553   done
41554 else
41555   echo "$as_me: failed program was:" >&5
41556 sed 's/^/| /' conftest.$ac_ext >&5
41557
41558 cat >conftest.$ac_ext <<_ACEOF
41559 /* confdefs.h.  */
41560 _ACEOF
41561 cat confdefs.h >>conftest.$ac_ext
41562 cat >>conftest.$ac_ext <<_ACEOF
41563 /* end confdefs.h.  */
41564 $ac_includes_default
41565 int
41566 main ()
41567 {
41568 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41569 test_array [0] = 0
41570
41571   ;
41572   return 0;
41573 }
41574 _ACEOF
41575 rm -f conftest.$ac_objext
41576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41577   (eval $ac_compile) 2>conftest.er1
41578   ac_status=$?
41579   grep -v '^ *+' conftest.er1 >conftest.err
41580   rm -f conftest.er1
41581   cat conftest.err >&5
41582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41583   (exit $ac_status); } &&
41584          { ac_try='test -z "$ac_c_werror_flag"
41585                          || test ! -s conftest.err'
41586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41587   (eval $ac_try) 2>&5
41588   ac_status=$?
41589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41590   (exit $ac_status); }; } &&
41591          { ac_try='test -s conftest.$ac_objext'
41592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593   (eval $ac_try) 2>&5
41594   ac_status=$?
41595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596   (exit $ac_status); }; }; then
41597   ac_hi=-1 ac_mid=-1
41598   while :; do
41599     cat >conftest.$ac_ext <<_ACEOF
41600 /* confdefs.h.  */
41601 _ACEOF
41602 cat confdefs.h >>conftest.$ac_ext
41603 cat >>conftest.$ac_ext <<_ACEOF
41604 /* end confdefs.h.  */
41605 $ac_includes_default
41606 int
41607 main ()
41608 {
41609 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41610 test_array [0] = 0
41611
41612   ;
41613   return 0;
41614 }
41615 _ACEOF
41616 rm -f conftest.$ac_objext
41617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41618   (eval $ac_compile) 2>conftest.er1
41619   ac_status=$?
41620   grep -v '^ *+' conftest.er1 >conftest.err
41621   rm -f conftest.er1
41622   cat conftest.err >&5
41623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41624   (exit $ac_status); } &&
41625          { ac_try='test -z "$ac_c_werror_flag"
41626                          || test ! -s conftest.err'
41627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41628   (eval $ac_try) 2>&5
41629   ac_status=$?
41630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41631   (exit $ac_status); }; } &&
41632          { ac_try='test -s conftest.$ac_objext'
41633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41634   (eval $ac_try) 2>&5
41635   ac_status=$?
41636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637   (exit $ac_status); }; }; then
41638   ac_lo=$ac_mid; break
41639 else
41640   echo "$as_me: failed program was:" >&5
41641 sed 's/^/| /' conftest.$ac_ext >&5
41642
41643 ac_hi=`expr '(' $ac_mid ')' - 1`
41644                        if test $ac_mid -le $ac_hi; then
41645                          ac_lo= ac_hi=
41646                          break
41647                        fi
41648                        ac_mid=`expr 2 '*' $ac_mid`
41649 fi
41650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41651   done
41652 else
41653   echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41655
41656 ac_lo= ac_hi=
41657 fi
41658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41659 fi
41660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41661 # Binary search between lo and hi bounds.
41662 while test "x$ac_lo" != "x$ac_hi"; do
41663   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41664   cat >conftest.$ac_ext <<_ACEOF
41665 /* confdefs.h.  */
41666 _ACEOF
41667 cat confdefs.h >>conftest.$ac_ext
41668 cat >>conftest.$ac_ext <<_ACEOF
41669 /* end confdefs.h.  */
41670 $ac_includes_default
41671 int
41672 main ()
41673 {
41674 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41675 test_array [0] = 0
41676
41677   ;
41678   return 0;
41679 }
41680 _ACEOF
41681 rm -f conftest.$ac_objext
41682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41683   (eval $ac_compile) 2>conftest.er1
41684   ac_status=$?
41685   grep -v '^ *+' conftest.er1 >conftest.err
41686   rm -f conftest.er1
41687   cat conftest.err >&5
41688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689   (exit $ac_status); } &&
41690          { ac_try='test -z "$ac_c_werror_flag"
41691                          || test ! -s conftest.err'
41692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693   (eval $ac_try) 2>&5
41694   ac_status=$?
41695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696   (exit $ac_status); }; } &&
41697          { ac_try='test -s conftest.$ac_objext'
41698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699   (eval $ac_try) 2>&5
41700   ac_status=$?
41701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); }; }; then
41703   ac_hi=$ac_mid
41704 else
41705   echo "$as_me: failed program was:" >&5
41706 sed 's/^/| /' conftest.$ac_ext >&5
41707
41708 ac_lo=`expr '(' $ac_mid ')' + 1`
41709 fi
41710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41711 done
41712 case $ac_lo in
41713 ?*) ac_cv_sizeof_long=$ac_lo;;
41714 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41715 See \`config.log' for more details." >&5
41716 echo "$as_me: error: cannot compute sizeof (long), 77
41717 See \`config.log' for more details." >&2;}
41718    { (exit 1); exit 1; }; } ;;
41719 esac
41720 else
41721   if test "$cross_compiling" = yes; then
41722   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41723 See \`config.log' for more details." >&5
41724 echo "$as_me: error: cannot run test program while cross compiling
41725 See \`config.log' for more details." >&2;}
41726    { (exit 1); exit 1; }; }
41727 else
41728   cat >conftest.$ac_ext <<_ACEOF
41729 /* confdefs.h.  */
41730 _ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h.  */
41734 $ac_includes_default
41735 long longval () { return (long) (sizeof (long)); }
41736 unsigned long ulongval () { return (long) (sizeof (long)); }
41737 #include <stdio.h>
41738 #include <stdlib.h>
41739 int
41740 main ()
41741 {
41742
41743   FILE *f = fopen ("conftest.val", "w");
41744   if (! f)
41745     exit (1);
41746   if (((long) (sizeof (long))) < 0)
41747     {
41748       long i = longval ();
41749       if (i != ((long) (sizeof (long))))
41750         exit (1);
41751       fprintf (f, "%ld\n", i);
41752     }
41753   else
41754     {
41755       unsigned long i = ulongval ();
41756       if (i != ((long) (sizeof (long))))
41757         exit (1);
41758       fprintf (f, "%lu\n", i);
41759     }
41760   exit (ferror (f) || fclose (f) != 0);
41761
41762   ;
41763   return 0;
41764 }
41765 _ACEOF
41766 rm -f conftest$ac_exeext
41767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41768   (eval $ac_link) 2>&5
41769   ac_status=$?
41770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41773   (eval $ac_try) 2>&5
41774   ac_status=$?
41775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776   (exit $ac_status); }; }; then
41777   ac_cv_sizeof_long=`cat conftest.val`
41778 else
41779   echo "$as_me: program exited with status $ac_status" >&5
41780 echo "$as_me: failed program was:" >&5
41781 sed 's/^/| /' conftest.$ac_ext >&5
41782
41783 ( exit $ac_status )
41784 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41785 See \`config.log' for more details." >&5
41786 echo "$as_me: error: cannot compute sizeof (long), 77
41787 See \`config.log' for more details." >&2;}
41788    { (exit 1); exit 1; }; }
41789 fi
41790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41791 fi
41792 fi
41793 rm -f conftest.val
41794 else
41795   ac_cv_sizeof_long=0
41796 fi
41797 fi
41798 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41799 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41800 cat >>confdefs.h <<_ACEOF
41801 #define SIZEOF_LONG $ac_cv_sizeof_long
41802 _ACEOF
41803
41804
41805 echo "$as_me:$LINENO: checking for wchar_t" >&5
41806 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41807 if test "${ac_cv_type_wchar_t+set}" = set; then
41808   echo $ECHO_N "(cached) $ECHO_C" >&6
41809 else
41810   cat >conftest.$ac_ext <<_ACEOF
41811 /* confdefs.h.  */
41812 _ACEOF
41813 cat confdefs.h >>conftest.$ac_ext
41814 cat >>conftest.$ac_ext <<_ACEOF
41815 /* end confdefs.h.  */
41816 $ac_includes_default
41817 int
41818 main ()
41819 {
41820 if ((wchar_t *) 0)
41821   return 0;
41822 if (sizeof (wchar_t))
41823   return 0;
41824   ;
41825   return 0;
41826 }
41827 _ACEOF
41828 rm -f conftest.$ac_objext
41829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41830   (eval $ac_compile) 2>conftest.er1
41831   ac_status=$?
41832   grep -v '^ *+' conftest.er1 >conftest.err
41833   rm -f conftest.er1
41834   cat conftest.err >&5
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); } &&
41837          { ac_try='test -z "$ac_c_werror_flag"
41838                          || test ! -s conftest.err'
41839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41840   (eval $ac_try) 2>&5
41841   ac_status=$?
41842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843   (exit $ac_status); }; } &&
41844          { ac_try='test -s conftest.$ac_objext'
41845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846   (eval $ac_try) 2>&5
41847   ac_status=$?
41848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849   (exit $ac_status); }; }; then
41850   ac_cv_type_wchar_t=yes
41851 else
41852   echo "$as_me: failed program was:" >&5
41853 sed 's/^/| /' conftest.$ac_ext >&5
41854
41855 ac_cv_type_wchar_t=no
41856 fi
41857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41858 fi
41859 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41860 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41861
41862 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41863 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41864 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41865   echo $ECHO_N "(cached) $ECHO_C" >&6
41866 else
41867   if test "$ac_cv_type_wchar_t" = yes; then
41868   # The cast to unsigned long works around a bug in the HP C Compiler
41869   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41870   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41871   # This bug is HP SR number 8606223364.
41872   if test "$cross_compiling" = yes; then
41873   # Depending upon the size, compute the lo and hi bounds.
41874 cat >conftest.$ac_ext <<_ACEOF
41875 /* confdefs.h.  */
41876 _ACEOF
41877 cat confdefs.h >>conftest.$ac_ext
41878 cat >>conftest.$ac_ext <<_ACEOF
41879 /* end confdefs.h.  */
41880 $ac_includes_default
41881 int
41882 main ()
41883 {
41884 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41885 test_array [0] = 0
41886
41887   ;
41888   return 0;
41889 }
41890 _ACEOF
41891 rm -f conftest.$ac_objext
41892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41893   (eval $ac_compile) 2>conftest.er1
41894   ac_status=$?
41895   grep -v '^ *+' conftest.er1 >conftest.err
41896   rm -f conftest.er1
41897   cat conftest.err >&5
41898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41899   (exit $ac_status); } &&
41900          { ac_try='test -z "$ac_c_werror_flag"
41901                          || test ! -s conftest.err'
41902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41903   (eval $ac_try) 2>&5
41904   ac_status=$?
41905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41906   (exit $ac_status); }; } &&
41907          { ac_try='test -s conftest.$ac_objext'
41908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41909   (eval $ac_try) 2>&5
41910   ac_status=$?
41911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41912   (exit $ac_status); }; }; then
41913   ac_lo=0 ac_mid=0
41914   while :; do
41915     cat >conftest.$ac_ext <<_ACEOF
41916 /* confdefs.h.  */
41917 _ACEOF
41918 cat confdefs.h >>conftest.$ac_ext
41919 cat >>conftest.$ac_ext <<_ACEOF
41920 /* end confdefs.h.  */
41921 $ac_includes_default
41922 int
41923 main ()
41924 {
41925 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41926 test_array [0] = 0
41927
41928   ;
41929   return 0;
41930 }
41931 _ACEOF
41932 rm -f conftest.$ac_objext
41933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41934   (eval $ac_compile) 2>conftest.er1
41935   ac_status=$?
41936   grep -v '^ *+' conftest.er1 >conftest.err
41937   rm -f conftest.er1
41938   cat conftest.err >&5
41939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940   (exit $ac_status); } &&
41941          { ac_try='test -z "$ac_c_werror_flag"
41942                          || test ! -s conftest.err'
41943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41944   (eval $ac_try) 2>&5
41945   ac_status=$?
41946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41947   (exit $ac_status); }; } &&
41948          { ac_try='test -s conftest.$ac_objext'
41949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41950   (eval $ac_try) 2>&5
41951   ac_status=$?
41952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953   (exit $ac_status); }; }; then
41954   ac_hi=$ac_mid; break
41955 else
41956   echo "$as_me: failed program was:" >&5
41957 sed 's/^/| /' conftest.$ac_ext >&5
41958
41959 ac_lo=`expr $ac_mid + 1`
41960                     if test $ac_lo -le $ac_mid; then
41961                       ac_lo= ac_hi=
41962                       break
41963                     fi
41964                     ac_mid=`expr 2 '*' $ac_mid + 1`
41965 fi
41966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41967   done
41968 else
41969   echo "$as_me: failed program was:" >&5
41970 sed 's/^/| /' conftest.$ac_ext >&5
41971
41972 cat >conftest.$ac_ext <<_ACEOF
41973 /* confdefs.h.  */
41974 _ACEOF
41975 cat confdefs.h >>conftest.$ac_ext
41976 cat >>conftest.$ac_ext <<_ACEOF
41977 /* end confdefs.h.  */
41978 $ac_includes_default
41979 int
41980 main ()
41981 {
41982 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41983 test_array [0] = 0
41984
41985   ;
41986   return 0;
41987 }
41988 _ACEOF
41989 rm -f conftest.$ac_objext
41990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41991   (eval $ac_compile) 2>conftest.er1
41992   ac_status=$?
41993   grep -v '^ *+' conftest.er1 >conftest.err
41994   rm -f conftest.er1
41995   cat conftest.err >&5
41996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41997   (exit $ac_status); } &&
41998          { ac_try='test -z "$ac_c_werror_flag"
41999                          || test ! -s conftest.err'
42000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42001   (eval $ac_try) 2>&5
42002   ac_status=$?
42003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004   (exit $ac_status); }; } &&
42005          { ac_try='test -s conftest.$ac_objext'
42006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42007   (eval $ac_try) 2>&5
42008   ac_status=$?
42009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010   (exit $ac_status); }; }; then
42011   ac_hi=-1 ac_mid=-1
42012   while :; do
42013     cat >conftest.$ac_ext <<_ACEOF
42014 /* confdefs.h.  */
42015 _ACEOF
42016 cat confdefs.h >>conftest.$ac_ext
42017 cat >>conftest.$ac_ext <<_ACEOF
42018 /* end confdefs.h.  */
42019 $ac_includes_default
42020 int
42021 main ()
42022 {
42023 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
42024 test_array [0] = 0
42025
42026   ;
42027   return 0;
42028 }
42029 _ACEOF
42030 rm -f conftest.$ac_objext
42031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42032   (eval $ac_compile) 2>conftest.er1
42033   ac_status=$?
42034   grep -v '^ *+' conftest.er1 >conftest.err
42035   rm -f conftest.er1
42036   cat conftest.err >&5
42037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42038   (exit $ac_status); } &&
42039          { ac_try='test -z "$ac_c_werror_flag"
42040                          || test ! -s conftest.err'
42041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42042   (eval $ac_try) 2>&5
42043   ac_status=$?
42044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045   (exit $ac_status); }; } &&
42046          { ac_try='test -s conftest.$ac_objext'
42047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42048   (eval $ac_try) 2>&5
42049   ac_status=$?
42050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051   (exit $ac_status); }; }; then
42052   ac_lo=$ac_mid; break
42053 else
42054   echo "$as_me: failed program was:" >&5
42055 sed 's/^/| /' conftest.$ac_ext >&5
42056
42057 ac_hi=`expr '(' $ac_mid ')' - 1`
42058                        if test $ac_mid -le $ac_hi; then
42059                          ac_lo= ac_hi=
42060                          break
42061                        fi
42062                        ac_mid=`expr 2 '*' $ac_mid`
42063 fi
42064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42065   done
42066 else
42067   echo "$as_me: failed program was:" >&5
42068 sed 's/^/| /' conftest.$ac_ext >&5
42069
42070 ac_lo= ac_hi=
42071 fi
42072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42073 fi
42074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42075 # Binary search between lo and hi bounds.
42076 while test "x$ac_lo" != "x$ac_hi"; do
42077   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42078   cat >conftest.$ac_ext <<_ACEOF
42079 /* confdefs.h.  */
42080 _ACEOF
42081 cat confdefs.h >>conftest.$ac_ext
42082 cat >>conftest.$ac_ext <<_ACEOF
42083 /* end confdefs.h.  */
42084 $ac_includes_default
42085 int
42086 main ()
42087 {
42088 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42089 test_array [0] = 0
42090
42091   ;
42092   return 0;
42093 }
42094 _ACEOF
42095 rm -f conftest.$ac_objext
42096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42097   (eval $ac_compile) 2>conftest.er1
42098   ac_status=$?
42099   grep -v '^ *+' conftest.er1 >conftest.err
42100   rm -f conftest.er1
42101   cat conftest.err >&5
42102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103   (exit $ac_status); } &&
42104          { ac_try='test -z "$ac_c_werror_flag"
42105                          || test ! -s conftest.err'
42106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107   (eval $ac_try) 2>&5
42108   ac_status=$?
42109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110   (exit $ac_status); }; } &&
42111          { ac_try='test -s conftest.$ac_objext'
42112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42113   (eval $ac_try) 2>&5
42114   ac_status=$?
42115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116   (exit $ac_status); }; }; then
42117   ac_hi=$ac_mid
42118 else
42119   echo "$as_me: failed program was:" >&5
42120 sed 's/^/| /' conftest.$ac_ext >&5
42121
42122 ac_lo=`expr '(' $ac_mid ')' + 1`
42123 fi
42124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42125 done
42126 case $ac_lo in
42127 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42128 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42129 See \`config.log' for more details." >&5
42130 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42131 See \`config.log' for more details." >&2;}
42132    { (exit 1); exit 1; }; } ;;
42133 esac
42134 else
42135   if test "$cross_compiling" = yes; then
42136   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42137 See \`config.log' for more details." >&5
42138 echo "$as_me: error: cannot run test program while cross compiling
42139 See \`config.log' for more details." >&2;}
42140    { (exit 1); exit 1; }; }
42141 else
42142   cat >conftest.$ac_ext <<_ACEOF
42143 /* confdefs.h.  */
42144 _ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h.  */
42148 $ac_includes_default
42149 long longval () { return (long) (sizeof (wchar_t)); }
42150 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42151 #include <stdio.h>
42152 #include <stdlib.h>
42153 int
42154 main ()
42155 {
42156
42157   FILE *f = fopen ("conftest.val", "w");
42158   if (! f)
42159     exit (1);
42160   if (((long) (sizeof (wchar_t))) < 0)
42161     {
42162       long i = longval ();
42163       if (i != ((long) (sizeof (wchar_t))))
42164         exit (1);
42165       fprintf (f, "%ld\n", i);
42166     }
42167   else
42168     {
42169       unsigned long i = ulongval ();
42170       if (i != ((long) (sizeof (wchar_t))))
42171         exit (1);
42172       fprintf (f, "%lu\n", i);
42173     }
42174   exit (ferror (f) || fclose (f) != 0);
42175
42176   ;
42177   return 0;
42178 }
42179 _ACEOF
42180 rm -f conftest$ac_exeext
42181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42182   (eval $ac_link) 2>&5
42183   ac_status=$?
42184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42187   (eval $ac_try) 2>&5
42188   ac_status=$?
42189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42190   (exit $ac_status); }; }; then
42191   ac_cv_sizeof_wchar_t=`cat conftest.val`
42192 else
42193   echo "$as_me: program exited with status $ac_status" >&5
42194 echo "$as_me: failed program was:" >&5
42195 sed 's/^/| /' conftest.$ac_ext >&5
42196
42197 ( exit $ac_status )
42198 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42199 See \`config.log' for more details." >&5
42200 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42201 See \`config.log' for more details." >&2;}
42202    { (exit 1); exit 1; }; }
42203 fi
42204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42205 fi
42206 fi
42207 rm -f conftest.val
42208 else
42209   ac_cv_sizeof_wchar_t=0
42210 fi
42211 fi
42212 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42213 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42214 cat >>confdefs.h <<_ACEOF
42215 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42216 _ACEOF
42217
42218
42219
42220 if test "$ac_cv_sizeof_int" -lt 4 ; then
42221         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42222 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42223
42224
42225 cat >>confdefs.h <<\_ACEOF
42226 #define LBER_INT_T long
42227 _ACEOF
42228
42229 else
42230
42231 cat >>confdefs.h <<\_ACEOF
42232 #define LBER_INT_T int
42233 _ACEOF
42234
42235 fi
42236
42237
42238 cat >>confdefs.h <<\_ACEOF
42239 #define LBER_LEN_T long
42240 _ACEOF
42241
42242
42243 cat >>confdefs.h <<\_ACEOF
42244 #define LBER_SOCKET_T int
42245 _ACEOF
42246
42247
42248 cat >>confdefs.h <<\_ACEOF
42249 #define LBER_TAG_T long
42250 _ACEOF
42251
42252
42253 echo "$as_me:$LINENO: checking for working memcmp" >&5
42254 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42255 if test "${ac_cv_func_memcmp_working+set}" = set; then
42256   echo $ECHO_N "(cached) $ECHO_C" >&6
42257 else
42258   if test "$cross_compiling" = yes; then
42259   ac_cv_func_memcmp_working=no
42260 else
42261   cat >conftest.$ac_ext <<_ACEOF
42262 /* confdefs.h.  */
42263 _ACEOF
42264 cat confdefs.h >>conftest.$ac_ext
42265 cat >>conftest.$ac_ext <<_ACEOF
42266 /* end confdefs.h.  */
42267 $ac_includes_default
42268 int
42269 main ()
42270 {
42271
42272   /* Some versions of memcmp are not 8-bit clean.  */
42273   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42274   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42275     exit (1);
42276
42277   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42278      or more and with at least one buffer not starting on a 4-byte boundary.
42279      William Lewis provided this test program.   */
42280   {
42281     char foo[21];
42282     char bar[21];
42283     int i;
42284     for (i = 0; i < 4; i++)
42285       {
42286         char *a = foo + i;
42287         char *b = bar + i;
42288         strcpy (a, "--------01111111");
42289         strcpy (b, "--------10000000");
42290         if (memcmp (a, b, 16) >= 0)
42291           exit (1);
42292       }
42293     exit (0);
42294   }
42295
42296   ;
42297   return 0;
42298 }
42299 _ACEOF
42300 rm -f conftest$ac_exeext
42301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42302   (eval $ac_link) 2>&5
42303   ac_status=$?
42304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42307   (eval $ac_try) 2>&5
42308   ac_status=$?
42309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310   (exit $ac_status); }; }; then
42311   ac_cv_func_memcmp_working=yes
42312 else
42313   echo "$as_me: program exited with status $ac_status" >&5
42314 echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42316
42317 ( exit $ac_status )
42318 ac_cv_func_memcmp_working=no
42319 fi
42320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42321 fi
42322 fi
42323 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42324 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42325 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42326     "memcmp.$ac_objext"   | \
42327   *" memcmp.$ac_objext"   | \
42328     "memcmp.$ac_objext "* | \
42329   *" memcmp.$ac_objext "* ) ;;
42330   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42331 esac
42332
42333
42334
42335 if test $ac_cv_func_memcmp_working = no ; then
42336
42337 cat >>confdefs.h <<\_ACEOF
42338 #define NEED_MEMCMP_REPLACEMENT 1
42339 _ACEOF
42340
42341 fi
42342
42343
42344 for ac_func in strftime
42345 do
42346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42347 echo "$as_me:$LINENO: checking for $ac_func" >&5
42348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42349 if eval "test \"\${$as_ac_var+set}\" = set"; then
42350   echo $ECHO_N "(cached) $ECHO_C" >&6
42351 else
42352   cat >conftest.$ac_ext <<_ACEOF
42353 /* confdefs.h.  */
42354 _ACEOF
42355 cat confdefs.h >>conftest.$ac_ext
42356 cat >>conftest.$ac_ext <<_ACEOF
42357 /* end confdefs.h.  */
42358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42360 #define $ac_func innocuous_$ac_func
42361
42362 /* System header to define __stub macros and hopefully few prototypes,
42363     which can conflict with char $ac_func (); below.
42364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42365     <limits.h> exists even on freestanding compilers.  */
42366
42367 #ifdef __STDC__
42368 # include <limits.h>
42369 #else
42370 # include <assert.h>
42371 #endif
42372
42373 #undef $ac_func
42374
42375 /* Override any gcc2 internal prototype to avoid an error.  */
42376 #ifdef __cplusplus
42377 extern "C"
42378 {
42379 #endif
42380 /* We use char because int might match the return type of a gcc2
42381    builtin and then its argument prototype would still apply.  */
42382 char $ac_func ();
42383 /* The GNU C library defines this for functions which it implements
42384     to always fail with ENOSYS.  Some functions are actually named
42385     something starting with __ and the normal name is an alias.  */
42386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42387 choke me
42388 #else
42389 char (*f) () = $ac_func;
42390 #endif
42391 #ifdef __cplusplus
42392 }
42393 #endif
42394
42395 int
42396 main ()
42397 {
42398 return f != $ac_func;
42399   ;
42400   return 0;
42401 }
42402 _ACEOF
42403 rm -f conftest.$ac_objext conftest$ac_exeext
42404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42405   (eval $ac_link) 2>conftest.er1
42406   ac_status=$?
42407   grep -v '^ *+' conftest.er1 >conftest.err
42408   rm -f conftest.er1
42409   cat conftest.err >&5
42410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411   (exit $ac_status); } &&
42412          { ac_try='test -z "$ac_c_werror_flag"
42413                          || test ! -s conftest.err'
42414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42415   (eval $ac_try) 2>&5
42416   ac_status=$?
42417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42418   (exit $ac_status); }; } &&
42419          { ac_try='test -s conftest$ac_exeext'
42420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42421   (eval $ac_try) 2>&5
42422   ac_status=$?
42423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424   (exit $ac_status); }; }; then
42425   eval "$as_ac_var=yes"
42426 else
42427   echo "$as_me: failed program was:" >&5
42428 sed 's/^/| /' conftest.$ac_ext >&5
42429
42430 eval "$as_ac_var=no"
42431 fi
42432 rm -f conftest.err conftest.$ac_objext \
42433       conftest$ac_exeext conftest.$ac_ext
42434 fi
42435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42437 if test `eval echo '${'$as_ac_var'}'` = yes; then
42438   cat >>confdefs.h <<_ACEOF
42439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42440 _ACEOF
42441
42442 else
42443   # strftime is in -lintl on SCO UNIX.
42444 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42445 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42446 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42447   echo $ECHO_N "(cached) $ECHO_C" >&6
42448 else
42449   ac_check_lib_save_LIBS=$LIBS
42450 LIBS="-lintl  $LIBS"
42451 cat >conftest.$ac_ext <<_ACEOF
42452 /* confdefs.h.  */
42453 _ACEOF
42454 cat confdefs.h >>conftest.$ac_ext
42455 cat >>conftest.$ac_ext <<_ACEOF
42456 /* end confdefs.h.  */
42457
42458 /* Override any gcc2 internal prototype to avoid an error.  */
42459 #ifdef __cplusplus
42460 extern "C"
42461 #endif
42462 /* We use char because int might match the return type of a gcc2
42463    builtin and then its argument prototype would still apply.  */
42464 char strftime ();
42465 int
42466 main ()
42467 {
42468 strftime ();
42469   ;
42470   return 0;
42471 }
42472 _ACEOF
42473 rm -f conftest.$ac_objext conftest$ac_exeext
42474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42475   (eval $ac_link) 2>conftest.er1
42476   ac_status=$?
42477   grep -v '^ *+' conftest.er1 >conftest.err
42478   rm -f conftest.er1
42479   cat conftest.err >&5
42480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42481   (exit $ac_status); } &&
42482          { ac_try='test -z "$ac_c_werror_flag"
42483                          || test ! -s conftest.err'
42484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42485   (eval $ac_try) 2>&5
42486   ac_status=$?
42487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42488   (exit $ac_status); }; } &&
42489          { ac_try='test -s conftest$ac_exeext'
42490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42491   (eval $ac_try) 2>&5
42492   ac_status=$?
42493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494   (exit $ac_status); }; }; then
42495   ac_cv_lib_intl_strftime=yes
42496 else
42497   echo "$as_me: failed program was:" >&5
42498 sed 's/^/| /' conftest.$ac_ext >&5
42499
42500 ac_cv_lib_intl_strftime=no
42501 fi
42502 rm -f conftest.err conftest.$ac_objext \
42503       conftest$ac_exeext conftest.$ac_ext
42504 LIBS=$ac_check_lib_save_LIBS
42505 fi
42506 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42507 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42508 if test $ac_cv_lib_intl_strftime = yes; then
42509   cat >>confdefs.h <<\_ACEOF
42510 #define HAVE_STRFTIME 1
42511 _ACEOF
42512
42513 LIBS="-lintl $LIBS"
42514 fi
42515
42516 fi
42517 done
42518
42519
42520 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42521 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42522 if test "${ol_cv_func_inet_aton+set}" = set; then
42523   echo $ECHO_N "(cached) $ECHO_C" >&6
42524 else
42525   cat >conftest.$ac_ext <<_ACEOF
42526 /* confdefs.h.  */
42527 _ACEOF
42528 cat confdefs.h >>conftest.$ac_ext
42529 cat >>conftest.$ac_ext <<_ACEOF
42530 /* end confdefs.h.  */
42531
42532 #ifdef HAVE_SYS_TYPES_H
42533 #       include <sys/types.h>
42534 #endif
42535 #ifdef HAVE_SYS_SOCKET_H
42536 #       include <sys/socket.h>
42537 #       ifdef HAVE_SYS_SELECT_H
42538 #               include <sys/select.h>
42539 #       endif
42540 #       include <netinet/in.h>
42541 #       ifdef HAVE_ARPA_INET_H
42542 #               include <arpa/inet.h>
42543 #       endif
42544 #endif
42545
42546 int
42547 main ()
42548 {
42549 struct in_addr in;
42550 int rc = inet_aton( "255.255.255.255", &in );
42551   ;
42552   return 0;
42553 }
42554 _ACEOF
42555 rm -f conftest.$ac_objext conftest$ac_exeext
42556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42557   (eval $ac_link) 2>conftest.er1
42558   ac_status=$?
42559   grep -v '^ *+' conftest.er1 >conftest.err
42560   rm -f conftest.er1
42561   cat conftest.err >&5
42562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563   (exit $ac_status); } &&
42564          { ac_try='test -z "$ac_c_werror_flag"
42565                          || test ! -s conftest.err'
42566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42567   (eval $ac_try) 2>&5
42568   ac_status=$?
42569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570   (exit $ac_status); }; } &&
42571          { ac_try='test -s conftest$ac_exeext'
42572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42573   (eval $ac_try) 2>&5
42574   ac_status=$?
42575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576   (exit $ac_status); }; }; then
42577   ol_cv_func_inet_aton=yes
42578 else
42579   echo "$as_me: failed program was:" >&5
42580 sed 's/^/| /' conftest.$ac_ext >&5
42581
42582 ol_cv_func_inet_aton=no
42583 fi
42584 rm -f conftest.err conftest.$ac_objext \
42585       conftest$ac_exeext conftest.$ac_ext
42586 fi
42587 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42588 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42589   if test $ol_cv_func_inet_aton != no; then
42590
42591 cat >>confdefs.h <<\_ACEOF
42592 #define HAVE_INET_ATON 1
42593 _ACEOF
42594
42595   fi
42596
42597
42598 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42599 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42600 if test "${ac_cv_func__spawnlp+set}" = set; then
42601   echo $ECHO_N "(cached) $ECHO_C" >&6
42602 else
42603   cat >conftest.$ac_ext <<_ACEOF
42604 /* confdefs.h.  */
42605 _ACEOF
42606 cat confdefs.h >>conftest.$ac_ext
42607 cat >>conftest.$ac_ext <<_ACEOF
42608 /* end confdefs.h.  */
42609 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42611 #define _spawnlp innocuous__spawnlp
42612
42613 /* System header to define __stub macros and hopefully few prototypes,
42614     which can conflict with char _spawnlp (); below.
42615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42616     <limits.h> exists even on freestanding compilers.  */
42617
42618 #ifdef __STDC__
42619 # include <limits.h>
42620 #else
42621 # include <assert.h>
42622 #endif
42623
42624 #undef _spawnlp
42625
42626 /* Override any gcc2 internal prototype to avoid an error.  */
42627 #ifdef __cplusplus
42628 extern "C"
42629 {
42630 #endif
42631 /* We use char because int might match the return type of a gcc2
42632    builtin and then its argument prototype would still apply.  */
42633 char _spawnlp ();
42634 /* The GNU C library defines this for functions which it implements
42635     to always fail with ENOSYS.  Some functions are actually named
42636     something starting with __ and the normal name is an alias.  */
42637 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42638 choke me
42639 #else
42640 char (*f) () = _spawnlp;
42641 #endif
42642 #ifdef __cplusplus
42643 }
42644 #endif
42645
42646 int
42647 main ()
42648 {
42649 return f != _spawnlp;
42650   ;
42651   return 0;
42652 }
42653 _ACEOF
42654 rm -f conftest.$ac_objext conftest$ac_exeext
42655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42656   (eval $ac_link) 2>conftest.er1
42657   ac_status=$?
42658   grep -v '^ *+' conftest.er1 >conftest.err
42659   rm -f conftest.er1
42660   cat conftest.err >&5
42661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662   (exit $ac_status); } &&
42663          { ac_try='test -z "$ac_c_werror_flag"
42664                          || test ! -s conftest.err'
42665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42666   (eval $ac_try) 2>&5
42667   ac_status=$?
42668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42669   (exit $ac_status); }; } &&
42670          { ac_try='test -s conftest$ac_exeext'
42671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42672   (eval $ac_try) 2>&5
42673   ac_status=$?
42674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42675   (exit $ac_status); }; }; then
42676   ac_cv_func__spawnlp=yes
42677 else
42678   echo "$as_me: failed program was:" >&5
42679 sed 's/^/| /' conftest.$ac_ext >&5
42680
42681 ac_cv_func__spawnlp=no
42682 fi
42683 rm -f conftest.err conftest.$ac_objext \
42684       conftest$ac_exeext conftest.$ac_ext
42685 fi
42686 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42687 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42688 if test $ac_cv_func__spawnlp = yes; then
42689
42690 cat >>confdefs.h <<\_ACEOF
42691 #define HAVE_SPAWNLP 1
42692 _ACEOF
42693
42694 fi
42695
42696
42697 echo "$as_me:$LINENO: checking for _snprintf" >&5
42698 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42699 if test "${ac_cv_func__snprintf+set}" = set; then
42700   echo $ECHO_N "(cached) $ECHO_C" >&6
42701 else
42702   cat >conftest.$ac_ext <<_ACEOF
42703 /* confdefs.h.  */
42704 _ACEOF
42705 cat confdefs.h >>conftest.$ac_ext
42706 cat >>conftest.$ac_ext <<_ACEOF
42707 /* end confdefs.h.  */
42708 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42710 #define _snprintf innocuous__snprintf
42711
42712 /* System header to define __stub macros and hopefully few prototypes,
42713     which can conflict with char _snprintf (); below.
42714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42715     <limits.h> exists even on freestanding compilers.  */
42716
42717 #ifdef __STDC__
42718 # include <limits.h>
42719 #else
42720 # include <assert.h>
42721 #endif
42722
42723 #undef _snprintf
42724
42725 /* Override any gcc2 internal prototype to avoid an error.  */
42726 #ifdef __cplusplus
42727 extern "C"
42728 {
42729 #endif
42730 /* We use char because int might match the return type of a gcc2
42731    builtin and then its argument prototype would still apply.  */
42732 char _snprintf ();
42733 /* The GNU C library defines this for functions which it implements
42734     to always fail with ENOSYS.  Some functions are actually named
42735     something starting with __ and the normal name is an alias.  */
42736 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42737 choke me
42738 #else
42739 char (*f) () = _snprintf;
42740 #endif
42741 #ifdef __cplusplus
42742 }
42743 #endif
42744
42745 int
42746 main ()
42747 {
42748 return f != _snprintf;
42749   ;
42750   return 0;
42751 }
42752 _ACEOF
42753 rm -f conftest.$ac_objext conftest$ac_exeext
42754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42755   (eval $ac_link) 2>conftest.er1
42756   ac_status=$?
42757   grep -v '^ *+' conftest.er1 >conftest.err
42758   rm -f conftest.er1
42759   cat conftest.err >&5
42760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761   (exit $ac_status); } &&
42762          { ac_try='test -z "$ac_c_werror_flag"
42763                          || test ! -s conftest.err'
42764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42765   (eval $ac_try) 2>&5
42766   ac_status=$?
42767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42768   (exit $ac_status); }; } &&
42769          { ac_try='test -s conftest$ac_exeext'
42770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771   (eval $ac_try) 2>&5
42772   ac_status=$?
42773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774   (exit $ac_status); }; }; then
42775   ac_cv_func__snprintf=yes
42776 else
42777   echo "$as_me: failed program was:" >&5
42778 sed 's/^/| /' conftest.$ac_ext >&5
42779
42780 ac_cv_func__snprintf=no
42781 fi
42782 rm -f conftest.err conftest.$ac_objext \
42783       conftest$ac_exeext conftest.$ac_ext
42784 fi
42785 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42786 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42787 if test $ac_cv_func__snprintf = yes; then
42788   ac_cv_func_snprintf=yes
42789
42790 cat >>confdefs.h <<\_ACEOF
42791 #define snprintf _snprintf
42792 _ACEOF
42793
42794
42795 fi
42796
42797
42798 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42799 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42800 if test "${ac_cv_func__vsnprintf+set}" = set; then
42801   echo $ECHO_N "(cached) $ECHO_C" >&6
42802 else
42803   cat >conftest.$ac_ext <<_ACEOF
42804 /* confdefs.h.  */
42805 _ACEOF
42806 cat confdefs.h >>conftest.$ac_ext
42807 cat >>conftest.$ac_ext <<_ACEOF
42808 /* end confdefs.h.  */
42809 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42811 #define _vsnprintf innocuous__vsnprintf
42812
42813 /* System header to define __stub macros and hopefully few prototypes,
42814     which can conflict with char _vsnprintf (); below.
42815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42816     <limits.h> exists even on freestanding compilers.  */
42817
42818 #ifdef __STDC__
42819 # include <limits.h>
42820 #else
42821 # include <assert.h>
42822 #endif
42823
42824 #undef _vsnprintf
42825
42826 /* Override any gcc2 internal prototype to avoid an error.  */
42827 #ifdef __cplusplus
42828 extern "C"
42829 {
42830 #endif
42831 /* We use char because int might match the return type of a gcc2
42832    builtin and then its argument prototype would still apply.  */
42833 char _vsnprintf ();
42834 /* The GNU C library defines this for functions which it implements
42835     to always fail with ENOSYS.  Some functions are actually named
42836     something starting with __ and the normal name is an alias.  */
42837 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42838 choke me
42839 #else
42840 char (*f) () = _vsnprintf;
42841 #endif
42842 #ifdef __cplusplus
42843 }
42844 #endif
42845
42846 int
42847 main ()
42848 {
42849 return f != _vsnprintf;
42850   ;
42851   return 0;
42852 }
42853 _ACEOF
42854 rm -f conftest.$ac_objext conftest$ac_exeext
42855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42856   (eval $ac_link) 2>conftest.er1
42857   ac_status=$?
42858   grep -v '^ *+' conftest.er1 >conftest.err
42859   rm -f conftest.er1
42860   cat conftest.err >&5
42861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42862   (exit $ac_status); } &&
42863          { ac_try='test -z "$ac_c_werror_flag"
42864                          || test ! -s conftest.err'
42865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42866   (eval $ac_try) 2>&5
42867   ac_status=$?
42868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869   (exit $ac_status); }; } &&
42870          { ac_try='test -s conftest$ac_exeext'
42871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872   (eval $ac_try) 2>&5
42873   ac_status=$?
42874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875   (exit $ac_status); }; }; then
42876   ac_cv_func__vsnprintf=yes
42877 else
42878   echo "$as_me: failed program was:" >&5
42879 sed 's/^/| /' conftest.$ac_ext >&5
42880
42881 ac_cv_func__vsnprintf=no
42882 fi
42883 rm -f conftest.err conftest.$ac_objext \
42884       conftest$ac_exeext conftest.$ac_ext
42885 fi
42886 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42887 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42888 if test $ac_cv_func__vsnprintf = yes; then
42889   ac_cv_func_vsnprintf=yes
42890
42891 cat >>confdefs.h <<\_ACEOF
42892 #define vsnprintf _vsnprintf
42893 _ACEOF
42894
42895
42896 fi
42897
42898
42899
42900 for ac_func in vprintf
42901 do
42902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42903 echo "$as_me:$LINENO: checking for $ac_func" >&5
42904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42905 if eval "test \"\${$as_ac_var+set}\" = set"; then
42906   echo $ECHO_N "(cached) $ECHO_C" >&6
42907 else
42908   cat >conftest.$ac_ext <<_ACEOF
42909 /* confdefs.h.  */
42910 _ACEOF
42911 cat confdefs.h >>conftest.$ac_ext
42912 cat >>conftest.$ac_ext <<_ACEOF
42913 /* end confdefs.h.  */
42914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42916 #define $ac_func innocuous_$ac_func
42917
42918 /* System header to define __stub macros and hopefully few prototypes,
42919     which can conflict with char $ac_func (); below.
42920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42921     <limits.h> exists even on freestanding compilers.  */
42922
42923 #ifdef __STDC__
42924 # include <limits.h>
42925 #else
42926 # include <assert.h>
42927 #endif
42928
42929 #undef $ac_func
42930
42931 /* Override any gcc2 internal prototype to avoid an error.  */
42932 #ifdef __cplusplus
42933 extern "C"
42934 {
42935 #endif
42936 /* We use char because int might match the return type of a gcc2
42937    builtin and then its argument prototype would still apply.  */
42938 char $ac_func ();
42939 /* The GNU C library defines this for functions which it implements
42940     to always fail with ENOSYS.  Some functions are actually named
42941     something starting with __ and the normal name is an alias.  */
42942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42943 choke me
42944 #else
42945 char (*f) () = $ac_func;
42946 #endif
42947 #ifdef __cplusplus
42948 }
42949 #endif
42950
42951 int
42952 main ()
42953 {
42954 return f != $ac_func;
42955   ;
42956   return 0;
42957 }
42958 _ACEOF
42959 rm -f conftest.$ac_objext conftest$ac_exeext
42960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42961   (eval $ac_link) 2>conftest.er1
42962   ac_status=$?
42963   grep -v '^ *+' conftest.er1 >conftest.err
42964   rm -f conftest.er1
42965   cat conftest.err >&5
42966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967   (exit $ac_status); } &&
42968          { ac_try='test -z "$ac_c_werror_flag"
42969                          || test ! -s conftest.err'
42970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42971   (eval $ac_try) 2>&5
42972   ac_status=$?
42973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42974   (exit $ac_status); }; } &&
42975          { ac_try='test -s conftest$ac_exeext'
42976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42977   (eval $ac_try) 2>&5
42978   ac_status=$?
42979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980   (exit $ac_status); }; }; then
42981   eval "$as_ac_var=yes"
42982 else
42983   echo "$as_me: failed program was:" >&5
42984 sed 's/^/| /' conftest.$ac_ext >&5
42985
42986 eval "$as_ac_var=no"
42987 fi
42988 rm -f conftest.err conftest.$ac_objext \
42989       conftest$ac_exeext conftest.$ac_ext
42990 fi
42991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42993 if test `eval echo '${'$as_ac_var'}'` = yes; then
42994   cat >>confdefs.h <<_ACEOF
42995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42996 _ACEOF
42997
42998 echo "$as_me:$LINENO: checking for _doprnt" >&5
42999 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43000 if test "${ac_cv_func__doprnt+set}" = set; then
43001   echo $ECHO_N "(cached) $ECHO_C" >&6
43002 else
43003   cat >conftest.$ac_ext <<_ACEOF
43004 /* confdefs.h.  */
43005 _ACEOF
43006 cat confdefs.h >>conftest.$ac_ext
43007 cat >>conftest.$ac_ext <<_ACEOF
43008 /* end confdefs.h.  */
43009 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43011 #define _doprnt innocuous__doprnt
43012
43013 /* System header to define __stub macros and hopefully few prototypes,
43014     which can conflict with char _doprnt (); below.
43015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43016     <limits.h> exists even on freestanding compilers.  */
43017
43018 #ifdef __STDC__
43019 # include <limits.h>
43020 #else
43021 # include <assert.h>
43022 #endif
43023
43024 #undef _doprnt
43025
43026 /* Override any gcc2 internal prototype to avoid an error.  */
43027 #ifdef __cplusplus
43028 extern "C"
43029 {
43030 #endif
43031 /* We use char because int might match the return type of a gcc2
43032    builtin and then its argument prototype would still apply.  */
43033 char _doprnt ();
43034 /* The GNU C library defines this for functions which it implements
43035     to always fail with ENOSYS.  Some functions are actually named
43036     something starting with __ and the normal name is an alias.  */
43037 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43038 choke me
43039 #else
43040 char (*f) () = _doprnt;
43041 #endif
43042 #ifdef __cplusplus
43043 }
43044 #endif
43045
43046 int
43047 main ()
43048 {
43049 return f != _doprnt;
43050   ;
43051   return 0;
43052 }
43053 _ACEOF
43054 rm -f conftest.$ac_objext conftest$ac_exeext
43055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43056   (eval $ac_link) 2>conftest.er1
43057   ac_status=$?
43058   grep -v '^ *+' conftest.er1 >conftest.err
43059   rm -f conftest.er1
43060   cat conftest.err >&5
43061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062   (exit $ac_status); } &&
43063          { ac_try='test -z "$ac_c_werror_flag"
43064                          || test ! -s conftest.err'
43065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43066   (eval $ac_try) 2>&5
43067   ac_status=$?
43068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069   (exit $ac_status); }; } &&
43070          { ac_try='test -s conftest$ac_exeext'
43071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43072   (eval $ac_try) 2>&5
43073   ac_status=$?
43074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075   (exit $ac_status); }; }; then
43076   ac_cv_func__doprnt=yes
43077 else
43078   echo "$as_me: failed program was:" >&5
43079 sed 's/^/| /' conftest.$ac_ext >&5
43080
43081 ac_cv_func__doprnt=no
43082 fi
43083 rm -f conftest.err conftest.$ac_objext \
43084       conftest$ac_exeext conftest.$ac_ext
43085 fi
43086 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43087 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43088 if test $ac_cv_func__doprnt = yes; then
43089
43090 cat >>confdefs.h <<\_ACEOF
43091 #define HAVE_DOPRNT 1
43092 _ACEOF
43093
43094 fi
43095
43096 fi
43097 done
43098
43099
43100
43101 if test $ac_cv_func_vprintf = yes ; then
43102
43103
43104 for ac_func in snprintf vsnprintf
43105 do
43106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43107 echo "$as_me:$LINENO: checking for $ac_func" >&5
43108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43109 if eval "test \"\${$as_ac_var+set}\" = set"; then
43110   echo $ECHO_N "(cached) $ECHO_C" >&6
43111 else
43112   cat >conftest.$ac_ext <<_ACEOF
43113 /* confdefs.h.  */
43114 _ACEOF
43115 cat confdefs.h >>conftest.$ac_ext
43116 cat >>conftest.$ac_ext <<_ACEOF
43117 /* end confdefs.h.  */
43118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43120 #define $ac_func innocuous_$ac_func
43121
43122 /* System header to define __stub macros and hopefully few prototypes,
43123     which can conflict with char $ac_func (); below.
43124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43125     <limits.h> exists even on freestanding compilers.  */
43126
43127 #ifdef __STDC__
43128 # include <limits.h>
43129 #else
43130 # include <assert.h>
43131 #endif
43132
43133 #undef $ac_func
43134
43135 /* Override any gcc2 internal prototype to avoid an error.  */
43136 #ifdef __cplusplus
43137 extern "C"
43138 {
43139 #endif
43140 /* We use char because int might match the return type of a gcc2
43141    builtin and then its argument prototype would still apply.  */
43142 char $ac_func ();
43143 /* The GNU C library defines this for functions which it implements
43144     to always fail with ENOSYS.  Some functions are actually named
43145     something starting with __ and the normal name is an alias.  */
43146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43147 choke me
43148 #else
43149 char (*f) () = $ac_func;
43150 #endif
43151 #ifdef __cplusplus
43152 }
43153 #endif
43154
43155 int
43156 main ()
43157 {
43158 return f != $ac_func;
43159   ;
43160   return 0;
43161 }
43162 _ACEOF
43163 rm -f conftest.$ac_objext conftest$ac_exeext
43164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43165   (eval $ac_link) 2>conftest.er1
43166   ac_status=$?
43167   grep -v '^ *+' conftest.er1 >conftest.err
43168   rm -f conftest.er1
43169   cat conftest.err >&5
43170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171   (exit $ac_status); } &&
43172          { ac_try='test -z "$ac_c_werror_flag"
43173                          || test ! -s conftest.err'
43174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43175   (eval $ac_try) 2>&5
43176   ac_status=$?
43177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178   (exit $ac_status); }; } &&
43179          { ac_try='test -s conftest$ac_exeext'
43180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43181   (eval $ac_try) 2>&5
43182   ac_status=$?
43183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43184   (exit $ac_status); }; }; then
43185   eval "$as_ac_var=yes"
43186 else
43187   echo "$as_me: failed program was:" >&5
43188 sed 's/^/| /' conftest.$ac_ext >&5
43189
43190 eval "$as_ac_var=no"
43191 fi
43192 rm -f conftest.err conftest.$ac_objext \
43193       conftest$ac_exeext conftest.$ac_ext
43194 fi
43195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43197 if test `eval echo '${'$as_ac_var'}'` = yes; then
43198   cat >>confdefs.h <<_ACEOF
43199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43200 _ACEOF
43201
43202 fi
43203 done
43204
43205 fi
43206
43207
43208
43209
43210
43211
43212
43213
43214
43215
43216
43217
43218
43219
43220
43221
43222
43223
43224
43225
43226
43227
43228
43229
43230
43231
43232
43233
43234
43235
43236
43237
43238
43239
43240
43241
43242
43243
43244
43245
43246
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257
43258
43259
43260
43261 for ac_func in \
43262         bcopy                   \
43263         closesocket             \
43264         chroot                  \
43265         endgrent                \
43266         endpwent                \
43267         fcntl                   \
43268         flock                   \
43269         fstat                   \
43270         getdtablesize   \
43271         getgrgid                \
43272         gethostname             \
43273         getpass                 \
43274         getpassphrase   \
43275         getpwuid                \
43276         getpwnam                \
43277         getspnam                \
43278         gettimeofday    \
43279         initgroups              \
43280         inet_ntoa_b             \
43281         lockf                   \
43282         memcpy                  \
43283         memmove                 \
43284         memrchr                 \
43285         mkstemp                 \
43286         mktemp                  \
43287         pipe                    \
43288         read                    \
43289         recv                    \
43290         recvfrom                \
43291         setpwfile               \
43292         setgid                  \
43293         setegid                 \
43294         setsid                  \
43295         setuid                  \
43296         seteuid                 \
43297         signal                  \
43298         strdup                  \
43299         strpbrk                 \
43300         strrchr                 \
43301         strsep                  \
43302         strstr                  \
43303         strtol                  \
43304         strtoul                 \
43305         strtoq                  \
43306         strtouq                 \
43307         strtoll                 \
43308         strspn                  \
43309         sysconf                 \
43310         waitpid                 \
43311         wait4                   \
43312         write                   \
43313         send                    \
43314         sendmsg                 \
43315         sendto                  \
43316
43317 do
43318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43319 echo "$as_me:$LINENO: checking for $ac_func" >&5
43320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43321 if eval "test \"\${$as_ac_var+set}\" = set"; then
43322   echo $ECHO_N "(cached) $ECHO_C" >&6
43323 else
43324   cat >conftest.$ac_ext <<_ACEOF
43325 /* confdefs.h.  */
43326 _ACEOF
43327 cat confdefs.h >>conftest.$ac_ext
43328 cat >>conftest.$ac_ext <<_ACEOF
43329 /* end confdefs.h.  */
43330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43332 #define $ac_func innocuous_$ac_func
43333
43334 /* System header to define __stub macros and hopefully few prototypes,
43335     which can conflict with char $ac_func (); below.
43336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43337     <limits.h> exists even on freestanding compilers.  */
43338
43339 #ifdef __STDC__
43340 # include <limits.h>
43341 #else
43342 # include <assert.h>
43343 #endif
43344
43345 #undef $ac_func
43346
43347 /* Override any gcc2 internal prototype to avoid an error.  */
43348 #ifdef __cplusplus
43349 extern "C"
43350 {
43351 #endif
43352 /* We use char because int might match the return type of a gcc2
43353    builtin and then its argument prototype would still apply.  */
43354 char $ac_func ();
43355 /* The GNU C library defines this for functions which it implements
43356     to always fail with ENOSYS.  Some functions are actually named
43357     something starting with __ and the normal name is an alias.  */
43358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43359 choke me
43360 #else
43361 char (*f) () = $ac_func;
43362 #endif
43363 #ifdef __cplusplus
43364 }
43365 #endif
43366
43367 int
43368 main ()
43369 {
43370 return f != $ac_func;
43371   ;
43372   return 0;
43373 }
43374 _ACEOF
43375 rm -f conftest.$ac_objext conftest$ac_exeext
43376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43377   (eval $ac_link) 2>conftest.er1
43378   ac_status=$?
43379   grep -v '^ *+' conftest.er1 >conftest.err
43380   rm -f conftest.er1
43381   cat conftest.err >&5
43382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43383   (exit $ac_status); } &&
43384          { ac_try='test -z "$ac_c_werror_flag"
43385                          || test ! -s conftest.err'
43386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43387   (eval $ac_try) 2>&5
43388   ac_status=$?
43389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390   (exit $ac_status); }; } &&
43391          { ac_try='test -s conftest$ac_exeext'
43392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43393   (eval $ac_try) 2>&5
43394   ac_status=$?
43395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43396   (exit $ac_status); }; }; then
43397   eval "$as_ac_var=yes"
43398 else
43399   echo "$as_me: failed program was:" >&5
43400 sed 's/^/| /' conftest.$ac_ext >&5
43401
43402 eval "$as_ac_var=no"
43403 fi
43404 rm -f conftest.err conftest.$ac_objext \
43405       conftest$ac_exeext conftest.$ac_ext
43406 fi
43407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43409 if test `eval echo '${'$as_ac_var'}'` = yes; then
43410   cat >>confdefs.h <<_ACEOF
43411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43412 _ACEOF
43413
43414 fi
43415 done
43416
43417
43418
43419
43420 for ac_func in getopt getpeereid
43421 do
43422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43423 echo "$as_me:$LINENO: checking for $ac_func" >&5
43424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43425 if eval "test \"\${$as_ac_var+set}\" = set"; then
43426   echo $ECHO_N "(cached) $ECHO_C" >&6
43427 else
43428   cat >conftest.$ac_ext <<_ACEOF
43429 /* confdefs.h.  */
43430 _ACEOF
43431 cat confdefs.h >>conftest.$ac_ext
43432 cat >>conftest.$ac_ext <<_ACEOF
43433 /* end confdefs.h.  */
43434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43436 #define $ac_func innocuous_$ac_func
43437
43438 /* System header to define __stub macros and hopefully few prototypes,
43439     which can conflict with char $ac_func (); below.
43440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43441     <limits.h> exists even on freestanding compilers.  */
43442
43443 #ifdef __STDC__
43444 # include <limits.h>
43445 #else
43446 # include <assert.h>
43447 #endif
43448
43449 #undef $ac_func
43450
43451 /* Override any gcc2 internal prototype to avoid an error.  */
43452 #ifdef __cplusplus
43453 extern "C"
43454 {
43455 #endif
43456 /* We use char because int might match the return type of a gcc2
43457    builtin and then its argument prototype would still apply.  */
43458 char $ac_func ();
43459 /* The GNU C library defines this for functions which it implements
43460     to always fail with ENOSYS.  Some functions are actually named
43461     something starting with __ and the normal name is an alias.  */
43462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43463 choke me
43464 #else
43465 char (*f) () = $ac_func;
43466 #endif
43467 #ifdef __cplusplus
43468 }
43469 #endif
43470
43471 int
43472 main ()
43473 {
43474 return f != $ac_func;
43475   ;
43476   return 0;
43477 }
43478 _ACEOF
43479 rm -f conftest.$ac_objext conftest$ac_exeext
43480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43481   (eval $ac_link) 2>conftest.er1
43482   ac_status=$?
43483   grep -v '^ *+' conftest.er1 >conftest.err
43484   rm -f conftest.er1
43485   cat conftest.err >&5
43486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43487   (exit $ac_status); } &&
43488          { ac_try='test -z "$ac_c_werror_flag"
43489                          || test ! -s conftest.err'
43490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43491   (eval $ac_try) 2>&5
43492   ac_status=$?
43493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43494   (exit $ac_status); }; } &&
43495          { ac_try='test -s conftest$ac_exeext'
43496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43497   (eval $ac_try) 2>&5
43498   ac_status=$?
43499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43500   (exit $ac_status); }; }; then
43501   eval "$as_ac_var=yes"
43502 else
43503   echo "$as_me: failed program was:" >&5
43504 sed 's/^/| /' conftest.$ac_ext >&5
43505
43506 eval "$as_ac_var=no"
43507 fi
43508 rm -f conftest.err conftest.$ac_objext \
43509       conftest$ac_exeext conftest.$ac_ext
43510 fi
43511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43513 if test `eval echo '${'$as_ac_var'}'` = yes; then
43514   cat >>confdefs.h <<_ACEOF
43515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43516 _ACEOF
43517
43518 else
43519   case $LIBOBJS in
43520     "$ac_func.$ac_objext"   | \
43521   *" $ac_func.$ac_objext"   | \
43522     "$ac_func.$ac_objext "* | \
43523   *" $ac_func.$ac_objext "* ) ;;
43524   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43525 esac
43526
43527 fi
43528 done
43529
43530
43531
43532 if test "$ac_cv_func_getopt" != yes; then
43533         LIBSRCS="$LIBSRCS getopt.c"
43534 fi
43535
43536 if test "$ac_cv_func_getpeereid" != yes; then
43537
43538 for ac_func in getpeerucred
43539 do
43540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43541 echo "$as_me:$LINENO: checking for $ac_func" >&5
43542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43543 if eval "test \"\${$as_ac_var+set}\" = set"; then
43544   echo $ECHO_N "(cached) $ECHO_C" >&6
43545 else
43546   cat >conftest.$ac_ext <<_ACEOF
43547 /* confdefs.h.  */
43548 _ACEOF
43549 cat confdefs.h >>conftest.$ac_ext
43550 cat >>conftest.$ac_ext <<_ACEOF
43551 /* end confdefs.h.  */
43552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43554 #define $ac_func innocuous_$ac_func
43555
43556 /* System header to define __stub macros and hopefully few prototypes,
43557     which can conflict with char $ac_func (); below.
43558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43559     <limits.h> exists even on freestanding compilers.  */
43560
43561 #ifdef __STDC__
43562 # include <limits.h>
43563 #else
43564 # include <assert.h>
43565 #endif
43566
43567 #undef $ac_func
43568
43569 /* Override any gcc2 internal prototype to avoid an error.  */
43570 #ifdef __cplusplus
43571 extern "C"
43572 {
43573 #endif
43574 /* We use char because int might match the return type of a gcc2
43575    builtin and then its argument prototype would still apply.  */
43576 char $ac_func ();
43577 /* The GNU C library defines this for functions which it implements
43578     to always fail with ENOSYS.  Some functions are actually named
43579     something starting with __ and the normal name is an alias.  */
43580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43581 choke me
43582 #else
43583 char (*f) () = $ac_func;
43584 #endif
43585 #ifdef __cplusplus
43586 }
43587 #endif
43588
43589 int
43590 main ()
43591 {
43592 return f != $ac_func;
43593   ;
43594   return 0;
43595 }
43596 _ACEOF
43597 rm -f conftest.$ac_objext conftest$ac_exeext
43598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43599   (eval $ac_link) 2>conftest.er1
43600   ac_status=$?
43601   grep -v '^ *+' conftest.er1 >conftest.err
43602   rm -f conftest.er1
43603   cat conftest.err >&5
43604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605   (exit $ac_status); } &&
43606          { ac_try='test -z "$ac_c_werror_flag"
43607                          || test ! -s conftest.err'
43608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43609   (eval $ac_try) 2>&5
43610   ac_status=$?
43611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43612   (exit $ac_status); }; } &&
43613          { ac_try='test -s conftest$ac_exeext'
43614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615   (eval $ac_try) 2>&5
43616   ac_status=$?
43617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618   (exit $ac_status); }; }; then
43619   eval "$as_ac_var=yes"
43620 else
43621   echo "$as_me: failed program was:" >&5
43622 sed 's/^/| /' conftest.$ac_ext >&5
43623
43624 eval "$as_ac_var=no"
43625 fi
43626 rm -f conftest.err conftest.$ac_objext \
43627       conftest$ac_exeext conftest.$ac_ext
43628 fi
43629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43631 if test `eval echo '${'$as_ac_var'}'` = yes; then
43632   cat >>confdefs.h <<_ACEOF
43633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43634 _ACEOF
43635
43636 fi
43637 done
43638
43639         if test "$ac_cv_func_getpeerucred" != yes ; then
43640                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43641 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43642 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43643   echo $ECHO_N "(cached) $ECHO_C" >&6
43644 else
43645   cat >conftest.$ac_ext <<_ACEOF
43646 /* confdefs.h.  */
43647 _ACEOF
43648 cat confdefs.h >>conftest.$ac_ext
43649 cat >>conftest.$ac_ext <<_ACEOF
43650 /* end confdefs.h.  */
43651 $ac_includes_default
43652 #ifdef HAVE_SYS_SOCKET_H
43653 #include <sys/socket.h>
43654 #endif
43655
43656 int
43657 main ()
43658 {
43659 static struct msghdr ac_aggr;
43660 if (ac_aggr.msg_accrightslen)
43661 return 0;
43662   ;
43663   return 0;
43664 }
43665 _ACEOF
43666 rm -f conftest.$ac_objext
43667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43668   (eval $ac_compile) 2>conftest.er1
43669   ac_status=$?
43670   grep -v '^ *+' conftest.er1 >conftest.err
43671   rm -f conftest.er1
43672   cat conftest.err >&5
43673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674   (exit $ac_status); } &&
43675          { ac_try='test -z "$ac_c_werror_flag"
43676                          || test ! -s conftest.err'
43677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43678   (eval $ac_try) 2>&5
43679   ac_status=$?
43680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681   (exit $ac_status); }; } &&
43682          { ac_try='test -s conftest.$ac_objext'
43683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43684   (eval $ac_try) 2>&5
43685   ac_status=$?
43686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687   (exit $ac_status); }; }; then
43688   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43689 else
43690   echo "$as_me: failed program was:" >&5
43691 sed 's/^/| /' conftest.$ac_ext >&5
43692
43693 cat >conftest.$ac_ext <<_ACEOF
43694 /* confdefs.h.  */
43695 _ACEOF
43696 cat confdefs.h >>conftest.$ac_ext
43697 cat >>conftest.$ac_ext <<_ACEOF
43698 /* end confdefs.h.  */
43699 $ac_includes_default
43700 #ifdef HAVE_SYS_SOCKET_H
43701 #include <sys/socket.h>
43702 #endif
43703
43704 int
43705 main ()
43706 {
43707 static struct msghdr ac_aggr;
43708 if (sizeof ac_aggr.msg_accrightslen)
43709 return 0;
43710   ;
43711   return 0;
43712 }
43713 _ACEOF
43714 rm -f conftest.$ac_objext
43715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43716   (eval $ac_compile) 2>conftest.er1
43717   ac_status=$?
43718   grep -v '^ *+' conftest.er1 >conftest.err
43719   rm -f conftest.er1
43720   cat conftest.err >&5
43721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43722   (exit $ac_status); } &&
43723          { ac_try='test -z "$ac_c_werror_flag"
43724                          || test ! -s conftest.err'
43725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43726   (eval $ac_try) 2>&5
43727   ac_status=$?
43728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43729   (exit $ac_status); }; } &&
43730          { ac_try='test -s conftest.$ac_objext'
43731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43732   (eval $ac_try) 2>&5
43733   ac_status=$?
43734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735   (exit $ac_status); }; }; then
43736   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43737 else
43738   echo "$as_me: failed program was:" >&5
43739 sed 's/^/| /' conftest.$ac_ext >&5
43740
43741 ac_cv_member_struct_msghdr_msg_accrightslen=no
43742 fi
43743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43744 fi
43745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43746 fi
43747 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43748 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43749 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43750
43751 cat >>confdefs.h <<_ACEOF
43752 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43753 _ACEOF
43754
43755
43756 fi
43757
43758                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43759                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43760 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43761 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43762   echo $ECHO_N "(cached) $ECHO_C" >&6
43763 else
43764   cat >conftest.$ac_ext <<_ACEOF
43765 /* confdefs.h.  */
43766 _ACEOF
43767 cat confdefs.h >>conftest.$ac_ext
43768 cat >>conftest.$ac_ext <<_ACEOF
43769 /* end confdefs.h.  */
43770 $ac_includes_default
43771 #ifdef HAVE_SYS_SOCKET_H
43772 #include <sys/socket.h>
43773 #endif
43774
43775 int
43776 main ()
43777 {
43778 static struct msghdr ac_aggr;
43779 if (ac_aggr.msg_control)
43780 return 0;
43781   ;
43782   return 0;
43783 }
43784 _ACEOF
43785 rm -f conftest.$ac_objext
43786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43787   (eval $ac_compile) 2>conftest.er1
43788   ac_status=$?
43789   grep -v '^ *+' conftest.er1 >conftest.err
43790   rm -f conftest.er1
43791   cat conftest.err >&5
43792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43793   (exit $ac_status); } &&
43794          { ac_try='test -z "$ac_c_werror_flag"
43795                          || test ! -s conftest.err'
43796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43797   (eval $ac_try) 2>&5
43798   ac_status=$?
43799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800   (exit $ac_status); }; } &&
43801          { ac_try='test -s conftest.$ac_objext'
43802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43803   (eval $ac_try) 2>&5
43804   ac_status=$?
43805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43806   (exit $ac_status); }; }; then
43807   ac_cv_member_struct_msghdr_msg_control=yes
43808 else
43809   echo "$as_me: failed program was:" >&5
43810 sed 's/^/| /' conftest.$ac_ext >&5
43811
43812 cat >conftest.$ac_ext <<_ACEOF
43813 /* confdefs.h.  */
43814 _ACEOF
43815 cat confdefs.h >>conftest.$ac_ext
43816 cat >>conftest.$ac_ext <<_ACEOF
43817 /* end confdefs.h.  */
43818 $ac_includes_default
43819 #ifdef HAVE_SYS_SOCKET_H
43820 #include <sys/socket.h>
43821 #endif
43822
43823 int
43824 main ()
43825 {
43826 static struct msghdr ac_aggr;
43827 if (sizeof ac_aggr.msg_control)
43828 return 0;
43829   ;
43830   return 0;
43831 }
43832 _ACEOF
43833 rm -f conftest.$ac_objext
43834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43835   (eval $ac_compile) 2>conftest.er1
43836   ac_status=$?
43837   grep -v '^ *+' conftest.er1 >conftest.err
43838   rm -f conftest.er1
43839   cat conftest.err >&5
43840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43841   (exit $ac_status); } &&
43842          { ac_try='test -z "$ac_c_werror_flag"
43843                          || test ! -s conftest.err'
43844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43845   (eval $ac_try) 2>&5
43846   ac_status=$?
43847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43848   (exit $ac_status); }; } &&
43849          { ac_try='test -s conftest.$ac_objext'
43850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43851   (eval $ac_try) 2>&5
43852   ac_status=$?
43853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854   (exit $ac_status); }; }; then
43855   ac_cv_member_struct_msghdr_msg_control=yes
43856 else
43857   echo "$as_me: failed program was:" >&5
43858 sed 's/^/| /' conftest.$ac_ext >&5
43859
43860 ac_cv_member_struct_msghdr_msg_control=no
43861 fi
43862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43863 fi
43864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43865 fi
43866 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43867 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43868 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43869
43870 cat >>confdefs.h <<_ACEOF
43871 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43872 _ACEOF
43873
43874
43875 fi
43876
43877                 fi
43878         fi
43879         LIBSRCS="$LIBSRCS getpeereid.c"
43880 fi
43881
43882 if test "$ac_cv_func_snprintf" != yes ||
43883    test "$ac_cv_func_vsnprintf" != yes; then
43884         if test "$ac_cv_func_snprintf" != yes; then
43885
43886 cat >>confdefs.h <<\_ACEOF
43887 #define snprintf ber_pvt_snprintf
43888 _ACEOF
43889
43890         fi
43891         if test "$ac_cv_func_vsnprintf" != yes; then
43892
43893 cat >>confdefs.h <<\_ACEOF
43894 #define vsnprintf ber_pvt_vsnprintf
43895 _ACEOF
43896
43897         fi
43898 fi
43899
43900
43901 if test "$ol_enable_slapi" != no ; then
43902
43903 for ac_header in ltdl.h
43904 do
43905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43907   echo "$as_me:$LINENO: checking for $ac_header" >&5
43908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43910   echo $ECHO_N "(cached) $ECHO_C" >&6
43911 fi
43912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43914 else
43915   # Is the header compilable?
43916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43918 cat >conftest.$ac_ext <<_ACEOF
43919 /* confdefs.h.  */
43920 _ACEOF
43921 cat confdefs.h >>conftest.$ac_ext
43922 cat >>conftest.$ac_ext <<_ACEOF
43923 /* end confdefs.h.  */
43924 $ac_includes_default
43925 #include <$ac_header>
43926 _ACEOF
43927 rm -f conftest.$ac_objext
43928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43929   (eval $ac_compile) 2>conftest.er1
43930   ac_status=$?
43931   grep -v '^ *+' conftest.er1 >conftest.err
43932   rm -f conftest.er1
43933   cat conftest.err >&5
43934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935   (exit $ac_status); } &&
43936          { ac_try='test -z "$ac_c_werror_flag"
43937                          || test ! -s conftest.err'
43938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43939   (eval $ac_try) 2>&5
43940   ac_status=$?
43941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43942   (exit $ac_status); }; } &&
43943          { ac_try='test -s conftest.$ac_objext'
43944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43945   (eval $ac_try) 2>&5
43946   ac_status=$?
43947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43948   (exit $ac_status); }; }; then
43949   ac_header_compiler=yes
43950 else
43951   echo "$as_me: failed program was:" >&5
43952 sed 's/^/| /' conftest.$ac_ext >&5
43953
43954 ac_header_compiler=no
43955 fi
43956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43958 echo "${ECHO_T}$ac_header_compiler" >&6
43959
43960 # Is the header present?
43961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43963 cat >conftest.$ac_ext <<_ACEOF
43964 /* confdefs.h.  */
43965 _ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h.  */
43969 #include <$ac_header>
43970 _ACEOF
43971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43973   ac_status=$?
43974   grep -v '^ *+' conftest.er1 >conftest.err
43975   rm -f conftest.er1
43976   cat conftest.err >&5
43977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43978   (exit $ac_status); } >/dev/null; then
43979   if test -s conftest.err; then
43980     ac_cpp_err=$ac_c_preproc_warn_flag
43981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43982   else
43983     ac_cpp_err=
43984   fi
43985 else
43986   ac_cpp_err=yes
43987 fi
43988 if test -z "$ac_cpp_err"; then
43989   ac_header_preproc=yes
43990 else
43991   echo "$as_me: failed program was:" >&5
43992 sed 's/^/| /' conftest.$ac_ext >&5
43993
43994   ac_header_preproc=no
43995 fi
43996 rm -f conftest.err conftest.$ac_ext
43997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43998 echo "${ECHO_T}$ac_header_preproc" >&6
43999
44000 # So?  What about this header?
44001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44002   yes:no: )
44003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44007     ac_header_preproc=yes
44008     ;;
44009   no:yes:* )
44010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44012     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44013 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44014     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44016     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44017 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44020     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44022     (
44023       cat <<\_ASBOX
44024 ## --------------------------------------------- ##
44025 ## Report this to <http://www.openldap.org/its/> ##
44026 ## --------------------------------------------- ##
44027 _ASBOX
44028     ) |
44029       sed "s/^/$as_me: WARNING:     /" >&2
44030     ;;
44031 esac
44032 echo "$as_me:$LINENO: checking for $ac_header" >&5
44033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44035   echo $ECHO_N "(cached) $ECHO_C" >&6
44036 else
44037   eval "$as_ac_Header=\$ac_header_preproc"
44038 fi
44039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44041
44042 fi
44043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44044   cat >>confdefs.h <<_ACEOF
44045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44046 _ACEOF
44047
44048 fi
44049
44050 done
44051
44052
44053         if test $ac_cv_header_ltdl_h != yes ; then
44054                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44055 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44056    { (exit 1); exit 1; }; }
44057         fi
44058         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44059 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44060 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44061   echo $ECHO_N "(cached) $ECHO_C" >&6
44062 else
44063   ac_check_lib_save_LIBS=$LIBS
44064 LIBS="-lltdl  $LIBS"
44065 cat >conftest.$ac_ext <<_ACEOF
44066 /* confdefs.h.  */
44067 _ACEOF
44068 cat confdefs.h >>conftest.$ac_ext
44069 cat >>conftest.$ac_ext <<_ACEOF
44070 /* end confdefs.h.  */
44071
44072 /* Override any gcc2 internal prototype to avoid an error.  */
44073 #ifdef __cplusplus
44074 extern "C"
44075 #endif
44076 /* We use char because int might match the return type of a gcc2
44077    builtin and then its argument prototype would still apply.  */
44078 char lt_dlinit ();
44079 int
44080 main ()
44081 {
44082 lt_dlinit ();
44083   ;
44084   return 0;
44085 }
44086 _ACEOF
44087 rm -f conftest.$ac_objext conftest$ac_exeext
44088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44089   (eval $ac_link) 2>conftest.er1
44090   ac_status=$?
44091   grep -v '^ *+' conftest.er1 >conftest.err
44092   rm -f conftest.er1
44093   cat conftest.err >&5
44094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095   (exit $ac_status); } &&
44096          { ac_try='test -z "$ac_c_werror_flag"
44097                          || test ! -s conftest.err'
44098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44099   (eval $ac_try) 2>&5
44100   ac_status=$?
44101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44102   (exit $ac_status); }; } &&
44103          { ac_try='test -s conftest$ac_exeext'
44104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105   (eval $ac_try) 2>&5
44106   ac_status=$?
44107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108   (exit $ac_status); }; }; then
44109   ac_cv_lib_ltdl_lt_dlinit=yes
44110 else
44111   echo "$as_me: failed program was:" >&5
44112 sed 's/^/| /' conftest.$ac_ext >&5
44113
44114 ac_cv_lib_ltdl_lt_dlinit=no
44115 fi
44116 rm -f conftest.err conftest.$ac_objext \
44117       conftest$ac_exeext conftest.$ac_ext
44118 LIBS=$ac_check_lib_save_LIBS
44119 fi
44120 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44121 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44122 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44123
44124                 SLAPI_LIBS=-lltdl
44125                 LIBSLAPI=libslapi.a
44126                 LIBSLAPITOOLS=../libslapi.a
44127
44128 cat >>confdefs.h <<\_ACEOF
44129 #define HAVE_LIBLTDL 1
44130 _ACEOF
44131
44132
44133 else
44134   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44135 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44136    { (exit 1); exit 1; }; }
44137 fi
44138
44139
44140
44141 cat >>confdefs.h <<\_ACEOF
44142 #define LDAP_SLAPI 1
44143 _ACEOF
44144
44145 fi
44146
44147 if test "$ol_enable_debug" != no ; then
44148         if test "$ol_enable_debug" = traditional; then
44149
44150 cat >>confdefs.h <<\_ACEOF
44151 #define OLD_DEBUG 1
44152 _ACEOF
44153
44154         fi
44155
44156 cat >>confdefs.h <<\_ACEOF
44157 #define LDAP_DEBUG 1
44158 _ACEOF
44159
44160 fi
44161 if test "$ol_enable_syslog" = yes ; then
44162
44163 cat >>confdefs.h <<\_ACEOF
44164 #define LDAP_SYSLOG 1
44165 _ACEOF
44166
44167 fi
44168 if test "$ol_link_kbind" != no ; then
44169
44170 cat >>confdefs.h <<\_ACEOF
44171 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44172 _ACEOF
44173
44174 fi
44175 if test "$ol_enable_proctitle" != no ; then
44176
44177 cat >>confdefs.h <<\_ACEOF
44178 #define LDAP_PROCTITLE 1
44179 _ACEOF
44180
44181 fi
44182 if test "$ol_enable_referrals" != no ; then
44183
44184 cat >>confdefs.h <<\_ACEOF
44185 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44186 _ACEOF
44187
44188 fi
44189 if test "$ol_enable_local" != no; then
44190
44191 cat >>confdefs.h <<\_ACEOF
44192 #define LDAP_PF_LOCAL 1
44193 _ACEOF
44194
44195 fi
44196 if test "$ol_link_ipv6" != no; then
44197
44198 cat >>confdefs.h <<\_ACEOF
44199 #define LDAP_PF_INET6 1
44200 _ACEOF
44201
44202 fi
44203 if test "$ol_enable_cleartext" != no ; then
44204
44205 cat >>confdefs.h <<\_ACEOF
44206 #define SLAPD_CLEARTEXT 1
44207 _ACEOF
44208
44209 fi
44210 if test "$ol_enable_crypt" != no ; then
44211
44212 cat >>confdefs.h <<\_ACEOF
44213 #define SLAPD_CRYPT 1
44214 _ACEOF
44215
44216 fi
44217 if test "$ol_link_spasswd" != no ; then
44218
44219 cat >>confdefs.h <<\_ACEOF
44220 #define SLAPD_SPASSWD 1
44221 _ACEOF
44222
44223 fi
44224 if test "$ol_enable_rlookups" != no ; then
44225
44226 cat >>confdefs.h <<\_ACEOF
44227 #define SLAPD_RLOOKUPS 1
44228 _ACEOF
44229
44230 fi
44231 if test "$ol_enable_aci" != no ; then
44232         if test $ol_enable_dynacl = no ; then
44233                 ol_enable_dynacl=yes
44234                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44235 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44236         fi
44237         if test "$ol_enable_aci" = mod ; then
44238                 MFLAG=SLAPD_MOD_DYNAMIC
44239                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44240 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44241    { (exit 1); exit 1; }; }
44242         else
44243                 MFLAG=SLAPD_MOD_STATIC
44244         fi
44245         WITH_ACI_ENABLED=$ol_enable_aci
44246
44247 cat >>confdefs.h <<_ACEOF
44248 #define SLAPD_ACI_ENABLED $MFLAG
44249 _ACEOF
44250
44251 else
44252         WITH_ACI_ENABLED=no
44253 fi
44254 if test "$ol_enable_dynacl" != no ; then
44255
44256 cat >>confdefs.h <<\_ACEOF
44257 #define SLAP_DYNACL 1
44258 _ACEOF
44259
44260 fi
44261
44262 if test "$ol_link_modules" != no ; then
44263
44264 cat >>confdefs.h <<\_ACEOF
44265 #define SLAPD_MODULES 1
44266 _ACEOF
44267
44268         BUILD_SLAPD=yes
44269         SLAPD_MODULES_LDFLAGS="-dlopen self"
44270 fi
44271
44272
44273 cat >>confdefs.h <<\_ACEOF
44274 #define SLAPD_MOD_STATIC 1
44275 _ACEOF
44276
44277
44278 cat >>confdefs.h <<\_ACEOF
44279 #define SLAPD_MOD_DYNAMIC 2
44280 _ACEOF
44281
44282
44283 if test "$ol_enable_bdb" != no ; then
44284         BUILD_SLAPD=yes
44285         BUILD_BDB=$ol_enable_bdb
44286         if test "$ol_enable_bdb" = mod ; then
44287                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44288                 MFLAG=SLAPD_MOD_DYNAMIC
44289         else
44290                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44291                 MFLAG=SLAPD_MOD_STATIC
44292         fi
44293
44294 cat >>confdefs.h <<_ACEOF
44295 #define SLAPD_BDB $MFLAG
44296 _ACEOF
44297
44298 fi
44299
44300 if test "$ol_enable_dnssrv" != no ; then
44301         BUILD_SLAPD=yes
44302         BUILD_DNSSRV=$ol_enable_dnssrv
44303         if test "$ol_enable_dnssrv" = mod ; then
44304                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44305                 MFLAG=SLAPD_MOD_DYNAMIC
44306         else
44307                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44308                 MFLAG=SLAPD_MOD_STATIC
44309         fi
44310
44311 cat >>confdefs.h <<_ACEOF
44312 #define SLAPD_DNSSRV $MFLAG
44313 _ACEOF
44314
44315 fi
44316
44317 if test "$ol_enable_hdb" != no ; then
44318         BUILD_SLAPD=yes
44319         BUILD_HDB=$ol_enable_hdb
44320         if test "$ol_enable_hdb" = mod ; then
44321                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44322                 MFLAG=SLAPD_MOD_DYNAMIC
44323         else
44324                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44325                 MFLAG=SLAPD_MOD_STATIC
44326         fi
44327
44328 cat >>confdefs.h <<_ACEOF
44329 #define SLAPD_HDB $MFLAG
44330 _ACEOF
44331
44332 fi
44333
44334 if test "$ol_enable_ldap" != no ; then
44335         BUILD_SLAPD=yes
44336         BUILD_LDAP=$ol_enable_ldap
44337         if test "$ol_enable_ldap" = mod ; then
44338                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44339                 MFLAG=SLAPD_MOD_DYNAMIC
44340         else
44341                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44342                 MFLAG=SLAPD_MOD_STATIC
44343         fi
44344
44345 cat >>confdefs.h <<_ACEOF
44346 #define SLAPD_LDAP $MFLAG
44347 _ACEOF
44348
44349 fi
44350
44351 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44352         BUILD_SLAPD=yes
44353         BUILD_LDBM=$ol_enable_ldbm
44354         if test "$ol_enable_ldbm" = mod ; then
44355                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44356                 MFLAG=SLAPD_MOD_DYNAMIC
44357         else
44358                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44359                 MFLAG=SLAPD_MOD_STATIC
44360         fi
44361
44362 cat >>confdefs.h <<_ACEOF
44363 #define SLAPD_LDBM $MFLAG
44364 _ACEOF
44365
44366 fi
44367
44368 if test "$ol_enable_meta" != no ; then
44369         BUILD_SLAPD=yes
44370         BUILD_META=$ol_enable_meta
44371         BUILD_REWRITE=yes
44372         if test "$ol_enable_meta" = mod ; then
44373                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44374                 MFLAG=SLAPD_MOD_DYNAMIC
44375         else
44376                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44377                 MFLAG=SLAPD_MOD_STATIC
44378         fi
44379
44380 cat >>confdefs.h <<_ACEOF
44381 #define SLAPD_META $MFLAG
44382 _ACEOF
44383
44384 fi
44385
44386 if test "$ol_enable_monitor" != no ; then
44387         BUILD_SLAPD=yes
44388         BUILD_MONITOR=$ol_enable_monitor
44389         if test "$ol_enable_monitor" = mod ; then
44390                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44391                 MFLAG=SLAPD_MOD_DYNAMIC
44392         else
44393                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44394                 MFLAG=SLAPD_MOD_STATIC
44395         fi
44396
44397 cat >>confdefs.h <<_ACEOF
44398 #define SLAPD_MONITOR $MFLAG
44399 _ACEOF
44400
44401 fi
44402
44403 if test "$ol_enable_null" != no ; then
44404         BUILD_SLAPD=yes
44405         BUILD_NULL=$ol_enable_null
44406         if test "$ol_enable_null" = mod ; then
44407                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44408                 MFLAG=SLAPD_MOD_DYNAMIC
44409         else
44410                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44411                 MFLAG=SLAPD_MOD_STATIC
44412         fi
44413
44414 cat >>confdefs.h <<_ACEOF
44415 #define SLAPD_NULL $MFLAG
44416 _ACEOF
44417
44418 fi
44419
44420 if test "$ol_enable_passwd" != no ; then
44421         BUILD_SLAPD=yes
44422         BUILD_PASSWD=$ol_enable_passwd
44423         if test "$ol_enable_passwd" = mod ; then
44424                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44425                 MFLAG=SLAPD_MOD_DYNAMIC
44426         else
44427                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44428                 MFLAG=SLAPD_MOD_STATIC
44429         fi
44430
44431 cat >>confdefs.h <<_ACEOF
44432 #define SLAPD_PASSWD $MFLAG
44433 _ACEOF
44434
44435 fi
44436
44437 if test "$ol_link_perl" != no ; then
44438         BUILD_SLAPD=yes
44439         BUILD_PERL=$ol_enable_perl
44440         if test "$ol_enable_perl" = mod ; then
44441                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44442                 MFLAG=SLAPD_MOD_DYNAMIC
44443         else
44444                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44445                 MFLAG=SLAPD_MOD_STATIC
44446         fi
44447
44448 cat >>confdefs.h <<_ACEOF
44449 #define SLAPD_PERL $MFLAG
44450 _ACEOF
44451
44452 fi
44453
44454 if test "$ol_enable_relay" != no ; then
44455         BUILD_SLAPD=yes
44456         BUILD_RELAY=$ol_enable_relay
44457         if test "$ol_enable_relay" = mod ; then
44458                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44459                 MFLAG=SLAPD_MOD_DYNAMIC
44460         else
44461                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44462                 MFLAG=SLAPD_MOD_STATIC
44463         fi
44464
44465 cat >>confdefs.h <<_ACEOF
44466 #define SLAPD_RELAY $MFLAG
44467 _ACEOF
44468
44469 fi
44470
44471 if test "$ol_enable_shell" != no ; then
44472         if test "$ol_link_threads" != no ; then
44473                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44474 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44475         fi
44476         BUILD_SLAPD=yes
44477         BUILD_SHELL=$ol_enable_shell
44478         if test "$ol_enable_shell" = mod ; then
44479                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44480                 MFLAG=SLAPD_MOD_DYNAMIC
44481         else
44482                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44483                 MFLAG=SLAPD_MOD_STATIC
44484         fi
44485
44486 cat >>confdefs.h <<_ACEOF
44487 #define SLAPD_SHELL $MFLAG
44488 _ACEOF
44489
44490 fi
44491
44492 if test "$ol_link_sql" != no ; then
44493         BUILD_SLAPD=yes
44494         BUILD_SQL=$ol_enable_sql
44495         if test "$ol_enable_sql" = mod; then
44496                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44497                 MFLAG=SLAPD_MOD_DYNAMIC
44498         else
44499                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44500                 MFLAG=SLAPD_MOD_STATIC
44501         fi
44502
44503 cat >>confdefs.h <<_ACEOF
44504 #define SLAPD_SQL $MFLAG
44505 _ACEOF
44506
44507 fi
44508
44509 if test "$ol_enable_accesslog" != no ; then
44510         BUILD_ACCESSLOG=$ol_enable_accesslog
44511         if test "$ol_enable_accesslog" = mod ; then
44512                 MFLAG=SLAPD_MOD_DYNAMIC
44513                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44514         else
44515                 MFLAG=SLAPD_MOD_STATIC
44516                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44517         fi
44518
44519 cat >>confdefs.h <<_ACEOF
44520 #define SLAPD_OVER_ACCESSLOG $MFLAG
44521 _ACEOF
44522
44523 fi
44524
44525 if test "$ol_enable_dds" != no ; then
44526         BUILD_DDS=$ol_enable_dds
44527         if test "$ol_enable_dds" = mod ; then
44528                 MFLAG=SLAPD_MOD_DYNAMIC
44529                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44530         else
44531                 MFLAG=SLAPD_MOD_STATIC
44532                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44533         fi
44534
44535 cat >>confdefs.h <<_ACEOF
44536 #define SLAPD_OVER_DDS $MFLAG
44537 _ACEOF
44538
44539 fi
44540
44541 if test "$ol_enable_denyop" != no ; then
44542         BUILD_DENYOP=$ol_enable_denyop
44543         if test "$ol_enable_denyop" = mod ; then
44544                 MFLAG=SLAPD_MOD_DYNAMIC
44545                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44546         else
44547                 MFLAG=SLAPD_MOD_STATIC
44548                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44549         fi
44550
44551 cat >>confdefs.h <<_ACEOF
44552 #define SLAPD_OVER_DENYOP $MFLAG
44553 _ACEOF
44554
44555 fi
44556
44557 if test "$ol_enable_dyngroup" != no ; then
44558         BUILD_DYNGROUP=$ol_enable_dyngroup
44559         if test "$ol_enable_dyngroup" = mod ; then
44560                 MFLAG=SLAPD_MOD_DYNAMIC
44561                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44562         else
44563                 MFLAG=SLAPD_MOD_STATIC
44564                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44565         fi
44566
44567 cat >>confdefs.h <<_ACEOF
44568 #define SLAPD_OVER_DYNGROUP $MFLAG
44569 _ACEOF
44570
44571 fi
44572
44573 if test "$ol_enable_dynlist" != no ; then
44574         BUILD_DYNLIST=$ol_enable_dynlist
44575         if test "$ol_enable_dynlist" = mod ; then
44576                 MFLAG=SLAPD_MOD_DYNAMIC
44577                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44578         else
44579                 MFLAG=SLAPD_MOD_STATIC
44580                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44581         fi
44582
44583 cat >>confdefs.h <<_ACEOF
44584 #define SLAPD_OVER_DYNLIST $MFLAG
44585 _ACEOF
44586
44587 fi
44588
44589 if test "$ol_enable_lastmod" != no ; then
44590         BUILD_LASTMOD=$ol_enable_lastmod
44591         if test "$ol_enable_lastmod" = mod ; then
44592                 MFLAG=SLAPD_MOD_DYNAMIC
44593                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44594         else
44595                 MFLAG=SLAPD_MOD_STATIC
44596                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44597         fi
44598
44599 cat >>confdefs.h <<_ACEOF
44600 #define SLAPD_OVER_LASTMOD $MFLAG
44601 _ACEOF
44602
44603 fi
44604
44605 if test "$ol_enable_ppolicy" != no ; then
44606         BUILD_PPOLICY=$ol_enable_ppolicy
44607         if test "$ol_enable_ppolicy" = mod ; then
44608                 MFLAG=SLAPD_MOD_DYNAMIC
44609                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44610         else
44611                 MFLAG=SLAPD_MOD_STATIC
44612                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44613         fi
44614
44615 cat >>confdefs.h <<_ACEOF
44616 #define SLAPD_OVER_PPOLICY $MFLAG
44617 _ACEOF
44618
44619 fi
44620
44621 if test "$ol_enable_proxycache" != no ; then
44622         BUILD_PROXYCACHE=$ol_enable_proxycache
44623         if test "$ol_enable_proxycache" = mod ; then
44624                 MFLAG=SLAPD_MOD_DYNAMIC
44625                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44626         else
44627                 MFLAG=SLAPD_MOD_STATIC
44628                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44629         fi
44630
44631 cat >>confdefs.h <<_ACEOF
44632 #define SLAPD_OVER_PROXYCACHE $MFLAG
44633 _ACEOF
44634
44635 fi
44636
44637 if test "$ol_enable_refint" != no ; then
44638         BUILD_REFINT=$ol_enable_refint
44639         if test "$ol_enable_refint" = mod ; then
44640                 MFLAG=SLAPD_MOD_DYNAMIC
44641                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44642         else
44643                 MFLAG=SLAPD_MOD_STATIC
44644                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44645         fi
44646
44647 cat >>confdefs.h <<_ACEOF
44648 #define SLAPD_OVER_REFINT $MFLAG
44649 _ACEOF
44650
44651 fi
44652
44653 if test "$ol_enable_retcode" != no ; then
44654         BUILD_RETCODE=$ol_enable_retcode
44655         if test "$ol_enable_retcode" = mod ; then
44656                 MFLAG=SLAPD_MOD_DYNAMIC
44657                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44658         else
44659                 MFLAG=SLAPD_MOD_STATIC
44660                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44661         fi
44662
44663 cat >>confdefs.h <<_ACEOF
44664 #define SLAPD_OVER_RETCODE $MFLAG
44665 _ACEOF
44666
44667 fi
44668
44669 if test "$ol_enable_rwm" != no ; then
44670         BUILD_REWRITE=yes
44671         BUILD_RWM=$ol_enable_rwm
44672         if test "$ol_enable_rwm" = mod ; then
44673                 MFLAG=SLAPD_MOD_DYNAMIC
44674                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44675         else
44676                 MFLAG=SLAPD_MOD_STATIC
44677                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44678         fi
44679
44680 cat >>confdefs.h <<_ACEOF
44681 #define SLAPD_OVER_RWM $MFLAG
44682 _ACEOF
44683
44684 fi
44685
44686 if test "$ol_enable_syncprov" != no ; then
44687         BUILD_SYNCPROV=$ol_enable_syncprov
44688         if test "$ol_enable_syncprov" = mod ; then
44689                 MFLAG=SLAPD_MOD_DYNAMIC
44690                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44691         else
44692                 MFLAG=SLAPD_MOD_STATIC
44693                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44694         fi
44695
44696 cat >>confdefs.h <<_ACEOF
44697 #define SLAPD_OVER_SYNCPROV $MFLAG
44698 _ACEOF
44699
44700 fi
44701
44702 if test "$ol_enable_translucent" != no ; then
44703         BUILD_TRANSLUCENT=$ol_enable_translucent
44704         if test "$ol_enable_translucent" = mod ; then
44705                 MFLAG=SLAPD_MOD_DYNAMIC
44706                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44707         else
44708                 MFLAG=SLAPD_MOD_STATIC
44709                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44710         fi
44711
44712 cat >>confdefs.h <<_ACEOF
44713 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44714 _ACEOF
44715
44716 fi
44717
44718 if test "$ol_enable_unique" != no ; then
44719         BUILD_UNIQUE=$ol_enable_unique
44720         if test "$ol_enable_unique" = mod ; then
44721                 MFLAG=SLAPD_MOD_DYNAMIC
44722                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44723         else
44724                 MFLAG=SLAPD_MOD_STATIC
44725                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44726         fi
44727
44728 cat >>confdefs.h <<_ACEOF
44729 #define SLAPD_OVER_UNIQUE $MFLAG
44730 _ACEOF
44731
44732 fi
44733
44734 if test "$ol_enable_valsort" != no ; then
44735         BUILD_VALSORT=$ol_enable_valsort
44736         if test "$ol_enable_valsort" = mod ; then
44737                 MFLAG=SLAPD_MOD_DYNAMIC
44738                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44739         else
44740                 MFLAG=SLAPD_MOD_STATIC
44741                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44742         fi
44743
44744 cat >>confdefs.h <<_ACEOF
44745 #define SLAPD_OVER_VALSORT $MFLAG
44746 _ACEOF
44747
44748 fi
44749
44750 if test "$ol_enable_slurpd" != no &&
44751    test "$ol_link_threads" != no &&
44752    test $BUILD_SLAPD = yes ; then
44753         BUILD_SLURPD=yes
44754 fi
44755
44756 if test "$ol_enable_rewrite" != no ; then
44757
44758 cat >>confdefs.h <<\_ACEOF
44759 #define ENABLE_REWRITE 1
44760 _ACEOF
44761
44762         BUILD_REWRITE=yes
44763 fi
44764
44765 if test "$ol_enable_slapi" != no ; then
44766
44767 cat >>confdefs.h <<\_ACEOF
44768 #define ENABLE_SLAPI 1
44769 _ACEOF
44770
44771         BUILD_SLAPI=yes
44772         SLAPD_SLAPI_DEPEND=libslapi.a
44773 fi
44774
44775
44776
44777 if test "$ac_cv_mingw32" = yes ; then
44778         PLAT=NT
44779         SLAPD_MODULES_LDFLAGS=
44780 else
44781         PLAT=UNIX
44782 fi
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
44860
44861
44862
44863
44864
44865
44866 # Check whether --with-xxinstall or --without-xxinstall was given.
44867 if test "${with_xxinstall+set}" = set; then
44868   withval="$with_xxinstall"
44869
44870 fi;
44871
44872
44873                                                                                                                                                                                                                                                                                                                                                                                                                 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"
44874
44875
44876           ac_config_commands="$ac_config_commands default"
44877
44878
44879
44880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44881 # Let make expand exec_prefix.
44882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44883
44884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44886 # trailing colons and then remove the whole line if VPATH becomes empty
44887 # (actually we leave an empty line to preserve line numbers).
44888 if test "x$srcdir" = x.; then
44889   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44890 s/:*\$(srcdir):*/:/;
44891 s/:*\${srcdir}:*/:/;
44892 s/:*@srcdir@:*/:/;
44893 s/^\([^=]*=[     ]*\):*/\1/;
44894 s/:*$//;
44895 s/^[^=]*=[       ]*$//;
44896 }'
44897 fi
44898
44899 DEFS=-DHAVE_CONFIG_H
44900
44901 ac_libobjs=
44902 ac_ltlibobjs=
44903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44904   # 1. Remove the extension, and $U if already installed.
44905   ac_i=`echo "$ac_i" |
44906          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44907   # 2. Add them.
44908   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44909   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44910 done
44911 LIBOBJS=$ac_libobjs
44912
44913 LTLIBOBJS=$ac_ltlibobjs
44914
44915
44916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44917   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44918 Usually this means the macro was only invoked conditionally." >&5
44919 echo "$as_me: error: conditional \"AMDEP\" 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 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44931   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44932 Usually this means the macro was only invoked conditionally." >&5
44933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44934 Usually this means the macro was only invoked conditionally." >&2;}
44935    { (exit 1); exit 1; }; }
44936 fi
44937
44938 : ${CONFIG_STATUS=./config.status}
44939 ac_clean_files_save=$ac_clean_files
44940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44943 cat >$CONFIG_STATUS <<_ACEOF
44944 #! $SHELL
44945 # Generated by $as_me.
44946 # Run this file to recreate the current configuration.
44947 # Compiler output produced by configure, useful for debugging
44948 # configure, is in config.log if it exists.
44949
44950 debug=false
44951 ac_cs_recheck=false
44952 ac_cs_silent=false
44953 SHELL=\${CONFIG_SHELL-$SHELL}
44954 _ACEOF
44955
44956 cat >>$CONFIG_STATUS <<\_ACEOF
44957 ## --------------------- ##
44958 ## M4sh Initialization.  ##
44959 ## --------------------- ##
44960
44961 # Be Bourne compatible
44962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44963   emulate sh
44964   NULLCMD=:
44965   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44966   # is contrary to our usage.  Disable this feature.
44967   alias -g '${1+"$@"}'='"$@"'
44968 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44969   set -o posix
44970 fi
44971 DUALCASE=1; export DUALCASE # for MKS sh
44972
44973 # Support unset when possible.
44974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44975   as_unset=unset
44976 else
44977   as_unset=false
44978 fi
44979
44980
44981 # Work around bugs in pre-3.0 UWIN ksh.
44982 $as_unset ENV MAIL MAILPATH
44983 PS1='$ '
44984 PS2='> '
44985 PS4='+ '
44986
44987 # NLS nuisances.
44988 for as_var in \
44989   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44990   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44991   LC_TELEPHONE LC_TIME
44992 do
44993   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44994     eval $as_var=C; export $as_var
44995   else
44996     $as_unset $as_var
44997   fi
44998 done
44999
45000 # Required to use basename.
45001 if expr a : '\(a\)' >/dev/null 2>&1; then
45002   as_expr=expr
45003 else
45004   as_expr=false
45005 fi
45006
45007 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45008   as_basename=basename
45009 else
45010   as_basename=false
45011 fi
45012
45013
45014 # Name of the executable.
45015 as_me=`$as_basename "$0" ||
45016 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45017          X"$0" : 'X\(//\)$' \| \
45018          X"$0" : 'X\(/\)$' \| \
45019          .     : '\(.\)' 2>/dev/null ||
45020 echo X/"$0" |
45021     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45022           /^X\/\(\/\/\)$/{ s//\1/; q; }
45023           /^X\/\(\/\).*/{ s//\1/; q; }
45024           s/.*/./; q'`
45025
45026
45027 # PATH needs CR, and LINENO needs CR and PATH.
45028 # Avoid depending upon Character Ranges.
45029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45032 as_cr_digits='0123456789'
45033 as_cr_alnum=$as_cr_Letters$as_cr_digits
45034
45035 # The user is always right.
45036 if test "${PATH_SEPARATOR+set}" != set; then
45037   echo "#! /bin/sh" >conf$$.sh
45038   echo  "exit 0"   >>conf$$.sh
45039   chmod +x conf$$.sh
45040   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45041     PATH_SEPARATOR=';'
45042   else
45043     PATH_SEPARATOR=:
45044   fi
45045   rm -f conf$$.sh
45046 fi
45047
45048
45049   as_lineno_1=$LINENO
45050   as_lineno_2=$LINENO
45051   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45052   test "x$as_lineno_1" != "x$as_lineno_2" &&
45053   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
45054   # Find who we are.  Look in the path if we contain no path at all
45055   # relative or not.
45056   case $0 in
45057     *[\\/]* ) as_myself=$0 ;;
45058     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45059 for as_dir in $PATH
45060 do
45061   IFS=$as_save_IFS
45062   test -z "$as_dir" && as_dir=.
45063   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45064 done
45065
45066        ;;
45067   esac
45068   # We did not find ourselves, most probably we were run as `sh COMMAND'
45069   # in which case we are not to be found in the path.
45070   if test "x$as_myself" = x; then
45071     as_myself=$0
45072   fi
45073   if test ! -f "$as_myself"; then
45074     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45075 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45076    { (exit 1); exit 1; }; }
45077   fi
45078   case $CONFIG_SHELL in
45079   '')
45080     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45081 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45082 do
45083   IFS=$as_save_IFS
45084   test -z "$as_dir" && as_dir=.
45085   for as_base in sh bash ksh sh5; do
45086          case $as_dir in
45087          /*)
45088            if ("$as_dir/$as_base" -c '
45089   as_lineno_1=$LINENO
45090   as_lineno_2=$LINENO
45091   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45092   test "x$as_lineno_1" != "x$as_lineno_2" &&
45093   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
45094              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45095              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45096              CONFIG_SHELL=$as_dir/$as_base
45097              export CONFIG_SHELL
45098              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45099            fi;;
45100          esac
45101        done
45102 done
45103 ;;
45104   esac
45105
45106   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45107   # uniformly replaced by the line number.  The first 'sed' inserts a
45108   # line-number line before each line; the second 'sed' does the real
45109   # work.  The second script uses 'N' to pair each line-number line
45110   # with the numbered line, and appends trailing '-' during
45111   # substitution so that $LINENO is not a special case at line end.
45112   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45113   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
45114   sed '=' <$as_myself |
45115     sed '
45116       N
45117       s,$,-,
45118       : loop
45119       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45120       t loop
45121       s,-$,,
45122       s,^['$as_cr_digits']*\n,,
45123     ' >$as_me.lineno &&
45124   chmod +x $as_me.lineno ||
45125     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45126 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45127    { (exit 1); exit 1; }; }
45128
45129   # Don't try to exec as it changes $[0], causing all sort of problems
45130   # (the dirname of $[0] is not the place where we might find the
45131   # original and so on.  Autoconf is especially sensible to this).
45132   . ./$as_me.lineno
45133   # Exit status is that of the last command.
45134   exit
45135 }
45136
45137
45138 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45139   *c*,-n*) ECHO_N= ECHO_C='
45140 ' ECHO_T='      ' ;;
45141   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45142   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
45143 esac
45144
45145 if expr a : '\(a\)' >/dev/null 2>&1; then
45146   as_expr=expr
45147 else
45148   as_expr=false
45149 fi
45150
45151 rm -f conf$$ conf$$.exe conf$$.file
45152 echo >conf$$.file
45153 if ln -s conf$$.file conf$$ 2>/dev/null; then
45154   # We could just check for DJGPP; but this test a) works b) is more generic
45155   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45156   if test -f conf$$.exe; then
45157     # Don't use ln at all; we don't have any links
45158     as_ln_s='cp -p'
45159   else
45160     as_ln_s='ln -s'
45161   fi
45162 elif ln conf$$.file conf$$ 2>/dev/null; then
45163   as_ln_s=ln
45164 else
45165   as_ln_s='cp -p'
45166 fi
45167 rm -f conf$$ conf$$.exe conf$$.file
45168
45169 if mkdir -p . 2>/dev/null; then
45170   as_mkdir_p=:
45171 else
45172   test -d ./-p && rmdir ./-p
45173   as_mkdir_p=false
45174 fi
45175
45176 as_executable_p="test -f"
45177
45178 # Sed expression to map a string onto a valid CPP name.
45179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45180
45181 # Sed expression to map a string onto a valid variable name.
45182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45183
45184
45185 # IFS
45186 # We need space, tab and new line, in precisely that order.
45187 as_nl='
45188 '
45189 IFS="   $as_nl"
45190
45191 # CDPATH.
45192 $as_unset CDPATH
45193
45194 exec 6>&1
45195
45196 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45197 # report actual input values of CONFIG_FILES etc. instead of their
45198 # values after options handling.  Logging --version etc. is OK.
45199 exec 5>>config.log
45200 {
45201   echo
45202   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45203 ## Running $as_me. ##
45204 _ASBOX
45205 } >&5
45206 cat >&5 <<_CSEOF
45207
45208 This file was extended by $as_me, which was
45209 generated by GNU Autoconf 2.59.  Invocation command line was
45210
45211   CONFIG_FILES    = $CONFIG_FILES
45212   CONFIG_HEADERS  = $CONFIG_HEADERS
45213   CONFIG_LINKS    = $CONFIG_LINKS
45214   CONFIG_COMMANDS = $CONFIG_COMMANDS
45215   $ $0 $@
45216
45217 _CSEOF
45218 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45219 echo >&5
45220 _ACEOF
45221
45222 # Files that config.status was made for.
45223 if test -n "$ac_config_files"; then
45224   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45225 fi
45226
45227 if test -n "$ac_config_headers"; then
45228   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45229 fi
45230
45231 if test -n "$ac_config_links"; then
45232   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45233 fi
45234
45235 if test -n "$ac_config_commands"; then
45236   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45237 fi
45238
45239 cat >>$CONFIG_STATUS <<\_ACEOF
45240
45241 ac_cs_usage="\
45242 \`$as_me' instantiates files from templates according to the
45243 current configuration.
45244
45245 Usage: $0 [OPTIONS] [FILE]...
45246
45247   -h, --help       print this help, then exit
45248   -V, --version    print version number, then exit
45249   -q, --quiet      do not print progress messages
45250   -d, --debug      don't remove temporary files
45251       --recheck    update $as_me by reconfiguring in the same conditions
45252   --file=FILE[:TEMPLATE]
45253                    instantiate the configuration file FILE
45254   --header=FILE[:TEMPLATE]
45255                    instantiate the configuration header FILE
45256
45257 Configuration files:
45258 $config_files
45259
45260 Configuration headers:
45261 $config_headers
45262
45263 Configuration commands:
45264 $config_commands
45265
45266 Report bugs to <bug-autoconf@gnu.org>."
45267 _ACEOF
45268
45269 cat >>$CONFIG_STATUS <<_ACEOF
45270 ac_cs_version="\\
45271 config.status
45272 configured by $0, generated by GNU Autoconf 2.59,
45273   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45274
45275 Copyright (C) 2003 Free Software Foundation, Inc.
45276 This config.status script is free software; the Free Software Foundation
45277 gives unlimited permission to copy, distribute and modify it."
45278 srcdir=$srcdir
45279 INSTALL="$INSTALL"
45280 _ACEOF
45281
45282 cat >>$CONFIG_STATUS <<\_ACEOF
45283 # If no file are specified by the user, then we need to provide default
45284 # value.  By we need to know if files were specified by the user.
45285 ac_need_defaults=:
45286 while test $# != 0
45287 do
45288   case $1 in
45289   --*=*)
45290     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45291     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45292     ac_shift=:
45293     ;;
45294   -*)
45295     ac_option=$1
45296     ac_optarg=$2
45297     ac_shift=shift
45298     ;;
45299   *) # This is not an option, so the user has probably given explicit
45300      # arguments.
45301      ac_option=$1
45302      ac_need_defaults=false;;
45303   esac
45304
45305   case $ac_option in
45306   # Handling of the options.
45307 _ACEOF
45308 cat >>$CONFIG_STATUS <<\_ACEOF
45309   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45310     ac_cs_recheck=: ;;
45311   --version | --vers* | -V )
45312     echo "$ac_cs_version"; exit 0 ;;
45313   --he | --h)
45314     # Conflict between --help and --header
45315     { { echo "$as_me:$LINENO: error: ambiguous option: $1
45316 Try \`$0 --help' for more information." >&5
45317 echo "$as_me: error: ambiguous option: $1
45318 Try \`$0 --help' for more information." >&2;}
45319    { (exit 1); exit 1; }; };;
45320   --help | --hel | -h )
45321     echo "$ac_cs_usage"; exit 0 ;;
45322   --debug | --d* | -d )
45323     debug=: ;;
45324   --file | --fil | --fi | --f )
45325     $ac_shift
45326     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45327     ac_need_defaults=false;;
45328   --header | --heade | --head | --hea )
45329     $ac_shift
45330     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45331     ac_need_defaults=false;;
45332   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45333   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45334     ac_cs_silent=: ;;
45335
45336   # This is an error.
45337   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45338 Try \`$0 --help' for more information." >&5
45339 echo "$as_me: error: unrecognized option: $1
45340 Try \`$0 --help' for more information." >&2;}
45341    { (exit 1); exit 1; }; } ;;
45342
45343   *) ac_config_targets="$ac_config_targets $1" ;;
45344
45345   esac
45346   shift
45347 done
45348
45349 ac_configure_extra_args=
45350
45351 if $ac_cs_silent; then
45352   exec 6>/dev/null
45353   ac_configure_extra_args="$ac_configure_extra_args --silent"
45354 fi
45355
45356 _ACEOF
45357 cat >>$CONFIG_STATUS <<_ACEOF
45358 if \$ac_cs_recheck; then
45359   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45360   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45361 fi
45362
45363 _ACEOF
45364
45365 cat >>$CONFIG_STATUS <<_ACEOF
45366 #
45367 # INIT-COMMANDS section.
45368 #
45369
45370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45371
45372 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45373 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45374
45375
45376 _ACEOF
45377
45378
45379
45380 cat >>$CONFIG_STATUS <<\_ACEOF
45381 for ac_config_target in $ac_config_targets
45382 do
45383   case "$ac_config_target" in
45384   # Handling of arguments.
45385   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45386   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45387   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45388   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45389   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45390   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45391   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45392   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45393   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45394   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45395   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45396   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45397   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45398   "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" ;;
45399   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45400   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45401   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45402   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45403   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45404   "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" ;;
45405   "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" ;;
45406   "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" ;;
45407   "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" ;;
45408   "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" ;;
45409   "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" ;;
45410   "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" ;;
45411   "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" ;;
45412   "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" ;;
45413   "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" ;;
45414   "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" ;;
45415   "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" ;;
45416   "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" ;;
45417   "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" ;;
45418   "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" ;;
45419   "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" ;;
45420   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45421   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45422   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45423   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45424   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45425   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45426   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45427   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45428   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45429   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45430   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45431 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45432    { (exit 1); exit 1; }; };;
45433   esac
45434 done
45435
45436 # If the user did not use the arguments to specify the items to instantiate,
45437 # then the envvar interface is used.  Set only those that are not.
45438 # We use the long form for the default assignment because of an extremely
45439 # bizarre bug on SunOS 4.1.3.
45440 if $ac_need_defaults; then
45441   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45442   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45443   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45444 fi
45445
45446 # Have a temporary directory for convenience.  Make it in the build tree
45447 # simply because there is no reason to put it here, and in addition,
45448 # creating and moving files from /tmp can sometimes cause problems.
45449 # Create a temporary directory, and hook for its removal unless debugging.
45450 $debug ||
45451 {
45452   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45453   trap '{ (exit 1); exit 1; }' 1 2 13 15
45454 }
45455
45456 # Create a (secure) tmp directory for tmp files.
45457
45458 {
45459   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45460   test -n "$tmp" && test -d "$tmp"
45461 }  ||
45462 {
45463   tmp=./confstat$$-$RANDOM
45464   (umask 077 && mkdir $tmp)
45465 } ||
45466 {
45467    echo "$me: cannot create a temporary directory in ." >&2
45468    { (exit 1); exit 1; }
45469 }
45470
45471 _ACEOF
45472
45473 cat >>$CONFIG_STATUS <<_ACEOF
45474
45475 #
45476 # CONFIG_FILES section.
45477 #
45478
45479 # No need to generate the scripts if there are no CONFIG_FILES.
45480 # This happens for instance when ./config.status config.h
45481 if test -n "\$CONFIG_FILES"; then
45482   # Protect against being on the right side of a sed subst in config.status.
45483   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45484    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45485 s,@SHELL@,$SHELL,;t t
45486 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45487 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45488 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45489 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45490 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45491 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45492 s,@exec_prefix@,$exec_prefix,;t t
45493 s,@prefix@,$prefix,;t t
45494 s,@program_transform_name@,$program_transform_name,;t t
45495 s,@bindir@,$bindir,;t t
45496 s,@sbindir@,$sbindir,;t t
45497 s,@libexecdir@,$libexecdir,;t t
45498 s,@datadir@,$datadir,;t t
45499 s,@sysconfdir@,$sysconfdir,;t t
45500 s,@sharedstatedir@,$sharedstatedir,;t t
45501 s,@localstatedir@,$localstatedir,;t t
45502 s,@libdir@,$libdir,;t t
45503 s,@includedir@,$includedir,;t t
45504 s,@oldincludedir@,$oldincludedir,;t t
45505 s,@infodir@,$infodir,;t t
45506 s,@mandir@,$mandir,;t t
45507 s,@build_alias@,$build_alias,;t t
45508 s,@host_alias@,$host_alias,;t t
45509 s,@target_alias@,$target_alias,;t t
45510 s,@DEFS@,$DEFS,;t t
45511 s,@ECHO_C@,$ECHO_C,;t t
45512 s,@ECHO_N@,$ECHO_N,;t t
45513 s,@ECHO_T@,$ECHO_T,;t t
45514 s,@LIBS@,$LIBS,;t t
45515 s,@build@,$build,;t t
45516 s,@build_cpu@,$build_cpu,;t t
45517 s,@build_vendor@,$build_vendor,;t t
45518 s,@build_os@,$build_os,;t t
45519 s,@host@,$host,;t t
45520 s,@host_cpu@,$host_cpu,;t t
45521 s,@host_vendor@,$host_vendor,;t t
45522 s,@host_os@,$host_os,;t t
45523 s,@target@,$target,;t t
45524 s,@target_cpu@,$target_cpu,;t t
45525 s,@target_vendor@,$target_vendor,;t t
45526 s,@target_os@,$target_os,;t t
45527 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45528 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45529 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45530 s,@CYGPATH_W@,$CYGPATH_W,;t t
45531 s,@PACKAGE@,$PACKAGE,;t t
45532 s,@VERSION@,$VERSION,;t t
45533 s,@ACLOCAL@,$ACLOCAL,;t t
45534 s,@AUTOCONF@,$AUTOCONF,;t t
45535 s,@AUTOMAKE@,$AUTOMAKE,;t t
45536 s,@AUTOHEADER@,$AUTOHEADER,;t t
45537 s,@MAKEINFO@,$MAKEINFO,;t t
45538 s,@install_sh@,$install_sh,;t t
45539 s,@STRIP@,$STRIP,;t t
45540 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45541 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45542 s,@mkdir_p@,$mkdir_p,;t t
45543 s,@AWK@,$AWK,;t t
45544 s,@SET_MAKE@,$SET_MAKE,;t t
45545 s,@am__leading_dot@,$am__leading_dot,;t t
45546 s,@AMTAR@,$AMTAR,;t t
45547 s,@am__tar@,$am__tar,;t t
45548 s,@am__untar@,$am__untar,;t t
45549 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45550 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45551 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45552 s,@top_builddir@,$top_builddir,;t t
45553 s,@ldap_subdir@,$ldap_subdir,;t t
45554 s,@CC@,$CC,;t t
45555 s,@AR@,$AR,;t t
45556 s,@CFLAGS@,$CFLAGS,;t t
45557 s,@LDFLAGS@,$LDFLAGS,;t t
45558 s,@CPPFLAGS@,$CPPFLAGS,;t t
45559 s,@ac_ct_CC@,$ac_ct_CC,;t t
45560 s,@EXEEXT@,$EXEEXT,;t t
45561 s,@OBJEXT@,$OBJEXT,;t t
45562 s,@DEPDIR@,$DEPDIR,;t t
45563 s,@am__include@,$am__include,;t t
45564 s,@am__quote@,$am__quote,;t t
45565 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45566 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45567 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45568 s,@CCDEPMODE@,$CCDEPMODE,;t t
45569 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45570 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45571 s,@EGREP@,$EGREP,;t t
45572 s,@LN_S@,$LN_S,;t t
45573 s,@ECHO@,$ECHO,;t t
45574 s,@ac_ct_AR@,$ac_ct_AR,;t t
45575 s,@RANLIB@,$RANLIB,;t t
45576 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45577 s,@DLLTOOL@,$DLLTOOL,;t t
45578 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45579 s,@AS@,$AS,;t t
45580 s,@ac_ct_AS@,$ac_ct_AS,;t t
45581 s,@OBJDUMP@,$OBJDUMP,;t t
45582 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45583 s,@CPP@,$CPP,;t t
45584 s,@LIBTOOL@,$LIBTOOL,;t t
45585 s,@PERLBIN@,$PERLBIN,;t t
45586 s,@OL_MKDEP@,$OL_MKDEP,;t t
45587 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45588 s,@LTSTATIC@,$LTSTATIC,;t t
45589 s,@LIBOBJS@,$LIBOBJS,;t t
45590 s,@LIBSRCS@,$LIBSRCS,;t t
45591 s,@PLAT@,$PLAT,;t t
45592 s,@WITH_SASL@,$WITH_SASL,;t t
45593 s,@WITH_TLS@,$WITH_TLS,;t t
45594 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45595 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45596 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45597 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45598 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45599 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45600 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45601 s,@BUILD_BDB@,$BUILD_BDB,;t t
45602 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45603 s,@BUILD_HDB@,$BUILD_HDB,;t t
45604 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45605 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45606 s,@BUILD_META@,$BUILD_META,;t t
45607 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45608 s,@BUILD_NULL@,$BUILD_NULL,;t t
45609 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45610 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45611 s,@BUILD_PERL@,$BUILD_PERL,;t t
45612 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45613 s,@BUILD_SQL@,$BUILD_SQL,;t t
45614 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45615 s,@BUILD_DDS@,$BUILD_DDS,;t t
45616 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45617 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45618 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45619 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45620 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45621 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45622 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45623 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45624 s,@BUILD_RWM@,$BUILD_RWM,;t t
45625 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45626 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45627 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45628 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45629 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45630 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45631 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45632 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45633 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45634 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45635 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45636 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45637 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45638 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45639 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45640 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45641 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45642 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45643 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45644 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45645 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45646 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45647 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45648 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45649 s,@SASL_LIBS@,$SASL_LIBS,;t t
45650 s,@TLS_LIBS@,$TLS_LIBS,;t t
45651 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45652 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45653 s,@LIBSLAPI@,$LIBSLAPI,;t t
45654 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45655 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45656 s,@ICU_LIBS@,$ICU_LIBS,;t t
45657 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45658 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45659 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45660 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45661 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45662 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45663 CEOF
45664
45665 _ACEOF
45666
45667   cat >>$CONFIG_STATUS <<\_ACEOF
45668   # Split the substitutions into bite-sized pieces for seds with
45669   # small command number limits, like on Digital OSF/1 and HP-UX.
45670   ac_max_sed_lines=48
45671   ac_sed_frag=1 # Number of current file.
45672   ac_beg=1 # First line for current file.
45673   ac_end=$ac_max_sed_lines # Line after last line for current file.
45674   ac_more_lines=:
45675   ac_sed_cmds=
45676   while $ac_more_lines; do
45677     if test $ac_beg -gt 1; then
45678       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45679     else
45680       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45681     fi
45682     if test ! -s $tmp/subs.frag; then
45683       ac_more_lines=false
45684     else
45685       # The purpose of the label and of the branching condition is to
45686       # speed up the sed processing (if there are no `@' at all, there
45687       # is no need to browse any of the substitutions).
45688       # These are the two extra sed commands mentioned above.
45689       (echo ':t
45690   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45691       if test -z "$ac_sed_cmds"; then
45692         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45693       else
45694         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45695       fi
45696       ac_sed_frag=`expr $ac_sed_frag + 1`
45697       ac_beg=$ac_end
45698       ac_end=`expr $ac_end + $ac_max_sed_lines`
45699     fi
45700   done
45701   if test -z "$ac_sed_cmds"; then
45702     ac_sed_cmds=cat
45703   fi
45704 fi # test -n "$CONFIG_FILES"
45705
45706 _ACEOF
45707 cat >>$CONFIG_STATUS <<\_ACEOF
45708 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45709   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45710   case $ac_file in
45711   - | *:- | *:-:* ) # input from stdin
45712         cat >$tmp/stdin
45713         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45714         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45715   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45716         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45717   * )   ac_file_in=$ac_file.in ;;
45718   esac
45719
45720   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45721   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45723          X"$ac_file" : 'X\(//\)[^/]' \| \
45724          X"$ac_file" : 'X\(//\)$' \| \
45725          X"$ac_file" : 'X\(/\)' \| \
45726          .     : '\(.\)' 2>/dev/null ||
45727 echo X"$ac_file" |
45728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45729           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45730           /^X\(\/\/\)$/{ s//\1/; q; }
45731           /^X\(\/\).*/{ s//\1/; q; }
45732           s/.*/./; q'`
45733   { if $as_mkdir_p; then
45734     mkdir -p "$ac_dir"
45735   else
45736     as_dir="$ac_dir"
45737     as_dirs=
45738     while test ! -d "$as_dir"; do
45739       as_dirs="$as_dir $as_dirs"
45740       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45742          X"$as_dir" : 'X\(//\)[^/]' \| \
45743          X"$as_dir" : 'X\(//\)$' \| \
45744          X"$as_dir" : 'X\(/\)' \| \
45745          .     : '\(.\)' 2>/dev/null ||
45746 echo X"$as_dir" |
45747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45748           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45749           /^X\(\/\/\)$/{ s//\1/; q; }
45750           /^X\(\/\).*/{ s//\1/; q; }
45751           s/.*/./; q'`
45752     done
45753     test ! -n "$as_dirs" || mkdir $as_dirs
45754   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45756    { (exit 1); exit 1; }; }; }
45757
45758   ac_builddir=.
45759
45760 if test "$ac_dir" != .; then
45761   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45762   # A "../" for each directory in $ac_dir_suffix.
45763   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45764 else
45765   ac_dir_suffix= ac_top_builddir=
45766 fi
45767
45768 case $srcdir in
45769   .)  # No --srcdir option.  We are building in place.
45770     ac_srcdir=.
45771     if test -z "$ac_top_builddir"; then
45772        ac_top_srcdir=.
45773     else
45774        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45775     fi ;;
45776   [\\/]* | ?:[\\/]* )  # Absolute path.
45777     ac_srcdir=$srcdir$ac_dir_suffix;
45778     ac_top_srcdir=$srcdir ;;
45779   *) # Relative path.
45780     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45781     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45782 esac
45783
45784 # Do not use `cd foo && pwd` to compute absolute paths, because
45785 # the directories may not exist.
45786 case `pwd` in
45787 .) ac_abs_builddir="$ac_dir";;
45788 *)
45789   case "$ac_dir" in
45790   .) ac_abs_builddir=`pwd`;;
45791   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45792   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45793   esac;;
45794 esac
45795 case $ac_abs_builddir in
45796 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45797 *)
45798   case ${ac_top_builddir}. in
45799   .) ac_abs_top_builddir=$ac_abs_builddir;;
45800   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45801   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45802   esac;;
45803 esac
45804 case $ac_abs_builddir in
45805 .) ac_abs_srcdir=$ac_srcdir;;
45806 *)
45807   case $ac_srcdir in
45808   .) ac_abs_srcdir=$ac_abs_builddir;;
45809   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45810   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45811   esac;;
45812 esac
45813 case $ac_abs_builddir in
45814 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45815 *)
45816   case $ac_top_srcdir in
45817   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45818   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45819   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45820   esac;;
45821 esac
45822
45823
45824   case $INSTALL in
45825   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45826   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45827   esac
45828
45829   if test x"$ac_file" != x-; then
45830     { echo "$as_me:$LINENO: creating $ac_file" >&5
45831 echo "$as_me: creating $ac_file" >&6;}
45832     rm -f "$ac_file"
45833   fi
45834   # Let's still pretend it is `configure' which instantiates (i.e., don't
45835   # use $as_me), people would be surprised to read:
45836   #    /* config.h.  Generated by config.status.  */
45837   if test x"$ac_file" = x-; then
45838     configure_input=
45839   else
45840     configure_input="$ac_file.  "
45841   fi
45842   configure_input=$configure_input"Generated from `echo $ac_file_in |
45843                                      sed 's,.*/,,'` by configure."
45844
45845   # First look for the input files in the build tree, otherwise in the
45846   # src tree.
45847   ac_file_inputs=`IFS=:
45848     for f in $ac_file_in; do
45849       case $f in
45850       -) echo $tmp/stdin ;;
45851       [\\/$]*)
45852          # Absolute (can't be DOS-style, as IFS=:)
45853          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45854 echo "$as_me: error: cannot find input file: $f" >&2;}
45855    { (exit 1); exit 1; }; }
45856          echo "$f";;
45857       *) # Relative
45858          if test -f "$f"; then
45859            # Build tree
45860            echo "$f"
45861          elif test -f "$srcdir/$f"; then
45862            # Source tree
45863            echo "$srcdir/$f"
45864          else
45865            # /dev/null tree
45866            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45867 echo "$as_me: error: cannot find input file: $f" >&2;}
45868    { (exit 1); exit 1; }; }
45869          fi;;
45870       esac
45871     done` || { (exit 1); exit 1; }
45872 _ACEOF
45873 cat >>$CONFIG_STATUS <<_ACEOF
45874   sed "$ac_vpsub
45875 $extrasub
45876 _ACEOF
45877 cat >>$CONFIG_STATUS <<\_ACEOF
45878 :t
45879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45880 s,@configure_input@,$configure_input,;t t
45881 s,@srcdir@,$ac_srcdir,;t t
45882 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45883 s,@top_srcdir@,$ac_top_srcdir,;t t
45884 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45885 s,@builddir@,$ac_builddir,;t t
45886 s,@abs_builddir@,$ac_abs_builddir,;t t
45887 s,@top_builddir@,$ac_top_builddir,;t t
45888 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45889 s,@INSTALL@,$ac_INSTALL,;t t
45890 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45891   rm -f $tmp/stdin
45892   if test x"$ac_file" != x-; then
45893     mv $tmp/out $ac_file
45894   else
45895     cat $tmp/out
45896     rm -f $tmp/out
45897   fi
45898
45899 done
45900 _ACEOF
45901 cat >>$CONFIG_STATUS <<\_ACEOF
45902
45903 #
45904 # CONFIG_HEADER section.
45905 #
45906
45907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45909 #
45910 # ac_d sets the value in "#define NAME VALUE" lines.
45911 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45912 ac_dB='[         ].*$,\1#\2'
45913 ac_dC=' '
45914 ac_dD=',;t'
45915 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45916 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45917 ac_uB='$,\1#\2define\3'
45918 ac_uC=' '
45919 ac_uD=',;t'
45920
45921 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45922   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45923   case $ac_file in
45924   - | *:- | *:-:* ) # input from stdin
45925         cat >$tmp/stdin
45926         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45927         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45928   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45929         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45930   * )   ac_file_in=$ac_file.in ;;
45931   esac
45932
45933   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45934 echo "$as_me: creating $ac_file" >&6;}
45935
45936   # First look for the input files in the build tree, otherwise in the
45937   # src tree.
45938   ac_file_inputs=`IFS=:
45939     for f in $ac_file_in; do
45940       case $f in
45941       -) echo $tmp/stdin ;;
45942       [\\/$]*)
45943          # Absolute (can't be DOS-style, as IFS=:)
45944          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45945 echo "$as_me: error: cannot find input file: $f" >&2;}
45946    { (exit 1); exit 1; }; }
45947          # Do quote $f, to prevent DOS paths from being IFS'd.
45948          echo "$f";;
45949       *) # Relative
45950          if test -f "$f"; then
45951            # Build tree
45952            echo "$f"
45953          elif test -f "$srcdir/$f"; then
45954            # Source tree
45955            echo "$srcdir/$f"
45956          else
45957            # /dev/null tree
45958            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45959 echo "$as_me: error: cannot find input file: $f" >&2;}
45960    { (exit 1); exit 1; }; }
45961          fi;;
45962       esac
45963     done` || { (exit 1); exit 1; }
45964   # Remove the trailing spaces.
45965   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45966
45967 _ACEOF
45968
45969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45970 # `conftest.undefs', that substitutes the proper values into
45971 # config.h.in to produce config.h.  The first handles `#define'
45972 # templates, and the second `#undef' templates.
45973 # And first: Protect against being on the right side of a sed subst in
45974 # config.status.  Protect against being in an unquoted here document
45975 # in config.status.
45976 rm -f conftest.defines conftest.undefs
45977 # Using a here document instead of a string reduces the quoting nightmare.
45978 # Putting comments in sed scripts is not portable.
45979 #
45980 # `end' is used to avoid that the second main sed command (meant for
45981 # 0-ary CPP macros) applies to n-ary macro definitions.
45982 # See the Autoconf documentation for `clear'.
45983 cat >confdef2sed.sed <<\_ACEOF
45984 s/[\\&,]/\\&/g
45985 s,[\\$`],\\&,g
45986 t clear
45987 : clear
45988 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45989 t end
45990 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45991 : end
45992 _ACEOF
45993 # If some macros were called several times there might be several times
45994 # the same #defines, which is useless.  Nevertheless, we may not want to
45995 # sort them, since we want the *last* AC-DEFINE to be honored.
45996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45998 rm -f confdef2sed.sed
45999
46000 # This sed command replaces #undef with comments.  This is necessary, for
46001 # example, in the case of _POSIX_SOURCE, which is predefined and required
46002 # on some systems where configure will not decide to define it.
46003 cat >>conftest.undefs <<\_ACEOF
46004 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46005 _ACEOF
46006
46007 # Break up conftest.defines because some shells have a limit on the size
46008 # of here documents, and old seds have small limits too (100 cmds).
46009 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46010 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46011 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46012 echo '  :' >>$CONFIG_STATUS
46013 rm -f conftest.tail
46014 while grep . conftest.defines >/dev/null
46015 do
46016   # Write a limited-size here document to $tmp/defines.sed.
46017   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46018   # Speed up: don't consider the non `#define' lines.
46019   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
46020   # Work around the forget-to-reset-the-flag bug.
46021   echo 't clr' >>$CONFIG_STATUS
46022   echo ': clr' >>$CONFIG_STATUS
46023   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46024   echo 'CEOF
46025   sed -f $tmp/defines.sed $tmp/in >$tmp/out
46026   rm -f $tmp/in
46027   mv $tmp/out $tmp/in
46028 ' >>$CONFIG_STATUS
46029   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46030   rm -f conftest.defines
46031   mv conftest.tail conftest.defines
46032 done
46033 rm -f conftest.defines
46034 echo '  fi # grep' >>$CONFIG_STATUS
46035 echo >>$CONFIG_STATUS
46036
46037 # Break up conftest.undefs because some shells have a limit on the size
46038 # of here documents, and old seds have small limits too (100 cmds).
46039 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
46040 rm -f conftest.tail
46041 while grep . conftest.undefs >/dev/null
46042 do
46043   # Write a limited-size here document to $tmp/undefs.sed.
46044   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46045   # Speed up: don't consider the non `#undef'
46046   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
46047   # Work around the forget-to-reset-the-flag bug.
46048   echo 't clr' >>$CONFIG_STATUS
46049   echo ': clr' >>$CONFIG_STATUS
46050   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46051   echo 'CEOF
46052   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46053   rm -f $tmp/in
46054   mv $tmp/out $tmp/in
46055 ' >>$CONFIG_STATUS
46056   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46057   rm -f conftest.undefs
46058   mv conftest.tail conftest.undefs
46059 done
46060 rm -f conftest.undefs
46061
46062 cat >>$CONFIG_STATUS <<\_ACEOF
46063   # Let's still pretend it is `configure' which instantiates (i.e., don't
46064   # use $as_me), people would be surprised to read:
46065   #    /* config.h.  Generated by config.status.  */
46066   if test x"$ac_file" = x-; then
46067     echo "/* Generated by configure.  */" >$tmp/config.h
46068   else
46069     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
46070   fi
46071   cat $tmp/in >>$tmp/config.h
46072   rm -f $tmp/in
46073   if test x"$ac_file" != x-; then
46074     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46075       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46076 echo "$as_me: $ac_file is unchanged" >&6;}
46077     else
46078       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46080          X"$ac_file" : 'X\(//\)[^/]' \| \
46081          X"$ac_file" : 'X\(//\)$' \| \
46082          X"$ac_file" : 'X\(/\)' \| \
46083          .     : '\(.\)' 2>/dev/null ||
46084 echo X"$ac_file" |
46085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46087           /^X\(\/\/\)$/{ s//\1/; q; }
46088           /^X\(\/\).*/{ s//\1/; q; }
46089           s/.*/./; q'`
46090       { if $as_mkdir_p; then
46091     mkdir -p "$ac_dir"
46092   else
46093     as_dir="$ac_dir"
46094     as_dirs=
46095     while test ! -d "$as_dir"; do
46096       as_dirs="$as_dir $as_dirs"
46097       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46099          X"$as_dir" : 'X\(//\)[^/]' \| \
46100          X"$as_dir" : 'X\(//\)$' \| \
46101          X"$as_dir" : 'X\(/\)' \| \
46102          .     : '\(.\)' 2>/dev/null ||
46103 echo X"$as_dir" |
46104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46106           /^X\(\/\/\)$/{ s//\1/; q; }
46107           /^X\(\/\).*/{ s//\1/; q; }
46108           s/.*/./; q'`
46109     done
46110     test ! -n "$as_dirs" || mkdir $as_dirs
46111   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46113    { (exit 1); exit 1; }; }; }
46114
46115       rm -f $ac_file
46116       mv $tmp/config.h $ac_file
46117     fi
46118   else
46119     cat $tmp/config.h
46120     rm -f $tmp/config.h
46121   fi
46122 # Compute $ac_file's index in $config_headers.
46123 _am_stamp_count=1
46124 for _am_header in $config_headers :; do
46125   case $_am_header in
46126     $ac_file | $ac_file:* )
46127       break ;;
46128     * )
46129       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46130   esac
46131 done
46132 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46133 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46134          X$ac_file : 'X\(//\)[^/]' \| \
46135          X$ac_file : 'X\(//\)$' \| \
46136          X$ac_file : 'X\(/\)' \| \
46137          .     : '\(.\)' 2>/dev/null ||
46138 echo X$ac_file |
46139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46140           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46141           /^X\(\/\/\)$/{ s//\1/; q; }
46142           /^X\(\/\).*/{ s//\1/; q; }
46143           s/.*/./; q'`/stamp-h$_am_stamp_count
46144 done
46145 _ACEOF
46146 cat >>$CONFIG_STATUS <<\_ACEOF
46147
46148 #
46149 # CONFIG_COMMANDS section.
46150 #
46151 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46152   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46153   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46154   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46155 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46156          X"$ac_dest" : 'X\(//\)[^/]' \| \
46157          X"$ac_dest" : 'X\(//\)$' \| \
46158          X"$ac_dest" : 'X\(/\)' \| \
46159          .     : '\(.\)' 2>/dev/null ||
46160 echo X"$ac_dest" |
46161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46163           /^X\(\/\/\)$/{ s//\1/; q; }
46164           /^X\(\/\).*/{ s//\1/; q; }
46165           s/.*/./; q'`
46166   { if $as_mkdir_p; then
46167     mkdir -p "$ac_dir"
46168   else
46169     as_dir="$ac_dir"
46170     as_dirs=
46171     while test ! -d "$as_dir"; do
46172       as_dirs="$as_dir $as_dirs"
46173       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46174 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46175          X"$as_dir" : 'X\(//\)[^/]' \| \
46176          X"$as_dir" : 'X\(//\)$' \| \
46177          X"$as_dir" : 'X\(/\)' \| \
46178          .     : '\(.\)' 2>/dev/null ||
46179 echo X"$as_dir" |
46180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46181           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46182           /^X\(\/\/\)$/{ s//\1/; q; }
46183           /^X\(\/\).*/{ s//\1/; q; }
46184           s/.*/./; q'`
46185     done
46186     test ! -n "$as_dirs" || mkdir $as_dirs
46187   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46188 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46189    { (exit 1); exit 1; }; }; }
46190
46191   ac_builddir=.
46192
46193 if test "$ac_dir" != .; then
46194   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46195   # A "../" for each directory in $ac_dir_suffix.
46196   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46197 else
46198   ac_dir_suffix= ac_top_builddir=
46199 fi
46200
46201 case $srcdir in
46202   .)  # No --srcdir option.  We are building in place.
46203     ac_srcdir=.
46204     if test -z "$ac_top_builddir"; then
46205        ac_top_srcdir=.
46206     else
46207        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46208     fi ;;
46209   [\\/]* | ?:[\\/]* )  # Absolute path.
46210     ac_srcdir=$srcdir$ac_dir_suffix;
46211     ac_top_srcdir=$srcdir ;;
46212   *) # Relative path.
46213     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46214     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46215 esac
46216
46217 # Do not use `cd foo && pwd` to compute absolute paths, because
46218 # the directories may not exist.
46219 case `pwd` in
46220 .) ac_abs_builddir="$ac_dir";;
46221 *)
46222   case "$ac_dir" in
46223   .) ac_abs_builddir=`pwd`;;
46224   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46225   *) ac_abs_builddir=`pwd`/"$ac_dir";;
46226   esac;;
46227 esac
46228 case $ac_abs_builddir in
46229 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46230 *)
46231   case ${ac_top_builddir}. in
46232   .) ac_abs_top_builddir=$ac_abs_builddir;;
46233   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46234   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46235   esac;;
46236 esac
46237 case $ac_abs_builddir in
46238 .) ac_abs_srcdir=$ac_srcdir;;
46239 *)
46240   case $ac_srcdir in
46241   .) ac_abs_srcdir=$ac_abs_builddir;;
46242   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46243   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46244   esac;;
46245 esac
46246 case $ac_abs_builddir in
46247 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46248 *)
46249   case $ac_top_srcdir in
46250   .) ac_abs_top_srcdir=$ac_abs_builddir;;
46251   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46252   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46253   esac;;
46254 esac
46255
46256
46257   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46258 echo "$as_me: executing $ac_dest commands" >&6;}
46259   case $ac_dest in
46260     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46261   # Strip MF so we end up with the name of the file.
46262   mf=`echo "$mf" | sed -e 's/:.*$//'`
46263   # Check whether this is an Automake generated Makefile or not.
46264   # We used to match only the files named `Makefile.in', but
46265   # some people rename them; so instead we look at the file content.
46266   # Grep'ing the first line is not enough: some people post-process
46267   # each Makefile.in and add a new line on top of each file to say so.
46268   # So let's grep whole file.
46269   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46270     dirpart=`(dirname "$mf") 2>/dev/null ||
46271 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46272          X"$mf" : 'X\(//\)[^/]' \| \
46273          X"$mf" : 'X\(//\)$' \| \
46274          X"$mf" : 'X\(/\)' \| \
46275          .     : '\(.\)' 2>/dev/null ||
46276 echo X"$mf" |
46277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46278           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46279           /^X\(\/\/\)$/{ s//\1/; q; }
46280           /^X\(\/\).*/{ s//\1/; q; }
46281           s/.*/./; q'`
46282   else
46283     continue
46284   fi
46285   # Extract the definition of DEPDIR, am__include, and am__quote
46286   # from the Makefile without running `make'.
46287   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46288   test -z "$DEPDIR" && continue
46289   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46290   test -z "am__include" && continue
46291   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46292   # When using ansi2knr, U may be empty or an underscore; expand it
46293   U=`sed -n 's/^U = //p' < "$mf"`
46294   # Find all dependency output files, they are included files with
46295   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46296   # simplest approach to changing $(DEPDIR) to its actual value in the
46297   # expansion.
46298   for file in `sed -n "
46299     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46300        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46301     # Make sure the directory exists.
46302     test -f "$dirpart/$file" && continue
46303     fdir=`(dirname "$file") 2>/dev/null ||
46304 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46305          X"$file" : 'X\(//\)[^/]' \| \
46306          X"$file" : 'X\(//\)$' \| \
46307          X"$file" : 'X\(/\)' \| \
46308          .     : '\(.\)' 2>/dev/null ||
46309 echo X"$file" |
46310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46312           /^X\(\/\/\)$/{ s//\1/; q; }
46313           /^X\(\/\).*/{ s//\1/; q; }
46314           s/.*/./; q'`
46315     { if $as_mkdir_p; then
46316     mkdir -p $dirpart/$fdir
46317   else
46318     as_dir=$dirpart/$fdir
46319     as_dirs=
46320     while test ! -d "$as_dir"; do
46321       as_dirs="$as_dir $as_dirs"
46322       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46324          X"$as_dir" : 'X\(//\)[^/]' \| \
46325          X"$as_dir" : 'X\(//\)$' \| \
46326          X"$as_dir" : 'X\(/\)' \| \
46327          .     : '\(.\)' 2>/dev/null ||
46328 echo X"$as_dir" |
46329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46331           /^X\(\/\/\)$/{ s//\1/; q; }
46332           /^X\(\/\).*/{ s//\1/; q; }
46333           s/.*/./; q'`
46334     done
46335     test ! -n "$as_dirs" || mkdir $as_dirs
46336   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46337 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46338    { (exit 1); exit 1; }; }; }
46339
46340     # echo "creating $dirpart/$file"
46341     echo '# dummy' > "$dirpart/$file"
46342   done
46343 done
46344  ;;
46345     default )
46346 chmod +x tests/run
46347 date > stamp-h
46348 BACKENDSC="servers/slapd/backends.c"
46349 echo "Making $BACKENDSC"
46350 rm -f $BACKENDSC
46351 cat > $BACKENDSC << ENDX
46352 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46353  *
46354  * Copyright 1998-2006 The OpenLDAP Foundation.
46355  * All rights reserved.
46356  *
46357  * Redistribution and use in source and binary forms, with or without
46358  * modification, are permitted only as authorized by the OpenLDAP
46359  * Public License.
46360  *
46361  * A copy of this license is available in the file LICENSE in the
46362  * top-level directory of the distribution or, alternatively, at
46363  * <http://www.OpenLDAP.org/license.html>.
46364  */
46365 /* This file is automatically generated by configure; please do not edit. */
46366
46367 #include "portable.h"
46368 #include "slap.h"
46369
46370 ENDX
46371 if test "${STATIC_BACKENDS}"; then
46372         for b in config ${STATIC_BACKENDS}; do
46373                 bb=`echo "${b}" | sed -e 's/back-//'`
46374                 cat >> $BACKENDSC << ENDX
46375 extern BI_init ${bb}_back_initialize;
46376 ENDX
46377         done
46378
46379         cat >> $BACKENDSC << ENDX
46380
46381 BackendInfo slap_binfo[] = {
46382 ENDX
46383
46384         for b in config ${STATIC_BACKENDS}; do
46385                 bb=`echo "${b}" | sed -e 's/back-//'`
46386                 echo "    Add ${bb} ..."
46387                 cat >> $BACKENDSC << ENDX
46388         { "${bb}", ${bb}_back_initialize },
46389 ENDX
46390         done
46391
46392         cat >> $BACKENDSC << ENDX
46393         { NULL, NULL },
46394 };
46395
46396 /* end of generated file */
46397 ENDX
46398 fi
46399 OVERLAYSC="servers/slapd/overlays/statover.c"
46400 echo "Making $OVERLAYSC"
46401 rm -f $OVERLAYSC
46402 cat > $OVERLAYSC << ENDX
46403 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46404  *
46405  * Copyright 1998-2006 The OpenLDAP Foundation.
46406  * All rights reserved.
46407  *
46408  * Redistribution and use in source and binary forms, with or without
46409  * modification, are permitted only as authorized by the OpenLDAP
46410  * Public License.
46411  *
46412  * A copy of this license is available in the file LICENSE in the
46413  * top-level directory of the distribution or, alternatively, at
46414  * <http://www.OpenLDAP.org/license.html>.
46415  */
46416 /* This file is automatically generated by configure; please do not edit. */
46417
46418 #include "portable.h"
46419 #include "slap.h"
46420
46421 ENDX
46422 if test "${STATIC_OVERLAYS}"; then
46423         for o in ${STATIC_OVERLAYS}; do
46424                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46425                 cat >> $OVERLAYSC << ENDX
46426 extern OV_init ${oo}_initialize;
46427 ENDX
46428         done
46429 fi
46430
46431 cat >> $OVERLAYSC << ENDX
46432
46433 OverlayInit slap_oinfo[] = {
46434 ENDX
46435
46436 if test "${STATIC_OVERLAYS}"; then
46437         for o in ${STATIC_OVERLAYS}; do
46438                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46439                 echo "    Add ${oo} ..."
46440                 cat >> $OVERLAYSC << ENDX
46441         { "${oo}", ${oo}_initialize },
46442 ENDX
46443         done
46444 fi
46445
46446         cat >> $OVERLAYSC << ENDX
46447         { NULL, NULL },
46448 };
46449
46450 /* end of generated file */
46451 ENDX
46452
46453 echo Please run \"make depend\" to build dependencies
46454  ;;
46455   esac
46456 done
46457 _ACEOF
46458
46459 cat >>$CONFIG_STATUS <<\_ACEOF
46460
46461 { (exit 0); exit 0; }
46462 _ACEOF
46463 chmod +x $CONFIG_STATUS
46464 ac_clean_files=$ac_clean_files_save
46465
46466
46467 # configure is writing to config.log, and then calls config.status.
46468 # config.status does its own redirection, appending to config.log.
46469 # Unfortunately, on DOS this fails, as config.log is still kept open
46470 # by configure, so config.status won't be able to write to it; its
46471 # output is simply discarded.  So we exec the FD to /dev/null,
46472 # effectively closing config.log, so it can be properly (re)opened and
46473 # appended to by config.status.  When coming back to configure, we
46474 # need to make the FD available again.
46475 if test "$no_create" != yes; then
46476   ac_cs_success=:
46477   ac_config_status_args=
46478   test "$silent" = yes &&
46479     ac_config_status_args="$ac_config_status_args --quiet"
46480   exec 5>/dev/null
46481   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46482   exec 5>>config.log
46483   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46484   # would make configure fail if this is the last instruction.
46485   $ac_cs_success || { (exit 1); exit 1; }
46486 fi
46487