]> git.sur5r.net Git - openldap/blob - configure
rebuild
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.624 2006/01/16 17:54:36 kurt 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 ol_enable_multimaster=${ol_enable_multimaster-no}
2647 # OpenLDAP --enable-rewrite
2648
2649         # Check whether --enable-rewrite or --disable-rewrite was given.
2650 if test "${enable_rewrite+set}" = set; then
2651   enableval="$enable_rewrite"
2652
2653         ol_arg=invalid
2654         for ol_val in auto yes no ; do
2655                 if test "$enableval" = "$ol_val" ; then
2656                         ol_arg="$ol_val"
2657                 fi
2658         done
2659         if test "$ol_arg" = "invalid" ; then
2660                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2661 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2662    { (exit 1); exit 1; }; }
2663         fi
2664         ol_enable_rewrite="$ol_arg"
2665
2666 else
2667         ol_enable_rewrite=auto
2668 fi;
2669 # end --enable-rewrite
2670 # OpenLDAP --enable-rlookups
2671
2672         # Check whether --enable-rlookups or --disable-rlookups was given.
2673 if test "${enable_rlookups+set}" = set; then
2674   enableval="$enable_rlookups"
2675
2676         ol_arg=invalid
2677         for ol_val in auto yes no ; do
2678                 if test "$enableval" = "$ol_val" ; then
2679                         ol_arg="$ol_val"
2680                 fi
2681         done
2682         if test "$ol_arg" = "invalid" ; then
2683                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2684 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2685    { (exit 1); exit 1; }; }
2686         fi
2687         ol_enable_rlookups="$ol_arg"
2688
2689 else
2690         ol_enable_rlookups=no
2691 fi;
2692 # end --enable-rlookups
2693 # OpenLDAP --enable-slapi
2694
2695         # Check whether --enable-slapi or --disable-slapi was given.
2696 if test "${enable_slapi+set}" = set; then
2697   enableval="$enable_slapi"
2698
2699         ol_arg=invalid
2700         for ol_val in auto yes no ; do
2701                 if test "$enableval" = "$ol_val" ; then
2702                         ol_arg="$ol_val"
2703                 fi
2704         done
2705         if test "$ol_arg" = "invalid" ; then
2706                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2707 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2708    { (exit 1); exit 1; }; }
2709         fi
2710         ol_enable_slapi="$ol_arg"
2711
2712 else
2713         ol_enable_slapi=no
2714 fi;
2715 # end --enable-slapi
2716 # OpenLDAP --enable-slp
2717
2718         # Check whether --enable-slp or --disable-slp was given.
2719 if test "${enable_slp+set}" = set; then
2720   enableval="$enable_slp"
2721
2722         ol_arg=invalid
2723         for ol_val in auto yes no ; do
2724                 if test "$enableval" = "$ol_val" ; then
2725                         ol_arg="$ol_val"
2726                 fi
2727         done
2728         if test "$ol_arg" = "invalid" ; then
2729                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2730 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2731    { (exit 1); exit 1; }; }
2732         fi
2733         ol_enable_slp="$ol_arg"
2734
2735 else
2736         ol_enable_slp=no
2737 fi;
2738 # end --enable-slp
2739 # OpenLDAP --enable-wrappers
2740
2741         # Check whether --enable-wrappers or --disable-wrappers was given.
2742 if test "${enable_wrappers+set}" = set; then
2743   enableval="$enable_wrappers"
2744
2745         ol_arg=invalid
2746         for ol_val in auto yes no ; do
2747                 if test "$enableval" = "$ol_val" ; then
2748                         ol_arg="$ol_val"
2749                 fi
2750         done
2751         if test "$ol_arg" = "invalid" ; then
2752                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2753 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2754    { (exit 1); exit 1; }; }
2755         fi
2756         ol_enable_wrappers="$ol_arg"
2757
2758 else
2759         ol_enable_wrappers=no
2760 fi;
2761 # end --enable-wrappers
2762
2763 Backends="bdb \
2764         dnssrv \
2765         hdb \
2766         ldap \
2767         ldbm \
2768         meta \
2769         monitor \
2770         null \
2771         passwd \
2772         perl \
2773         relay \
2774         shell \
2775         sql"
2776
2777 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2778 if test "${enable_xxslapbackends+set}" = set; then
2779   enableval="$enable_xxslapbackends"
2780
2781 fi;
2782
2783 # OpenLDAP --enable-backends
2784
2785         # Check whether --enable-backends or --disable-backends was given.
2786 if test "${enable_backends+set}" = set; then
2787   enableval="$enable_backends"
2788
2789         ol_arg=invalid
2790         for ol_val in no yes mod ; do
2791                 if test "$enableval" = "$ol_val" ; then
2792                         ol_arg="$ol_val"
2793                 fi
2794         done
2795         if test "$ol_arg" = "invalid" ; then
2796                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2797 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2798    { (exit 1); exit 1; }; }
2799         fi
2800         ol_enable_backends="$ol_arg"
2801
2802 fi;
2803 # end --enable-backends
2804 # OpenLDAP --enable-bdb
2805
2806         # Check whether --enable-bdb or --disable-bdb was given.
2807 if test "${enable_bdb+set}" = set; then
2808   enableval="$enable_bdb"
2809
2810         ol_arg=invalid
2811         for ol_val in no yes mod ; do
2812                 if test "$enableval" = "$ol_val" ; then
2813                         ol_arg="$ol_val"
2814                 fi
2815         done
2816         if test "$ol_arg" = "invalid" ; then
2817                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2818 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2819    { (exit 1); exit 1; }; }
2820         fi
2821         ol_enable_bdb="$ol_arg"
2822
2823 else
2824         ol_enable_bdb=${ol_enable_backends:-yes}
2825 fi;
2826 # end --enable-bdb
2827 # OpenLDAP --enable-dnssrv
2828
2829         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2830 if test "${enable_dnssrv+set}" = set; then
2831   enableval="$enable_dnssrv"
2832
2833         ol_arg=invalid
2834         for ol_val in no yes mod ; do
2835                 if test "$enableval" = "$ol_val" ; then
2836                         ol_arg="$ol_val"
2837                 fi
2838         done
2839         if test "$ol_arg" = "invalid" ; then
2840                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2841 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2842    { (exit 1); exit 1; }; }
2843         fi
2844         ol_enable_dnssrv="$ol_arg"
2845
2846 else
2847         ol_enable_dnssrv=${ol_enable_backends:-no}
2848 fi;
2849 # end --enable-dnssrv
2850 # OpenLDAP --enable-hdb
2851
2852         # Check whether --enable-hdb or --disable-hdb was given.
2853 if test "${enable_hdb+set}" = set; then
2854   enableval="$enable_hdb"
2855
2856         ol_arg=invalid
2857         for ol_val in no yes mod ; do
2858                 if test "$enableval" = "$ol_val" ; then
2859                         ol_arg="$ol_val"
2860                 fi
2861         done
2862         if test "$ol_arg" = "invalid" ; then
2863                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2864 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2865    { (exit 1); exit 1; }; }
2866         fi
2867         ol_enable_hdb="$ol_arg"
2868
2869 else
2870         ol_enable_hdb=${ol_enable_backends:-yes}
2871 fi;
2872 # end --enable-hdb
2873 # OpenLDAP --enable-ldap
2874
2875         # Check whether --enable-ldap or --disable-ldap was given.
2876 if test "${enable_ldap+set}" = set; then
2877   enableval="$enable_ldap"
2878
2879         ol_arg=invalid
2880         for ol_val in no yes mod ; do
2881                 if test "$enableval" = "$ol_val" ; then
2882                         ol_arg="$ol_val"
2883                 fi
2884         done
2885         if test "$ol_arg" = "invalid" ; then
2886                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2887 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2888    { (exit 1); exit 1; }; }
2889         fi
2890         ol_enable_ldap="$ol_arg"
2891
2892 else
2893         ol_enable_ldap=${ol_enable_backends:-no}
2894 fi;
2895 # end --enable-ldap
2896 # OpenLDAP --enable-ldbm
2897
2898         # Check whether --enable-ldbm or --disable-ldbm was given.
2899 if test "${enable_ldbm+set}" = set; then
2900   enableval="$enable_ldbm"
2901
2902         ol_arg=invalid
2903         for ol_val in no yes mod ; do
2904                 if test "$enableval" = "$ol_val" ; then
2905                         ol_arg="$ol_val"
2906                 fi
2907         done
2908         if test "$ol_arg" = "invalid" ; then
2909                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2910 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2911    { (exit 1); exit 1; }; }
2912         fi
2913         ol_enable_ldbm="$ol_arg"
2914
2915 else
2916         ol_enable_ldbm=${ol_enable_backends:-no}
2917 fi;
2918 # end --enable-ldbm
2919
2920 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2921 if test "${with_ldbm_api+set}" = set; then
2922   withval="$with_ldbm_api"
2923
2924         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2925 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2926         enable_ldbm_api="$with_ldbm_api"
2927 fi;
2928 # OpenLDAP --enable-ldbm_api
2929
2930         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2931 if test "${enable_ldbm_api+set}" = set; then
2932   enableval="$enable_ldbm_api"
2933
2934         ol_arg=invalid
2935         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2936                 if test "$enableval" = "$ol_val" ; then
2937                         ol_arg="$ol_val"
2938                 fi
2939         done
2940         if test "$ol_arg" = "invalid" ; then
2941                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2942 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2943    { (exit 1); exit 1; }; }
2944         fi
2945         ol_enable_ldbm_api="$ol_arg"
2946
2947 else
2948         ol_enable_ldbm_api=auto
2949 fi;
2950 # end --enable-ldbm_api
2951
2952
2953 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2954 if test "${with_ldbm_type+set}" = set; then
2955   withval="$with_ldbm_type"
2956
2957         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2958 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2959         enable_ldbm_type="$with_ldbm_type"
2960 fi;
2961 # OpenLDAP --enable-ldbm_type
2962
2963         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2964 if test "${enable_ldbm_type+set}" = set; then
2965   enableval="$enable_ldbm_type"
2966
2967         ol_arg=invalid
2968         for ol_val in auto btree hash ; do
2969                 if test "$enableval" = "$ol_val" ; then
2970                         ol_arg="$ol_val"
2971                 fi
2972         done
2973         if test "$ol_arg" = "invalid" ; then
2974                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2975 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2976    { (exit 1); exit 1; }; }
2977         fi
2978         ol_enable_ldbm_type="$ol_arg"
2979
2980 else
2981         ol_enable_ldbm_type=auto
2982 fi;
2983 # end --enable-ldbm_type
2984
2985 # OpenLDAP --enable-meta
2986
2987         # Check whether --enable-meta or --disable-meta was given.
2988 if test "${enable_meta+set}" = set; then
2989   enableval="$enable_meta"
2990
2991         ol_arg=invalid
2992         for ol_val in no yes mod ; do
2993                 if test "$enableval" = "$ol_val" ; then
2994                         ol_arg="$ol_val"
2995                 fi
2996         done
2997         if test "$ol_arg" = "invalid" ; then
2998                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3000    { (exit 1); exit 1; }; }
3001         fi
3002         ol_enable_meta="$ol_arg"
3003
3004 else
3005         ol_enable_meta=${ol_enable_backends:-no}
3006 fi;
3007 # end --enable-meta
3008 # OpenLDAP --enable-monitor
3009
3010         # Check whether --enable-monitor or --disable-monitor was given.
3011 if test "${enable_monitor+set}" = set; then
3012   enableval="$enable_monitor"
3013
3014         ol_arg=invalid
3015         for ol_val in no yes mod ; do
3016                 if test "$enableval" = "$ol_val" ; then
3017                         ol_arg="$ol_val"
3018                 fi
3019         done
3020         if test "$ol_arg" = "invalid" ; then
3021                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3022 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3023    { (exit 1); exit 1; }; }
3024         fi
3025         ol_enable_monitor="$ol_arg"
3026
3027 else
3028         ol_enable_monitor=${ol_enable_backends:-yes}
3029 fi;
3030 # end --enable-monitor
3031 # OpenLDAP --enable-null
3032
3033         # Check whether --enable-null or --disable-null was given.
3034 if test "${enable_null+set}" = set; then
3035   enableval="$enable_null"
3036
3037         ol_arg=invalid
3038         for ol_val in no yes mod ; do
3039                 if test "$enableval" = "$ol_val" ; then
3040                         ol_arg="$ol_val"
3041                 fi
3042         done
3043         if test "$ol_arg" = "invalid" ; then
3044                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3045 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3046    { (exit 1); exit 1; }; }
3047         fi
3048         ol_enable_null="$ol_arg"
3049
3050 else
3051         ol_enable_null=${ol_enable_backends:-no}
3052 fi;
3053 # end --enable-null
3054 # OpenLDAP --enable-passwd
3055
3056         # Check whether --enable-passwd or --disable-passwd was given.
3057 if test "${enable_passwd+set}" = set; then
3058   enableval="$enable_passwd"
3059
3060         ol_arg=invalid
3061         for ol_val in no yes mod ; do
3062                 if test "$enableval" = "$ol_val" ; then
3063                         ol_arg="$ol_val"
3064                 fi
3065         done
3066         if test "$ol_arg" = "invalid" ; then
3067                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3068 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3069    { (exit 1); exit 1; }; }
3070         fi
3071         ol_enable_passwd="$ol_arg"
3072
3073 else
3074         ol_enable_passwd=${ol_enable_backends:-no}
3075 fi;
3076 # end --enable-passwd
3077 # OpenLDAP --enable-perl
3078
3079         # Check whether --enable-perl or --disable-perl was given.
3080 if test "${enable_perl+set}" = set; then
3081   enableval="$enable_perl"
3082
3083         ol_arg=invalid
3084         for ol_val in no yes mod ; do
3085                 if test "$enableval" = "$ol_val" ; then
3086                         ol_arg="$ol_val"
3087                 fi
3088         done
3089         if test "$ol_arg" = "invalid" ; then
3090                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3092    { (exit 1); exit 1; }; }
3093         fi
3094         ol_enable_perl="$ol_arg"
3095
3096 else
3097         ol_enable_perl=${ol_enable_backends:-no}
3098 fi;
3099 # end --enable-perl
3100 # OpenLDAP --enable-relay
3101
3102         # Check whether --enable-relay or --disable-relay was given.
3103 if test "${enable_relay+set}" = set; then
3104   enableval="$enable_relay"
3105
3106         ol_arg=invalid
3107         for ol_val in no yes mod ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_relay="$ol_arg"
3118
3119 else
3120         ol_enable_relay=${ol_enable_backends:-yes}
3121 fi;
3122 # end --enable-relay
3123 # OpenLDAP --enable-shell
3124
3125         # Check whether --enable-shell or --disable-shell was given.
3126 if test "${enable_shell+set}" = set; then
3127   enableval="$enable_shell"
3128
3129         ol_arg=invalid
3130         for ol_val in no yes mod ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_shell="$ol_arg"
3141
3142 else
3143         ol_enable_shell=${ol_enable_backends:-no}
3144 fi;
3145 # end --enable-shell
3146 # OpenLDAP --enable-sql
3147
3148         # Check whether --enable-sql or --disable-sql was given.
3149 if test "${enable_sql+set}" = set; then
3150   enableval="$enable_sql"
3151
3152         ol_arg=invalid
3153         for ol_val in no yes mod ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_sql="$ol_arg"
3164
3165 else
3166         ol_enable_sql=${ol_enable_backends:-no}
3167 fi;
3168 # end --enable-sql
3169
3170 Overlays="accesslog \
3171         dds \
3172         denyop \
3173         dyngroup \
3174         dynlist \
3175         lastmod \
3176         ppolicy \
3177         proxycache \
3178         refint \
3179         retcode \
3180         rwm \
3181         syncprov \
3182         translucent \
3183         unique \
3184         valsort"
3185
3186 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3187 if test "${enable_xxslapoverlays+set}" = set; then
3188   enableval="$enable_xxslapoverlays"
3189
3190 fi;
3191
3192 # OpenLDAP --enable-overlays
3193
3194         # Check whether --enable-overlays or --disable-overlays was given.
3195 if test "${enable_overlays+set}" = set; then
3196   enableval="$enable_overlays"
3197
3198         ol_arg=invalid
3199         for ol_val in no yes mod ; do
3200                 if test "$enableval" = "$ol_val" ; then
3201                         ol_arg="$ol_val"
3202                 fi
3203         done
3204         if test "$ol_arg" = "invalid" ; then
3205                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_overlays="$ol_arg"
3210
3211 fi;
3212 # end --enable-overlays
3213 # OpenLDAP --enable-accesslog
3214
3215         # Check whether --enable-accesslog or --disable-accesslog was given.
3216 if test "${enable_accesslog+set}" = set; then
3217   enableval="$enable_accesslog"
3218
3219         ol_arg=invalid
3220         for ol_val in no yes mod ; do
3221                 if test "$enableval" = "$ol_val" ; then
3222                         ol_arg="$ol_val"
3223                 fi
3224         done
3225         if test "$ol_arg" = "invalid" ; then
3226                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3228    { (exit 1); exit 1; }; }
3229         fi
3230         ol_enable_accesslog="$ol_arg"
3231
3232 else
3233         ol_enable_accesslog=${ol_enable_overlays:-no}
3234 fi;
3235 # end --enable-accesslog
3236
3237 # OpenLDAP --enable-dds
3238
3239         # Check whether --enable-dds or --disable-dds was given.
3240 if test "${enable_dds+set}" = set; then
3241   enableval="$enable_dds"
3242
3243         ol_arg=invalid
3244         for ol_val in no yes mod ; do
3245                 if test "$enableval" = "$ol_val" ; then
3246                         ol_arg="$ol_val"
3247                 fi
3248         done
3249         if test "$ol_arg" = "invalid" ; then
3250                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3251 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3252    { (exit 1); exit 1; }; }
3253         fi
3254         ol_enable_dds="$ol_arg"
3255
3256 else
3257         ol_enable_dds=${ol_enable_overlays:-no}
3258 fi;
3259 # end --enable-dds
3260
3261 # OpenLDAP --enable-denyop
3262
3263         # Check whether --enable-denyop or --disable-denyop was given.
3264 if test "${enable_denyop+set}" = set; then
3265   enableval="$enable_denyop"
3266
3267         ol_arg=invalid
3268         for ol_val in no yes mod ; do
3269                 if test "$enableval" = "$ol_val" ; then
3270                         ol_arg="$ol_val"
3271                 fi
3272         done
3273         if test "$ol_arg" = "invalid" ; then
3274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3276    { (exit 1); exit 1; }; }
3277         fi
3278         ol_enable_denyop="$ol_arg"
3279
3280 else
3281         ol_enable_denyop=${ol_enable_overlays:-no}
3282 fi;
3283 # end --enable-denyop
3284
3285 # OpenLDAP --enable-dyngroup
3286
3287         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3288 if test "${enable_dyngroup+set}" = set; then
3289   enableval="$enable_dyngroup"
3290
3291         ol_arg=invalid
3292         for ol_val in no yes mod ; do
3293                 if test "$enableval" = "$ol_val" ; then
3294                         ol_arg="$ol_val"
3295                 fi
3296         done
3297         if test "$ol_arg" = "invalid" ; then
3298                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3300    { (exit 1); exit 1; }; }
3301         fi
3302         ol_enable_dyngroup="$ol_arg"
3303
3304 else
3305         ol_enable_dyngroup=${ol_enable_overlays:-no}
3306 fi;
3307 # end --enable-dyngroup
3308
3309 # OpenLDAP --enable-dynlist
3310
3311         # Check whether --enable-dynlist or --disable-dynlist was given.
3312 if test "${enable_dynlist+set}" = set; then
3313   enableval="$enable_dynlist"
3314
3315         ol_arg=invalid
3316         for ol_val in no yes mod ; do
3317                 if test "$enableval" = "$ol_val" ; then
3318                         ol_arg="$ol_val"
3319                 fi
3320         done
3321         if test "$ol_arg" = "invalid" ; then
3322                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3323 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3324    { (exit 1); exit 1; }; }
3325         fi
3326         ol_enable_dynlist="$ol_arg"
3327
3328 else
3329         ol_enable_dynlist=${ol_enable_overlays:-no}
3330 fi;
3331 # end --enable-dynlist
3332
3333 # OpenLDAP --enable-lastmod
3334
3335         # Check whether --enable-lastmod or --disable-lastmod was given.
3336 if test "${enable_lastmod+set}" = set; then
3337   enableval="$enable_lastmod"
3338
3339         ol_arg=invalid
3340         for ol_val in no yes mod ; do
3341                 if test "$enableval" = "$ol_val" ; then
3342                         ol_arg="$ol_val"
3343                 fi
3344         done
3345         if test "$ol_arg" = "invalid" ; then
3346                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3347 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3348    { (exit 1); exit 1; }; }
3349         fi
3350         ol_enable_lastmod="$ol_arg"
3351
3352 else
3353         ol_enable_lastmod=${ol_enable_overlays:-no}
3354 fi;
3355 # end --enable-lastmod
3356
3357 # OpenLDAP --enable-ppolicy
3358
3359         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3360 if test "${enable_ppolicy+set}" = set; then
3361   enableval="$enable_ppolicy"
3362
3363         ol_arg=invalid
3364         for ol_val in no yes mod ; do
3365                 if test "$enableval" = "$ol_val" ; then
3366                         ol_arg="$ol_val"
3367                 fi
3368         done
3369         if test "$ol_arg" = "invalid" ; then
3370                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3371 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3372    { (exit 1); exit 1; }; }
3373         fi
3374         ol_enable_ppolicy="$ol_arg"
3375
3376 else
3377         ol_enable_ppolicy=${ol_enable_overlays:-no}
3378 fi;
3379 # end --enable-ppolicy
3380
3381 # OpenLDAP --enable-proxycache
3382
3383         # Check whether --enable-proxycache or --disable-proxycache was given.
3384 if test "${enable_proxycache+set}" = set; then
3385   enableval="$enable_proxycache"
3386
3387         ol_arg=invalid
3388         for ol_val in no yes mod ; do
3389                 if test "$enableval" = "$ol_val" ; then
3390                         ol_arg="$ol_val"
3391                 fi
3392         done
3393         if test "$ol_arg" = "invalid" ; then
3394                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3396    { (exit 1); exit 1; }; }
3397         fi
3398         ol_enable_proxycache="$ol_arg"
3399
3400 else
3401         ol_enable_proxycache=${ol_enable_overlays:-no}
3402 fi;
3403 # end --enable-proxycache
3404
3405 # OpenLDAP --enable-refint
3406
3407         # Check whether --enable-refint or --disable-refint was given.
3408 if test "${enable_refint+set}" = set; then
3409   enableval="$enable_refint"
3410
3411         ol_arg=invalid
3412         for ol_val in no yes mod ; do
3413                 if test "$enableval" = "$ol_val" ; then
3414                         ol_arg="$ol_val"
3415                 fi
3416         done
3417         if test "$ol_arg" = "invalid" ; then
3418                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3419 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3420    { (exit 1); exit 1; }; }
3421         fi
3422         ol_enable_refint="$ol_arg"
3423
3424 else
3425         ol_enable_refint=${ol_enable_overlays:-no}
3426 fi;
3427 # end --enable-refint
3428
3429 # OpenLDAP --enable-retcode
3430
3431         # Check whether --enable-retcode or --disable-retcode was given.
3432 if test "${enable_retcode+set}" = set; then
3433   enableval="$enable_retcode"
3434
3435         ol_arg=invalid
3436         for ol_val in no yes mod ; do
3437                 if test "$enableval" = "$ol_val" ; then
3438                         ol_arg="$ol_val"
3439                 fi
3440         done
3441         if test "$ol_arg" = "invalid" ; then
3442                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3443 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3444    { (exit 1); exit 1; }; }
3445         fi
3446         ol_enable_retcode="$ol_arg"
3447
3448 else
3449         ol_enable_retcode=${ol_enable_overlays:-no}
3450 fi;
3451 # end --enable-retcode
3452
3453 # OpenLDAP --enable-rwm
3454
3455         # Check whether --enable-rwm or --disable-rwm was given.
3456 if test "${enable_rwm+set}" = set; then
3457   enableval="$enable_rwm"
3458
3459         ol_arg=invalid
3460         for ol_val in no yes mod ; do
3461                 if test "$enableval" = "$ol_val" ; then
3462                         ol_arg="$ol_val"
3463                 fi
3464         done
3465         if test "$ol_arg" = "invalid" ; then
3466                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3467 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3468    { (exit 1); exit 1; }; }
3469         fi
3470         ol_enable_rwm="$ol_arg"
3471
3472 else
3473         ol_enable_rwm=${ol_enable_overlays:-no}
3474 fi;
3475 # end --enable-rwm
3476
3477 # OpenLDAP --enable-syncprov
3478
3479         # Check whether --enable-syncprov or --disable-syncprov was given.
3480 if test "${enable_syncprov+set}" = set; then
3481   enableval="$enable_syncprov"
3482
3483         ol_arg=invalid
3484         for ol_val in no yes mod ; do
3485                 if test "$enableval" = "$ol_val" ; then
3486                         ol_arg="$ol_val"
3487                 fi
3488         done
3489         if test "$ol_arg" = "invalid" ; then
3490                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3491 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3492    { (exit 1); exit 1; }; }
3493         fi
3494         ol_enable_syncprov="$ol_arg"
3495
3496 else
3497         ol_enable_syncprov=${ol_enable_overlays:-yes}
3498 fi;
3499 # end --enable-syncprov
3500
3501 # OpenLDAP --enable-translucent
3502
3503         # Check whether --enable-translucent or --disable-translucent was given.
3504 if test "${enable_translucent+set}" = set; then
3505   enableval="$enable_translucent"
3506
3507         ol_arg=invalid
3508         for ol_val in no yes mod ; do
3509                 if test "$enableval" = "$ol_val" ; then
3510                         ol_arg="$ol_val"
3511                 fi
3512         done
3513         if test "$ol_arg" = "invalid" ; then
3514                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3515 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3516    { (exit 1); exit 1; }; }
3517         fi
3518         ol_enable_translucent="$ol_arg"
3519
3520 else
3521         ol_enable_translucent=${ol_enable_overlays:-no}
3522 fi;
3523 # end --enable-translucent
3524
3525 # OpenLDAP --enable-unique
3526
3527         # Check whether --enable-unique or --disable-unique was given.
3528 if test "${enable_unique+set}" = set; then
3529   enableval="$enable_unique"
3530
3531         ol_arg=invalid
3532         for ol_val in no yes mod ; do
3533                 if test "$enableval" = "$ol_val" ; then
3534                         ol_arg="$ol_val"
3535                 fi
3536         done
3537         if test "$ol_arg" = "invalid" ; then
3538                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3539 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3540    { (exit 1); exit 1; }; }
3541         fi
3542         ol_enable_unique="$ol_arg"
3543
3544 else
3545         ol_enable_unique=${ol_enable_overlays:-no}
3546 fi;
3547 # end --enable-unique
3548
3549 # OpenLDAP --enable-valsort
3550
3551         # Check whether --enable-valsort or --disable-valsort was given.
3552 if test "${enable_valsort+set}" = set; then
3553   enableval="$enable_valsort"
3554
3555         ol_arg=invalid
3556         for ol_val in no yes mod ; do
3557                 if test "$enableval" = "$ol_val" ; then
3558                         ol_arg="$ol_val"
3559                 fi
3560         done
3561         if test "$ol_arg" = "invalid" ; then
3562                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3563 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3564    { (exit 1); exit 1; }; }
3565         fi
3566         ol_enable_valsort="$ol_arg"
3567
3568 else
3569         ol_enable_valsort=${ol_enable_overlays:-no}
3570 fi;
3571 # end --enable-valsort
3572
3573
3574 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3575 if test "${enable_xxslurpdoptions+set}" = set; then
3576   enableval="$enable_xxslurpdoptions"
3577
3578 fi;
3579 # OpenLDAP --enable-slurpd
3580
3581         # Check whether --enable-slurpd or --disable-slurpd was given.
3582 if test "${enable_slurpd+set}" = set; then
3583   enableval="$enable_slurpd"
3584
3585         ol_arg=invalid
3586         for ol_val in auto yes no ; do
3587                 if test "$enableval" = "$ol_val" ; then
3588                         ol_arg="$ol_val"
3589                 fi
3590         done
3591         if test "$ol_arg" = "invalid" ; then
3592                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3593 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3594    { (exit 1); exit 1; }; }
3595         fi
3596         ol_enable_slurpd="$ol_arg"
3597
3598 else
3599         ol_enable_slurpd=auto
3600 fi;
3601 # end --enable-slurpd
3602
3603 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3604 if test "${enable_xxliboptions+set}" = set; then
3605   enableval="$enable_xxliboptions"
3606
3607 fi;
3608 # Check whether --enable-static or --disable-static was given.
3609 if test "${enable_static+set}" = set; then
3610   enableval="$enable_static"
3611   p=${PACKAGE-default}
3612     case $enableval in
3613     yes) enable_static=yes ;;
3614     no) enable_static=no ;;
3615     *)
3616      enable_static=no
3617       # Look at the argument we got.  We use all the common list separators.
3618       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3619       for pkg in $enableval; do
3620         IFS="$lt_save_ifs"
3621         if test "X$pkg" = "X$p"; then
3622           enable_static=yes
3623         fi
3624       done
3625       IFS="$lt_save_ifs"
3626       ;;
3627     esac
3628 else
3629   enable_static=yes
3630 fi;
3631
3632 # Check whether --enable-shared or --disable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634   enableval="$enable_shared"
3635   p=${PACKAGE-default}
3636     case $enableval in
3637     yes) enable_shared=yes ;;
3638     no) enable_shared=no ;;
3639     *)
3640       enable_shared=no
3641       # Look at the argument we got.  We use all the common list separators.
3642       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643       for pkg in $enableval; do
3644         IFS="$lt_save_ifs"
3645         if test "X$pkg" = "X$p"; then
3646           enable_shared=yes
3647         fi
3648       done
3649       IFS="$lt_save_ifs"
3650       ;;
3651     esac
3652 else
3653   enable_shared=yes
3654 fi;
3655
3656
3657
3658 # validate options
3659 if test $ol_enable_slapd = no ; then
3660                 if test $ol_enable_slapi = yes ; then
3661                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3662 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3663         fi
3664         case "$ol_enable_backends" in yes | mod)
3665                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3666 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3667         esac
3668         for i in $Backends; do
3669                 eval "ol_tmp=\$ol_enable_$i"
3670                 if test $ol_tmp != no ; then
3671                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3672 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3673                         eval "ol_enable_$i=no"
3674                 fi
3675         done
3676         if test $ol_enable_modules = yes ; then
3677                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3678 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3679         fi
3680         if test $ol_enable_multimaster = yes ; then
3681                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3682 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3683         fi
3684         if test $ol_enable_wrappers = yes ; then
3685                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3686 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3687         fi
3688         if test $ol_enable_rlookups = yes ; then
3689                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3690 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3691         fi
3692         if test $ol_enable_dynacl = yes ; then
3693                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3695         fi
3696         if test $ol_enable_aci != no ; then
3697                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3698 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3699         fi
3700         if test $ol_enable_ldbm_api != auto ; then
3701                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3702 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3703         fi
3704         if test $ol_enable_ldbm_type != auto ; then
3705                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3707         fi
3708         if test $ol_enable_slurpd = yes ; then
3709                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3710 echo "$as_me: error: slurpd requires slapd" >&2;}
3711    { (exit 1); exit 1; }; }
3712         fi
3713         if test $ol_enable_rewrite = yes ; then
3714                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3715 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3716         fi
3717                 case "$ol_enable_overlays" in yes | mod)
3718                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3719 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3720         esac
3721         for i in $Overlays; do
3722                 eval "ol_tmp=\$ol_enable_$i"
3723                 if test $ol_tmp != no ; then
3724                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3725 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3726                         eval "ol_enable_$i=no"
3727                 fi
3728         done
3729
3730         # force settings to no
3731         ol_enable_slapi=no
3732
3733         ol_enable_backends=
3734         ol_enable_overlays=
3735         ol_enable_modules=no
3736         ol_enable_multimaster=no
3737         ol_enable_rlookups=no
3738         ol_enable_dynacl=no
3739         ol_enable_aci=no
3740         ol_enable_wrappers=no
3741
3742         ol_enable_ldbm_api=no
3743         ol_enable_ldbm_type=no
3744
3745         ol_enable_slurpd=no
3746
3747         ol_enable_rewrite=no
3748
3749 elif test $ol_enable_ldbm = no ; then
3750
3751         if test $ol_enable_ldbm_api != auto ; then
3752                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3753 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3754         fi
3755
3756         if test $ol_enable_ldbm_type != auto ; then
3757                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3758 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3759         fi
3760
3761         if test $ol_enable_modules != yes &&
3762            test $ol_enable_bdb = no &&
3763            test $ol_enable_dnssrv = no &&
3764            test $ol_enable_hdb = no &&
3765            test $ol_enable_ldap = no &&
3766            test $ol_enable_meta = no &&
3767            test $ol_enable_monitor = no &&
3768            test $ol_enable_null = no &&
3769            test $ol_enable_passwd = no &&
3770            test $ol_enable_perl = no &&
3771            test $ol_enable_relay = no &&
3772            test $ol_enable_shell = no &&
3773            test $ol_enable_sql = no ; then
3774
3775                 if test $ol_enable_slapd = yes ; then
3776                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3777 echo "$as_me: error: slapd requires a backend" >&2;}
3778    { (exit 1); exit 1; }; }
3779                 else
3780                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3781 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3782                         ol_enable_slapd=no
3783                 fi
3784         fi
3785
3786         ol_enable_ldbm_api=no
3787         ol_enable_ldbm_type=no
3788
3789         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3790                 ol_enable_ldbm_api=berkeley
3791         fi
3792
3793 else
3794                 if test $ol_enable_ldbm_api = gdbm &&
3795            test $ol_enable_ldbm_type = btree ; then
3796                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3797 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3798    { (exit 1); exit 1; }; }
3799         fi
3800         if test $ol_enable_ldbm_api = mdbm &&
3801            test $ol_enable_ldbm_type = btree ; then
3802                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3803 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3804    { (exit 1); exit 1; }; }
3805         fi
3806         if test $ol_enable_ldbm_api = ndbm &&
3807            test $ol_enable_ldbm_type = btree ; then
3808                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3809 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3810    { (exit 1); exit 1; }; }
3811         fi
3812
3813         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3814                 if test $ol_enable_ldbm_api = auto ; then
3815                         ol_enable_ldbm_api=berkeley
3816                 elif test $ol_enable_ldbm_api != berkeley ; then
3817                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3818 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3819    { (exit 1); exit 1; }; }
3820                 fi
3821         fi
3822 fi
3823
3824 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3825         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3826 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3827    { (exit 1); exit 1; }; }
3828 fi
3829
3830 if test $ol_enable_slurpd = yes ; then
3831                 if test $ol_with_threads = no ; then
3832                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3833 echo "$as_me: error: slurpd requires threads" >&2;}
3834    { (exit 1); exit 1; }; }
3835         fi
3836 fi
3837
3838 if test $ol_enable_lmpasswd = yes ; then
3839         if test $ol_with_tls = no ; then
3840                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3841 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3842    { (exit 1); exit 1; }; }
3843         fi
3844 fi
3845
3846 if test $ol_enable_kbind = yes ; then
3847         if test $ol_with_kerberos = no ; then
3848                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3849 echo "$as_me: error: options require --with-kerberos" >&2;}
3850    { (exit 1); exit 1; }; }
3851         elif test $ol_with_kerberos = auto ; then
3852                 ol_with_kerberos=yes
3853         fi
3854
3855 elif test $ol_enable_kbind = no ; then
3856         if test $ol_with_kerberos = auto ; then
3857                 ol_with_kerberos=no
3858         elif test $ol_with_kerberos != no ; then
3859                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3860 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3861                 ol_with_kerberos=no
3862         fi
3863 fi
3864
3865 if test $ol_enable_spasswd = yes ; then
3866         if test $ol_with_cyrus_sasl = no ; then
3867                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3868 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3869    { (exit 1); exit 1; }; }
3870         fi
3871         ol_with_cyrus_sasl=yes
3872 fi
3873
3874 echo "$as_me:$LINENO: result: done" >&5
3875 echo "${ECHO_T}done" >&6
3876
3877 LDAP_LIBS=
3878 LDBM_LIBS=
3879 LTHREAD_LIBS=
3880 LUTIL_LIBS=
3881
3882 SLAPD_LIBS=
3883 SLURPD_LIBS=
3884
3885 BUILD_SLAPD=no
3886 BUILD_SLURPD=no
3887
3888 BUILD_THREAD=no
3889
3890 BUILD_SLAPI=no
3891 SLAPD_SLAPI_DEPEND=
3892
3893 BUILD_BDB=no
3894 BUILD_DNSSRV=no
3895 BUILD_HDB=no
3896 BUILD_LDAP=no
3897 BUILD_LDBM=no
3898 BUILD_META=no
3899 BUILD_MONITOR=no
3900 BUILD_NULL=no
3901 BUILD_PASSWD=no
3902 BUILD_PERL=no
3903 BUILD_RELAY=no
3904 BUILD_SHELL=no
3905 BUILD_SQL=no
3906
3907 BUILD_ACCESSLOG=no
3908 BUILD_DDS=no
3909 BUILD_DENYOP=no
3910 BUILD_DYNGROUP=no
3911 BUILD_DYNLIST=no
3912 BUILD_LASTMOD=no
3913 BUILD_PPOLICY=no
3914 BUILD_PROXYCACHE=no
3915 BUILD_REFINT=no
3916 BUILD_RETCODE=no
3917 BUILD_RWM=no
3918 BUILD_SYNCPROV=no
3919 BUILD_TRANSLUCENT=no
3920 BUILD_UNIQUE=no
3921 BUILD_VALSORT=no
3922
3923 SLAPD_STATIC_OVERLAYS=
3924 SLAPD_DYNAMIC_OVERLAYS=
3925
3926 SLAPD_MODULES_LDFLAGS=
3927 SLAPD_MODULES_CPPFLAGS=
3928
3929 SLAPD_STATIC_BACKENDS=back-ldif
3930 SLAPD_DYNAMIC_BACKENDS=
3931
3932 SLAPD_PERL_LDFLAGS=
3933 MOD_PERL_LDFLAGS=
3934 PERL_CPPFLAGS=
3935
3936 SLAPD_SQL_LDFLAGS=
3937 SLAPD_SQL_LIBS=
3938 SLAPD_SQL_INCLUDES=
3939
3940 KRB4_LIBS=
3941 KRB5_LIBS=
3942 SASL_LIBS=
3943 TLS_LIBS=
3944 MODULES_LIBS=
3945 SLAPI_LIBS=
3946 LIBSLAPI=
3947 LIBSLAPITOOLS=
3948 AUTH_LIBS=
3949 ICU_LIBS=
3950
3951 SLAPD_SLP_LIBS=
3952 SLAPD_GMP_LIBS=
3953
3954
3955
3956 cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_MKVERSION 1
3958 _ACEOF
3959
3960
3961
3962
3963 ol_aix_threads=no
3964 case "$target" in
3965 *-*-aix*)       if test -z "$CC" ; then
3966                 case "$ol_with_threads" in
3967                 auto | yes |  posix) ol_aix_threads=yes ;;
3968                 esac
3969         fi
3970 ;;
3971 esac
3972
3973 if test $ol_aix_threads = yes ; then
3974         if test -z "${CC}" ; then
3975                 for ac_prog in cc_r xlc_r cc
3976 do
3977   # Extract the first word of "$ac_prog", so it can be a program name with args.
3978 set dummy $ac_prog; ac_word=$2
3979 echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_prog_CC+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   if test -n "$CC"; then
3985   ac_cv_prog_CC="$CC" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3989 do
3990   IFS=$as_save_IFS
3991   test -z "$as_dir" && as_dir=.
3992   for ac_exec_ext in '' $ac_executable_extensions; do
3993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994     ac_cv_prog_CC="$ac_prog"
3995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996     break 2
3997   fi
3998 done
3999 done
4000
4001 fi
4002 fi
4003 CC=$ac_cv_prog_CC
4004 if test -n "$CC"; then
4005   echo "$as_me:$LINENO: result: $CC" >&5
4006 echo "${ECHO_T}$CC" >&6
4007 else
4008   echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4010 fi
4011
4012   test -n "$CC" && break
4013 done
4014
4015
4016                 if test "$CC" = cc ; then
4017                                                 if test $ol_with_threads != auto ; then
4018                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4019 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4020    { (exit 1); exit 1; }; }
4021                         else
4022                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4023 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4024                         fi
4025                         ol_with_threads=no
4026                 fi
4027         fi
4028
4029         case ${CC} in cc_r | xlc_r)
4030                 ol_with_threads=posix
4031                 ol_cv_pthread_create=yes
4032                 ;;
4033         esac
4034 fi
4035
4036 if test -z "${CC}"; then
4037         for ac_prog in cc gcc
4038 do
4039   # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_CC+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if test -n "$CC"; then
4047   ac_cv_prog_CC="$CC" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for ac_exec_ext in '' $ac_executable_extensions; do
4055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056     ac_cv_prog_CC="$ac_prog"
4057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058     break 2
4059   fi
4060 done
4061 done
4062
4063 fi
4064 fi
4065 CC=$ac_cv_prog_CC
4066 if test -n "$CC"; then
4067   echo "$as_me:$LINENO: result: $CC" >&5
4068 echo "${ECHO_T}$CC" >&6
4069 else
4070   echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4072 fi
4073
4074   test -n "$CC" && break
4075 done
4076 test -n "$CC" || CC="missing"
4077
4078
4079         if test "${CC}" = "missing" ; then
4080                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4081 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4082    { (exit 1); exit 1; }; }
4083         fi
4084 fi
4085
4086 if test -z "${AR}"; then
4087         for ac_prog in ar gar
4088 do
4089   # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093 if test "${ac_cv_prog_AR+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   if test -n "$AR"; then
4097   ac_cv_prog_AR="$AR" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102   IFS=$as_save_IFS
4103   test -z "$as_dir" && as_dir=.
4104   for ac_exec_ext in '' $ac_executable_extensions; do
4105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106     ac_cv_prog_AR="$ac_prog"
4107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108     break 2
4109   fi
4110 done
4111 done
4112
4113 fi
4114 fi
4115 AR=$ac_cv_prog_AR
4116 if test -n "$AR"; then
4117   echo "$as_me:$LINENO: result: $AR" >&5
4118 echo "${ECHO_T}$AR" >&6
4119 else
4120   echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4122 fi
4123
4124   test -n "$AR" && break
4125 done
4126 test -n "$AR" || AR="missing"
4127
4128
4129         if test "${AR}" = "missing" ; then
4130                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4131 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4132    { (exit 1); exit 1; }; }
4133         fi
4134 fi
4135
4136
4137
4138
4139
4140 # Check whether --enable-fast-install or --disable-fast-install was given.
4141 if test "${enable_fast_install+set}" = set; then
4142   enableval="$enable_fast_install"
4143   p=${PACKAGE-default}
4144     case $enableval in
4145     yes) enable_fast_install=yes ;;
4146     no) enable_fast_install=no ;;
4147     *)
4148       enable_fast_install=no
4149       # Look at the argument we got.  We use all the common list separators.
4150       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4151       for pkg in $enableval; do
4152         IFS="$lt_save_ifs"
4153         if test "X$pkg" = "X$p"; then
4154           enable_fast_install=yes
4155         fi
4156       done
4157       IFS="$lt_save_ifs"
4158       ;;
4159     esac
4160 else
4161   enable_fast_install=yes
4162 fi;
4163
4164 DEPDIR="${am__leading_dot}deps"
4165
4166           ac_config_commands="$ac_config_commands depfiles"
4167
4168
4169 am_make=${MAKE-make}
4170 cat > confinc << 'END'
4171 am__doit:
4172         @echo done
4173 .PHONY: am__doit
4174 END
4175 # If we don't find an include directive, just comment out the code.
4176 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4177 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4178 am__include="#"
4179 am__quote=
4180 _am_result=none
4181 # First try GNU make style include.
4182 echo "include confinc" > confmf
4183 # We grep out `Entering directory' and `Leaving directory'
4184 # messages which can occur if `w' ends up in MAKEFLAGS.
4185 # In particular we don't look at `^make:' because GNU make might
4186 # be invoked under some other name (usually "gmake"), in which
4187 # case it prints its new name instead of `make'.
4188 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4189    am__include=include
4190    am__quote=
4191    _am_result=GNU
4192 fi
4193 # Now try BSD make style include.
4194 if test "$am__include" = "#"; then
4195    echo '.include "confinc"' > confmf
4196    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4197       am__include=.include
4198       am__quote="\""
4199       _am_result=BSD
4200    fi
4201 fi
4202
4203
4204 echo "$as_me:$LINENO: result: $_am_result" >&5
4205 echo "${ECHO_T}$_am_result" >&6
4206 rm -f confinc confmf
4207
4208 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4209 if test "${enable_dependency_tracking+set}" = set; then
4210   enableval="$enable_dependency_tracking"
4211
4212 fi;
4213 if test "x$enable_dependency_tracking" != xno; then
4214   am_depcomp="$ac_aux_dir/depcomp"
4215   AMDEPBACKSLASH='\'
4216 fi
4217
4218
4219 if test "x$enable_dependency_tracking" != xno; then
4220   AMDEP_TRUE=
4221   AMDEP_FALSE='#'
4222 else
4223   AMDEP_TRUE='#'
4224   AMDEP_FALSE=
4225 fi
4226
4227
4228
4229 ac_ext=c
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 if test -n "$ac_tool_prefix"; then
4235   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_CC+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   if test -n "$CC"; then
4243   ac_cv_prog_CC="$CC" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   for ac_exec_ext in '' $ac_executable_extensions; do
4251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257 done
4258
4259 fi
4260 fi
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263   echo "$as_me:$LINENO: result: $CC" >&5
4264 echo "${ECHO_T}$CC" >&6
4265 else
4266   echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268 fi
4269
4270 fi
4271 if test -z "$ac_cv_prog_CC"; then
4272   ac_ct_CC=$CC
4273   # Extract the first word of "gcc", so it can be a program name with args.
4274 set dummy gcc; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   if test -n "$ac_ct_CC"; then
4281   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_exec_ext in '' $ac_executable_extensions; do
4289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290     ac_cv_prog_ac_ct_CC="gcc"
4291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295 done
4296
4297 fi
4298 fi
4299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300 if test -n "$ac_ct_CC"; then
4301   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4302 echo "${ECHO_T}$ac_ct_CC" >&6
4303 else
4304   echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4306 fi
4307
4308   CC=$ac_ct_CC
4309 else
4310   CC="$ac_cv_prog_CC"
4311 fi
4312
4313 if test -z "$CC"; then
4314   if test -n "$ac_tool_prefix"; then
4315   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}cc; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_CC+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   if test -n "$CC"; then
4323   ac_cv_prog_CC="$CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330   for ac_exec_ext in '' $ac_executable_extensions; do
4331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332     ac_cv_prog_CC="${ac_tool_prefix}cc"
4333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337 done
4338
4339 fi
4340 fi
4341 CC=$ac_cv_prog_CC
4342 if test -n "$CC"; then
4343   echo "$as_me:$LINENO: result: $CC" >&5
4344 echo "${ECHO_T}$CC" >&6
4345 else
4346   echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348 fi
4349
4350 fi
4351 if test -z "$ac_cv_prog_CC"; then
4352   ac_ct_CC=$CC
4353   # Extract the first word of "cc", so it can be a program name with args.
4354 set dummy cc; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   if test -n "$ac_ct_CC"; then
4361   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368   for ac_exec_ext in '' $ac_executable_extensions; do
4369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_prog_ac_ct_CC="cc"
4371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375 done
4376
4377 fi
4378 fi
4379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4380 if test -n "$ac_ct_CC"; then
4381   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4382 echo "${ECHO_T}$ac_ct_CC" >&6
4383 else
4384   echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386 fi
4387
4388   CC=$ac_ct_CC
4389 else
4390   CC="$ac_cv_prog_CC"
4391 fi
4392
4393 fi
4394 if test -z "$CC"; then
4395   # Extract the first word of "cc", so it can be a program name with args.
4396 set dummy cc; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_CC+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test -n "$CC"; then
4403   ac_cv_prog_CC="$CC" # Let the user override the test.
4404 else
4405   ac_prog_rejected=no
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4414        ac_prog_rejected=yes
4415        continue
4416      fi
4417     ac_cv_prog_CC="cc"
4418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419     break 2
4420   fi
4421 done
4422 done
4423
4424 if test $ac_prog_rejected = yes; then
4425   # We found a bogon in the path, so make sure we never use it.
4426   set dummy $ac_cv_prog_CC
4427   shift
4428   if test $# != 0; then
4429     # We chose a different compiler from the bogus one.
4430     # However, it has the same basename, so the bogon will be chosen
4431     # first if we set CC to just the basename; use the full file name.
4432     shift
4433     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4434   fi
4435 fi
4436 fi
4437 fi
4438 CC=$ac_cv_prog_CC
4439 if test -n "$CC"; then
4440   echo "$as_me:$LINENO: result: $CC" >&5
4441 echo "${ECHO_T}$CC" >&6
4442 else
4443   echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4445 fi
4446
4447 fi
4448 if test -z "$CC"; then
4449   if test -n "$ac_tool_prefix"; then
4450   for ac_prog in cl
4451   do
4452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4454 echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_prog_CC+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test -n "$CC"; then
4460   ac_cv_prog_CC="$CC" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475
4476 fi
4477 fi
4478 CC=$ac_cv_prog_CC
4479 if test -n "$CC"; then
4480   echo "$as_me:$LINENO: result: $CC" >&5
4481 echo "${ECHO_T}$CC" >&6
4482 else
4483   echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6
4485 fi
4486
4487     test -n "$CC" && break
4488   done
4489 fi
4490 if test -z "$CC"; then
4491   ac_ct_CC=$CC
4492   for ac_prog in cl
4493 do
4494   # Extract the first word of "$ac_prog", so it can be a program name with args.
4495 set dummy $ac_prog; ac_word=$2
4496 echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   if test -n "$ac_ct_CC"; then
4502   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509   for ac_exec_ext in '' $ac_executable_extensions; do
4510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511     ac_cv_prog_ac_ct_CC="$ac_prog"
4512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516 done
4517
4518 fi
4519 fi
4520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4521 if test -n "$ac_ct_CC"; then
4522   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4523 echo "${ECHO_T}$ac_ct_CC" >&6
4524 else
4525   echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4527 fi
4528
4529   test -n "$ac_ct_CC" && break
4530 done
4531
4532   CC=$ac_ct_CC
4533 fi
4534
4535 fi
4536
4537
4538 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4539 See \`config.log' for more details." >&5
4540 echo "$as_me: error: no acceptable C compiler found in \$PATH
4541 See \`config.log' for more details." >&2;}
4542    { (exit 1); exit 1; }; }
4543
4544 # Provide some information about the compiler.
4545 echo "$as_me:$LINENO:" \
4546      "checking for C compiler version" >&5
4547 ac_compiler=`set X $ac_compile; echo $2`
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4549   (eval $ac_compiler --version </dev/null >&5) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4554   (eval $ac_compiler -v </dev/null >&5) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }
4558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4559   (eval $ac_compiler -V </dev/null >&5) 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }
4563
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h.  */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h.  */
4570
4571 int
4572 main ()
4573 {
4574
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 ac_clean_files_save=$ac_clean_files
4580 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4581 # Try to create an executable without -o first, disregard a.out.
4582 # It will help us diagnose broken compilers, and finding out an intuition
4583 # of exeext.
4584 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4585 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4587 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4588   (eval $ac_link_default) 2>&5
4589   ac_status=$?
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); }; then
4592   # Find the output, starting from the most likely.  This scheme is
4593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4594 # resort.
4595
4596 # Be careful to initialize this variable, since it used to be cached.
4597 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4598 ac_cv_exeext=
4599 # b.out is created by i960 compilers.
4600 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4601 do
4602   test -f "$ac_file" || continue
4603   case $ac_file in
4604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4605         ;;
4606     conftest.$ac_ext )
4607         # This is the source file.
4608         ;;
4609     [ab].out )
4610         # We found the default executable, but exeext='' is most
4611         # certainly right.
4612         break;;
4613     *.* )
4614         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615         # FIXME: I believe we export ac_cv_exeext for Libtool,
4616         # but it would be cool to find out if it's true.  Does anybody
4617         # maintain Libtool? --akim.
4618         export ac_cv_exeext
4619         break;;
4620     * )
4621         break;;
4622   esac
4623 done
4624 else
4625   echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4627
4628 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: C compiler cannot create executables
4631 See \`config.log' for more details." >&2;}
4632    { (exit 77); exit 77; }; }
4633 fi
4634
4635 ac_exeext=$ac_cv_exeext
4636 echo "$as_me:$LINENO: result: $ac_file" >&5
4637 echo "${ECHO_T}$ac_file" >&6
4638
4639 # Check the compiler produces executables we can run.  If not, either
4640 # the compiler is broken, or we cross compile.
4641 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4644 # If not cross compiling, check that we can run a simple program.
4645 if test "$cross_compiling" != yes; then
4646   if { ac_try='./$ac_file'
4647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648   (eval $ac_try) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; }; then
4652     cross_compiling=no
4653   else
4654     if test "$cross_compiling" = maybe; then
4655         cross_compiling=yes
4656     else
4657         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4658 If you meant to cross compile, use \`--host'.
4659 See \`config.log' for more details." >&5
4660 echo "$as_me: error: cannot run C compiled programs.
4661 If you meant to cross compile, use \`--host'.
4662 See \`config.log' for more details." >&2;}
4663    { (exit 1); exit 1; }; }
4664     fi
4665   fi
4666 fi
4667 echo "$as_me:$LINENO: result: yes" >&5
4668 echo "${ECHO_T}yes" >&6
4669
4670 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4671 ac_clean_files=$ac_clean_files_save
4672 # Check the compiler produces executables we can run.  If not, either
4673 # the compiler is broken, or we cross compile.
4674 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4675 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4676 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4677 echo "${ECHO_T}$cross_compiling" >&6
4678
4679 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4680 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682   (eval $ac_link) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; then
4686   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4687 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4688 # work properly (i.e., refer to `conftest.exe'), while it won't with
4689 # `rm'.
4690 for ac_file in conftest.exe conftest conftest.*; do
4691   test -f "$ac_file" || continue
4692   case $ac_file in
4693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4694     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4695           export ac_cv_exeext
4696           break;;
4697     * ) break;;
4698   esac
4699 done
4700 else
4701   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4704 See \`config.log' for more details." >&2;}
4705    { (exit 1); exit 1; }; }
4706 fi
4707
4708 rm -f conftest$ac_cv_exeext
4709 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4710 echo "${ECHO_T}$ac_cv_exeext" >&6
4711
4712 rm -f conftest.$ac_ext
4713 EXEEXT=$ac_cv_exeext
4714 ac_exeext=$EXEEXT
4715 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4716 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4717 if test "${ac_cv_objext+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726
4727 int
4728 main ()
4729 {
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.o conftest.obj
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737   (eval $ac_compile) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; then
4741   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4742   case $ac_file in
4743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4744     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4745        break;;
4746   esac
4747 done
4748 else
4749   echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4753 See \`config.log' for more details." >&5
4754 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4755 See \`config.log' for more details." >&2;}
4756    { (exit 1); exit 1; }; }
4757 fi
4758
4759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4760 fi
4761 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4762 echo "${ECHO_T}$ac_cv_objext" >&6
4763 OBJEXT=$ac_cv_objext
4764 ac_objext=$OBJEXT
4765 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h.  */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h.  */
4776
4777 int
4778 main ()
4779 {
4780 #ifndef __GNUC__
4781        choke me
4782 #endif
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } &&
4797          { ac_try='test -z "$ac_c_werror_flag"
4798                          || test ! -s conftest.err'
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); }; } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_compiler_gnu=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_compiler_gnu=no
4816 fi
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4819
4820 fi
4821 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4823 GCC=`test $ac_compiler_gnu = yes && echo yes`
4824 ac_test_CFLAGS=${CFLAGS+set}
4825 ac_save_CFLAGS=$CFLAGS
4826 CFLAGS="-g"
4827 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4829 if test "${ac_cv_prog_cc_g+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h.  */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h.  */
4838
4839 int
4840 main ()
4841 {
4842
4843   ;
4844   return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849   (eval $ac_compile) 2>conftest.er1
4850   ac_status=$?
4851   grep -v '^ *+' conftest.er1 >conftest.err
4852   rm -f conftest.er1
4853   cat conftest.err >&5
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); } &&
4856          { ac_try='test -z "$ac_c_werror_flag"
4857                          || test ! -s conftest.err'
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); }; } &&
4863          { ac_try='test -s conftest.$ac_objext'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; }; then
4869   ac_cv_prog_cc_g=yes
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_cv_prog_cc_g=no
4875 fi
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877 fi
4878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4880 if test "$ac_test_CFLAGS" = set; then
4881   CFLAGS=$ac_save_CFLAGS
4882 elif test $ac_cv_prog_cc_g = yes; then
4883   if test "$GCC" = yes; then
4884     CFLAGS="-g -O2"
4885   else
4886     CFLAGS="-g"
4887   fi
4888 else
4889   if test "$GCC" = yes; then
4890     CFLAGS="-O2"
4891   else
4892     CFLAGS=
4893   fi
4894 fi
4895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   ac_cv_prog_cc_stdc=no
4901 ac_save_CC=$CC
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 #include <stdarg.h>
4909 #include <stdio.h>
4910 #include <sys/types.h>
4911 #include <sys/stat.h>
4912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4913 struct buf { int x; };
4914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4915 static char *e (p, i)
4916      char **p;
4917      int i;
4918 {
4919   return p[i];
4920 }
4921 static char *f (char * (*g) (char **, int), char **p, ...)
4922 {
4923   char *s;
4924   va_list v;
4925   va_start (v,p);
4926   s = g (p, va_arg (v,int));
4927   va_end (v);
4928   return s;
4929 }
4930
4931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4932    function prototypes and stuff, but not '\xHH' hex character constants.
4933    These don't provoke an error unfortunately, instead are silently treated
4934    as 'x'.  The following induces an error, until -std1 is added to get
4935    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4936    array size at least.  It's necessary to write '\x00'==0 to get something
4937    that's true only with -std1.  */
4938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939
4940 int test (int i, double x);
4941 struct s1 {int (*f) (int a);};
4942 struct s2 {int (*f) (double a);};
4943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4944 int argc;
4945 char **argv;
4946 int
4947 main ()
4948 {
4949 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 # Don't try gcc -ansi; that turns off useful extensions and
4955 # breaks some systems' header files.
4956 # AIX                   -qlanglvl=ansi
4957 # Ultrix and OSF/1      -std1
4958 # HP-UX 10.20 and later -Ae
4959 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4960 # SVR4                  -Xc -D__EXTENSIONS__
4961 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4962 do
4963   CC="$ac_save_CC $ac_arg"
4964   rm -f conftest.$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966   (eval $ac_compile) 2>conftest.er1
4967   ac_status=$?
4968   grep -v '^ *+' conftest.er1 >conftest.err
4969   rm -f conftest.er1
4970   cat conftest.err >&5
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } &&
4973          { ac_try='test -z "$ac_c_werror_flag"
4974                          || test ! -s conftest.err'
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); }; } &&
4980          { ac_try='test -s conftest.$ac_objext'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; }; then
4986   ac_cv_prog_cc_stdc=$ac_arg
4987 break
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 fi
4993 rm -f conftest.err conftest.$ac_objext
4994 done
4995 rm -f conftest.$ac_ext conftest.$ac_objext
4996 CC=$ac_save_CC
4997
4998 fi
4999
5000 case "x$ac_cv_prog_cc_stdc" in
5001   x|xno)
5002     echo "$as_me:$LINENO: result: none needed" >&5
5003 echo "${ECHO_T}none needed" >&6 ;;
5004   *)
5005     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5006 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5007     CC="$CC $ac_cv_prog_cc_stdc" ;;
5008 esac
5009
5010 # Some people use a C++ compiler to compile C.  Since we use `exit',
5011 # in C++ we need to declare it.  In case someone uses the same compiler
5012 # for both compiling C and C++ we need to have the C++ compiler decide
5013 # the declaration of exit, since it's the most demanding environment.
5014 cat >conftest.$ac_ext <<_ACEOF
5015 #ifndef __cplusplus
5016   choke me
5017 #endif
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021   (eval $ac_compile) 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } &&
5028          { ac_try='test -z "$ac_c_werror_flag"
5029                          || test ! -s conftest.err'
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); }; } &&
5035          { ac_try='test -s conftest.$ac_objext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   for ac_declaration in \
5042    '' \
5043    'extern "C" void std::exit (int) throw (); using std::exit;' \
5044    'extern "C" void std::exit (int); using std::exit;' \
5045    'extern "C" void exit (int) throw ();' \
5046    'extern "C" void exit (int);' \
5047    'void exit (int);'
5048 do
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 $ac_declaration
5056 #include <stdlib.h>
5057 int
5058 main ()
5059 {
5060 exit (42);
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } &&
5074          { ac_try='test -z "$ac_c_werror_flag"
5075                          || test ! -s conftest.err'
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); }; } &&
5081          { ac_try='test -s conftest.$ac_objext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   :
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 continue
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 $ac_declaration
5102 int
5103 main ()
5104 {
5105 exit (42);
5106   ;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112   (eval $ac_compile) 2>conftest.er1
5113   ac_status=$?
5114   grep -v '^ *+' conftest.er1 >conftest.err
5115   rm -f conftest.er1
5116   cat conftest.err >&5
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); } &&
5119          { ac_try='test -z "$ac_c_werror_flag"
5120                          || test ! -s conftest.err'
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); }; } &&
5126          { ac_try='test -s conftest.$ac_objext'
5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128   (eval $ac_try) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }; }; then
5132   break
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 fi
5138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5139 done
5140 rm -f conftest*
5141 if test -n "$ac_declaration"; then
5142   echo '#ifdef __cplusplus' >>confdefs.h
5143   echo $ac_declaration      >>confdefs.h
5144   echo '#endif'             >>confdefs.h
5145 fi
5146
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 fi
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153 ac_ext=c
5154 ac_cpp='$CPP $CPPFLAGS'
5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158
5159 depcc="$CC"   am_compiler_list=
5160
5161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5167   # We make a subdir and do the tests there.  Otherwise we can end up
5168   # making bogus files that we don't know about and never remove.  For
5169   # instance it was reported that on HP-UX the gcc test will end up
5170   # making a dummy file named `D' -- because `-MD' means `put the output
5171   # in D'.
5172   mkdir conftest.dir
5173   # Copy depcomp to subdir because otherwise we won't find it if we're
5174   # using a relative directory.
5175   cp "$am_depcomp" conftest.dir
5176   cd conftest.dir
5177   # We will build objects and dependencies in a subdirectory because
5178   # it helps to detect inapplicable dependency modes.  For instance
5179   # both Tru64's cc and ICC support -MD to output dependencies as a
5180   # side effect of compilation, but ICC will put the dependencies in
5181   # the current directory while Tru64 will put them in the object
5182   # directory.
5183   mkdir sub
5184
5185   am_cv_CC_dependencies_compiler_type=none
5186   if test "$am_compiler_list" = ""; then
5187      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5188   fi
5189   for depmode in $am_compiler_list; do
5190     # Setup a source with many dependencies, because some compilers
5191     # like to wrap large dependency lists on column 80 (with \), and
5192     # we should not choose a depcomp mode which is confused by this.
5193     #
5194     # We need to recreate these files for each test, as the compiler may
5195     # overwrite some of them when testing with obscure command lines.
5196     # This happens at least with the AIX C compiler.
5197     : > sub/conftest.c
5198     for i in 1 2 3 4 5 6; do
5199       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5201       # Solaris 8's {/usr,}/bin/sh.
5202       touch sub/conftst$i.h
5203     done
5204     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5205
5206     case $depmode in
5207     nosideeffect)
5208       # after this tag, mechanisms are not by side-effect, so they'll
5209       # only be used when explicitly requested
5210       if test "x$enable_dependency_tracking" = xyes; then
5211         continue
5212       else
5213         break
5214       fi
5215       ;;
5216     none) break ;;
5217     esac
5218     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5219     # mode.  It turns out that the SunPro C++ compiler does not properly
5220     # handle `-M -o', and we need to detect this.
5221     if depmode=$depmode \
5222        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5223        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5224        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5225          >/dev/null 2>conftest.err &&
5226        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5227        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5228        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5229       # icc doesn't choke on unknown options, it will just issue warnings
5230       # or remarks (even with -Werror).  So we grep stderr for any message
5231       # that says an option was ignored or not supported.
5232       # When given -MP, icc 7.0 and 7.1 complain thusly:
5233       #   icc: Command line warning: ignoring option '-M'; no argument required
5234       # The diagnosis changed in icc 8.0:
5235       #   icc: Command line remark: option '-MP' not supported
5236       if (grep 'ignoring option' conftest.err ||
5237           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5238         am_cv_CC_dependencies_compiler_type=$depmode
5239         break
5240       fi
5241     fi
5242   done
5243
5244   cd ..
5245   rm -rf conftest.dir
5246 else
5247   am_cv_CC_dependencies_compiler_type=none
5248 fi
5249
5250 fi
5251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5254
5255
5256
5257 if
5258   test "x$enable_dependency_tracking" != xno \
5259   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5260   am__fastdepCC_TRUE=
5261   am__fastdepCC_FALSE='#'
5262 else
5263   am__fastdepCC_TRUE='#'
5264   am__fastdepCC_FALSE=
5265 fi
5266
5267
5268 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5269 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5270 if test "${lt_cv_path_SED+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   # Loop through the user's path and test for sed and gsed.
5274 # Then use that list of sed's as ones to test for truncation.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280   for lt_ac_prog in sed gsed; do
5281     for ac_exec_ext in '' $ac_executable_extensions; do
5282       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5283         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5284       fi
5285     done
5286   done
5287 done
5288 lt_ac_max=0
5289 lt_ac_count=0
5290 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5291 # along with /bin/sed that truncates output.
5292 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5293   test ! -f $lt_ac_sed && continue
5294   cat /dev/null > conftest.in
5295   lt_ac_count=0
5296   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5297   # Check for GNU sed and select it if it is found.
5298   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5299     lt_cv_path_SED=$lt_ac_sed
5300     break
5301   fi
5302   while true; do
5303     cat conftest.in conftest.in >conftest.tmp
5304     mv conftest.tmp conftest.in
5305     cp conftest.in conftest.nl
5306     echo >>conftest.nl
5307     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5308     cmp -s conftest.out conftest.nl || break
5309     # 10000 chars as input seems more than enough
5310     test $lt_ac_count -gt 10 && break
5311     lt_ac_count=`expr $lt_ac_count + 1`
5312     if test $lt_ac_count -gt $lt_ac_max; then
5313       lt_ac_max=$lt_ac_count
5314       lt_cv_path_SED=$lt_ac_sed
5315     fi
5316   done
5317 done
5318
5319 fi
5320
5321 SED=$lt_cv_path_SED
5322 echo "$as_me:$LINENO: result: $SED" >&5
5323 echo "${ECHO_T}$SED" >&6
5324
5325 echo "$as_me:$LINENO: checking for egrep" >&5
5326 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5327 if test "${ac_cv_prog_egrep+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5331     then ac_cv_prog_egrep='grep -E'
5332     else ac_cv_prog_egrep='egrep'
5333     fi
5334 fi
5335 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5336 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5337  EGREP=$ac_cv_prog_egrep
5338
5339
5340
5341 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5342 if test "${with_gnu_ld+set}" = set; then
5343   withval="$with_gnu_ld"
5344   test "$withval" = no || with_gnu_ld=yes
5345 else
5346   with_gnu_ld=no
5347 fi;
5348 ac_prog=ld
5349 if test "$GCC" = yes; then
5350   # Check if gcc -print-prog-name=ld gives a path.
5351   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5352 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5353   case $host in
5354   *-*-mingw*)
5355     # gcc leaves a trailing carriage return which upsets mingw
5356     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5357   *)
5358     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5359   esac
5360   case $ac_prog in
5361     # Accept absolute paths.
5362     [\\/]* | ?:[\\/]*)
5363       re_direlt='/[^/][^/]*/\.\./'
5364       # Canonicalize the pathname of ld
5365       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5366       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5367         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5368       done
5369       test -z "$LD" && LD="$ac_prog"
5370       ;;
5371   "")
5372     # If it fails, then pretend we aren't using GCC.
5373     ac_prog=ld
5374     ;;
5375   *)
5376     # If it is relative, then search for the first ld in PATH.
5377     with_gnu_ld=unknown
5378     ;;
5379   esac
5380 elif test "$with_gnu_ld" = yes; then
5381   echo "$as_me:$LINENO: checking for GNU ld" >&5
5382 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5383 else
5384   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5385 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5386 fi
5387 if test "${lt_cv_path_LD+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   if test -z "$LD"; then
5391   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5392   for ac_dir in $PATH; do
5393     IFS="$lt_save_ifs"
5394     test -z "$ac_dir" && ac_dir=.
5395     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5396       lt_cv_path_LD="$ac_dir/$ac_prog"
5397       # Check to see if the program is GNU ld.  I'd rather use --version,
5398       # but apparently some variants of GNU ld only accept -v.
5399       # Break only if it was the GNU/non-GNU ld that we prefer.
5400       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5401       *GNU* | *'with BFD'*)
5402         test "$with_gnu_ld" != no && break
5403         ;;
5404       *)
5405         test "$with_gnu_ld" != yes && break
5406         ;;
5407       esac
5408     fi
5409   done
5410   IFS="$lt_save_ifs"
5411 else
5412   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5413 fi
5414 fi
5415
5416 LD="$lt_cv_path_LD"
5417 if test -n "$LD"; then
5418   echo "$as_me:$LINENO: result: $LD" >&5
5419 echo "${ECHO_T}$LD" >&6
5420 else
5421   echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5423 fi
5424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5426    { (exit 1); exit 1; }; }
5427 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5429 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5433 case `$LD -v 2>&1 </dev/null` in
5434 *GNU* | *'with BFD'*)
5435   lt_cv_prog_gnu_ld=yes
5436   ;;
5437 *)
5438   lt_cv_prog_gnu_ld=no
5439   ;;
5440 esac
5441 fi
5442 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5443 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5444 with_gnu_ld=$lt_cv_prog_gnu_ld
5445
5446
5447 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5448 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5449 if test "${lt_cv_ld_reload_flag+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   lt_cv_ld_reload_flag='-r'
5453 fi
5454 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5455 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5456 reload_flag=$lt_cv_ld_reload_flag
5457 case $reload_flag in
5458 "" | " "*) ;;
5459 *) reload_flag=" $reload_flag" ;;
5460 esac
5461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5462 case $host_os in
5463   darwin*)
5464     if test "$GCC" = yes; then
5465       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5466     else
5467       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5468     fi
5469     ;;
5470 esac
5471
5472 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5473 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5474 if test "${lt_cv_path_NM+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   if test -n "$NM"; then
5478   # Let the user override the test.
5479   lt_cv_path_NM="$NM"
5480 else
5481   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5483     IFS="$lt_save_ifs"
5484     test -z "$ac_dir" && ac_dir=.
5485     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5486     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5487       # Check to see if the nm accepts a BSD-compat flag.
5488       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5489       #   nm: unknown option "B" ignored
5490       # Tru64's nm complains that /dev/null is an invalid object file
5491       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5492       */dev/null* | *'Invalid file or object type'*)
5493         lt_cv_path_NM="$tmp_nm -B"
5494         break
5495         ;;
5496       *)
5497         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5498         */dev/null*)
5499           lt_cv_path_NM="$tmp_nm -p"
5500           break
5501           ;;
5502         *)
5503           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5504           continue # so that we can try to find one that supports BSD flags
5505           ;;
5506         esac
5507       esac
5508     fi
5509   done
5510   IFS="$lt_save_ifs"
5511   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5512 fi
5513 fi
5514 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5515 echo "${ECHO_T}$lt_cv_path_NM" >&6
5516 NM="$lt_cv_path_NM"
5517
5518 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5519 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5520 LN_S=$as_ln_s
5521 if test "$LN_S" = "ln -s"; then
5522   echo "$as_me:$LINENO: result: yes" >&5
5523 echo "${ECHO_T}yes" >&6
5524 else
5525   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5526 echo "${ECHO_T}no, using $LN_S" >&6
5527 fi
5528
5529 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5530 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5531 if test "${lt_cv_deplibs_check_method+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   lt_cv_file_magic_cmd='$MAGIC_CMD'
5535 lt_cv_file_magic_test_file=
5536 lt_cv_deplibs_check_method='unknown'
5537 # Need to set the preceding variable on all platforms that support
5538 # interlibrary dependencies.
5539 # 'none' -- dependencies not supported.
5540 # `unknown' -- same as none, but documents that we really don't know.
5541 # 'pass_all' -- all dependencies passed with no checks.
5542 # 'test_compile' -- check by making test program.
5543 # 'file_magic [[regex]]' -- check by looking for files in library path
5544 # which responds to the $file_magic_cmd with a given extended regex.
5545 # If you have `file' or equivalent on your system and you're not sure
5546 # whether `pass_all' will *always* work, you probably want this one.
5547
5548 case $host_os in
5549 aix4* | aix5*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 beos*)
5554   lt_cv_deplibs_check_method=pass_all
5555   ;;
5556
5557 bsdi[45]*)
5558   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5559   lt_cv_file_magic_cmd='/usr/bin/file -L'
5560   lt_cv_file_magic_test_file=/shlib/libc.so
5561   ;;
5562
5563 cygwin*)
5564   # func_win32_libid is a shell function defined in ltmain.sh
5565   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5566   lt_cv_file_magic_cmd='func_win32_libid'
5567   ;;
5568
5569 mingw* | pw32*)
5570   # Base MSYS/MinGW do not provide the 'file' command needed by
5571   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5572   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5573   lt_cv_file_magic_cmd='$OBJDUMP -f'
5574   ;;
5575
5576 darwin* | rhapsody*)
5577   lt_cv_deplibs_check_method=pass_all
5578   ;;
5579
5580 freebsd* | kfreebsd*-gnu | dragonfly*)
5581   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5582     case $host_cpu in
5583     i*86 )
5584       # Not sure whether the presence of OpenBSD here was a mistake.
5585       # Let's accept both of them until this is cleared up.
5586       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5587       lt_cv_file_magic_cmd=/usr/bin/file
5588       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5589       ;;
5590     esac
5591   else
5592     lt_cv_deplibs_check_method=pass_all
5593   fi
5594   ;;
5595
5596 gnu*)
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 hpux10.20* | hpux11*)
5601   lt_cv_file_magic_cmd=/usr/bin/file
5602   case $host_cpu in
5603   ia64*)
5604     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5605     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5606     ;;
5607   hppa*64*)
5608     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]'
5609     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5610     ;;
5611   *)
5612     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5613     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5614     ;;
5615   esac
5616   ;;
5617
5618 irix5* | irix6* | nonstopux*)
5619   case $LD in
5620   *-32|*"-32 ") libmagic=32-bit;;
5621   *-n32|*"-n32 ") libmagic=N32;;
5622   *-64|*"-64 ") libmagic=64-bit;;
5623   *) libmagic=never-match;;
5624   esac
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5627
5628 # This must be Linux ELF.
5629 linux*)
5630   lt_cv_deplibs_check_method=pass_all
5631   ;;
5632
5633 netbsd*)
5634   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5635     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636   else
5637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5638   fi
5639   ;;
5640
5641 newos6*)
5642   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5643   lt_cv_file_magic_cmd=/usr/bin/file
5644   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5645   ;;
5646
5647 nto-qnx*)
5648   lt_cv_deplibs_check_method=unknown
5649   ;;
5650
5651 openbsd*)
5652   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5653     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5654   else
5655     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5656   fi
5657   ;;
5658
5659 osf3* | osf4* | osf5*)
5660   lt_cv_deplibs_check_method=pass_all
5661   ;;
5662
5663 sco3.2v5*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666
5667 solaris*)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5672   case $host_vendor in
5673   motorola)
5674     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]'
5675     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5676     ;;
5677   ncr)
5678     lt_cv_deplibs_check_method=pass_all
5679     ;;
5680   sequent)
5681     lt_cv_file_magic_cmd='/bin/file'
5682     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5683     ;;
5684   sni)
5685     lt_cv_file_magic_cmd='/bin/file'
5686     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687     lt_cv_file_magic_test_file=/lib/libc.so
5688     ;;
5689   siemens)
5690     lt_cv_deplibs_check_method=pass_all
5691     ;;
5692   esac
5693   ;;
5694
5695 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5696   lt_cv_deplibs_check_method=pass_all
5697   ;;
5698 esac
5699
5700 fi
5701 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5702 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5703 file_magic_cmd=$lt_cv_file_magic_cmd
5704 deplibs_check_method=$lt_cv_deplibs_check_method
5705 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5706
5707
5708
5709
5710 # If no C compiler was specified, use CC.
5711 LTCC=${LTCC-"$CC"}
5712
5713 # Allow CC to be a program name with arguments.
5714 compiler=$CC
5715
5716
5717 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5718 if test "${enable_libtool_lock+set}" = set; then
5719   enableval="$enable_libtool_lock"
5720
5721 fi;
5722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5723
5724 # Some flags need to be propagated to the compiler or linker for good
5725 # libtool support.
5726 case $host in
5727 ia64-*-hpux*)
5728   # Find out which ABI we are using.
5729   echo 'int i;' > conftest.$ac_ext
5730   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731   (eval $ac_compile) 2>&5
5732   ac_status=$?
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); }; then
5735     case `/usr/bin/file conftest.$ac_objext` in
5736     *ELF-32*)
5737       HPUX_IA64_MODE="32"
5738       ;;
5739     *ELF-64*)
5740       HPUX_IA64_MODE="64"
5741       ;;
5742     esac
5743   fi
5744   rm -rf conftest*
5745   ;;
5746 *-*-irix6*)
5747   # Find out which ABI we are using.
5748   echo '#line 5748 "configure"' > conftest.$ac_ext
5749   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750   (eval $ac_compile) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; then
5754    if test "$lt_cv_prog_gnu_ld" = yes; then
5755     case `/usr/bin/file conftest.$ac_objext` in
5756     *32-bit*)
5757       LD="${LD-ld} -melf32bsmip"
5758       ;;
5759     *N32*)
5760       LD="${LD-ld} -melf32bmipn32"
5761       ;;
5762     *64-bit*)
5763       LD="${LD-ld} -melf64bmip"
5764       ;;
5765     esac
5766    else
5767     case `/usr/bin/file conftest.$ac_objext` in
5768     *32-bit*)
5769       LD="${LD-ld} -32"
5770       ;;
5771     *N32*)
5772       LD="${LD-ld} -n32"
5773       ;;
5774     *64-bit*)
5775       LD="${LD-ld} -64"
5776       ;;
5777     esac
5778    fi
5779   fi
5780   rm -rf conftest*
5781   ;;
5782
5783 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5784   # Find out which ABI we are using.
5785   echo 'int i;' > conftest.$ac_ext
5786   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787   (eval $ac_compile) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; then
5791     case `/usr/bin/file conftest.o` in
5792     *32-bit*)
5793       case $host in
5794         x86_64-*linux*)
5795           LD="${LD-ld} -m elf_i386"
5796           ;;
5797         ppc64-*linux*|powerpc64-*linux*)
5798           LD="${LD-ld} -m elf32ppclinux"
5799           ;;
5800         s390x-*linux*)
5801           LD="${LD-ld} -m elf_s390"
5802           ;;
5803         sparc64-*linux*)
5804           LD="${LD-ld} -m elf32_sparc"
5805           ;;
5806       esac
5807       ;;
5808     *64-bit*)
5809       case $host in
5810         x86_64-*linux*)
5811           LD="${LD-ld} -m elf_x86_64"
5812           ;;
5813         ppc*-*linux*|powerpc*-*linux*)
5814           LD="${LD-ld} -m elf64ppc"
5815           ;;
5816         s390*-*linux*)
5817           LD="${LD-ld} -m elf64_s390"
5818           ;;
5819         sparc*-*linux*)
5820           LD="${LD-ld} -m elf64_sparc"
5821           ;;
5822       esac
5823       ;;
5824     esac
5825   fi
5826   rm -rf conftest*
5827   ;;
5828
5829 *-*-sco3.2v5*)
5830   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5831   SAVE_CFLAGS="$CFLAGS"
5832   CFLAGS="$CFLAGS -belf"
5833   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5834 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5835 if test "${lt_cv_cc_needs_belf+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   ac_ext=c
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843
5844      cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h.  */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h.  */
5850
5851 int
5852 main ()
5853 {
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861   (eval $ac_link) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"
5869                          || test ! -s conftest.err'
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); }; } &&
5875          { ac_try='test -s conftest$ac_exeext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   lt_cv_cc_needs_belf=yes
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 lt_cv_cc_needs_belf=no
5887 fi
5888 rm -f conftest.err conftest.$ac_objext \
5889       conftest$ac_exeext conftest.$ac_ext
5890      ac_ext=c
5891 ac_cpp='$CPP $CPPFLAGS'
5892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895
5896 fi
5897 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5898 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5899   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5900     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5901     CFLAGS="$SAVE_CFLAGS"
5902   fi
5903   ;;
5904 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5905   if test -n "$ac_tool_prefix"; then
5906   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   if test -n "$DLLTOOL"; then
5914   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921   for ac_exec_ext in '' $ac_executable_extensions; do
5922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928 done
5929
5930 fi
5931 fi
5932 DLLTOOL=$ac_cv_prog_DLLTOOL
5933 if test -n "$DLLTOOL"; then
5934   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5935 echo "${ECHO_T}$DLLTOOL" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5939 fi
5940
5941 fi
5942 if test -z "$ac_cv_prog_DLLTOOL"; then
5943   ac_ct_DLLTOOL=$DLLTOOL
5944   # Extract the first word of "dlltool", so it can be a program name with args.
5945 set dummy dlltool; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   if test -n "$ac_ct_DLLTOOL"; then
5952   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967
5968   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5969 fi
5970 fi
5971 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5972 if test -n "$ac_ct_DLLTOOL"; then
5973   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5974 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5975 else
5976   echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5978 fi
5979
5980   DLLTOOL=$ac_ct_DLLTOOL
5981 else
5982   DLLTOOL="$ac_cv_prog_DLLTOOL"
5983 fi
5984
5985   if test -n "$ac_tool_prefix"; then
5986   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}as; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_AS+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   if test -n "$AS"; then
5994   ac_cv_prog_AS="$AS" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001   for ac_exec_ext in '' $ac_executable_extensions; do
6002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003     ac_cv_prog_AS="${ac_tool_prefix}as"
6004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008 done
6009
6010 fi
6011 fi
6012 AS=$ac_cv_prog_AS
6013 if test -n "$AS"; then
6014   echo "$as_me:$LINENO: result: $AS" >&5
6015 echo "${ECHO_T}$AS" >&6
6016 else
6017   echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6019 fi
6020
6021 fi
6022 if test -z "$ac_cv_prog_AS"; then
6023   ac_ct_AS=$AS
6024   # Extract the first word of "as", so it can be a program name with args.
6025 set dummy as; ac_word=$2
6026 echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   if test -n "$ac_ct_AS"; then
6032   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039   for ac_exec_ext in '' $ac_executable_extensions; do
6040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041     ac_cv_prog_ac_ct_AS="as"
6042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046 done
6047
6048   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6049 fi
6050 fi
6051 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6052 if test -n "$ac_ct_AS"; then
6053   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6054 echo "${ECHO_T}$ac_ct_AS" >&6
6055 else
6056   echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6
6058 fi
6059
6060   AS=$ac_ct_AS
6061 else
6062   AS="$ac_cv_prog_AS"
6063 fi
6064
6065   if test -n "$ac_tool_prefix"; then
6066   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   if test -n "$OBJDUMP"; then
6074   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081   for ac_exec_ext in '' $ac_executable_extensions; do
6082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088 done
6089
6090 fi
6091 fi
6092 OBJDUMP=$ac_cv_prog_OBJDUMP
6093 if test -n "$OBJDUMP"; then
6094   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6095 echo "${ECHO_T}$OBJDUMP" >&6
6096 else
6097   echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6099 fi
6100
6101 fi
6102 if test -z "$ac_cv_prog_OBJDUMP"; then
6103   ac_ct_OBJDUMP=$OBJDUMP
6104   # Extract the first word of "objdump", so it can be a program name with args.
6105 set dummy objdump; ac_word=$2
6106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test -n "$ac_ct_OBJDUMP"; then
6112   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119   for ac_exec_ext in '' $ac_executable_extensions; do
6120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126 done
6127
6128   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6129 fi
6130 fi
6131 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6132 if test -n "$ac_ct_OBJDUMP"; then
6133   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6134 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6135 else
6136   echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6
6138 fi
6139
6140   OBJDUMP=$ac_ct_OBJDUMP
6141 else
6142   OBJDUMP="$ac_cv_prog_OBJDUMP"
6143 fi
6144
6145   ;;
6146
6147 esac
6148
6149 need_locks="$enable_libtool_lock"
6150
6151
6152 ac_ext=c
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6158 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6159 # On Suns, sometimes $CPP names a directory.
6160 if test -n "$CPP" && test -d "$CPP"; then
6161   CPP=
6162 fi
6163 if test -z "$CPP"; then
6164   if test "${ac_cv_prog_CPP+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167       # Double quotes because CPP needs to be expanded
6168     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6169     do
6170       ac_preproc_ok=false
6171 for ac_c_preproc_warn_flag in '' yes
6172 do
6173   # Use a header file that comes with gcc, so configuring glibc
6174   # with a fresh cross-compiler works.
6175   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176   # <limits.h> exists even on freestanding compilers.
6177   # On the NeXT, cc -E runs the code through the compiler's parser,
6178   # not just through cpp. "Syntax error" is here to catch this case.
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 #ifdef __STDC__
6186 # include <limits.h>
6187 #else
6188 # include <assert.h>
6189 #endif
6190                      Syntax error
6191 _ACEOF
6192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } >/dev/null; then
6200   if test -s conftest.err; then
6201     ac_cpp_err=$ac_c_preproc_warn_flag
6202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6203   else
6204     ac_cpp_err=
6205   fi
6206 else
6207   ac_cpp_err=yes
6208 fi
6209 if test -z "$ac_cpp_err"; then
6210   :
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215   # Broken: fails on valid input.
6216 continue
6217 fi
6218 rm -f conftest.err conftest.$ac_ext
6219
6220   # OK, works on sane cases.  Now check whether non-existent headers
6221   # can be detected and how.
6222   cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228 #include <ac_nonexistent.h>
6229 _ACEOF
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } >/dev/null; then
6238   if test -s conftest.err; then
6239     ac_cpp_err=$ac_c_preproc_warn_flag
6240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6241   else
6242     ac_cpp_err=
6243   fi
6244 else
6245   ac_cpp_err=yes
6246 fi
6247 if test -z "$ac_cpp_err"; then
6248   # Broken: success on invalid input.
6249 continue
6250 else
6251   echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6253
6254   # Passes both tests.
6255 ac_preproc_ok=:
6256 break
6257 fi
6258 rm -f conftest.err conftest.$ac_ext
6259
6260 done
6261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6262 rm -f conftest.err conftest.$ac_ext
6263 if $ac_preproc_ok; then
6264   break
6265 fi
6266
6267     done
6268     ac_cv_prog_CPP=$CPP
6269
6270 fi
6271   CPP=$ac_cv_prog_CPP
6272 else
6273   ac_cv_prog_CPP=$CPP
6274 fi
6275 echo "$as_me:$LINENO: result: $CPP" >&5
6276 echo "${ECHO_T}$CPP" >&6
6277 ac_preproc_ok=false
6278 for ac_c_preproc_warn_flag in '' yes
6279 do
6280   # Use a header file that comes with gcc, so configuring glibc
6281   # with a fresh cross-compiler works.
6282   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283   # <limits.h> exists even on freestanding compilers.
6284   # On the NeXT, cc -E runs the code through the compiler's parser,
6285   # not just through cpp. "Syntax error" is here to catch this case.
6286   cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h.  */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h.  */
6292 #ifdef __STDC__
6293 # include <limits.h>
6294 #else
6295 # include <assert.h>
6296 #endif
6297                      Syntax error
6298 _ACEOF
6299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6301   ac_status=$?
6302   grep -v '^ *+' conftest.er1 >conftest.err
6303   rm -f conftest.er1
6304   cat conftest.err >&5
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } >/dev/null; then
6307   if test -s conftest.err; then
6308     ac_cpp_err=$ac_c_preproc_warn_flag
6309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6310   else
6311     ac_cpp_err=
6312   fi
6313 else
6314   ac_cpp_err=yes
6315 fi
6316 if test -z "$ac_cpp_err"; then
6317   :
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322   # Broken: fails on valid input.
6323 continue
6324 fi
6325 rm -f conftest.err conftest.$ac_ext
6326
6327   # OK, works on sane cases.  Now check whether non-existent headers
6328   # can be detected and how.
6329   cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h.  */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h.  */
6335 #include <ac_nonexistent.h>
6336 _ACEOF
6337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6339   ac_status=$?
6340   grep -v '^ *+' conftest.er1 >conftest.err
6341   rm -f conftest.er1
6342   cat conftest.err >&5
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } >/dev/null; then
6345   if test -s conftest.err; then
6346     ac_cpp_err=$ac_c_preproc_warn_flag
6347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6348   else
6349     ac_cpp_err=
6350   fi
6351 else
6352   ac_cpp_err=yes
6353 fi
6354 if test -z "$ac_cpp_err"; then
6355   # Broken: success on invalid input.
6356 continue
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361   # Passes both tests.
6362 ac_preproc_ok=:
6363 break
6364 fi
6365 rm -f conftest.err conftest.$ac_ext
6366
6367 done
6368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6369 rm -f conftest.err conftest.$ac_ext
6370 if $ac_preproc_ok; then
6371   :
6372 else
6373   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6374 See \`config.log' for more details." >&5
6375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6376 See \`config.log' for more details." >&2;}
6377    { (exit 1); exit 1; }; }
6378 fi
6379
6380 ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385
6386
6387 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6388 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6389 if test "${ac_cv_header_stdc+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h.  */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h.  */
6398 #include <stdlib.h>
6399 #include <stdarg.h>
6400 #include <string.h>
6401 #include <float.h>
6402
6403 int
6404 main ()
6405 {
6406
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413   (eval $ac_compile) 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -z "$ac_c_werror_flag"
6421                          || test ! -s conftest.err'
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); }; } &&
6427          { ac_try='test -s conftest.$ac_objext'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   ac_cv_header_stdc=yes
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 ac_cv_header_stdc=no
6439 fi
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441
6442 if test $ac_cv_header_stdc = yes; then
6443   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6444   cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h.  */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h.  */
6450 #include <string.h>
6451
6452 _ACEOF
6453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6454   $EGREP "memchr" >/dev/null 2>&1; then
6455   :
6456 else
6457   ac_cv_header_stdc=no
6458 fi
6459 rm -f conftest*
6460
6461 fi
6462
6463 if test $ac_cv_header_stdc = yes; then
6464   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6465   cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h.  */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h.  */
6471 #include <stdlib.h>
6472
6473 _ACEOF
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475   $EGREP "free" >/dev/null 2>&1; then
6476   :
6477 else
6478   ac_cv_header_stdc=no
6479 fi
6480 rm -f conftest*
6481
6482 fi
6483
6484 if test $ac_cv_header_stdc = yes; then
6485   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6486   if test "$cross_compiling" = yes; then
6487   :
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 #include <ctype.h>
6496 #if ((' ' & 0x0FF) == 0x020)
6497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6499 #else
6500 # define ISLOWER(c) \
6501                    (('a' <= (c) && (c) <= 'i') \
6502                      || ('j' <= (c) && (c) <= 'r') \
6503                      || ('s' <= (c) && (c) <= 'z'))
6504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6505 #endif
6506
6507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6508 int
6509 main ()
6510 {
6511   int i;
6512   for (i = 0; i < 256; i++)
6513     if (XOR (islower (i), ISLOWER (i))
6514         || toupper (i) != TOUPPER (i))
6515       exit(2);
6516   exit (0);
6517 }
6518 _ACEOF
6519 rm -f conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521   (eval $ac_link) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   :
6531 else
6532   echo "$as_me: program exited with status $ac_status" >&5
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 ( exit $ac_status )
6537 ac_cv_header_stdc=no
6538 fi
6539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6540 fi
6541 fi
6542 fi
6543 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6544 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6545 if test $ac_cv_header_stdc = yes; then
6546
6547 cat >>confdefs.h <<\_ACEOF
6548 #define STDC_HEADERS 1
6549 _ACEOF
6550
6551 fi
6552
6553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6564                   inttypes.h stdint.h unistd.h
6565 do
6566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6567 echo "$as_me:$LINENO: checking for $ac_header" >&5
6568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h.  */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h.  */
6578 $ac_includes_default
6579
6580 #include <$ac_header>
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584   (eval $ac_compile) 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } &&
6591          { ac_try='test -z "$ac_c_werror_flag"
6592                          || test ! -s conftest.err'
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); }; } &&
6598          { ac_try='test -s conftest.$ac_objext'
6599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600   (eval $ac_try) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); }; }; then
6604   eval "$as_ac_Header=yes"
6605 else
6606   echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 eval "$as_ac_Header=no"
6610 fi
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612 fi
6613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6616   cat >>confdefs.h <<_ACEOF
6617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6618 _ACEOF
6619
6620 fi
6621
6622 done
6623
6624
6625
6626 for ac_header in dlfcn.h
6627 do
6628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630   echo "$as_me:$LINENO: checking for $ac_header" >&5
6631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 fi
6635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6637 else
6638   # Is the header compilable?
6639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h.  */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h.  */
6647 $ac_includes_default
6648 #include <$ac_header>
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652   (eval $ac_compile) 2>conftest.er1
6653   ac_status=$?
6654   grep -v '^ *+' conftest.er1 >conftest.err
6655   rm -f conftest.er1
6656   cat conftest.err >&5
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); } &&
6659          { ac_try='test -z "$ac_c_werror_flag"
6660                          || test ! -s conftest.err'
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); }; } &&
6666          { ac_try='test -s conftest.$ac_objext'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; }; then
6672   ac_header_compiler=yes
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 ac_header_compiler=no
6678 fi
6679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 echo "${ECHO_T}$ac_header_compiler" >&6
6682
6683 # Is the header present?
6684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h.  */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h.  */
6692 #include <$ac_header>
6693 _ACEOF
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6696   ac_status=$?
6697   grep -v '^ *+' conftest.er1 >conftest.err
6698   rm -f conftest.er1
6699   cat conftest.err >&5
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); } >/dev/null; then
6702   if test -s conftest.err; then
6703     ac_cpp_err=$ac_c_preproc_warn_flag
6704     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6705   else
6706     ac_cpp_err=
6707   fi
6708 else
6709   ac_cpp_err=yes
6710 fi
6711 if test -z "$ac_cpp_err"; then
6712   ac_header_preproc=yes
6713 else
6714   echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717   ac_header_preproc=no
6718 fi
6719 rm -f conftest.err conftest.$ac_ext
6720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 echo "${ECHO_T}$ac_header_preproc" >&6
6722
6723 # So?  What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6725   yes:no: )
6726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6730     ac_header_preproc=yes
6731     ;;
6732   no:yes:* )
6733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6745     (
6746       cat <<\_ASBOX
6747 ## --------------------------------------------- ##
6748 ## Report this to <http://www.openldap.org/its/> ##
6749 ## --------------------------------------------- ##
6750 _ASBOX
6751     ) |
6752       sed "s/^/$as_me: WARNING:     /" >&2
6753     ;;
6754 esac
6755 echo "$as_me:$LINENO: checking for $ac_header" >&5
6756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   eval "$as_ac_Header=\$ac_header_preproc"
6761 fi
6762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6764
6765 fi
6766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6767   cat >>confdefs.h <<_ACEOF
6768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6769 _ACEOF
6770
6771 fi
6772
6773 done
6774
6775
6776 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6777
6778 # find the maximum length of command line arguments
6779 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6780 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6781 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784     i=0
6785   teststring="ABCD"
6786
6787   case $build_os in
6788   msdosdjgpp*)
6789     # On DJGPP, this test can blow up pretty badly due to problems in libc
6790     # (any single argument exceeding 2000 bytes causes a buffer overrun
6791     # during glob expansion).  Even if it were fixed, the result of this
6792     # check would be larger than it should be.
6793     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6794     ;;
6795
6796   gnu*)
6797     # Under GNU Hurd, this test is not required because there is
6798     # no limit to the length of command line arguments.
6799     # Libtool will interpret -1 as no limit whatsoever
6800     lt_cv_sys_max_cmd_len=-1;
6801     ;;
6802
6803   cygwin* | mingw*)
6804     # On Win9x/ME, this test blows up -- it succeeds, but takes
6805     # about 5 minutes as the teststring grows exponentially.
6806     # Worse, since 9x/ME are not pre-emptively multitasking,
6807     # you end up with a "frozen" computer, even though with patience
6808     # the test eventually succeeds (with a max line length of 256k).
6809     # Instead, let's just punt: use the minimum linelength reported by
6810     # all of the supported platforms: 8192 (on NT/2K/XP).
6811     lt_cv_sys_max_cmd_len=8192;
6812     ;;
6813
6814   amigaos*)
6815     # On AmigaOS with pdksh, this test takes hours, literally.
6816     # So we just punt and use a minimum line length of 8192.
6817     lt_cv_sys_max_cmd_len=8192;
6818     ;;
6819
6820   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6821     # This has been around since 386BSD, at least.  Likely further.
6822     if test -x /sbin/sysctl; then
6823       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6824     elif test -x /usr/sbin/sysctl; then
6825       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6826     else
6827       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6828     fi
6829     # And add a safety zone
6830     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6831     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6832     ;;
6833   osf*)
6834     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6835     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6836     # nice to cause kernel panics so lets avoid the loop below.
6837     # First set a reasonable default.
6838     lt_cv_sys_max_cmd_len=16384
6839     #
6840     if test -x /sbin/sysconfig; then
6841       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6842         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6843       esac
6844     fi
6845     ;;
6846   *)
6847     # If test is not a shell built-in, we'll probably end up computing a
6848     # maximum length that is only half of the actual maximum length, but
6849     # we can't tell.
6850     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6851     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6852                = "XX$teststring") >/dev/null 2>&1 &&
6853             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6854             lt_cv_sys_max_cmd_len=$new_result &&
6855             test $i != 17 # 1/2 MB should be enough
6856     do
6857       i=`expr $i + 1`
6858       teststring=$teststring$teststring
6859     done
6860     teststring=
6861     # Add a significant safety factor because C++ compilers can tack on massive
6862     # amounts of additional arguments before passing them to the linker.
6863     # It appears as though 1/2 is a usable value.
6864     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6865     ;;
6866   esac
6867
6868 fi
6869
6870 if test -n $lt_cv_sys_max_cmd_len ; then
6871   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6872 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6873 else
6874   echo "$as_me:$LINENO: result: none" >&5
6875 echo "${ECHO_T}none" >&6
6876 fi
6877
6878
6879
6880
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6890
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6893
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897 # Transform an extracted symbol line into a proper C declaration
6898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6899
6900 # Transform an extracted symbol line into symbol name and symbol address
6901 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'"
6902
6903 # Define system-specific variables.
6904 case $host_os in
6905 aix*)
6906   symcode='[BCDT]'
6907   ;;
6908 cygwin* | mingw* | pw32*)
6909   symcode='[ABCDGISTW]'
6910   ;;
6911 hpux*) # Its linker distinguishes data from code symbols
6912   if test "$host_cpu" = ia64; then
6913     symcode='[ABCDEGRST]'
6914   fi
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   ;;
6918 linux*)
6919   if test "$host_cpu" = ia64; then
6920     symcode='[ABCDGIRSTW]'
6921     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6922     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'"
6923   fi
6924   ;;
6925 irix* | nonstopux*)
6926   symcode='[BCDEGRST]'
6927   ;;
6928 osf*)
6929   symcode='[BCDEGQRST]'
6930   ;;
6931 solaris* | sysv5*)
6932   symcode='[BDRT]'
6933   ;;
6934 sysv4)
6935   symcode='[DFNSTU]'
6936   ;;
6937 esac
6938
6939 # Handle CRLF in mingw tool chain
6940 opt_cr=
6941 case $build_os in
6942 mingw*)
6943   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6944   ;;
6945 esac
6946
6947 # If we're using GNU nm, then use its standard symbol codes.
6948 case `$NM -V 2>&1` in
6949 *GNU* | *'with BFD'*)
6950   symcode='[ABCDGIRSTW]' ;;
6951 esac
6952
6953 # Try without a prefix undercore, then with it.
6954 for ac_symprfx in "" "_"; do
6955
6956   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957   symxfrm="\\1 $ac_symprfx\\2 \\2"
6958
6959   # Write the raw and C identifiers.
6960   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6961
6962   # Check to see that the pipe works correctly.
6963   pipe_works=no
6964
6965   rm -f conftest*
6966   cat > conftest.$ac_ext <<EOF
6967 #ifdef __cplusplus
6968 extern "C" {
6969 #endif
6970 char nm_test_var;
6971 void nm_test_func(){}
6972 #ifdef __cplusplus
6973 }
6974 #endif
6975 int main(){nm_test_var='a';nm_test_func();return(0);}
6976 EOF
6977
6978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979   (eval $ac_compile) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; then
6983     # Now try to grab the symbols.
6984     nlist=conftest.nm
6985     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6986   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } && test -s "$nlist"; then
6990       # Try sorting and uniquifying the output.
6991       if sort "$nlist" | uniq > "$nlist"T; then
6992         mv -f "$nlist"T "$nlist"
6993       else
6994         rm -f "$nlist"T
6995       fi
6996
6997       # Make sure that we snagged all the symbols we need.
6998       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6999         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7000           cat <<EOF > conftest.$ac_ext
7001 #ifdef __cplusplus
7002 extern "C" {
7003 #endif
7004
7005 EOF
7006           # Now generate the symbol file.
7007           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7008
7009           cat <<EOF >> conftest.$ac_ext
7010 #if defined (__STDC__) && __STDC__
7011 # define lt_ptr_t void *
7012 #else
7013 # define lt_ptr_t char *
7014 # define const
7015 #endif
7016
7017 /* The mapping between symbol names and symbols. */
7018 const struct {
7019   const char *name;
7020   lt_ptr_t address;
7021 }
7022 lt_preloaded_symbols[] =
7023 {
7024 EOF
7025           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7026           cat <<\EOF >> conftest.$ac_ext
7027   {0, (lt_ptr_t) 0}
7028 };
7029
7030 #ifdef __cplusplus
7031 }
7032 #endif
7033 EOF
7034           # Now try linking the two files.
7035           mv conftest.$ac_objext conftstm.$ac_objext
7036           lt_save_LIBS="$LIBS"
7037           lt_save_CFLAGS="$CFLAGS"
7038           LIBS="conftstm.$ac_objext"
7039           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7040           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041   (eval $ac_link) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7045             pipe_works=yes
7046           fi
7047           LIBS="$lt_save_LIBS"
7048           CFLAGS="$lt_save_CFLAGS"
7049         else
7050           echo "cannot find nm_test_func in $nlist" >&5
7051         fi
7052       else
7053         echo "cannot find nm_test_var in $nlist" >&5
7054       fi
7055     else
7056       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7057     fi
7058   else
7059     echo "$progname: failed program was:" >&5
7060     cat conftest.$ac_ext >&5
7061   fi
7062   rm -f conftest* conftst*
7063
7064   # Do not use the global_symbol_pipe unless it works.
7065   if test "$pipe_works" = yes; then
7066     break
7067   else
7068     lt_cv_sys_global_symbol_pipe=
7069   fi
7070 done
7071
7072 fi
7073
7074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7075   lt_cv_sys_global_symbol_to_cdecl=
7076 fi
7077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7078   echo "$as_me:$LINENO: result: failed" >&5
7079 echo "${ECHO_T}failed" >&6
7080 else
7081   echo "$as_me:$LINENO: result: ok" >&5
7082 echo "${ECHO_T}ok" >&6
7083 fi
7084
7085 echo "$as_me:$LINENO: checking for objdir" >&5
7086 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7087 if test "${lt_cv_objdir+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   rm -f .libs 2>/dev/null
7091 mkdir .libs 2>/dev/null
7092 if test -d .libs; then
7093   lt_cv_objdir=.libs
7094 else
7095   # MS-DOS does not allow filenames that begin with a dot.
7096   lt_cv_objdir=_libs
7097 fi
7098 rmdir .libs 2>/dev/null
7099 fi
7100 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7101 echo "${ECHO_T}$lt_cv_objdir" >&6
7102 objdir=$lt_cv_objdir
7103
7104
7105
7106
7107
7108 case $host_os in
7109 aix3*)
7110   # AIX sometimes has problems with the GCC collect2 program.  For some
7111   # reason, if we set the COLLECT_NAMES environment variable, the problems
7112   # vanish in a puff of smoke.
7113   if test "X${COLLECT_NAMES+set}" != Xset; then
7114     COLLECT_NAMES=
7115     export COLLECT_NAMES
7116   fi
7117   ;;
7118 esac
7119
7120 # Sed substitution that helps us do robust quoting.  It backslashifies
7121 # metacharacters that are still active within double-quoted strings.
7122 Xsed='sed -e 1s/^X//'
7123 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7124
7125 # Same as above, but do not quote variable references.
7126 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7127
7128 # Sed substitution to delay expansion of an escaped shell variable in a
7129 # double_quote_subst'ed string.
7130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7131
7132 # Sed substitution to avoid accidental globbing in evaled expressions
7133 no_glob_subst='s/\*/\\\*/g'
7134
7135 # Constants:
7136 rm="rm -f"
7137
7138 # Global variables:
7139 default_ofile=libtool
7140 can_build_shared=yes
7141
7142 # All known linkers require a `.a' archive for static linking (except MSVC,
7143 # which needs '.lib').
7144 libext=a
7145 ltmain="$ac_aux_dir/ltmain.sh"
7146 ofile="$default_ofile"
7147 with_gnu_ld="$lt_cv_prog_gnu_ld"
7148
7149 if test -n "$ac_tool_prefix"; then
7150   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}ar; ac_word=$2
7152 echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7154 if test "${ac_cv_prog_AR+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   if test -n "$AR"; then
7158   ac_cv_prog_AR="$AR" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167     ac_cv_prog_AR="${ac_tool_prefix}ar"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173
7174 fi
7175 fi
7176 AR=$ac_cv_prog_AR
7177 if test -n "$AR"; then
7178   echo "$as_me:$LINENO: result: $AR" >&5
7179 echo "${ECHO_T}$AR" >&6
7180 else
7181   echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6
7183 fi
7184
7185 fi
7186 if test -z "$ac_cv_prog_AR"; then
7187   ac_ct_AR=$AR
7188   # Extract the first word of "ar", so it can be a program name with args.
7189 set dummy ar; ac_word=$2
7190 echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7193   echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195   if test -n "$ac_ct_AR"; then
7196   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203   for ac_exec_ext in '' $ac_executable_extensions; do
7204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205     ac_cv_prog_ac_ct_AR="ar"
7206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210 done
7211
7212   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7213 fi
7214 fi
7215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7216 if test -n "$ac_ct_AR"; then
7217   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7218 echo "${ECHO_T}$ac_ct_AR" >&6
7219 else
7220   echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222 fi
7223
7224   AR=$ac_ct_AR
7225 else
7226   AR="$ac_cv_prog_AR"
7227 fi
7228
7229 if test -n "$ac_tool_prefix"; then
7230   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7232 echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234 if test "${ac_cv_prog_RANLIB+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   if test -n "$RANLIB"; then
7238   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245   for ac_exec_ext in '' $ac_executable_extensions; do
7246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252 done
7253
7254 fi
7255 fi
7256 RANLIB=$ac_cv_prog_RANLIB
7257 if test -n "$RANLIB"; then
7258   echo "$as_me:$LINENO: result: $RANLIB" >&5
7259 echo "${ECHO_T}$RANLIB" >&6
7260 else
7261   echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263 fi
7264
7265 fi
7266 if test -z "$ac_cv_prog_RANLIB"; then
7267   ac_ct_RANLIB=$RANLIB
7268   # Extract the first word of "ranlib", so it can be a program name with args.
7269 set dummy ranlib; ac_word=$2
7270 echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   if test -n "$ac_ct_RANLIB"; then
7276   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283   for ac_exec_ext in '' $ac_executable_extensions; do
7284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285     ac_cv_prog_ac_ct_RANLIB="ranlib"
7286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290 done
7291
7292   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7293 fi
7294 fi
7295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7296 if test -n "$ac_ct_RANLIB"; then
7297   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7298 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7299 else
7300   echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7302 fi
7303
7304   RANLIB=$ac_ct_RANLIB
7305 else
7306   RANLIB="$ac_cv_prog_RANLIB"
7307 fi
7308
7309 if test -n "$ac_tool_prefix"; then
7310   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}strip; ac_word=$2
7312 echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7314 if test "${ac_cv_prog_STRIP+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   if test -n "$STRIP"; then
7318   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325   for ac_exec_ext in '' $ac_executable_extensions; do
7326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332 done
7333
7334 fi
7335 fi
7336 STRIP=$ac_cv_prog_STRIP
7337 if test -n "$STRIP"; then
7338   echo "$as_me:$LINENO: result: $STRIP" >&5
7339 echo "${ECHO_T}$STRIP" >&6
7340 else
7341   echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6
7343 fi
7344
7345 fi
7346 if test -z "$ac_cv_prog_STRIP"; then
7347   ac_ct_STRIP=$STRIP
7348   # Extract the first word of "strip", so it can be a program name with args.
7349 set dummy strip; ac_word=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   if test -n "$ac_ct_STRIP"; then
7356   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363   for ac_exec_ext in '' $ac_executable_extensions; do
7364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365     ac_cv_prog_ac_ct_STRIP="strip"
7366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370 done
7371
7372   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7373 fi
7374 fi
7375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7376 if test -n "$ac_ct_STRIP"; then
7377   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7378 echo "${ECHO_T}$ac_ct_STRIP" >&6
7379 else
7380   echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7382 fi
7383
7384   STRIP=$ac_ct_STRIP
7385 else
7386   STRIP="$ac_cv_prog_STRIP"
7387 fi
7388
7389
7390 old_CC="$CC"
7391 old_CFLAGS="$CFLAGS"
7392
7393 # Set sane defaults for various variables
7394 test -z "$AR" && AR=ar
7395 test -z "$AR_FLAGS" && AR_FLAGS=cru
7396 test -z "$AS" && AS=as
7397 test -z "$CC" && CC=cc
7398 test -z "$LTCC" && LTCC=$CC
7399 test -z "$DLLTOOL" && DLLTOOL=dlltool
7400 test -z "$LD" && LD=ld
7401 test -z "$LN_S" && LN_S="ln -s"
7402 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7403 test -z "$NM" && NM=nm
7404 test -z "$SED" && SED=sed
7405 test -z "$OBJDUMP" && OBJDUMP=objdump
7406 test -z "$RANLIB" && RANLIB=:
7407 test -z "$STRIP" && STRIP=:
7408 test -z "$ac_objext" && ac_objext=o
7409
7410 # Determine commands to create old-style static archives.
7411 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7412 old_postinstall_cmds='chmod 644 $oldlib'
7413 old_postuninstall_cmds=
7414
7415 if test -n "$RANLIB"; then
7416   case $host_os in
7417   openbsd*)
7418     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7419     ;;
7420   *)
7421     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7422     ;;
7423   esac
7424   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7425 fi
7426
7427 for cc_temp in $compiler""; do
7428   case $cc_temp in
7429     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7430     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7431     \-*) ;;
7432     *) break;;
7433   esac
7434 done
7435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7436
7437
7438 # Only perform the check for file, if the check method requires it
7439 case $deplibs_check_method in
7440 file_magic*)
7441   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7442     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7443 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   case $MAGIC_CMD in
7448 [\\/*] |  ?:[\\/]*)
7449   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7450   ;;
7451 *)
7452   lt_save_MAGIC_CMD="$MAGIC_CMD"
7453   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7454   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7455   for ac_dir in $ac_dummy; do
7456     IFS="$lt_save_ifs"
7457     test -z "$ac_dir" && ac_dir=.
7458     if test -f $ac_dir/${ac_tool_prefix}file; then
7459       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7460       if test -n "$file_magic_test_file"; then
7461         case $deplibs_check_method in
7462         "file_magic "*)
7463           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7464           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7465           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7466             $EGREP "$file_magic_regex" > /dev/null; then
7467             :
7468           else
7469             cat <<EOF 1>&2
7470
7471 *** Warning: the command libtool uses to detect shared libraries,
7472 *** $file_magic_cmd, produces output that libtool cannot recognize.
7473 *** The result is that libtool may fail to recognize shared libraries
7474 *** as such.  This will affect the creation of libtool libraries that
7475 *** depend on shared libraries, but programs linked with such libtool
7476 *** libraries will work regardless of this problem.  Nevertheless, you
7477 *** may want to report the problem to your system manager and/or to
7478 *** bug-libtool@gnu.org
7479
7480 EOF
7481           fi ;;
7482         esac
7483       fi
7484       break
7485     fi
7486   done
7487   IFS="$lt_save_ifs"
7488   MAGIC_CMD="$lt_save_MAGIC_CMD"
7489   ;;
7490 esac
7491 fi
7492
7493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7494 if test -n "$MAGIC_CMD"; then
7495   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7496 echo "${ECHO_T}$MAGIC_CMD" >&6
7497 else
7498   echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7500 fi
7501
7502 if test -z "$lt_cv_path_MAGIC_CMD"; then
7503   if test -n "$ac_tool_prefix"; then
7504     echo "$as_me:$LINENO: checking for file" >&5
7505 echo $ECHO_N "checking for file... $ECHO_C" >&6
7506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   case $MAGIC_CMD in
7510 [\\/*] |  ?:[\\/]*)
7511   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7512   ;;
7513 *)
7514   lt_save_MAGIC_CMD="$MAGIC_CMD"
7515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7516   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7517   for ac_dir in $ac_dummy; do
7518     IFS="$lt_save_ifs"
7519     test -z "$ac_dir" && ac_dir=.
7520     if test -f $ac_dir/file; then
7521       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7522       if test -n "$file_magic_test_file"; then
7523         case $deplibs_check_method in
7524         "file_magic "*)
7525           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7526           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7527           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7528             $EGREP "$file_magic_regex" > /dev/null; then
7529             :
7530           else
7531             cat <<EOF 1>&2
7532
7533 *** Warning: the command libtool uses to detect shared libraries,
7534 *** $file_magic_cmd, produces output that libtool cannot recognize.
7535 *** The result is that libtool may fail to recognize shared libraries
7536 *** as such.  This will affect the creation of libtool libraries that
7537 *** depend on shared libraries, but programs linked with such libtool
7538 *** libraries will work regardless of this problem.  Nevertheless, you
7539 *** may want to report the problem to your system manager and/or to
7540 *** bug-libtool@gnu.org
7541
7542 EOF
7543           fi ;;
7544         esac
7545       fi
7546       break
7547     fi
7548   done
7549   IFS="$lt_save_ifs"
7550   MAGIC_CMD="$lt_save_MAGIC_CMD"
7551   ;;
7552 esac
7553 fi
7554
7555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7556 if test -n "$MAGIC_CMD"; then
7557   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7558 echo "${ECHO_T}$MAGIC_CMD" >&6
7559 else
7560   echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7562 fi
7563
7564   else
7565     MAGIC_CMD=:
7566   fi
7567 fi
7568
7569   fi
7570   ;;
7571 esac
7572
7573 enable_dlopen=yes
7574 enable_win32_dll=yes
7575
7576 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7577 if test "${enable_libtool_lock+set}" = set; then
7578   enableval="$enable_libtool_lock"
7579
7580 fi;
7581 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7582
7583
7584 # Check whether --with-pic or --without-pic was given.
7585 if test "${with_pic+set}" = set; then
7586   withval="$with_pic"
7587   pic_mode="$withval"
7588 else
7589   pic_mode=default
7590 fi;
7591 test -z "$pic_mode" && pic_mode=default
7592
7593 # Use C for the default configuration in the libtool script
7594 tagname=
7595 lt_save_CC="$CC"
7596 ac_ext=c
7597 ac_cpp='$CPP $CPPFLAGS'
7598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7601
7602
7603 # Source file extension for C test sources.
7604 ac_ext=c
7605
7606 # Object file extension for compiled C test sources.
7607 objext=o
7608 objext=$objext
7609
7610 # Code to be used in simple compile tests
7611 lt_simple_compile_test_code="int some_variable = 0;\n"
7612
7613 # Code to be used in simple link tests
7614 lt_simple_link_test_code='int main(){return(0);}\n'
7615
7616
7617 # If no C compiler was specified, use CC.
7618 LTCC=${LTCC-"$CC"}
7619
7620 # Allow CC to be a program name with arguments.
7621 compiler=$CC
7622
7623
7624 # save warnings/boilerplate of simple test code
7625 ac_outfile=conftest.$ac_objext
7626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7628 _lt_compiler_boilerplate=`cat conftest.err`
7629 $rm conftest*
7630
7631 ac_outfile=conftest.$ac_objext
7632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7634 _lt_linker_boilerplate=`cat conftest.err`
7635 $rm conftest*
7636
7637
7638 #
7639 # Check for any special shared library compilation flags.
7640 #
7641 lt_prog_cc_shlib=
7642 if test "$GCC" = no; then
7643   case $host_os in
7644   sco3.2v5*)
7645     lt_prog_cc_shlib='-belf'
7646     ;;
7647   esac
7648 fi
7649 if test -n "$lt_prog_cc_shlib"; then
7650   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7651 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7652   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7653   else
7654     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7655 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7656     lt_cv_prog_cc_can_build_shared=no
7657   fi
7658 fi
7659
7660
7661 #
7662 # Check to make sure the static flag actually works.
7663 #
7664 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7665 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7666 if test "${lt_prog_compiler_static_works+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   lt_prog_compiler_static_works=no
7670    save_LDFLAGS="$LDFLAGS"
7671    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7672    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7673    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7674      # The linker can only warn and ignore the option if not recognized
7675      # So say no if there are warnings
7676      if test -s conftest.err; then
7677        # Append any errors to the config.log.
7678        cat conftest.err 1>&5
7679        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7680        $SED '/^$/d' conftest.err >conftest.er2
7681        if diff conftest.exp conftest.er2 >/dev/null; then
7682          lt_prog_compiler_static_works=yes
7683        fi
7684      else
7685        lt_prog_compiler_static_works=yes
7686      fi
7687    fi
7688    $rm conftest*
7689    LDFLAGS="$save_LDFLAGS"
7690
7691 fi
7692 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7694
7695 if test x"$lt_prog_compiler_static_works" = xyes; then
7696     :
7697 else
7698     lt_prog_compiler_static=
7699 fi
7700
7701
7702
7703
7704 lt_prog_compiler_no_builtin_flag=
7705
7706 if test "$GCC" = yes; then
7707   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7708
7709
7710 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7711 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7712 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   lt_cv_prog_compiler_rtti_exceptions=no
7716   ac_outfile=conftest.$ac_objext
7717    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7718    lt_compiler_flag="-fno-rtti -fno-exceptions"
7719    # Insert the option either (1) after the last *FLAGS variable, or
7720    # (2) before a word containing "conftest.", or (3) at the end.
7721    # Note that $ac_compile itself does not contain backslashes and begins
7722    # with a dollar sign (not a hyphen), so the echo should work correctly.
7723    # The option is referenced via a variable to avoid confusing sed.
7724    lt_compile=`echo "$ac_compile" | $SED \
7725    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7727    -e 's:$: $lt_compiler_flag:'`
7728    (eval echo "\"\$as_me:7728: $lt_compile\"" >&5)
7729    (eval "$lt_compile" 2>conftest.err)
7730    ac_status=$?
7731    cat conftest.err >&5
7732    echo "$as_me:7732: \$? = $ac_status" >&5
7733    if (exit $ac_status) && test -s "$ac_outfile"; then
7734      # The compiler can only warn and ignore the option if not recognized
7735      # So say no if there are warnings other than the usual output.
7736      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7737      $SED '/^$/d' conftest.err >conftest.er2
7738      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7739        lt_cv_prog_compiler_rtti_exceptions=yes
7740      fi
7741    fi
7742    $rm conftest*
7743
7744 fi
7745 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7746 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7747
7748 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7749     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7750 else
7751     :
7752 fi
7753
7754 fi
7755
7756 lt_prog_compiler_wl=
7757 lt_prog_compiler_pic=
7758 lt_prog_compiler_static=
7759
7760 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7761 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7762
7763   if test "$GCC" = yes; then
7764     lt_prog_compiler_wl='-Wl,'
7765     lt_prog_compiler_static='-static'
7766
7767     case $host_os in
7768       aix*)
7769       # All AIX code is PIC.
7770       if test "$host_cpu" = ia64; then
7771         # AIX 5 now supports IA64 processor
7772         lt_prog_compiler_static='-Bstatic'
7773       fi
7774       ;;
7775
7776     amigaos*)
7777       # FIXME: we need at least 68020 code to build shared libraries, but
7778       # adding the `-m68020' flag to GCC prevents building anything better,
7779       # like `-m68040'.
7780       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7781       ;;
7782
7783     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7784       # PIC is the default for these OSes.
7785       ;;
7786
7787     mingw* | pw32* | os2*)
7788       # This hack is so that the source file can tell whether it is being
7789       # built for inclusion in a dll (and should export symbols for example).
7790       lt_prog_compiler_pic='-DDLL_EXPORT'
7791       ;;
7792
7793     darwin* | rhapsody*)
7794       # PIC is the default on this platform
7795       # Common symbols not allowed in MH_DYLIB files
7796       lt_prog_compiler_pic='-fno-common'
7797       ;;
7798
7799     msdosdjgpp*)
7800       # Just because we use GCC doesn't mean we suddenly get shared libraries
7801       # on systems that don't support them.
7802       lt_prog_compiler_can_build_shared=no
7803       enable_shared=no
7804       ;;
7805
7806     sysv4*MP*)
7807       if test -d /usr/nec; then
7808         lt_prog_compiler_pic=-Kconform_pic
7809       fi
7810       ;;
7811
7812     hpux*)
7813       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7814       # not for PA HP-UX.
7815       case $host_cpu in
7816       hppa*64*|ia64*)
7817         # +Z the default
7818         ;;
7819       *)
7820         lt_prog_compiler_pic='-fPIC'
7821         ;;
7822       esac
7823       ;;
7824
7825     *)
7826       lt_prog_compiler_pic='-fPIC'
7827       ;;
7828     esac
7829   else
7830     # PORTME Check for flag to pass linker flags through the system compiler.
7831     case $host_os in
7832     aix*)
7833       lt_prog_compiler_wl='-Wl,'
7834       if test "$host_cpu" = ia64; then
7835         # AIX 5 now supports IA64 processor
7836         lt_prog_compiler_static='-Bstatic'
7837       else
7838         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7839       fi
7840       ;;
7841       darwin*)
7842         # PIC is the default on this platform
7843         # Common symbols not allowed in MH_DYLIB files
7844        case $cc_basename in
7845          xlc*)
7846          lt_prog_compiler_pic='-qnocommon'
7847          lt_prog_compiler_wl='-Wl,'
7848          ;;
7849        esac
7850        ;;
7851
7852     mingw* | pw32* | os2*)
7853       # This hack is so that the source file can tell whether it is being
7854       # built for inclusion in a dll (and should export symbols for example).
7855       lt_prog_compiler_pic='-DDLL_EXPORT'
7856       ;;
7857
7858     hpux9* | hpux10* | hpux11*)
7859       lt_prog_compiler_wl='-Wl,'
7860       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7861       # not for PA HP-UX.
7862       case $host_cpu in
7863       hppa*64*|ia64*)
7864         # +Z the default
7865         ;;
7866       *)
7867         lt_prog_compiler_pic='+Z'
7868         ;;
7869       esac
7870       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7871       lt_prog_compiler_static='${wl}-a ${wl}archive'
7872       ;;
7873
7874     irix5* | irix6* | nonstopux*)
7875       lt_prog_compiler_wl='-Wl,'
7876       # PIC (with -KPIC) is the default.
7877       lt_prog_compiler_static='-non_shared'
7878       ;;
7879
7880     newsos6)
7881       lt_prog_compiler_pic='-KPIC'
7882       lt_prog_compiler_static='-Bstatic'
7883       ;;
7884
7885     linux*)
7886       case $cc_basename in
7887       icc* | ecc*)
7888         lt_prog_compiler_wl='-Wl,'
7889         lt_prog_compiler_pic='-KPIC'
7890         lt_prog_compiler_static='-static'
7891         ;;
7892       pgcc* | pgf77* | pgf90* | pgf95*)
7893         # Portland Group compilers (*not* the Pentium gcc compiler,
7894         # which looks to be a dead project)
7895         lt_prog_compiler_wl='-Wl,'
7896         lt_prog_compiler_pic='-fpic'
7897         lt_prog_compiler_static='-Bstatic'
7898         ;;
7899       ccc*)
7900         lt_prog_compiler_wl='-Wl,'
7901         # All Alpha code is PIC.
7902         lt_prog_compiler_static='-non_shared'
7903         ;;
7904       esac
7905       ;;
7906
7907     osf3* | osf4* | osf5*)
7908       lt_prog_compiler_wl='-Wl,'
7909       # All OSF/1 code is PIC.
7910       lt_prog_compiler_static='-non_shared'
7911       ;;
7912
7913     sco3.2v5*)
7914       lt_prog_compiler_pic='-Kpic'
7915       lt_prog_compiler_static='-dn'
7916       ;;
7917
7918     solaris*)
7919       lt_prog_compiler_pic='-KPIC'
7920       lt_prog_compiler_static='-Bstatic'
7921       case $cc_basename in
7922       f77* | f90* | f95*)
7923         lt_prog_compiler_wl='-Qoption ld ';;
7924       *)
7925         lt_prog_compiler_wl='-Wl,';;
7926       esac
7927       ;;
7928
7929     sunos4*)
7930       lt_prog_compiler_wl='-Qoption ld '
7931       lt_prog_compiler_pic='-PIC'
7932       lt_prog_compiler_static='-Bstatic'
7933       ;;
7934
7935     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7936       lt_prog_compiler_wl='-Wl,'
7937       lt_prog_compiler_pic='-KPIC'
7938       lt_prog_compiler_static='-Bstatic'
7939       ;;
7940
7941     sysv4*MP*)
7942       if test -d /usr/nec ;then
7943         lt_prog_compiler_pic='-Kconform_pic'
7944         lt_prog_compiler_static='-Bstatic'
7945       fi
7946       ;;
7947
7948     unicos*)
7949       lt_prog_compiler_wl='-Wl,'
7950       lt_prog_compiler_can_build_shared=no
7951       ;;
7952
7953     uts4*)
7954       lt_prog_compiler_pic='-pic'
7955       lt_prog_compiler_static='-Bstatic'
7956       ;;
7957
7958     *)
7959       lt_prog_compiler_can_build_shared=no
7960       ;;
7961     esac
7962   fi
7963
7964 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7965 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7966
7967 #
7968 # Check to make sure the PIC flag actually works.
7969 #
7970 if test -n "$lt_prog_compiler_pic"; then
7971
7972 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7974 if test "${lt_prog_compiler_pic_works+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   lt_prog_compiler_pic_works=no
7978   ac_outfile=conftest.$ac_objext
7979    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7980    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7981    # Insert the option either (1) after the last *FLAGS variable, or
7982    # (2) before a word containing "conftest.", or (3) at the end.
7983    # Note that $ac_compile itself does not contain backslashes and begins
7984    # with a dollar sign (not a hyphen), so the echo should work correctly.
7985    # The option is referenced via a variable to avoid confusing sed.
7986    lt_compile=`echo "$ac_compile" | $SED \
7987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989    -e 's:$: $lt_compiler_flag:'`
7990    (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991    (eval "$lt_compile" 2>conftest.err)
7992    ac_status=$?
7993    cat conftest.err >&5
7994    echo "$as_me:7994: \$? = $ac_status" >&5
7995    if (exit $ac_status) && test -s "$ac_outfile"; then
7996      # The compiler can only warn and ignore the option if not recognized
7997      # So say no if there are warnings other than the usual output.
7998      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7999      $SED '/^$/d' conftest.err >conftest.er2
8000      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8001        lt_prog_compiler_pic_works=yes
8002      fi
8003    fi
8004    $rm conftest*
8005
8006 fi
8007 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8008 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8009
8010 if test x"$lt_prog_compiler_pic_works" = xyes; then
8011     case $lt_prog_compiler_pic in
8012      "" | " "*) ;;
8013      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8014      esac
8015 else
8016     lt_prog_compiler_pic=
8017      lt_prog_compiler_can_build_shared=no
8018 fi
8019
8020 fi
8021 case $host_os in
8022   # For platforms which do not support PIC, -DPIC is meaningless:
8023   *djgpp*)
8024     lt_prog_compiler_pic=
8025     ;;
8026   *)
8027     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8028     ;;
8029 esac
8030
8031 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8033 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   lt_cv_prog_compiler_c_o=no
8037    $rm -r conftest 2>/dev/null
8038    mkdir conftest
8039    cd conftest
8040    mkdir out
8041    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8042
8043    lt_compiler_flag="-o out/conftest2.$ac_objext"
8044    # Insert the option either (1) after the last *FLAGS variable, or
8045    # (2) before a word containing "conftest.", or (3) at the end.
8046    # Note that $ac_compile itself does not contain backslashes and begins
8047    # with a dollar sign (not a hyphen), so the echo should work correctly.
8048    lt_compile=`echo "$ac_compile" | $SED \
8049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051    -e 's:$: $lt_compiler_flag:'`
8052    (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053    (eval "$lt_compile" 2>out/conftest.err)
8054    ac_status=$?
8055    cat out/conftest.err >&5
8056    echo "$as_me:8056: \$? = $ac_status" >&5
8057    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8058    then
8059      # The compiler can only warn and ignore the option if not recognized
8060      # So say no if there are warnings
8061      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8062      $SED '/^$/d' out/conftest.err >out/conftest.er2
8063      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8064        lt_cv_prog_compiler_c_o=yes
8065      fi
8066    fi
8067    chmod u+w . 2>&5
8068    $rm conftest*
8069    # SGI C++ compiler will create directory out/ii_files/ for
8070    # template instantiation
8071    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8072    $rm out/* && rmdir out
8073    cd ..
8074    rmdir conftest
8075    $rm conftest*
8076
8077 fi
8078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8080
8081
8082 hard_links="nottested"
8083 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8084   # do not overwrite the value of need_locks provided by the user
8085   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8087   hard_links=yes
8088   $rm conftest*
8089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8090   touch conftest.a
8091   ln conftest.a conftest.b 2>&5 || hard_links=no
8092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093   echo "$as_me:$LINENO: result: $hard_links" >&5
8094 echo "${ECHO_T}$hard_links" >&6
8095   if test "$hard_links" = no; then
8096     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8098     need_locks=warn
8099   fi
8100 else
8101   need_locks=no
8102 fi
8103
8104 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8106
8107   runpath_var=
8108   allow_undefined_flag=
8109   enable_shared_with_static_runtimes=no
8110   archive_cmds=
8111   archive_expsym_cmds=
8112   old_archive_From_new_cmds=
8113   old_archive_from_expsyms_cmds=
8114   export_dynamic_flag_spec=
8115   whole_archive_flag_spec=
8116   thread_safe_flag_spec=
8117   hardcode_libdir_flag_spec=
8118   hardcode_libdir_flag_spec_ld=
8119   hardcode_libdir_separator=
8120   hardcode_direct=no
8121   hardcode_minus_L=no
8122   hardcode_shlibpath_var=unsupported
8123   link_all_deplibs=unknown
8124   hardcode_automatic=no
8125   module_cmds=
8126   module_expsym_cmds=
8127   always_export_symbols=no
8128   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8129   # include_expsyms should be a list of space-separated symbols to be *always*
8130   # included in the symbol list
8131   include_expsyms=
8132   # exclude_expsyms can be an extended regexp of symbols to exclude
8133   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8134   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8135   # as well as any symbol that contains `d'.
8136   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8137   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8138   # platforms (ab)use it in PIC code, but their linkers get confused if
8139   # the symbol is explicitly referenced.  Since portable code cannot
8140   # rely on this symbol name, it's probably fine to never include it in
8141   # preloaded symbol tables.
8142   extract_expsyms_cmds=
8143   # Just being paranoid about ensuring that cc_basename is set.
8144   for cc_temp in $compiler""; do
8145   case $cc_temp in
8146     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8147     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8148     \-*) ;;
8149     *) break;;
8150   esac
8151 done
8152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8153
8154   case $host_os in
8155   cygwin* | mingw* | pw32*)
8156     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8157     # When not using gcc, we currently assume that we are using
8158     # Microsoft Visual C++.
8159     if test "$GCC" != yes; then
8160       with_gnu_ld=no
8161     fi
8162     ;;
8163   openbsd*)
8164     with_gnu_ld=no
8165     ;;
8166   esac
8167
8168   ld_shlibs=yes
8169   if test "$with_gnu_ld" = yes; then
8170     # If archive_cmds runs LD, not CC, wlarc should be empty
8171     wlarc='${wl}'
8172
8173     # Set some defaults for GNU ld with shared library support. These
8174     # are reset later if shared libraries are not supported. Putting them
8175     # here allows them to be overridden if necessary.
8176     runpath_var=LD_RUN_PATH
8177     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8178     export_dynamic_flag_spec='${wl}--export-dynamic'
8179     # ancient GNU ld didn't support --whole-archive et. al.
8180     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8181         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8182       else
8183         whole_archive_flag_spec=
8184     fi
8185     supports_anon_versioning=no
8186     case `$LD -v 2>/dev/null` in
8187       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8188       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8189       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8190       *\ 2.11.*) ;; # other 2.11 versions
8191       *) supports_anon_versioning=yes ;;
8192     esac
8193
8194     # See if GNU ld supports shared libraries.
8195     case $host_os in
8196     aix3* | aix4* | aix5*)
8197       # On AIX/PPC, the GNU linker is very broken
8198       if test "$host_cpu" != ia64; then
8199         ld_shlibs=no
8200         cat <<EOF 1>&2
8201
8202 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8203 *** to be unable to reliably create shared libraries on AIX.
8204 *** Therefore, libtool is disabling shared libraries support.  If you
8205 *** really care for shared libraries, you may want to modify your PATH
8206 *** so that a non-GNU linker is found, and then restart.
8207
8208 EOF
8209       fi
8210       ;;
8211
8212     amigaos*)
8213       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)'
8214       hardcode_libdir_flag_spec='-L$libdir'
8215       hardcode_minus_L=yes
8216
8217       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8218       # that the semantics of dynamic libraries on AmigaOS, at least up
8219       # to version 4, is to share data among multiple programs linked
8220       # with the same dynamic library.  Since this doesn't match the
8221       # behavior of shared libraries on other platforms, we can't use
8222       # them.
8223       ld_shlibs=no
8224       ;;
8225
8226     beos*)
8227       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228         allow_undefined_flag=unsupported
8229         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8230         # support --undefined.  This deserves some investigation.  FIXME
8231         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8232       else
8233         ld_shlibs=no
8234       fi
8235       ;;
8236
8237     cygwin* | mingw* | pw32*)
8238       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8239       # as there is no search path for DLLs.
8240       hardcode_libdir_flag_spec='-L$libdir'
8241       allow_undefined_flag=unsupported
8242       always_export_symbols=no
8243       enable_shared_with_static_runtimes=yes
8244       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8245
8246       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8248         # If the export-symbols file already is a .def file (1st line
8249         # is EXPORTS), use it as is; otherwise, prepend...
8250         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8251           cp $export_symbols $output_objdir/$soname.def;
8252         else
8253           echo EXPORTS > $output_objdir/$soname.def;
8254           cat $export_symbols >> $output_objdir/$soname.def;
8255         fi~
8256         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8257       else
8258         ld_shlibs=no
8259       fi
8260       ;;
8261
8262     linux*)
8263       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8264         tmp_addflag=
8265         case $cc_basename,$host_cpu in
8266         pgcc*)                          # Portland Group C compiler
8267           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'
8268           tmp_addflag=' $pic_flag'
8269           ;;
8270         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8271           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'
8272           tmp_addflag=' $pic_flag -Mnomain' ;;
8273         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8274           tmp_addflag=' -i_dynamic' ;;
8275         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8276           tmp_addflag=' -i_dynamic -nofor_main' ;;
8277         ifc* | ifort*)                  # Intel Fortran compiler
8278           tmp_addflag=' -nofor_main' ;;
8279         esac
8280         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281
8282         if test $supports_anon_versioning = yes; then
8283           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8284   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8285   $echo "local: *; };" >> $output_objdir/$libname.ver~
8286           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8287         fi
8288       else
8289         ld_shlibs=no
8290       fi
8291       ;;
8292
8293     netbsd*)
8294       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8295         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8296         wlarc=
8297       else
8298         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300       fi
8301       ;;
8302
8303     solaris* | sysv5*)
8304       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8305         ld_shlibs=no
8306         cat <<EOF 1>&2
8307
8308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8309 *** create shared libraries on Solaris systems.  Therefore, libtool
8310 *** is disabling shared libraries support.  We urge you to upgrade GNU
8311 *** binutils to release 2.9.1 or newer.  Another option is to modify
8312 *** your PATH or compiler configuration so that the native linker is
8313 *** used, and then restart.
8314
8315 EOF
8316       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319       else
8320         ld_shlibs=no
8321       fi
8322       ;;
8323
8324     sunos4*)
8325       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8326       wlarc=
8327       hardcode_direct=yes
8328       hardcode_shlibpath_var=no
8329       ;;
8330
8331     *)
8332       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8335       else
8336         ld_shlibs=no
8337       fi
8338       ;;
8339     esac
8340
8341     if test "$ld_shlibs" = no; then
8342       runpath_var=
8343       hardcode_libdir_flag_spec=
8344       export_dynamic_flag_spec=
8345       whole_archive_flag_spec=
8346     fi
8347   else
8348     # PORTME fill in a description of your system's linker (not GNU ld)
8349     case $host_os in
8350     aix3*)
8351       allow_undefined_flag=unsupported
8352       always_export_symbols=yes
8353       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'
8354       # Note: this linker hardcodes the directories in LIBPATH if there
8355       # are no directories specified by -L.
8356       hardcode_minus_L=yes
8357       if test "$GCC" = yes && test -z "$link_static_flag"; then
8358         # Neither direct hardcoding nor static linking is supported with a
8359         # broken collect2.
8360         hardcode_direct=unsupported
8361       fi
8362       ;;
8363
8364     aix4* | aix5*)
8365       if test "$host_cpu" = ia64; then
8366         # On IA64, the linker does run time linking by default, so we don't
8367         # have to do anything special.
8368         aix_use_runtimelinking=no
8369         exp_sym_flag='-Bexport'
8370         no_entry_flag=""
8371       else
8372         # If we're using GNU nm, then we don't want the "-C" option.
8373         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8374         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8375           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'
8376         else
8377           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'
8378         fi
8379         aix_use_runtimelinking=no
8380
8381         # Test if we are trying to use run time linking or normal
8382         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8383         # need to do runtime linking.
8384         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8385           for ld_flag in $LDFLAGS; do
8386           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8387             aix_use_runtimelinking=yes
8388             break
8389           fi
8390           done
8391         esac
8392
8393         exp_sym_flag='-bexport'
8394         no_entry_flag='-bnoentry'
8395       fi
8396
8397       # When large executables or shared objects are built, AIX ld can
8398       # have problems creating the table of contents.  If linking a library
8399       # or program results in "error TOC overflow" add -mminimal-toc to
8400       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8401       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8402
8403       archive_cmds=''
8404       hardcode_direct=yes
8405       hardcode_libdir_separator=':'
8406       link_all_deplibs=yes
8407
8408       if test "$GCC" = yes; then
8409         case $host_os in aix4.[012]|aix4.[012].*)
8410         # We only want to do this on AIX 4.2 and lower, the check
8411         # below for broken collect2 doesn't work under 4.3+
8412           collect2name=`${CC} -print-prog-name=collect2`
8413           if test -f "$collect2name" && \
8414            strings "$collect2name" | grep resolve_lib_name >/dev/null
8415           then
8416           # We have reworked collect2
8417           hardcode_direct=yes
8418           else
8419           # We have old collect2
8420           hardcode_direct=unsupported
8421           # It fails to find uninstalled libraries when the uninstalled
8422           # path is not listed in the libpath.  Setting hardcode_minus_L
8423           # to unsupported forces relinking
8424           hardcode_minus_L=yes
8425           hardcode_libdir_flag_spec='-L$libdir'
8426           hardcode_libdir_separator=
8427           fi
8428         esac
8429         shared_flag='-shared'
8430         if test "$aix_use_runtimelinking" = yes; then
8431           shared_flag="$shared_flag "'${wl}-G'
8432         fi
8433       else
8434         # not using gcc
8435         if test "$host_cpu" = ia64; then
8436         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8437         # chokes on -Wl,-G. The following line is correct:
8438           shared_flag='-G'
8439         else
8440         if test "$aix_use_runtimelinking" = yes; then
8441             shared_flag='${wl}-G'
8442           else
8443             shared_flag='${wl}-bM:SRE'
8444         fi
8445         fi
8446       fi
8447
8448       # It seems that -bexpall does not export symbols beginning with
8449       # underscore (_), so it is better to generate a list of symbols to export.
8450       always_export_symbols=yes
8451       if test "$aix_use_runtimelinking" = yes; then
8452         # Warning - without using the other runtime loading flags (-brtl),
8453         # -berok will link without error, but may produce a broken library.
8454         allow_undefined_flag='-berok'
8455        # Determine the default libpath from the value encoded in an empty executable.
8456        cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 int
8464 main ()
8465 {
8466
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473   (eval $ac_link) 2>conftest.er1
8474   ac_status=$?
8475   grep -v '^ *+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -z "$ac_c_werror_flag"
8481                          || test ! -s conftest.err'
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); }; } &&
8487          { ac_try='test -s conftest$ac_exeext'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493
8494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8495 }'`
8496 # Check for a 64-bit object if we didn't find anything.
8497 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; }
8498 }'`; fi
8499 else
8500   echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 fi
8504 rm -f conftest.err conftest.$ac_objext \
8505       conftest$ac_exeext conftest.$ac_ext
8506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8507
8508        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509         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"
8510        else
8511         if test "$host_cpu" = ia64; then
8512           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8513           allow_undefined_flag="-z nodefs"
8514           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"
8515         else
8516          # Determine the default libpath from the value encoded in an empty executable.
8517          cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523
8524 int
8525 main ()
8526 {
8527
8528   ;
8529   return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534   (eval $ac_link) 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } &&
8541          { ac_try='test -z "$ac_c_werror_flag"
8542                          || test ! -s conftest.err'
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); }; } &&
8548          { ac_try='test -s conftest$ac_exeext'
8549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550   (eval $ac_try) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; }; then
8554
8555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8556 }'`
8557 # Check for a 64-bit object if we didn't find anything.
8558 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; }
8559 }'`; fi
8560 else
8561   echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8563
8564 fi
8565 rm -f conftest.err conftest.$ac_objext \
8566       conftest$ac_exeext conftest.$ac_ext
8567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8568
8569          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8570           # Warning - without using the other run time loading flags,
8571           # -berok will link without error, but may produce a broken library.
8572           no_undefined_flag=' ${wl}-bernotok'
8573           allow_undefined_flag=' ${wl}-berok'
8574           # -bexpall does not export symbols beginning with underscore (_)
8575           always_export_symbols=yes
8576           # Exported symbols can be pulled into shared objects from archives
8577           whole_archive_flag_spec=' '
8578           archive_cmds_need_lc=yes
8579           # This is similar to how AIX traditionally builds its shared libraries.
8580           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'
8581         fi
8582       fi
8583       ;;
8584
8585     amigaos*)
8586       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)'
8587       hardcode_libdir_flag_spec='-L$libdir'
8588       hardcode_minus_L=yes
8589       # see comment about different semantics on the GNU ld section
8590       ld_shlibs=no
8591       ;;
8592
8593     bsdi[45]*)
8594       export_dynamic_flag_spec=-rdynamic
8595       ;;
8596
8597     cygwin* | mingw* | pw32*)
8598       # When not using gcc, we currently assume that we are using
8599       # Microsoft Visual C++.
8600       # hardcode_libdir_flag_spec is actually meaningless, as there is
8601       # no search path for DLLs.
8602       hardcode_libdir_flag_spec=' '
8603       allow_undefined_flag=unsupported
8604       # Tell ltmain to make .lib files, not .a files.
8605       libext=lib
8606       # Tell ltmain to make .dll files, not .so files.
8607       shrext_cmds=".dll"
8608       # FIXME: Setting linknames here is a bad hack.
8609       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8610       # The linker will automatically build a .lib file if we build a DLL.
8611       old_archive_From_new_cmds='true'
8612       # FIXME: Should let the user specify the lib program.
8613       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8614       fix_srcfile_path='`cygpath -w "$srcfile"`'
8615       enable_shared_with_static_runtimes=yes
8616       ;;
8617
8618     darwin* | rhapsody*)
8619       case $host_os in
8620         rhapsody* | darwin1.[012])
8621          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8622          ;;
8623        *) # Darwin 1.3 on
8624          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8625            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626          else
8627            case ${MACOSX_DEPLOYMENT_TARGET} in
8628              10.[012])
8629                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8630                ;;
8631              10.*)
8632                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8633                ;;
8634            esac
8635          fi
8636          ;;
8637       esac
8638       archive_cmds_need_lc=no
8639       hardcode_direct=no
8640       hardcode_automatic=yes
8641       hardcode_shlibpath_var=unsupported
8642       whole_archive_flag_spec=''
8643       link_all_deplibs=yes
8644     if test "$GCC" = yes ; then
8645         output_verbose_link_cmd='echo'
8646         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8647       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8648       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8649       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}'
8650       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}'
8651     else
8652       case $cc_basename in
8653         xlc*)
8654          output_verbose_link_cmd='echo'
8655          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8656          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8657           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8658          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}'
8659           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}'
8660           ;;
8661        *)
8662          ld_shlibs=no
8663           ;;
8664       esac
8665     fi
8666       ;;
8667
8668     dgux*)
8669       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670       hardcode_libdir_flag_spec='-L$libdir'
8671       hardcode_shlibpath_var=no
8672       ;;
8673
8674     freebsd1*)
8675       ld_shlibs=no
8676       ;;
8677
8678     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8679     # support.  Future versions do this automatically, but an explicit c++rt0.o
8680     # does not break anything, and helps significantly (at the cost of a little
8681     # extra space).
8682     freebsd2.2*)
8683       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8684       hardcode_libdir_flag_spec='-R$libdir'
8685       hardcode_direct=yes
8686       hardcode_shlibpath_var=no
8687       ;;
8688
8689     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8690     freebsd2*)
8691       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8692       hardcode_direct=yes
8693       hardcode_minus_L=yes
8694       hardcode_shlibpath_var=no
8695       ;;
8696
8697     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8698     freebsd* | kfreebsd*-gnu | dragonfly*)
8699       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8700       hardcode_libdir_flag_spec='-R$libdir'
8701       hardcode_direct=yes
8702       hardcode_shlibpath_var=no
8703       ;;
8704
8705     hpux9*)
8706       if test "$GCC" = yes; then
8707         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'
8708       else
8709         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'
8710       fi
8711       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8712       hardcode_libdir_separator=:
8713       hardcode_direct=yes
8714
8715       # hardcode_minus_L: Not really in the search PATH,
8716       # but as the default location of the library.
8717       hardcode_minus_L=yes
8718       export_dynamic_flag_spec='${wl}-E'
8719       ;;
8720
8721     hpux10* | hpux11*)
8722       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8723         case $host_cpu in
8724         hppa*64*|ia64*)
8725           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726           ;;
8727         *)
8728           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8729           ;;
8730         esac
8731       else
8732         case $host_cpu in
8733         hppa*64*|ia64*)
8734           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8735           ;;
8736         *)
8737           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8738           ;;
8739         esac
8740       fi
8741       if test "$with_gnu_ld" = no; then
8742         case $host_cpu in
8743         hppa*64*)
8744           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745           hardcode_libdir_flag_spec_ld='+b $libdir'
8746           hardcode_libdir_separator=:
8747           hardcode_direct=no
8748           hardcode_shlibpath_var=no
8749           ;;
8750         ia64*)
8751           hardcode_libdir_flag_spec='-L$libdir'
8752           hardcode_direct=no
8753           hardcode_shlibpath_var=no
8754
8755           # hardcode_minus_L: Not really in the search PATH,
8756           # but as the default location of the library.
8757           hardcode_minus_L=yes
8758           ;;
8759         *)
8760           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761           hardcode_libdir_separator=:
8762           hardcode_direct=yes
8763           export_dynamic_flag_spec='${wl}-E'
8764
8765           # hardcode_minus_L: Not really in the search PATH,
8766           # but as the default location of the library.
8767           hardcode_minus_L=yes
8768           ;;
8769         esac
8770       fi
8771       ;;
8772
8773     irix5* | irix6* | nonstopux*)
8774       if test "$GCC" = yes; then
8775         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'
8776       else
8777         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'
8778         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8779       fi
8780       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781       hardcode_libdir_separator=:
8782       link_all_deplibs=yes
8783       ;;
8784
8785     netbsd*)
8786       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8787         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8788       else
8789         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8790       fi
8791       hardcode_libdir_flag_spec='-R$libdir'
8792       hardcode_direct=yes
8793       hardcode_shlibpath_var=no
8794       ;;
8795
8796     newsos6)
8797       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798       hardcode_direct=yes
8799       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800       hardcode_libdir_separator=:
8801       hardcode_shlibpath_var=no
8802       ;;
8803
8804     openbsd*)
8805       hardcode_direct=yes
8806       hardcode_shlibpath_var=no
8807       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8808         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8810         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8811         export_dynamic_flag_spec='${wl}-E'
8812       else
8813        case $host_os in
8814          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8815            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8816            hardcode_libdir_flag_spec='-R$libdir'
8817            ;;
8818          *)
8819            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8821            ;;
8822        esac
8823       fi
8824       ;;
8825
8826     os2*)
8827       hardcode_libdir_flag_spec='-L$libdir'
8828       hardcode_minus_L=yes
8829       allow_undefined_flag=unsupported
8830       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'
8831       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8832       ;;
8833
8834     osf3*)
8835       if test "$GCC" = yes; then
8836         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8837         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'
8838       else
8839         allow_undefined_flag=' -expect_unresolved \*'
8840         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'
8841       fi
8842       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843       hardcode_libdir_separator=:
8844       ;;
8845
8846     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8847       if test "$GCC" = yes; then
8848         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8849         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'
8850         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8851       else
8852         allow_undefined_flag=' -expect_unresolved \*'
8853         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'
8854         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8855         $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'
8856
8857         # Both c and cxx compiler support -rpath directly
8858         hardcode_libdir_flag_spec='-rpath $libdir'
8859       fi
8860       hardcode_libdir_separator=:
8861       ;;
8862
8863     sco3.2v5*)
8864       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865       hardcode_shlibpath_var=no
8866       export_dynamic_flag_spec='${wl}-Bexport'
8867       runpath_var=LD_RUN_PATH
8868       hardcode_runpath_var=yes
8869       ;;
8870
8871     solaris*)
8872       no_undefined_flag=' -z text'
8873       if test "$GCC" = yes; then
8874         wlarc='${wl}'
8875         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8877           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8878       else
8879         wlarc=''
8880         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8882         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8883       fi
8884       hardcode_libdir_flag_spec='-R$libdir'
8885       hardcode_shlibpath_var=no
8886       case $host_os in
8887       solaris2.[0-5] | solaris2.[0-5].*) ;;
8888       *)
8889         # The compiler driver will combine linker options so we
8890         # cannot just pass the convience library names through
8891         # without $wl, iff we do not link with $LD.
8892         # Luckily, gcc supports the same syntax we need for Sun Studio.
8893         # Supported since Solaris 2.6 (maybe 2.5.1?)
8894         case $wlarc in
8895         '')
8896           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8897         *)
8898           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' ;;
8899         esac ;;
8900       esac
8901       link_all_deplibs=yes
8902       ;;
8903
8904     sunos4*)
8905       if test "x$host_vendor" = xsequent; then
8906         # Use $CC to link under sequent, because it throws in some extra .o
8907         # files that make .init and .fini sections work.
8908         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8909       else
8910         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8911       fi
8912       hardcode_libdir_flag_spec='-L$libdir'
8913       hardcode_direct=yes
8914       hardcode_minus_L=yes
8915       hardcode_shlibpath_var=no
8916       ;;
8917
8918     sysv4)
8919       case $host_vendor in
8920         sni)
8921           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922           hardcode_direct=yes # is this really true???
8923         ;;
8924         siemens)
8925           ## LD is ld it makes a PLAMLIB
8926           ## CC just makes a GrossModule.
8927           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928           reload_cmds='$CC -r -o $output$reload_objs'
8929           hardcode_direct=no
8930         ;;
8931         motorola)
8932           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8934         ;;
8935       esac
8936       runpath_var='LD_RUN_PATH'
8937       hardcode_shlibpath_var=no
8938       ;;
8939
8940     sysv4.3*)
8941       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942       hardcode_shlibpath_var=no
8943       export_dynamic_flag_spec='-Bexport'
8944       ;;
8945
8946     sysv4*MP*)
8947       if test -d /usr/nec; then
8948         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949         hardcode_shlibpath_var=no
8950         runpath_var=LD_RUN_PATH
8951         hardcode_runpath_var=yes
8952         ld_shlibs=yes
8953       fi
8954       ;;
8955
8956     sysv4.2uw2*)
8957       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8958       hardcode_direct=yes
8959       hardcode_minus_L=no
8960       hardcode_shlibpath_var=no
8961       hardcode_runpath_var=yes
8962       runpath_var=LD_RUN_PATH
8963       ;;
8964
8965    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8966       no_undefined_flag='${wl}-z ${wl}text'
8967       if test "$GCC" = yes; then
8968         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8969       else
8970         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971       fi
8972       runpath_var='LD_RUN_PATH'
8973       hardcode_shlibpath_var=no
8974       ;;
8975
8976     sysv5*)
8977       no_undefined_flag=' -z text'
8978       # $CC -shared without GNU ld will not create a library from C++
8979       # object files and a static libstdc++, better avoid it by now
8980       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8982                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8983       hardcode_libdir_flag_spec=
8984       hardcode_shlibpath_var=no
8985       runpath_var='LD_RUN_PATH'
8986       ;;
8987
8988     uts4*)
8989       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990       hardcode_libdir_flag_spec='-L$libdir'
8991       hardcode_shlibpath_var=no
8992       ;;
8993
8994     *)
8995       ld_shlibs=no
8996       ;;
8997     esac
8998   fi
8999
9000 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9001 echo "${ECHO_T}$ld_shlibs" >&6
9002 test "$ld_shlibs" = no && can_build_shared=no
9003
9004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9005 if test "$GCC" = yes; then
9006   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9007 fi
9008
9009 #
9010 # Do we need to explicitly link libc?
9011 #
9012 case "x$archive_cmds_need_lc" in
9013 x|xyes)
9014   # Assume -lc should be added
9015   archive_cmds_need_lc=yes
9016
9017   if test "$enable_shared" = yes && test "$GCC" = yes; then
9018     case $archive_cmds in
9019     *'~'*)
9020       # FIXME: we may have to deal with multi-command sequences.
9021       ;;
9022     '$CC '*)
9023       # Test whether the compiler implicitly links with -lc since on some
9024       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9025       # to ld, don't add -lc before -lgcc.
9026       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9028       $rm conftest*
9029       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9030
9031       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032   (eval $ac_compile) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } 2>conftest.err; then
9036         soname=conftest
9037         lib=conftest
9038         libobjs=conftest.$ac_objext
9039         deplibs=
9040         wl=$lt_prog_compiler_wl
9041         compiler_flags=-v
9042         linker_flags=-v
9043         verstring=
9044         output_objdir=.
9045         libname=conftest
9046         lt_save_allow_undefined_flag=$allow_undefined_flag
9047         allow_undefined_flag=
9048         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9049   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }
9053         then
9054           archive_cmds_need_lc=no
9055         else
9056           archive_cmds_need_lc=yes
9057         fi
9058         allow_undefined_flag=$lt_save_allow_undefined_flag
9059       else
9060         cat conftest.err 1>&5
9061       fi
9062       $rm conftest*
9063       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9064 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9065       ;;
9066     esac
9067   fi
9068   ;;
9069 esac
9070
9071 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9072 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9073 library_names_spec=
9074 libname_spec='lib$name'
9075 soname_spec=
9076 shrext_cmds=".so"
9077 postinstall_cmds=
9078 postuninstall_cmds=
9079 finish_cmds=
9080 finish_eval=
9081 shlibpath_var=
9082 shlibpath_overrides_runpath=unknown
9083 version_type=none
9084 dynamic_linker="$host_os ld.so"
9085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9086 if test "$GCC" = yes; then
9087   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9088   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9089     # if the path contains ";" then we assume it to be the separator
9090     # otherwise default to the standard path separator (i.e. ":") - it is
9091     # assumed that no part of a normal pathname contains ";" but that should
9092     # okay in the real world where ";" in dirpaths is itself problematic.
9093     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9094   else
9095     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9096   fi
9097 else
9098   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9099 fi
9100 need_lib_prefix=unknown
9101 hardcode_into_libs=no
9102
9103 # when you set need_version to no, make sure it does not cause -set_version
9104 # flags to be left without arguments
9105 need_version=unknown
9106
9107 case $host_os in
9108 aix3*)
9109   version_type=linux
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9111   shlibpath_var=LIBPATH
9112
9113   # AIX 3 has no versioning support, so we append a major version to the name.
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   ;;
9116
9117 aix4* | aix5*)
9118   version_type=linux
9119   need_lib_prefix=no
9120   need_version=no
9121   hardcode_into_libs=yes
9122   if test "$host_cpu" = ia64; then
9123     # AIX 5 supports IA64
9124     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9125     shlibpath_var=LD_LIBRARY_PATH
9126   else
9127     # With GCC up to 2.95.x, collect2 would create an import file
9128     # for dependence libraries.  The import file would start with
9129     # the line `#! .'.  This would cause the generated library to
9130     # depend on `.', always an invalid library.  This was fixed in
9131     # development snapshots of GCC prior to 3.0.
9132     case $host_os in
9133       aix4 | aix4.[01] | aix4.[01].*)
9134       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9135            echo ' yes '
9136            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9137         :
9138       else
9139         can_build_shared=no
9140       fi
9141       ;;
9142     esac
9143     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9144     # soname into executable. Probably we can add versioning support to
9145     # collect2, so additional links can be useful in future.
9146     if test "$aix_use_runtimelinking" = yes; then
9147       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9148       # instead of lib<name>.a to let people know that these are not
9149       # typical AIX shared libraries.
9150       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151     else
9152       # We preserve .a as extension for shared libraries through AIX4.2
9153       # and later when we are not doing run time linking.
9154       library_names_spec='${libname}${release}.a $libname.a'
9155       soname_spec='${libname}${release}${shared_ext}$major'
9156     fi
9157     shlibpath_var=LIBPATH
9158   fi
9159   ;;
9160
9161 amigaos*)
9162   library_names_spec='$libname.ixlibrary $libname.a'
9163   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9164   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'
9165   ;;
9166
9167 beos*)
9168   library_names_spec='${libname}${shared_ext}'
9169   dynamic_linker="$host_os ld.so"
9170   shlibpath_var=LIBRARY_PATH
9171   ;;
9172
9173 bsdi[45]*)
9174   version_type=linux
9175   need_version=no
9176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177   soname_spec='${libname}${release}${shared_ext}$major'
9178   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9181   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9182   # the default ld.so.conf also contains /usr/contrib/lib and
9183   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9184   # libtool to hard-code these into programs
9185   ;;
9186
9187 cygwin* | mingw* | pw32*)
9188   version_type=windows
9189   shrext_cmds=".dll"
9190   need_version=no
9191   need_lib_prefix=no
9192
9193   case $GCC,$host_os in
9194   yes,cygwin* | yes,mingw* | yes,pw32*)
9195     library_names_spec='$libname.dll.a'
9196     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9197     postinstall_cmds='base_file=`basename \${file}`~
9198       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9199       dldir=$destdir/`dirname \$dlpath`~
9200       test -d \$dldir || mkdir -p \$dldir~
9201       $install_prog $dir/$dlname \$dldir/$dlname~
9202       chmod a+x \$dldir/$dlname'
9203     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9204       dlpath=$dir/\$dldll~
9205        $rm \$dlpath'
9206     shlibpath_overrides_runpath=yes
9207
9208     case $host_os in
9209     cygwin*)
9210       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9211       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9213       ;;
9214     mingw*)
9215       # MinGW DLLs use traditional 'lib' prefix
9216       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9219         # It is most probably a Windows format PATH printed by
9220         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9221         # path with ; separators, and with drive letters. We can handle the
9222         # drive letters (cygwin fileutils understands them), so leave them,
9223         # especially as we might pass files found there to a mingw objdump,
9224         # which wouldn't understand a cygwinified path. Ahh.
9225         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9226       else
9227         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9228       fi
9229       ;;
9230     pw32*)
9231       # pw32 DLLs use 'pw' prefix rather than 'lib'
9232       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9233       ;;
9234     esac
9235     ;;
9236
9237   *)
9238     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9239     ;;
9240   esac
9241   dynamic_linker='Win32 ld.exe'
9242   # FIXME: first we should search . and the directory the executable is in
9243   shlibpath_var=PATH
9244   ;;
9245
9246 darwin* | rhapsody*)
9247   dynamic_linker="$host_os dyld"
9248   version_type=darwin
9249   need_lib_prefix=no
9250   need_version=no
9251   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9252   soname_spec='${libname}${release}${major}$shared_ext'
9253   shlibpath_overrides_runpath=yes
9254   shlibpath_var=DYLD_LIBRARY_PATH
9255   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9256   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9257   if test "$GCC" = yes; then
9258     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"`
9259   else
9260     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9261   fi
9262   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9263   ;;
9264
9265 dgux*)
9266   version_type=linux
9267   need_lib_prefix=no
9268   need_version=no
9269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   ;;
9273
9274 freebsd1*)
9275   dynamic_linker=no
9276   ;;
9277
9278 kfreebsd*-gnu)
9279   version_type=linux
9280   need_lib_prefix=no
9281   need_version=no
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283   soname_spec='${libname}${release}${shared_ext}$major'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   shlibpath_overrides_runpath=no
9286   hardcode_into_libs=yes
9287   dynamic_linker='GNU ld.so'
9288   ;;
9289
9290 freebsd* | dragonfly*)
9291   # DragonFly does not have aout.  When/if they implement a new
9292   # versioning mechanism, adjust this.
9293   if test -x /usr/bin/objformat; then
9294     objformat=`/usr/bin/objformat`
9295   else
9296     case $host_os in
9297     freebsd[123]*) objformat=aout ;;
9298     *) objformat=elf ;;
9299     esac
9300   fi
9301   version_type=freebsd-$objformat
9302   case $version_type in
9303     freebsd-elf*)
9304       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9305       need_version=no
9306       need_lib_prefix=no
9307       ;;
9308     freebsd-*)
9309       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9310       need_version=yes
9311       ;;
9312   esac
9313   shlibpath_var=LD_LIBRARY_PATH
9314   case $host_os in
9315   freebsd2*)
9316     shlibpath_overrides_runpath=yes
9317     ;;
9318   freebsd3.[01]* | freebsdelf3.[01]*)
9319     shlibpath_overrides_runpath=yes
9320     hardcode_into_libs=yes
9321     ;;
9322   *) # from 3.2 on
9323     shlibpath_overrides_runpath=no
9324     hardcode_into_libs=yes
9325     ;;
9326   esac
9327   ;;
9328
9329 gnu*)
9330   version_type=linux
9331   need_lib_prefix=no
9332   need_version=no
9333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9334   soname_spec='${libname}${release}${shared_ext}$major'
9335   shlibpath_var=LD_LIBRARY_PATH
9336   hardcode_into_libs=yes
9337   ;;
9338
9339 hpux9* | hpux10* | hpux11*)
9340   # Give a soname corresponding to the major version so that dld.sl refuses to
9341   # link against other versions.
9342   version_type=sunos
9343   need_lib_prefix=no
9344   need_version=no
9345   case $host_cpu in
9346   ia64*)
9347     shrext_cmds='.so'
9348     hardcode_into_libs=yes
9349     dynamic_linker="$host_os dld.so"
9350     shlibpath_var=LD_LIBRARY_PATH
9351     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353     soname_spec='${libname}${release}${shared_ext}$major'
9354     if test "X$HPUX_IA64_MODE" = X32; then
9355       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9356     else
9357       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9358     fi
9359     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9360     ;;
9361    hppa*64*)
9362      shrext_cmds='.sl'
9363      hardcode_into_libs=yes
9364      dynamic_linker="$host_os dld.sl"
9365      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9366      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368      soname_spec='${libname}${release}${shared_ext}$major'
9369      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9370      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9371      ;;
9372    *)
9373     shrext_cmds='.sl'
9374     dynamic_linker="$host_os dld.sl"
9375     shlibpath_var=SHLIB_PATH
9376     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378     soname_spec='${libname}${release}${shared_ext}$major'
9379     ;;
9380   esac
9381   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9382   postinstall_cmds='chmod 555 $lib'
9383   ;;
9384
9385 irix5* | irix6* | nonstopux*)
9386   case $host_os in
9387     nonstopux*) version_type=nonstopux ;;
9388     *)
9389         if test "$lt_cv_prog_gnu_ld" = yes; then
9390                 version_type=linux
9391         else
9392                 version_type=irix
9393         fi ;;
9394   esac
9395   need_lib_prefix=no
9396   need_version=no
9397   soname_spec='${libname}${release}${shared_ext}$major'
9398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9399   case $host_os in
9400   irix5* | nonstopux*)
9401     libsuff= shlibsuff=
9402     ;;
9403   *)
9404     case $LD in # libtool.m4 will add one of these switches to LD
9405     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9406       libsuff= shlibsuff= libmagic=32-bit;;
9407     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9408       libsuff=32 shlibsuff=N32 libmagic=N32;;
9409     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9410       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9411     *) libsuff= shlibsuff= libmagic=never-match;;
9412     esac
9413     ;;
9414   esac
9415   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9416   shlibpath_overrides_runpath=no
9417   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9418   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9419   hardcode_into_libs=yes
9420   ;;
9421
9422 # No shared lib support for Linux oldld, aout, or coff.
9423 linux*oldld* | linux*aout* | linux*coff*)
9424   dynamic_linker=no
9425   ;;
9426
9427 # This must be Linux ELF.
9428 linux*)
9429   version_type=linux
9430   need_lib_prefix=no
9431   need_version=no
9432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433   soname_spec='${libname}${release}${shared_ext}$major'
9434   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9435   shlibpath_var=LD_LIBRARY_PATH
9436   shlibpath_overrides_runpath=no
9437   # This implies no fast_install, which is unacceptable.
9438   # Some rework will be needed to allow for fast_install
9439   # before this can be enabled.
9440   hardcode_into_libs=yes
9441
9442   # Append ld.so.conf contents to the search path
9443   if test -f /etc/ld.so.conf; then
9444     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' ' '`
9445     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9446   fi
9447
9448   # We used to test for /lib/ld.so.1 and disable shared libraries on
9449   # powerpc, because MkLinux only supported shared libraries with the
9450   # GNU dynamic linker.  Since this was broken with cross compilers,
9451   # most powerpc-linux boxes support dynamic linking these days and
9452   # people can always --disable-shared, the test was removed, and we
9453   # assume the GNU/Linux dynamic linker is in use.
9454   dynamic_linker='GNU/Linux ld.so'
9455   ;;
9456
9457 knetbsd*-gnu)
9458   version_type=linux
9459   need_lib_prefix=no
9460   need_version=no
9461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9462   soname_spec='${libname}${release}${shared_ext}$major'
9463   shlibpath_var=LD_LIBRARY_PATH
9464   shlibpath_overrides_runpath=no
9465   hardcode_into_libs=yes
9466   dynamic_linker='GNU ld.so'
9467   ;;
9468
9469 netbsd*)
9470   version_type=sunos
9471   need_lib_prefix=no
9472   need_version=no
9473   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9475     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9476     dynamic_linker='NetBSD (a.out) ld.so'
9477   else
9478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9479     soname_spec='${libname}${release}${shared_ext}$major'
9480     dynamic_linker='NetBSD ld.elf_so'
9481   fi
9482   shlibpath_var=LD_LIBRARY_PATH
9483   shlibpath_overrides_runpath=yes
9484   hardcode_into_libs=yes
9485   ;;
9486
9487 newsos6)
9488   version_type=linux
9489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490   shlibpath_var=LD_LIBRARY_PATH
9491   shlibpath_overrides_runpath=yes
9492   ;;
9493
9494 nto-qnx*)
9495   version_type=linux
9496   need_lib_prefix=no
9497   need_version=no
9498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499   soname_spec='${libname}${release}${shared_ext}$major'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=yes
9502   ;;
9503
9504 openbsd*)
9505   version_type=sunos
9506   need_lib_prefix=no
9507   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9508   case $host_os in
9509     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9510     *)                         need_version=no  ;;
9511   esac
9512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9514   shlibpath_var=LD_LIBRARY_PATH
9515   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9516     case $host_os in
9517       openbsd2.[89] | openbsd2.[89].*)
9518         shlibpath_overrides_runpath=no
9519         ;;
9520       *)
9521         shlibpath_overrides_runpath=yes
9522         ;;
9523       esac
9524   else
9525     shlibpath_overrides_runpath=yes
9526   fi
9527   ;;
9528
9529 os2*)
9530   libname_spec='$name'
9531   shrext_cmds=".dll"
9532   need_lib_prefix=no
9533   library_names_spec='$libname${shared_ext} $libname.a'
9534   dynamic_linker='OS/2 ld.exe'
9535   shlibpath_var=LIBPATH
9536   ;;
9537
9538 osf3* | osf4* | osf5*)
9539   version_type=osf
9540   need_lib_prefix=no
9541   need_version=no
9542   soname_spec='${libname}${release}${shared_ext}$major'
9543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544   shlibpath_var=LD_LIBRARY_PATH
9545   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9546   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9547   ;;
9548
9549 sco3.2v5*)
9550   version_type=osf
9551   soname_spec='${libname}${release}${shared_ext}$major'
9552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553   shlibpath_var=LD_LIBRARY_PATH
9554   ;;
9555
9556 solaris*)
9557   version_type=linux
9558   need_lib_prefix=no
9559   need_version=no
9560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561   soname_spec='${libname}${release}${shared_ext}$major'
9562   shlibpath_var=LD_LIBRARY_PATH
9563   shlibpath_overrides_runpath=yes
9564   hardcode_into_libs=yes
9565   # ldd complains unless libraries are executable
9566   postinstall_cmds='chmod +x $lib'
9567   ;;
9568
9569 sunos4*)
9570   version_type=sunos
9571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9572   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9573   shlibpath_var=LD_LIBRARY_PATH
9574   shlibpath_overrides_runpath=yes
9575   if test "$with_gnu_ld" = yes; then
9576     need_lib_prefix=no
9577   fi
9578   need_version=yes
9579   ;;
9580
9581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9582   version_type=linux
9583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584   soname_spec='${libname}${release}${shared_ext}$major'
9585   shlibpath_var=LD_LIBRARY_PATH
9586   case $host_vendor in
9587     sni)
9588       shlibpath_overrides_runpath=no
9589       need_lib_prefix=no
9590       export_dynamic_flag_spec='${wl}-Blargedynsym'
9591       runpath_var=LD_RUN_PATH
9592       ;;
9593     siemens)
9594       need_lib_prefix=no
9595       ;;
9596     motorola)
9597       need_lib_prefix=no
9598       need_version=no
9599       shlibpath_overrides_runpath=no
9600       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9601       ;;
9602   esac
9603   ;;
9604
9605 sysv4*MP*)
9606   if test -d /usr/nec ;then
9607     version_type=linux
9608     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9609     soname_spec='$libname${shared_ext}.$major'
9610     shlibpath_var=LD_LIBRARY_PATH
9611   fi
9612   ;;
9613
9614 uts4*)
9615   version_type=linux
9616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617   soname_spec='${libname}${release}${shared_ext}$major'
9618   shlibpath_var=LD_LIBRARY_PATH
9619   ;;
9620
9621 *)
9622   dynamic_linker=no
9623   ;;
9624 esac
9625 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9626 echo "${ECHO_T}$dynamic_linker" >&6
9627 test "$dynamic_linker" = no && can_build_shared=no
9628
9629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9631 hardcode_action=
9632 if test -n "$hardcode_libdir_flag_spec" || \
9633    test -n "$runpath_var" || \
9634    test "X$hardcode_automatic" = "Xyes" ; then
9635
9636   # We can hardcode non-existant directories.
9637   if test "$hardcode_direct" != no &&
9638      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9639      # have to relink, otherwise we might link with an installed library
9640      # when we should be linking with a yet-to-be-installed one
9641      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9642      test "$hardcode_minus_L" != no; then
9643     # Linking always hardcodes the temporary library directory.
9644     hardcode_action=relink
9645   else
9646     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9647     hardcode_action=immediate
9648   fi
9649 else
9650   # We cannot hardcode anything, or else we can only hardcode existing
9651   # directories.
9652   hardcode_action=unsupported
9653 fi
9654 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9655 echo "${ECHO_T}$hardcode_action" >&6
9656
9657 if test "$hardcode_action" = relink; then
9658   # Fast installation is not supported
9659   enable_fast_install=no
9660 elif test "$shlibpath_overrides_runpath" = yes ||
9661      test "$enable_shared" = no; then
9662   # Fast installation is not necessary
9663   enable_fast_install=needless
9664 fi
9665
9666 striplib=
9667 old_striplib=
9668 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9669 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9670 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9671   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9672   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9673   echo "$as_me:$LINENO: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9675 else
9676 # FIXME - insert some real tests, host_os isn't really good enough
9677   case $host_os in
9678    darwin*)
9679        if test -n "$STRIP" ; then
9680          striplib="$STRIP -x"
9681          echo "$as_me:$LINENO: result: yes" >&5
9682 echo "${ECHO_T}yes" >&6
9683        else
9684   echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9686 fi
9687        ;;
9688    *)
9689   echo "$as_me:$LINENO: result: no" >&5
9690 echo "${ECHO_T}no" >&6
9691     ;;
9692   esac
9693 fi
9694
9695 if test "x$enable_dlopen" != xyes; then
9696   enable_dlopen=unknown
9697   enable_dlopen_self=unknown
9698   enable_dlopen_self_static=unknown
9699 else
9700   lt_cv_dlopen=no
9701   lt_cv_dlopen_libs=
9702
9703   case $host_os in
9704   beos*)
9705     lt_cv_dlopen="load_add_on"
9706     lt_cv_dlopen_libs=
9707     lt_cv_dlopen_self=yes
9708     ;;
9709
9710   mingw* | pw32*)
9711     lt_cv_dlopen="LoadLibrary"
9712     lt_cv_dlopen_libs=
9713    ;;
9714
9715   cygwin*)
9716     lt_cv_dlopen="dlopen"
9717     lt_cv_dlopen_libs=
9718    ;;
9719
9720   darwin*)
9721   # if libdl is installed we need to link against it
9722     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   ac_check_lib_save_LIBS=$LIBS
9728 LIBS="-ldl  $LIBS"
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735
9736 /* Override any gcc2 internal prototype to avoid an error.  */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 /* We use char because int might match the return type of a gcc2
9741    builtin and then its argument prototype would still apply.  */
9742 char dlopen ();
9743 int
9744 main ()
9745 {
9746 dlopen ();
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753   (eval $ac_link) 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag"
9761                          || test ! -s conftest.err'
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); }; } &&
9767          { ac_try='test -s conftest$ac_exeext'
9768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769   (eval $ac_try) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); }; }; then
9773   ac_cv_lib_dl_dlopen=yes
9774 else
9775   echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_cv_lib_dl_dlopen=no
9779 fi
9780 rm -f conftest.err conftest.$ac_objext \
9781       conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9783 fi
9784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9786 if test $ac_cv_lib_dl_dlopen = yes; then
9787   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9788 else
9789
9790     lt_cv_dlopen="dyld"
9791     lt_cv_dlopen_libs=
9792     lt_cv_dlopen_self=yes
9793
9794 fi
9795
9796    ;;
9797
9798   *)
9799     echo "$as_me:$LINENO: checking for shl_load" >&5
9800 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9801 if test "${ac_cv_func_shl_load+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9812 #define shl_load innocuous_shl_load
9813
9814 /* System header to define __stub macros and hopefully few prototypes,
9815     which can conflict with char shl_load (); below.
9816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817     <limits.h> exists even on freestanding compilers.  */
9818
9819 #ifdef __STDC__
9820 # include <limits.h>
9821 #else
9822 # include <assert.h>
9823 #endif
9824
9825 #undef shl_load
9826
9827 /* Override any gcc2 internal prototype to avoid an error.  */
9828 #ifdef __cplusplus
9829 extern "C"
9830 {
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833    builtin and then its argument prototype would still apply.  */
9834 char shl_load ();
9835 /* The GNU C library defines this for functions which it implements
9836     to always fail with ENOSYS.  Some functions are actually named
9837     something starting with __ and the normal name is an alias.  */
9838 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9839 choke me
9840 #else
9841 char (*f) () = shl_load;
9842 #endif
9843 #ifdef __cplusplus
9844 }
9845 #endif
9846
9847 int
9848 main ()
9849 {
9850 return f != shl_load;
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857   (eval $ac_link) 2>conftest.er1
9858   ac_status=$?
9859   grep -v '^ *+' conftest.er1 >conftest.err
9860   rm -f conftest.er1
9861   cat conftest.err >&5
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); } &&
9864          { ac_try='test -z "$ac_c_werror_flag"
9865                          || test ! -s conftest.err'
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); }; } &&
9871          { ac_try='test -s conftest$ac_exeext'
9872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873   (eval $ac_try) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; }; then
9877   ac_cv_func_shl_load=yes
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_cv_func_shl_load=no
9883 fi
9884 rm -f conftest.err conftest.$ac_objext \
9885       conftest$ac_exeext conftest.$ac_ext
9886 fi
9887 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9888 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9889 if test $ac_cv_func_shl_load = yes; then
9890   lt_cv_dlopen="shl_load"
9891 else
9892   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9893 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   ac_check_lib_save_LIBS=$LIBS
9898 LIBS="-ldld  $LIBS"
9899 cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905
9906 /* Override any gcc2 internal prototype to avoid an error.  */
9907 #ifdef __cplusplus
9908 extern "C"
9909 #endif
9910 /* We use char because int might match the return type of a gcc2
9911    builtin and then its argument prototype would still apply.  */
9912 char shl_load ();
9913 int
9914 main ()
9915 {
9916 shl_load ();
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923   (eval $ac_link) 2>conftest.er1
9924   ac_status=$?
9925   grep -v '^ *+' conftest.er1 >conftest.err
9926   rm -f conftest.er1
9927   cat conftest.err >&5
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); } &&
9930          { ac_try='test -z "$ac_c_werror_flag"
9931                          || test ! -s conftest.err'
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); }; } &&
9937          { ac_try='test -s conftest$ac_exeext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_lib_dld_shl_load=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_cv_lib_dld_shl_load=no
9949 fi
9950 rm -f conftest.err conftest.$ac_objext \
9951       conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_check_lib_save_LIBS
9953 fi
9954 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9956 if test $ac_cv_lib_dld_shl_load = yes; then
9957   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9958 else
9959   echo "$as_me:$LINENO: checking for dlopen" >&5
9960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9961 if test "${ac_cv_func_dlopen+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972 #define dlopen innocuous_dlopen
9973
9974 /* System header to define __stub macros and hopefully few prototypes,
9975     which can conflict with char dlopen (); below.
9976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977     <limits.h> exists even on freestanding compilers.  */
9978
9979 #ifdef __STDC__
9980 # include <limits.h>
9981 #else
9982 # include <assert.h>
9983 #endif
9984
9985 #undef dlopen
9986
9987 /* Override any gcc2 internal prototype to avoid an error.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 {
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993    builtin and then its argument prototype would still apply.  */
9994 char dlopen ();
9995 /* The GNU C library defines this for functions which it implements
9996     to always fail with ENOSYS.  Some functions are actually named
9997     something starting with __ and the normal name is an alias.  */
9998 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9999 choke me
10000 #else
10001 char (*f) () = dlopen;
10002 #endif
10003 #ifdef __cplusplus
10004 }
10005 #endif
10006
10007 int
10008 main ()
10009 {
10010 return f != dlopen;
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017   (eval $ac_link) 2>conftest.er1
10018   ac_status=$?
10019   grep -v '^ *+' conftest.er1 >conftest.err
10020   rm -f conftest.er1
10021   cat conftest.err >&5
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } &&
10024          { ac_try='test -z "$ac_c_werror_flag"
10025                          || test ! -s conftest.err'
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); }; } &&
10031          { ac_try='test -s conftest$ac_exeext'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037   ac_cv_func_dlopen=yes
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 ac_cv_func_dlopen=no
10043 fi
10044 rm -f conftest.err conftest.$ac_objext \
10045       conftest$ac_exeext conftest.$ac_ext
10046 fi
10047 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10048 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10049 if test $ac_cv_func_dlopen = yes; then
10050   lt_cv_dlopen="dlopen"
10051 else
10052   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10053 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-ldl  $LIBS"
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065
10066 /* Override any gcc2 internal prototype to avoid an error.  */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 /* We use char because int might match the return type of a gcc2
10071    builtin and then its argument prototype would still apply.  */
10072 char dlopen ();
10073 int
10074 main ()
10075 {
10076 dlopen ();
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083   (eval $ac_link) 2>conftest.er1
10084   ac_status=$?
10085   grep -v '^ *+' conftest.er1 >conftest.err
10086   rm -f conftest.er1
10087   cat conftest.err >&5
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } &&
10090          { ac_try='test -z "$ac_c_werror_flag"
10091                          || test ! -s conftest.err'
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); }; } &&
10097          { ac_try='test -s conftest$ac_exeext'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; }; then
10103   ac_cv_lib_dl_dlopen=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_cv_lib_dl_dlopen=no
10109 fi
10110 rm -f conftest.err conftest.$ac_objext \
10111       conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10113 fi
10114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10116 if test $ac_cv_lib_dl_dlopen = yes; then
10117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10118 else
10119   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10120 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10121 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-lsvld  $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132
10133 /* Override any gcc2 internal prototype to avoid an error.  */
10134 #ifdef __cplusplus
10135 extern "C"
10136 #endif
10137 /* We use char because int might match the return type of a gcc2
10138    builtin and then its argument prototype would still apply.  */
10139 char dlopen ();
10140 int
10141 main ()
10142 {
10143 dlopen ();
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150   (eval $ac_link) 2>conftest.er1
10151   ac_status=$?
10152   grep -v '^ *+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -z "$ac_c_werror_flag"
10158                          || test ! -s conftest.err'
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); }; } &&
10164          { ac_try='test -s conftest$ac_exeext'
10165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166   (eval $ac_try) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; }; then
10170   ac_cv_lib_svld_dlopen=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 ac_cv_lib_svld_dlopen=no
10176 fi
10177 rm -f conftest.err conftest.$ac_objext \
10178       conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10180 fi
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10183 if test $ac_cv_lib_svld_dlopen = yes; then
10184   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10185 else
10186   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10187 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10188 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-ldld  $LIBS"
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h.  */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h.  */
10199
10200 /* Override any gcc2 internal prototype to avoid an error.  */
10201 #ifdef __cplusplus
10202 extern "C"
10203 #endif
10204 /* We use char because int might match the return type of a gcc2
10205    builtin and then its argument prototype would still apply.  */
10206 char dld_link ();
10207 int
10208 main ()
10209 {
10210 dld_link ();
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217   (eval $ac_link) 2>conftest.er1
10218   ac_status=$?
10219   grep -v '^ *+' conftest.er1 >conftest.err
10220   rm -f conftest.er1
10221   cat conftest.err >&5
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } &&
10224          { ac_try='test -z "$ac_c_werror_flag"
10225                          || test ! -s conftest.err'
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); }; } &&
10231          { ac_try='test -s conftest$ac_exeext'
10232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233   (eval $ac_try) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); }; }; then
10237   ac_cv_lib_dld_dld_link=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242 ac_cv_lib_dld_dld_link=no
10243 fi
10244 rm -f conftest.err conftest.$ac_objext \
10245       conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10247 fi
10248 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10250 if test $ac_cv_lib_dld_dld_link = yes; then
10251   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10252 fi
10253
10254
10255 fi
10256
10257
10258 fi
10259
10260
10261 fi
10262
10263
10264 fi
10265
10266
10267 fi
10268
10269     ;;
10270   esac
10271
10272   if test "x$lt_cv_dlopen" != xno; then
10273     enable_dlopen=yes
10274   else
10275     enable_dlopen=no
10276   fi
10277
10278   case $lt_cv_dlopen in
10279   dlopen)
10280     save_CPPFLAGS="$CPPFLAGS"
10281     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10282
10283     save_LDFLAGS="$LDFLAGS"
10284     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10285
10286     save_LIBS="$LIBS"
10287     LIBS="$lt_cv_dlopen_libs $LIBS"
10288
10289     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10290 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10291 if test "${lt_cv_dlopen_self+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294           if test "$cross_compiling" = yes; then :
10295   lt_cv_dlopen_self=cross
10296 else
10297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298   lt_status=$lt_dlunknown
10299   cat > conftest.$ac_ext <<EOF
10300 #line 10300 "configure"
10301 #include "confdefs.h"
10302
10303 #if HAVE_DLFCN_H
10304 #include <dlfcn.h>
10305 #endif
10306
10307 #include <stdio.h>
10308
10309 #ifdef RTLD_GLOBAL
10310 #  define LT_DLGLOBAL           RTLD_GLOBAL
10311 #else
10312 #  ifdef DL_GLOBAL
10313 #    define LT_DLGLOBAL         DL_GLOBAL
10314 #  else
10315 #    define LT_DLGLOBAL         0
10316 #  endif
10317 #endif
10318
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320    find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10322 #  ifdef RTLD_LAZY
10323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10324 #  else
10325 #    ifdef DL_LAZY
10326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10327 #    else
10328 #      ifdef RTLD_NOW
10329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10330 #      else
10331 #        ifdef DL_NOW
10332 #          define LT_DLLAZY_OR_NOW      DL_NOW
10333 #        else
10334 #          define LT_DLLAZY_OR_NOW      0
10335 #        endif
10336 #      endif
10337 #    endif
10338 #  endif
10339 #endif
10340
10341 #ifdef __cplusplus
10342 extern "C" void exit (int);
10343 #endif
10344
10345 void fnord() { int i=42;}
10346 int main ()
10347 {
10348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349   int status = $lt_dlunknown;
10350
10351   if (self)
10352     {
10353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10354       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355       /* dlclose (self); */
10356     }
10357
10358     exit (status);
10359 }
10360 EOF
10361   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362   (eval $ac_link) 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10366     (./conftest; exit; ) >&5 2>/dev/null
10367     lt_status=$?
10368     case x$lt_status in
10369       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10370       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10371       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10372     esac
10373   else :
10374     # compilation failed
10375     lt_cv_dlopen_self=no
10376   fi
10377 fi
10378 rm -fr conftest*
10379
10380
10381 fi
10382 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10384
10385     if test "x$lt_cv_dlopen_self" = xyes; then
10386       LDFLAGS="$LDFLAGS $link_static_flag"
10387       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10389 if test "${lt_cv_dlopen_self_static+set}" = set; then
10390   echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392           if test "$cross_compiling" = yes; then :
10393   lt_cv_dlopen_self_static=cross
10394 else
10395   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10396   lt_status=$lt_dlunknown
10397   cat > conftest.$ac_ext <<EOF
10398 #line 10398 "configure"
10399 #include "confdefs.h"
10400
10401 #if HAVE_DLFCN_H
10402 #include <dlfcn.h>
10403 #endif
10404
10405 #include <stdio.h>
10406
10407 #ifdef RTLD_GLOBAL
10408 #  define LT_DLGLOBAL           RTLD_GLOBAL
10409 #else
10410 #  ifdef DL_GLOBAL
10411 #    define LT_DLGLOBAL         DL_GLOBAL
10412 #  else
10413 #    define LT_DLGLOBAL         0
10414 #  endif
10415 #endif
10416
10417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10418    find out it does not work in some platform. */
10419 #ifndef LT_DLLAZY_OR_NOW
10420 #  ifdef RTLD_LAZY
10421 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10422 #  else
10423 #    ifdef DL_LAZY
10424 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10425 #    else
10426 #      ifdef RTLD_NOW
10427 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10428 #      else
10429 #        ifdef DL_NOW
10430 #          define LT_DLLAZY_OR_NOW      DL_NOW
10431 #        else
10432 #          define LT_DLLAZY_OR_NOW      0
10433 #        endif
10434 #      endif
10435 #    endif
10436 #  endif
10437 #endif
10438
10439 #ifdef __cplusplus
10440 extern "C" void exit (int);
10441 #endif
10442
10443 void fnord() { int i=42;}
10444 int main ()
10445 {
10446   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10447   int status = $lt_dlunknown;
10448
10449   if (self)
10450     {
10451       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10452       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10453       /* dlclose (self); */
10454     }
10455
10456     exit (status);
10457 }
10458 EOF
10459   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460   (eval $ac_link) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10464     (./conftest; exit; ) >&5 2>/dev/null
10465     lt_status=$?
10466     case x$lt_status in
10467       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10468       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10469       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10470     esac
10471   else :
10472     # compilation failed
10473     lt_cv_dlopen_self_static=no
10474   fi
10475 fi
10476 rm -fr conftest*
10477
10478
10479 fi
10480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10481 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10482     fi
10483
10484     CPPFLAGS="$save_CPPFLAGS"
10485     LDFLAGS="$save_LDFLAGS"
10486     LIBS="$save_LIBS"
10487     ;;
10488   esac
10489
10490   case $lt_cv_dlopen_self in
10491   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10492   *) enable_dlopen_self=unknown ;;
10493   esac
10494
10495   case $lt_cv_dlopen_self_static in
10496   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10497   *) enable_dlopen_self_static=unknown ;;
10498   esac
10499 fi
10500
10501
10502 # Report which librarie types wil actually be built
10503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10506 echo "${ECHO_T}$can_build_shared" >&6
10507
10508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10510 test "$can_build_shared" = "no" && enable_shared=no
10511
10512 # On AIX, shared libraries and static libraries use the same namespace, and
10513 # are all built from PIC.
10514 case $host_os in
10515 aix3*)
10516   test "$enable_shared" = yes && enable_static=no
10517   if test -n "$RANLIB"; then
10518     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10519     postinstall_cmds='$RANLIB $lib'
10520   fi
10521   ;;
10522
10523 aix4* | aix5*)
10524   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10525     test "$enable_shared" = yes && enable_static=no
10526   fi
10527     ;;
10528 esac
10529 echo "$as_me:$LINENO: result: $enable_shared" >&5
10530 echo "${ECHO_T}$enable_shared" >&6
10531
10532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10534 # Make sure either enable_shared or enable_static is yes.
10535 test "$enable_shared" = yes || enable_static=yes
10536 echo "$as_me:$LINENO: result: $enable_static" >&5
10537 echo "${ECHO_T}$enable_static" >&6
10538
10539 # The else clause should only fire when bootstrapping the
10540 # libtool distribution, otherwise you forgot to ship ltmain.sh
10541 # with your package, and you will get complaints that there are
10542 # no rules to generate ltmain.sh.
10543 if test -f "$ltmain"; then
10544   # See if we are running on zsh, and set the options which allow our commands through
10545   # without removal of \ escapes.
10546   if test -n "${ZSH_VERSION+set}" ; then
10547     setopt NO_GLOB_SUBST
10548   fi
10549   # Now quote all the things that may contain metacharacters while being
10550   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10551   # variables and quote the copies for generation of the libtool script.
10552   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10553     SED SHELL STRIP \
10554     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10555     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10556     deplibs_check_method reload_flag reload_cmds need_locks \
10557     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10558     lt_cv_sys_global_symbol_to_c_name_address \
10559     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10560     old_postinstall_cmds old_postuninstall_cmds \
10561     compiler \
10562     CC \
10563     LD \
10564     lt_prog_compiler_wl \
10565     lt_prog_compiler_pic \
10566     lt_prog_compiler_static \
10567     lt_prog_compiler_no_builtin_flag \
10568     export_dynamic_flag_spec \
10569     thread_safe_flag_spec \
10570     whole_archive_flag_spec \
10571     enable_shared_with_static_runtimes \
10572     old_archive_cmds \
10573     old_archive_from_new_cmds \
10574     predep_objects \
10575     postdep_objects \
10576     predeps \
10577     postdeps \
10578     compiler_lib_search_path \
10579     archive_cmds \
10580     archive_expsym_cmds \
10581     postinstall_cmds \
10582     postuninstall_cmds \
10583     old_archive_from_expsyms_cmds \
10584     allow_undefined_flag \
10585     no_undefined_flag \
10586     export_symbols_cmds \
10587     hardcode_libdir_flag_spec \
10588     hardcode_libdir_flag_spec_ld \
10589     hardcode_libdir_separator \
10590     hardcode_automatic \
10591     module_cmds \
10592     module_expsym_cmds \
10593     lt_cv_prog_compiler_c_o \
10594     exclude_expsyms \
10595     include_expsyms; do
10596
10597     case $var in
10598     old_archive_cmds | \
10599     old_archive_from_new_cmds | \
10600     archive_cmds | \
10601     archive_expsym_cmds | \
10602     module_cmds | \
10603     module_expsym_cmds | \
10604     old_archive_from_expsyms_cmds | \
10605     export_symbols_cmds | \
10606     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10607     postinstall_cmds | postuninstall_cmds | \
10608     old_postinstall_cmds | old_postuninstall_cmds | \
10609     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10610       # Double-quote double-evaled strings.
10611       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10612       ;;
10613     *)
10614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10615       ;;
10616     esac
10617   done
10618
10619   case $lt_echo in
10620   *'\$0 --fallback-echo"')
10621     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10622     ;;
10623   esac
10624
10625 cfgfile="${ofile}T"
10626   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10627   $rm -f "$cfgfile"
10628   { echo "$as_me:$LINENO: creating $ofile" >&5
10629 echo "$as_me: creating $ofile" >&6;}
10630
10631   cat <<__EOF__ >> "$cfgfile"
10632 #! $SHELL
10633
10634 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10635 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10637 #
10638 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10639 # Free Software Foundation, Inc.
10640 #
10641 # This file is part of GNU Libtool:
10642 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10643 #
10644 # This program is free software; you can redistribute it and/or modify
10645 # it under the terms of the GNU General Public License as published by
10646 # the Free Software Foundation; either version 2 of the License, or
10647 # (at your option) any later version.
10648 #
10649 # This program is distributed in the hope that it will be useful, but
10650 # WITHOUT ANY WARRANTY; without even the implied warranty of
10651 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10652 # General Public License for more details.
10653 #
10654 # You should have received a copy of the GNU General Public License
10655 # along with this program; if not, write to the Free Software
10656 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10657 #
10658 # As a special exception to the GNU General Public License, if you
10659 # distribute this file as part of a program that contains a
10660 # configuration script generated by Autoconf, you may include it under
10661 # the same distribution terms that you use for the rest of that program.
10662
10663 # A sed program that does not truncate output.
10664 SED=$lt_SED
10665
10666 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10667 Xsed="$SED -e 1s/^X//"
10668
10669 # The HP-UX ksh and POSIX shell print the target directory to stdout
10670 # if CDPATH is set.
10671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10672
10673 # The names of the tagged configurations supported by this script.
10674 available_tags=
10675
10676 # ### BEGIN LIBTOOL CONFIG
10677
10678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10679
10680 # Shell to use when invoking shell scripts.
10681 SHELL=$lt_SHELL
10682
10683 # Whether or not to build shared libraries.
10684 build_libtool_libs=$enable_shared
10685
10686 # Whether or not to build static libraries.
10687 build_old_libs=$enable_static
10688
10689 # Whether or not to add -lc for building shared libraries.
10690 build_libtool_need_lc=$archive_cmds_need_lc
10691
10692 # Whether or not to disallow shared libs when runtime libs are static
10693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10694
10695 # Whether or not to optimize for fast installation.
10696 fast_install=$enable_fast_install
10697
10698 # The host system.
10699 host_alias=$host_alias
10700 host=$host
10701 host_os=$host_os
10702
10703 # The build system.
10704 build_alias=$build_alias
10705 build=$build
10706 build_os=$build_os
10707
10708 # An echo program that does not interpret backslashes.
10709 echo=$lt_echo
10710
10711 # The archiver.
10712 AR=$lt_AR
10713 AR_FLAGS=$lt_AR_FLAGS
10714
10715 # A C compiler.
10716 LTCC=$lt_LTCC
10717
10718 # A language-specific compiler.
10719 CC=$lt_compiler
10720
10721 # Is the compiler the GNU C compiler?
10722 with_gcc=$GCC
10723
10724 # An ERE matcher.
10725 EGREP=$lt_EGREP
10726
10727 # The linker used to build libraries.
10728 LD=$lt_LD
10729
10730 # Whether we need hard or soft links.
10731 LN_S=$lt_LN_S
10732
10733 # A BSD-compatible nm program.
10734 NM=$lt_NM
10735
10736 # A symbol stripping program
10737 STRIP=$lt_STRIP
10738
10739 # Used to examine libraries when file_magic_cmd begins "file"
10740 MAGIC_CMD=$MAGIC_CMD
10741
10742 # Used on cygwin: DLL creation program.
10743 DLLTOOL="$DLLTOOL"
10744
10745 # Used on cygwin: object dumper.
10746 OBJDUMP="$OBJDUMP"
10747
10748 # Used on cygwin: assembler.
10749 AS="$AS"
10750
10751 # The name of the directory that contains temporary libtool files.
10752 objdir=$objdir
10753
10754 # How to create reloadable object files.
10755 reload_flag=$lt_reload_flag
10756 reload_cmds=$lt_reload_cmds
10757
10758 # How to pass a linker flag through the compiler.
10759 wl=$lt_lt_prog_compiler_wl
10760
10761 # Object file suffix (normally "o").
10762 objext="$ac_objext"
10763
10764 # Old archive suffix (normally "a").
10765 libext="$libext"
10766
10767 # Shared library suffix (normally ".so").
10768 shrext_cmds='$shrext_cmds'
10769
10770 # Executable file suffix (normally "").
10771 exeext="$exeext"
10772
10773 # Additional compiler flags for building library objects.
10774 pic_flag=$lt_lt_prog_compiler_pic
10775 pic_mode=$pic_mode
10776
10777 # What is the maximum length of a command?
10778 max_cmd_len=$lt_cv_sys_max_cmd_len
10779
10780 # Does compiler simultaneously support -c and -o options?
10781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10782
10783 # Must we lock files when doing compilation?
10784 need_locks=$lt_need_locks
10785
10786 # Do we need the lib prefix for modules?
10787 need_lib_prefix=$need_lib_prefix
10788
10789 # Do we need a version for libraries?
10790 need_version=$need_version
10791
10792 # Whether dlopen is supported.
10793 dlopen_support=$enable_dlopen
10794
10795 # Whether dlopen of programs is supported.
10796 dlopen_self=$enable_dlopen_self
10797
10798 # Whether dlopen of statically linked programs is supported.
10799 dlopen_self_static=$enable_dlopen_self_static
10800
10801 # Compiler flag to prevent dynamic linking.
10802 link_static_flag=$lt_lt_prog_compiler_static
10803
10804 # Compiler flag to turn off builtin functions.
10805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10806
10807 # Compiler flag to allow reflexive dlopens.
10808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10809
10810 # Compiler flag to generate shared objects directly from archives.
10811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10812
10813 # Compiler flag to generate thread-safe objects.
10814 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10815
10816 # Library versioning type.
10817 version_type=$version_type
10818
10819 # Format of library name prefix.
10820 libname_spec=$lt_libname_spec
10821
10822 # List of archive names.  First name is the real one, the rest are links.
10823 # The last name is the one that the linker finds with -lNAME.
10824 library_names_spec=$lt_library_names_spec
10825
10826 # The coded name of the library, if different from the real name.
10827 soname_spec=$lt_soname_spec
10828
10829 # Commands used to build and install an old-style archive.
10830 RANLIB=$lt_RANLIB
10831 old_archive_cmds=$lt_old_archive_cmds
10832 old_postinstall_cmds=$lt_old_postinstall_cmds
10833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10834
10835 # Create an old-style archive from a shared archive.
10836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10837
10838 # Create a temporary old-style archive to link instead of a shared archive.
10839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10840
10841 # Commands used to build and install a shared archive.
10842 archive_cmds=$lt_archive_cmds
10843 archive_expsym_cmds=$lt_archive_expsym_cmds
10844 postinstall_cmds=$lt_postinstall_cmds
10845 postuninstall_cmds=$lt_postuninstall_cmds
10846
10847 # Commands used to build a loadable module (assumed same as above if empty)
10848 module_cmds=$lt_module_cmds
10849 module_expsym_cmds=$lt_module_expsym_cmds
10850
10851 # Commands to strip libraries.
10852 old_striplib=$lt_old_striplib
10853 striplib=$lt_striplib
10854
10855 # Dependencies to place before the objects being linked to create a
10856 # shared library.
10857 predep_objects=$lt_predep_objects
10858
10859 # Dependencies to place after the objects being linked to create a
10860 # shared library.
10861 postdep_objects=$lt_postdep_objects
10862
10863 # Dependencies to place before the objects being linked to create a
10864 # shared library.
10865 predeps=$lt_predeps
10866
10867 # Dependencies to place after the objects being linked to create a
10868 # shared library.
10869 postdeps=$lt_postdeps
10870
10871 # The library search path used internally by the compiler when linking
10872 # a shared library.
10873 compiler_lib_search_path=$lt_compiler_lib_search_path
10874
10875 # Method to check whether dependent libraries are shared objects.
10876 deplibs_check_method=$lt_deplibs_check_method
10877
10878 # Command to use when deplibs_check_method == file_magic.
10879 file_magic_cmd=$lt_file_magic_cmd
10880
10881 # Flag that allows shared libraries with undefined symbols to be built.
10882 allow_undefined_flag=$lt_allow_undefined_flag
10883
10884 # Flag that forces no undefined symbols.
10885 no_undefined_flag=$lt_no_undefined_flag
10886
10887 # Commands used to finish a libtool library installation in a directory.
10888 finish_cmds=$lt_finish_cmds
10889
10890 # Same as above, but a single script fragment to be evaled but not shown.
10891 finish_eval=$lt_finish_eval
10892
10893 # Take the output of nm and produce a listing of raw symbols and C names.
10894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10895
10896 # Transform the output of nm in a proper C declaration
10897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10898
10899 # Transform the output of nm in a C name address pair
10900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10901
10902 # This is the shared library runtime path variable.
10903 runpath_var=$runpath_var
10904
10905 # This is the shared library path variable.
10906 shlibpath_var=$shlibpath_var
10907
10908 # Is shlibpath searched before the hard-coded library search path?
10909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10910
10911 # How to hardcode a shared library path into an executable.
10912 hardcode_action=$hardcode_action
10913
10914 # Whether we should hardcode library paths into libraries.
10915 hardcode_into_libs=$hardcode_into_libs
10916
10917 # Flag to hardcode \$libdir into a binary during linking.
10918 # This must work even if \$libdir does not exist.
10919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10920
10921 # If ld is used when linking, flag to hardcode \$libdir into
10922 # a binary during linking. This must work even if \$libdir does
10923 # not exist.
10924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10925
10926 # Whether we need a single -rpath flag with a separated argument.
10927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10928
10929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10930 # resulting binary.
10931 hardcode_direct=$hardcode_direct
10932
10933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10934 # resulting binary.
10935 hardcode_minus_L=$hardcode_minus_L
10936
10937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10938 # the resulting binary.
10939 hardcode_shlibpath_var=$hardcode_shlibpath_var
10940
10941 # Set to yes if building a shared library automatically hardcodes DIR into the library
10942 # and all subsequent libraries and executables linked against it.
10943 hardcode_automatic=$hardcode_automatic
10944
10945 # Variables whose values should be saved in libtool wrapper scripts and
10946 # restored at relink time.
10947 variables_saved_for_relink="$variables_saved_for_relink"
10948
10949 # Whether libtool must link a program against all its dependency libraries.
10950 link_all_deplibs=$link_all_deplibs
10951
10952 # Compile-time system search path for libraries
10953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10954
10955 # Run-time system search path for libraries
10956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10957
10958 # Fix the shell variable \$srcfile for the compiler.
10959 fix_srcfile_path="$fix_srcfile_path"
10960
10961 # Set to yes if exported symbols are required.
10962 always_export_symbols=$always_export_symbols
10963
10964 # The commands to list exported symbols.
10965 export_symbols_cmds=$lt_export_symbols_cmds
10966
10967 # The commands to extract the exported symbol list from a shared archive.
10968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10969
10970 # Symbols that should not be listed in the preloaded symbols.
10971 exclude_expsyms=$lt_exclude_expsyms
10972
10973 # Symbols that must always be exported.
10974 include_expsyms=$lt_include_expsyms
10975
10976 # ### END LIBTOOL CONFIG
10977
10978 __EOF__
10979
10980
10981   case $host_os in
10982   aix3*)
10983     cat <<\EOF >> "$cfgfile"
10984
10985 # AIX sometimes has problems with the GCC collect2 program.  For some
10986 # reason, if we set the COLLECT_NAMES environment variable, the problems
10987 # vanish in a puff of smoke.
10988 if test "X${COLLECT_NAMES+set}" != Xset; then
10989   COLLECT_NAMES=
10990   export COLLECT_NAMES
10991 fi
10992 EOF
10993     ;;
10994   esac
10995
10996   # We use sed instead of cat because bash on DJGPP gets confused if
10997   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10998   # text mode, it properly converts lines to CR/LF.  This bash problem
10999   # is reportedly fixed, but why not run on old versions too?
11000   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11001
11002   mv -f "$cfgfile" "$ofile" || \
11003     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11004   chmod +x "$ofile"
11005
11006 else
11007   # If there is no Makefile yet, we rely on a make rule to execute
11008   # `config.status --recheck' to rerun these tests and create the
11009   # libtool script then.
11010   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11011   if test -f "$ltmain_in"; then
11012     test -f Makefile && make "$ltmain"
11013   fi
11014 fi
11015
11016
11017 ac_ext=c
11018 ac_cpp='$CPP $CPPFLAGS'
11019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11022
11023 CC="$lt_save_CC"
11024
11025
11026 # Check whether --with-tags or --without-tags was given.
11027 if test "${with_tags+set}" = set; then
11028   withval="$with_tags"
11029   tagnames="$withval"
11030 fi;
11031
11032 if test -f "$ltmain" && test -n "$tagnames"; then
11033   if test ! -f "${ofile}"; then
11034     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11035 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11036   fi
11037
11038   if test -z "$LTCC"; then
11039     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11040     if test -z "$LTCC"; then
11041       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11042 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11043     else
11044       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11045 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11046     fi
11047   fi
11048
11049   # Extract list of available tagged configurations in $ofile.
11050   # Note that this assumes the entire list is on one line.
11051   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11052
11053   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11054   for tagname in $tagnames; do
11055     IFS="$lt_save_ifs"
11056     # Check whether tagname contains only valid characters
11057     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11058     "") ;;
11059     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11060 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11061    { (exit 1); exit 1; }; }
11062         ;;
11063     esac
11064
11065     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11066     then
11067       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11068 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11069    { (exit 1); exit 1; }; }
11070     fi
11071
11072     # Update the list of available tags.
11073     if test -n "$tagname"; then
11074       echo appending configuration tag \"$tagname\" to $ofile
11075
11076       case $tagname in
11077       CXX)
11078         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11079             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11080             (test "X$CXX" != "Xg++"))) ; then
11081           :
11082         else
11083           tagname=""
11084         fi
11085         ;;
11086
11087       F77)
11088         if test -n "$F77" && test "X$F77" != "Xno"; then
11089           :
11090         else
11091           tagname=""
11092         fi
11093         ;;
11094
11095       GCJ)
11096         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11097           :
11098         else
11099           tagname=""
11100         fi
11101         ;;
11102
11103       RC)
11104
11105
11106
11107 # Source file extension for RC test sources.
11108 ac_ext=rc
11109
11110 # Object file extension for compiled RC test sources.
11111 objext=o
11112 objext_RC=$objext
11113
11114 # Code to be used in simple compile tests
11115 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11116
11117 # Code to be used in simple link tests
11118 lt_simple_link_test_code="$lt_simple_compile_test_code"
11119
11120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11121
11122 # If no C compiler was specified, use CC.
11123 LTCC=${LTCC-"$CC"}
11124
11125 # Allow CC to be a program name with arguments.
11126 compiler=$CC
11127
11128
11129 # save warnings/boilerplate of simple test code
11130 ac_outfile=conftest.$ac_objext
11131 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11132 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11133 _lt_compiler_boilerplate=`cat conftest.err`
11134 $rm conftest*
11135
11136 ac_outfile=conftest.$ac_objext
11137 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11139 _lt_linker_boilerplate=`cat conftest.err`
11140 $rm conftest*
11141
11142
11143 # Allow CC to be a program name with arguments.
11144 lt_save_CC="$CC"
11145 CC=${RC-"windres"}
11146 compiler=$CC
11147 compiler_RC=$CC
11148 for cc_temp in $compiler""; do
11149   case $cc_temp in
11150     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11151     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11152     \-*) ;;
11153     *) break;;
11154   esac
11155 done
11156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11157
11158 lt_cv_prog_compiler_c_o_RC=yes
11159
11160 # The else clause should only fire when bootstrapping the
11161 # libtool distribution, otherwise you forgot to ship ltmain.sh
11162 # with your package, and you will get complaints that there are
11163 # no rules to generate ltmain.sh.
11164 if test -f "$ltmain"; then
11165   # See if we are running on zsh, and set the options which allow our commands through
11166   # without removal of \ escapes.
11167   if test -n "${ZSH_VERSION+set}" ; then
11168     setopt NO_GLOB_SUBST
11169   fi
11170   # Now quote all the things that may contain metacharacters while being
11171   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11172   # variables and quote the copies for generation of the libtool script.
11173   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11174     SED SHELL STRIP \
11175     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11176     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11177     deplibs_check_method reload_flag reload_cmds need_locks \
11178     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11179     lt_cv_sys_global_symbol_to_c_name_address \
11180     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11181     old_postinstall_cmds old_postuninstall_cmds \
11182     compiler_RC \
11183     CC_RC \
11184     LD_RC \
11185     lt_prog_compiler_wl_RC \
11186     lt_prog_compiler_pic_RC \
11187     lt_prog_compiler_static_RC \
11188     lt_prog_compiler_no_builtin_flag_RC \
11189     export_dynamic_flag_spec_RC \
11190     thread_safe_flag_spec_RC \
11191     whole_archive_flag_spec_RC \
11192     enable_shared_with_static_runtimes_RC \
11193     old_archive_cmds_RC \
11194     old_archive_from_new_cmds_RC \
11195     predep_objects_RC \
11196     postdep_objects_RC \
11197     predeps_RC \
11198     postdeps_RC \
11199     compiler_lib_search_path_RC \
11200     archive_cmds_RC \
11201     archive_expsym_cmds_RC \
11202     postinstall_cmds_RC \
11203     postuninstall_cmds_RC \
11204     old_archive_from_expsyms_cmds_RC \
11205     allow_undefined_flag_RC \
11206     no_undefined_flag_RC \
11207     export_symbols_cmds_RC \
11208     hardcode_libdir_flag_spec_RC \
11209     hardcode_libdir_flag_spec_ld_RC \
11210     hardcode_libdir_separator_RC \
11211     hardcode_automatic_RC \
11212     module_cmds_RC \
11213     module_expsym_cmds_RC \
11214     lt_cv_prog_compiler_c_o_RC \
11215     exclude_expsyms_RC \
11216     include_expsyms_RC; do
11217
11218     case $var in
11219     old_archive_cmds_RC | \
11220     old_archive_from_new_cmds_RC | \
11221     archive_cmds_RC | \
11222     archive_expsym_cmds_RC | \
11223     module_cmds_RC | \
11224     module_expsym_cmds_RC | \
11225     old_archive_from_expsyms_cmds_RC | \
11226     export_symbols_cmds_RC | \
11227     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11228     postinstall_cmds | postuninstall_cmds | \
11229     old_postinstall_cmds | old_postuninstall_cmds | \
11230     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11231       # Double-quote double-evaled strings.
11232       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11233       ;;
11234     *)
11235       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11236       ;;
11237     esac
11238   done
11239
11240   case $lt_echo in
11241   *'\$0 --fallback-echo"')
11242     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11243     ;;
11244   esac
11245
11246 cfgfile="$ofile"
11247
11248   cat <<__EOF__ >> "$cfgfile"
11249 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11250
11251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11252
11253 # Shell to use when invoking shell scripts.
11254 SHELL=$lt_SHELL
11255
11256 # Whether or not to build shared libraries.
11257 build_libtool_libs=$enable_shared
11258
11259 # Whether or not to build static libraries.
11260 build_old_libs=$enable_static
11261
11262 # Whether or not to add -lc for building shared libraries.
11263 build_libtool_need_lc=$archive_cmds_need_lc_RC
11264
11265 # Whether or not to disallow shared libs when runtime libs are static
11266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11267
11268 # Whether or not to optimize for fast installation.
11269 fast_install=$enable_fast_install
11270
11271 # The host system.
11272 host_alias=$host_alias
11273 host=$host
11274 host_os=$host_os
11275
11276 # The build system.
11277 build_alias=$build_alias
11278 build=$build
11279 build_os=$build_os
11280
11281 # An echo program that does not interpret backslashes.
11282 echo=$lt_echo
11283
11284 # The archiver.
11285 AR=$lt_AR
11286 AR_FLAGS=$lt_AR_FLAGS
11287
11288 # A C compiler.
11289 LTCC=$lt_LTCC
11290
11291 # A language-specific compiler.
11292 CC=$lt_compiler_RC
11293
11294 # Is the compiler the GNU C compiler?
11295 with_gcc=$GCC_RC
11296
11297 # An ERE matcher.
11298 EGREP=$lt_EGREP
11299
11300 # The linker used to build libraries.
11301 LD=$lt_LD_RC
11302
11303 # Whether we need hard or soft links.
11304 LN_S=$lt_LN_S
11305
11306 # A BSD-compatible nm program.
11307 NM=$lt_NM
11308
11309 # A symbol stripping program
11310 STRIP=$lt_STRIP
11311
11312 # Used to examine libraries when file_magic_cmd begins "file"
11313 MAGIC_CMD=$MAGIC_CMD
11314
11315 # Used on cygwin: DLL creation program.
11316 DLLTOOL="$DLLTOOL"
11317
11318 # Used on cygwin: object dumper.
11319 OBJDUMP="$OBJDUMP"
11320
11321 # Used on cygwin: assembler.
11322 AS="$AS"
11323
11324 # The name of the directory that contains temporary libtool files.
11325 objdir=$objdir
11326
11327 # How to create reloadable object files.
11328 reload_flag=$lt_reload_flag
11329 reload_cmds=$lt_reload_cmds
11330
11331 # How to pass a linker flag through the compiler.
11332 wl=$lt_lt_prog_compiler_wl_RC
11333
11334 # Object file suffix (normally "o").
11335 objext="$ac_objext"
11336
11337 # Old archive suffix (normally "a").
11338 libext="$libext"
11339
11340 # Shared library suffix (normally ".so").
11341 shrext_cmds='$shrext_cmds'
11342
11343 # Executable file suffix (normally "").
11344 exeext="$exeext"
11345
11346 # Additional compiler flags for building library objects.
11347 pic_flag=$lt_lt_prog_compiler_pic_RC
11348 pic_mode=$pic_mode
11349
11350 # What is the maximum length of a command?
11351 max_cmd_len=$lt_cv_sys_max_cmd_len
11352
11353 # Does compiler simultaneously support -c and -o options?
11354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11355
11356 # Must we lock files when doing compilation?
11357 need_locks=$lt_need_locks
11358
11359 # Do we need the lib prefix for modules?
11360 need_lib_prefix=$need_lib_prefix
11361
11362 # Do we need a version for libraries?
11363 need_version=$need_version
11364
11365 # Whether dlopen is supported.
11366 dlopen_support=$enable_dlopen
11367
11368 # Whether dlopen of programs is supported.
11369 dlopen_self=$enable_dlopen_self
11370
11371 # Whether dlopen of statically linked programs is supported.
11372 dlopen_self_static=$enable_dlopen_self_static
11373
11374 # Compiler flag to prevent dynamic linking.
11375 link_static_flag=$lt_lt_prog_compiler_static_RC
11376
11377 # Compiler flag to turn off builtin functions.
11378 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11379
11380 # Compiler flag to allow reflexive dlopens.
11381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11382
11383 # Compiler flag to generate shared objects directly from archives.
11384 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11385
11386 # Compiler flag to generate thread-safe objects.
11387 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11388
11389 # Library versioning type.
11390 version_type=$version_type
11391
11392 # Format of library name prefix.
11393 libname_spec=$lt_libname_spec
11394
11395 # List of archive names.  First name is the real one, the rest are links.
11396 # The last name is the one that the linker finds with -lNAME.
11397 library_names_spec=$lt_library_names_spec
11398
11399 # The coded name of the library, if different from the real name.
11400 soname_spec=$lt_soname_spec
11401
11402 # Commands used to build and install an old-style archive.
11403 RANLIB=$lt_RANLIB
11404 old_archive_cmds=$lt_old_archive_cmds_RC
11405 old_postinstall_cmds=$lt_old_postinstall_cmds
11406 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11407
11408 # Create an old-style archive from a shared archive.
11409 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11410
11411 # Create a temporary old-style archive to link instead of a shared archive.
11412 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11413
11414 # Commands used to build and install a shared archive.
11415 archive_cmds=$lt_archive_cmds_RC
11416 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11417 postinstall_cmds=$lt_postinstall_cmds
11418 postuninstall_cmds=$lt_postuninstall_cmds
11419
11420 # Commands used to build a loadable module (assumed same as above if empty)
11421 module_cmds=$lt_module_cmds_RC
11422 module_expsym_cmds=$lt_module_expsym_cmds_RC
11423
11424 # Commands to strip libraries.
11425 old_striplib=$lt_old_striplib
11426 striplib=$lt_striplib
11427
11428 # Dependencies to place before the objects being linked to create a
11429 # shared library.
11430 predep_objects=$lt_predep_objects_RC
11431
11432 # Dependencies to place after the objects being linked to create a
11433 # shared library.
11434 postdep_objects=$lt_postdep_objects_RC
11435
11436 # Dependencies to place before the objects being linked to create a
11437 # shared library.
11438 predeps=$lt_predeps_RC
11439
11440 # Dependencies to place after the objects being linked to create a
11441 # shared library.
11442 postdeps=$lt_postdeps_RC
11443
11444 # The library search path used internally by the compiler when linking
11445 # a shared library.
11446 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11447
11448 # Method to check whether dependent libraries are shared objects.
11449 deplibs_check_method=$lt_deplibs_check_method
11450
11451 # Command to use when deplibs_check_method == file_magic.
11452 file_magic_cmd=$lt_file_magic_cmd
11453
11454 # Flag that allows shared libraries with undefined symbols to be built.
11455 allow_undefined_flag=$lt_allow_undefined_flag_RC
11456
11457 # Flag that forces no undefined symbols.
11458 no_undefined_flag=$lt_no_undefined_flag_RC
11459
11460 # Commands used to finish a libtool library installation in a directory.
11461 finish_cmds=$lt_finish_cmds
11462
11463 # Same as above, but a single script fragment to be evaled but not shown.
11464 finish_eval=$lt_finish_eval
11465
11466 # Take the output of nm and produce a listing of raw symbols and C names.
11467 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11468
11469 # Transform the output of nm in a proper C declaration
11470 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11471
11472 # Transform the output of nm in a C name address pair
11473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11474
11475 # This is the shared library runtime path variable.
11476 runpath_var=$runpath_var
11477
11478 # This is the shared library path variable.
11479 shlibpath_var=$shlibpath_var
11480
11481 # Is shlibpath searched before the hard-coded library search path?
11482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11483
11484 # How to hardcode a shared library path into an executable.
11485 hardcode_action=$hardcode_action_RC
11486
11487 # Whether we should hardcode library paths into libraries.
11488 hardcode_into_libs=$hardcode_into_libs
11489
11490 # Flag to hardcode \$libdir into a binary during linking.
11491 # This must work even if \$libdir does not exist.
11492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11493
11494 # If ld is used when linking, flag to hardcode \$libdir into
11495 # a binary during linking. This must work even if \$libdir does
11496 # not exist.
11497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11498
11499 # Whether we need a single -rpath flag with a separated argument.
11500 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11501
11502 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11503 # resulting binary.
11504 hardcode_direct=$hardcode_direct_RC
11505
11506 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11507 # resulting binary.
11508 hardcode_minus_L=$hardcode_minus_L_RC
11509
11510 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11511 # the resulting binary.
11512 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11513
11514 # Set to yes if building a shared library automatically hardcodes DIR into the library
11515 # and all subsequent libraries and executables linked against it.
11516 hardcode_automatic=$hardcode_automatic_RC
11517
11518 # Variables whose values should be saved in libtool wrapper scripts and
11519 # restored at relink time.
11520 variables_saved_for_relink="$variables_saved_for_relink"
11521
11522 # Whether libtool must link a program against all its dependency libraries.
11523 link_all_deplibs=$link_all_deplibs_RC
11524
11525 # Compile-time system search path for libraries
11526 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11527
11528 # Run-time system search path for libraries
11529 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11530
11531 # Fix the shell variable \$srcfile for the compiler.
11532 fix_srcfile_path="$fix_srcfile_path_RC"
11533
11534 # Set to yes if exported symbols are required.
11535 always_export_symbols=$always_export_symbols_RC
11536
11537 # The commands to list exported symbols.
11538 export_symbols_cmds=$lt_export_symbols_cmds_RC
11539
11540 # The commands to extract the exported symbol list from a shared archive.
11541 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11542
11543 # Symbols that should not be listed in the preloaded symbols.
11544 exclude_expsyms=$lt_exclude_expsyms_RC
11545
11546 # Symbols that must always be exported.
11547 include_expsyms=$lt_include_expsyms_RC
11548
11549 # ### END LIBTOOL TAG CONFIG: $tagname
11550
11551 __EOF__
11552
11553
11554 else
11555   # If there is no Makefile yet, we rely on a make rule to execute
11556   # `config.status --recheck' to rerun these tests and create the
11557   # libtool script then.
11558   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11559   if test -f "$ltmain_in"; then
11560     test -f Makefile && make "$ltmain"
11561   fi
11562 fi
11563
11564
11565 ac_ext=c
11566 ac_cpp='$CPP $CPPFLAGS'
11567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11570
11571 CC="$lt_save_CC"
11572
11573         ;;
11574
11575       *)
11576         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11577 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11578    { (exit 1); exit 1; }; }
11579         ;;
11580       esac
11581
11582       # Append the new tag name to the list of available tags.
11583       if test -n "$tagname" ; then
11584       available_tags="$available_tags $tagname"
11585     fi
11586     fi
11587   done
11588   IFS="$lt_save_ifs"
11589
11590   # Now substitute the updated list of available tags.
11591   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11592     mv "${ofile}T" "$ofile"
11593     chmod +x "$ofile"
11594   else
11595     rm -f "${ofile}T"
11596     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11597 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11598    { (exit 1); exit 1; }; }
11599   fi
11600 fi
11601
11602
11603
11604 # This can be used to rebuild libtool when needed
11605 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11606
11607 # Always use our own libtool.
11608 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11609
11610 # Prevent multiple expansion
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621 ol_link_perl=no
11622 if test $ol_enable_perl != no ; then
11623         # Extract the first word of "perl", so it can be a program name with args.
11624 set dummy perl; ac_word=$2
11625 echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627 if test "${ac_cv_path_PERLBIN+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   case $PERLBIN in
11631   [\\/]* | ?:[\\/]*)
11632   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11633   ;;
11634   *)
11635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638   IFS=$as_save_IFS
11639   test -z "$as_dir" && as_dir=.
11640   for ac_exec_ext in '' $ac_executable_extensions; do
11641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11644     break 2
11645   fi
11646 done
11647 done
11648
11649   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11650   ;;
11651 esac
11652 fi
11653 PERLBIN=$ac_cv_path_PERLBIN
11654
11655 if test -n "$PERLBIN"; then
11656   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11657 echo "${ECHO_T}$PERLBIN" >&6
11658 else
11659   echo "$as_me:$LINENO: result: no" >&5
11660 echo "${ECHO_T}no" >&6
11661 fi
11662
11663
11664         if test "no$PERLBIN" = "no" ; then
11665                 if test $ol_enable_perl = yes ; then
11666                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11667 echo "$as_me: error: could not locate perl" >&2;}
11668    { (exit 1); exit 1; }; }
11669                 fi
11670
11671         else
11672                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11673                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11674
11675                 if test x"$ol_enable_perl" = "xyes" ; then
11676                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11677                 else
11678                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11679                 fi
11680                                 ol_link_perl=yes
11681         fi
11682 fi
11683
11684 ac_ext=c
11685 ac_cpp='$CPP $CPPFLAGS'
11686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11689 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11690 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11691 # On Suns, sometimes $CPP names a directory.
11692 if test -n "$CPP" && test -d "$CPP"; then
11693   CPP=
11694 fi
11695 if test -z "$CPP"; then
11696   if test "${ac_cv_prog_CPP+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699       # Double quotes because CPP needs to be expanded
11700     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11701     do
11702       ac_preproc_ok=false
11703 for ac_c_preproc_warn_flag in '' yes
11704 do
11705   # Use a header file that comes with gcc, so configuring glibc
11706   # with a fresh cross-compiler works.
11707   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708   # <limits.h> exists even on freestanding compilers.
11709   # On the NeXT, cc -E runs the code through the compiler's parser,
11710   # not just through cpp. "Syntax error" is here to catch this case.
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 #ifdef __STDC__
11718 # include <limits.h>
11719 #else
11720 # include <assert.h>
11721 #endif
11722                      Syntax error
11723 _ACEOF
11724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11726   ac_status=$?
11727   grep -v '^ *+' conftest.er1 >conftest.err
11728   rm -f conftest.er1
11729   cat conftest.err >&5
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); } >/dev/null; then
11732   if test -s conftest.err; then
11733     ac_cpp_err=$ac_c_preproc_warn_flag
11734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11735   else
11736     ac_cpp_err=
11737   fi
11738 else
11739   ac_cpp_err=yes
11740 fi
11741 if test -z "$ac_cpp_err"; then
11742   :
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747   # Broken: fails on valid input.
11748 continue
11749 fi
11750 rm -f conftest.err conftest.$ac_ext
11751
11752   # OK, works on sane cases.  Now check whether non-existent headers
11753   # can be detected and how.
11754   cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h.  */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h.  */
11760 #include <ac_nonexistent.h>
11761 _ACEOF
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } >/dev/null; then
11770   if test -s conftest.err; then
11771     ac_cpp_err=$ac_c_preproc_warn_flag
11772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11773   else
11774     ac_cpp_err=
11775   fi
11776 else
11777   ac_cpp_err=yes
11778 fi
11779 if test -z "$ac_cpp_err"; then
11780   # Broken: success on invalid input.
11781 continue
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786   # Passes both tests.
11787 ac_preproc_ok=:
11788 break
11789 fi
11790 rm -f conftest.err conftest.$ac_ext
11791
11792 done
11793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11794 rm -f conftest.err conftest.$ac_ext
11795 if $ac_preproc_ok; then
11796   break
11797 fi
11798
11799     done
11800     ac_cv_prog_CPP=$CPP
11801
11802 fi
11803   CPP=$ac_cv_prog_CPP
11804 else
11805   ac_cv_prog_CPP=$CPP
11806 fi
11807 echo "$as_me:$LINENO: result: $CPP" >&5
11808 echo "${ECHO_T}$CPP" >&6
11809 ac_preproc_ok=false
11810 for ac_c_preproc_warn_flag in '' yes
11811 do
11812   # Use a header file that comes with gcc, so configuring glibc
11813   # with a fresh cross-compiler works.
11814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815   # <limits.h> exists even on freestanding compilers.
11816   # On the NeXT, cc -E runs the code through the compiler's parser,
11817   # not just through cpp. "Syntax error" is here to catch this case.
11818   cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #ifdef __STDC__
11825 # include <limits.h>
11826 #else
11827 # include <assert.h>
11828 #endif
11829                      Syntax error
11830 _ACEOF
11831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11833   ac_status=$?
11834   grep -v '^ *+' conftest.er1 >conftest.err
11835   rm -f conftest.er1
11836   cat conftest.err >&5
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); } >/dev/null; then
11839   if test -s conftest.err; then
11840     ac_cpp_err=$ac_c_preproc_warn_flag
11841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11842   else
11843     ac_cpp_err=
11844   fi
11845 else
11846   ac_cpp_err=yes
11847 fi
11848 if test -z "$ac_cpp_err"; then
11849   :
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854   # Broken: fails on valid input.
11855 continue
11856 fi
11857 rm -f conftest.err conftest.$ac_ext
11858
11859   # OK, works on sane cases.  Now check whether non-existent headers
11860   # can be detected and how.
11861   cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 #include <ac_nonexistent.h>
11868 _ACEOF
11869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11871   ac_status=$?
11872   grep -v '^ *+' conftest.er1 >conftest.err
11873   rm -f conftest.er1
11874   cat conftest.err >&5
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } >/dev/null; then
11877   if test -s conftest.err; then
11878     ac_cpp_err=$ac_c_preproc_warn_flag
11879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11880   else
11881     ac_cpp_err=
11882   fi
11883 else
11884   ac_cpp_err=yes
11885 fi
11886 if test -z "$ac_cpp_err"; then
11887   # Broken: success on invalid input.
11888 continue
11889 else
11890   echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893   # Passes both tests.
11894 ac_preproc_ok=:
11895 break
11896 fi
11897 rm -f conftest.err conftest.$ac_ext
11898
11899 done
11900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11901 rm -f conftest.err conftest.$ac_ext
11902 if $ac_preproc_ok; then
11903   :
11904 else
11905   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11906 See \`config.log' for more details." >&5
11907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11908 See \`config.log' for more details." >&2;}
11909    { (exit 1); exit 1; }; }
11910 fi
11911
11912 ac_ext=c
11913 ac_cpp='$CPP $CPPFLAGS'
11914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11917
11918
11919 case $host_os in
11920   *mingw32* ) ac_cv_mingw32=yes ;;
11921   *cygwin* ) ac_cv_cygwin=yes ;;
11922 esac
11923
11924
11925
11926
11927 cat >>confdefs.h <<_ACEOF
11928 #define EXEEXT "${EXEEXT}"
11929 _ACEOF
11930
11931
11932 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11933 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11934 if test "${ac_cv_lib_be_be_app+set}" = set; then
11935   echo $ECHO_N "(cached) $ECHO_C" >&6
11936 else
11937   ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lbe -lroot -lnet $LIBS"
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945
11946 /* Override any gcc2 internal prototype to avoid an error.  */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 /* We use char because int might match the return type of a gcc2
11951    builtin and then its argument prototype would still apply.  */
11952 char be_app ();
11953 int
11954 main ()
11955 {
11956 be_app ();
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963   (eval $ac_link) 2>conftest.er1
11964   ac_status=$?
11965   grep -v '^ *+' conftest.er1 >conftest.err
11966   rm -f conftest.er1
11967   cat conftest.err >&5
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } &&
11970          { ac_try='test -z "$ac_c_werror_flag"
11971                          || test ! -s conftest.err'
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); }; } &&
11977          { ac_try='test -s conftest$ac_exeext'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; }; then
11983   ac_cv_lib_be_be_app=yes
11984 else
11985   echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988 ac_cv_lib_be_be_app=no
11989 fi
11990 rm -f conftest.err conftest.$ac_objext \
11991       conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11993 fi
11994 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11995 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11996 if test $ac_cv_lib_be_be_app = yes; then
11997   LIBS="$LIBS -lbe -lroot -lnet"
11998 else
11999   :
12000 fi
12001
12002
12003 ac_ext=c
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008 if test -n "$ac_tool_prefix"; then
12009   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12011 echo "$as_me:$LINENO: checking for $ac_word" >&5
12012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12013 if test "${ac_cv_prog_CC+set}" = set; then
12014   echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016   if test -n "$CC"; then
12017   ac_cv_prog_CC="$CC" # Let the user override the test.
12018 else
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12021 do
12022   IFS=$as_save_IFS
12023   test -z "$as_dir" && as_dir=.
12024   for ac_exec_ext in '' $ac_executable_extensions; do
12025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12028     break 2
12029   fi
12030 done
12031 done
12032
12033 fi
12034 fi
12035 CC=$ac_cv_prog_CC
12036 if test -n "$CC"; then
12037   echo "$as_me:$LINENO: result: $CC" >&5
12038 echo "${ECHO_T}$CC" >&6
12039 else
12040   echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6
12042 fi
12043
12044 fi
12045 if test -z "$ac_cv_prog_CC"; then
12046   ac_ct_CC=$CC
12047   # Extract the first word of "gcc", so it can be a program name with args.
12048 set dummy gcc; ac_word=$2
12049 echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054   if test -n "$ac_ct_CC"; then
12055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12059 do
12060   IFS=$as_save_IFS
12061   test -z "$as_dir" && as_dir=.
12062   for ac_exec_ext in '' $ac_executable_extensions; do
12063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064     ac_cv_prog_ac_ct_CC="gcc"
12065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12066     break 2
12067   fi
12068 done
12069 done
12070
12071 fi
12072 fi
12073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12074 if test -n "$ac_ct_CC"; then
12075   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12076 echo "${ECHO_T}$ac_ct_CC" >&6
12077 else
12078   echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6
12080 fi
12081
12082   CC=$ac_ct_CC
12083 else
12084   CC="$ac_cv_prog_CC"
12085 fi
12086
12087 if test -z "$CC"; then
12088   if test -n "$ac_tool_prefix"; then
12089   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12090 set dummy ${ac_tool_prefix}cc; ac_word=$2
12091 echo "$as_me:$LINENO: checking for $ac_word" >&5
12092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12093 if test "${ac_cv_prog_CC+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   if test -n "$CC"; then
12097   ac_cv_prog_CC="$CC" # Let the user override the test.
12098 else
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12101 do
12102   IFS=$as_save_IFS
12103   test -z "$as_dir" && as_dir=.
12104   for ac_exec_ext in '' $ac_executable_extensions; do
12105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106     ac_cv_prog_CC="${ac_tool_prefix}cc"
12107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12108     break 2
12109   fi
12110 done
12111 done
12112
12113 fi
12114 fi
12115 CC=$ac_cv_prog_CC
12116 if test -n "$CC"; then
12117   echo "$as_me:$LINENO: result: $CC" >&5
12118 echo "${ECHO_T}$CC" >&6
12119 else
12120   echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12122 fi
12123
12124 fi
12125 if test -z "$ac_cv_prog_CC"; then
12126   ac_ct_CC=$CC
12127   # Extract the first word of "cc", so it can be a program name with args.
12128 set dummy cc; ac_word=$2
12129 echo "$as_me:$LINENO: checking for $ac_word" >&5
12130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   if test -n "$ac_ct_CC"; then
12135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140   IFS=$as_save_IFS
12141   test -z "$as_dir" && as_dir=.
12142   for ac_exec_ext in '' $ac_executable_extensions; do
12143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144     ac_cv_prog_ac_ct_CC="cc"
12145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12146     break 2
12147   fi
12148 done
12149 done
12150
12151 fi
12152 fi
12153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12154 if test -n "$ac_ct_CC"; then
12155   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12156 echo "${ECHO_T}$ac_ct_CC" >&6
12157 else
12158   echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12160 fi
12161
12162   CC=$ac_ct_CC
12163 else
12164   CC="$ac_cv_prog_CC"
12165 fi
12166
12167 fi
12168 if test -z "$CC"; then
12169   # Extract the first word of "cc", so it can be a program name with args.
12170 set dummy cc; ac_word=$2
12171 echo "$as_me:$LINENO: checking for $ac_word" >&5
12172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12173 if test "${ac_cv_prog_CC+set}" = set; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176   if test -n "$CC"; then
12177   ac_cv_prog_CC="$CC" # Let the user override the test.
12178 else
12179   ac_prog_rejected=no
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12182 do
12183   IFS=$as_save_IFS
12184   test -z "$as_dir" && as_dir=.
12185   for ac_exec_ext in '' $ac_executable_extensions; do
12186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12188        ac_prog_rejected=yes
12189        continue
12190      fi
12191     ac_cv_prog_CC="cc"
12192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12193     break 2
12194   fi
12195 done
12196 done
12197
12198 if test $ac_prog_rejected = yes; then
12199   # We found a bogon in the path, so make sure we never use it.
12200   set dummy $ac_cv_prog_CC
12201   shift
12202   if test $# != 0; then
12203     # We chose a different compiler from the bogus one.
12204     # However, it has the same basename, so the bogon will be chosen
12205     # first if we set CC to just the basename; use the full file name.
12206     shift
12207     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12208   fi
12209 fi
12210 fi
12211 fi
12212 CC=$ac_cv_prog_CC
12213 if test -n "$CC"; then
12214   echo "$as_me:$LINENO: result: $CC" >&5
12215 echo "${ECHO_T}$CC" >&6
12216 else
12217   echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6
12219 fi
12220
12221 fi
12222 if test -z "$CC"; then
12223   if test -n "$ac_tool_prefix"; then
12224   for ac_prog in cl
12225   do
12226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_prog_CC+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   if test -n "$CC"; then
12234   ac_cv_prog_CC="$CC" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239   IFS=$as_save_IFS
12240   test -z "$as_dir" && as_dir=.
12241   for ac_exec_ext in '' $ac_executable_extensions; do
12242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12245     break 2
12246   fi
12247 done
12248 done
12249
12250 fi
12251 fi
12252 CC=$ac_cv_prog_CC
12253 if test -n "$CC"; then
12254   echo "$as_me:$LINENO: result: $CC" >&5
12255 echo "${ECHO_T}$CC" >&6
12256 else
12257   echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6
12259 fi
12260
12261     test -n "$CC" && break
12262   done
12263 fi
12264 if test -z "$CC"; then
12265   ac_ct_CC=$CC
12266   for ac_prog in cl
12267 do
12268   # Extract the first word of "$ac_prog", so it can be a program name with args.
12269 set dummy $ac_prog; ac_word=$2
12270 echo "$as_me:$LINENO: checking for $ac_word" >&5
12271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   if test -n "$ac_ct_CC"; then
12276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12277 else
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12280 do
12281   IFS=$as_save_IFS
12282   test -z "$as_dir" && as_dir=.
12283   for ac_exec_ext in '' $ac_executable_extensions; do
12284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285     ac_cv_prog_ac_ct_CC="$ac_prog"
12286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12287     break 2
12288   fi
12289 done
12290 done
12291
12292 fi
12293 fi
12294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12295 if test -n "$ac_ct_CC"; then
12296   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12297 echo "${ECHO_T}$ac_ct_CC" >&6
12298 else
12299   echo "$as_me:$LINENO: result: no" >&5
12300 echo "${ECHO_T}no" >&6
12301 fi
12302
12303   test -n "$ac_ct_CC" && break
12304 done
12305
12306   CC=$ac_ct_CC
12307 fi
12308
12309 fi
12310
12311
12312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12313 See \`config.log' for more details." >&5
12314 echo "$as_me: error: no acceptable C compiler found in \$PATH
12315 See \`config.log' for more details." >&2;}
12316    { (exit 1); exit 1; }; }
12317
12318 # Provide some information about the compiler.
12319 echo "$as_me:$LINENO:" \
12320      "checking for C compiler version" >&5
12321 ac_compiler=`set X $ac_compile; echo $2`
12322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12323   (eval $ac_compiler --version </dev/null >&5) 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }
12327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12328   (eval $ac_compiler -v </dev/null >&5) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }
12332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12333   (eval $ac_compiler -V </dev/null >&5) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }
12337
12338 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349
12350 int
12351 main ()
12352 {
12353 #ifndef __GNUC__
12354        choke me
12355 #endif
12356
12357   ;
12358   return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363   (eval $ac_compile) 2>conftest.er1
12364   ac_status=$?
12365   grep -v '^ *+' conftest.er1 >conftest.err
12366   rm -f conftest.er1
12367   cat conftest.err >&5
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); } &&
12370          { ac_try='test -z "$ac_c_werror_flag"
12371                          || test ! -s conftest.err'
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); }; } &&
12377          { ac_try='test -s conftest.$ac_objext'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; }; then
12383   ac_compiler_gnu=yes
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_compiler_gnu=no
12389 fi
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12392
12393 fi
12394 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12395 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12396 GCC=`test $ac_compiler_gnu = yes && echo yes`
12397 ac_test_CFLAGS=${CFLAGS+set}
12398 ac_save_CFLAGS=$CFLAGS
12399 CFLAGS="-g"
12400 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12402 if test "${ac_cv_prog_cc_g+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411
12412 int
12413 main ()
12414 {
12415
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422   (eval $ac_compile) 2>conftest.er1
12423   ac_status=$?
12424   grep -v '^ *+' conftest.er1 >conftest.err
12425   rm -f conftest.er1
12426   cat conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -z "$ac_c_werror_flag"
12430                          || test ! -s conftest.err'
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); }; } &&
12436          { ac_try='test -s conftest.$ac_objext'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_cv_prog_cc_g=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_cv_prog_cc_g=no
12448 fi
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12453 if test "$ac_test_CFLAGS" = set; then
12454   CFLAGS=$ac_save_CFLAGS
12455 elif test $ac_cv_prog_cc_g = yes; then
12456   if test "$GCC" = yes; then
12457     CFLAGS="-g -O2"
12458   else
12459     CFLAGS="-g"
12460   fi
12461 else
12462   if test "$GCC" = yes; then
12463     CFLAGS="-O2"
12464   else
12465     CFLAGS=
12466   fi
12467 fi
12468 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12469 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12470 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   ac_cv_prog_cc_stdc=no
12474 ac_save_CC=$CC
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481 #include <stdarg.h>
12482 #include <stdio.h>
12483 #include <sys/types.h>
12484 #include <sys/stat.h>
12485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12486 struct buf { int x; };
12487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12488 static char *e (p, i)
12489      char **p;
12490      int i;
12491 {
12492   return p[i];
12493 }
12494 static char *f (char * (*g) (char **, int), char **p, ...)
12495 {
12496   char *s;
12497   va_list v;
12498   va_start (v,p);
12499   s = g (p, va_arg (v,int));
12500   va_end (v);
12501   return s;
12502 }
12503
12504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12505    function prototypes and stuff, but not '\xHH' hex character constants.
12506    These don't provoke an error unfortunately, instead are silently treated
12507    as 'x'.  The following induces an error, until -std1 is added to get
12508    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12509    array size at least.  It's necessary to write '\x00'==0 to get something
12510    that's true only with -std1.  */
12511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12512
12513 int test (int i, double x);
12514 struct s1 {int (*f) (int a);};
12515 struct s2 {int (*f) (double a);};
12516 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12517 int argc;
12518 char **argv;
12519 int
12520 main ()
12521 {
12522 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 # Don't try gcc -ansi; that turns off useful extensions and
12528 # breaks some systems' header files.
12529 # AIX                   -qlanglvl=ansi
12530 # Ultrix and OSF/1      -std1
12531 # HP-UX 10.20 and later -Ae
12532 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12533 # SVR4                  -Xc -D__EXTENSIONS__
12534 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12535 do
12536   CC="$ac_save_CC $ac_arg"
12537   rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539   (eval $ac_compile) 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -z "$ac_c_werror_flag"
12547                          || test ! -s conftest.err'
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); }; } &&
12553          { ac_try='test -s conftest.$ac_objext'
12554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555   (eval $ac_try) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; }; then
12559   ac_cv_prog_cc_stdc=$ac_arg
12560 break
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 fi
12566 rm -f conftest.err conftest.$ac_objext
12567 done
12568 rm -f conftest.$ac_ext conftest.$ac_objext
12569 CC=$ac_save_CC
12570
12571 fi
12572
12573 case "x$ac_cv_prog_cc_stdc" in
12574   x|xno)
12575     echo "$as_me:$LINENO: result: none needed" >&5
12576 echo "${ECHO_T}none needed" >&6 ;;
12577   *)
12578     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12579 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12580     CC="$CC $ac_cv_prog_cc_stdc" ;;
12581 esac
12582
12583 # Some people use a C++ compiler to compile C.  Since we use `exit',
12584 # in C++ we need to declare it.  In case someone uses the same compiler
12585 # for both compiling C and C++ we need to have the C++ compiler decide
12586 # the declaration of exit, since it's the most demanding environment.
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #ifndef __cplusplus
12589   choke me
12590 #endif
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594   (eval $ac_compile) 2>conftest.er1
12595   ac_status=$?
12596   grep -v '^ *+' conftest.er1 >conftest.err
12597   rm -f conftest.er1
12598   cat conftest.err >&5
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -z "$ac_c_werror_flag"
12602                          || test ! -s conftest.err'
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); }; } &&
12608          { ac_try='test -s conftest.$ac_objext'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   for ac_declaration in \
12615    '' \
12616    'extern "C" void std::exit (int) throw (); using std::exit;' \
12617    'extern "C" void std::exit (int); using std::exit;' \
12618    'extern "C" void exit (int) throw ();' \
12619    'extern "C" void exit (int);' \
12620    'void exit (int);'
12621 do
12622   cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628 $ac_declaration
12629 #include <stdlib.h>
12630 int
12631 main ()
12632 {
12633 exit (42);
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640   (eval $ac_compile) 2>conftest.er1
12641   ac_status=$?
12642   grep -v '^ *+' conftest.er1 >conftest.err
12643   rm -f conftest.er1
12644   cat conftest.err >&5
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } &&
12647          { ac_try='test -z "$ac_c_werror_flag"
12648                          || test ! -s conftest.err'
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); }; } &&
12654          { ac_try='test -s conftest.$ac_objext'
12655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656   (eval $ac_try) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; }; then
12660   :
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 continue
12666 fi
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668   cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h.  */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h.  */
12674 $ac_declaration
12675 int
12676 main ()
12677 {
12678 exit (42);
12679   ;
12680   return 0;
12681 }
12682 _ACEOF
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685   (eval $ac_compile) 2>conftest.er1
12686   ac_status=$?
12687   grep -v '^ *+' conftest.er1 >conftest.err
12688   rm -f conftest.er1
12689   cat conftest.err >&5
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); } &&
12692          { ac_try='test -z "$ac_c_werror_flag"
12693                          || test ! -s conftest.err'
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); }; } &&
12699          { ac_try='test -s conftest.$ac_objext'
12700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701   (eval $ac_try) 2>&5
12702   ac_status=$?
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); }; }; then
12705   break
12706 else
12707   echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12709
12710 fi
12711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712 done
12713 rm -f conftest*
12714 if test -n "$ac_declaration"; then
12715   echo '#ifdef __cplusplus' >>confdefs.h
12716   echo $ac_declaration      >>confdefs.h
12717   echo '#endif'             >>confdefs.h
12718 fi
12719
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724 fi
12725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12726 ac_ext=c
12727 ac_cpp='$CPP $CPPFLAGS'
12728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731
12732 depcc="$CC"   am_compiler_list=
12733
12734 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12735 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12736 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12740   # We make a subdir and do the tests there.  Otherwise we can end up
12741   # making bogus files that we don't know about and never remove.  For
12742   # instance it was reported that on HP-UX the gcc test will end up
12743   # making a dummy file named `D' -- because `-MD' means `put the output
12744   # in D'.
12745   mkdir conftest.dir
12746   # Copy depcomp to subdir because otherwise we won't find it if we're
12747   # using a relative directory.
12748   cp "$am_depcomp" conftest.dir
12749   cd conftest.dir
12750   # We will build objects and dependencies in a subdirectory because
12751   # it helps to detect inapplicable dependency modes.  For instance
12752   # both Tru64's cc and ICC support -MD to output dependencies as a
12753   # side effect of compilation, but ICC will put the dependencies in
12754   # the current directory while Tru64 will put them in the object
12755   # directory.
12756   mkdir sub
12757
12758   am_cv_CC_dependencies_compiler_type=none
12759   if test "$am_compiler_list" = ""; then
12760      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12761   fi
12762   for depmode in $am_compiler_list; do
12763     # Setup a source with many dependencies, because some compilers
12764     # like to wrap large dependency lists on column 80 (with \), and
12765     # we should not choose a depcomp mode which is confused by this.
12766     #
12767     # We need to recreate these files for each test, as the compiler may
12768     # overwrite some of them when testing with obscure command lines.
12769     # This happens at least with the AIX C compiler.
12770     : > sub/conftest.c
12771     for i in 1 2 3 4 5 6; do
12772       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12773       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12774       # Solaris 8's {/usr,}/bin/sh.
12775       touch sub/conftst$i.h
12776     done
12777     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12778
12779     case $depmode in
12780     nosideeffect)
12781       # after this tag, mechanisms are not by side-effect, so they'll
12782       # only be used when explicitly requested
12783       if test "x$enable_dependency_tracking" = xyes; then
12784         continue
12785       else
12786         break
12787       fi
12788       ;;
12789     none) break ;;
12790     esac
12791     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12792     # mode.  It turns out that the SunPro C++ compiler does not properly
12793     # handle `-M -o', and we need to detect this.
12794     if depmode=$depmode \
12795        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12796        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12797        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12798          >/dev/null 2>conftest.err &&
12799        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12800        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12801        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12802       # icc doesn't choke on unknown options, it will just issue warnings
12803       # or remarks (even with -Werror).  So we grep stderr for any message
12804       # that says an option was ignored or not supported.
12805       # When given -MP, icc 7.0 and 7.1 complain thusly:
12806       #   icc: Command line warning: ignoring option '-M'; no argument required
12807       # The diagnosis changed in icc 8.0:
12808       #   icc: Command line remark: option '-MP' not supported
12809       if (grep 'ignoring option' conftest.err ||
12810           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12811         am_cv_CC_dependencies_compiler_type=$depmode
12812         break
12813       fi
12814     fi
12815   done
12816
12817   cd ..
12818   rm -rf conftest.dir
12819 else
12820   am_cv_CC_dependencies_compiler_type=none
12821 fi
12822
12823 fi
12824 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12825 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12827
12828
12829
12830 if
12831   test "x$enable_dependency_tracking" != xno \
12832   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12833   am__fastdepCC_TRUE=
12834   am__fastdepCC_FALSE='#'
12835 else
12836   am__fastdepCC_TRUE='#'
12837   am__fastdepCC_FALSE=
12838 fi
12839
12840
12841 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12842         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12843 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12844    { (exit 1); exit 1; }; }
12845 fi
12846
12847 # test for make depend flag
12848 OL_MKDEP=
12849 OL_MKDEP_FLAGS=
12850 if test -z "${MKDEP}"; then
12851         OL_MKDEP="${CC-cc}"
12852         if test -z "${MKDEP_FLAGS}"; then
12853                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12854 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12855 if test "${ol_cv_mkdep+set}" = set; then
12856   echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858
12859                         ol_cv_mkdep=no
12860                         for flag in "-M" "-xM"; do
12861                                 cat > conftest.c <<EOF
12862  noCode;
12863 EOF
12864                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866   (eval $ac_try) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; } \
12870                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12871                                 then
12872                                         if test ! -f conftest."${ac_object}" ; then
12873                                                 ol_cv_mkdep=$flag
12874                                                 OL_MKDEP_FLAGS="$flag"
12875                                                 break
12876                                         fi
12877                                 fi
12878                         done
12879                         rm -f conftest*
12880
12881 fi
12882 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12883 echo "${ECHO_T}$ol_cv_mkdep" >&6
12884         else
12885                 cc_cv_mkdep=yes
12886                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12887         fi
12888 else
12889         cc_cv_mkdep=yes
12890         OL_MKDEP="${MKDEP}"
12891         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12892 fi
12893
12894
12895
12896 if test "${ol_cv_mkdep}" = no ; then
12897         # this will soon become an error
12898         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12899 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12900 fi
12901
12902 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12903 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12904 if test "${ac_cv_lib_s_afopen+set}" = set; then
12905   echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907   ac_check_lib_save_LIBS=$LIBS
12908 LIBS="-ls  $LIBS"
12909 cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h.  */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h.  */
12915
12916 /* Override any gcc2 internal prototype to avoid an error.  */
12917 #ifdef __cplusplus
12918 extern "C"
12919 #endif
12920 /* We use char because int might match the return type of a gcc2
12921    builtin and then its argument prototype would still apply.  */
12922 char afopen ();
12923 int
12924 main ()
12925 {
12926 afopen ();
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933   (eval $ac_link) 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } &&
12940          { ac_try='test -z "$ac_c_werror_flag"
12941                          || test ! -s conftest.err'
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); }; } &&
12947          { ac_try='test -s conftest$ac_exeext'
12948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949   (eval $ac_try) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ac_cv_lib_s_afopen=yes
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 ac_cv_lib_s_afopen=no
12959 fi
12960 rm -f conftest.err conftest.$ac_objext \
12961       conftest$ac_exeext conftest.$ac_ext
12962 LIBS=$ac_check_lib_save_LIBS
12963 fi
12964 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12965 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12966 if test $ac_cv_lib_s_afopen = yes; then
12967
12968         AUTH_LIBS=-ls
12969
12970 cat >>confdefs.h <<\_ACEOF
12971 #define HAVE_AIX_SECURITY 1
12972 _ACEOF
12973
12974
12975 fi
12976
12977
12978 case "$target" in
12979 *-ibm-openedition)
12980         ac_cv_func_getopt=no
12981
12982 cat >>confdefs.h <<\_ACEOF
12983 #define BOTH_STRINGS_H 1
12984 _ACEOF
12985
12986         ;;
12987 esac
12988
12989 ol_link_modules=no
12990 WITH_MODULES_ENABLED=no
12991 if test $ol_enable_modules != no ; then
12992
12993 for ac_header in ltdl.h
12994 do
12995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12997   echo "$as_me:$LINENO: checking for $ac_header" >&5
12998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 fi
13002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13004 else
13005   # Is the header compilable?
13006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 $ac_includes_default
13015 #include <$ac_header>
13016 _ACEOF
13017 rm -f conftest.$ac_objext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019   (eval $ac_compile) 2>conftest.er1
13020   ac_status=$?
13021   grep -v '^ *+' conftest.er1 >conftest.err
13022   rm -f conftest.er1
13023   cat conftest.err >&5
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); } &&
13026          { ac_try='test -z "$ac_c_werror_flag"
13027                          || test ! -s conftest.err'
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); }; } &&
13033          { ac_try='test -s conftest.$ac_objext'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; }; then
13039   ac_header_compiler=yes
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 ac_header_compiler=no
13045 fi
13046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13048 echo "${ECHO_T}$ac_header_compiler" >&6
13049
13050 # Is the header present?
13051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13054 /* confdefs.h.  */
13055 _ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h.  */
13059 #include <$ac_header>
13060 _ACEOF
13061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13063   ac_status=$?
13064   grep -v '^ *+' conftest.er1 >conftest.err
13065   rm -f conftest.er1
13066   cat conftest.err >&5
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } >/dev/null; then
13069   if test -s conftest.err; then
13070     ac_cpp_err=$ac_c_preproc_warn_flag
13071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13072   else
13073     ac_cpp_err=
13074   fi
13075 else
13076   ac_cpp_err=yes
13077 fi
13078 if test -z "$ac_cpp_err"; then
13079   ac_header_preproc=yes
13080 else
13081   echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084   ac_header_preproc=no
13085 fi
13086 rm -f conftest.err conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13088 echo "${ECHO_T}$ac_header_preproc" >&6
13089
13090 # So?  What about this header?
13091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13092   yes:no: )
13093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13097     ac_header_preproc=yes
13098     ;;
13099   no:yes:* )
13100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13112     (
13113       cat <<\_ASBOX
13114 ## --------------------------------------------- ##
13115 ## Report this to <http://www.openldap.org/its/> ##
13116 ## --------------------------------------------- ##
13117 _ASBOX
13118     ) |
13119       sed "s/^/$as_me: WARNING:     /" >&2
13120     ;;
13121 esac
13122 echo "$as_me:$LINENO: checking for $ac_header" >&5
13123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   eval "$as_ac_Header=\$ac_header_preproc"
13128 fi
13129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13131
13132 fi
13133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13134   cat >>confdefs.h <<_ACEOF
13135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13136 _ACEOF
13137
13138 fi
13139
13140 done
13141
13142
13143         if test $ac_cv_header_ltdl_h = no ; then
13144                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13145 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13146    { (exit 1); exit 1; }; }
13147         fi
13148
13149         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13150 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13151 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-lltdl  $LIBS"
13156 cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162
13163 /* Override any gcc2 internal prototype to avoid an error.  */
13164 #ifdef __cplusplus
13165 extern "C"
13166 #endif
13167 /* We use char because int might match the return type of a gcc2
13168    builtin and then its argument prototype would still apply.  */
13169 char lt_dlinit ();
13170 int
13171 main ()
13172 {
13173 lt_dlinit ();
13174   ;
13175   return 0;
13176 }
13177 _ACEOF
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180   (eval $ac_link) 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } &&
13187          { ac_try='test -z "$ac_c_werror_flag"
13188                          || test ! -s conftest.err'
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); }; } &&
13194          { ac_try='test -s conftest$ac_exeext'
13195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196   (eval $ac_try) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); }; }; then
13200   ac_cv_lib_ltdl_lt_dlinit=yes
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_cv_lib_ltdl_lt_dlinit=no
13206 fi
13207 rm -f conftest.err conftest.$ac_objext \
13208       conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13210 fi
13211 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13212 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13213 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13214
13215                 MODULES_LIBS=-lltdl
13216
13217 cat >>confdefs.h <<\_ACEOF
13218 #define HAVE_LIBLTDL 1
13219 _ACEOF
13220
13221
13222 fi
13223
13224
13225         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13226                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13227 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13228    { (exit 1); exit 1; }; }
13229         fi
13230         ol_link_modules=yes
13231         WITH_MODULES_ENABLED=yes
13232
13233 else
13234         for i in $Backends; do
13235                 eval "ol_tmp=\$ol_enable_$i"
13236                 if test $ol_tmp = mod ; then
13237                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13238 echo "$as_me: WARNING: building static $i backend" >&2;}
13239                         eval "ol_enable_$i=yes"
13240                 fi
13241         done
13242         for i in $Overlays; do
13243                 eval "ol_tmp=\$ol_enable_$i"
13244                 if test $ol_tmp = mod ; then
13245                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13246 echo "$as_me: WARNING: building static $i overlay" >&2;}
13247                         eval "ol_enable_$i=yes"
13248                 fi
13249         done
13250 fi
13251
13252 # test for EBCDIC
13253 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13254 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13255 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258
13259         cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h.  */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h.  */
13265
13266 #if !('M' == 0xd4)
13267 #include <__ASCII__/generate_error.h>
13268 #endif
13269
13270 _ACEOF
13271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13272   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13273   ac_status=$?
13274   grep -v '^ *+' conftest.er1 >conftest.err
13275   rm -f conftest.er1
13276   cat conftest.err >&5
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } >/dev/null; then
13279   if test -s conftest.err; then
13280     ac_cpp_err=$ac_c_preproc_warn_flag
13281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13282   else
13283     ac_cpp_err=
13284   fi
13285 else
13286   ac_cpp_err=yes
13287 fi
13288 if test -z "$ac_cpp_err"; then
13289   ol_cv_cpp_ebcdic=yes
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294   ol_cv_cpp_ebcdic=no
13295 fi
13296 rm -f conftest.err conftest.$ac_ext
13297 fi
13298 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13299 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13300 if test $ol_cv_cpp_ebcdic = yes ; then
13301
13302 cat >>confdefs.h <<\_ACEOF
13303 #define HAVE_EBCDIC 1
13304 _ACEOF
13305
13306 fi
13307
13308 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13310 if test "${ol_cv_header_stdc+set}" = set; then
13311   echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313   cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h.  */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h.  */
13319 #include <stdlib.h>
13320 #include <stdarg.h>
13321 #include <string.h>
13322 #include <float.h>
13323 _ACEOF
13324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13326   ac_status=$?
13327   grep -v '^ *+' conftest.er1 >conftest.err
13328   rm -f conftest.er1
13329   cat conftest.err >&5
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } >/dev/null; then
13332   if test -s conftest.err; then
13333     ac_cpp_err=$ac_c_preproc_warn_flag
13334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13335   else
13336     ac_cpp_err=
13337   fi
13338 else
13339   ac_cpp_err=yes
13340 fi
13341 if test -z "$ac_cpp_err"; then
13342   ol_cv_header_stdc=yes
13343 else
13344   echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347   ol_cv_header_stdc=no
13348 fi
13349 rm -f conftest.err conftest.$ac_ext
13350
13351 if test $ol_cv_header_stdc = yes; then
13352   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359 #include <string.h>
13360
13361 _ACEOF
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363   $EGREP "memchr" >/dev/null 2>&1; then
13364   :
13365 else
13366   ol_cv_header_stdc=no
13367 fi
13368 rm -f conftest*
13369
13370 fi
13371
13372 if test $ol_cv_header_stdc = yes; then
13373   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13374 cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380 #include <stdlib.h>
13381
13382 _ACEOF
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384   $EGREP "free" >/dev/null 2>&1; then
13385   :
13386 else
13387   ol_cv_header_stdc=no
13388 fi
13389 rm -f conftest*
13390
13391 fi
13392
13393 if test $ol_cv_header_stdc = yes; then
13394   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13395 if test "$cross_compiling" = yes; then
13396   :
13397 else
13398   cat >conftest.$ac_ext <<_ACEOF
13399 /* confdefs.h.  */
13400 _ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h.  */
13404 #include <ctype.h>
13405 #ifndef HAVE_EBCDIC
13406 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13407 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13408 #else
13409 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13410                 || ('j' <= (c) && (c) <= 'r') \
13411                 || ('s' <= (c) && (c) <= 'z'))
13412 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13413 #endif
13414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13415 int main () { int i; for (i = 0; i < 256; i++)
13416 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13417 exit (0); }
13418
13419 _ACEOF
13420 rm -f conftest$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422   (eval $ac_link) 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427   (eval $ac_try) 2>&5
13428   ac_status=$?
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); }; }; then
13431   :
13432 else
13433   echo "$as_me: program exited with status $ac_status" >&5
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ( exit $ac_status )
13438 ol_cv_header_stdc=no
13439 fi
13440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13441 fi
13442 fi
13443 fi
13444 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13445 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13446 if test $ol_cv_header_stdc = yes; then
13447   cat >>confdefs.h <<\_ACEOF
13448 #define STDC_HEADERS 1
13449 _ACEOF
13450
13451 fi
13452 ac_cv_header_stdc=disable
13453
13454
13455 if test $ol_cv_header_stdc != yes; then
13456         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13457 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13458 fi
13459
13460
13461
13462
13463
13464
13465 ac_header_dirent=no
13466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13467   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13468 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13469 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13471   echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473   cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479 #include <sys/types.h>
13480 #include <$ac_hdr>
13481
13482 int
13483 main ()
13484 {
13485 if ((DIR *) 0)
13486 return 0;
13487   ;
13488   return 0;
13489 }
13490 _ACEOF
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493   (eval $ac_compile) 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } &&
13500          { ac_try='test -z "$ac_c_werror_flag"
13501                          || test ! -s conftest.err'
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); }; } &&
13507          { ac_try='test -s conftest.$ac_objext'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; }; then
13513   eval "$as_ac_Header=yes"
13514 else
13515   echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518 eval "$as_ac_Header=no"
13519 fi
13520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13521 fi
13522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13525   cat >>confdefs.h <<_ACEOF
13526 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13527 _ACEOF
13528
13529 ac_header_dirent=$ac_hdr; break
13530 fi
13531
13532 done
13533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13534 if test $ac_header_dirent = dirent.h; then
13535   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13537 if test "${ac_cv_search_opendir+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   ac_func_search_save_LIBS=$LIBS
13541 ac_cv_search_opendir=no
13542 cat >conftest.$ac_ext <<_ACEOF
13543 /* confdefs.h.  */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h.  */
13548
13549 /* Override any gcc2 internal prototype to avoid an error.  */
13550 #ifdef __cplusplus
13551 extern "C"
13552 #endif
13553 /* We use char because int might match the return type of a gcc2
13554    builtin and then its argument prototype would still apply.  */
13555 char opendir ();
13556 int
13557 main ()
13558 {
13559 opendir ();
13560   ;
13561   return 0;
13562 }
13563 _ACEOF
13564 rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13566   (eval $ac_link) 2>conftest.er1
13567   ac_status=$?
13568   grep -v '^ *+' conftest.er1 >conftest.err
13569   rm -f conftest.er1
13570   cat conftest.err >&5
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -z "$ac_c_werror_flag"
13574                          || test ! -s conftest.err'
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); }; } &&
13580          { ac_try='test -s conftest$ac_exeext'
13581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582   (eval $ac_try) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; }; then
13586   ac_cv_search_opendir="none required"
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 fi
13592 rm -f conftest.err conftest.$ac_objext \
13593       conftest$ac_exeext conftest.$ac_ext
13594 if test "$ac_cv_search_opendir" = no; then
13595   for ac_lib in dir; do
13596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13597     cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h.  */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h.  */
13603
13604 /* Override any gcc2 internal prototype to avoid an error.  */
13605 #ifdef __cplusplus
13606 extern "C"
13607 #endif
13608 /* We use char because int might match the return type of a gcc2
13609    builtin and then its argument prototype would still apply.  */
13610 char opendir ();
13611 int
13612 main ()
13613 {
13614 opendir ();
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621   (eval $ac_link) 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag"
13629                          || test ! -s conftest.err'
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); }; } &&
13635          { ac_try='test -s conftest$ac_exeext'
13636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637   (eval $ac_try) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; }; then
13641   ac_cv_search_opendir="-l$ac_lib"
13642 break
13643 else
13644   echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13646
13647 fi
13648 rm -f conftest.err conftest.$ac_objext \
13649       conftest$ac_exeext conftest.$ac_ext
13650   done
13651 fi
13652 LIBS=$ac_func_search_save_LIBS
13653 fi
13654 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13655 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13656 if test "$ac_cv_search_opendir" != no; then
13657   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13658
13659 fi
13660
13661 else
13662   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13664 if test "${ac_cv_search_opendir+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   ac_func_search_save_LIBS=$LIBS
13668 ac_cv_search_opendir=no
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675
13676 /* Override any gcc2 internal prototype to avoid an error.  */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 /* We use char because int might match the return type of a gcc2
13681    builtin and then its argument prototype would still apply.  */
13682 char opendir ();
13683 int
13684 main ()
13685 {
13686 opendir ();
13687   ;
13688   return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693   (eval $ac_link) 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } &&
13700          { ac_try='test -z "$ac_c_werror_flag"
13701                          || test ! -s conftest.err'
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); }; } &&
13707          { ac_try='test -s conftest$ac_exeext'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   ac_cv_search_opendir="none required"
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718 fi
13719 rm -f conftest.err conftest.$ac_objext \
13720       conftest$ac_exeext conftest.$ac_ext
13721 if test "$ac_cv_search_opendir" = no; then
13722   for ac_lib in x; do
13723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13724     cat >conftest.$ac_ext <<_ACEOF
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730
13731 /* Override any gcc2 internal prototype to avoid an error.  */
13732 #ifdef __cplusplus
13733 extern "C"
13734 #endif
13735 /* We use char because int might match the return type of a gcc2
13736    builtin and then its argument prototype would still apply.  */
13737 char opendir ();
13738 int
13739 main ()
13740 {
13741 opendir ();
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748   (eval $ac_link) 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_c_werror_flag"
13756                          || test ! -s conftest.err'
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); }; } &&
13762          { ac_try='test -s conftest$ac_exeext'
13763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764   (eval $ac_try) 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; }; then
13768   ac_cv_search_opendir="-l$ac_lib"
13769 break
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 fi
13775 rm -f conftest.err conftest.$ac_objext \
13776       conftest$ac_exeext conftest.$ac_ext
13777   done
13778 fi
13779 LIBS=$ac_func_search_save_LIBS
13780 fi
13781 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13782 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13783 if test "$ac_cv_search_opendir" != no; then
13784   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13785
13786 fi
13787
13788 fi
13789
13790 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13791 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13792 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13793   echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795   cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h.  */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h.  */
13801 #include <sys/types.h>
13802 #include <sys/wait.h>
13803 #ifndef WEXITSTATUS
13804 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13805 #endif
13806 #ifndef WIFEXITED
13807 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13808 #endif
13809
13810 int
13811 main ()
13812 {
13813   int s;
13814   wait (&s);
13815   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822   (eval $ac_compile) 2>conftest.er1
13823   ac_status=$?
13824   grep -v '^ *+' conftest.er1 >conftest.err
13825   rm -f conftest.er1
13826   cat conftest.err >&5
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } &&
13829          { ac_try='test -z "$ac_c_werror_flag"
13830                          || test ! -s conftest.err'
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); }; } &&
13836          { ac_try='test -s conftest.$ac_objext'
13837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838   (eval $ac_try) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; }; then
13842   ac_cv_header_sys_wait_h=yes
13843 else
13844   echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 ac_cv_header_sys_wait_h=no
13848 fi
13849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850 fi
13851 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13852 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13853 if test $ac_cv_header_sys_wait_h = yes; then
13854
13855 cat >>confdefs.h <<\_ACEOF
13856 #define HAVE_SYS_WAIT_H 1
13857 _ACEOF
13858
13859 fi
13860
13861 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13862 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13863 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13864   echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866   cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h.  */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h.  */
13872 #include <sys/types.h>
13873 #include <termios.h>
13874 #ifdef TIOCGWINSZ
13875   yes
13876 #endif
13877
13878 _ACEOF
13879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13880   $EGREP "yes" >/dev/null 2>&1; then
13881   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13882 else
13883   ac_cv_sys_tiocgwinsz_in_termios_h=no
13884 fi
13885 rm -f conftest*
13886
13887 fi
13888 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13889 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13890
13891 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13892   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13893 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13894 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13895   echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897   cat >conftest.$ac_ext <<_ACEOF
13898 /* confdefs.h.  */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h.  */
13903 #include <sys/types.h>
13904 #include <sys/ioctl.h>
13905 #ifdef TIOCGWINSZ
13906   yes
13907 #endif
13908
13909 _ACEOF
13910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13911   $EGREP "yes" >/dev/null 2>&1; then
13912   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13913 else
13914   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13915 fi
13916 rm -f conftest*
13917
13918 fi
13919 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13920 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13921
13922   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13923
13924 cat >>confdefs.h <<\_ACEOF
13925 #define GWINSZ_IN_SYS_IOCTL 1
13926 _ACEOF
13927
13928   fi
13929 fi
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
13973
13974
13975
13976
13977
13978 for ac_header in \
13979         arpa/inet.h             \
13980         arpa/nameser.h  \
13981         assert.h                \
13982         bits/types.h    \
13983         conio.h                 \
13984         crypt.h                 \
13985         direct.h                \
13986         errno.h                 \
13987         fcntl.h                 \
13988         filio.h                 \
13989         getopt.h                \
13990         grp.h                   \
13991         io.h                    \
13992         libutil.h               \
13993         limits.h                \
13994         locale.h                \
13995         malloc.h                \
13996         memory.h                \
13997         psap.h                  \
13998         pwd.h                   \
13999         process.h               \
14000         sgtty.h                 \
14001         shadow.h                \
14002         stddef.h                \
14003         string.h                \
14004         strings.h               \
14005         sysexits.h              \
14006         sys/file.h              \
14007         sys/filio.h             \
14008         sys/errno.h             \
14009         sys/ioctl.h             \
14010         sys/param.h             \
14011         sys/resource.h  \
14012         sys/select.h    \
14013         sys/socket.h    \
14014         sys/stat.h              \
14015         sys/syslog.h    \
14016         sys/time.h              \
14017         sys/types.h             \
14018         sys/uio.h               \
14019         syslog.h                \
14020         termios.h               \
14021         unistd.h                \
14022         utime.h                 \
14023         winsock.h               \
14024         winsock2.h              \
14025
14026 do
14027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14029   echo "$as_me:$LINENO: checking for $ac_header" >&5
14030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032   echo $ECHO_N "(cached) $ECHO_C" >&6
14033 fi
14034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14036 else
14037   # Is the header compilable?
14038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046 $ac_includes_default
14047 #include <$ac_header>
14048 _ACEOF
14049 rm -f conftest.$ac_objext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14051   (eval $ac_compile) 2>conftest.er1
14052   ac_status=$?
14053   grep -v '^ *+' conftest.er1 >conftest.err
14054   rm -f conftest.er1
14055   cat conftest.err >&5
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); } &&
14058          { ac_try='test -z "$ac_c_werror_flag"
14059                          || test ! -s conftest.err'
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); }; } &&
14065          { ac_try='test -s conftest.$ac_objext'
14066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067   (eval $ac_try) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   ac_header_compiler=yes
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076 ac_header_compiler=no
14077 fi
14078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14080 echo "${ECHO_T}$ac_header_compiler" >&6
14081
14082 # Is the header present?
14083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14085 cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h.  */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h.  */
14091 #include <$ac_header>
14092 _ACEOF
14093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } >/dev/null; then
14101   if test -s conftest.err; then
14102     ac_cpp_err=$ac_c_preproc_warn_flag
14103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14104   else
14105     ac_cpp_err=
14106   fi
14107 else
14108   ac_cpp_err=yes
14109 fi
14110 if test -z "$ac_cpp_err"; then
14111   ac_header_preproc=yes
14112 else
14113   echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116   ac_header_preproc=no
14117 fi
14118 rm -f conftest.err conftest.$ac_ext
14119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14120 echo "${ECHO_T}$ac_header_preproc" >&6
14121
14122 # So?  What about this header?
14123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14124   yes:no: )
14125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14129     ac_header_preproc=yes
14130     ;;
14131   no:yes:* )
14132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14144     (
14145       cat <<\_ASBOX
14146 ## --------------------------------------------- ##
14147 ## Report this to <http://www.openldap.org/its/> ##
14148 ## --------------------------------------------- ##
14149 _ASBOX
14150     ) |
14151       sed "s/^/$as_me: WARNING:     /" >&2
14152     ;;
14153 esac
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157   echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159   eval "$as_ac_Header=\$ac_header_preproc"
14160 fi
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14163
14164 fi
14165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14166   cat >>confdefs.h <<_ACEOF
14167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14168 _ACEOF
14169
14170 fi
14171
14172 done
14173
14174
14175
14176 for ac_header in resolv.h
14177 do
14178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14179 echo "$as_me:$LINENO: checking for $ac_header" >&5
14180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14182   echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184   cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h.  */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h.  */
14190 $ac_includes_default
14191 #include <netinet/in.h>
14192
14193
14194 #include <$ac_header>
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198   (eval $ac_compile) 2>conftest.er1
14199   ac_status=$?
14200   grep -v '^ *+' conftest.er1 >conftest.err
14201   rm -f conftest.er1
14202   cat conftest.err >&5
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); } &&
14205          { ac_try='test -z "$ac_c_werror_flag"
14206                          || test ! -s conftest.err'
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); }; } &&
14212          { ac_try='test -s conftest.$ac_objext'
14213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214   (eval $ac_try) 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; }; then
14218   eval "$as_ac_Header=yes"
14219 else
14220   echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 eval "$as_ac_Header=no"
14224 fi
14225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14230   cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14232 _ACEOF
14233
14234 fi
14235
14236 done
14237
14238
14239
14240 for ac_header in netinet/tcp.h
14241 do
14242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14243 echo "$as_me:$LINENO: checking for $ac_header" >&5
14244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254 $ac_includes_default
14255 #include <netinet/in.h>
14256
14257
14258 #include <$ac_header>
14259 _ACEOF
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262   (eval $ac_compile) 2>conftest.er1
14263   ac_status=$?
14264   grep -v '^ *+' conftest.er1 >conftest.err
14265   rm -f conftest.er1
14266   cat conftest.err >&5
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } &&
14269          { ac_try='test -z "$ac_c_werror_flag"
14270                          || test ! -s conftest.err'
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); }; } &&
14276          { ac_try='test -s conftest.$ac_objext'
14277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278   (eval $ac_try) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; }; then
14282   eval "$as_ac_Header=yes"
14283 else
14284   echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 eval "$as_ac_Header=no"
14288 fi
14289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14290 fi
14291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14294   cat >>confdefs.h <<_ACEOF
14295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14296 _ACEOF
14297
14298 fi
14299
14300 done
14301
14302
14303
14304 for ac_header in sys/ucred.h
14305 do
14306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 $ac_includes_default
14319 #ifdef HAVE_SYS_PARAM_H
14320 #include <sys/param.h>
14321 #endif
14322
14323
14324 #include <$ac_header>
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328   (eval $ac_compile) 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } &&
14335          { ac_try='test -z "$ac_c_werror_flag"
14336                          || test ! -s conftest.err'
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); }; } &&
14342          { ac_try='test -s conftest.$ac_objext'
14343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344   (eval $ac_try) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); }; }; then
14348   eval "$as_ac_Header=yes"
14349 else
14350   echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353 eval "$as_ac_Header=no"
14354 fi
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356 fi
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14360   cat >>confdefs.h <<_ACEOF
14361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14362 _ACEOF
14363
14364 fi
14365
14366 done
14367
14368
14369
14370
14371
14372 for ac_func in sigaction sigset
14373 do
14374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14375 echo "$as_me:$LINENO: checking for $ac_func" >&5
14376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14377 if eval "test \"\${$as_ac_var+set}\" = set"; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14388 #define $ac_func innocuous_$ac_func
14389
14390 /* System header to define __stub macros and hopefully few prototypes,
14391     which can conflict with char $ac_func (); below.
14392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14393     <limits.h> exists even on freestanding compilers.  */
14394
14395 #ifdef __STDC__
14396 # include <limits.h>
14397 #else
14398 # include <assert.h>
14399 #endif
14400
14401 #undef $ac_func
14402
14403 /* Override any gcc2 internal prototype to avoid an error.  */
14404 #ifdef __cplusplus
14405 extern "C"
14406 {
14407 #endif
14408 /* We use char because int might match the return type of a gcc2
14409    builtin and then its argument prototype would still apply.  */
14410 char $ac_func ();
14411 /* The GNU C library defines this for functions which it implements
14412     to always fail with ENOSYS.  Some functions are actually named
14413     something starting with __ and the normal name is an alias.  */
14414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14415 choke me
14416 #else
14417 char (*f) () = $ac_func;
14418 #endif
14419 #ifdef __cplusplus
14420 }
14421 #endif
14422
14423 int
14424 main ()
14425 {
14426 return f != $ac_func;
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14433   (eval $ac_link) 2>conftest.er1
14434   ac_status=$?
14435   grep -v '^ *+' conftest.er1 >conftest.err
14436   rm -f conftest.er1
14437   cat conftest.err >&5
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -z "$ac_c_werror_flag"
14441                          || test ! -s conftest.err'
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); }; } &&
14447          { ac_try='test -s conftest$ac_exeext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   eval "$as_ac_var=yes"
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 eval "$as_ac_var=no"
14459 fi
14460 rm -f conftest.err conftest.$ac_objext \
14461       conftest$ac_exeext conftest.$ac_ext
14462 fi
14463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14465 if test `eval echo '${'$as_ac_var'}'` = yes; then
14466   cat >>confdefs.h <<_ACEOF
14467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14468 _ACEOF
14469
14470 fi
14471 done
14472
14473
14474 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14475
14476 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14477 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14478 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481   ac_check_lib_save_LIBS=$LIBS
14482 LIBS="-lV3  $LIBS"
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h.  */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h.  */
14489
14490 /* Override any gcc2 internal prototype to avoid an error.  */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 /* We use char because int might match the return type of a gcc2
14495    builtin and then its argument prototype would still apply.  */
14496 char sigset ();
14497 int
14498 main ()
14499 {
14500 sigset ();
14501   ;
14502   return 0;
14503 }
14504 _ACEOF
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14507   (eval $ac_link) 2>conftest.er1
14508   ac_status=$?
14509   grep -v '^ *+' conftest.er1 >conftest.err
14510   rm -f conftest.er1
14511   cat conftest.err >&5
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); } &&
14514          { ac_try='test -z "$ac_c_werror_flag"
14515                          || test ! -s conftest.err'
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); }; } &&
14521          { ac_try='test -s conftest$ac_exeext'
14522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523   (eval $ac_try) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; }; then
14527   ac_cv_lib_V3_sigset=yes
14528 else
14529   echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532 ac_cv_lib_V3_sigset=no
14533 fi
14534 rm -f conftest.err conftest.$ac_objext \
14535       conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_check_lib_save_LIBS
14537 fi
14538 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14539 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14540 if test $ac_cv_lib_V3_sigset = yes; then
14541   cat >>confdefs.h <<_ACEOF
14542 #define HAVE_LIBV3 1
14543 _ACEOF
14544
14545   LIBS="-lV3 $LIBS"
14546
14547 fi
14548
14549 fi
14550
14551 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14552 echo "$as_me:$LINENO: checking for winsock" >&5
14553 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14554 if test "${ol_cv_winsock+set}" = set; then
14555   echo $ECHO_N "(cached) $ECHO_C" >&6
14556 else
14557   save_LIBS="$LIBS"
14558 for curlib in ws2_32 wsock32; do
14559         LIBS="$LIBS -l$curlib"
14560         cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 #include <winsock.h>
14567
14568 int
14569 main ()
14570 {
14571
14572                         socket(0,0,0);
14573                         select(0,NULL,NULL,NULL,NULL);
14574                         closesocket(0);
14575                         gethostname(NULL,0);
14576
14577   ;
14578   return 0;
14579 }
14580 _ACEOF
14581 rm -f conftest.$ac_objext conftest$ac_exeext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14583   (eval $ac_link) 2>conftest.er1
14584   ac_status=$?
14585   grep -v '^ *+' conftest.er1 >conftest.err
14586   rm -f conftest.er1
14587   cat conftest.err >&5
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } &&
14590          { ac_try='test -z "$ac_c_werror_flag"
14591                          || test ! -s conftest.err'
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); }; } &&
14597          { ac_try='test -s conftest$ac_exeext'
14598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599   (eval $ac_try) 2>&5
14600   ac_status=$?
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); }; }; then
14603   ol_cv_winsock=yes
14604 else
14605   echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608 ol_cv_winsock=no
14609 fi
14610 rm -f conftest.err conftest.$ac_objext \
14611       conftest$ac_exeext conftest.$ac_ext
14612
14613         if test $ol_cv_winsock = yes; then
14614
14615 cat >>confdefs.h <<\_ACEOF
14616 #define HAVE_WINSOCK 1
14617 _ACEOF
14618
14619                 ac_cv_func_socket=yes
14620                 ac_cv_func_select=yes
14621                 ac_cv_func_closesocket=yes
14622                 ac_cv_func_gethostname=yes
14623                 if test $curlib = ws2_32; then
14624                         ol_cv_winsock=winsock2
14625
14626 cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_WINSOCK2 1
14628 _ACEOF
14629
14630                 fi
14631                 break
14632         fi
14633         LIBS="$save_LIBS"
14634 done
14635 fi
14636 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14637 echo "${ECHO_T}$ol_cv_winsock" >&6
14638 fi
14639
14640
14641 echo "$as_me:$LINENO: checking for socket" >&5
14642 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14643 if test "${ac_cv_func_socket+set}" = set; then
14644   echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646   cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14654 #define socket innocuous_socket
14655
14656 /* System header to define __stub macros and hopefully few prototypes,
14657     which can conflict with char socket (); below.
14658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14659     <limits.h> exists even on freestanding compilers.  */
14660
14661 #ifdef __STDC__
14662 # include <limits.h>
14663 #else
14664 # include <assert.h>
14665 #endif
14666
14667 #undef socket
14668
14669 /* Override any gcc2 internal prototype to avoid an error.  */
14670 #ifdef __cplusplus
14671 extern "C"
14672 {
14673 #endif
14674 /* We use char because int might match the return type of a gcc2
14675    builtin and then its argument prototype would still apply.  */
14676 char socket ();
14677 /* The GNU C library defines this for functions which it implements
14678     to always fail with ENOSYS.  Some functions are actually named
14679     something starting with __ and the normal name is an alias.  */
14680 #if defined (__stub_socket) || defined (__stub___socket)
14681 choke me
14682 #else
14683 char (*f) () = socket;
14684 #endif
14685 #ifdef __cplusplus
14686 }
14687 #endif
14688
14689 int
14690 main ()
14691 {
14692 return f != socket;
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699   (eval $ac_link) 2>conftest.er1
14700   ac_status=$?
14701   grep -v '^ *+' conftest.er1 >conftest.err
14702   rm -f conftest.er1
14703   cat conftest.err >&5
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } &&
14706          { ac_try='test -z "$ac_c_werror_flag"
14707                          || test ! -s conftest.err'
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); }; } &&
14713          { ac_try='test -s conftest$ac_exeext'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; }; then
14719   ac_cv_func_socket=yes
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724 ac_cv_func_socket=no
14725 fi
14726 rm -f conftest.err conftest.$ac_objext \
14727       conftest$ac_exeext conftest.$ac_ext
14728 fi
14729 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14730 echo "${ECHO_T}$ac_cv_func_socket" >&6
14731 if test $ac_cv_func_socket = yes; then
14732   :
14733 else
14734
14735
14736 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14737 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14738 if test "${ac_cv_lib_socket_main+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741   ac_check_lib_save_LIBS=$LIBS
14742 LIBS="-lsocket  $LIBS"
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h.  */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h.  */
14749
14750
14751 int
14752 main ()
14753 {
14754 main ();
14755   ;
14756   return 0;
14757 }
14758 _ACEOF
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14761   (eval $ac_link) 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } &&
14768          { ac_try='test -z "$ac_c_werror_flag"
14769                          || test ! -s conftest.err'
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); }; } &&
14775          { ac_try='test -s conftest$ac_exeext'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   ac_cv_lib_socket_main=yes
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 ac_cv_lib_socket_main=no
14787 fi
14788 rm -f conftest.err conftest.$ac_objext \
14789       conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_check_lib_save_LIBS
14791 fi
14792 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14793 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14794 if test $ac_cv_lib_socket_main = yes; then
14795   cat >>confdefs.h <<_ACEOF
14796 #define HAVE_LIBSOCKET 1
14797 _ACEOF
14798
14799   LIBS="-lsocket $LIBS"
14800
14801 fi
14802
14803
14804 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14805 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14806 if test "${ac_cv_lib_net_main+set}" = set; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809   ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lnet  $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h.  */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h.  */
14817
14818
14819 int
14820 main ()
14821 {
14822 main ();
14823   ;
14824   return 0;
14825 }
14826 _ACEOF
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14829   (eval $ac_link) 2>conftest.er1
14830   ac_status=$?
14831   grep -v '^ *+' conftest.er1 >conftest.err
14832   rm -f conftest.er1
14833   cat conftest.err >&5
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); } &&
14836          { ac_try='test -z "$ac_c_werror_flag"
14837                          || test ! -s conftest.err'
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); }; } &&
14843          { ac_try='test -s conftest$ac_exeext'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }; then
14849   ac_cv_lib_net_main=yes
14850 else
14851   echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 ac_cv_lib_net_main=no
14855 fi
14856 rm -f conftest.err conftest.$ac_objext \
14857       conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14859 fi
14860 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14861 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14862 if test $ac_cv_lib_net_main = yes; then
14863   cat >>confdefs.h <<_ACEOF
14864 #define HAVE_LIBNET 1
14865 _ACEOF
14866
14867   LIBS="-lnet $LIBS"
14868
14869 fi
14870
14871
14872 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14873 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14874 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14875   echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877   ac_check_lib_save_LIBS=$LIBS
14878 LIBS="-lnsl_s  $LIBS"
14879 cat >conftest.$ac_ext <<_ACEOF
14880 /* confdefs.h.  */
14881 _ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h.  */
14885
14886
14887 int
14888 main ()
14889 {
14890 main ();
14891   ;
14892   return 0;
14893 }
14894 _ACEOF
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897   (eval $ac_link) 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } &&
14904          { ac_try='test -z "$ac_c_werror_flag"
14905                          || test ! -s conftest.err'
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); }; } &&
14911          { ac_try='test -s conftest$ac_exeext'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; }; then
14917   ac_cv_lib_nsl_s_main=yes
14918 else
14919   echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ac_cv_lib_nsl_s_main=no
14923 fi
14924 rm -f conftest.err conftest.$ac_objext \
14925       conftest$ac_exeext conftest.$ac_ext
14926 LIBS=$ac_check_lib_save_LIBS
14927 fi
14928 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14929 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14930 if test $ac_cv_lib_nsl_s_main = yes; then
14931   cat >>confdefs.h <<_ACEOF
14932 #define HAVE_LIBNSL_S 1
14933 _ACEOF
14934
14935   LIBS="-lnsl_s $LIBS"
14936
14937 fi
14938
14939
14940 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14941 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14942 if test "${ac_cv_lib_nsl_main+set}" = set; then
14943   echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945   ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-lnsl  $LIBS"
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953
14954
14955 int
14956 main ()
14957 {
14958 main ();
14959   ;
14960   return 0;
14961 }
14962 _ACEOF
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965   (eval $ac_link) 2>conftest.er1
14966   ac_status=$?
14967   grep -v '^ *+' conftest.er1 >conftest.err
14968   rm -f conftest.er1
14969   cat conftest.err >&5
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); } &&
14972          { ac_try='test -z "$ac_c_werror_flag"
14973                          || test ! -s conftest.err'
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); }; } &&
14979          { ac_try='test -s conftest$ac_exeext'
14980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981   (eval $ac_try) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985   ac_cv_lib_nsl_main=yes
14986 else
14987   echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990 ac_cv_lib_nsl_main=no
14991 fi
14992 rm -f conftest.err conftest.$ac_objext \
14993       conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14997 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14998 if test $ac_cv_lib_nsl_main = yes; then
14999   cat >>confdefs.h <<_ACEOF
15000 #define HAVE_LIBNSL 1
15001 _ACEOF
15002
15003   LIBS="-lnsl $LIBS"
15004
15005 fi
15006
15007
15008 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15009 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15010 if test "${ac_cv_lib_inet_socket+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   ac_check_lib_save_LIBS=$LIBS
15014 LIBS="-linet  $LIBS"
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021
15022 /* Override any gcc2 internal prototype to avoid an error.  */
15023 #ifdef __cplusplus
15024 extern "C"
15025 #endif
15026 /* We use char because int might match the return type of a gcc2
15027    builtin and then its argument prototype would still apply.  */
15028 char socket ();
15029 int
15030 main ()
15031 {
15032 socket ();
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039   (eval $ac_link) 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag"
15047                          || test ! -s conftest.err'
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); }; } &&
15053          { ac_try='test -s conftest$ac_exeext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059   ac_cv_lib_inet_socket=yes
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 ac_cv_lib_inet_socket=no
15065 fi
15066 rm -f conftest.err conftest.$ac_objext \
15067       conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15069 fi
15070 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15071 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15072 if test $ac_cv_lib_inet_socket = yes; then
15073   cat >>confdefs.h <<_ACEOF
15074 #define HAVE_LIBINET 1
15075 _ACEOF
15076
15077   LIBS="-linet $LIBS"
15078
15079 fi
15080
15081
15082 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15083 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15084 if test "${ac_cv_lib_gen_main+set}" = set; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   ac_check_lib_save_LIBS=$LIBS
15088 LIBS="-lgen  $LIBS"
15089 cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h.  */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h.  */
15095
15096
15097 int
15098 main ()
15099 {
15100 main ();
15101   ;
15102   return 0;
15103 }
15104 _ACEOF
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15107   (eval $ac_link) 2>conftest.er1
15108   ac_status=$?
15109   grep -v '^ *+' conftest.er1 >conftest.err
15110   rm -f conftest.er1
15111   cat conftest.err >&5
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); } &&
15114          { ac_try='test -z "$ac_c_werror_flag"
15115                          || test ! -s conftest.err'
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); }; } &&
15121          { ac_try='test -s conftest$ac_exeext'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   ac_cv_lib_gen_main=yes
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 ac_cv_lib_gen_main=no
15133 fi
15134 rm -f conftest.err conftest.$ac_objext \
15135       conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15137 fi
15138 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15139 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15140 if test $ac_cv_lib_gen_main = yes; then
15141   cat >>confdefs.h <<_ACEOF
15142 #define HAVE_LIBGEN 1
15143 _ACEOF
15144
15145   LIBS="-lgen $LIBS"
15146
15147 fi
15148
15149
15150 fi
15151
15152
15153 echo "$as_me:$LINENO: checking for select" >&5
15154 echo $ECHO_N "checking for select... $ECHO_C" >&6
15155 if test "${ac_cv_func_select+set}" = set; then
15156   echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158   cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h.  */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h.  */
15164 /* Define select to an innocuous variant, in case <limits.h> declares select.
15165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15166 #define select innocuous_select
15167
15168 /* System header to define __stub macros and hopefully few prototypes,
15169     which can conflict with char select (); below.
15170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15171     <limits.h> exists even on freestanding compilers.  */
15172
15173 #ifdef __STDC__
15174 # include <limits.h>
15175 #else
15176 # include <assert.h>
15177 #endif
15178
15179 #undef select
15180
15181 /* Override any gcc2 internal prototype to avoid an error.  */
15182 #ifdef __cplusplus
15183 extern "C"
15184 {
15185 #endif
15186 /* We use char because int might match the return type of a gcc2
15187    builtin and then its argument prototype would still apply.  */
15188 char select ();
15189 /* The GNU C library defines this for functions which it implements
15190     to always fail with ENOSYS.  Some functions are actually named
15191     something starting with __ and the normal name is an alias.  */
15192 #if defined (__stub_select) || defined (__stub___select)
15193 choke me
15194 #else
15195 char (*f) () = select;
15196 #endif
15197 #ifdef __cplusplus
15198 }
15199 #endif
15200
15201 int
15202 main ()
15203 {
15204 return f != select;
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211   (eval $ac_link) 2>conftest.er1
15212   ac_status=$?
15213   grep -v '^ *+' conftest.er1 >conftest.err
15214   rm -f conftest.er1
15215   cat conftest.err >&5
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); } &&
15218          { ac_try='test -z "$ac_c_werror_flag"
15219                          || test ! -s conftest.err'
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); }; } &&
15225          { ac_try='test -s conftest$ac_exeext'
15226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227   (eval $ac_try) 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; }; then
15231   ac_cv_func_select=yes
15232 else
15233   echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15235
15236 ac_cv_func_select=no
15237 fi
15238 rm -f conftest.err conftest.$ac_objext \
15239       conftest$ac_exeext conftest.$ac_ext
15240 fi
15241 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15242 echo "${ECHO_T}$ac_cv_func_select" >&6
15243 if test $ac_cv_func_select = yes; then
15244   :
15245 else
15246   { { echo "$as_me:$LINENO: error: select() required." >&5
15247 echo "$as_me: error: select() required." >&2;}
15248    { (exit 1); exit 1; }; }
15249 fi
15250
15251
15252 if test "${ac_cv_header_winsock_h}" != yes; then
15253
15254
15255 for ac_header in sys/select.h sys/socket.h
15256 do
15257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259   echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15262   echo $ECHO_N "(cached) $ECHO_C" >&6
15263 fi
15264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15266 else
15267   # Is the header compilable?
15268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 $ac_includes_default
15277 #include <$ac_header>
15278 _ACEOF
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281   (eval $ac_compile) 2>conftest.er1
15282   ac_status=$?
15283   grep -v '^ *+' conftest.er1 >conftest.err
15284   rm -f conftest.er1
15285   cat conftest.err >&5
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); } &&
15288          { ac_try='test -z "$ac_c_werror_flag"
15289                          || test ! -s conftest.err'
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); }; } &&
15295          { ac_try='test -s conftest.$ac_objext'
15296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297   (eval $ac_try) 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); }; }; then
15301   ac_header_compiler=yes
15302 else
15303   echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306 ac_header_compiler=no
15307 fi
15308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15310 echo "${ECHO_T}$ac_header_compiler" >&6
15311
15312 # Is the header present?
15313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321 #include <$ac_header>
15322 _ACEOF
15323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } >/dev/null; then
15331   if test -s conftest.err; then
15332     ac_cpp_err=$ac_c_preproc_warn_flag
15333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15334   else
15335     ac_cpp_err=
15336   fi
15337 else
15338   ac_cpp_err=yes
15339 fi
15340 if test -z "$ac_cpp_err"; then
15341   ac_header_preproc=yes
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346   ac_header_preproc=no
15347 fi
15348 rm -f conftest.err conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15350 echo "${ECHO_T}$ac_header_preproc" >&6
15351
15352 # So?  What about this header?
15353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15354   yes:no: )
15355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15359     ac_header_preproc=yes
15360     ;;
15361   no:yes:* )
15362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15374     (
15375       cat <<\_ASBOX
15376 ## --------------------------------------------- ##
15377 ## Report this to <http://www.openldap.org/its/> ##
15378 ## --------------------------------------------- ##
15379 _ASBOX
15380     ) |
15381       sed "s/^/$as_me: WARNING:     /" >&2
15382     ;;
15383 esac
15384 echo "$as_me:$LINENO: checking for $ac_header" >&5
15385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   eval "$as_ac_Header=\$ac_header_preproc"
15390 fi
15391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15393
15394 fi
15395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396   cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15398 _ACEOF
15399
15400 fi
15401
15402 done
15403
15404 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15405 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15406 if test "${ac_cv_func_select_args+set}" = set; then
15407   echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15410  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15411   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15412    cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418 $ac_includes_default
15419 #if HAVE_SYS_SELECT_H
15420 # include <sys/select.h>
15421 #endif
15422 #if HAVE_SYS_SOCKET_H
15423 # include <sys/socket.h>
15424 #endif
15425
15426 int
15427 main ()
15428 {
15429 extern int select ($ac_arg1,
15430                                             $ac_arg234, $ac_arg234, $ac_arg234,
15431                                             $ac_arg5);
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438   (eval $ac_compile) 2>conftest.er1
15439   ac_status=$?
15440   grep -v '^ *+' conftest.er1 >conftest.err
15441   rm -f conftest.er1
15442   cat conftest.err >&5
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); } &&
15445          { ac_try='test -z "$ac_c_werror_flag"
15446                          || test ! -s conftest.err'
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); }; } &&
15452          { ac_try='test -s conftest.$ac_objext'
15453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454   (eval $ac_try) 2>&5
15455   ac_status=$?
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); }; }; then
15458   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 fi
15464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15465   done
15466  done
15467 done
15468 # Provide a safe default value.
15469 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15470
15471 fi
15472 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15473 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15474 ac_save_IFS=$IFS; IFS=','
15475 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15476 IFS=$ac_save_IFS
15477 shift
15478
15479 cat >>confdefs.h <<_ACEOF
15480 #define SELECT_TYPE_ARG1 $1
15481 _ACEOF
15482
15483
15484 cat >>confdefs.h <<_ACEOF
15485 #define SELECT_TYPE_ARG234 ($2)
15486 _ACEOF
15487
15488
15489 cat >>confdefs.h <<_ACEOF
15490 #define SELECT_TYPE_ARG5 ($3)
15491 _ACEOF
15492
15493 rm -f conftest*
15494
15495 fi
15496
15497
15498
15499 for ac_func in poll
15500 do
15501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15502 echo "$as_me:$LINENO: checking for $ac_func" >&5
15503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15504 if eval "test \"\${$as_ac_var+set}\" = set"; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507   cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15515 #define $ac_func innocuous_$ac_func
15516
15517 /* System header to define __stub macros and hopefully few prototypes,
15518     which can conflict with char $ac_func (); below.
15519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15520     <limits.h> exists even on freestanding compilers.  */
15521
15522 #ifdef __STDC__
15523 # include <limits.h>
15524 #else
15525 # include <assert.h>
15526 #endif
15527
15528 #undef $ac_func
15529
15530 /* Override any gcc2 internal prototype to avoid an error.  */
15531 #ifdef __cplusplus
15532 extern "C"
15533 {
15534 #endif
15535 /* We use char because int might match the return type of a gcc2
15536    builtin and then its argument prototype would still apply.  */
15537 char $ac_func ();
15538 /* The GNU C library defines this for functions which it implements
15539     to always fail with ENOSYS.  Some functions are actually named
15540     something starting with __ and the normal name is an alias.  */
15541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15542 choke me
15543 #else
15544 char (*f) () = $ac_func;
15545 #endif
15546 #ifdef __cplusplus
15547 }
15548 #endif
15549
15550 int
15551 main ()
15552 {
15553 return f != $ac_func;
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560   (eval $ac_link) 2>conftest.er1
15561   ac_status=$?
15562   grep -v '^ *+' conftest.er1 >conftest.err
15563   rm -f conftest.er1
15564   cat conftest.err >&5
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); } &&
15567          { ac_try='test -z "$ac_c_werror_flag"
15568                          || test ! -s conftest.err'
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); }; } &&
15574          { ac_try='test -s conftest$ac_exeext'
15575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576   (eval $ac_try) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; }; then
15580   eval "$as_ac_var=yes"
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15584
15585 eval "$as_ac_var=no"
15586 fi
15587 rm -f conftest.err conftest.$ac_objext \
15588       conftest$ac_exeext conftest.$ac_ext
15589 fi
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15592 if test `eval echo '${'$as_ac_var'}'` = yes; then
15593   cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15595 _ACEOF
15596
15597 fi
15598 done
15599
15600
15601 for ac_header in poll.h
15602 do
15603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15605   echo "$as_me:$LINENO: checking for $ac_header" >&5
15606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15608   echo $ECHO_N "(cached) $ECHO_C" >&6
15609 fi
15610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15612 else
15613   # Is the header compilable?
15614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15616 cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h.  */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h.  */
15622 $ac_includes_default
15623 #include <$ac_header>
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15627   (eval $ac_compile) 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag"
15635                          || test ! -s conftest.err'
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); }; } &&
15641          { ac_try='test -s conftest.$ac_objext'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   ac_header_compiler=yes
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 ac_header_compiler=no
15653 fi
15654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15656 echo "${ECHO_T}$ac_header_compiler" >&6
15657
15658 # Is the header present?
15659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667 #include <$ac_header>
15668 _ACEOF
15669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } >/dev/null; then
15677   if test -s conftest.err; then
15678     ac_cpp_err=$ac_c_preproc_warn_flag
15679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15680   else
15681     ac_cpp_err=
15682   fi
15683 else
15684   ac_cpp_err=yes
15685 fi
15686 if test -z "$ac_cpp_err"; then
15687   ac_header_preproc=yes
15688 else
15689   echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692   ac_header_preproc=no
15693 fi
15694 rm -f conftest.err conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15696 echo "${ECHO_T}$ac_header_preproc" >&6
15697
15698 # So?  What about this header?
15699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15700   yes:no: )
15701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15705     ac_header_preproc=yes
15706     ;;
15707   no:yes:* )
15708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15720     (
15721       cat <<\_ASBOX
15722 ## --------------------------------------------- ##
15723 ## Report this to <http://www.openldap.org/its/> ##
15724 ## --------------------------------------------- ##
15725 _ASBOX
15726     ) |
15727       sed "s/^/$as_me: WARNING:     /" >&2
15728     ;;
15729 esac
15730 echo "$as_me:$LINENO: checking for $ac_header" >&5
15731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15733   echo $ECHO_N "(cached) $ECHO_C" >&6
15734 else
15735   eval "$as_ac_Header=\$ac_header_preproc"
15736 fi
15737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15739
15740 fi
15741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15742   cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15744 _ACEOF
15745
15746 fi
15747
15748 done
15749
15750
15751
15752 for ac_header in sys/epoll.h
15753 do
15754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15756   echo "$as_me:$LINENO: checking for $ac_header" >&5
15757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 fi
15761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15763 else
15764   # Is the header compilable?
15765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15767 cat >conftest.$ac_ext <<_ACEOF
15768 /* confdefs.h.  */
15769 _ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h.  */
15773 $ac_includes_default
15774 #include <$ac_header>
15775 _ACEOF
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778   (eval $ac_compile) 2>conftest.er1
15779   ac_status=$?
15780   grep -v '^ *+' conftest.er1 >conftest.err
15781   rm -f conftest.er1
15782   cat conftest.err >&5
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } &&
15785          { ac_try='test -z "$ac_c_werror_flag"
15786                          || test ! -s conftest.err'
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); }; } &&
15792          { ac_try='test -s conftest.$ac_objext'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798   ac_header_compiler=yes
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803 ac_header_compiler=no
15804 fi
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15807 echo "${ECHO_T}$ac_header_compiler" >&6
15808
15809 # Is the header present?
15810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818 #include <$ac_header>
15819 _ACEOF
15820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } >/dev/null; then
15828   if test -s conftest.err; then
15829     ac_cpp_err=$ac_c_preproc_warn_flag
15830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15831   else
15832     ac_cpp_err=
15833   fi
15834 else
15835   ac_cpp_err=yes
15836 fi
15837 if test -z "$ac_cpp_err"; then
15838   ac_header_preproc=yes
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843   ac_header_preproc=no
15844 fi
15845 rm -f conftest.err conftest.$ac_ext
15846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15847 echo "${ECHO_T}$ac_header_preproc" >&6
15848
15849 # So?  What about this header?
15850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15851   yes:no: )
15852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15856     ac_header_preproc=yes
15857     ;;
15858   no:yes:* )
15859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15871     (
15872       cat <<\_ASBOX
15873 ## --------------------------------------------- ##
15874 ## Report this to <http://www.openldap.org/its/> ##
15875 ## --------------------------------------------- ##
15876 _ASBOX
15877     ) |
15878       sed "s/^/$as_me: WARNING:     /" >&2
15879     ;;
15880 esac
15881 echo "$as_me:$LINENO: checking for $ac_header" >&5
15882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   eval "$as_ac_Header=\$ac_header_preproc"
15887 fi
15888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15890
15891 fi
15892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15893   cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15895 _ACEOF
15896
15897 fi
15898
15899 done
15900
15901 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15902 echo "$as_me:$LINENO: checking for epoll system call" >&5
15903 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15904 if test "$cross_compiling" = yes; then
15905   echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15907 else
15908   cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 int main(int argc, char *argv)
15915 {
15916         int epfd = epoll_create(256);
15917         exit (epfd == -1 ? 1 : 0);
15918 }
15919 _ACEOF
15920 rm -f conftest$ac_exeext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922   (eval $ac_link) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927   (eval $ac_try) 2>&5
15928   ac_status=$?
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); }; }; then
15931   echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15933
15934 cat >>confdefs.h <<\_ACEOF
15935 #define HAVE_EPOLL 1
15936 _ACEOF
15937
15938 else
15939   echo "$as_me: program exited with status $ac_status" >&5
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ( exit $ac_status )
15944 echo "$as_me:$LINENO: result: no" >&5
15945 echo "${ECHO_T}no" >&6
15946 fi
15947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15948 fi
15949 fi
15950
15951 # strerror checks
15952 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15953 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15954 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15955   echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957
15958         cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h.  */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h.  */
15964
15965 #include <stdio.h>
15966 #include <sys/types.h>
15967 #include <errno.h>
15968 #ifdef WINNT
15969 #include <stdlib.h>
15970 #endif
15971 int
15972 main ()
15973 {
15974 char *c = (char *) *sys_errlist
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981   (eval $ac_compile) 2>conftest.er1
15982   ac_status=$?
15983   grep -v '^ *+' conftest.er1 >conftest.err
15984   rm -f conftest.er1
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); } &&
15988          { ac_try='test -z "$ac_c_werror_flag"
15989                          || test ! -s conftest.err'
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); }; } &&
15995          { ac_try='test -s conftest.$ac_objext'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; }; then
16001   ol_cv_dcl_sys_errlist=yes
16002         ol_cv_have_sys_errlist=yes
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 ol_cv_dcl_sys_errlist=no
16008 fi
16009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16010 fi
16011 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16012 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16013 #
16014 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16015 if test $ol_cv_dcl_sys_errlist = no ; then
16016
16017 cat >>confdefs.h <<\_ACEOF
16018 #define DECL_SYS_ERRLIST 1
16019 _ACEOF
16020
16021
16022         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16023 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16024 if test "${ol_cv_have_sys_errlist+set}" = set; then
16025   echo $ECHO_N "(cached) $ECHO_C" >&6
16026 else
16027
16028                 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 #include <errno.h>
16035 int
16036 main ()
16037 {
16038 char *c = (char *) *sys_errlist
16039   ;
16040   return 0;
16041 }
16042 _ACEOF
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045   (eval $ac_link) 2>conftest.er1
16046   ac_status=$?
16047   grep -v '^ *+' conftest.er1 >conftest.err
16048   rm -f conftest.er1
16049   cat conftest.err >&5
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } &&
16052          { ac_try='test -z "$ac_c_werror_flag"
16053                          || test ! -s conftest.err'
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); }; } &&
16059          { ac_try='test -s conftest$ac_exeext'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   ol_cv_have_sys_errlist=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 ol_cv_have_sys_errlist=no
16071 fi
16072 rm -f conftest.err conftest.$ac_objext \
16073       conftest$ac_exeext conftest.$ac_ext
16074 fi
16075 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16076 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16077 fi
16078 if test $ol_cv_have_sys_errlist = yes ; then
16079
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_SYS_ERRLIST 1
16082 _ACEOF
16083
16084 fi
16085
16086
16087 for ac_func in strerror strerror_r
16088 do
16089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16092 if eval "test \"\${$as_ac_var+set}\" = set"; then
16093   echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095   cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16103 #define $ac_func innocuous_$ac_func
16104
16105 /* System header to define __stub macros and hopefully few prototypes,
16106     which can conflict with char $ac_func (); below.
16107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108     <limits.h> exists even on freestanding compilers.  */
16109
16110 #ifdef __STDC__
16111 # include <limits.h>
16112 #else
16113 # include <assert.h>
16114 #endif
16115
16116 #undef $ac_func
16117
16118 /* Override any gcc2 internal prototype to avoid an error.  */
16119 #ifdef __cplusplus
16120 extern "C"
16121 {
16122 #endif
16123 /* We use char because int might match the return type of a gcc2
16124    builtin and then its argument prototype would still apply.  */
16125 char $ac_func ();
16126 /* The GNU C library defines this for functions which it implements
16127     to always fail with ENOSYS.  Some functions are actually named
16128     something starting with __ and the normal name is an alias.  */
16129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16130 choke me
16131 #else
16132 char (*f) () = $ac_func;
16133 #endif
16134 #ifdef __cplusplus
16135 }
16136 #endif
16137
16138 int
16139 main ()
16140 {
16141 return f != $ac_func;
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148   (eval $ac_link) 2>conftest.er1
16149   ac_status=$?
16150   grep -v '^ *+' conftest.er1 >conftest.err
16151   rm -f conftest.er1
16152   cat conftest.err >&5
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } &&
16155          { ac_try='test -z "$ac_c_werror_flag"
16156                          || test ! -s conftest.err'
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); }; } &&
16162          { ac_try='test -s conftest$ac_exeext'
16163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164   (eval $ac_try) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; }; then
16168   eval "$as_ac_var=yes"
16169 else
16170   echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 eval "$as_ac_var=no"
16174 fi
16175 rm -f conftest.err conftest.$ac_objext \
16176       conftest$ac_exeext conftest.$ac_ext
16177 fi
16178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16180 if test `eval echo '${'$as_ac_var'}'` = yes; then
16181   cat >>confdefs.h <<_ACEOF
16182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16183 _ACEOF
16184
16185 fi
16186 done
16187
16188 ol_cv_func_strerror_r=no
16189 if test "${ac_cv_func_strerror_r}" = yes ; then
16190         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16191 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16192 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16193   echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195
16196         cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202 #include <string.h>
16203 _ACEOF
16204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16205   $EGREP "strerror_r" >/dev/null 2>&1; then
16206   ol_decl_strerror_r=yes
16207 else
16208   ol_decl_strerror_r=no
16209 fi
16210 rm -f conftest*
16211
16212         if test $ol_decl_strerror_r = yes ; then
16213                 cat >conftest.$ac_ext <<_ACEOF
16214 /* confdefs.h.  */
16215 _ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h.  */
16219 #include <string.h>
16220 int
16221 main ()
16222 {
16223    /* from autoconf 2.59 */
16224                                 char buf[100];
16225                                 char x = *strerror_r (0, buf, sizeof buf);
16226                                 char *p = strerror_r (0, buf, sizeof buf);
16227
16228   ;
16229   return 0;
16230 }
16231 _ACEOF
16232 rm -f conftest.$ac_objext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234   (eval $ac_compile) 2>conftest.er1
16235   ac_status=$?
16236   grep -v '^ *+' conftest.er1 >conftest.err
16237   rm -f conftest.er1
16238   cat conftest.err >&5
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } &&
16241          { ac_try='test -z "$ac_c_werror_flag"
16242                          || test ! -s conftest.err'
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); }; } &&
16248          { ac_try='test -s conftest.$ac_objext'
16249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250   (eval $ac_try) 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); }; }; then
16254   ol_cv_nonposix_strerror_r=yes
16255 else
16256   echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16258
16259 ol_cv_nonposix_strerror_r=no
16260 fi
16261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16262         else
16263                 if test "$cross_compiling" = yes; then
16264   ol_cv_nonposix_strerror=no
16265 else
16266   cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272
16273                         main() {
16274                                 char buf[100];
16275                                 buf[0] = 0;
16276                                 strerror_r( 1, buf, sizeof buf );
16277                                 exit( buf[0] == 0 );
16278                         }
16279
16280 _ACEOF
16281 rm -f conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283   (eval $ac_link) 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288   (eval $ac_try) 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; }; then
16292   ol_cv_nonposix_strerror_r=yes
16293 else
16294   echo "$as_me: program exited with status $ac_status" >&5
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298 ( exit $ac_status )
16299 ol_cv_nonposix_strerror=no
16300 fi
16301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16302 fi
16303         fi
16304
16305 fi
16306 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16307 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16308 if test $ol_cv_nonposix_strerror_r = yes ; then
16309
16310 cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_NONPOSIX_STRERROR_R 1
16312 _ACEOF
16313
16314 fi
16315
16316 elif test "${ac_cv_func_strerror}" = no ; then
16317         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16318 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16319 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16320   echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322
16323         cat >conftest.$ac_ext <<_ACEOF
16324 /* confdefs.h.  */
16325 _ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h.  */
16329
16330 #include <stdio.h>
16331 #include <sys/types.h>
16332 #include <errno.h>
16333 #ifdef WINNT
16334 #include <stdlib.h>
16335 #endif
16336 int
16337 main ()
16338 {
16339 char *c = (char *) *sys_errlist
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346   (eval $ac_compile) 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } &&
16353          { ac_try='test -z "$ac_c_werror_flag"
16354                          || test ! -s conftest.err'
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); }; } &&
16360          { ac_try='test -s conftest.$ac_objext'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   ol_cv_dcl_sys_errlist=yes
16367         ol_cv_have_sys_errlist=yes
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372 ol_cv_dcl_sys_errlist=no
16373 fi
16374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16375 fi
16376 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16377 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16378 #
16379 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16380 if test $ol_cv_dcl_sys_errlist = no ; then
16381
16382 cat >>confdefs.h <<\_ACEOF
16383 #define DECL_SYS_ERRLIST 1
16384 _ACEOF
16385
16386
16387         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16388 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16389 if test "${ol_cv_have_sys_errlist+set}" = set; then
16390   echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392
16393                 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399 #include <errno.h>
16400 int
16401 main ()
16402 {
16403 char *c = (char *) *sys_errlist
16404   ;
16405   return 0;
16406 }
16407 _ACEOF
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16410   (eval $ac_link) 2>conftest.er1
16411   ac_status=$?
16412   grep -v '^ *+' conftest.er1 >conftest.err
16413   rm -f conftest.er1
16414   cat conftest.err >&5
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); } &&
16417          { ac_try='test -z "$ac_c_werror_flag"
16418                          || test ! -s conftest.err'
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); }; } &&
16424          { ac_try='test -s conftest$ac_exeext'
16425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426   (eval $ac_try) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; }; then
16430   ol_cv_have_sys_errlist=yes
16431 else
16432   echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16434
16435 ol_cv_have_sys_errlist=no
16436 fi
16437 rm -f conftest.err conftest.$ac_objext \
16438       conftest$ac_exeext conftest.$ac_ext
16439 fi
16440 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16441 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16442 fi
16443 if test $ol_cv_have_sys_errlist = yes ; then
16444
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_SYS_ERRLIST 1
16447 _ACEOF
16448
16449 fi
16450
16451 fi
16452
16453
16454
16455 for ac_header in regex.h
16456 do
16457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16459   echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16462   echo $ECHO_N "(cached) $ECHO_C" >&6
16463 fi
16464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16466 else
16467   # Is the header compilable?
16468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16471 /* confdefs.h.  */
16472 _ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h.  */
16476 $ac_includes_default
16477 #include <$ac_header>
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481   (eval $ac_compile) 2>conftest.er1
16482   ac_status=$?
16483   grep -v '^ *+' conftest.er1 >conftest.err
16484   rm -f conftest.er1
16485   cat conftest.err >&5
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); } &&
16488          { ac_try='test -z "$ac_c_werror_flag"
16489                          || test ! -s conftest.err'
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); }; } &&
16495          { ac_try='test -s conftest.$ac_objext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   ac_header_compiler=yes
16502 else
16503   echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 ac_header_compiler=no
16507 fi
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16510 echo "${ECHO_T}$ac_header_compiler" >&6
16511
16512 # Is the header present?
16513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 #include <$ac_header>
16522 _ACEOF
16523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16525   ac_status=$?
16526   grep -v '^ *+' conftest.er1 >conftest.err
16527   rm -f conftest.er1
16528   cat conftest.err >&5
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } >/dev/null; then
16531   if test -s conftest.err; then
16532     ac_cpp_err=$ac_c_preproc_warn_flag
16533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16534   else
16535     ac_cpp_err=
16536   fi
16537 else
16538   ac_cpp_err=yes
16539 fi
16540 if test -z "$ac_cpp_err"; then
16541   ac_header_preproc=yes
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546   ac_header_preproc=no
16547 fi
16548 rm -f conftest.err conftest.$ac_ext
16549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16550 echo "${ECHO_T}$ac_header_preproc" >&6
16551
16552 # So?  What about this header?
16553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16554   yes:no: )
16555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16559     ac_header_preproc=yes
16560     ;;
16561   no:yes:* )
16562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16574     (
16575       cat <<\_ASBOX
16576 ## --------------------------------------------- ##
16577 ## Report this to <http://www.openldap.org/its/> ##
16578 ## --------------------------------------------- ##
16579 _ASBOX
16580     ) |
16581       sed "s/^/$as_me: WARNING:     /" >&2
16582     ;;
16583 esac
16584 echo "$as_me:$LINENO: checking for $ac_header" >&5
16585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   eval "$as_ac_Header=\$ac_header_preproc"
16590 fi
16591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16593
16594 fi
16595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16596   cat >>confdefs.h <<_ACEOF
16597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16598 _ACEOF
16599
16600 fi
16601
16602 done
16603
16604 if test "$ac_cv_header_regex_h" != yes ; then
16605         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16606 echo "$as_me: error: POSIX regex.h required." >&2;}
16607    { (exit 1); exit 1; }; }
16608 fi
16609 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16610 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16611 if test "${ac_cv_search_regfree+set}" = set; then
16612   echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614   ac_func_search_save_LIBS=$LIBS
16615 ac_cv_search_regfree=no
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622
16623 /* Override any gcc2 internal prototype to avoid an error.  */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 /* We use char because int might match the return type of a gcc2
16628    builtin and then its argument prototype would still apply.  */
16629 char regfree ();
16630 int
16631 main ()
16632 {
16633 regfree ();
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640   (eval $ac_link) 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag"
16648                          || test ! -s conftest.err'
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); }; } &&
16654          { ac_try='test -s conftest$ac_exeext'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660   ac_cv_search_regfree="none required"
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 fi
16666 rm -f conftest.err conftest.$ac_objext \
16667       conftest$ac_exeext conftest.$ac_ext
16668 if test "$ac_cv_search_regfree" = no; then
16669   for ac_lib in regex gnuregex; do
16670     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16671     cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677
16678 /* Override any gcc2 internal prototype to avoid an error.  */
16679 #ifdef __cplusplus
16680 extern "C"
16681 #endif
16682 /* We use char because int might match the return type of a gcc2
16683    builtin and then its argument prototype would still apply.  */
16684 char regfree ();
16685 int
16686 main ()
16687 {
16688 regfree ();
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695   (eval $ac_link) 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } &&
16702          { ac_try='test -z "$ac_c_werror_flag"
16703                          || test ! -s conftest.err'
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); }; } &&
16709          { ac_try='test -s conftest$ac_exeext'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; }; then
16715   ac_cv_search_regfree="-l$ac_lib"
16716 break
16717 else
16718   echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 fi
16722 rm -f conftest.err conftest.$ac_objext \
16723       conftest$ac_exeext conftest.$ac_ext
16724   done
16725 fi
16726 LIBS=$ac_func_search_save_LIBS
16727 fi
16728 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16729 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16730 if test "$ac_cv_search_regfree" != no; then
16731   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16732   :
16733 else
16734   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16735 echo "$as_me: error: POSIX regex required." >&2;}
16736    { (exit 1); exit 1; }; }
16737 fi
16738
16739
16740
16741 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16742 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16743 if test "${ol_cv_c_posix_regex+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746
16747         if test "$cross_compiling" = yes; then
16748   ol_cv_c_posix_regex=cross
16749 else
16750   cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756
16757 #include <sys/types.h>
16758 #include <regex.h>
16759 static char *pattern, *string;
16760 main()
16761 {
16762         int rc;
16763         regex_t re;
16764
16765         pattern = "^A";
16766
16767         if(regcomp(&re, pattern, 0)) {
16768                 return -1;
16769         }
16770
16771         string = "ALL MATCH";
16772
16773         rc = regexec(&re, string, 0, (void*)0, 0);
16774
16775         regfree(&re);
16776
16777         return rc;
16778 }
16779 _ACEOF
16780 rm -f conftest$ac_exeext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16782   (eval $ac_link) 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787   (eval $ac_try) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; }; then
16791   ol_cv_c_posix_regex=yes
16792 else
16793   echo "$as_me: program exited with status $ac_status" >&5
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16796
16797 ( exit $ac_status )
16798 ol_cv_c_posix_regex=no
16799 fi
16800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16801 fi
16802 fi
16803 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16804 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16805
16806 if test "$ol_cv_c_posix_regex" = no ; then
16807         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16808 echo "$as_me: error: broken POSIX regex!" >&2;}
16809    { (exit 1); exit 1; }; }
16810 fi
16811
16812
16813 have_uuid=no
16814
16815 for ac_header in sys/uuid.h
16816 do
16817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16819   echo "$as_me:$LINENO: checking for $ac_header" >&5
16820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 fi
16824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16826 else
16827   # Is the header compilable?
16828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836 $ac_includes_default
16837 #include <$ac_header>
16838 _ACEOF
16839 rm -f conftest.$ac_objext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841   (eval $ac_compile) 2>conftest.er1
16842   ac_status=$?
16843   grep -v '^ *+' conftest.er1 >conftest.err
16844   rm -f conftest.er1
16845   cat conftest.err >&5
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); } &&
16848          { ac_try='test -z "$ac_c_werror_flag"
16849                          || test ! -s conftest.err'
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); }; } &&
16855          { ac_try='test -s conftest.$ac_objext'
16856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857   (eval $ac_try) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   ac_header_compiler=yes
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 ac_header_compiler=no
16867 fi
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16870 echo "${ECHO_T}$ac_header_compiler" >&6
16871
16872 # Is the header present?
16873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16875 cat >conftest.$ac_ext <<_ACEOF
16876 /* confdefs.h.  */
16877 _ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h.  */
16881 #include <$ac_header>
16882 _ACEOF
16883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16885   ac_status=$?
16886   grep -v '^ *+' conftest.er1 >conftest.err
16887   rm -f conftest.er1
16888   cat conftest.err >&5
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); } >/dev/null; then
16891   if test -s conftest.err; then
16892     ac_cpp_err=$ac_c_preproc_warn_flag
16893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16894   else
16895     ac_cpp_err=
16896   fi
16897 else
16898   ac_cpp_err=yes
16899 fi
16900 if test -z "$ac_cpp_err"; then
16901   ac_header_preproc=yes
16902 else
16903   echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906   ac_header_preproc=no
16907 fi
16908 rm -f conftest.err conftest.$ac_ext
16909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16910 echo "${ECHO_T}$ac_header_preproc" >&6
16911
16912 # So?  What about this header?
16913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16914   yes:no: )
16915     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16919     ac_header_preproc=yes
16920     ;;
16921   no:yes:* )
16922     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16924     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16925 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16926     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16928     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16929 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16932     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16934     (
16935       cat <<\_ASBOX
16936 ## --------------------------------------------- ##
16937 ## Report this to <http://www.openldap.org/its/> ##
16938 ## --------------------------------------------- ##
16939 _ASBOX
16940     ) |
16941       sed "s/^/$as_me: WARNING:     /" >&2
16942     ;;
16943 esac
16944 echo "$as_me:$LINENO: checking for $ac_header" >&5
16945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16947   echo $ECHO_N "(cached) $ECHO_C" >&6
16948 else
16949   eval "$as_ac_Header=\$ac_header_preproc"
16950 fi
16951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16953
16954 fi
16955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16956   cat >>confdefs.h <<_ACEOF
16957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16958 _ACEOF
16959
16960 fi
16961
16962 done
16963
16964 if test $ac_cv_header_sys_uuid_h = yes ; then
16965         save_LIBS="$LIBS"
16966         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16967 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16968 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971   ac_func_search_save_LIBS=$LIBS
16972 ac_cv_search_uuid_to_str=no
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h.  */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h.  */
16979
16980 /* Override any gcc2 internal prototype to avoid an error.  */
16981 #ifdef __cplusplus
16982 extern "C"
16983 #endif
16984 /* We use char because int might match the return type of a gcc2
16985    builtin and then its argument prototype would still apply.  */
16986 char uuid_to_str ();
16987 int
16988 main ()
16989 {
16990 uuid_to_str ();
16991   ;
16992   return 0;
16993 }
16994 _ACEOF
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997   (eval $ac_link) 2>conftest.er1
16998   ac_status=$?
16999   grep -v '^ *+' conftest.er1 >conftest.err
17000   rm -f conftest.er1
17001   cat conftest.err >&5
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); } &&
17004          { ac_try='test -z "$ac_c_werror_flag"
17005                          || test ! -s conftest.err'
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); }; } &&
17011          { ac_try='test -s conftest$ac_exeext'
17012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013   (eval $ac_try) 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); }; }; then
17017   ac_cv_search_uuid_to_str="none required"
17018 else
17019   echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17021
17022 fi
17023 rm -f conftest.err conftest.$ac_objext \
17024       conftest$ac_exeext conftest.$ac_ext
17025 if test "$ac_cv_search_uuid_to_str" = no; then
17026   for ac_lib in uuid; do
17027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17028     cat >conftest.$ac_ext <<_ACEOF
17029 /* confdefs.h.  */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h.  */
17034
17035 /* Override any gcc2 internal prototype to avoid an error.  */
17036 #ifdef __cplusplus
17037 extern "C"
17038 #endif
17039 /* We use char because int might match the return type of a gcc2
17040    builtin and then its argument prototype would still apply.  */
17041 char uuid_to_str ();
17042 int
17043 main ()
17044 {
17045 uuid_to_str ();
17046   ;
17047   return 0;
17048 }
17049 _ACEOF
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052   (eval $ac_link) 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag"
17060                          || test ! -s conftest.err'
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); }; } &&
17066          { ac_try='test -s conftest$ac_exeext'
17067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068   (eval $ac_try) 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   ac_cv_search_uuid_to_str="-l$ac_lib"
17073 break
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 fi
17079 rm -f conftest.err conftest.$ac_objext \
17080       conftest$ac_exeext conftest.$ac_ext
17081   done
17082 fi
17083 LIBS=$ac_func_search_save_LIBS
17084 fi
17085 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17086 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17087 if test "$ac_cv_search_uuid_to_str" != no; then
17088   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17089   have_uuid=yes
17090 else
17091   :
17092 fi
17093
17094         LIBS="$save_LIBS"
17095
17096         if test have_uuid = yes ; then
17097
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_UUID_TO_STR 1
17100 _ACEOF
17101
17102
17103                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17104                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17105         fi
17106 fi
17107
17108 if test $have_uuid = no ; then
17109         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17110 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17111         save_LIBS="$LIBS"
17112         LIBS="$LIBS -lrpcrt4"
17113         cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119
17120                 int __stdcall UuidCreate(void *);
17121                 int __stdcall UuidToStringA(void *,void **);
17122
17123 int
17124 main ()
17125 {
17126
17127                 UuidCreate(0);
17128                 UuidToStringA(0,0);
17129
17130   ;
17131   return 0;
17132 }
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136   (eval $ac_link) 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } &&
17143          { ac_try='test -z "$ac_c_werror_flag"
17144                          || test ! -s conftest.err'
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); }; } &&
17150          { ac_try='test -s conftest$ac_exeext'
17151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152   (eval $ac_try) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   need_rpcrt=yes
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161 need_rpcrt=no
17162 fi
17163 rm -f conftest.err conftest.$ac_objext \
17164       conftest$ac_exeext conftest.$ac_ext
17165         if test $need_rpcrt = yes; then
17166                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17167         fi
17168         LIBS="$save_LIBS"
17169         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17170 echo "${ECHO_T}$need_rpcrt" >&6
17171 fi
17172
17173 ol_cv_lib_resolver=no
17174 if test $ol_cv_lib_resolver = no ; then
17175         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17176 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17177 if test "${ol_cv_resolver_none+set}" = set; then
17178   echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180
17181         ol_RESOLVER_LIB=
17182         ol_LIBS=$LIBS
17183         LIBS="$ol_RESOLVER_LIB $LIBS"
17184
17185         cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h.  */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h.  */
17191
17192 #ifdef HAVE_SYS_TYPES_H
17193 #       include <sys/types.h>
17194 #endif
17195 #include <netinet/in.h>
17196 #ifdef HAVE_ARPA_NAMESER_H
17197 #       include <arpa/nameser.h>
17198 #endif
17199 #ifdef HAVE_RESOLV_H
17200 #       include <resolv.h>
17201 #endif
17202
17203 int
17204 main ()
17205 {
17206 {
17207         int len, status;
17208         char *request = NULL;
17209         unsigned char reply[64*1024];
17210         unsigned char host[64*1024];
17211         unsigned char *p;
17212
17213 #ifdef NS_HFIXEDSZ
17214         /* Bind 8/9 interface */
17215         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17216 #else
17217         /* Bind 4 interface */
17218 # ifndef T_SRV
17219 #  define T_SRV 33
17220 # endif
17221         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17222 #endif
17223         p = reply;
17224 #ifdef NS_HFIXEDSZ
17225         /* Bind 8/9 interface */
17226         p += NS_HFIXEDSZ;
17227 #elif defined(HFIXEDSZ)
17228         /* Bind 4 interface w/ HFIXEDSZ */
17229         p += HFIXEDSZ;
17230 #else
17231         /* Bind 4 interface w/o HFIXEDSZ */
17232         p += sizeof(HEADER);
17233 #endif
17234         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17235 }
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242   (eval $ac_link) 2>conftest.er1
17243   ac_status=$?
17244   grep -v '^ *+' conftest.er1 >conftest.err
17245   rm -f conftest.er1
17246   cat conftest.err >&5
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); } &&
17249          { ac_try='test -z "$ac_c_werror_flag"
17250                          || test ! -s conftest.err'
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); }; } &&
17256          { ac_try='test -s conftest$ac_exeext'
17257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258   (eval $ac_try) 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; }; then
17262   ol_cv_resolver_none=yes
17263 else
17264   echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 ol_cv_resolver_none=no
17268 fi
17269 rm -f conftest.err conftest.$ac_objext \
17270       conftest$ac_exeext conftest.$ac_ext
17271
17272         LIBS="$ol_LIBS"
17273
17274 fi
17275 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17276 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17277
17278         if test $ol_cv_resolver_none = yes ; then
17279                 ol_cv_lib_resolver=yes
17280         fi
17281 fi
17282
17283 if test $ol_cv_lib_resolver = no ; then
17284         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17285 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17286 if test "${ol_cv_resolver_resolv+set}" = set; then
17287   echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289
17290         ol_RESOLVER_LIB=-lresolv
17291         ol_LIBS=$LIBS
17292         LIBS="$ol_RESOLVER_LIB $LIBS"
17293
17294         cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300
17301 #ifdef HAVE_SYS_TYPES_H
17302 #       include <sys/types.h>
17303 #endif
17304 #include <netinet/in.h>
17305 #ifdef HAVE_ARPA_NAMESER_H
17306 #       include <arpa/nameser.h>
17307 #endif
17308 #ifdef HAVE_RESOLV_H
17309 #       include <resolv.h>
17310 #endif
17311
17312 int
17313 main ()
17314 {
17315 {
17316         int len, status;
17317         char *request = NULL;
17318         unsigned char reply[64*1024];
17319         unsigned char host[64*1024];
17320         unsigned char *p;
17321
17322 #ifdef NS_HFIXEDSZ
17323         /* Bind 8/9 interface */
17324         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17325 #else
17326         /* Bind 4 interface */
17327 # ifndef T_SRV
17328 #  define T_SRV 33
17329 # endif
17330         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17331 #endif
17332         p = reply;
17333 #ifdef NS_HFIXEDSZ
17334         /* Bind 8/9 interface */
17335         p += NS_HFIXEDSZ;
17336 #elif defined(HFIXEDSZ)
17337         /* Bind 4 interface w/ HFIXEDSZ */
17338         p += HFIXEDSZ;
17339 #else
17340         /* Bind 4 interface w/o HFIXEDSZ */
17341         p += sizeof(HEADER);
17342 #endif
17343         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17344 }
17345   ;
17346   return 0;
17347 }
17348 _ACEOF
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351   (eval $ac_link) 2>conftest.er1
17352   ac_status=$?
17353   grep -v '^ *+' conftest.er1 >conftest.err
17354   rm -f conftest.er1
17355   cat conftest.err >&5
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); } &&
17358          { ac_try='test -z "$ac_c_werror_flag"
17359                          || test ! -s conftest.err'
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); }; } &&
17365          { ac_try='test -s conftest$ac_exeext'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; }; then
17371   ol_cv_resolver_resolv=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376 ol_cv_resolver_resolv=no
17377 fi
17378 rm -f conftest.err conftest.$ac_objext \
17379       conftest$ac_exeext conftest.$ac_ext
17380
17381         LIBS="$ol_LIBS"
17382
17383 fi
17384 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17385 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17386
17387         if test $ol_cv_resolver_resolv = yes ; then
17388                 ol_cv_lib_resolver=-lresolv
17389         fi
17390 fi
17391
17392 if test $ol_cv_lib_resolver = no ; then
17393         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17394 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17395 if test "${ol_cv_resolver_bind+set}" = set; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398
17399         ol_RESOLVER_LIB=-lbind
17400         ol_LIBS=$LIBS
17401         LIBS="$ol_RESOLVER_LIB $LIBS"
17402
17403         cat >conftest.$ac_ext <<_ACEOF
17404 /* confdefs.h.  */
17405 _ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h.  */
17409
17410 #ifdef HAVE_SYS_TYPES_H
17411 #       include <sys/types.h>
17412 #endif
17413 #include <netinet/in.h>
17414 #ifdef HAVE_ARPA_NAMESER_H
17415 #       include <arpa/nameser.h>
17416 #endif
17417 #ifdef HAVE_RESOLV_H
17418 #       include <resolv.h>
17419 #endif
17420
17421 int
17422 main ()
17423 {
17424 {
17425         int len, status;
17426         char *request = NULL;
17427         unsigned char reply[64*1024];
17428         unsigned char host[64*1024];
17429         unsigned char *p;
17430
17431 #ifdef NS_HFIXEDSZ
17432         /* Bind 8/9 interface */
17433         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17434 #else
17435         /* Bind 4 interface */
17436 # ifndef T_SRV
17437 #  define T_SRV 33
17438 # endif
17439         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17440 #endif
17441         p = reply;
17442 #ifdef NS_HFIXEDSZ
17443         /* Bind 8/9 interface */
17444         p += NS_HFIXEDSZ;
17445 #elif defined(HFIXEDSZ)
17446         /* Bind 4 interface w/ HFIXEDSZ */
17447         p += HFIXEDSZ;
17448 #else
17449         /* Bind 4 interface w/o HFIXEDSZ */
17450         p += sizeof(HEADER);
17451 #endif
17452         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17453 }
17454   ;
17455   return 0;
17456 }
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460   (eval $ac_link) 2>conftest.er1
17461   ac_status=$?
17462   grep -v '^ *+' conftest.er1 >conftest.err
17463   rm -f conftest.er1
17464   cat conftest.err >&5
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); } &&
17467          { ac_try='test -z "$ac_c_werror_flag"
17468                          || test ! -s conftest.err'
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); }; } &&
17474          { ac_try='test -s conftest$ac_exeext'
17475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476   (eval $ac_try) 2>&5
17477   ac_status=$?
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); }; }; then
17480   ol_cv_resolver_bind=yes
17481 else
17482   echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 ol_cv_resolver_bind=no
17486 fi
17487 rm -f conftest.err conftest.$ac_objext \
17488       conftest$ac_exeext conftest.$ac_ext
17489
17490         LIBS="$ol_LIBS"
17491
17492 fi
17493 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17494 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17495
17496         if test $ol_cv_resolver_bind = yes ; then
17497                 ol_cv_lib_resolver=-lbind
17498         fi
17499 fi
17500
17501
17502
17503 ol_link_dnssrv=no
17504 if test "$ol_cv_lib_resolver" != no ; then
17505
17506 cat >>confdefs.h <<\_ACEOF
17507 #define HAVE_RES_QUERY 1
17508 _ACEOF
17509
17510
17511         if test "$ol_enable_dnssrv" != no ; then
17512                 ol_link_dnssrv=yes
17513         fi
17514
17515         if test "$ol_cv_lib_resolver" != yes ; then
17516                 LIBS="$ol_cv_lib_resolver $LIBS"
17517         fi
17518 fi
17519
17520 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17521         if test "$ol_link_dnssrv" = no ; then
17522                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17523 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17524    { (exit 1); exit 1; }; }
17525         fi
17526 else
17527         ol_enable_dnssrv=no
17528 fi
17529
17530
17531 for ac_func in hstrerror
17532 do
17533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17534 echo "$as_me:$LINENO: checking for $ac_func" >&5
17535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17536 if eval "test \"\${$as_ac_var+set}\" = set"; then
17537   echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539   cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h.  */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h.  */
17545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17547 #define $ac_func innocuous_$ac_func
17548
17549 /* System header to define __stub macros and hopefully few prototypes,
17550     which can conflict with char $ac_func (); below.
17551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552     <limits.h> exists even on freestanding compilers.  */
17553
17554 #ifdef __STDC__
17555 # include <limits.h>
17556 #else
17557 # include <assert.h>
17558 #endif
17559
17560 #undef $ac_func
17561
17562 /* Override any gcc2 internal prototype to avoid an error.  */
17563 #ifdef __cplusplus
17564 extern "C"
17565 {
17566 #endif
17567 /* We use char because int might match the return type of a gcc2
17568    builtin and then its argument prototype would still apply.  */
17569 char $ac_func ();
17570 /* The GNU C library defines this for functions which it implements
17571     to always fail with ENOSYS.  Some functions are actually named
17572     something starting with __ and the normal name is an alias.  */
17573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17574 choke me
17575 #else
17576 char (*f) () = $ac_func;
17577 #endif
17578 #ifdef __cplusplus
17579 }
17580 #endif
17581
17582 int
17583 main ()
17584 {
17585 return f != $ac_func;
17586   ;
17587   return 0;
17588 }
17589 _ACEOF
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592   (eval $ac_link) 2>conftest.er1
17593   ac_status=$?
17594   grep -v '^ *+' conftest.er1 >conftest.err
17595   rm -f conftest.er1
17596   cat conftest.err >&5
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); } &&
17599          { ac_try='test -z "$ac_c_werror_flag"
17600                          || test ! -s conftest.err'
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); }; } &&
17606          { ac_try='test -s conftest$ac_exeext'
17607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608   (eval $ac_try) 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; }; then
17612   eval "$as_ac_var=yes"
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617 eval "$as_ac_var=no"
17618 fi
17619 rm -f conftest.err conftest.$ac_objext \
17620       conftest$ac_exeext conftest.$ac_ext
17621 fi
17622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17624 if test `eval echo '${'$as_ac_var'}'` = yes; then
17625   cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17627 _ACEOF
17628
17629 fi
17630 done
17631
17632
17633
17634
17635
17636
17637 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17638 do
17639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17640 echo "$as_me:$LINENO: checking for $ac_func" >&5
17641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17642 if eval "test \"\${$as_ac_var+set}\" = set"; then
17643   echo $ECHO_N "(cached) $ECHO_C" >&6
17644 else
17645   cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17653 #define $ac_func innocuous_$ac_func
17654
17655 /* System header to define __stub macros and hopefully few prototypes,
17656     which can conflict with char $ac_func (); below.
17657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658     <limits.h> exists even on freestanding compilers.  */
17659
17660 #ifdef __STDC__
17661 # include <limits.h>
17662 #else
17663 # include <assert.h>
17664 #endif
17665
17666 #undef $ac_func
17667
17668 /* Override any gcc2 internal prototype to avoid an error.  */
17669 #ifdef __cplusplus
17670 extern "C"
17671 {
17672 #endif
17673 /* We use char because int might match the return type of a gcc2
17674    builtin and then its argument prototype would still apply.  */
17675 char $ac_func ();
17676 /* The GNU C library defines this for functions which it implements
17677     to always fail with ENOSYS.  Some functions are actually named
17678     something starting with __ and the normal name is an alias.  */
17679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17680 choke me
17681 #else
17682 char (*f) () = $ac_func;
17683 #endif
17684 #ifdef __cplusplus
17685 }
17686 #endif
17687
17688 int
17689 main ()
17690 {
17691 return f != $ac_func;
17692   ;
17693   return 0;
17694 }
17695 _ACEOF
17696 rm -f conftest.$ac_objext conftest$ac_exeext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17698   (eval $ac_link) 2>conftest.er1
17699   ac_status=$?
17700   grep -v '^ *+' conftest.er1 >conftest.err
17701   rm -f conftest.er1
17702   cat conftest.err >&5
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } &&
17705          { ac_try='test -z "$ac_c_werror_flag"
17706                          || test ! -s conftest.err'
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); }; } &&
17712          { ac_try='test -s conftest$ac_exeext'
17713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714   (eval $ac_try) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); }; }; then
17718   eval "$as_ac_var=yes"
17719 else
17720   echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 eval "$as_ac_var=no"
17724 fi
17725 rm -f conftest.err conftest.$ac_objext \
17726       conftest$ac_exeext conftest.$ac_ext
17727 fi
17728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17730 if test `eval echo '${'$as_ac_var'}'` = yes; then
17731   cat >>confdefs.h <<_ACEOF
17732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17733 _ACEOF
17734
17735 fi
17736 done
17737
17738
17739 ol_link_ipv6=no
17740 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17741         if test $ol_enable_ipv6 = yes ; then
17742                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17743 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17744    { (exit 1); exit 1; }; }
17745         fi
17746 elif test $ol_enable_ipv6 != no ; then
17747         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17748 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17749 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17750   echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752
17753                 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 #                       include <netinet/in.h>
17761 #                       ifdef INET6_ADDRSTRLEN
17762                                 __has_inet6_addrstrlen__;
17763 #                       endif
17764
17765 _ACEOF
17766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17767   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17768   ol_cv_inet6_addrstrlen=yes
17769 else
17770   ol_cv_inet6_addrstrlen=no
17771 fi
17772 rm -f conftest*
17773
17774 fi
17775 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17776 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17777
17778
17779         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17780 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17781 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784
17785                 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h.  */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h.  */
17791
17792 #include <sys/types.h>
17793 #include <sys/socket.h>
17794
17795 int
17796 main ()
17797 {
17798
17799                         struct sockaddr_storage ss;
17800
17801   ;
17802   return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807   (eval $ac_compile) 2>conftest.er1
17808   ac_status=$?
17809   grep -v '^ *+' conftest.er1 >conftest.err
17810   rm -f conftest.er1
17811   cat conftest.err >&5
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); } &&
17814          { ac_try='test -z "$ac_c_werror_flag"
17815                          || test ! -s conftest.err'
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); }; } &&
17821          { ac_try='test -s conftest.$ac_objext'
17822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823   (eval $ac_try) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; }; then
17827   ol_cv_struct_sockaddr_storage=yes
17828 else
17829   echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 ol_cv_struct_sockaddr_storage=no
17833 fi
17834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17835 fi
17836 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17837 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17838
17839         if test $ol_cv_inet6_addrstrlen = yes &&
17840            test $ol_cv_struct_sockaddr_storage = yes ; then
17841                 ol_link_ipv6=yes
17842         elif test $ol_enable_ipv6 = yes &&
17843              test $ol_cv_inet6_addrstrlen = no ; then
17844                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17845 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17846    { (exit 1); exit 1; }; }
17847         elif test $ol_enable_ipv6 = yes &&
17848              test $ol_cv_struct_sockaddr_storage = no ; then
17849                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17850 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17851    { (exit 1); exit 1; }; }
17852         fi
17853 fi
17854
17855 if test $ol_enable_local != no ; then
17856
17857 for ac_header in sys/un.h
17858 do
17859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17861   echo "$as_me:$LINENO: checking for $ac_header" >&5
17862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 fi
17866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17868 else
17869   # Is the header compilable?
17870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17872 cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h.  */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h.  */
17878 $ac_includes_default
17879 #include <$ac_header>
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883   (eval $ac_compile) 2>conftest.er1
17884   ac_status=$?
17885   grep -v '^ *+' conftest.er1 >conftest.err
17886   rm -f conftest.er1
17887   cat conftest.err >&5
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } &&
17890          { ac_try='test -z "$ac_c_werror_flag"
17891                          || test ! -s conftest.err'
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); }; } &&
17897          { ac_try='test -s conftest.$ac_objext'
17898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899   (eval $ac_try) 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; }; then
17903   ac_header_compiler=yes
17904 else
17905   echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908 ac_header_compiler=no
17909 fi
17910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6
17913
17914 # Is the header present?
17915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923 #include <$ac_header>
17924 _ACEOF
17925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17927   ac_status=$?
17928   grep -v '^ *+' conftest.er1 >conftest.err
17929   rm -f conftest.er1
17930   cat conftest.err >&5
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); } >/dev/null; then
17933   if test -s conftest.err; then
17934     ac_cpp_err=$ac_c_preproc_warn_flag
17935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17936   else
17937     ac_cpp_err=
17938   fi
17939 else
17940   ac_cpp_err=yes
17941 fi
17942 if test -z "$ac_cpp_err"; then
17943   ac_header_preproc=yes
17944 else
17945   echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17947
17948   ac_header_preproc=no
17949 fi
17950 rm -f conftest.err conftest.$ac_ext
17951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17952 echo "${ECHO_T}$ac_header_preproc" >&6
17953
17954 # So?  What about this header?
17955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17956   yes:no: )
17957     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17961     ac_header_preproc=yes
17962     ;;
17963   no:yes:* )
17964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17966     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17967 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17968     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17970     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17971 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17974     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17976     (
17977       cat <<\_ASBOX
17978 ## --------------------------------------------- ##
17979 ## Report this to <http://www.openldap.org/its/> ##
17980 ## --------------------------------------------- ##
17981 _ASBOX
17982     ) |
17983       sed "s/^/$as_me: WARNING:     /" >&2
17984     ;;
17985 esac
17986 echo "$as_me:$LINENO: checking for $ac_header" >&5
17987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17989   echo $ECHO_N "(cached) $ECHO_C" >&6
17990 else
17991   eval "$as_ac_Header=\$ac_header_preproc"
17992 fi
17993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17995
17996 fi
17997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17998   cat >>confdefs.h <<_ACEOF
17999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18000 _ACEOF
18001
18002 fi
18003
18004 done
18005
18006
18007         if test $ol_enable_local = auto ; then
18008                 ol_enable_local=$ac_cv_header_sys_un_h
18009         elif test $ac_cv_header_sys_un_h = no ; then
18010                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18011 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18012    { (exit 1); exit 1; }; }
18013         fi
18014 fi
18015
18016 ol_link_kbind=no
18017 ol_link_krb5=no
18018 ol_link_krb4=no
18019
18020 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18021
18022
18023 for ac_header in krb5.h
18024 do
18025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027   echo "$as_me:$LINENO: checking for $ac_header" >&5
18028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18030   echo $ECHO_N "(cached) $ECHO_C" >&6
18031 fi
18032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18034 else
18035   # Is the header compilable?
18036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h.  */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h.  */
18044 $ac_includes_default
18045 #include <$ac_header>
18046 _ACEOF
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049   (eval $ac_compile) 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } &&
18056          { ac_try='test -z "$ac_c_werror_flag"
18057                          || test ! -s conftest.err'
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); }; } &&
18063          { ac_try='test -s conftest.$ac_objext'
18064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065   (eval $ac_try) 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; }; then
18069   ac_header_compiler=yes
18070 else
18071   echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_header_compiler=no
18075 fi
18076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6
18079
18080 # Is the header present?
18081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h.  */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h.  */
18089 #include <$ac_header>
18090 _ACEOF
18091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } >/dev/null; then
18099   if test -s conftest.err; then
18100     ac_cpp_err=$ac_c_preproc_warn_flag
18101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18102   else
18103     ac_cpp_err=
18104   fi
18105 else
18106   ac_cpp_err=yes
18107 fi
18108 if test -z "$ac_cpp_err"; then
18109   ac_header_preproc=yes
18110 else
18111   echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114   ac_header_preproc=no
18115 fi
18116 rm -f conftest.err conftest.$ac_ext
18117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118 echo "${ECHO_T}$ac_header_preproc" >&6
18119
18120 # So?  What about this header?
18121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18122   yes:no: )
18123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18127     ac_header_preproc=yes
18128     ;;
18129   no:yes:* )
18130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18142     (
18143       cat <<\_ASBOX
18144 ## --------------------------------------------- ##
18145 ## Report this to <http://www.openldap.org/its/> ##
18146 ## --------------------------------------------- ##
18147 _ASBOX
18148     ) |
18149       sed "s/^/$as_me: WARNING:     /" >&2
18150     ;;
18151 esac
18152 echo "$as_me:$LINENO: checking for $ac_header" >&5
18153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18155   echo $ECHO_N "(cached) $ECHO_C" >&6
18156 else
18157   eval "$as_ac_Header=\$ac_header_preproc"
18158 fi
18159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18161
18162 fi
18163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18164   cat >>confdefs.h <<_ACEOF
18165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18166 _ACEOF
18167
18168 fi
18169
18170 done
18171
18172
18173         if test $ac_cv_header_krb5_h = yes ; then
18174
18175 for ac_header in heim_err.h
18176 do
18177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18179   echo "$as_me:$LINENO: checking for $ac_header" >&5
18180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 fi
18184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18186 else
18187   # Is the header compilable?
18188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196 $ac_includes_default
18197 #include <$ac_header>
18198 _ACEOF
18199 rm -f conftest.$ac_objext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18201   (eval $ac_compile) 2>conftest.er1
18202   ac_status=$?
18203   grep -v '^ *+' conftest.er1 >conftest.err
18204   rm -f conftest.er1
18205   cat conftest.err >&5
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); } &&
18208          { ac_try='test -z "$ac_c_werror_flag"
18209                          || test ! -s conftest.err'
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); }; } &&
18215          { ac_try='test -s conftest.$ac_objext'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; }; then
18221   ac_header_compiler=yes
18222 else
18223   echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 ac_header_compiler=no
18227 fi
18228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18230 echo "${ECHO_T}$ac_header_compiler" >&6
18231
18232 # Is the header present?
18233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18235 cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h.  */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h.  */
18241 #include <$ac_header>
18242 _ACEOF
18243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18245   ac_status=$?
18246   grep -v '^ *+' conftest.er1 >conftest.err
18247   rm -f conftest.er1
18248   cat conftest.err >&5
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); } >/dev/null; then
18251   if test -s conftest.err; then
18252     ac_cpp_err=$ac_c_preproc_warn_flag
18253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18254   else
18255     ac_cpp_err=
18256   fi
18257 else
18258   ac_cpp_err=yes
18259 fi
18260 if test -z "$ac_cpp_err"; then
18261   ac_header_preproc=yes
18262 else
18263   echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266   ac_header_preproc=no
18267 fi
18268 rm -f conftest.err conftest.$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18270 echo "${ECHO_T}$ac_header_preproc" >&6
18271
18272 # So?  What about this header?
18273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18274   yes:no: )
18275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18279     ac_header_preproc=yes
18280     ;;
18281   no:yes:* )
18282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18294     (
18295       cat <<\_ASBOX
18296 ## --------------------------------------------- ##
18297 ## Report this to <http://www.openldap.org/its/> ##
18298 ## --------------------------------------------- ##
18299 _ASBOX
18300     ) |
18301       sed "s/^/$as_me: WARNING:     /" >&2
18302     ;;
18303 esac
18304 echo "$as_me:$LINENO: checking for $ac_header" >&5
18305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18307   echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309   eval "$as_ac_Header=\$ac_header_preproc"
18310 fi
18311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18313
18314 fi
18315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18316   cat >>confdefs.h <<_ACEOF
18317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18318 _ACEOF
18319
18320 fi
18321
18322 done
18323
18324                 if test $ac_cv_header_heim_err_h = yes ; then
18325                         krb5_impl=heimdal
18326                 else
18327                         krb5_impl=mit
18328                 fi
18329
18330                 if test $krb5_impl = mit; then
18331                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18332 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18333 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18334   echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336   ac_check_lib_save_LIBS=$LIBS
18337 LIBS="-lk5crypto  $LIBS"
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344
18345
18346 int
18347 main ()
18348 {
18349 main ();
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356   (eval $ac_link) 2>conftest.er1
18357   ac_status=$?
18358   grep -v '^ *+' conftest.er1 >conftest.err
18359   rm -f conftest.er1
18360   cat conftest.err >&5
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); } &&
18363          { ac_try='test -z "$ac_c_werror_flag"
18364                          || test ! -s conftest.err'
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); }; } &&
18370          { ac_try='test -s conftest$ac_exeext'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_cv_lib_k5crypto_main=yes
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381 ac_cv_lib_k5crypto_main=no
18382 fi
18383 rm -f conftest.err conftest.$ac_objext \
18384       conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18386 fi
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18388 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18389 if test $ac_cv_lib_k5crypto_main = yes; then
18390   krb5crypto=k5crypto
18391 else
18392   krb5crypto=crypto
18393 fi
18394
18395
18396                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18397 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18398 if test "${ac_cv_lib_krb5_main+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401   ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18403 cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409
18410
18411 int
18412 main ()
18413 {
18414 main ();
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421   (eval $ac_link) 2>conftest.er1
18422   ac_status=$?
18423   grep -v '^ *+' conftest.er1 >conftest.err
18424   rm -f conftest.er1
18425   cat conftest.err >&5
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); } &&
18428          { ac_try='test -z "$ac_c_werror_flag"
18429                          || test ! -s conftest.err'
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); }; } &&
18435          { ac_try='test -s conftest$ac_exeext'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; }; then
18441   ac_cv_lib_krb5_main=yes
18442 else
18443   echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18445
18446 ac_cv_lib_krb5_main=no
18447 fi
18448 rm -f conftest.err conftest.$ac_objext \
18449       conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18451 fi
18452 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18453 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18454 if test $ac_cv_lib_krb5_main = yes; then
18455   have_krb5=yes
18456                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18457 else
18458   have_krb5=no
18459 fi
18460
18461
18462                 elif test $krb5_impl = heimdal; then
18463                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18464 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18465 if test "${ac_cv_lib_des_main+set}" = set; then
18466   echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468   ac_check_lib_save_LIBS=$LIBS
18469 LIBS="-ldes  $LIBS"
18470 cat >conftest.$ac_ext <<_ACEOF
18471 /* confdefs.h.  */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h.  */
18476
18477
18478 int
18479 main ()
18480 {
18481 main ();
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18488   (eval $ac_link) 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } &&
18495          { ac_try='test -z "$ac_c_werror_flag"
18496                          || test ! -s conftest.err'
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); }; } &&
18502          { ac_try='test -s conftest$ac_exeext'
18503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504   (eval $ac_try) 2>&5
18505   ac_status=$?
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); }; }; then
18508   ac_cv_lib_des_main=yes
18509 else
18510   echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18512
18513 ac_cv_lib_des_main=no
18514 fi
18515 rm -f conftest.err conftest.$ac_objext \
18516       conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18518 fi
18519 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18520 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18521 if test $ac_cv_lib_des_main = yes; then
18522   krb5crypto=des
18523 else
18524   krb5crypto=crypto
18525 fi
18526
18527
18528                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18529 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18530 if test "${ac_cv_lib_krb5_main+set}" = set; then
18531   echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533   ac_check_lib_save_LIBS=$LIBS
18534 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h.  */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h.  */
18541
18542
18543 int
18544 main ()
18545 {
18546 main ();
18547   ;
18548   return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553   (eval $ac_link) 2>conftest.er1
18554   ac_status=$?
18555   grep -v '^ *+' conftest.er1 >conftest.err
18556   rm -f conftest.er1
18557   cat conftest.err >&5
18558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559   (exit $ac_status); } &&
18560          { ac_try='test -z "$ac_c_werror_flag"
18561                          || test ! -s conftest.err'
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); }; } &&
18567          { ac_try='test -s conftest$ac_exeext'
18568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569   (eval $ac_try) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; }; then
18573   ac_cv_lib_krb5_main=yes
18574 else
18575   echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 ac_cv_lib_krb5_main=no
18579 fi
18580 rm -f conftest.err conftest.$ac_objext \
18581       conftest$ac_exeext conftest.$ac_ext
18582 LIBS=$ac_check_lib_save_LIBS
18583 fi
18584 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18585 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18586 if test $ac_cv_lib_krb5_main = yes; then
18587   have_krb5=yes
18588                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18589 else
18590   have_krb5=no
18591 fi
18592
18593
18594
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE_HEIMDAL_KERBEROS 1
18597 _ACEOF
18598
18599
18600                 else
18601                         have_krb5=no
18602                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18603 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18604                 fi
18605
18606                 if test $have_krb5 = yes ; then
18607                         ol_link_krb5=yes
18608
18609
18610 cat >>confdefs.h <<\_ACEOF
18611 #define HAVE_KRB5 1
18612 _ACEOF
18613
18614
18615                         if test $ol_with_kerberos = k5only ; then
18616                                 ol_with_kerberos=found
18617                         fi
18618
18619                 elif test $ol_with_kerberos != auto ; then
18620                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18621 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18622    { (exit 1); exit 1; }; }
18623                 fi
18624
18625         fi
18626         ;;
18627 esac
18628
18629 if test $ol_link_krb5 = yes &&
18630    { test $ol_with_kerberos = yes ||
18631      test $ol_with_kerberos = auto ||
18632      test $ol_with_kerberos = k425; }; then
18633
18634
18635
18636 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18637 do
18638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18640   echo "$as_me:$LINENO: checking for $ac_header" >&5
18641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18643   echo $ECHO_N "(cached) $ECHO_C" >&6
18644 fi
18645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18647 else
18648   # Is the header compilable?
18649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657 $ac_includes_default
18658 #include <$ac_header>
18659 _ACEOF
18660 rm -f conftest.$ac_objext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662   (eval $ac_compile) 2>conftest.er1
18663   ac_status=$?
18664   grep -v '^ *+' conftest.er1 >conftest.err
18665   rm -f conftest.er1
18666   cat conftest.err >&5
18667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668   (exit $ac_status); } &&
18669          { ac_try='test -z "$ac_c_werror_flag"
18670                          || test ! -s conftest.err'
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); }; } &&
18676          { ac_try='test -s conftest.$ac_objext'
18677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678   (eval $ac_try) 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; }; then
18682   ac_header_compiler=yes
18683 else
18684   echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18686
18687 ac_header_compiler=no
18688 fi
18689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18691 echo "${ECHO_T}$ac_header_compiler" >&6
18692
18693 # Is the header present?
18694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702 #include <$ac_header>
18703 _ACEOF
18704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18706   ac_status=$?
18707   grep -v '^ *+' conftest.er1 >conftest.err
18708   rm -f conftest.er1
18709   cat conftest.err >&5
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); } >/dev/null; then
18712   if test -s conftest.err; then
18713     ac_cpp_err=$ac_c_preproc_warn_flag
18714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18715   else
18716     ac_cpp_err=
18717   fi
18718 else
18719   ac_cpp_err=yes
18720 fi
18721 if test -z "$ac_cpp_err"; then
18722   ac_header_preproc=yes
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727   ac_header_preproc=no
18728 fi
18729 rm -f conftest.err conftest.$ac_ext
18730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18731 echo "${ECHO_T}$ac_header_preproc" >&6
18732
18733 # So?  What about this header?
18734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18735   yes:no: )
18736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18740     ac_header_preproc=yes
18741     ;;
18742   no:yes:* )
18743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18755     (
18756       cat <<\_ASBOX
18757 ## --------------------------------------------- ##
18758 ## Report this to <http://www.openldap.org/its/> ##
18759 ## --------------------------------------------- ##
18760 _ASBOX
18761     ) |
18762       sed "s/^/$as_me: WARNING:     /" >&2
18763     ;;
18764 esac
18765 echo "$as_me:$LINENO: checking for $ac_header" >&5
18766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18768   echo $ECHO_N "(cached) $ECHO_C" >&6
18769 else
18770   eval "$as_ac_Header=\$ac_header_preproc"
18771 fi
18772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18774
18775 fi
18776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18777   cat >>confdefs.h <<_ACEOF
18778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18779 _ACEOF
18780
18781 fi
18782
18783 done
18784
18785
18786         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18787                 if test $krb5_impl = mit; then
18788                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18789 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18790 if test "${ac_cv_lib_krb4_main+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h.  */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h.  */
18801
18802
18803 int
18804 main ()
18805 {
18806 main ();
18807   ;
18808   return 0;
18809 }
18810 _ACEOF
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813   (eval $ac_link) 2>conftest.er1
18814   ac_status=$?
18815   grep -v '^ *+' conftest.er1 >conftest.err
18816   rm -f conftest.er1
18817   cat conftest.err >&5
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); } &&
18820          { ac_try='test -z "$ac_c_werror_flag"
18821                          || test ! -s conftest.err'
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); }; } &&
18827          { ac_try='test -s conftest$ac_exeext'
18828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829   (eval $ac_try) 2>&5
18830   ac_status=$?
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); }; }; then
18833   ac_cv_lib_krb4_main=yes
18834 else
18835   echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838 ac_cv_lib_krb4_main=no
18839 fi
18840 rm -f conftest.err conftest.$ac_objext \
18841       conftest$ac_exeext conftest.$ac_ext
18842 LIBS=$ac_check_lib_save_LIBS
18843 fi
18844 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18845 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18846 if test $ac_cv_lib_krb4_main = yes; then
18847   have_k425=yes
18848                                 KRB4_LIBS="-lkrb4 -ldes425"
18849 else
18850   have_k425=no
18851 fi
18852
18853
18854                 elif test $krb5_impl = heimdal; then
18855                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18856 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18857 if test "${ac_cv_lib_krb4_main+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   ac_check_lib_save_LIBS=$LIBS
18861 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h.  */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h.  */
18868
18869
18870 int
18871 main ()
18872 {
18873 main ();
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880   (eval $ac_link) 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } &&
18887          { ac_try='test -z "$ac_c_werror_flag"
18888                          || test ! -s conftest.err'
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); }; } &&
18894          { ac_try='test -s conftest$ac_exeext'
18895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896   (eval $ac_try) 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; }; then
18900   ac_cv_lib_krb4_main=yes
18901 else
18902   echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ac_cv_lib_krb4_main=no
18906 fi
18907 rm -f conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18910 fi
18911 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18912 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18913 if test $ac_cv_lib_krb4_main = yes; then
18914   have_k425=yes
18915                                 KRB4_LIBS="-lkrb4"
18916 else
18917   have_k425=no
18918 fi
18919
18920
18921                 else
18922                         have_425=no
18923                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18924 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18925                 fi
18926
18927                 if test $have_k425 = yes ; then
18928                         ol_with_kerberos=found
18929                         ol_link_krb4=yes
18930
18931
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE_KRB425 1
18934 _ACEOF
18935
18936
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_KRB4 1
18939 _ACEOF
18940
18941
18942                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18943 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18944 if test "${ol_cv_var_des_debug+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947
18948                                                                 save_LIBS="$LIBS"
18949                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18950                                 cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956
18957 #include <kerberosIV/krb.h>
18958 #include <kerberosIV/des.h>
18959 extern int des_debug;
18960
18961 int
18962 main ()
18963 {
18964
18965 des_debug = 1;
18966
18967   ;
18968   return 0;
18969 }
18970 _ACEOF
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973   (eval $ac_link) 2>conftest.er1
18974   ac_status=$?
18975   grep -v '^ *+' conftest.er1 >conftest.err
18976   rm -f conftest.er1
18977   cat conftest.err >&5
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); } &&
18980          { ac_try='test -z "$ac_c_werror_flag"
18981                          || test ! -s conftest.err'
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); }; } &&
18987          { ac_try='test -s conftest$ac_exeext'
18988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989   (eval $ac_try) 2>&5
18990   ac_status=$?
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); }; }; then
18993   ol_cv_var_des_debug=yes
18994 else
18995   echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998 ol_cv_var_des_debug=no
18999 fi
19000 rm -f conftest.err conftest.$ac_objext \
19001       conftest$ac_exeext conftest.$ac_ext
19002                                                                 LIBS="$save_LIBS"
19003
19004 fi
19005 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19006 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19007
19008                         if test $ol_cv_var_des_debug = yes ; then
19009
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE_DES_DEBUG 1
19012 _ACEOF
19013
19014                         fi
19015
19016                         LIBS="$save_LIBS"
19017                 fi
19018         fi
19019 fi
19020
19021 if test $ol_link_krb5 = yes ; then
19022         ol_with_kerberos=found
19023 fi
19024
19025 case $ol_with_kerberos in yes | auto | k4 | kth)
19026
19027
19028
19029
19030 for ac_header in krb.h des.h krb-archaeology.h
19031 do
19032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19034   echo "$as_me:$LINENO: checking for $ac_header" >&5
19035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 fi
19039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19041 else
19042   # Is the header compilable?
19043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 $ac_includes_default
19052 #include <$ac_header>
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056   (eval $ac_compile) 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_c_werror_flag"
19064                          || test ! -s conftest.err'
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); }; } &&
19070          { ac_try='test -s conftest.$ac_objext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   ac_header_compiler=yes
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_header_compiler=no
19082 fi
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19085 echo "${ECHO_T}$ac_header_compiler" >&6
19086
19087 # Is the header present?
19088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19090 cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096 #include <$ac_header>
19097 _ACEOF
19098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19100   ac_status=$?
19101   grep -v '^ *+' conftest.er1 >conftest.err
19102   rm -f conftest.er1
19103   cat conftest.err >&5
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } >/dev/null; then
19106   if test -s conftest.err; then
19107     ac_cpp_err=$ac_c_preproc_warn_flag
19108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19109   else
19110     ac_cpp_err=
19111   fi
19112 else
19113   ac_cpp_err=yes
19114 fi
19115 if test -z "$ac_cpp_err"; then
19116   ac_header_preproc=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121   ac_header_preproc=no
19122 fi
19123 rm -f conftest.err conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19125 echo "${ECHO_T}$ac_header_preproc" >&6
19126
19127 # So?  What about this header?
19128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19129   yes:no: )
19130     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19134     ac_header_preproc=yes
19135     ;;
19136   no:yes:* )
19137     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19139     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19140 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19141     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19143     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19144 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19147     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19149     (
19150       cat <<\_ASBOX
19151 ## --------------------------------------------- ##
19152 ## Report this to <http://www.openldap.org/its/> ##
19153 ## --------------------------------------------- ##
19154 _ASBOX
19155     ) |
19156       sed "s/^/$as_me: WARNING:     /" >&2
19157     ;;
19158 esac
19159 echo "$as_me:$LINENO: checking for $ac_header" >&5
19160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   eval "$as_ac_Header=\$ac_header_preproc"
19165 fi
19166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19168
19169 fi
19170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19171   cat >>confdefs.h <<_ACEOF
19172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19173 _ACEOF
19174
19175 fi
19176
19177 done
19178
19179
19180         if test $ac_cv_header_krb_h = yes ; then
19181                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19182 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19183 if test "${ac_cv_lib_krb_main+set}" = set; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186   ac_check_lib_save_LIBS=$LIBS
19187 LIBS="-lkrb -ldes $LIBS"
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194
19195
19196 int
19197 main ()
19198 {
19199 main ();
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19206   (eval $ac_link) 2>conftest.er1
19207   ac_status=$?
19208   grep -v '^ *+' conftest.er1 >conftest.err
19209   rm -f conftest.er1
19210   cat conftest.err >&5
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); } &&
19213          { ac_try='test -z "$ac_c_werror_flag"
19214                          || test ! -s conftest.err'
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); }; } &&
19220          { ac_try='test -s conftest$ac_exeext'
19221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222   (eval $ac_try) 2>&5
19223   ac_status=$?
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); }; }; then
19226   ac_cv_lib_krb_main=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231 ac_cv_lib_krb_main=no
19232 fi
19233 rm -f conftest.err conftest.$ac_objext \
19234       conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19236 fi
19237 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19238 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19239 if test $ac_cv_lib_krb_main = yes; then
19240   have_k4=yes
19241 else
19242   have_k4=no
19243 fi
19244
19245
19246                 if test $have_k4 = yes ; then
19247                         ol_with_kerberos=found
19248                         ol_link_krb4=yes
19249
19250
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_KRB4 1
19253 _ACEOF
19254
19255
19256                         KRB4_LIBS="-lkrb -ldes"
19257
19258                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19259
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_KTH_KERBEROS 1
19262 _ACEOF
19263
19264                         fi
19265                 fi
19266         fi
19267         ;;
19268 esac
19269
19270 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19271         ol_link_kbind=yes
19272
19273 elif test $ol_enable_kbind = yes ; then
19274         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19275 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19276    { (exit 1); exit 1; }; }
19277 fi
19278
19279 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19280
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_KERBEROS 1
19283 _ACEOF
19284
19285
19286 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19287         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19288 echo "$as_me: error: Kerberos detection failed" >&2;}
19289    { (exit 1); exit 1; }; }
19290 fi
19291
19292
19293 ol_link_tls=no
19294 if test $ol_with_tls != no ; then
19295
19296 for ac_header in openssl/ssl.h
19297 do
19298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19300   echo "$as_me:$LINENO: checking for $ac_header" >&5
19301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19303   echo $ECHO_N "(cached) $ECHO_C" >&6
19304 fi
19305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19307 else
19308   # Is the header compilable?
19309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19311 cat >conftest.$ac_ext <<_ACEOF
19312 /* confdefs.h.  */
19313 _ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h.  */
19317 $ac_includes_default
19318 #include <$ac_header>
19319 _ACEOF
19320 rm -f conftest.$ac_objext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19322   (eval $ac_compile) 2>conftest.er1
19323   ac_status=$?
19324   grep -v '^ *+' conftest.er1 >conftest.err
19325   rm -f conftest.er1
19326   cat conftest.err >&5
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } &&
19329          { ac_try='test -z "$ac_c_werror_flag"
19330                          || test ! -s conftest.err'
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); }; } &&
19336          { ac_try='test -s conftest.$ac_objext'
19337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338   (eval $ac_try) 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   ac_header_compiler=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 ac_header_compiler=no
19348 fi
19349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19351 echo "${ECHO_T}$ac_header_compiler" >&6
19352
19353 # Is the header present?
19354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19356 cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362 #include <$ac_header>
19363 _ACEOF
19364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } >/dev/null; then
19372   if test -s conftest.err; then
19373     ac_cpp_err=$ac_c_preproc_warn_flag
19374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19375   else
19376     ac_cpp_err=
19377   fi
19378 else
19379   ac_cpp_err=yes
19380 fi
19381 if test -z "$ac_cpp_err"; then
19382   ac_header_preproc=yes
19383 else
19384   echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19386
19387   ac_header_preproc=no
19388 fi
19389 rm -f conftest.err conftest.$ac_ext
19390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19391 echo "${ECHO_T}$ac_header_preproc" >&6
19392
19393 # So?  What about this header?
19394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19395   yes:no: )
19396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19400     ac_header_preproc=yes
19401     ;;
19402   no:yes:* )
19403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19415     (
19416       cat <<\_ASBOX
19417 ## --------------------------------------------- ##
19418 ## Report this to <http://www.openldap.org/its/> ##
19419 ## --------------------------------------------- ##
19420 _ASBOX
19421     ) |
19422       sed "s/^/$as_me: WARNING:     /" >&2
19423     ;;
19424 esac
19425 echo "$as_me:$LINENO: checking for $ac_header" >&5
19426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   eval "$as_ac_Header=\$ac_header_preproc"
19431 fi
19432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19434
19435 fi
19436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19437   cat >>confdefs.h <<_ACEOF
19438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19439 _ACEOF
19440
19441 fi
19442
19443 done
19444
19445
19446         if test $ac_cv_header_openssl_ssl_h = yes ; then
19447                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19448 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19449 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19450   echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452   ac_check_lib_save_LIBS=$LIBS
19453 LIBS="-lssl -lcrypto $LIBS"
19454 cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460
19461 /* Override any gcc2 internal prototype to avoid an error.  */
19462 #ifdef __cplusplus
19463 extern "C"
19464 #endif
19465 /* We use char because int might match the return type of a gcc2
19466    builtin and then its argument prototype would still apply.  */
19467 char SSL_library_init ();
19468 int
19469 main ()
19470 {
19471 SSL_library_init ();
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext conftest$ac_exeext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19478   (eval $ac_link) 2>conftest.er1
19479   ac_status=$?
19480   grep -v '^ *+' conftest.er1 >conftest.err
19481   rm -f conftest.er1
19482   cat conftest.err >&5
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); } &&
19485          { ac_try='test -z "$ac_c_werror_flag"
19486                          || test ! -s conftest.err'
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); }; } &&
19492          { ac_try='test -s conftest$ac_exeext'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; }; then
19498   ac_cv_lib_ssl_SSL_library_init=yes
19499 else
19500   echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_cv_lib_ssl_SSL_library_init=no
19504 fi
19505 rm -f conftest.err conftest.$ac_objext \
19506       conftest$ac_exeext conftest.$ac_ext
19507 LIBS=$ac_check_lib_save_LIBS
19508 fi
19509 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19510 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19511 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19512   have_openssl=yes
19513                         need_rsaref=no
19514 else
19515   have_openssl=no
19516 fi
19517
19518
19519                 if test $have_openssl = no ; then
19520                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19521 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19522 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19523   echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525   ac_check_lib_save_LIBS=$LIBS
19526 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533
19534 /* Override any gcc2 internal prototype to avoid an error.  */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 /* We use char because int might match the return type of a gcc2
19539    builtin and then its argument prototype would still apply.  */
19540 char ssl3_accept ();
19541 int
19542 main ()
19543 {
19544 ssl3_accept ();
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551   (eval $ac_link) 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } &&
19558          { ac_try='test -z "$ac_c_werror_flag"
19559                          || test ! -s conftest.err'
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); }; } &&
19565          { ac_try='test -s conftest$ac_exeext'
19566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567   (eval $ac_try) 2>&5
19568   ac_status=$?
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); }; }; then
19571   ac_cv_lib_ssl_ssl3_accept=yes
19572 else
19573   echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 ac_cv_lib_ssl_ssl3_accept=no
19577 fi
19578 rm -f conftest.err conftest.$ac_objext \
19579       conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19581 fi
19582 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19583 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19584 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19585   have_openssl=yes
19586                                 need_rsaref=yes
19587 else
19588   have_openssl=no
19589 fi
19590
19591                 fi
19592
19593                 if test $have_openssl = yes ; then
19594                         ol_with_tls=found
19595                         ol_link_tls=yes
19596
19597
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_OPENSSL 1
19600 _ACEOF
19601
19602
19603                         if test $need_rsaref = yes; then
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_RSAREF 1
19607 _ACEOF
19608
19609
19610                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19611                         else
19612                                 TLS_LIBS="-lssl -lcrypto"
19613                         fi
19614                 fi
19615                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19616 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19617 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19618   echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620
19621         cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627
19628 #ifdef HAVE_OPENSSL_SSL_H
19629 #include <openssl/ssl.h>
19630 #else
19631 #include <ssl.h>
19632 #endif
19633
19634 /* Require 0.9.7d+ */
19635 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19636         char *__ssl_compat = "0.9.7d";
19637 #endif
19638
19639 _ACEOF
19640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19641   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19642   ol_cv_ssl_crl_compat=yes
19643 else
19644   ol_cv_ssl_crl_compat=no
19645 fi
19646 rm -f conftest*
19647
19648 fi
19649 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19650 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19651
19652                 if test $ol_cv_ssl_crl_compat = no ; then
19653                         ol_link_ssl=no
19654                 else
19655
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_OPENSSL_CRL 1
19658 _ACEOF
19659
19660                 fi
19661         fi
19662
19663 else
19664         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19665 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19666 fi
19667
19668 WITH_TLS=no
19669 if test $ol_link_tls = yes ; then
19670
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_TLS 1
19673 _ACEOF
19674
19675         WITH_TLS=yes
19676
19677 elif test $ol_with_tls = auto ; then
19678         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19679 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19680         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19681 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19682
19683 elif test $ol_with_tls != no ; then
19684         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19685 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19686    { (exit 1); exit 1; }; }
19687 fi
19688
19689 if test $ol_enable_lmpasswd != no; then
19690         if test $ol_link_tls != yes ; then
19691                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19692 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19693    { (exit 1); exit 1; }; }
19694         fi
19695
19696
19697 cat >>confdefs.h <<\_ACEOF
19698 #define SLAPD_LMHASH 1
19699 _ACEOF
19700
19701 fi
19702
19703 ol_link_threads=no
19704
19705 case $ol_with_threads in auto | yes | nt)
19706
19707
19708         echo "$as_me:$LINENO: checking for _beginthread" >&5
19709 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19710 if test "${ac_cv_func__beginthread+set}" = set; then
19711   echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713   cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19721 #define _beginthread innocuous__beginthread
19722
19723 /* System header to define __stub macros and hopefully few prototypes,
19724     which can conflict with char _beginthread (); below.
19725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19726     <limits.h> exists even on freestanding compilers.  */
19727
19728 #ifdef __STDC__
19729 # include <limits.h>
19730 #else
19731 # include <assert.h>
19732 #endif
19733
19734 #undef _beginthread
19735
19736 /* Override any gcc2 internal prototype to avoid an error.  */
19737 #ifdef __cplusplus
19738 extern "C"
19739 {
19740 #endif
19741 /* We use char because int might match the return type of a gcc2
19742    builtin and then its argument prototype would still apply.  */
19743 char _beginthread ();
19744 /* The GNU C library defines this for functions which it implements
19745     to always fail with ENOSYS.  Some functions are actually named
19746     something starting with __ and the normal name is an alias.  */
19747 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19748 choke me
19749 #else
19750 char (*f) () = _beginthread;
19751 #endif
19752 #ifdef __cplusplus
19753 }
19754 #endif
19755
19756 int
19757 main ()
19758 {
19759 return f != _beginthread;
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19766   (eval $ac_link) 2>conftest.er1
19767   ac_status=$?
19768   grep -v '^ *+' conftest.er1 >conftest.err
19769   rm -f conftest.er1
19770   cat conftest.err >&5
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); } &&
19773          { ac_try='test -z "$ac_c_werror_flag"
19774                          || test ! -s conftest.err'
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); }; } &&
19780          { ac_try='test -s conftest$ac_exeext'
19781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782   (eval $ac_try) 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; }; then
19786   ac_cv_func__beginthread=yes
19787 else
19788   echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19790
19791 ac_cv_func__beginthread=no
19792 fi
19793 rm -f conftest.err conftest.$ac_objext \
19794       conftest$ac_exeext conftest.$ac_ext
19795 fi
19796 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19797 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19798
19799
19800         if test $ac_cv_func__beginthread = yes ; then
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_NT_THREADS 1
19804 _ACEOF
19805
19806                 ol_cv_nt_threads=yes
19807         fi
19808
19809
19810         if test "$ol_cv_nt_threads" = yes ; then
19811                 ol_link_threads=nt
19812                 ol_with_threads=found
19813                 ol_with_yielding_select=yes
19814
19815
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_NT_SERVICE_MANAGER 1
19818 _ACEOF
19819
19820
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_NT_EVENT_LOG 1
19823 _ACEOF
19824
19825         fi
19826
19827         if test $ol_with_threads = nt ; then
19828                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19829 echo "$as_me: error: could not locate NT Threads" >&2;}
19830    { (exit 1); exit 1; }; }
19831         fi
19832         ;;
19833 esac
19834
19835 case $ol_with_threads in auto | yes | posix)
19836
19837
19838 for ac_header in pthread.h
19839 do
19840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842   echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 fi
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849 else
19850   # Is the header compilable?
19851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859 $ac_includes_default
19860 #include <$ac_header>
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864   (eval $ac_compile) 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } &&
19871          { ac_try='test -z "$ac_c_werror_flag"
19872                          || test ! -s conftest.err'
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); }; } &&
19878          { ac_try='test -s conftest.$ac_objext'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; }; then
19884   ac_header_compiler=yes
19885 else
19886   echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_header_compiler=no
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893 echo "${ECHO_T}$ac_header_compiler" >&6
19894
19895 # Is the header present?
19896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h.  */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h.  */
19904 #include <$ac_header>
19905 _ACEOF
19906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19908   ac_status=$?
19909   grep -v '^ *+' conftest.er1 >conftest.err
19910   rm -f conftest.er1
19911   cat conftest.err >&5
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } >/dev/null; then
19914   if test -s conftest.err; then
19915     ac_cpp_err=$ac_c_preproc_warn_flag
19916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19917   else
19918     ac_cpp_err=
19919   fi
19920 else
19921   ac_cpp_err=yes
19922 fi
19923 if test -z "$ac_cpp_err"; then
19924   ac_header_preproc=yes
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929   ac_header_preproc=no
19930 fi
19931 rm -f conftest.err conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933 echo "${ECHO_T}$ac_header_preproc" >&6
19934
19935 # So?  What about this header?
19936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937   yes:no: )
19938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19942     ac_header_preproc=yes
19943     ;;
19944   no:yes:* )
19945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19957     (
19958       cat <<\_ASBOX
19959 ## --------------------------------------------- ##
19960 ## Report this to <http://www.openldap.org/its/> ##
19961 ## --------------------------------------------- ##
19962 _ASBOX
19963     ) |
19964       sed "s/^/$as_me: WARNING:     /" >&2
19965     ;;
19966 esac
19967 echo "$as_me:$LINENO: checking for $ac_header" >&5
19968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19970   echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972   eval "$as_ac_Header=\$ac_header_preproc"
19973 fi
19974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19976
19977 fi
19978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19979   cat >>confdefs.h <<_ACEOF
19980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19981 _ACEOF
19982
19983 fi
19984
19985 done
19986
19987
19988         if test $ac_cv_header_pthread_h = yes ; then
19989                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19990 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19991 if test "${ol_cv_pthread_version+set}" = set; then
19992   echo $ECHO_N "(cached) $ECHO_C" >&6
19993 else
19994
19995         cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h.  */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h.  */
20001
20002 #               include <pthread.h>
20003
20004 int
20005 main ()
20006 {
20007
20008                 int i = PTHREAD_CREATE_JOINABLE;
20009
20010   ;
20011   return 0;
20012 }
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016   (eval $ac_compile) 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } &&
20023          { ac_try='test -z "$ac_c_werror_flag"
20024                          || test ! -s conftest.err'
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); }; } &&
20030          { ac_try='test -s conftest.$ac_objext'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; }; then
20036
20037         cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043 #include <pthread.h>
20044
20045 _ACEOF
20046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20047   $EGREP "pthread_detach" >/dev/null 2>&1; then
20048   ol_cv_pthread_version=10
20049 else
20050   ol_cv_pthread_version=8
20051 fi
20052 rm -f conftest*
20053
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058
20059         cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065
20066 #               include <pthread.h>
20067 #               ifdef PTHREAD_CREATE_UNDETACHED
20068                 draft7
20069 #               endif
20070
20071 _ACEOF
20072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20073   $EGREP "draft7" >/dev/null 2>&1; then
20074   ol_cv_pthread_version=7
20075 else
20076
20077         cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 #include <pthread.h>
20084
20085 _ACEOF
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20088   ol_cv_pthread_version=6
20089 else
20090
20091         cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h.  */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h.  */
20097
20098 #               include <pthread.h>
20099 #ifdef          PTHREAD_MUTEX_INITIALIZER
20100                 draft5
20101 #endif
20102
20103 _ACEOF
20104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20105   $EGREP "draft5" >/dev/null 2>&1; then
20106   ol_cv_pthread_version=5
20107 else
20108   ol_cv_pthread_version=4
20109 fi
20110 rm -f conftest*
20111
20112 fi
20113 rm -f conftest*
20114
20115 fi
20116 rm -f conftest*
20117
20118 fi
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20120
20121 fi
20122 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20123 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20124
20125
20126                 if test $ol_cv_pthread_version != 0 ; then
20127
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_PTHREADS $ol_cv_pthread_version
20130 _ACEOF
20131
20132                 else
20133                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20134 echo "$as_me: error: unknown pthread version" >&2;}
20135    { (exit 1); exit 1; }; }
20136                 fi
20137
20138                 # consider threads found
20139                 ol_with_threads=found
20140
20141
20142         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20143 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20144 if test "${ol_cv_header_linux_threads+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153 #include <pthread.h>
20154 _ACEOF
20155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20156   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20157   ol_cv_header_linux_threads=yes
20158 else
20159   ol_cv_header_linux_threads=no
20160 fi
20161 rm -f conftest*
20162
20163
20164 fi
20165 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20166 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20167         if test $ol_cv_header_linux_threads = yes; then
20168
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_LINUX_THREADS 1
20171 _ACEOF
20172
20173         fi
20174
20175
20176         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20177 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20178 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20179   echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181   cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 #include <pthread.h>
20188 #ifdef _POSIX_THREAD_IS_GNU_PTH
20189         __gnu_pth__;
20190 #endif
20191
20192 _ACEOF
20193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20194   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20195   ol_cv_header_gnu_pth_pthread_h=yes
20196 else
20197   ol_cv_header_gnu_pth_pthread_h=no
20198 fi
20199 rm -f conftest*
20200
20201
20202 fi
20203 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20204 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20205
20206
20207                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20208
20209 for ac_header in sched.h
20210 do
20211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213   echo "$as_me:$LINENO: checking for $ac_header" >&5
20214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20216   echo $ECHO_N "(cached) $ECHO_C" >&6
20217 fi
20218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20220 else
20221   # Is the header compilable?
20222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h.  */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h.  */
20230 $ac_includes_default
20231 #include <$ac_header>
20232 _ACEOF
20233 rm -f conftest.$ac_objext
20234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20235   (eval $ac_compile) 2>conftest.er1
20236   ac_status=$?
20237   grep -v '^ *+' conftest.er1 >conftest.err
20238   rm -f conftest.er1
20239   cat conftest.err >&5
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); } &&
20242          { ac_try='test -z "$ac_c_werror_flag"
20243                          || test ! -s conftest.err'
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); }; } &&
20249          { ac_try='test -s conftest.$ac_objext'
20250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251   (eval $ac_try) 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; }; then
20255   ac_header_compiler=yes
20256 else
20257   echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260 ac_header_compiler=no
20261 fi
20262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20264 echo "${ECHO_T}$ac_header_compiler" >&6
20265
20266 # Is the header present?
20267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 #include <$ac_header>
20276 _ACEOF
20277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20279   ac_status=$?
20280   grep -v '^ *+' conftest.er1 >conftest.err
20281   rm -f conftest.er1
20282   cat conftest.err >&5
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } >/dev/null; then
20285   if test -s conftest.err; then
20286     ac_cpp_err=$ac_c_preproc_warn_flag
20287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20288   else
20289     ac_cpp_err=
20290   fi
20291 else
20292   ac_cpp_err=yes
20293 fi
20294 if test -z "$ac_cpp_err"; then
20295   ac_header_preproc=yes
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300   ac_header_preproc=no
20301 fi
20302 rm -f conftest.err conftest.$ac_ext
20303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20304 echo "${ECHO_T}$ac_header_preproc" >&6
20305
20306 # So?  What about this header?
20307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20308   yes:no: )
20309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20313     ac_header_preproc=yes
20314     ;;
20315   no:yes:* )
20316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20328     (
20329       cat <<\_ASBOX
20330 ## --------------------------------------------- ##
20331 ## Report this to <http://www.openldap.org/its/> ##
20332 ## --------------------------------------------- ##
20333 _ASBOX
20334     ) |
20335       sed "s/^/$as_me: WARNING:     /" >&2
20336     ;;
20337 esac
20338 echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20341   echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343   eval "$as_ac_Header=\$ac_header_preproc"
20344 fi
20345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20347
20348 fi
20349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20350   cat >>confdefs.h <<_ACEOF
20351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20352 _ACEOF
20353
20354 fi
20355
20356 done
20357
20358                 fi
20359
20360
20361                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20362 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20363 if test "${ol_cv_pthread_create+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366
20367                         if test "$cross_compiling" = yes; then
20368   cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h.  */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h.  */
20374
20375 /* pthread test headers */
20376 #include <pthread.h>
20377 #if HAVE_PTHREADS < 7
20378 #include <errno.h>
20379 #endif
20380 #ifndef NULL
20381 #define NULL (void*)0
20382 #endif
20383
20384 static void *task(p)
20385         void *p;
20386 {
20387         return (void *) (p == NULL);
20388 }
20389
20390 int
20391 main ()
20392 {
20393
20394         /* pthread test function */
20395 #ifndef PTHREAD_CREATE_DETACHED
20396 #define PTHREAD_CREATE_DETACHED 1
20397 #endif
20398         pthread_t t;
20399         int status;
20400         int detach = PTHREAD_CREATE_DETACHED;
20401
20402 #if HAVE_PTHREADS > 4
20403         /* Final pthreads */
20404         pthread_attr_t attr;
20405
20406         status = pthread_attr_init(&attr);
20407         if( status ) return status;
20408
20409 #if HAVE_PTHREADS < 7
20410         status = pthread_attr_setdetachstate(&attr, &detach);
20411         if( status < 0 ) status = errno;
20412 #else
20413         status = pthread_attr_setdetachstate(&attr, detach);
20414 #endif
20415         if( status ) return status;
20416         status = pthread_create( &t, &attr, task, NULL );
20417 #if HAVE_PTHREADS < 7
20418         if( status < 0 ) status = errno;
20419 #endif
20420         if( status ) return status;
20421 #else
20422         /* Draft 4 pthreads */
20423         status = pthread_create( &t, pthread_attr_default, task, NULL );
20424         if( status ) return errno;
20425
20426         /* give thread a chance to complete */
20427         /* it should remain joinable and hence detachable */
20428         sleep( 1 );
20429
20430         status = pthread_detach( &t );
20431         if( status ) return errno;
20432 #endif
20433
20434 #ifdef HAVE_LINUX_THREADS
20435         pthread_kill_other_threads_np();
20436 #endif
20437
20438         return 0;
20439
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446   (eval $ac_link) 2>conftest.er1
20447   ac_status=$?
20448   grep -v '^ *+' conftest.er1 >conftest.err
20449   rm -f conftest.er1
20450   cat conftest.err >&5
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); } &&
20453          { ac_try='test -z "$ac_c_werror_flag"
20454                          || test ! -s conftest.err'
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); }; } &&
20460          { ac_try='test -s conftest$ac_exeext'
20461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462   (eval $ac_try) 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; }; then
20466   ol_cv_pthread_create=yes
20467 else
20468   echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ol_cv_pthread_create=no
20472 fi
20473 rm -f conftest.err conftest.$ac_objext \
20474       conftest$ac_exeext conftest.$ac_ext
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482
20483 /* pthread test headers */
20484 #include <pthread.h>
20485 #if HAVE_PTHREADS < 7
20486 #include <errno.h>
20487 #endif
20488 #ifndef NULL
20489 #define NULL (void*)0
20490 #endif
20491
20492 static void *task(p)
20493         void *p;
20494 {
20495         return (void *) (p == NULL);
20496 }
20497
20498
20499 int main(argc, argv)
20500         int argc;
20501         char **argv;
20502 {
20503
20504         /* pthread test function */
20505 #ifndef PTHREAD_CREATE_DETACHED
20506 #define PTHREAD_CREATE_DETACHED 1
20507 #endif
20508         pthread_t t;
20509         int status;
20510         int detach = PTHREAD_CREATE_DETACHED;
20511
20512 #if HAVE_PTHREADS > 4
20513         /* Final pthreads */
20514         pthread_attr_t attr;
20515
20516         status = pthread_attr_init(&attr);
20517         if( status ) return status;
20518
20519 #if HAVE_PTHREADS < 7
20520         status = pthread_attr_setdetachstate(&attr, &detach);
20521         if( status < 0 ) status = errno;
20522 #else
20523         status = pthread_attr_setdetachstate(&attr, detach);
20524 #endif
20525         if( status ) return status;
20526         status = pthread_create( &t, &attr, task, NULL );
20527 #if HAVE_PTHREADS < 7
20528         if( status < 0 ) status = errno;
20529 #endif
20530         if( status ) return status;
20531 #else
20532         /* Draft 4 pthreads */
20533         status = pthread_create( &t, pthread_attr_default, task, NULL );
20534         if( status ) return errno;
20535
20536         /* give thread a chance to complete */
20537         /* it should remain joinable and hence detachable */
20538         sleep( 1 );
20539
20540         status = pthread_detach( &t );
20541         if( status ) return errno;
20542 #endif
20543
20544 #ifdef HAVE_LINUX_THREADS
20545         pthread_kill_other_threads_np();
20546 #endif
20547
20548         return 0;
20549
20550 }
20551
20552 _ACEOF
20553 rm -f conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555   (eval $ac_link) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560   (eval $ac_try) 2>&5
20561   ac_status=$?
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); }; }; then
20564   ol_cv_pthread_create=yes
20565 else
20566   echo "$as_me: program exited with status $ac_status" >&5
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20569
20570 ( exit $ac_status )
20571 ol_cv_pthread_create=no
20572 fi
20573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20574 fi
20575 fi
20576 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20577 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20578
20579                 if test $ol_cv_pthread_create != no ; then
20580                         ol_link_threads=posix
20581                         ol_link_pthreads=""
20582                 fi
20583
20584                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20585 if test "$ol_link_threads" = no ; then
20586         # try -kthread
20587         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20588 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20589 if test "${ol_cv_pthread_kthread+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592
20593                 # save the flags
20594                 ol_LIBS="$LIBS"
20595                 LIBS="-kthread $LIBS"
20596
20597                 if test "$cross_compiling" = yes; then
20598   cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h.  */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h.  */
20604
20605 /* pthread test headers */
20606 #include <pthread.h>
20607 #if HAVE_PTHREADS < 7
20608 #include <errno.h>
20609 #endif
20610 #ifndef NULL
20611 #define NULL (void*)0
20612 #endif
20613
20614 static void *task(p)
20615         void *p;
20616 {
20617         return (void *) (p == NULL);
20618 }
20619
20620 int
20621 main ()
20622 {
20623
20624         /* pthread test function */
20625 #ifndef PTHREAD_CREATE_DETACHED
20626 #define PTHREAD_CREATE_DETACHED 1
20627 #endif
20628         pthread_t t;
20629         int status;
20630         int detach = PTHREAD_CREATE_DETACHED;
20631
20632 #if HAVE_PTHREADS > 4
20633         /* Final pthreads */
20634         pthread_attr_t attr;
20635
20636         status = pthread_attr_init(&attr);
20637         if( status ) return status;
20638
20639 #if HAVE_PTHREADS < 7
20640         status = pthread_attr_setdetachstate(&attr, &detach);
20641         if( status < 0 ) status = errno;
20642 #else
20643         status = pthread_attr_setdetachstate(&attr, detach);
20644 #endif
20645         if( status ) return status;
20646         status = pthread_create( &t, &attr, task, NULL );
20647 #if HAVE_PTHREADS < 7
20648         if( status < 0 ) status = errno;
20649 #endif
20650         if( status ) return status;
20651 #else
20652         /* Draft 4 pthreads */
20653         status = pthread_create( &t, pthread_attr_default, task, NULL );
20654         if( status ) return errno;
20655
20656         /* give thread a chance to complete */
20657         /* it should remain joinable and hence detachable */
20658         sleep( 1 );
20659
20660         status = pthread_detach( &t );
20661         if( status ) return errno;
20662 #endif
20663
20664 #ifdef HAVE_LINUX_THREADS
20665         pthread_kill_other_threads_np();
20666 #endif
20667
20668         return 0;
20669
20670   ;
20671   return 0;
20672 }
20673 _ACEOF
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20676   (eval $ac_link) 2>conftest.er1
20677   ac_status=$?
20678   grep -v '^ *+' conftest.er1 >conftest.err
20679   rm -f conftest.er1
20680   cat conftest.err >&5
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); } &&
20683          { ac_try='test -z "$ac_c_werror_flag"
20684                          || test ! -s conftest.err'
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); }; } &&
20690          { ac_try='test -s conftest$ac_exeext'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; }; then
20696   ol_cv_pthread_kthread=yes
20697 else
20698   echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 ol_cv_pthread_kthread=no
20702 fi
20703 rm -f conftest.err conftest.$ac_objext \
20704       conftest$ac_exeext conftest.$ac_ext
20705 else
20706   cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h.  */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h.  */
20712
20713 /* pthread test headers */
20714 #include <pthread.h>
20715 #if HAVE_PTHREADS < 7
20716 #include <errno.h>
20717 #endif
20718 #ifndef NULL
20719 #define NULL (void*)0
20720 #endif
20721
20722 static void *task(p)
20723         void *p;
20724 {
20725         return (void *) (p == NULL);
20726 }
20727
20728
20729 int main(argc, argv)
20730         int argc;
20731         char **argv;
20732 {
20733
20734         /* pthread test function */
20735 #ifndef PTHREAD_CREATE_DETACHED
20736 #define PTHREAD_CREATE_DETACHED 1
20737 #endif
20738         pthread_t t;
20739         int status;
20740         int detach = PTHREAD_CREATE_DETACHED;
20741
20742 #if HAVE_PTHREADS > 4
20743         /* Final pthreads */
20744         pthread_attr_t attr;
20745
20746         status = pthread_attr_init(&attr);
20747         if( status ) return status;
20748
20749 #if HAVE_PTHREADS < 7
20750         status = pthread_attr_setdetachstate(&attr, &detach);
20751         if( status < 0 ) status = errno;
20752 #else
20753         status = pthread_attr_setdetachstate(&attr, detach);
20754 #endif
20755         if( status ) return status;
20756         status = pthread_create( &t, &attr, task, NULL );
20757 #if HAVE_PTHREADS < 7
20758         if( status < 0 ) status = errno;
20759 #endif
20760         if( status ) return status;
20761 #else
20762         /* Draft 4 pthreads */
20763         status = pthread_create( &t, pthread_attr_default, task, NULL );
20764         if( status ) return errno;
20765
20766         /* give thread a chance to complete */
20767         /* it should remain joinable and hence detachable */
20768         sleep( 1 );
20769
20770         status = pthread_detach( &t );
20771         if( status ) return errno;
20772 #endif
20773
20774 #ifdef HAVE_LINUX_THREADS
20775         pthread_kill_other_threads_np();
20776 #endif
20777
20778         return 0;
20779
20780 }
20781
20782 _ACEOF
20783 rm -f conftest$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785   (eval $ac_link) 2>&5
20786   ac_status=$?
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; }; then
20794   ol_cv_pthread_kthread=yes
20795 else
20796   echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20799
20800 ( exit $ac_status )
20801 ol_cv_pthread_kthread=no
20802 fi
20803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20804 fi
20805
20806                 # restore the LIBS
20807                 LIBS="$ol_LIBS"
20808
20809 fi
20810 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20811 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20812
20813         if test $ol_cv_pthread_kthread = yes ; then
20814                 ol_link_pthreads="-kthread"
20815                 ol_link_threads=posix
20816         fi
20817 fi
20818
20819                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20820 if test "$ol_link_threads" = no ; then
20821         # try -pthread
20822         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20823 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20824 if test "${ol_cv_pthread_pthread+set}" = set; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 else
20827
20828                 # save the flags
20829                 ol_LIBS="$LIBS"
20830                 LIBS="-pthread $LIBS"
20831
20832                 if test "$cross_compiling" = yes; then
20833   cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839
20840 /* pthread test headers */
20841 #include <pthread.h>
20842 #if HAVE_PTHREADS < 7
20843 #include <errno.h>
20844 #endif
20845 #ifndef NULL
20846 #define NULL (void*)0
20847 #endif
20848
20849 static void *task(p)
20850         void *p;
20851 {
20852         return (void *) (p == NULL);
20853 }
20854
20855 int
20856 main ()
20857 {
20858
20859         /* pthread test function */
20860 #ifndef PTHREAD_CREATE_DETACHED
20861 #define PTHREAD_CREATE_DETACHED 1
20862 #endif
20863         pthread_t t;
20864         int status;
20865         int detach = PTHREAD_CREATE_DETACHED;
20866
20867 #if HAVE_PTHREADS > 4
20868         /* Final pthreads */
20869         pthread_attr_t attr;
20870
20871         status = pthread_attr_init(&attr);
20872         if( status ) return status;
20873
20874 #if HAVE_PTHREADS < 7
20875         status = pthread_attr_setdetachstate(&attr, &detach);
20876         if( status < 0 ) status = errno;
20877 #else
20878         status = pthread_attr_setdetachstate(&attr, detach);
20879 #endif
20880         if( status ) return status;
20881         status = pthread_create( &t, &attr, task, NULL );
20882 #if HAVE_PTHREADS < 7
20883         if( status < 0 ) status = errno;
20884 #endif
20885         if( status ) return status;
20886 #else
20887         /* Draft 4 pthreads */
20888         status = pthread_create( &t, pthread_attr_default, task, NULL );
20889         if( status ) return errno;
20890
20891         /* give thread a chance to complete */
20892         /* it should remain joinable and hence detachable */
20893         sleep( 1 );
20894
20895         status = pthread_detach( &t );
20896         if( status ) return errno;
20897 #endif
20898
20899 #ifdef HAVE_LINUX_THREADS
20900         pthread_kill_other_threads_np();
20901 #endif
20902
20903         return 0;
20904
20905   ;
20906   return 0;
20907 }
20908 _ACEOF
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911   (eval $ac_link) 2>conftest.er1
20912   ac_status=$?
20913   grep -v '^ *+' conftest.er1 >conftest.err
20914   rm -f conftest.er1
20915   cat conftest.err >&5
20916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917   (exit $ac_status); } &&
20918          { ac_try='test -z "$ac_c_werror_flag"
20919                          || test ! -s conftest.err'
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); }; } &&
20925          { ac_try='test -s conftest$ac_exeext'
20926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927   (eval $ac_try) 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; }; then
20931   ol_cv_pthread_pthread=yes
20932 else
20933   echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ol_cv_pthread_pthread=no
20937 fi
20938 rm -f conftest.err conftest.$ac_objext \
20939       conftest$ac_exeext conftest.$ac_ext
20940 else
20941   cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947
20948 /* pthread test headers */
20949 #include <pthread.h>
20950 #if HAVE_PTHREADS < 7
20951 #include <errno.h>
20952 #endif
20953 #ifndef NULL
20954 #define NULL (void*)0
20955 #endif
20956
20957 static void *task(p)
20958         void *p;
20959 {
20960         return (void *) (p == NULL);
20961 }
20962
20963
20964 int main(argc, argv)
20965         int argc;
20966         char **argv;
20967 {
20968
20969         /* pthread test function */
20970 #ifndef PTHREAD_CREATE_DETACHED
20971 #define PTHREAD_CREATE_DETACHED 1
20972 #endif
20973         pthread_t t;
20974         int status;
20975         int detach = PTHREAD_CREATE_DETACHED;
20976
20977 #if HAVE_PTHREADS > 4
20978         /* Final pthreads */
20979         pthread_attr_t attr;
20980
20981         status = pthread_attr_init(&attr);
20982         if( status ) return status;
20983
20984 #if HAVE_PTHREADS < 7
20985         status = pthread_attr_setdetachstate(&attr, &detach);
20986         if( status < 0 ) status = errno;
20987 #else
20988         status = pthread_attr_setdetachstate(&attr, detach);
20989 #endif
20990         if( status ) return status;
20991         status = pthread_create( &t, &attr, task, NULL );
20992 #if HAVE_PTHREADS < 7
20993         if( status < 0 ) status = errno;
20994 #endif
20995         if( status ) return status;
20996 #else
20997         /* Draft 4 pthreads */
20998         status = pthread_create( &t, pthread_attr_default, task, NULL );
20999         if( status ) return errno;
21000
21001         /* give thread a chance to complete */
21002         /* it should remain joinable and hence detachable */
21003         sleep( 1 );
21004
21005         status = pthread_detach( &t );
21006         if( status ) return errno;
21007 #endif
21008
21009 #ifdef HAVE_LINUX_THREADS
21010         pthread_kill_other_threads_np();
21011 #endif
21012
21013         return 0;
21014
21015 }
21016
21017 _ACEOF
21018 rm -f conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020   (eval $ac_link) 2>&5
21021   ac_status=$?
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; }; then
21029   ol_cv_pthread_pthread=yes
21030 else
21031   echo "$as_me: program exited with status $ac_status" >&5
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035 ( exit $ac_status )
21036 ol_cv_pthread_pthread=no
21037 fi
21038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21039 fi
21040
21041                 # restore the LIBS
21042                 LIBS="$ol_LIBS"
21043
21044 fi
21045 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21046 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21047
21048         if test $ol_cv_pthread_pthread = yes ; then
21049                 ol_link_pthreads="-pthread"
21050                 ol_link_threads=posix
21051         fi
21052 fi
21053
21054                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21055 if test "$ol_link_threads" = no ; then
21056         # try -pthreads
21057         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21058 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21059 if test "${ol_cv_pthread_pthreads+set}" = set; then
21060   echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062
21063                 # save the flags
21064                 ol_LIBS="$LIBS"
21065                 LIBS="-pthreads $LIBS"
21066
21067                 if test "$cross_compiling" = yes; then
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074
21075 /* pthread test headers */
21076 #include <pthread.h>
21077 #if HAVE_PTHREADS < 7
21078 #include <errno.h>
21079 #endif
21080 #ifndef NULL
21081 #define NULL (void*)0
21082 #endif
21083
21084 static void *task(p)
21085         void *p;
21086 {
21087         return (void *) (p == NULL);
21088 }
21089
21090 int
21091 main ()
21092 {
21093
21094         /* pthread test function */
21095 #ifndef PTHREAD_CREATE_DETACHED
21096 #define PTHREAD_CREATE_DETACHED 1
21097 #endif
21098         pthread_t t;
21099         int status;
21100         int detach = PTHREAD_CREATE_DETACHED;
21101
21102 #if HAVE_PTHREADS > 4
21103         /* Final pthreads */
21104         pthread_attr_t attr;
21105
21106         status = pthread_attr_init(&attr);
21107         if( status ) return status;
21108
21109 #if HAVE_PTHREADS < 7
21110         status = pthread_attr_setdetachstate(&attr, &detach);
21111         if( status < 0 ) status = errno;
21112 #else
21113         status = pthread_attr_setdetachstate(&attr, detach);
21114 #endif
21115         if( status ) return status;
21116         status = pthread_create( &t, &attr, task, NULL );
21117 #if HAVE_PTHREADS < 7
21118         if( status < 0 ) status = errno;
21119 #endif
21120         if( status ) return status;
21121 #else
21122         /* Draft 4 pthreads */
21123         status = pthread_create( &t, pthread_attr_default, task, NULL );
21124         if( status ) return errno;
21125
21126         /* give thread a chance to complete */
21127         /* it should remain joinable and hence detachable */
21128         sleep( 1 );
21129
21130         status = pthread_detach( &t );
21131         if( status ) return errno;
21132 #endif
21133
21134 #ifdef HAVE_LINUX_THREADS
21135         pthread_kill_other_threads_np();
21136 #endif
21137
21138         return 0;
21139
21140   ;
21141   return 0;
21142 }
21143 _ACEOF
21144 rm -f conftest.$ac_objext conftest$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146   (eval $ac_link) 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } &&
21153          { ac_try='test -z "$ac_c_werror_flag"
21154                          || test ! -s conftest.err'
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); }; } &&
21160          { ac_try='test -s conftest$ac_exeext'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166   ol_cv_pthread_pthreads=yes
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 ol_cv_pthread_pthreads=no
21172 fi
21173 rm -f conftest.err conftest.$ac_objext \
21174       conftest$ac_exeext conftest.$ac_ext
21175 else
21176   cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h.  */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h.  */
21182
21183 /* pthread test headers */
21184 #include <pthread.h>
21185 #if HAVE_PTHREADS < 7
21186 #include <errno.h>
21187 #endif
21188 #ifndef NULL
21189 #define NULL (void*)0
21190 #endif
21191
21192 static void *task(p)
21193         void *p;
21194 {
21195         return (void *) (p == NULL);
21196 }
21197
21198
21199 int main(argc, argv)
21200         int argc;
21201         char **argv;
21202 {
21203
21204         /* pthread test function */
21205 #ifndef PTHREAD_CREATE_DETACHED
21206 #define PTHREAD_CREATE_DETACHED 1
21207 #endif
21208         pthread_t t;
21209         int status;
21210         int detach = PTHREAD_CREATE_DETACHED;
21211
21212 #if HAVE_PTHREADS > 4
21213         /* Final pthreads */
21214         pthread_attr_t attr;
21215
21216         status = pthread_attr_init(&attr);
21217         if( status ) return status;
21218
21219 #if HAVE_PTHREADS < 7
21220         status = pthread_attr_setdetachstate(&attr, &detach);
21221         if( status < 0 ) status = errno;
21222 #else
21223         status = pthread_attr_setdetachstate(&attr, detach);
21224 #endif
21225         if( status ) return status;
21226         status = pthread_create( &t, &attr, task, NULL );
21227 #if HAVE_PTHREADS < 7
21228         if( status < 0 ) status = errno;
21229 #endif
21230         if( status ) return status;
21231 #else
21232         /* Draft 4 pthreads */
21233         status = pthread_create( &t, pthread_attr_default, task, NULL );
21234         if( status ) return errno;
21235
21236         /* give thread a chance to complete */
21237         /* it should remain joinable and hence detachable */
21238         sleep( 1 );
21239
21240         status = pthread_detach( &t );
21241         if( status ) return errno;
21242 #endif
21243
21244 #ifdef HAVE_LINUX_THREADS
21245         pthread_kill_other_threads_np();
21246 #endif
21247
21248         return 0;
21249
21250 }
21251
21252 _ACEOF
21253 rm -f conftest$ac_exeext
21254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21255   (eval $ac_link) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260   (eval $ac_try) 2>&5
21261   ac_status=$?
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); }; }; then
21264   ol_cv_pthread_pthreads=yes
21265 else
21266   echo "$as_me: program exited with status $ac_status" >&5
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 ( exit $ac_status )
21271 ol_cv_pthread_pthreads=no
21272 fi
21273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21274 fi
21275
21276                 # restore the LIBS
21277                 LIBS="$ol_LIBS"
21278
21279 fi
21280 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21281 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21282
21283         if test $ol_cv_pthread_pthreads = yes ; then
21284                 ol_link_pthreads="-pthreads"
21285                 ol_link_threads=posix
21286         fi
21287 fi
21288
21289                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21290 if test "$ol_link_threads" = no ; then
21291         # try -mthreads
21292         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21293 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21294 if test "${ol_cv_pthread_mthreads+set}" = set; then
21295   echo $ECHO_N "(cached) $ECHO_C" >&6
21296 else
21297
21298                 # save the flags
21299                 ol_LIBS="$LIBS"
21300                 LIBS="-mthreads $LIBS"
21301
21302                 if test "$cross_compiling" = yes; then
21303   cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h.  */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h.  */
21309
21310 /* pthread test headers */
21311 #include <pthread.h>
21312 #if HAVE_PTHREADS < 7
21313 #include <errno.h>
21314 #endif
21315 #ifndef NULL
21316 #define NULL (void*)0
21317 #endif
21318
21319 static void *task(p)
21320         void *p;
21321 {
21322         return (void *) (p == NULL);
21323 }
21324
21325 int
21326 main ()
21327 {
21328
21329         /* pthread test function */
21330 #ifndef PTHREAD_CREATE_DETACHED
21331 #define PTHREAD_CREATE_DETACHED 1
21332 #endif
21333         pthread_t t;
21334         int status;
21335         int detach = PTHREAD_CREATE_DETACHED;
21336
21337 #if HAVE_PTHREADS > 4
21338         /* Final pthreads */
21339         pthread_attr_t attr;
21340
21341         status = pthread_attr_init(&attr);
21342         if( status ) return status;
21343
21344 #if HAVE_PTHREADS < 7
21345         status = pthread_attr_setdetachstate(&attr, &detach);
21346         if( status < 0 ) status = errno;
21347 #else
21348         status = pthread_attr_setdetachstate(&attr, detach);
21349 #endif
21350         if( status ) return status;
21351         status = pthread_create( &t, &attr, task, NULL );
21352 #if HAVE_PTHREADS < 7
21353         if( status < 0 ) status = errno;
21354 #endif
21355         if( status ) return status;
21356 #else
21357         /* Draft 4 pthreads */
21358         status = pthread_create( &t, pthread_attr_default, task, NULL );
21359         if( status ) return errno;
21360
21361         /* give thread a chance to complete */
21362         /* it should remain joinable and hence detachable */
21363         sleep( 1 );
21364
21365         status = pthread_detach( &t );
21366         if( status ) return errno;
21367 #endif
21368
21369 #ifdef HAVE_LINUX_THREADS
21370         pthread_kill_other_threads_np();
21371 #endif
21372
21373         return 0;
21374
21375   ;
21376   return 0;
21377 }
21378 _ACEOF
21379 rm -f conftest.$ac_objext conftest$ac_exeext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381   (eval $ac_link) 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } &&
21388          { ac_try='test -z "$ac_c_werror_flag"
21389                          || test ! -s conftest.err'
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); }; } &&
21395          { ac_try='test -s conftest$ac_exeext'
21396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; }; then
21401   ol_cv_pthread_mthreads=yes
21402 else
21403   echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 ol_cv_pthread_mthreads=no
21407 fi
21408 rm -f conftest.err conftest.$ac_objext \
21409       conftest$ac_exeext conftest.$ac_ext
21410 else
21411   cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h.  */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h.  */
21417
21418 /* pthread test headers */
21419 #include <pthread.h>
21420 #if HAVE_PTHREADS < 7
21421 #include <errno.h>
21422 #endif
21423 #ifndef NULL
21424 #define NULL (void*)0
21425 #endif
21426
21427 static void *task(p)
21428         void *p;
21429 {
21430         return (void *) (p == NULL);
21431 }
21432
21433
21434 int main(argc, argv)
21435         int argc;
21436         char **argv;
21437 {
21438
21439         /* pthread test function */
21440 #ifndef PTHREAD_CREATE_DETACHED
21441 #define PTHREAD_CREATE_DETACHED 1
21442 #endif
21443         pthread_t t;
21444         int status;
21445         int detach = PTHREAD_CREATE_DETACHED;
21446
21447 #if HAVE_PTHREADS > 4
21448         /* Final pthreads */
21449         pthread_attr_t attr;
21450
21451         status = pthread_attr_init(&attr);
21452         if( status ) return status;
21453
21454 #if HAVE_PTHREADS < 7
21455         status = pthread_attr_setdetachstate(&attr, &detach);
21456         if( status < 0 ) status = errno;
21457 #else
21458         status = pthread_attr_setdetachstate(&attr, detach);
21459 #endif
21460         if( status ) return status;
21461         status = pthread_create( &t, &attr, task, NULL );
21462 #if HAVE_PTHREADS < 7
21463         if( status < 0 ) status = errno;
21464 #endif
21465         if( status ) return status;
21466 #else
21467         /* Draft 4 pthreads */
21468         status = pthread_create( &t, pthread_attr_default, task, NULL );
21469         if( status ) return errno;
21470
21471         /* give thread a chance to complete */
21472         /* it should remain joinable and hence detachable */
21473         sleep( 1 );
21474
21475         status = pthread_detach( &t );
21476         if( status ) return errno;
21477 #endif
21478
21479 #ifdef HAVE_LINUX_THREADS
21480         pthread_kill_other_threads_np();
21481 #endif
21482
21483         return 0;
21484
21485 }
21486
21487 _ACEOF
21488 rm -f conftest$ac_exeext
21489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490   (eval $ac_link) 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; }; then
21499   ol_cv_pthread_mthreads=yes
21500 else
21501   echo "$as_me: program exited with status $ac_status" >&5
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21504
21505 ( exit $ac_status )
21506 ol_cv_pthread_mthreads=no
21507 fi
21508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21509 fi
21510
21511                 # restore the LIBS
21512                 LIBS="$ol_LIBS"
21513
21514 fi
21515 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21516 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21517
21518         if test $ol_cv_pthread_mthreads = yes ; then
21519                 ol_link_pthreads="-mthreads"
21520                 ol_link_threads=posix
21521         fi
21522 fi
21523
21524                 # Pthread try link: -thread (ol_cv_pthread_thread)
21525 if test "$ol_link_threads" = no ; then
21526         # try -thread
21527         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21528 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21529 if test "${ol_cv_pthread_thread+set}" = set; then
21530   echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532
21533                 # save the flags
21534                 ol_LIBS="$LIBS"
21535                 LIBS="-thread $LIBS"
21536
21537                 if test "$cross_compiling" = yes; then
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544
21545 /* pthread test headers */
21546 #include <pthread.h>
21547 #if HAVE_PTHREADS < 7
21548 #include <errno.h>
21549 #endif
21550 #ifndef NULL
21551 #define NULL (void*)0
21552 #endif
21553
21554 static void *task(p)
21555         void *p;
21556 {
21557         return (void *) (p == NULL);
21558 }
21559
21560 int
21561 main ()
21562 {
21563
21564         /* pthread test function */
21565 #ifndef PTHREAD_CREATE_DETACHED
21566 #define PTHREAD_CREATE_DETACHED 1
21567 #endif
21568         pthread_t t;
21569         int status;
21570         int detach = PTHREAD_CREATE_DETACHED;
21571
21572 #if HAVE_PTHREADS > 4
21573         /* Final pthreads */
21574         pthread_attr_t attr;
21575
21576         status = pthread_attr_init(&attr);
21577         if( status ) return status;
21578
21579 #if HAVE_PTHREADS < 7
21580         status = pthread_attr_setdetachstate(&attr, &detach);
21581         if( status < 0 ) status = errno;
21582 #else
21583         status = pthread_attr_setdetachstate(&attr, detach);
21584 #endif
21585         if( status ) return status;
21586         status = pthread_create( &t, &attr, task, NULL );
21587 #if HAVE_PTHREADS < 7
21588         if( status < 0 ) status = errno;
21589 #endif
21590         if( status ) return status;
21591 #else
21592         /* Draft 4 pthreads */
21593         status = pthread_create( &t, pthread_attr_default, task, NULL );
21594         if( status ) return errno;
21595
21596         /* give thread a chance to complete */
21597         /* it should remain joinable and hence detachable */
21598         sleep( 1 );
21599
21600         status = pthread_detach( &t );
21601         if( status ) return errno;
21602 #endif
21603
21604 #ifdef HAVE_LINUX_THREADS
21605         pthread_kill_other_threads_np();
21606 #endif
21607
21608         return 0;
21609
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616   (eval $ac_link) 2>conftest.er1
21617   ac_status=$?
21618   grep -v '^ *+' conftest.er1 >conftest.err
21619   rm -f conftest.er1
21620   cat conftest.err >&5
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); } &&
21623          { ac_try='test -z "$ac_c_werror_flag"
21624                          || test ! -s conftest.err'
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); }; } &&
21630          { ac_try='test -s conftest$ac_exeext'
21631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632   (eval $ac_try) 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; }; then
21636   ol_cv_pthread_thread=yes
21637 else
21638   echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ol_cv_pthread_thread=no
21642 fi
21643 rm -f conftest.err conftest.$ac_objext \
21644       conftest$ac_exeext conftest.$ac_ext
21645 else
21646   cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h.  */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h.  */
21652
21653 /* pthread test headers */
21654 #include <pthread.h>
21655 #if HAVE_PTHREADS < 7
21656 #include <errno.h>
21657 #endif
21658 #ifndef NULL
21659 #define NULL (void*)0
21660 #endif
21661
21662 static void *task(p)
21663         void *p;
21664 {
21665         return (void *) (p == NULL);
21666 }
21667
21668
21669 int main(argc, argv)
21670         int argc;
21671         char **argv;
21672 {
21673
21674         /* pthread test function */
21675 #ifndef PTHREAD_CREATE_DETACHED
21676 #define PTHREAD_CREATE_DETACHED 1
21677 #endif
21678         pthread_t t;
21679         int status;
21680         int detach = PTHREAD_CREATE_DETACHED;
21681
21682 #if HAVE_PTHREADS > 4
21683         /* Final pthreads */
21684         pthread_attr_t attr;
21685
21686         status = pthread_attr_init(&attr);
21687         if( status ) return status;
21688
21689 #if HAVE_PTHREADS < 7
21690         status = pthread_attr_setdetachstate(&attr, &detach);
21691         if( status < 0 ) status = errno;
21692 #else
21693         status = pthread_attr_setdetachstate(&attr, detach);
21694 #endif
21695         if( status ) return status;
21696         status = pthread_create( &t, &attr, task, NULL );
21697 #if HAVE_PTHREADS < 7
21698         if( status < 0 ) status = errno;
21699 #endif
21700         if( status ) return status;
21701 #else
21702         /* Draft 4 pthreads */
21703         status = pthread_create( &t, pthread_attr_default, task, NULL );
21704         if( status ) return errno;
21705
21706         /* give thread a chance to complete */
21707         /* it should remain joinable and hence detachable */
21708         sleep( 1 );
21709
21710         status = pthread_detach( &t );
21711         if( status ) return errno;
21712 #endif
21713
21714 #ifdef HAVE_LINUX_THREADS
21715         pthread_kill_other_threads_np();
21716 #endif
21717
21718         return 0;
21719
21720 }
21721
21722 _ACEOF
21723 rm -f conftest$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725   (eval $ac_link) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730   (eval $ac_try) 2>&5
21731   ac_status=$?
21732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733   (exit $ac_status); }; }; then
21734   ol_cv_pthread_thread=yes
21735 else
21736   echo "$as_me: program exited with status $ac_status" >&5
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740 ( exit $ac_status )
21741 ol_cv_pthread_thread=no
21742 fi
21743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21744 fi
21745
21746                 # restore the LIBS
21747                 LIBS="$ol_LIBS"
21748
21749 fi
21750 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21751 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21752
21753         if test $ol_cv_pthread_thread = yes ; then
21754                 ol_link_pthreads="-thread"
21755                 ol_link_threads=posix
21756         fi
21757 fi
21758
21759
21760                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21761 if test "$ol_link_threads" = no ; then
21762         # try -lpthread -lmach -lexc -lc_r
21763         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21764 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21765 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21766   echo $ECHO_N "(cached) $ECHO_C" >&6
21767 else
21768
21769                 # save the flags
21770                 ol_LIBS="$LIBS"
21771                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21772
21773                 if test "$cross_compiling" = yes; then
21774   cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780
21781 /* pthread test headers */
21782 #include <pthread.h>
21783 #if HAVE_PTHREADS < 7
21784 #include <errno.h>
21785 #endif
21786 #ifndef NULL
21787 #define NULL (void*)0
21788 #endif
21789
21790 static void *task(p)
21791         void *p;
21792 {
21793         return (void *) (p == NULL);
21794 }
21795
21796 int
21797 main ()
21798 {
21799
21800         /* pthread test function */
21801 #ifndef PTHREAD_CREATE_DETACHED
21802 #define PTHREAD_CREATE_DETACHED 1
21803 #endif
21804         pthread_t t;
21805         int status;
21806         int detach = PTHREAD_CREATE_DETACHED;
21807
21808 #if HAVE_PTHREADS > 4
21809         /* Final pthreads */
21810         pthread_attr_t attr;
21811
21812         status = pthread_attr_init(&attr);
21813         if( status ) return status;
21814
21815 #if HAVE_PTHREADS < 7
21816         status = pthread_attr_setdetachstate(&attr, &detach);
21817         if( status < 0 ) status = errno;
21818 #else
21819         status = pthread_attr_setdetachstate(&attr, detach);
21820 #endif
21821         if( status ) return status;
21822         status = pthread_create( &t, &attr, task, NULL );
21823 #if HAVE_PTHREADS < 7
21824         if( status < 0 ) status = errno;
21825 #endif
21826         if( status ) return status;
21827 #else
21828         /* Draft 4 pthreads */
21829         status = pthread_create( &t, pthread_attr_default, task, NULL );
21830         if( status ) return errno;
21831
21832         /* give thread a chance to complete */
21833         /* it should remain joinable and hence detachable */
21834         sleep( 1 );
21835
21836         status = pthread_detach( &t );
21837         if( status ) return errno;
21838 #endif
21839
21840 #ifdef HAVE_LINUX_THREADS
21841         pthread_kill_other_threads_np();
21842 #endif
21843
21844         return 0;
21845
21846   ;
21847   return 0;
21848 }
21849 _ACEOF
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852   (eval $ac_link) 2>conftest.er1
21853   ac_status=$?
21854   grep -v '^ *+' conftest.er1 >conftest.err
21855   rm -f conftest.er1
21856   cat conftest.err >&5
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); } &&
21859          { ac_try='test -z "$ac_c_werror_flag"
21860                          || test ! -s conftest.err'
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); }; } &&
21866          { ac_try='test -s conftest$ac_exeext'
21867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; }; then
21872   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21873 else
21874   echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21878 fi
21879 rm -f conftest.err conftest.$ac_objext \
21880       conftest$ac_exeext conftest.$ac_ext
21881 else
21882   cat >conftest.$ac_ext <<_ACEOF
21883 /* confdefs.h.  */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h.  */
21888
21889 /* pthread test headers */
21890 #include <pthread.h>
21891 #if HAVE_PTHREADS < 7
21892 #include <errno.h>
21893 #endif
21894 #ifndef NULL
21895 #define NULL (void*)0
21896 #endif
21897
21898 static void *task(p)
21899         void *p;
21900 {
21901         return (void *) (p == NULL);
21902 }
21903
21904
21905 int main(argc, argv)
21906         int argc;
21907         char **argv;
21908 {
21909
21910         /* pthread test function */
21911 #ifndef PTHREAD_CREATE_DETACHED
21912 #define PTHREAD_CREATE_DETACHED 1
21913 #endif
21914         pthread_t t;
21915         int status;
21916         int detach = PTHREAD_CREATE_DETACHED;
21917
21918 #if HAVE_PTHREADS > 4
21919         /* Final pthreads */
21920         pthread_attr_t attr;
21921
21922         status = pthread_attr_init(&attr);
21923         if( status ) return status;
21924
21925 #if HAVE_PTHREADS < 7
21926         status = pthread_attr_setdetachstate(&attr, &detach);
21927         if( status < 0 ) status = errno;
21928 #else
21929         status = pthread_attr_setdetachstate(&attr, detach);
21930 #endif
21931         if( status ) return status;
21932         status = pthread_create( &t, &attr, task, NULL );
21933 #if HAVE_PTHREADS < 7
21934         if( status < 0 ) status = errno;
21935 #endif
21936         if( status ) return status;
21937 #else
21938         /* Draft 4 pthreads */
21939         status = pthread_create( &t, pthread_attr_default, task, NULL );
21940         if( status ) return errno;
21941
21942         /* give thread a chance to complete */
21943         /* it should remain joinable and hence detachable */
21944         sleep( 1 );
21945
21946         status = pthread_detach( &t );
21947         if( status ) return errno;
21948 #endif
21949
21950 #ifdef HAVE_LINUX_THREADS
21951         pthread_kill_other_threads_np();
21952 #endif
21953
21954         return 0;
21955
21956 }
21957
21958 _ACEOF
21959 rm -f conftest$ac_exeext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21961   (eval $ac_link) 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21971 else
21972   echo "$as_me: program exited with status $ac_status" >&5
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976 ( exit $ac_status )
21977 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21978 fi
21979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21980 fi
21981
21982                 # restore the LIBS
21983                 LIBS="$ol_LIBS"
21984
21985 fi
21986 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21987 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21988
21989         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21990                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21991                 ol_link_threads=posix
21992         fi
21993 fi
21994
21995                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21996 if test "$ol_link_threads" = no ; then
21997         # try -lpthread -lmach -lexc
21998         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21999 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22000 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22001   echo $ECHO_N "(cached) $ECHO_C" >&6
22002 else
22003
22004                 # save the flags
22005                 ol_LIBS="$LIBS"
22006                 LIBS="-lpthread -lmach -lexc $LIBS"
22007
22008                 if test "$cross_compiling" = yes; then
22009   cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015
22016 /* pthread test headers */
22017 #include <pthread.h>
22018 #if HAVE_PTHREADS < 7
22019 #include <errno.h>
22020 #endif
22021 #ifndef NULL
22022 #define NULL (void*)0
22023 #endif
22024
22025 static void *task(p)
22026         void *p;
22027 {
22028         return (void *) (p == NULL);
22029 }
22030
22031 int
22032 main ()
22033 {
22034
22035         /* pthread test function */
22036 #ifndef PTHREAD_CREATE_DETACHED
22037 #define PTHREAD_CREATE_DETACHED 1
22038 #endif
22039         pthread_t t;
22040         int status;
22041         int detach = PTHREAD_CREATE_DETACHED;
22042
22043 #if HAVE_PTHREADS > 4
22044         /* Final pthreads */
22045         pthread_attr_t attr;
22046
22047         status = pthread_attr_init(&attr);
22048         if( status ) return status;
22049
22050 #if HAVE_PTHREADS < 7
22051         status = pthread_attr_setdetachstate(&attr, &detach);
22052         if( status < 0 ) status = errno;
22053 #else
22054         status = pthread_attr_setdetachstate(&attr, detach);
22055 #endif
22056         if( status ) return status;
22057         status = pthread_create( &t, &attr, task, NULL );
22058 #if HAVE_PTHREADS < 7
22059         if( status < 0 ) status = errno;
22060 #endif
22061         if( status ) return status;
22062 #else
22063         /* Draft 4 pthreads */
22064         status = pthread_create( &t, pthread_attr_default, task, NULL );
22065         if( status ) return errno;
22066
22067         /* give thread a chance to complete */
22068         /* it should remain joinable and hence detachable */
22069         sleep( 1 );
22070
22071         status = pthread_detach( &t );
22072         if( status ) return errno;
22073 #endif
22074
22075 #ifdef HAVE_LINUX_THREADS
22076         pthread_kill_other_threads_np();
22077 #endif
22078
22079         return 0;
22080
22081   ;
22082   return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087   (eval $ac_link) 2>conftest.er1
22088   ac_status=$?
22089   grep -v '^ *+' conftest.er1 >conftest.err
22090   rm -f conftest.er1
22091   cat conftest.err >&5
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); } &&
22094          { ac_try='test -z "$ac_c_werror_flag"
22095                          || test ! -s conftest.err'
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); }; } &&
22101          { ac_try='test -s conftest$ac_exeext'
22102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103   (eval $ac_try) 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); }; }; then
22107   ol_cv_pthread_lpthread_lmach_lexc=yes
22108 else
22109   echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112 ol_cv_pthread_lpthread_lmach_lexc=no
22113 fi
22114 rm -f conftest.err conftest.$ac_objext \
22115       conftest$ac_exeext conftest.$ac_ext
22116 else
22117   cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123
22124 /* pthread test headers */
22125 #include <pthread.h>
22126 #if HAVE_PTHREADS < 7
22127 #include <errno.h>
22128 #endif
22129 #ifndef NULL
22130 #define NULL (void*)0
22131 #endif
22132
22133 static void *task(p)
22134         void *p;
22135 {
22136         return (void *) (p == NULL);
22137 }
22138
22139
22140 int main(argc, argv)
22141         int argc;
22142         char **argv;
22143 {
22144
22145         /* pthread test function */
22146 #ifndef PTHREAD_CREATE_DETACHED
22147 #define PTHREAD_CREATE_DETACHED 1
22148 #endif
22149         pthread_t t;
22150         int status;
22151         int detach = PTHREAD_CREATE_DETACHED;
22152
22153 #if HAVE_PTHREADS > 4
22154         /* Final pthreads */
22155         pthread_attr_t attr;
22156
22157         status = pthread_attr_init(&attr);
22158         if( status ) return status;
22159
22160 #if HAVE_PTHREADS < 7
22161         status = pthread_attr_setdetachstate(&attr, &detach);
22162         if( status < 0 ) status = errno;
22163 #else
22164         status = pthread_attr_setdetachstate(&attr, detach);
22165 #endif
22166         if( status ) return status;
22167         status = pthread_create( &t, &attr, task, NULL );
22168 #if HAVE_PTHREADS < 7
22169         if( status < 0 ) status = errno;
22170 #endif
22171         if( status ) return status;
22172 #else
22173         /* Draft 4 pthreads */
22174         status = pthread_create( &t, pthread_attr_default, task, NULL );
22175         if( status ) return errno;
22176
22177         /* give thread a chance to complete */
22178         /* it should remain joinable and hence detachable */
22179         sleep( 1 );
22180
22181         status = pthread_detach( &t );
22182         if( status ) return errno;
22183 #endif
22184
22185 #ifdef HAVE_LINUX_THREADS
22186         pthread_kill_other_threads_np();
22187 #endif
22188
22189         return 0;
22190
22191 }
22192
22193 _ACEOF
22194 rm -f conftest$ac_exeext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22196   (eval $ac_link) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201   (eval $ac_try) 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); }; }; then
22205   ol_cv_pthread_lpthread_lmach_lexc=yes
22206 else
22207   echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 ( exit $ac_status )
22212 ol_cv_pthread_lpthread_lmach_lexc=no
22213 fi
22214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22215 fi
22216
22217                 # restore the LIBS
22218                 LIBS="$ol_LIBS"
22219
22220 fi
22221 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22222 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22223
22224         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22225                 ol_link_pthreads="-lpthread -lmach -lexc"
22226                 ol_link_threads=posix
22227         fi
22228 fi
22229
22230
22231                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22232 if test "$ol_link_threads" = no ; then
22233         # try -lpthread -Wl,-woff,85
22234         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22235 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22236 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22237   echo $ECHO_N "(cached) $ECHO_C" >&6
22238 else
22239
22240                 # save the flags
22241                 ol_LIBS="$LIBS"
22242                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22243
22244                 if test "$cross_compiling" = yes; then
22245   cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h.  */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h.  */
22251
22252 /* pthread test headers */
22253 #include <pthread.h>
22254 #if HAVE_PTHREADS < 7
22255 #include <errno.h>
22256 #endif
22257 #ifndef NULL
22258 #define NULL (void*)0
22259 #endif
22260
22261 static void *task(p)
22262         void *p;
22263 {
22264         return (void *) (p == NULL);
22265 }
22266
22267 int
22268 main ()
22269 {
22270
22271         /* pthread test function */
22272 #ifndef PTHREAD_CREATE_DETACHED
22273 #define PTHREAD_CREATE_DETACHED 1
22274 #endif
22275         pthread_t t;
22276         int status;
22277         int detach = PTHREAD_CREATE_DETACHED;
22278
22279 #if HAVE_PTHREADS > 4
22280         /* Final pthreads */
22281         pthread_attr_t attr;
22282
22283         status = pthread_attr_init(&attr);
22284         if( status ) return status;
22285
22286 #if HAVE_PTHREADS < 7
22287         status = pthread_attr_setdetachstate(&attr, &detach);
22288         if( status < 0 ) status = errno;
22289 #else
22290         status = pthread_attr_setdetachstate(&attr, detach);
22291 #endif
22292         if( status ) return status;
22293         status = pthread_create( &t, &attr, task, NULL );
22294 #if HAVE_PTHREADS < 7
22295         if( status < 0 ) status = errno;
22296 #endif
22297         if( status ) return status;
22298 #else
22299         /* Draft 4 pthreads */
22300         status = pthread_create( &t, pthread_attr_default, task, NULL );
22301         if( status ) return errno;
22302
22303         /* give thread a chance to complete */
22304         /* it should remain joinable and hence detachable */
22305         sleep( 1 );
22306
22307         status = pthread_detach( &t );
22308         if( status ) return errno;
22309 #endif
22310
22311 #ifdef HAVE_LINUX_THREADS
22312         pthread_kill_other_threads_np();
22313 #endif
22314
22315         return 0;
22316
22317   ;
22318   return 0;
22319 }
22320 _ACEOF
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22323   (eval $ac_link) 2>conftest.er1
22324   ac_status=$?
22325   grep -v '^ *+' conftest.er1 >conftest.err
22326   rm -f conftest.er1
22327   cat conftest.err >&5
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); } &&
22330          { ac_try='test -z "$ac_c_werror_flag"
22331                          || test ! -s conftest.err'
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); }; } &&
22337          { ac_try='test -s conftest$ac_exeext'
22338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339   (eval $ac_try) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; }; then
22343   ol_cv_pthread_lib_lpthread_woff=yes
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348 ol_cv_pthread_lib_lpthread_woff=no
22349 fi
22350 rm -f conftest.err conftest.$ac_objext \
22351       conftest$ac_exeext conftest.$ac_ext
22352 else
22353   cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h.  */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h.  */
22359
22360 /* pthread test headers */
22361 #include <pthread.h>
22362 #if HAVE_PTHREADS < 7
22363 #include <errno.h>
22364 #endif
22365 #ifndef NULL
22366 #define NULL (void*)0
22367 #endif
22368
22369 static void *task(p)
22370         void *p;
22371 {
22372         return (void *) (p == NULL);
22373 }
22374
22375
22376 int main(argc, argv)
22377         int argc;
22378         char **argv;
22379 {
22380
22381         /* pthread test function */
22382 #ifndef PTHREAD_CREATE_DETACHED
22383 #define PTHREAD_CREATE_DETACHED 1
22384 #endif
22385         pthread_t t;
22386         int status;
22387         int detach = PTHREAD_CREATE_DETACHED;
22388
22389 #if HAVE_PTHREADS > 4
22390         /* Final pthreads */
22391         pthread_attr_t attr;
22392
22393         status = pthread_attr_init(&attr);
22394         if( status ) return status;
22395
22396 #if HAVE_PTHREADS < 7
22397         status = pthread_attr_setdetachstate(&attr, &detach);
22398         if( status < 0 ) status = errno;
22399 #else
22400         status = pthread_attr_setdetachstate(&attr, detach);
22401 #endif
22402         if( status ) return status;
22403         status = pthread_create( &t, &attr, task, NULL );
22404 #if HAVE_PTHREADS < 7
22405         if( status < 0 ) status = errno;
22406 #endif
22407         if( status ) return status;
22408 #else
22409         /* Draft 4 pthreads */
22410         status = pthread_create( &t, pthread_attr_default, task, NULL );
22411         if( status ) return errno;
22412
22413         /* give thread a chance to complete */
22414         /* it should remain joinable and hence detachable */
22415         sleep( 1 );
22416
22417         status = pthread_detach( &t );
22418         if( status ) return errno;
22419 #endif
22420
22421 #ifdef HAVE_LINUX_THREADS
22422         pthread_kill_other_threads_np();
22423 #endif
22424
22425         return 0;
22426
22427 }
22428
22429 _ACEOF
22430 rm -f conftest$ac_exeext
22431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22432   (eval $ac_link) 2>&5
22433   ac_status=$?
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437   (eval $ac_try) 2>&5
22438   ac_status=$?
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); }; }; then
22441   ol_cv_pthread_lib_lpthread_woff=yes
22442 else
22443   echo "$as_me: program exited with status $ac_status" >&5
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22446
22447 ( exit $ac_status )
22448 ol_cv_pthread_lib_lpthread_woff=no
22449 fi
22450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22451 fi
22452
22453                 # restore the LIBS
22454                 LIBS="$ol_LIBS"
22455
22456 fi
22457 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22458 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22459
22460         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22461                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22462                 ol_link_threads=posix
22463         fi
22464 fi
22465
22466
22467                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22468 if test "$ol_link_threads" = no ; then
22469         # try -lpthread
22470         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22471 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22472 if test "${ol_cv_pthread_lpthread+set}" = set; then
22473   echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475
22476                 # save the flags
22477                 ol_LIBS="$LIBS"
22478                 LIBS="-lpthread $LIBS"
22479
22480                 if test "$cross_compiling" = yes; then
22481   cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487
22488 /* pthread test headers */
22489 #include <pthread.h>
22490 #if HAVE_PTHREADS < 7
22491 #include <errno.h>
22492 #endif
22493 #ifndef NULL
22494 #define NULL (void*)0
22495 #endif
22496
22497 static void *task(p)
22498         void *p;
22499 {
22500         return (void *) (p == NULL);
22501 }
22502
22503 int
22504 main ()
22505 {
22506
22507         /* pthread test function */
22508 #ifndef PTHREAD_CREATE_DETACHED
22509 #define PTHREAD_CREATE_DETACHED 1
22510 #endif
22511         pthread_t t;
22512         int status;
22513         int detach = PTHREAD_CREATE_DETACHED;
22514
22515 #if HAVE_PTHREADS > 4
22516         /* Final pthreads */
22517         pthread_attr_t attr;
22518
22519         status = pthread_attr_init(&attr);
22520         if( status ) return status;
22521
22522 #if HAVE_PTHREADS < 7
22523         status = pthread_attr_setdetachstate(&attr, &detach);
22524         if( status < 0 ) status = errno;
22525 #else
22526         status = pthread_attr_setdetachstate(&attr, detach);
22527 #endif
22528         if( status ) return status;
22529         status = pthread_create( &t, &attr, task, NULL );
22530 #if HAVE_PTHREADS < 7
22531         if( status < 0 ) status = errno;
22532 #endif
22533         if( status ) return status;
22534 #else
22535         /* Draft 4 pthreads */
22536         status = pthread_create( &t, pthread_attr_default, task, NULL );
22537         if( status ) return errno;
22538
22539         /* give thread a chance to complete */
22540         /* it should remain joinable and hence detachable */
22541         sleep( 1 );
22542
22543         status = pthread_detach( &t );
22544         if( status ) return errno;
22545 #endif
22546
22547 #ifdef HAVE_LINUX_THREADS
22548         pthread_kill_other_threads_np();
22549 #endif
22550
22551         return 0;
22552
22553   ;
22554   return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext conftest$ac_exeext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22559   (eval $ac_link) 2>conftest.er1
22560   ac_status=$?
22561   grep -v '^ *+' conftest.er1 >conftest.err
22562   rm -f conftest.er1
22563   cat conftest.err >&5
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); } &&
22566          { ac_try='test -z "$ac_c_werror_flag"
22567                          || test ! -s conftest.err'
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); }; } &&
22573          { ac_try='test -s conftest$ac_exeext'
22574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575   (eval $ac_try) 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); }; }; then
22579   ol_cv_pthread_lpthread=yes
22580 else
22581   echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584 ol_cv_pthread_lpthread=no
22585 fi
22586 rm -f conftest.err conftest.$ac_objext \
22587       conftest$ac_exeext conftest.$ac_ext
22588 else
22589   cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595
22596 /* pthread test headers */
22597 #include <pthread.h>
22598 #if HAVE_PTHREADS < 7
22599 #include <errno.h>
22600 #endif
22601 #ifndef NULL
22602 #define NULL (void*)0
22603 #endif
22604
22605 static void *task(p)
22606         void *p;
22607 {
22608         return (void *) (p == NULL);
22609 }
22610
22611
22612 int main(argc, argv)
22613         int argc;
22614         char **argv;
22615 {
22616
22617         /* pthread test function */
22618 #ifndef PTHREAD_CREATE_DETACHED
22619 #define PTHREAD_CREATE_DETACHED 1
22620 #endif
22621         pthread_t t;
22622         int status;
22623         int detach = PTHREAD_CREATE_DETACHED;
22624
22625 #if HAVE_PTHREADS > 4
22626         /* Final pthreads */
22627         pthread_attr_t attr;
22628
22629         status = pthread_attr_init(&attr);
22630         if( status ) return status;
22631
22632 #if HAVE_PTHREADS < 7
22633         status = pthread_attr_setdetachstate(&attr, &detach);
22634         if( status < 0 ) status = errno;
22635 #else
22636         status = pthread_attr_setdetachstate(&attr, detach);
22637 #endif
22638         if( status ) return status;
22639         status = pthread_create( &t, &attr, task, NULL );
22640 #if HAVE_PTHREADS < 7
22641         if( status < 0 ) status = errno;
22642 #endif
22643         if( status ) return status;
22644 #else
22645         /* Draft 4 pthreads */
22646         status = pthread_create( &t, pthread_attr_default, task, NULL );
22647         if( status ) return errno;
22648
22649         /* give thread a chance to complete */
22650         /* it should remain joinable and hence detachable */
22651         sleep( 1 );
22652
22653         status = pthread_detach( &t );
22654         if( status ) return errno;
22655 #endif
22656
22657 #ifdef HAVE_LINUX_THREADS
22658         pthread_kill_other_threads_np();
22659 #endif
22660
22661         return 0;
22662
22663 }
22664
22665 _ACEOF
22666 rm -f conftest$ac_exeext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668   (eval $ac_link) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }; then
22677   ol_cv_pthread_lpthread=yes
22678 else
22679   echo "$as_me: program exited with status $ac_status" >&5
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683 ( exit $ac_status )
22684 ol_cv_pthread_lpthread=no
22685 fi
22686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22687 fi
22688
22689                 # restore the LIBS
22690                 LIBS="$ol_LIBS"
22691
22692 fi
22693 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22694 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22695
22696         if test $ol_cv_pthread_lpthread = yes ; then
22697                 ol_link_pthreads="-lpthread"
22698                 ol_link_threads=posix
22699         fi
22700 fi
22701
22702                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22703 if test "$ol_link_threads" = no ; then
22704         # try -lc_r
22705         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22706 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22707 if test "${ol_cv_pthread_lc_r+set}" = set; then
22708   echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710
22711                 # save the flags
22712                 ol_LIBS="$LIBS"
22713                 LIBS="-lc_r $LIBS"
22714
22715                 if test "$cross_compiling" = yes; then
22716   cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h.  */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h.  */
22722
22723 /* pthread test headers */
22724 #include <pthread.h>
22725 #if HAVE_PTHREADS < 7
22726 #include <errno.h>
22727 #endif
22728 #ifndef NULL
22729 #define NULL (void*)0
22730 #endif
22731
22732 static void *task(p)
22733         void *p;
22734 {
22735         return (void *) (p == NULL);
22736 }
22737
22738 int
22739 main ()
22740 {
22741
22742         /* pthread test function */
22743 #ifndef PTHREAD_CREATE_DETACHED
22744 #define PTHREAD_CREATE_DETACHED 1
22745 #endif
22746         pthread_t t;
22747         int status;
22748         int detach = PTHREAD_CREATE_DETACHED;
22749
22750 #if HAVE_PTHREADS > 4
22751         /* Final pthreads */
22752         pthread_attr_t attr;
22753
22754         status = pthread_attr_init(&attr);
22755         if( status ) return status;
22756
22757 #if HAVE_PTHREADS < 7
22758         status = pthread_attr_setdetachstate(&attr, &detach);
22759         if( status < 0 ) status = errno;
22760 #else
22761         status = pthread_attr_setdetachstate(&attr, detach);
22762 #endif
22763         if( status ) return status;
22764         status = pthread_create( &t, &attr, task, NULL );
22765 #if HAVE_PTHREADS < 7
22766         if( status < 0 ) status = errno;
22767 #endif
22768         if( status ) return status;
22769 #else
22770         /* Draft 4 pthreads */
22771         status = pthread_create( &t, pthread_attr_default, task, NULL );
22772         if( status ) return errno;
22773
22774         /* give thread a chance to complete */
22775         /* it should remain joinable and hence detachable */
22776         sleep( 1 );
22777
22778         status = pthread_detach( &t );
22779         if( status ) return errno;
22780 #endif
22781
22782 #ifdef HAVE_LINUX_THREADS
22783         pthread_kill_other_threads_np();
22784 #endif
22785
22786         return 0;
22787
22788   ;
22789   return 0;
22790 }
22791 _ACEOF
22792 rm -f conftest.$ac_objext conftest$ac_exeext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22794   (eval $ac_link) 2>conftest.er1
22795   ac_status=$?
22796   grep -v '^ *+' conftest.er1 >conftest.err
22797   rm -f conftest.er1
22798   cat conftest.err >&5
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } &&
22801          { ac_try='test -z "$ac_c_werror_flag"
22802                          || test ! -s conftest.err'
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); }; } &&
22808          { ac_try='test -s conftest$ac_exeext'
22809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810   (eval $ac_try) 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); }; }; then
22814   ol_cv_pthread_lc_r=yes
22815 else
22816   echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22818
22819 ol_cv_pthread_lc_r=no
22820 fi
22821 rm -f conftest.err conftest.$ac_objext \
22822       conftest$ac_exeext conftest.$ac_ext
22823 else
22824   cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h.  */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h.  */
22830
22831 /* pthread test headers */
22832 #include <pthread.h>
22833 #if HAVE_PTHREADS < 7
22834 #include <errno.h>
22835 #endif
22836 #ifndef NULL
22837 #define NULL (void*)0
22838 #endif
22839
22840 static void *task(p)
22841         void *p;
22842 {
22843         return (void *) (p == NULL);
22844 }
22845
22846
22847 int main(argc, argv)
22848         int argc;
22849         char **argv;
22850 {
22851
22852         /* pthread test function */
22853 #ifndef PTHREAD_CREATE_DETACHED
22854 #define PTHREAD_CREATE_DETACHED 1
22855 #endif
22856         pthread_t t;
22857         int status;
22858         int detach = PTHREAD_CREATE_DETACHED;
22859
22860 #if HAVE_PTHREADS > 4
22861         /* Final pthreads */
22862         pthread_attr_t attr;
22863
22864         status = pthread_attr_init(&attr);
22865         if( status ) return status;
22866
22867 #if HAVE_PTHREADS < 7
22868         status = pthread_attr_setdetachstate(&attr, &detach);
22869         if( status < 0 ) status = errno;
22870 #else
22871         status = pthread_attr_setdetachstate(&attr, detach);
22872 #endif
22873         if( status ) return status;
22874         status = pthread_create( &t, &attr, task, NULL );
22875 #if HAVE_PTHREADS < 7
22876         if( status < 0 ) status = errno;
22877 #endif
22878         if( status ) return status;
22879 #else
22880         /* Draft 4 pthreads */
22881         status = pthread_create( &t, pthread_attr_default, task, NULL );
22882         if( status ) return errno;
22883
22884         /* give thread a chance to complete */
22885         /* it should remain joinable and hence detachable */
22886         sleep( 1 );
22887
22888         status = pthread_detach( &t );
22889         if( status ) return errno;
22890 #endif
22891
22892 #ifdef HAVE_LINUX_THREADS
22893         pthread_kill_other_threads_np();
22894 #endif
22895
22896         return 0;
22897
22898 }
22899
22900 _ACEOF
22901 rm -f conftest$ac_exeext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22903   (eval $ac_link) 2>&5
22904   ac_status=$?
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908   (eval $ac_try) 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; }; then
22912   ol_cv_pthread_lc_r=yes
22913 else
22914   echo "$as_me: program exited with status $ac_status" >&5
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22917
22918 ( exit $ac_status )
22919 ol_cv_pthread_lc_r=no
22920 fi
22921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22922 fi
22923
22924                 # restore the LIBS
22925                 LIBS="$ol_LIBS"
22926
22927 fi
22928 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22929 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22930
22931         if test $ol_cv_pthread_lc_r = yes ; then
22932                 ol_link_pthreads="-lc_r"
22933                 ol_link_threads=posix
22934         fi
22935 fi
22936
22937
22938                 # Pthread try link: -threads (ol_cv_pthread_threads)
22939 if test "$ol_link_threads" = no ; then
22940         # try -threads
22941         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22942 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22943 if test "${ol_cv_pthread_threads+set}" = set; then
22944   echo $ECHO_N "(cached) $ECHO_C" >&6
22945 else
22946
22947                 # save the flags
22948                 ol_LIBS="$LIBS"
22949                 LIBS="-threads $LIBS"
22950
22951                 if test "$cross_compiling" = yes; then
22952   cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h.  */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h.  */
22958
22959 /* pthread test headers */
22960 #include <pthread.h>
22961 #if HAVE_PTHREADS < 7
22962 #include <errno.h>
22963 #endif
22964 #ifndef NULL
22965 #define NULL (void*)0
22966 #endif
22967
22968 static void *task(p)
22969         void *p;
22970 {
22971         return (void *) (p == NULL);
22972 }
22973
22974 int
22975 main ()
22976 {
22977
22978         /* pthread test function */
22979 #ifndef PTHREAD_CREATE_DETACHED
22980 #define PTHREAD_CREATE_DETACHED 1
22981 #endif
22982         pthread_t t;
22983         int status;
22984         int detach = PTHREAD_CREATE_DETACHED;
22985
22986 #if HAVE_PTHREADS > 4
22987         /* Final pthreads */
22988         pthread_attr_t attr;
22989
22990         status = pthread_attr_init(&attr);
22991         if( status ) return status;
22992
22993 #if HAVE_PTHREADS < 7
22994         status = pthread_attr_setdetachstate(&attr, &detach);
22995         if( status < 0 ) status = errno;
22996 #else
22997         status = pthread_attr_setdetachstate(&attr, detach);
22998 #endif
22999         if( status ) return status;
23000         status = pthread_create( &t, &attr, task, NULL );
23001 #if HAVE_PTHREADS < 7
23002         if( status < 0 ) status = errno;
23003 #endif
23004         if( status ) return status;
23005 #else
23006         /* Draft 4 pthreads */
23007         status = pthread_create( &t, pthread_attr_default, task, NULL );
23008         if( status ) return errno;
23009
23010         /* give thread a chance to complete */
23011         /* it should remain joinable and hence detachable */
23012         sleep( 1 );
23013
23014         status = pthread_detach( &t );
23015         if( status ) return errno;
23016 #endif
23017
23018 #ifdef HAVE_LINUX_THREADS
23019         pthread_kill_other_threads_np();
23020 #endif
23021
23022         return 0;
23023
23024   ;
23025   return 0;
23026 }
23027 _ACEOF
23028 rm -f conftest.$ac_objext conftest$ac_exeext
23029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23030   (eval $ac_link) 2>conftest.er1
23031   ac_status=$?
23032   grep -v '^ *+' conftest.er1 >conftest.err
23033   rm -f conftest.er1
23034   cat conftest.err >&5
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); } &&
23037          { ac_try='test -z "$ac_c_werror_flag"
23038                          || test ! -s conftest.err'
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); }; } &&
23044          { ac_try='test -s conftest$ac_exeext'
23045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046   (eval $ac_try) 2>&5
23047   ac_status=$?
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); }; }; then
23050   ol_cv_pthread_threads=yes
23051 else
23052   echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23054
23055 ol_cv_pthread_threads=no
23056 fi
23057 rm -f conftest.err conftest.$ac_objext \
23058       conftest$ac_exeext conftest.$ac_ext
23059 else
23060   cat >conftest.$ac_ext <<_ACEOF
23061 /* confdefs.h.  */
23062 _ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h.  */
23066
23067 /* pthread test headers */
23068 #include <pthread.h>
23069 #if HAVE_PTHREADS < 7
23070 #include <errno.h>
23071 #endif
23072 #ifndef NULL
23073 #define NULL (void*)0
23074 #endif
23075
23076 static void *task(p)
23077         void *p;
23078 {
23079         return (void *) (p == NULL);
23080 }
23081
23082
23083 int main(argc, argv)
23084         int argc;
23085         char **argv;
23086 {
23087
23088         /* pthread test function */
23089 #ifndef PTHREAD_CREATE_DETACHED
23090 #define PTHREAD_CREATE_DETACHED 1
23091 #endif
23092         pthread_t t;
23093         int status;
23094         int detach = PTHREAD_CREATE_DETACHED;
23095
23096 #if HAVE_PTHREADS > 4
23097         /* Final pthreads */
23098         pthread_attr_t attr;
23099
23100         status = pthread_attr_init(&attr);
23101         if( status ) return status;
23102
23103 #if HAVE_PTHREADS < 7
23104         status = pthread_attr_setdetachstate(&attr, &detach);
23105         if( status < 0 ) status = errno;
23106 #else
23107         status = pthread_attr_setdetachstate(&attr, detach);
23108 #endif
23109         if( status ) return status;
23110         status = pthread_create( &t, &attr, task, NULL );
23111 #if HAVE_PTHREADS < 7
23112         if( status < 0 ) status = errno;
23113 #endif
23114         if( status ) return status;
23115 #else
23116         /* Draft 4 pthreads */
23117         status = pthread_create( &t, pthread_attr_default, task, NULL );
23118         if( status ) return errno;
23119
23120         /* give thread a chance to complete */
23121         /* it should remain joinable and hence detachable */
23122         sleep( 1 );
23123
23124         status = pthread_detach( &t );
23125         if( status ) return errno;
23126 #endif
23127
23128 #ifdef HAVE_LINUX_THREADS
23129         pthread_kill_other_threads_np();
23130 #endif
23131
23132         return 0;
23133
23134 }
23135
23136 _ACEOF
23137 rm -f conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139   (eval $ac_link) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144   (eval $ac_try) 2>&5
23145   ac_status=$?
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); }; }; then
23148   ol_cv_pthread_threads=yes
23149 else
23150   echo "$as_me: program exited with status $ac_status" >&5
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154 ( exit $ac_status )
23155 ol_cv_pthread_threads=no
23156 fi
23157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23158 fi
23159
23160                 # restore the LIBS
23161                 LIBS="$ol_LIBS"
23162
23163 fi
23164 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23165 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23166
23167         if test $ol_cv_pthread_threads = yes ; then
23168                 ol_link_pthreads="-threads"
23169                 ol_link_threads=posix
23170         fi
23171 fi
23172
23173
23174                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23175 if test "$ol_link_threads" = no ; then
23176         # try -lpthreads -lmach -lexc -lc_r
23177         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23178 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23179 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23180   echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182
23183                 # save the flags
23184                 ol_LIBS="$LIBS"
23185                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23186
23187                 if test "$cross_compiling" = yes; then
23188   cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23194
23195 /* pthread test headers */
23196 #include <pthread.h>
23197 #if HAVE_PTHREADS < 7
23198 #include <errno.h>
23199 #endif
23200 #ifndef NULL
23201 #define NULL (void*)0
23202 #endif
23203
23204 static void *task(p)
23205         void *p;
23206 {
23207         return (void *) (p == NULL);
23208 }
23209
23210 int
23211 main ()
23212 {
23213
23214         /* pthread test function */
23215 #ifndef PTHREAD_CREATE_DETACHED
23216 #define PTHREAD_CREATE_DETACHED 1
23217 #endif
23218         pthread_t t;
23219         int status;
23220         int detach = PTHREAD_CREATE_DETACHED;
23221
23222 #if HAVE_PTHREADS > 4
23223         /* Final pthreads */
23224         pthread_attr_t attr;
23225
23226         status = pthread_attr_init(&attr);
23227         if( status ) return status;
23228
23229 #if HAVE_PTHREADS < 7
23230         status = pthread_attr_setdetachstate(&attr, &detach);
23231         if( status < 0 ) status = errno;
23232 #else
23233         status = pthread_attr_setdetachstate(&attr, detach);
23234 #endif
23235         if( status ) return status;
23236         status = pthread_create( &t, &attr, task, NULL );
23237 #if HAVE_PTHREADS < 7
23238         if( status < 0 ) status = errno;
23239 #endif
23240         if( status ) return status;
23241 #else
23242         /* Draft 4 pthreads */
23243         status = pthread_create( &t, pthread_attr_default, task, NULL );
23244         if( status ) return errno;
23245
23246         /* give thread a chance to complete */
23247         /* it should remain joinable and hence detachable */
23248         sleep( 1 );
23249
23250         status = pthread_detach( &t );
23251         if( status ) return errno;
23252 #endif
23253
23254 #ifdef HAVE_LINUX_THREADS
23255         pthread_kill_other_threads_np();
23256 #endif
23257
23258         return 0;
23259
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266   (eval $ac_link) 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } &&
23273          { ac_try='test -z "$ac_c_werror_flag"
23274                          || test ! -s conftest.err'
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); }; } &&
23280          { ac_try='test -s conftest$ac_exeext'
23281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282   (eval $ac_try) 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; }; then
23286   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23292 fi
23293 rm -f conftest.err conftest.$ac_objext \
23294       conftest$ac_exeext conftest.$ac_ext
23295 else
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302
23303 /* pthread test headers */
23304 #include <pthread.h>
23305 #if HAVE_PTHREADS < 7
23306 #include <errno.h>
23307 #endif
23308 #ifndef NULL
23309 #define NULL (void*)0
23310 #endif
23311
23312 static void *task(p)
23313         void *p;
23314 {
23315         return (void *) (p == NULL);
23316 }
23317
23318
23319 int main(argc, argv)
23320         int argc;
23321         char **argv;
23322 {
23323
23324         /* pthread test function */
23325 #ifndef PTHREAD_CREATE_DETACHED
23326 #define PTHREAD_CREATE_DETACHED 1
23327 #endif
23328         pthread_t t;
23329         int status;
23330         int detach = PTHREAD_CREATE_DETACHED;
23331
23332 #if HAVE_PTHREADS > 4
23333         /* Final pthreads */
23334         pthread_attr_t attr;
23335
23336         status = pthread_attr_init(&attr);
23337         if( status ) return status;
23338
23339 #if HAVE_PTHREADS < 7
23340         status = pthread_attr_setdetachstate(&attr, &detach);
23341         if( status < 0 ) status = errno;
23342 #else
23343         status = pthread_attr_setdetachstate(&attr, detach);
23344 #endif
23345         if( status ) return status;
23346         status = pthread_create( &t, &attr, task, NULL );
23347 #if HAVE_PTHREADS < 7
23348         if( status < 0 ) status = errno;
23349 #endif
23350         if( status ) return status;
23351 #else
23352         /* Draft 4 pthreads */
23353         status = pthread_create( &t, pthread_attr_default, task, NULL );
23354         if( status ) return errno;
23355
23356         /* give thread a chance to complete */
23357         /* it should remain joinable and hence detachable */
23358         sleep( 1 );
23359
23360         status = pthread_detach( &t );
23361         if( status ) return errno;
23362 #endif
23363
23364 #ifdef HAVE_LINUX_THREADS
23365         pthread_kill_other_threads_np();
23366 #endif
23367
23368         return 0;
23369
23370 }
23371
23372 _ACEOF
23373 rm -f conftest$ac_exeext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375   (eval $ac_link) 2>&5
23376   ac_status=$?
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; }; then
23384   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23385 else
23386   echo "$as_me: program exited with status $ac_status" >&5
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390 ( exit $ac_status )
23391 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23392 fi
23393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23394 fi
23395
23396                 # restore the LIBS
23397                 LIBS="$ol_LIBS"
23398
23399 fi
23400 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23401 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23402
23403         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23404                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23405                 ol_link_threads=posix
23406         fi
23407 fi
23408
23409                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23410 if test "$ol_link_threads" = no ; then
23411         # try -lpthreads -lmach -lexc
23412         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23413 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23414 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23415   echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417
23418                 # save the flags
23419                 ol_LIBS="$LIBS"
23420                 LIBS="-lpthreads -lmach -lexc $LIBS"
23421
23422                 if test "$cross_compiling" = yes; then
23423   cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h.  */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h.  */
23429
23430 /* pthread test headers */
23431 #include <pthread.h>
23432 #if HAVE_PTHREADS < 7
23433 #include <errno.h>
23434 #endif
23435 #ifndef NULL
23436 #define NULL (void*)0
23437 #endif
23438
23439 static void *task(p)
23440         void *p;
23441 {
23442         return (void *) (p == NULL);
23443 }
23444
23445 int
23446 main ()
23447 {
23448
23449         /* pthread test function */
23450 #ifndef PTHREAD_CREATE_DETACHED
23451 #define PTHREAD_CREATE_DETACHED 1
23452 #endif
23453         pthread_t t;
23454         int status;
23455         int detach = PTHREAD_CREATE_DETACHED;
23456
23457 #if HAVE_PTHREADS > 4
23458         /* Final pthreads */
23459         pthread_attr_t attr;
23460
23461         status = pthread_attr_init(&attr);
23462         if( status ) return status;
23463
23464 #if HAVE_PTHREADS < 7
23465         status = pthread_attr_setdetachstate(&attr, &detach);
23466         if( status < 0 ) status = errno;
23467 #else
23468         status = pthread_attr_setdetachstate(&attr, detach);
23469 #endif
23470         if( status ) return status;
23471         status = pthread_create( &t, &attr, task, NULL );
23472 #if HAVE_PTHREADS < 7
23473         if( status < 0 ) status = errno;
23474 #endif
23475         if( status ) return status;
23476 #else
23477         /* Draft 4 pthreads */
23478         status = pthread_create( &t, pthread_attr_default, task, NULL );
23479         if( status ) return errno;
23480
23481         /* give thread a chance to complete */
23482         /* it should remain joinable and hence detachable */
23483         sleep( 1 );
23484
23485         status = pthread_detach( &t );
23486         if( status ) return errno;
23487 #endif
23488
23489 #ifdef HAVE_LINUX_THREADS
23490         pthread_kill_other_threads_np();
23491 #endif
23492
23493         return 0;
23494
23495   ;
23496   return 0;
23497 }
23498 _ACEOF
23499 rm -f conftest.$ac_objext conftest$ac_exeext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501   (eval $ac_link) 2>conftest.er1
23502   ac_status=$?
23503   grep -v '^ *+' conftest.er1 >conftest.err
23504   rm -f conftest.er1
23505   cat conftest.err >&5
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } &&
23508          { ac_try='test -z "$ac_c_werror_flag"
23509                          || test ! -s conftest.err'
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); }; } &&
23515          { ac_try='test -s conftest$ac_exeext'
23516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517   (eval $ac_try) 2>&5
23518   ac_status=$?
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); }; }; then
23521   ol_cv_pthread_lpthreads_lmach_lexc=yes
23522 else
23523   echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526 ol_cv_pthread_lpthreads_lmach_lexc=no
23527 fi
23528 rm -f conftest.err conftest.$ac_objext \
23529       conftest$ac_exeext conftest.$ac_ext
23530 else
23531   cat >conftest.$ac_ext <<_ACEOF
23532 /* confdefs.h.  */
23533 _ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h.  */
23537
23538 /* pthread test headers */
23539 #include <pthread.h>
23540 #if HAVE_PTHREADS < 7
23541 #include <errno.h>
23542 #endif
23543 #ifndef NULL
23544 #define NULL (void*)0
23545 #endif
23546
23547 static void *task(p)
23548         void *p;
23549 {
23550         return (void *) (p == NULL);
23551 }
23552
23553
23554 int main(argc, argv)
23555         int argc;
23556         char **argv;
23557 {
23558
23559         /* pthread test function */
23560 #ifndef PTHREAD_CREATE_DETACHED
23561 #define PTHREAD_CREATE_DETACHED 1
23562 #endif
23563         pthread_t t;
23564         int status;
23565         int detach = PTHREAD_CREATE_DETACHED;
23566
23567 #if HAVE_PTHREADS > 4
23568         /* Final pthreads */
23569         pthread_attr_t attr;
23570
23571         status = pthread_attr_init(&attr);
23572         if( status ) return status;
23573
23574 #if HAVE_PTHREADS < 7
23575         status = pthread_attr_setdetachstate(&attr, &detach);
23576         if( status < 0 ) status = errno;
23577 #else
23578         status = pthread_attr_setdetachstate(&attr, detach);
23579 #endif
23580         if( status ) return status;
23581         status = pthread_create( &t, &attr, task, NULL );
23582 #if HAVE_PTHREADS < 7
23583         if( status < 0 ) status = errno;
23584 #endif
23585         if( status ) return status;
23586 #else
23587         /* Draft 4 pthreads */
23588         status = pthread_create( &t, pthread_attr_default, task, NULL );
23589         if( status ) return errno;
23590
23591         /* give thread a chance to complete */
23592         /* it should remain joinable and hence detachable */
23593         sleep( 1 );
23594
23595         status = pthread_detach( &t );
23596         if( status ) return errno;
23597 #endif
23598
23599 #ifdef HAVE_LINUX_THREADS
23600         pthread_kill_other_threads_np();
23601 #endif
23602
23603         return 0;
23604
23605 }
23606
23607 _ACEOF
23608 rm -f conftest$ac_exeext
23609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23610   (eval $ac_link) 2>&5
23611   ac_status=$?
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615   (eval $ac_try) 2>&5
23616   ac_status=$?
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); }; }; then
23619   ol_cv_pthread_lpthreads_lmach_lexc=yes
23620 else
23621   echo "$as_me: program exited with status $ac_status" >&5
23622 echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23624
23625 ( exit $ac_status )
23626 ol_cv_pthread_lpthreads_lmach_lexc=no
23627 fi
23628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23629 fi
23630
23631                 # restore the LIBS
23632                 LIBS="$ol_LIBS"
23633
23634 fi
23635 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23636 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23637
23638         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23639                 ol_link_pthreads="-lpthreads -lmach -lexc"
23640                 ol_link_threads=posix
23641         fi
23642 fi
23643
23644                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23645 if test "$ol_link_threads" = no ; then
23646         # try -lpthreads -lexc
23647         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23648 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23649 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652
23653                 # save the flags
23654                 ol_LIBS="$LIBS"
23655                 LIBS="-lpthreads -lexc $LIBS"
23656
23657                 if test "$cross_compiling" = yes; then
23658   cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h.  */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h.  */
23664
23665 /* pthread test headers */
23666 #include <pthread.h>
23667 #if HAVE_PTHREADS < 7
23668 #include <errno.h>
23669 #endif
23670 #ifndef NULL
23671 #define NULL (void*)0
23672 #endif
23673
23674 static void *task(p)
23675         void *p;
23676 {
23677         return (void *) (p == NULL);
23678 }
23679
23680 int
23681 main ()
23682 {
23683
23684         /* pthread test function */
23685 #ifndef PTHREAD_CREATE_DETACHED
23686 #define PTHREAD_CREATE_DETACHED 1
23687 #endif
23688         pthread_t t;
23689         int status;
23690         int detach = PTHREAD_CREATE_DETACHED;
23691
23692 #if HAVE_PTHREADS > 4
23693         /* Final pthreads */
23694         pthread_attr_t attr;
23695
23696         status = pthread_attr_init(&attr);
23697         if( status ) return status;
23698
23699 #if HAVE_PTHREADS < 7
23700         status = pthread_attr_setdetachstate(&attr, &detach);
23701         if( status < 0 ) status = errno;
23702 #else
23703         status = pthread_attr_setdetachstate(&attr, detach);
23704 #endif
23705         if( status ) return status;
23706         status = pthread_create( &t, &attr, task, NULL );
23707 #if HAVE_PTHREADS < 7
23708         if( status < 0 ) status = errno;
23709 #endif
23710         if( status ) return status;
23711 #else
23712         /* Draft 4 pthreads */
23713         status = pthread_create( &t, pthread_attr_default, task, NULL );
23714         if( status ) return errno;
23715
23716         /* give thread a chance to complete */
23717         /* it should remain joinable and hence detachable */
23718         sleep( 1 );
23719
23720         status = pthread_detach( &t );
23721         if( status ) return errno;
23722 #endif
23723
23724 #ifdef HAVE_LINUX_THREADS
23725         pthread_kill_other_threads_np();
23726 #endif
23727
23728         return 0;
23729
23730   ;
23731   return 0;
23732 }
23733 _ACEOF
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23736   (eval $ac_link) 2>conftest.er1
23737   ac_status=$?
23738   grep -v '^ *+' conftest.er1 >conftest.err
23739   rm -f conftest.er1
23740   cat conftest.err >&5
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); } &&
23743          { ac_try='test -z "$ac_c_werror_flag"
23744                          || test ! -s conftest.err'
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); }; } &&
23750          { ac_try='test -s conftest$ac_exeext'
23751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752   (eval $ac_try) 2>&5
23753   ac_status=$?
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); }; }; then
23756   ol_cv_pthread_lpthreads_lexc=yes
23757 else
23758   echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761 ol_cv_pthread_lpthreads_lexc=no
23762 fi
23763 rm -f conftest.err conftest.$ac_objext \
23764       conftest$ac_exeext conftest.$ac_ext
23765 else
23766   cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772
23773 /* pthread test headers */
23774 #include <pthread.h>
23775 #if HAVE_PTHREADS < 7
23776 #include <errno.h>
23777 #endif
23778 #ifndef NULL
23779 #define NULL (void*)0
23780 #endif
23781
23782 static void *task(p)
23783         void *p;
23784 {
23785         return (void *) (p == NULL);
23786 }
23787
23788
23789 int main(argc, argv)
23790         int argc;
23791         char **argv;
23792 {
23793
23794         /* pthread test function */
23795 #ifndef PTHREAD_CREATE_DETACHED
23796 #define PTHREAD_CREATE_DETACHED 1
23797 #endif
23798         pthread_t t;
23799         int status;
23800         int detach = PTHREAD_CREATE_DETACHED;
23801
23802 #if HAVE_PTHREADS > 4
23803         /* Final pthreads */
23804         pthread_attr_t attr;
23805
23806         status = pthread_attr_init(&attr);
23807         if( status ) return status;
23808
23809 #if HAVE_PTHREADS < 7
23810         status = pthread_attr_setdetachstate(&attr, &detach);
23811         if( status < 0 ) status = errno;
23812 #else
23813         status = pthread_attr_setdetachstate(&attr, detach);
23814 #endif
23815         if( status ) return status;
23816         status = pthread_create( &t, &attr, task, NULL );
23817 #if HAVE_PTHREADS < 7
23818         if( status < 0 ) status = errno;
23819 #endif
23820         if( status ) return status;
23821 #else
23822         /* Draft 4 pthreads */
23823         status = pthread_create( &t, pthread_attr_default, task, NULL );
23824         if( status ) return errno;
23825
23826         /* give thread a chance to complete */
23827         /* it should remain joinable and hence detachable */
23828         sleep( 1 );
23829
23830         status = pthread_detach( &t );
23831         if( status ) return errno;
23832 #endif
23833
23834 #ifdef HAVE_LINUX_THREADS
23835         pthread_kill_other_threads_np();
23836 #endif
23837
23838         return 0;
23839
23840 }
23841
23842 _ACEOF
23843 rm -f conftest$ac_exeext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23845   (eval $ac_link) 2>&5
23846   ac_status=$?
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850   (eval $ac_try) 2>&5
23851   ac_status=$?
23852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853   (exit $ac_status); }; }; then
23854   ol_cv_pthread_lpthreads_lexc=yes
23855 else
23856   echo "$as_me: program exited with status $ac_status" >&5
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860 ( exit $ac_status )
23861 ol_cv_pthread_lpthreads_lexc=no
23862 fi
23863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23864 fi
23865
23866                 # restore the LIBS
23867                 LIBS="$ol_LIBS"
23868
23869 fi
23870 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23871 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23872
23873         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23874                 ol_link_pthreads="-lpthreads -lexc"
23875                 ol_link_threads=posix
23876         fi
23877 fi
23878
23879
23880                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23881 if test "$ol_link_threads" = no ; then
23882         # try -lpthreads
23883         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23884 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23885 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23886   echo $ECHO_N "(cached) $ECHO_C" >&6
23887 else
23888
23889                 # save the flags
23890                 ol_LIBS="$LIBS"
23891                 LIBS="-lpthreads $LIBS"
23892
23893                 if test "$cross_compiling" = yes; then
23894   cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h.  */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h.  */
23900
23901 /* pthread test headers */
23902 #include <pthread.h>
23903 #if HAVE_PTHREADS < 7
23904 #include <errno.h>
23905 #endif
23906 #ifndef NULL
23907 #define NULL (void*)0
23908 #endif
23909
23910 static void *task(p)
23911         void *p;
23912 {
23913         return (void *) (p == NULL);
23914 }
23915
23916 int
23917 main ()
23918 {
23919
23920         /* pthread test function */
23921 #ifndef PTHREAD_CREATE_DETACHED
23922 #define PTHREAD_CREATE_DETACHED 1
23923 #endif
23924         pthread_t t;
23925         int status;
23926         int detach = PTHREAD_CREATE_DETACHED;
23927
23928 #if HAVE_PTHREADS > 4
23929         /* Final pthreads */
23930         pthread_attr_t attr;
23931
23932         status = pthread_attr_init(&attr);
23933         if( status ) return status;
23934
23935 #if HAVE_PTHREADS < 7
23936         status = pthread_attr_setdetachstate(&attr, &detach);
23937         if( status < 0 ) status = errno;
23938 #else
23939         status = pthread_attr_setdetachstate(&attr, detach);
23940 #endif
23941         if( status ) return status;
23942         status = pthread_create( &t, &attr, task, NULL );
23943 #if HAVE_PTHREADS < 7
23944         if( status < 0 ) status = errno;
23945 #endif
23946         if( status ) return status;
23947 #else
23948         /* Draft 4 pthreads */
23949         status = pthread_create( &t, pthread_attr_default, task, NULL );
23950         if( status ) return errno;
23951
23952         /* give thread a chance to complete */
23953         /* it should remain joinable and hence detachable */
23954         sleep( 1 );
23955
23956         status = pthread_detach( &t );
23957         if( status ) return errno;
23958 #endif
23959
23960 #ifdef HAVE_LINUX_THREADS
23961         pthread_kill_other_threads_np();
23962 #endif
23963
23964         return 0;
23965
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23972   (eval $ac_link) 2>conftest.er1
23973   ac_status=$?
23974   grep -v '^ *+' conftest.er1 >conftest.err
23975   rm -f conftest.er1
23976   cat conftest.err >&5
23977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); } &&
23979          { ac_try='test -z "$ac_c_werror_flag"
23980                          || test ! -s conftest.err'
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); }; } &&
23986          { ac_try='test -s conftest$ac_exeext'
23987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988   (eval $ac_try) 2>&5
23989   ac_status=$?
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); }; }; then
23992   ol_cv_pthread_lib_lpthreads=yes
23993 else
23994   echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23996
23997 ol_cv_pthread_lib_lpthreads=no
23998 fi
23999 rm -f conftest.err conftest.$ac_objext \
24000       conftest$ac_exeext conftest.$ac_ext
24001 else
24002   cat >conftest.$ac_ext <<_ACEOF
24003 /* confdefs.h.  */
24004 _ACEOF
24005 cat confdefs.h >>conftest.$ac_ext
24006 cat >>conftest.$ac_ext <<_ACEOF
24007 /* end confdefs.h.  */
24008
24009 /* pthread test headers */
24010 #include <pthread.h>
24011 #if HAVE_PTHREADS < 7
24012 #include <errno.h>
24013 #endif
24014 #ifndef NULL
24015 #define NULL (void*)0
24016 #endif
24017
24018 static void *task(p)
24019         void *p;
24020 {
24021         return (void *) (p == NULL);
24022 }
24023
24024
24025 int main(argc, argv)
24026         int argc;
24027         char **argv;
24028 {
24029
24030         /* pthread test function */
24031 #ifndef PTHREAD_CREATE_DETACHED
24032 #define PTHREAD_CREATE_DETACHED 1
24033 #endif
24034         pthread_t t;
24035         int status;
24036         int detach = PTHREAD_CREATE_DETACHED;
24037
24038 #if HAVE_PTHREADS > 4
24039         /* Final pthreads */
24040         pthread_attr_t attr;
24041
24042         status = pthread_attr_init(&attr);
24043         if( status ) return status;
24044
24045 #if HAVE_PTHREADS < 7
24046         status = pthread_attr_setdetachstate(&attr, &detach);
24047         if( status < 0 ) status = errno;
24048 #else
24049         status = pthread_attr_setdetachstate(&attr, detach);
24050 #endif
24051         if( status ) return status;
24052         status = pthread_create( &t, &attr, task, NULL );
24053 #if HAVE_PTHREADS < 7
24054         if( status < 0 ) status = errno;
24055 #endif
24056         if( status ) return status;
24057 #else
24058         /* Draft 4 pthreads */
24059         status = pthread_create( &t, pthread_attr_default, task, NULL );
24060         if( status ) return errno;
24061
24062         /* give thread a chance to complete */
24063         /* it should remain joinable and hence detachable */
24064         sleep( 1 );
24065
24066         status = pthread_detach( &t );
24067         if( status ) return errno;
24068 #endif
24069
24070 #ifdef HAVE_LINUX_THREADS
24071         pthread_kill_other_threads_np();
24072 #endif
24073
24074         return 0;
24075
24076 }
24077
24078 _ACEOF
24079 rm -f conftest$ac_exeext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24081   (eval $ac_link) 2>&5
24082   ac_status=$?
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086   (eval $ac_try) 2>&5
24087   ac_status=$?
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); }; }; then
24090   ol_cv_pthread_lib_lpthreads=yes
24091 else
24092   echo "$as_me: program exited with status $ac_status" >&5
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096 ( exit $ac_status )
24097 ol_cv_pthread_lib_lpthreads=no
24098 fi
24099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24100 fi
24101
24102                 # restore the LIBS
24103                 LIBS="$ol_LIBS"
24104
24105 fi
24106 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24107 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24108
24109         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24110                 ol_link_pthreads="-lpthreads"
24111                 ol_link_threads=posix
24112         fi
24113 fi
24114
24115
24116                 if test $ol_link_threads != no ; then
24117                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24118
24119                                                 save_CPPFLAGS="$CPPFLAGS"
24120                         save_LIBS="$LIBS"
24121                         LIBS="$LTHREAD_LIBS $LIBS"
24122
24123
24124
24125
24126 for ac_func in sched_yield pthread_yield thr_yield
24127 do
24128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24129 echo "$as_me:$LINENO: checking for $ac_func" >&5
24130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24131 if eval "test \"\${$as_ac_var+set}\" = set"; then
24132   echo $ECHO_N "(cached) $ECHO_C" >&6
24133 else
24134   cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24142 #define $ac_func innocuous_$ac_func
24143
24144 /* System header to define __stub macros and hopefully few prototypes,
24145     which can conflict with char $ac_func (); below.
24146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24147     <limits.h> exists even on freestanding compilers.  */
24148
24149 #ifdef __STDC__
24150 # include <limits.h>
24151 #else
24152 # include <assert.h>
24153 #endif
24154
24155 #undef $ac_func
24156
24157 /* Override any gcc2 internal prototype to avoid an error.  */
24158 #ifdef __cplusplus
24159 extern "C"
24160 {
24161 #endif
24162 /* We use char because int might match the return type of a gcc2
24163    builtin and then its argument prototype would still apply.  */
24164 char $ac_func ();
24165 /* The GNU C library defines this for functions which it implements
24166     to always fail with ENOSYS.  Some functions are actually named
24167     something starting with __ and the normal name is an alias.  */
24168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24169 choke me
24170 #else
24171 char (*f) () = $ac_func;
24172 #endif
24173 #ifdef __cplusplus
24174 }
24175 #endif
24176
24177 int
24178 main ()
24179 {
24180 return f != $ac_func;
24181   ;
24182   return 0;
24183 }
24184 _ACEOF
24185 rm -f conftest.$ac_objext conftest$ac_exeext
24186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187   (eval $ac_link) 2>conftest.er1
24188   ac_status=$?
24189   grep -v '^ *+' conftest.er1 >conftest.err
24190   rm -f conftest.er1
24191   cat conftest.err >&5
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } &&
24194          { ac_try='test -z "$ac_c_werror_flag"
24195                          || test ! -s conftest.err'
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); }; } &&
24201          { ac_try='test -s conftest$ac_exeext'
24202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203   (eval $ac_try) 2>&5
24204   ac_status=$?
24205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206   (exit $ac_status); }; }; then
24207   eval "$as_ac_var=yes"
24208 else
24209   echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212 eval "$as_ac_var=no"
24213 fi
24214 rm -f conftest.err conftest.$ac_objext \
24215       conftest$ac_exeext conftest.$ac_ext
24216 fi
24217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24219 if test `eval echo '${'$as_ac_var'}'` = yes; then
24220   cat >>confdefs.h <<_ACEOF
24221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24222 _ACEOF
24223
24224 fi
24225 done
24226
24227
24228                         if test $ac_cv_func_sched_yield = no &&
24229                            test $ac_cv_func_pthread_yield = no &&
24230                            test $ac_cv_func_thr_yield = no ; then
24231                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24232 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24233 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24234   echo $ECHO_N "(cached) $ECHO_C" >&6
24235 else
24236   ac_check_lib_save_LIBS=$LIBS
24237 LIBS="-lrt  $LIBS"
24238 cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244
24245 /* Override any gcc2 internal prototype to avoid an error.  */
24246 #ifdef __cplusplus
24247 extern "C"
24248 #endif
24249 /* We use char because int might match the return type of a gcc2
24250    builtin and then its argument prototype would still apply.  */
24251 char sched_yield ();
24252 int
24253 main ()
24254 {
24255 sched_yield ();
24256   ;
24257   return 0;
24258 }
24259 _ACEOF
24260 rm -f conftest.$ac_objext conftest$ac_exeext
24261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24262   (eval $ac_link) 2>conftest.er1
24263   ac_status=$?
24264   grep -v '^ *+' conftest.er1 >conftest.err
24265   rm -f conftest.er1
24266   cat conftest.err >&5
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); } &&
24269          { ac_try='test -z "$ac_c_werror_flag"
24270                          || test ! -s conftest.err'
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); }; } &&
24276          { ac_try='test -s conftest$ac_exeext'
24277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24278   (eval $ac_try) 2>&5
24279   ac_status=$?
24280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281   (exit $ac_status); }; }; then
24282   ac_cv_lib_rt_sched_yield=yes
24283 else
24284   echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287 ac_cv_lib_rt_sched_yield=no
24288 fi
24289 rm -f conftest.err conftest.$ac_objext \
24290       conftest$ac_exeext conftest.$ac_ext
24291 LIBS=$ac_check_lib_save_LIBS
24292 fi
24293 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24294 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24295 if test $ac_cv_lib_rt_sched_yield = yes; then
24296   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24297
24298 cat >>confdefs.h <<\_ACEOF
24299 #define HAVE_SCHED_YIELD 1
24300 _ACEOF
24301
24302                                         ac_cv_func_sched_yield=yes
24303 else
24304   ac_cv_func_sched_yield=no
24305 fi
24306
24307                         fi
24308                         if test $ac_cv_func_sched_yield = no &&
24309                            test $ac_cv_func_pthread_yield = no &&
24310                            test "$ac_cv_func_thr_yield" = no ; then
24311                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24312 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24313                         fi
24314
24315
24316
24317 for ac_func in pthread_kill pthread_rwlock_destroy
24318 do
24319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24320 echo "$as_me:$LINENO: checking for $ac_func" >&5
24321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24322 if eval "test \"\${$as_ac_var+set}\" = set"; then
24323   echo $ECHO_N "(cached) $ECHO_C" >&6
24324 else
24325   cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24333 #define $ac_func innocuous_$ac_func
24334
24335 /* System header to define __stub macros and hopefully few prototypes,
24336     which can conflict with char $ac_func (); below.
24337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24338     <limits.h> exists even on freestanding compilers.  */
24339
24340 #ifdef __STDC__
24341 # include <limits.h>
24342 #else
24343 # include <assert.h>
24344 #endif
24345
24346 #undef $ac_func
24347
24348 /* Override any gcc2 internal prototype to avoid an error.  */
24349 #ifdef __cplusplus
24350 extern "C"
24351 {
24352 #endif
24353 /* We use char because int might match the return type of a gcc2
24354    builtin and then its argument prototype would still apply.  */
24355 char $ac_func ();
24356 /* The GNU C library defines this for functions which it implements
24357     to always fail with ENOSYS.  Some functions are actually named
24358     something starting with __ and the normal name is an alias.  */
24359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24360 choke me
24361 #else
24362 char (*f) () = $ac_func;
24363 #endif
24364 #ifdef __cplusplus
24365 }
24366 #endif
24367
24368 int
24369 main ()
24370 {
24371 return f != $ac_func;
24372   ;
24373   return 0;
24374 }
24375 _ACEOF
24376 rm -f conftest.$ac_objext conftest$ac_exeext
24377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24378   (eval $ac_link) 2>conftest.er1
24379   ac_status=$?
24380   grep -v '^ *+' conftest.er1 >conftest.err
24381   rm -f conftest.er1
24382   cat conftest.err >&5
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); } &&
24385          { ac_try='test -z "$ac_c_werror_flag"
24386                          || test ! -s conftest.err'
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); }; } &&
24392          { ac_try='test -s conftest$ac_exeext'
24393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24394   (eval $ac_try) 2>&5
24395   ac_status=$?
24396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397   (exit $ac_status); }; }; then
24398   eval "$as_ac_var=yes"
24399 else
24400   echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24402
24403 eval "$as_ac_var=no"
24404 fi
24405 rm -f conftest.err conftest.$ac_objext \
24406       conftest$ac_exeext conftest.$ac_ext
24407 fi
24408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24410 if test `eval echo '${'$as_ac_var'}'` = yes; then
24411   cat >>confdefs.h <<_ACEOF
24412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24413 _ACEOF
24414
24415 fi
24416 done
24417
24418
24419                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24420 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24421 if test "${ol_cv_func_pthread_detach+set}" = set; then
24422   echo $ECHO_N "(cached) $ECHO_C" >&6
24423 else
24424
24425                                                                 cat >conftest.$ac_ext <<_ACEOF
24426 /* confdefs.h.  */
24427 _ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h.  */
24431
24432 #include <pthread.h>
24433 #ifndef NULL
24434 #define NULL (void*)0
24435 #endif
24436
24437 int
24438 main ()
24439 {
24440 pthread_detach(NULL);
24441   ;
24442   return 0;
24443 }
24444 _ACEOF
24445 rm -f conftest.$ac_objext conftest$ac_exeext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24447   (eval $ac_link) 2>conftest.er1
24448   ac_status=$?
24449   grep -v '^ *+' conftest.er1 >conftest.err
24450   rm -f conftest.er1
24451   cat conftest.err >&5
24452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453   (exit $ac_status); } &&
24454          { ac_try='test -z "$ac_c_werror_flag"
24455                          || test ! -s conftest.err'
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); }; } &&
24461          { ac_try='test -s conftest$ac_exeext'
24462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463   (eval $ac_try) 2>&5
24464   ac_status=$?
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); }; }; then
24467   ol_cv_func_pthread_detach=yes
24468 else
24469   echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24471
24472 ol_cv_func_pthread_detach=no
24473 fi
24474 rm -f conftest.err conftest.$ac_objext \
24475       conftest$ac_exeext conftest.$ac_ext
24476
24477 fi
24478 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24479 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24480
24481                         if test $ol_cv_func_pthread_detach = no ; then
24482                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24483 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24484    { (exit 1); exit 1; }; }
24485                         fi
24486
24487
24488 cat >>confdefs.h <<\_ACEOF
24489 #define HAVE_PTHREAD_DETACH 1
24490 _ACEOF
24491
24492
24493
24494
24495
24496
24497 for ac_func in \
24498                                 pthread_setconcurrency \
24499                                 pthread_getconcurrency \
24500                                 thr_setconcurrency \
24501                                 thr_getconcurrency \
24502
24503 do
24504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24505 echo "$as_me:$LINENO: checking for $ac_func" >&5
24506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24507 if eval "test \"\${$as_ac_var+set}\" = set"; then
24508   echo $ECHO_N "(cached) $ECHO_C" >&6
24509 else
24510   cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h.  */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h.  */
24516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24518 #define $ac_func innocuous_$ac_func
24519
24520 /* System header to define __stub macros and hopefully few prototypes,
24521     which can conflict with char $ac_func (); below.
24522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24523     <limits.h> exists even on freestanding compilers.  */
24524
24525 #ifdef __STDC__
24526 # include <limits.h>
24527 #else
24528 # include <assert.h>
24529 #endif
24530
24531 #undef $ac_func
24532
24533 /* Override any gcc2 internal prototype to avoid an error.  */
24534 #ifdef __cplusplus
24535 extern "C"
24536 {
24537 #endif
24538 /* We use char because int might match the return type of a gcc2
24539    builtin and then its argument prototype would still apply.  */
24540 char $ac_func ();
24541 /* The GNU C library defines this for functions which it implements
24542     to always fail with ENOSYS.  Some functions are actually named
24543     something starting with __ and the normal name is an alias.  */
24544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24545 choke me
24546 #else
24547 char (*f) () = $ac_func;
24548 #endif
24549 #ifdef __cplusplus
24550 }
24551 #endif
24552
24553 int
24554 main ()
24555 {
24556 return f != $ac_func;
24557   ;
24558   return 0;
24559 }
24560 _ACEOF
24561 rm -f conftest.$ac_objext conftest$ac_exeext
24562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24563   (eval $ac_link) 2>conftest.er1
24564   ac_status=$?
24565   grep -v '^ *+' conftest.er1 >conftest.err
24566   rm -f conftest.er1
24567   cat conftest.err >&5
24568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569   (exit $ac_status); } &&
24570          { ac_try='test -z "$ac_c_werror_flag"
24571                          || test ! -s conftest.err'
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); }; } &&
24577          { ac_try='test -s conftest$ac_exeext'
24578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579   (eval $ac_try) 2>&5
24580   ac_status=$?
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); }; }; then
24583   eval "$as_ac_var=yes"
24584 else
24585   echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588 eval "$as_ac_var=no"
24589 fi
24590 rm -f conftest.err conftest.$ac_objext \
24591       conftest$ac_exeext conftest.$ac_ext
24592 fi
24593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24595 if test `eval echo '${'$as_ac_var'}'` = yes; then
24596   cat >>confdefs.h <<_ACEOF
24597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24598 _ACEOF
24599
24600 fi
24601 done
24602
24603
24604
24605
24606 for ac_func in pthread_kill_other_threads_np
24607 do
24608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24609 echo "$as_me:$LINENO: checking for $ac_func" >&5
24610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24611 if eval "test \"\${$as_ac_var+set}\" = set"; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24622 #define $ac_func innocuous_$ac_func
24623
24624 /* System header to define __stub macros and hopefully few prototypes,
24625     which can conflict with char $ac_func (); below.
24626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24627     <limits.h> exists even on freestanding compilers.  */
24628
24629 #ifdef __STDC__
24630 # include <limits.h>
24631 #else
24632 # include <assert.h>
24633 #endif
24634
24635 #undef $ac_func
24636
24637 /* Override any gcc2 internal prototype to avoid an error.  */
24638 #ifdef __cplusplus
24639 extern "C"
24640 {
24641 #endif
24642 /* We use char because int might match the return type of a gcc2
24643    builtin and then its argument prototype would still apply.  */
24644 char $ac_func ();
24645 /* The GNU C library defines this for functions which it implements
24646     to always fail with ENOSYS.  Some functions are actually named
24647     something starting with __ and the normal name is an alias.  */
24648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24649 choke me
24650 #else
24651 char (*f) () = $ac_func;
24652 #endif
24653 #ifdef __cplusplus
24654 }
24655 #endif
24656
24657 int
24658 main ()
24659 {
24660 return f != $ac_func;
24661   ;
24662   return 0;
24663 }
24664 _ACEOF
24665 rm -f conftest.$ac_objext conftest$ac_exeext
24666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24667   (eval $ac_link) 2>conftest.er1
24668   ac_status=$?
24669   grep -v '^ *+' conftest.er1 >conftest.err
24670   rm -f conftest.er1
24671   cat conftest.err >&5
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); } &&
24674          { ac_try='test -z "$ac_c_werror_flag"
24675                          || test ! -s conftest.err'
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); }; } &&
24681          { ac_try='test -s conftest$ac_exeext'
24682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683   (eval $ac_try) 2>&5
24684   ac_status=$?
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); }; }; then
24687   eval "$as_ac_var=yes"
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692 eval "$as_ac_var=no"
24693 fi
24694 rm -f conftest.err conftest.$ac_objext \
24695       conftest$ac_exeext conftest.$ac_ext
24696 fi
24697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24699 if test `eval echo '${'$as_ac_var'}'` = yes; then
24700   cat >>confdefs.h <<_ACEOF
24701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24702 _ACEOF
24703
24704 fi
24705 done
24706
24707         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24708 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24709 if test "${ol_cv_sys_linux_threads+set}" = set; then
24710   echo $ECHO_N "(cached) $ECHO_C" >&6
24711 else
24712   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24713 fi
24714 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24715 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24716
24717
24718
24719
24720         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24721 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24722 if test "${ol_cv_linux_threads+set}" = set; then
24723   echo $ECHO_N "(cached) $ECHO_C" >&6
24724 else
24725
24726                 if test $ol_cv_header_linux_threads = yes &&
24727                    test $ol_cv_sys_linux_threads = yes; then
24728                         ol_cv_linux_threads=yes
24729                 elif test $ol_cv_header_linux_threads = no &&
24730                      test $ol_cv_sys_linux_threads = no; then
24731                         ol_cv_linux_threads=no
24732                 else
24733                         ol_cv_linux_threads=error
24734                 fi
24735
24736 fi
24737 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24738 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24739
24740
24741                         if test $ol_cv_linux_threads = error; then
24742                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24743 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24744    { (exit 1); exit 1; }; };
24745                         fi
24746
24747                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24748 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24749 if test "${ol_cv_pthread_create_works+set}" = set; then
24750   echo $ECHO_N "(cached) $ECHO_C" >&6
24751 else
24752
24753                         if test "$cross_compiling" = yes; then
24754                                 ol_cv_pthread_create_works=yes
24755 else
24756   cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h.  */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h.  */
24762
24763 /* pthread test headers */
24764 #include <pthread.h>
24765 #if HAVE_PTHREADS < 7
24766 #include <errno.h>
24767 #endif
24768 #ifndef NULL
24769 #define NULL (void*)0
24770 #endif
24771
24772 static void *task(p)
24773         void *p;
24774 {
24775         return (void *) (p == NULL);
24776 }
24777
24778
24779 int main(argc, argv)
24780         int argc;
24781         char **argv;
24782 {
24783
24784         /* pthread test function */
24785 #ifndef PTHREAD_CREATE_DETACHED
24786 #define PTHREAD_CREATE_DETACHED 1
24787 #endif
24788         pthread_t t;
24789         int status;
24790         int detach = PTHREAD_CREATE_DETACHED;
24791
24792 #if HAVE_PTHREADS > 4
24793         /* Final pthreads */
24794         pthread_attr_t attr;
24795
24796         status = pthread_attr_init(&attr);
24797         if( status ) return status;
24798
24799 #if HAVE_PTHREADS < 7
24800         status = pthread_attr_setdetachstate(&attr, &detach);
24801         if( status < 0 ) status = errno;
24802 #else
24803         status = pthread_attr_setdetachstate(&attr, detach);
24804 #endif
24805         if( status ) return status;
24806         status = pthread_create( &t, &attr, task, NULL );
24807 #if HAVE_PTHREADS < 7
24808         if( status < 0 ) status = errno;
24809 #endif
24810         if( status ) return status;
24811 #else
24812         /* Draft 4 pthreads */
24813         status = pthread_create( &t, pthread_attr_default, task, NULL );
24814         if( status ) return errno;
24815
24816         /* give thread a chance to complete */
24817         /* it should remain joinable and hence detachable */
24818         sleep( 1 );
24819
24820         status = pthread_detach( &t );
24821         if( status ) return errno;
24822 #endif
24823
24824 #ifdef HAVE_LINUX_THREADS
24825         pthread_kill_other_threads_np();
24826 #endif
24827
24828         return 0;
24829
24830 }
24831
24832 _ACEOF
24833 rm -f conftest$ac_exeext
24834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24835   (eval $ac_link) 2>&5
24836   ac_status=$?
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840   (eval $ac_try) 2>&5
24841   ac_status=$?
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); }; }; then
24844   ol_cv_pthread_create_works=yes
24845 else
24846   echo "$as_me: program exited with status $ac_status" >&5
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850 ( exit $ac_status )
24851 ol_cv_pthread_create_works=no
24852 fi
24853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24854 fi
24855 fi
24856 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24857 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24858
24859                         if test $ol_cv_pthread_create_works = no ; then
24860                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24861 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24862    { (exit 1); exit 1; }; }
24863                         fi
24864
24865                         ol_replace_broken_yield=no
24866
24867                         if test $ol_replace_broken_yield = yes ; then
24868
24869 cat >>confdefs.h <<\_ACEOF
24870 #define REPLACE_BROKEN_YIELD 1
24871 _ACEOF
24872
24873                         fi
24874
24875                                                 if test $ol_with_yielding_select = auto ; then
24876                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24877 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24878 if test "${ol_cv_pthread_select_yields+set}" = set; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 else
24881
24882                                 if test "$cross_compiling" = yes; then
24883   ol_cv_pthread_select_yields=cross
24884 else
24885   cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891
24892 #include <sys/types.h>
24893 #include <sys/time.h>
24894 #include <unistd.h>
24895 #include <pthread.h>
24896 #ifndef NULL
24897 #define NULL (void*) 0
24898 #endif
24899
24900 static int fildes[2];
24901
24902 static void *task(p)
24903         void *p;
24904 {
24905         int i;
24906         struct timeval tv;
24907
24908         fd_set rfds;
24909
24910         tv.tv_sec=10;
24911         tv.tv_usec=0;
24912
24913         FD_ZERO(&rfds);
24914         FD_SET(fildes[0], &rfds);
24915
24916         /* we're not interested in any fds */
24917         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24918
24919         if(i < 0) {
24920                 perror("select");
24921                 exit(10);
24922         }
24923
24924         exit(0); /* if we exit here, the select blocked the whole process */
24925 }
24926
24927 int main(argc, argv)
24928         int argc;
24929         char **argv;
24930 {
24931         pthread_t t;
24932
24933         /* create a pipe to select */
24934         if(pipe(&fildes[0])) {
24935                 perror("select");
24936                 exit(1);
24937         }
24938
24939 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24940         (void) pthread_setconcurrency(2);
24941 #else
24942 #ifdef HAVE_THR_SETCONCURRENCY
24943         /* Set Solaris LWP concurrency to 2 */
24944         thr_setconcurrency(2);
24945 #endif
24946 #endif
24947
24948 #if HAVE_PTHREADS < 6
24949         pthread_create(&t, pthread_attr_default, task, NULL);
24950 #else
24951         pthread_create(&t, NULL, task, NULL);
24952 #endif
24953
24954         /* make sure task runs first */
24955 #if HAVE_THR_YIELD
24956         thr_yield();
24957 #elif defined( HAVE_SCHED_YIELD )
24958         sched_yield();
24959 #elif defined( HAVE_PTHREAD_YIELD )
24960         pthread_yield();
24961 #endif
24962
24963         exit(2);
24964 }
24965 _ACEOF
24966 rm -f conftest$ac_exeext
24967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24968   (eval $ac_link) 2>&5
24969   ac_status=$?
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24973   (eval $ac_try) 2>&5
24974   ac_status=$?
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); }; }; then
24977   ol_cv_pthread_select_yields=no
24978 else
24979   echo "$as_me: program exited with status $ac_status" >&5
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983 ( exit $ac_status )
24984 ol_cv_pthread_select_yields=yes
24985 fi
24986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24987 fi
24988 fi
24989 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24990 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24991
24992                                 if test $ol_cv_pthread_select_yields = cross ; then
24993                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24994 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24995    { (exit 1); exit 1; }; }
24996                                 fi
24997
24998                                 if test $ol_cv_pthread_select_yields = yes ; then
24999                                         ol_with_yielding_select=yes
25000                                 fi
25001                         fi
25002
25003                                                 CPPFLAGS="$save_CPPFLAGS"
25004                         LIBS="$save_LIBS"
25005                 else
25006                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25007 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25008    { (exit 1); exit 1; }; }
25009                 fi
25010         fi
25011
25012         if test $ol_with_threads = posix ; then
25013                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25014 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25015    { (exit 1); exit 1; }; }
25016         fi
25017         ;;
25018 esac
25019
25020 case $ol_with_threads in auto | yes | mach)
25021
25022
25023
25024 for ac_header in mach/cthreads.h cthreads.h
25025 do
25026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25028   echo "$as_me:$LINENO: checking for $ac_header" >&5
25029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25031   echo $ECHO_N "(cached) $ECHO_C" >&6
25032 fi
25033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25035 else
25036   # Is the header compilable?
25037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25039 cat >conftest.$ac_ext <<_ACEOF
25040 /* confdefs.h.  */
25041 _ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h.  */
25045 $ac_includes_default
25046 #include <$ac_header>
25047 _ACEOF
25048 rm -f conftest.$ac_objext
25049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25050   (eval $ac_compile) 2>conftest.er1
25051   ac_status=$?
25052   grep -v '^ *+' conftest.er1 >conftest.err
25053   rm -f conftest.er1
25054   cat conftest.err >&5
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); } &&
25057          { ac_try='test -z "$ac_c_werror_flag"
25058                          || test ! -s conftest.err'
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); }; } &&
25064          { ac_try='test -s conftest.$ac_objext'
25065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066   (eval $ac_try) 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); }; }; then
25070   ac_header_compiler=yes
25071 else
25072   echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25074
25075 ac_header_compiler=no
25076 fi
25077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25079 echo "${ECHO_T}$ac_header_compiler" >&6
25080
25081 # Is the header present?
25082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25084 cat >conftest.$ac_ext <<_ACEOF
25085 /* confdefs.h.  */
25086 _ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h.  */
25090 #include <$ac_header>
25091 _ACEOF
25092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25094   ac_status=$?
25095   grep -v '^ *+' conftest.er1 >conftest.err
25096   rm -f conftest.er1
25097   cat conftest.err >&5
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } >/dev/null; then
25100   if test -s conftest.err; then
25101     ac_cpp_err=$ac_c_preproc_warn_flag
25102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25103   else
25104     ac_cpp_err=
25105   fi
25106 else
25107   ac_cpp_err=yes
25108 fi
25109 if test -z "$ac_cpp_err"; then
25110   ac_header_preproc=yes
25111 else
25112   echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.$ac_ext >&5
25114
25115   ac_header_preproc=no
25116 fi
25117 rm -f conftest.err conftest.$ac_ext
25118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25119 echo "${ECHO_T}$ac_header_preproc" >&6
25120
25121 # So?  What about this header?
25122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25123   yes:no: )
25124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25128     ac_header_preproc=yes
25129     ;;
25130   no:yes:* )
25131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25143     (
25144       cat <<\_ASBOX
25145 ## --------------------------------------------- ##
25146 ## Report this to <http://www.openldap.org/its/> ##
25147 ## --------------------------------------------- ##
25148 _ASBOX
25149     ) |
25150       sed "s/^/$as_me: WARNING:     /" >&2
25151     ;;
25152 esac
25153 echo "$as_me:$LINENO: checking for $ac_header" >&5
25154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25156   echo $ECHO_N "(cached) $ECHO_C" >&6
25157 else
25158   eval "$as_ac_Header=\$ac_header_preproc"
25159 fi
25160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25162
25163 fi
25164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25165   cat >>confdefs.h <<_ACEOF
25166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25167 _ACEOF
25168
25169 fi
25170
25171 done
25172
25173         if test $ac_cv_header_mach_cthreads_h = yes ; then
25174                 ol_with_threads=found
25175
25176                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25177 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25178 if test "${ac_cv_func_cthread_fork+set}" = set; then
25179   echo $ECHO_N "(cached) $ECHO_C" >&6
25180 else
25181   cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h.  */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h.  */
25187 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25189 #define cthread_fork innocuous_cthread_fork
25190
25191 /* System header to define __stub macros and hopefully few prototypes,
25192     which can conflict with char cthread_fork (); below.
25193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25194     <limits.h> exists even on freestanding compilers.  */
25195
25196 #ifdef __STDC__
25197 # include <limits.h>
25198 #else
25199 # include <assert.h>
25200 #endif
25201
25202 #undef cthread_fork
25203
25204 /* Override any gcc2 internal prototype to avoid an error.  */
25205 #ifdef __cplusplus
25206 extern "C"
25207 {
25208 #endif
25209 /* We use char because int might match the return type of a gcc2
25210    builtin and then its argument prototype would still apply.  */
25211 char cthread_fork ();
25212 /* The GNU C library defines this for functions which it implements
25213     to always fail with ENOSYS.  Some functions are actually named
25214     something starting with __ and the normal name is an alias.  */
25215 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25216 choke me
25217 #else
25218 char (*f) () = cthread_fork;
25219 #endif
25220 #ifdef __cplusplus
25221 }
25222 #endif
25223
25224 int
25225 main ()
25226 {
25227 return f != cthread_fork;
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 rm -f conftest.$ac_objext conftest$ac_exeext
25233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25234   (eval $ac_link) 2>conftest.er1
25235   ac_status=$?
25236   grep -v '^ *+' conftest.er1 >conftest.err
25237   rm -f conftest.er1
25238   cat conftest.err >&5
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); } &&
25241          { ac_try='test -z "$ac_c_werror_flag"
25242                          || test ! -s conftest.err'
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); }; } &&
25248          { ac_try='test -s conftest$ac_exeext'
25249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250   (eval $ac_try) 2>&5
25251   ac_status=$?
25252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253   (exit $ac_status); }; }; then
25254   ac_cv_func_cthread_fork=yes
25255 else
25256   echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25258
25259 ac_cv_func_cthread_fork=no
25260 fi
25261 rm -f conftest.err conftest.$ac_objext \
25262       conftest$ac_exeext conftest.$ac_ext
25263 fi
25264 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25265 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25266 if test $ac_cv_func_cthread_fork = yes; then
25267   ol_link_threads=yes
25268 fi
25269
25270
25271                 if test $ol_link_threads = no ; then
25272                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25273 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25274 if test "${ol_cv_cthread_all_load+set}" = set; then
25275   echo $ECHO_N "(cached) $ECHO_C" >&6
25276 else
25277
25278                                                                 save_LIBS="$LIBS"
25279                                 LIBS="-all_load $LIBS"
25280                                 cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 #include <mach/cthreads.h>
25287 int
25288 main ()
25289 {
25290
25291                                         cthread_fork((void *)0, (void *)0);
25292
25293   ;
25294   return 0;
25295 }
25296 _ACEOF
25297 rm -f conftest.$ac_objext conftest$ac_exeext
25298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25299   (eval $ac_link) 2>conftest.er1
25300   ac_status=$?
25301   grep -v '^ *+' conftest.er1 >conftest.err
25302   rm -f conftest.er1
25303   cat conftest.err >&5
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); } &&
25306          { ac_try='test -z "$ac_c_werror_flag"
25307                          || test ! -s conftest.err'
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); }; } &&
25313          { ac_try='test -s conftest$ac_exeext'
25314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315   (eval $ac_try) 2>&5
25316   ac_status=$?
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); }; }; then
25319   ol_cv_cthread_all_load=yes
25320 else
25321   echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25323
25324 ol_cv_cthread_all_load=no
25325 fi
25326 rm -f conftest.err conftest.$ac_objext \
25327       conftest$ac_exeext conftest.$ac_ext
25328                                                                 LIBS="$save_LIBS"
25329
25330 fi
25331 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25332 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25333
25334                         if test $ol_cv_cthread_all_load = yes ; then
25335                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25336                                 ol_link_threads=mach
25337                                 ol_with_threads=found
25338                         fi
25339                 fi
25340
25341         elif test $ac_cv_header_cthreads_h = yes ; then
25342
25343                 ol_with_threads=found
25344
25345                                 save_LIBS="$LIBS"
25346                 LIBS="$LIBS -lthreads"
25347                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25348 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25349 if test "${ac_cv_func_cthread_fork+set}" = set; then
25350   echo $ECHO_N "(cached) $ECHO_C" >&6
25351 else
25352   cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h.  */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h.  */
25358 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25360 #define cthread_fork innocuous_cthread_fork
25361
25362 /* System header to define __stub macros and hopefully few prototypes,
25363     which can conflict with char cthread_fork (); below.
25364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25365     <limits.h> exists even on freestanding compilers.  */
25366
25367 #ifdef __STDC__
25368 # include <limits.h>
25369 #else
25370 # include <assert.h>
25371 #endif
25372
25373 #undef cthread_fork
25374
25375 /* Override any gcc2 internal prototype to avoid an error.  */
25376 #ifdef __cplusplus
25377 extern "C"
25378 {
25379 #endif
25380 /* We use char because int might match the return type of a gcc2
25381    builtin and then its argument prototype would still apply.  */
25382 char cthread_fork ();
25383 /* The GNU C library defines this for functions which it implements
25384     to always fail with ENOSYS.  Some functions are actually named
25385     something starting with __ and the normal name is an alias.  */
25386 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25387 choke me
25388 #else
25389 char (*f) () = cthread_fork;
25390 #endif
25391 #ifdef __cplusplus
25392 }
25393 #endif
25394
25395 int
25396 main ()
25397 {
25398 return f != cthread_fork;
25399   ;
25400   return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25405   (eval $ac_link) 2>conftest.er1
25406   ac_status=$?
25407   grep -v '^ *+' conftest.er1 >conftest.err
25408   rm -f conftest.er1
25409   cat conftest.err >&5
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); } &&
25412          { ac_try='test -z "$ac_c_werror_flag"
25413                          || test ! -s conftest.err'
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); }; } &&
25419          { ac_try='test -s conftest$ac_exeext'
25420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421   (eval $ac_try) 2>&5
25422   ac_status=$?
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); }; }; then
25425   ac_cv_func_cthread_fork=yes
25426 else
25427   echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25429
25430 ac_cv_func_cthread_fork=no
25431 fi
25432 rm -f conftest.err conftest.$ac_objext \
25433       conftest$ac_exeext conftest.$ac_ext
25434 fi
25435 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25436 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25437 if test $ac_cv_func_cthread_fork = yes; then
25438   ol_link_threads=yes
25439 fi
25440
25441                 LIBS="$save_LIBS"
25442
25443                 if test $ol_link_threads = yes ; then
25444                         LTHREAD_LIBS="-lthreads"
25445                         ol_link_threads=mach
25446                         ol_with_threads=found
25447                 else
25448                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25449 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25450    { (exit 1); exit 1; }; }
25451                 fi
25452
25453         elif test $ol_with_threads = mach ; then
25454                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25455 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25456    { (exit 1); exit 1; }; }
25457         fi
25458
25459         if test $ol_link_threads = mach ; then
25460
25461 cat >>confdefs.h <<\_ACEOF
25462 #define HAVE_MACH_CTHREADS 1
25463 _ACEOF
25464
25465         elif test $ol_with_threads = found ; then
25466                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25467 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25468    { (exit 1); exit 1; }; }
25469         fi
25470         ;;
25471 esac
25472
25473 case $ol_with_threads in auto | yes | pth)
25474
25475
25476 for ac_header in pth.h
25477 do
25478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25480   echo "$as_me:$LINENO: checking for $ac_header" >&5
25481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25483   echo $ECHO_N "(cached) $ECHO_C" >&6
25484 fi
25485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25487 else
25488   # Is the header compilable?
25489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25491 cat >conftest.$ac_ext <<_ACEOF
25492 /* confdefs.h.  */
25493 _ACEOF
25494 cat confdefs.h >>conftest.$ac_ext
25495 cat >>conftest.$ac_ext <<_ACEOF
25496 /* end confdefs.h.  */
25497 $ac_includes_default
25498 #include <$ac_header>
25499 _ACEOF
25500 rm -f conftest.$ac_objext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25502   (eval $ac_compile) 2>conftest.er1
25503   ac_status=$?
25504   grep -v '^ *+' conftest.er1 >conftest.err
25505   rm -f conftest.er1
25506   cat conftest.err >&5
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } &&
25509          { ac_try='test -z "$ac_c_werror_flag"
25510                          || test ! -s conftest.err'
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); }; } &&
25516          { ac_try='test -s conftest.$ac_objext'
25517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); }; }; then
25522   ac_header_compiler=yes
25523 else
25524   echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25526
25527 ac_header_compiler=no
25528 fi
25529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25531 echo "${ECHO_T}$ac_header_compiler" >&6
25532
25533 # Is the header present?
25534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25536 cat >conftest.$ac_ext <<_ACEOF
25537 /* confdefs.h.  */
25538 _ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h.  */
25542 #include <$ac_header>
25543 _ACEOF
25544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25546   ac_status=$?
25547   grep -v '^ *+' conftest.er1 >conftest.err
25548   rm -f conftest.er1
25549   cat conftest.err >&5
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); } >/dev/null; then
25552   if test -s conftest.err; then
25553     ac_cpp_err=$ac_c_preproc_warn_flag
25554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25555   else
25556     ac_cpp_err=
25557   fi
25558 else
25559   ac_cpp_err=yes
25560 fi
25561 if test -z "$ac_cpp_err"; then
25562   ac_header_preproc=yes
25563 else
25564   echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25566
25567   ac_header_preproc=no
25568 fi
25569 rm -f conftest.err conftest.$ac_ext
25570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25571 echo "${ECHO_T}$ac_header_preproc" >&6
25572
25573 # So?  What about this header?
25574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25575   yes:no: )
25576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25580     ac_header_preproc=yes
25581     ;;
25582   no:yes:* )
25583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25595     (
25596       cat <<\_ASBOX
25597 ## --------------------------------------------- ##
25598 ## Report this to <http://www.openldap.org/its/> ##
25599 ## --------------------------------------------- ##
25600 _ASBOX
25601     ) |
25602       sed "s/^/$as_me: WARNING:     /" >&2
25603     ;;
25604 esac
25605 echo "$as_me:$LINENO: checking for $ac_header" >&5
25606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25608   echo $ECHO_N "(cached) $ECHO_C" >&6
25609 else
25610   eval "$as_ac_Header=\$ac_header_preproc"
25611 fi
25612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25614
25615 fi
25616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25617   cat >>confdefs.h <<_ACEOF
25618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25619 _ACEOF
25620
25621 fi
25622
25623 done
25624
25625
25626         if test $ac_cv_header_pth_h = yes ; then
25627                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25628 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25629 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25630   echo $ECHO_N "(cached) $ECHO_C" >&6
25631 else
25632   ac_check_lib_save_LIBS=$LIBS
25633 LIBS="-lpth  $LIBS"
25634 cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h.  */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h.  */
25640
25641 /* Override any gcc2 internal prototype to avoid an error.  */
25642 #ifdef __cplusplus
25643 extern "C"
25644 #endif
25645 /* We use char because int might match the return type of a gcc2
25646    builtin and then its argument prototype would still apply.  */
25647 char pth_version ();
25648 int
25649 main ()
25650 {
25651 pth_version ();
25652   ;
25653   return 0;
25654 }
25655 _ACEOF
25656 rm -f conftest.$ac_objext conftest$ac_exeext
25657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25658   (eval $ac_link) 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } &&
25665          { ac_try='test -z "$ac_c_werror_flag"
25666                          || test ! -s conftest.err'
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); }; } &&
25672          { ac_try='test -s conftest$ac_exeext'
25673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674   (eval $ac_try) 2>&5
25675   ac_status=$?
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); }; }; then
25678   ac_cv_lib_pth_pth_version=yes
25679 else
25680   echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25682
25683 ac_cv_lib_pth_pth_version=no
25684 fi
25685 rm -f conftest.err conftest.$ac_objext \
25686       conftest$ac_exeext conftest.$ac_ext
25687 LIBS=$ac_check_lib_save_LIBS
25688 fi
25689 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25690 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25691 if test $ac_cv_lib_pth_pth_version = yes; then
25692   have_pth=yes
25693 else
25694   have_pth=no
25695 fi
25696
25697
25698                 if test $have_pth = yes ; then
25699
25700 cat >>confdefs.h <<\_ACEOF
25701 #define HAVE_GNU_PTH 1
25702 _ACEOF
25703
25704                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25705                         ol_link_threads=pth
25706                         ol_with_threads=found
25707
25708                         if test $ol_with_yielding_select = auto ; then
25709                                 ol_with_yielding_select=yes
25710                         fi
25711                 fi
25712         fi
25713         ;;
25714 esac
25715
25716 case $ol_with_threads in auto | yes | lwp)
25717
25718
25719
25720 for ac_header in thread.h synch.h
25721 do
25722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25724   echo "$as_me:$LINENO: checking for $ac_header" >&5
25725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25727   echo $ECHO_N "(cached) $ECHO_C" >&6
25728 fi
25729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25731 else
25732   # Is the header compilable?
25733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741 $ac_includes_default
25742 #include <$ac_header>
25743 _ACEOF
25744 rm -f conftest.$ac_objext
25745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25746   (eval $ac_compile) 2>conftest.er1
25747   ac_status=$?
25748   grep -v '^ *+' conftest.er1 >conftest.err
25749   rm -f conftest.er1
25750   cat conftest.err >&5
25751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); } &&
25753          { ac_try='test -z "$ac_c_werror_flag"
25754                          || test ! -s conftest.err'
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); }; } &&
25760          { ac_try='test -s conftest.$ac_objext'
25761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762   (eval $ac_try) 2>&5
25763   ac_status=$?
25764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765   (exit $ac_status); }; }; then
25766   ac_header_compiler=yes
25767 else
25768   echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771 ac_header_compiler=no
25772 fi
25773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25775 echo "${ECHO_T}$ac_header_compiler" >&6
25776
25777 # Is the header present?
25778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25780 cat >conftest.$ac_ext <<_ACEOF
25781 /* confdefs.h.  */
25782 _ACEOF
25783 cat confdefs.h >>conftest.$ac_ext
25784 cat >>conftest.$ac_ext <<_ACEOF
25785 /* end confdefs.h.  */
25786 #include <$ac_header>
25787 _ACEOF
25788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25790   ac_status=$?
25791   grep -v '^ *+' conftest.er1 >conftest.err
25792   rm -f conftest.er1
25793   cat conftest.err >&5
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); } >/dev/null; then
25796   if test -s conftest.err; then
25797     ac_cpp_err=$ac_c_preproc_warn_flag
25798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25799   else
25800     ac_cpp_err=
25801   fi
25802 else
25803   ac_cpp_err=yes
25804 fi
25805 if test -z "$ac_cpp_err"; then
25806   ac_header_preproc=yes
25807 else
25808   echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25810
25811   ac_header_preproc=no
25812 fi
25813 rm -f conftest.err conftest.$ac_ext
25814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25815 echo "${ECHO_T}$ac_header_preproc" >&6
25816
25817 # So?  What about this header?
25818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25819   yes:no: )
25820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25824     ac_header_preproc=yes
25825     ;;
25826   no:yes:* )
25827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25839     (
25840       cat <<\_ASBOX
25841 ## --------------------------------------------- ##
25842 ## Report this to <http://www.openldap.org/its/> ##
25843 ## --------------------------------------------- ##
25844 _ASBOX
25845     ) |
25846       sed "s/^/$as_me: WARNING:     /" >&2
25847     ;;
25848 esac
25849 echo "$as_me:$LINENO: checking for $ac_header" >&5
25850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25852   echo $ECHO_N "(cached) $ECHO_C" >&6
25853 else
25854   eval "$as_ac_Header=\$ac_header_preproc"
25855 fi
25856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25858
25859 fi
25860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25861   cat >>confdefs.h <<_ACEOF
25862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25863 _ACEOF
25864
25865 fi
25866
25867 done
25868
25869         if test $ac_cv_header_thread_h = yes &&
25870            test $ac_cv_header_synch_h = yes ; then
25871                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25872 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25873 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25874   echo $ECHO_N "(cached) $ECHO_C" >&6
25875 else
25876   ac_check_lib_save_LIBS=$LIBS
25877 LIBS="-lthread  $LIBS"
25878 cat >conftest.$ac_ext <<_ACEOF
25879 /* confdefs.h.  */
25880 _ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h.  */
25884
25885 /* Override any gcc2 internal prototype to avoid an error.  */
25886 #ifdef __cplusplus
25887 extern "C"
25888 #endif
25889 /* We use char because int might match the return type of a gcc2
25890    builtin and then its argument prototype would still apply.  */
25891 char thr_create ();
25892 int
25893 main ()
25894 {
25895 thr_create ();
25896   ;
25897   return 0;
25898 }
25899 _ACEOF
25900 rm -f conftest.$ac_objext conftest$ac_exeext
25901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25902   (eval $ac_link) 2>conftest.er1
25903   ac_status=$?
25904   grep -v '^ *+' conftest.er1 >conftest.err
25905   rm -f conftest.er1
25906   cat conftest.err >&5
25907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908   (exit $ac_status); } &&
25909          { ac_try='test -z "$ac_c_werror_flag"
25910                          || test ! -s conftest.err'
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); }; } &&
25916          { ac_try='test -s conftest$ac_exeext'
25917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918   (eval $ac_try) 2>&5
25919   ac_status=$?
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); }; }; then
25922   ac_cv_lib_thread_thr_create=yes
25923 else
25924   echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25926
25927 ac_cv_lib_thread_thr_create=no
25928 fi
25929 rm -f conftest.err conftest.$ac_objext \
25930       conftest$ac_exeext conftest.$ac_ext
25931 LIBS=$ac_check_lib_save_LIBS
25932 fi
25933 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25934 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25935 if test $ac_cv_lib_thread_thr_create = yes; then
25936   have_thr=yes
25937 else
25938   have_thr=no
25939 fi
25940
25941
25942                 if test $have_thr = yes ; then
25943
25944 cat >>confdefs.h <<\_ACEOF
25945 #define HAVE_THR 1
25946 _ACEOF
25947
25948                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25949                         ol_link_threads=thr
25950
25951                         if test $ol_with_yielding_select = auto ; then
25952                                 ol_with_yielding_select=yes
25953                         fi
25954
25955
25956
25957 for ac_func in \
25958                                 thr_setconcurrency \
25959                                 thr_getconcurrency \
25960
25961 do
25962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25963 echo "$as_me:$LINENO: checking for $ac_func" >&5
25964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25965 if eval "test \"\${$as_ac_var+set}\" = set"; then
25966   echo $ECHO_N "(cached) $ECHO_C" >&6
25967 else
25968   cat >conftest.$ac_ext <<_ACEOF
25969 /* confdefs.h.  */
25970 _ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h.  */
25974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25976 #define $ac_func innocuous_$ac_func
25977
25978 /* System header to define __stub macros and hopefully few prototypes,
25979     which can conflict with char $ac_func (); below.
25980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25981     <limits.h> exists even on freestanding compilers.  */
25982
25983 #ifdef __STDC__
25984 # include <limits.h>
25985 #else
25986 # include <assert.h>
25987 #endif
25988
25989 #undef $ac_func
25990
25991 /* Override any gcc2 internal prototype to avoid an error.  */
25992 #ifdef __cplusplus
25993 extern "C"
25994 {
25995 #endif
25996 /* We use char because int might match the return type of a gcc2
25997    builtin and then its argument prototype would still apply.  */
25998 char $ac_func ();
25999 /* The GNU C library defines this for functions which it implements
26000     to always fail with ENOSYS.  Some functions are actually named
26001     something starting with __ and the normal name is an alias.  */
26002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26003 choke me
26004 #else
26005 char (*f) () = $ac_func;
26006 #endif
26007 #ifdef __cplusplus
26008 }
26009 #endif
26010
26011 int
26012 main ()
26013 {
26014 return f != $ac_func;
26015   ;
26016   return 0;
26017 }
26018 _ACEOF
26019 rm -f conftest.$ac_objext conftest$ac_exeext
26020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021   (eval $ac_link) 2>conftest.er1
26022   ac_status=$?
26023   grep -v '^ *+' conftest.er1 >conftest.err
26024   rm -f conftest.er1
26025   cat conftest.err >&5
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); } &&
26028          { ac_try='test -z "$ac_c_werror_flag"
26029                          || test ! -s conftest.err'
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); }; } &&
26035          { ac_try='test -s conftest$ac_exeext'
26036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037   (eval $ac_try) 2>&5
26038   ac_status=$?
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); }; }; then
26041   eval "$as_ac_var=yes"
26042 else
26043   echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26045
26046 eval "$as_ac_var=no"
26047 fi
26048 rm -f conftest.err conftest.$ac_objext \
26049       conftest$ac_exeext conftest.$ac_ext
26050 fi
26051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26053 if test `eval echo '${'$as_ac_var'}'` = yes; then
26054   cat >>confdefs.h <<_ACEOF
26055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26056 _ACEOF
26057
26058 fi
26059 done
26060
26061                 fi
26062         fi
26063
26064
26065 for ac_header in lwp/lwp.h
26066 do
26067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26069   echo "$as_me:$LINENO: checking for $ac_header" >&5
26070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26072   echo $ECHO_N "(cached) $ECHO_C" >&6
26073 fi
26074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26076 else
26077   # Is the header compilable?
26078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26080 cat >conftest.$ac_ext <<_ACEOF
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086 $ac_includes_default
26087 #include <$ac_header>
26088 _ACEOF
26089 rm -f conftest.$ac_objext
26090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26091   (eval $ac_compile) 2>conftest.er1
26092   ac_status=$?
26093   grep -v '^ *+' conftest.er1 >conftest.err
26094   rm -f conftest.er1
26095   cat conftest.err >&5
26096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097   (exit $ac_status); } &&
26098          { ac_try='test -z "$ac_c_werror_flag"
26099                          || test ! -s conftest.err'
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); }; } &&
26105          { ac_try='test -s conftest.$ac_objext'
26106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107   (eval $ac_try) 2>&5
26108   ac_status=$?
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); }; }; then
26111   ac_header_compiler=yes
26112 else
26113   echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26115
26116 ac_header_compiler=no
26117 fi
26118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26120 echo "${ECHO_T}$ac_header_compiler" >&6
26121
26122 # Is the header present?
26123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26125 cat >conftest.$ac_ext <<_ACEOF
26126 /* confdefs.h.  */
26127 _ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h.  */
26131 #include <$ac_header>
26132 _ACEOF
26133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } >/dev/null; then
26141   if test -s conftest.err; then
26142     ac_cpp_err=$ac_c_preproc_warn_flag
26143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26144   else
26145     ac_cpp_err=
26146   fi
26147 else
26148   ac_cpp_err=yes
26149 fi
26150 if test -z "$ac_cpp_err"; then
26151   ac_header_preproc=yes
26152 else
26153   echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26155
26156   ac_header_preproc=no
26157 fi
26158 rm -f conftest.err conftest.$ac_ext
26159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26160 echo "${ECHO_T}$ac_header_preproc" >&6
26161
26162 # So?  What about this header?
26163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26164   yes:no: )
26165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26169     ac_header_preproc=yes
26170     ;;
26171   no:yes:* )
26172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26184     (
26185       cat <<\_ASBOX
26186 ## --------------------------------------------- ##
26187 ## Report this to <http://www.openldap.org/its/> ##
26188 ## --------------------------------------------- ##
26189 _ASBOX
26190     ) |
26191       sed "s/^/$as_me: WARNING:     /" >&2
26192     ;;
26193 esac
26194 echo "$as_me:$LINENO: checking for $ac_header" >&5
26195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26197   echo $ECHO_N "(cached) $ECHO_C" >&6
26198 else
26199   eval "$as_ac_Header=\$ac_header_preproc"
26200 fi
26201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26203
26204 fi
26205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26206   cat >>confdefs.h <<_ACEOF
26207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26208 _ACEOF
26209
26210 fi
26211
26212 done
26213
26214         if test $ac_cv_header_lwp_lwp_h = yes ; then
26215                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26216 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26217 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26218   echo $ECHO_N "(cached) $ECHO_C" >&6
26219 else
26220   ac_check_lib_save_LIBS=$LIBS
26221 LIBS="-llwp  $LIBS"
26222 cat >conftest.$ac_ext <<_ACEOF
26223 /* confdefs.h.  */
26224 _ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h.  */
26228
26229 /* Override any gcc2 internal prototype to avoid an error.  */
26230 #ifdef __cplusplus
26231 extern "C"
26232 #endif
26233 /* We use char because int might match the return type of a gcc2
26234    builtin and then its argument prototype would still apply.  */
26235 char lwp_create ();
26236 int
26237 main ()
26238 {
26239 lwp_create ();
26240   ;
26241   return 0;
26242 }
26243 _ACEOF
26244 rm -f conftest.$ac_objext conftest$ac_exeext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26246   (eval $ac_link) 2>conftest.er1
26247   ac_status=$?
26248   grep -v '^ *+' conftest.er1 >conftest.err
26249   rm -f conftest.er1
26250   cat conftest.err >&5
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); } &&
26253          { ac_try='test -z "$ac_c_werror_flag"
26254                          || test ! -s conftest.err'
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); }; } &&
26260          { ac_try='test -s conftest$ac_exeext'
26261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262   (eval $ac_try) 2>&5
26263   ac_status=$?
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); }; }; then
26266   ac_cv_lib_lwp_lwp_create=yes
26267 else
26268   echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271 ac_cv_lib_lwp_lwp_create=no
26272 fi
26273 rm -f conftest.err conftest.$ac_objext \
26274       conftest$ac_exeext conftest.$ac_ext
26275 LIBS=$ac_check_lib_save_LIBS
26276 fi
26277 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26278 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26279 if test $ac_cv_lib_lwp_lwp_create = yes; then
26280   have_lwp=yes
26281 else
26282   have_lwp=no
26283 fi
26284
26285
26286                 if test $have_lwp = yes ; then
26287
26288 cat >>confdefs.h <<\_ACEOF
26289 #define HAVE_LWP 1
26290 _ACEOF
26291
26292                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26293                         ol_link_threads=lwp
26294
26295                         if test $ol_with_yielding_select = auto ; then
26296                                 ol_with_yielding_select=no
26297                         fi
26298                 fi
26299         fi
26300         ;;
26301 esac
26302
26303 if test $ol_with_yielding_select = yes ; then
26304
26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_YIELDING_SELECT 1
26307 _ACEOF
26308
26309 fi
26310
26311 if test $ol_with_threads = manual ; then
26312                 ol_link_threads=yes
26313
26314         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26315 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26316
26317
26318
26319 for ac_header in pthread.h sched.h
26320 do
26321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26323   echo "$as_me:$LINENO: checking for $ac_header" >&5
26324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26326   echo $ECHO_N "(cached) $ECHO_C" >&6
26327 fi
26328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26330 else
26331   # Is the header compilable?
26332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26334 cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h.  */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h.  */
26340 $ac_includes_default
26341 #include <$ac_header>
26342 _ACEOF
26343 rm -f conftest.$ac_objext
26344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26345   (eval $ac_compile) 2>conftest.er1
26346   ac_status=$?
26347   grep -v '^ *+' conftest.er1 >conftest.err
26348   rm -f conftest.er1
26349   cat conftest.err >&5
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); } &&
26352          { ac_try='test -z "$ac_c_werror_flag"
26353                          || test ! -s conftest.err'
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); }; } &&
26359          { ac_try='test -s conftest.$ac_objext'
26360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361   (eval $ac_try) 2>&5
26362   ac_status=$?
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); }; }; then
26365   ac_header_compiler=yes
26366 else
26367   echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26369
26370 ac_header_compiler=no
26371 fi
26372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26374 echo "${ECHO_T}$ac_header_compiler" >&6
26375
26376 # Is the header present?
26377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26379 cat >conftest.$ac_ext <<_ACEOF
26380 /* confdefs.h.  */
26381 _ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h.  */
26385 #include <$ac_header>
26386 _ACEOF
26387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26389   ac_status=$?
26390   grep -v '^ *+' conftest.er1 >conftest.err
26391   rm -f conftest.er1
26392   cat conftest.err >&5
26393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394   (exit $ac_status); } >/dev/null; then
26395   if test -s conftest.err; then
26396     ac_cpp_err=$ac_c_preproc_warn_flag
26397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26398   else
26399     ac_cpp_err=
26400   fi
26401 else
26402   ac_cpp_err=yes
26403 fi
26404 if test -z "$ac_cpp_err"; then
26405   ac_header_preproc=yes
26406 else
26407   echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26409
26410   ac_header_preproc=no
26411 fi
26412 rm -f conftest.err conftest.$ac_ext
26413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26414 echo "${ECHO_T}$ac_header_preproc" >&6
26415
26416 # So?  What about this header?
26417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26418   yes:no: )
26419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26423     ac_header_preproc=yes
26424     ;;
26425   no:yes:* )
26426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26438     (
26439       cat <<\_ASBOX
26440 ## --------------------------------------------- ##
26441 ## Report this to <http://www.openldap.org/its/> ##
26442 ## --------------------------------------------- ##
26443 _ASBOX
26444     ) |
26445       sed "s/^/$as_me: WARNING:     /" >&2
26446     ;;
26447 esac
26448 echo "$as_me:$LINENO: checking for $ac_header" >&5
26449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26451   echo $ECHO_N "(cached) $ECHO_C" >&6
26452 else
26453   eval "$as_ac_Header=\$ac_header_preproc"
26454 fi
26455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26457
26458 fi
26459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26460   cat >>confdefs.h <<_ACEOF
26461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26462 _ACEOF
26463
26464 fi
26465
26466 done
26467
26468
26469
26470 for ac_func in sched_yield pthread_yield
26471 do
26472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26473 echo "$as_me:$LINENO: checking for $ac_func" >&5
26474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26475 if eval "test \"\${$as_ac_var+set}\" = set"; then
26476   echo $ECHO_N "(cached) $ECHO_C" >&6
26477 else
26478   cat >conftest.$ac_ext <<_ACEOF
26479 /* confdefs.h.  */
26480 _ACEOF
26481 cat confdefs.h >>conftest.$ac_ext
26482 cat >>conftest.$ac_ext <<_ACEOF
26483 /* end confdefs.h.  */
26484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26486 #define $ac_func innocuous_$ac_func
26487
26488 /* System header to define __stub macros and hopefully few prototypes,
26489     which can conflict with char $ac_func (); below.
26490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26491     <limits.h> exists even on freestanding compilers.  */
26492
26493 #ifdef __STDC__
26494 # include <limits.h>
26495 #else
26496 # include <assert.h>
26497 #endif
26498
26499 #undef $ac_func
26500
26501 /* Override any gcc2 internal prototype to avoid an error.  */
26502 #ifdef __cplusplus
26503 extern "C"
26504 {
26505 #endif
26506 /* We use char because int might match the return type of a gcc2
26507    builtin and then its argument prototype would still apply.  */
26508 char $ac_func ();
26509 /* The GNU C library defines this for functions which it implements
26510     to always fail with ENOSYS.  Some functions are actually named
26511     something starting with __ and the normal name is an alias.  */
26512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26513 choke me
26514 #else
26515 char (*f) () = $ac_func;
26516 #endif
26517 #ifdef __cplusplus
26518 }
26519 #endif
26520
26521 int
26522 main ()
26523 {
26524 return f != $ac_func;
26525   ;
26526   return 0;
26527 }
26528 _ACEOF
26529 rm -f conftest.$ac_objext conftest$ac_exeext
26530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26531   (eval $ac_link) 2>conftest.er1
26532   ac_status=$?
26533   grep -v '^ *+' conftest.er1 >conftest.err
26534   rm -f conftest.er1
26535   cat conftest.err >&5
26536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537   (exit $ac_status); } &&
26538          { ac_try='test -z "$ac_c_werror_flag"
26539                          || test ! -s conftest.err'
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); }; } &&
26545          { ac_try='test -s conftest$ac_exeext'
26546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547   (eval $ac_try) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; }; then
26551   eval "$as_ac_var=yes"
26552 else
26553   echo "$as_me: failed program was:" >&5
26554 sed 's/^/| /' conftest.$ac_ext >&5
26555
26556 eval "$as_ac_var=no"
26557 fi
26558 rm -f conftest.err conftest.$ac_objext \
26559       conftest$ac_exeext conftest.$ac_ext
26560 fi
26561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26563 if test `eval echo '${'$as_ac_var'}'` = yes; then
26564   cat >>confdefs.h <<_ACEOF
26565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26566 _ACEOF
26567
26568 fi
26569 done
26570
26571
26572         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26573 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26574 if test "${ol_cv_header_linux_threads+set}" = set; then
26575   echo $ECHO_N "(cached) $ECHO_C" >&6
26576 else
26577   cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583 #include <pthread.h>
26584 _ACEOF
26585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26586   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26587   ol_cv_header_linux_threads=yes
26588 else
26589   ol_cv_header_linux_threads=no
26590 fi
26591 rm -f conftest*
26592
26593
26594 fi
26595 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26596 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26597         if test $ol_cv_header_linux_threads = yes; then
26598
26599 cat >>confdefs.h <<\_ACEOF
26600 #define HAVE_LINUX_THREADS 1
26601 _ACEOF
26602
26603         fi
26604
26605
26606
26607 for ac_header in mach/cthreads.h
26608 do
26609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26611   echo "$as_me:$LINENO: checking for $ac_header" >&5
26612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26614   echo $ECHO_N "(cached) $ECHO_C" >&6
26615 fi
26616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26618 else
26619   # Is the header compilable?
26620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26622 cat >conftest.$ac_ext <<_ACEOF
26623 /* confdefs.h.  */
26624 _ACEOF
26625 cat confdefs.h >>conftest.$ac_ext
26626 cat >>conftest.$ac_ext <<_ACEOF
26627 /* end confdefs.h.  */
26628 $ac_includes_default
26629 #include <$ac_header>
26630 _ACEOF
26631 rm -f conftest.$ac_objext
26632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26633   (eval $ac_compile) 2>conftest.er1
26634   ac_status=$?
26635   grep -v '^ *+' conftest.er1 >conftest.err
26636   rm -f conftest.er1
26637   cat conftest.err >&5
26638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639   (exit $ac_status); } &&
26640          { ac_try='test -z "$ac_c_werror_flag"
26641                          || test ! -s conftest.err'
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); }; } &&
26647          { ac_try='test -s conftest.$ac_objext'
26648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649   (eval $ac_try) 2>&5
26650   ac_status=$?
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); }; }; then
26653   ac_header_compiler=yes
26654 else
26655   echo "$as_me: failed program was:" >&5
26656 sed 's/^/| /' conftest.$ac_ext >&5
26657
26658 ac_header_compiler=no
26659 fi
26660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26662 echo "${ECHO_T}$ac_header_compiler" >&6
26663
26664 # Is the header present?
26665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26667 cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h.  */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h.  */
26673 #include <$ac_header>
26674 _ACEOF
26675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26677   ac_status=$?
26678   grep -v '^ *+' conftest.er1 >conftest.err
26679   rm -f conftest.er1
26680   cat conftest.err >&5
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); } >/dev/null; then
26683   if test -s conftest.err; then
26684     ac_cpp_err=$ac_c_preproc_warn_flag
26685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26686   else
26687     ac_cpp_err=
26688   fi
26689 else
26690   ac_cpp_err=yes
26691 fi
26692 if test -z "$ac_cpp_err"; then
26693   ac_header_preproc=yes
26694 else
26695   echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698   ac_header_preproc=no
26699 fi
26700 rm -f conftest.err conftest.$ac_ext
26701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26702 echo "${ECHO_T}$ac_header_preproc" >&6
26703
26704 # So?  What about this header?
26705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26706   yes:no: )
26707     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26711     ac_header_preproc=yes
26712     ;;
26713   no:yes:* )
26714     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26716     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26717 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26718     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26720     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26721 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26724     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26726     (
26727       cat <<\_ASBOX
26728 ## --------------------------------------------- ##
26729 ## Report this to <http://www.openldap.org/its/> ##
26730 ## --------------------------------------------- ##
26731 _ASBOX
26732     ) |
26733       sed "s/^/$as_me: WARNING:     /" >&2
26734     ;;
26735 esac
26736 echo "$as_me:$LINENO: checking for $ac_header" >&5
26737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26739   echo $ECHO_N "(cached) $ECHO_C" >&6
26740 else
26741   eval "$as_ac_Header=\$ac_header_preproc"
26742 fi
26743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26745
26746 fi
26747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26748   cat >>confdefs.h <<_ACEOF
26749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26750 _ACEOF
26751
26752 fi
26753
26754 done
26755
26756
26757 for ac_header in lwp/lwp.h
26758 do
26759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26761   echo "$as_me:$LINENO: checking for $ac_header" >&5
26762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26764   echo $ECHO_N "(cached) $ECHO_C" >&6
26765 fi
26766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26768 else
26769   # Is the header compilable?
26770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26772 cat >conftest.$ac_ext <<_ACEOF
26773 /* confdefs.h.  */
26774 _ACEOF
26775 cat confdefs.h >>conftest.$ac_ext
26776 cat >>conftest.$ac_ext <<_ACEOF
26777 /* end confdefs.h.  */
26778 $ac_includes_default
26779 #include <$ac_header>
26780 _ACEOF
26781 rm -f conftest.$ac_objext
26782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26783   (eval $ac_compile) 2>conftest.er1
26784   ac_status=$?
26785   grep -v '^ *+' conftest.er1 >conftest.err
26786   rm -f conftest.er1
26787   cat conftest.err >&5
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); } &&
26790          { ac_try='test -z "$ac_c_werror_flag"
26791                          || test ! -s conftest.err'
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); }; } &&
26797          { ac_try='test -s conftest.$ac_objext'
26798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799   (eval $ac_try) 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; }; then
26803   ac_header_compiler=yes
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808 ac_header_compiler=no
26809 fi
26810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26812 echo "${ECHO_T}$ac_header_compiler" >&6
26813
26814 # Is the header present?
26815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26817 cat >conftest.$ac_ext <<_ACEOF
26818 /* confdefs.h.  */
26819 _ACEOF
26820 cat confdefs.h >>conftest.$ac_ext
26821 cat >>conftest.$ac_ext <<_ACEOF
26822 /* end confdefs.h.  */
26823 #include <$ac_header>
26824 _ACEOF
26825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26827   ac_status=$?
26828   grep -v '^ *+' conftest.er1 >conftest.err
26829   rm -f conftest.er1
26830   cat conftest.err >&5
26831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832   (exit $ac_status); } >/dev/null; then
26833   if test -s conftest.err; then
26834     ac_cpp_err=$ac_c_preproc_warn_flag
26835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26836   else
26837     ac_cpp_err=
26838   fi
26839 else
26840   ac_cpp_err=yes
26841 fi
26842 if test -z "$ac_cpp_err"; then
26843   ac_header_preproc=yes
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848   ac_header_preproc=no
26849 fi
26850 rm -f conftest.err conftest.$ac_ext
26851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26852 echo "${ECHO_T}$ac_header_preproc" >&6
26853
26854 # So?  What about this header?
26855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26856   yes:no: )
26857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26861     ac_header_preproc=yes
26862     ;;
26863   no:yes:* )
26864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26876     (
26877       cat <<\_ASBOX
26878 ## --------------------------------------------- ##
26879 ## Report this to <http://www.openldap.org/its/> ##
26880 ## --------------------------------------------- ##
26881 _ASBOX
26882     ) |
26883       sed "s/^/$as_me: WARNING:     /" >&2
26884     ;;
26885 esac
26886 echo "$as_me:$LINENO: checking for $ac_header" >&5
26887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26889   echo $ECHO_N "(cached) $ECHO_C" >&6
26890 else
26891   eval "$as_ac_Header=\$ac_header_preproc"
26892 fi
26893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26895
26896 fi
26897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26898   cat >>confdefs.h <<_ACEOF
26899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26900 _ACEOF
26901
26902 fi
26903
26904 done
26905
26906
26907
26908 for ac_header in thread.h synch.h
26909 do
26910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26912   echo "$as_me:$LINENO: checking for $ac_header" >&5
26913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26915   echo $ECHO_N "(cached) $ECHO_C" >&6
26916 fi
26917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26919 else
26920   # Is the header compilable?
26921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26923 cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929 $ac_includes_default
26930 #include <$ac_header>
26931 _ACEOF
26932 rm -f conftest.$ac_objext
26933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26934   (eval $ac_compile) 2>conftest.er1
26935   ac_status=$?
26936   grep -v '^ *+' conftest.er1 >conftest.err
26937   rm -f conftest.er1
26938   cat conftest.err >&5
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); } &&
26941          { ac_try='test -z "$ac_c_werror_flag"
26942                          || test ! -s conftest.err'
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); }; } &&
26948          { ac_try='test -s conftest.$ac_objext'
26949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950   (eval $ac_try) 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; }; then
26954   ac_header_compiler=yes
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959 ac_header_compiler=no
26960 fi
26961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26963 echo "${ECHO_T}$ac_header_compiler" >&6
26964
26965 # Is the header present?
26966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26968 cat >conftest.$ac_ext <<_ACEOF
26969 /* confdefs.h.  */
26970 _ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h.  */
26974 #include <$ac_header>
26975 _ACEOF
26976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26978   ac_status=$?
26979   grep -v '^ *+' conftest.er1 >conftest.err
26980   rm -f conftest.er1
26981   cat conftest.err >&5
26982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983   (exit $ac_status); } >/dev/null; then
26984   if test -s conftest.err; then
26985     ac_cpp_err=$ac_c_preproc_warn_flag
26986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26987   else
26988     ac_cpp_err=
26989   fi
26990 else
26991   ac_cpp_err=yes
26992 fi
26993 if test -z "$ac_cpp_err"; then
26994   ac_header_preproc=yes
26995 else
26996   echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26998
26999   ac_header_preproc=no
27000 fi
27001 rm -f conftest.err conftest.$ac_ext
27002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27003 echo "${ECHO_T}$ac_header_preproc" >&6
27004
27005 # So?  What about this header?
27006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27007   yes:no: )
27008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27012     ac_header_preproc=yes
27013     ;;
27014   no:yes:* )
27015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27017     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27018 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27019     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27021     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27022 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27025     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27027     (
27028       cat <<\_ASBOX
27029 ## --------------------------------------------- ##
27030 ## Report this to <http://www.openldap.org/its/> ##
27031 ## --------------------------------------------- ##
27032 _ASBOX
27033     ) |
27034       sed "s/^/$as_me: WARNING:     /" >&2
27035     ;;
27036 esac
27037 echo "$as_me:$LINENO: checking for $ac_header" >&5
27038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27040   echo $ECHO_N "(cached) $ECHO_C" >&6
27041 else
27042   eval "$as_ac_Header=\$ac_header_preproc"
27043 fi
27044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27046
27047 fi
27048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27049   cat >>confdefs.h <<_ACEOF
27050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27051 _ACEOF
27052
27053 fi
27054
27055 done
27056
27057 fi
27058
27059 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27060                         cat >>confdefs.h <<\_ACEOF
27061 #define REENTRANT 1
27062 _ACEOF
27063
27064         cat >>confdefs.h <<\_ACEOF
27065 #define _REENTRANT 1
27066 _ACEOF
27067
27068         cat >>confdefs.h <<\_ACEOF
27069 #define THREAD_SAFE 1
27070 _ACEOF
27071
27072         cat >>confdefs.h <<\_ACEOF
27073 #define _THREAD_SAFE 1
27074 _ACEOF
27075
27076         cat >>confdefs.h <<\_ACEOF
27077 #define THREADSAFE 1
27078 _ACEOF
27079
27080         cat >>confdefs.h <<\_ACEOF
27081 #define _THREADSAFE 1
27082 _ACEOF
27083
27084         cat >>confdefs.h <<\_ACEOF
27085 #define _SGI_MP_SOURCE 1
27086 _ACEOF
27087
27088
27089                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27090 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27091 if test "${ol_cv_errno_thread_specific+set}" = set; then
27092   echo $ECHO_N "(cached) $ECHO_C" >&6
27093 else
27094
27095                 cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h.  */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h.  */
27101 #include <errno.h>
27102 int
27103 main ()
27104 {
27105 errno = 0;
27106   ;
27107   return 0;
27108 }
27109 _ACEOF
27110 rm -f conftest.$ac_objext conftest$ac_exeext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27112   (eval $ac_link) 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } &&
27119          { ac_try='test -z "$ac_c_werror_flag"
27120                          || test ! -s conftest.err'
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); }; } &&
27126          { ac_try='test -s conftest$ac_exeext'
27127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128   (eval $ac_try) 2>&5
27129   ac_status=$?
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); }; }; then
27132   ol_cv_errno_thread_specific=yes
27133 else
27134   echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137 ol_cv_errno_thread_specific=no
27138 fi
27139 rm -f conftest.err conftest.$ac_objext \
27140       conftest$ac_exeext conftest.$ac_ext
27141
27142 fi
27143 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27144 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27145
27146                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27147 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27148 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27149   echo $ECHO_N "(cached) $ECHO_C" >&6
27150 else
27151
27152                 cat >conftest.$ac_ext <<_ACEOF
27153 /* confdefs.h.  */
27154 _ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h.  */
27158 #include <netdb.h>
27159 int
27160 main ()
27161 {
27162 h_errno = 0;
27163   ;
27164   return 0;
27165 }
27166 _ACEOF
27167 rm -f conftest.$ac_objext conftest$ac_exeext
27168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27169   (eval $ac_link) 2>conftest.er1
27170   ac_status=$?
27171   grep -v '^ *+' conftest.er1 >conftest.err
27172   rm -f conftest.er1
27173   cat conftest.err >&5
27174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175   (exit $ac_status); } &&
27176          { ac_try='test -z "$ac_c_werror_flag"
27177                          || test ! -s conftest.err'
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); }; } &&
27183          { ac_try='test -s conftest$ac_exeext'
27184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185   (eval $ac_try) 2>&5
27186   ac_status=$?
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); }; }; then
27189   ol_cv_h_errno_thread_specific=yes
27190 else
27191   echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27193
27194 ol_cv_h_errno_thread_specific=no
27195 fi
27196 rm -f conftest.err conftest.$ac_objext \
27197       conftest$ac_exeext conftest.$ac_ext
27198
27199 fi
27200 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27201 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27202
27203         if test $ol_cv_errno_thread_specific != yes ||
27204            test $ol_cv_h_errno_thread_specific != yes ; then
27205                 LIBS="$LTHREAD_LIBS $LIBS"
27206                 LTHREAD_LIBS=""
27207         fi
27208
27209 fi
27210
27211 if test $ol_link_threads = no ; then
27212         if test $ol_with_threads = yes ; then
27213                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27214 echo "$as_me: error: no suitable thread support" >&2;}
27215    { (exit 1); exit 1; }; }
27216         fi
27217
27218         if test $ol_with_threads = auto ; then
27219                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27220 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27221                 ol_with_threads=no
27222         fi
27223
27224
27225 cat >>confdefs.h <<\_ACEOF
27226 #define NO_THREADS 1
27227 _ACEOF
27228
27229         LTHREAD_LIBS=""
27230         BUILD_THREAD=no
27231 else
27232         BUILD_THREAD=yes
27233 fi
27234
27235 if test $ol_link_threads != no ; then
27236
27237 cat >>confdefs.h <<\_ACEOF
27238 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27239 _ACEOF
27240
27241 fi
27242
27243
27244
27245
27246 for ac_func in \
27247         ctime_r                 \
27248         gethostbyname_r gethostbyaddr_r \
27249
27250 do
27251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27252 echo "$as_me:$LINENO: checking for $ac_func" >&5
27253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27254 if eval "test \"\${$as_ac_var+set}\" = set"; then
27255   echo $ECHO_N "(cached) $ECHO_C" >&6
27256 else
27257   cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h.  */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h.  */
27263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27265 #define $ac_func innocuous_$ac_func
27266
27267 /* System header to define __stub macros and hopefully few prototypes,
27268     which can conflict with char $ac_func (); below.
27269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27270     <limits.h> exists even on freestanding compilers.  */
27271
27272 #ifdef __STDC__
27273 # include <limits.h>
27274 #else
27275 # include <assert.h>
27276 #endif
27277
27278 #undef $ac_func
27279
27280 /* Override any gcc2 internal prototype to avoid an error.  */
27281 #ifdef __cplusplus
27282 extern "C"
27283 {
27284 #endif
27285 /* We use char because int might match the return type of a gcc2
27286    builtin and then its argument prototype would still apply.  */
27287 char $ac_func ();
27288 /* The GNU C library defines this for functions which it implements
27289     to always fail with ENOSYS.  Some functions are actually named
27290     something starting with __ and the normal name is an alias.  */
27291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27292 choke me
27293 #else
27294 char (*f) () = $ac_func;
27295 #endif
27296 #ifdef __cplusplus
27297 }
27298 #endif
27299
27300 int
27301 main ()
27302 {
27303 return f != $ac_func;
27304   ;
27305   return 0;
27306 }
27307 _ACEOF
27308 rm -f conftest.$ac_objext conftest$ac_exeext
27309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27310   (eval $ac_link) 2>conftest.er1
27311   ac_status=$?
27312   grep -v '^ *+' conftest.er1 >conftest.err
27313   rm -f conftest.er1
27314   cat conftest.err >&5
27315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); } &&
27317          { ac_try='test -z "$ac_c_werror_flag"
27318                          || test ! -s conftest.err'
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); }; } &&
27324          { ac_try='test -s conftest$ac_exeext'
27325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326   (eval $ac_try) 2>&5
27327   ac_status=$?
27328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329   (exit $ac_status); }; }; then
27330   eval "$as_ac_var=yes"
27331 else
27332   echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27334
27335 eval "$as_ac_var=no"
27336 fi
27337 rm -f conftest.err conftest.$ac_objext \
27338       conftest$ac_exeext conftest.$ac_ext
27339 fi
27340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27342 if test `eval echo '${'$as_ac_var'}'` = yes; then
27343   cat >>confdefs.h <<_ACEOF
27344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27345 _ACEOF
27346
27347 fi
27348 done
27349
27350
27351 if test "$ac_cv_func_ctime_r" = no ; then
27352         ol_cv_func_ctime_r_nargs=0
27353 else
27354         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27355 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27356 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27357   echo $ECHO_N "(cached) $ECHO_C" >&6
27358 else
27359   cat >conftest.$ac_ext <<_ACEOF
27360 /* confdefs.h.  */
27361 _ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h.  */
27365 #include <time.h>
27366 int
27367 main ()
27368 {
27369 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27370   ;
27371   return 0;
27372 }
27373 _ACEOF
27374 rm -f conftest.$ac_objext
27375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27376   (eval $ac_compile) 2>conftest.er1
27377   ac_status=$?
27378   grep -v '^ *+' conftest.er1 >conftest.err
27379   rm -f conftest.er1
27380   cat conftest.err >&5
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); } &&
27383          { ac_try='test -z "$ac_c_werror_flag"
27384                          || test ! -s conftest.err'
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); }; } &&
27390          { ac_try='test -s conftest.$ac_objext'
27391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392   (eval $ac_try) 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; }; then
27396   ol_cv_func_ctime_r_nargs3=yes
27397 else
27398   echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401 ol_cv_func_ctime_r_nargs3=no
27402 fi
27403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27404
27405         cat >conftest.$ac_ext <<_ACEOF
27406 /* confdefs.h.  */
27407 _ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h.  */
27411 #include <time.h>
27412 int
27413 main ()
27414 {
27415 time_t ti; char *buffer; ctime_r(&ti,buffer);
27416   ;
27417   return 0;
27418 }
27419 _ACEOF
27420 rm -f conftest.$ac_objext
27421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27422   (eval $ac_compile) 2>conftest.er1
27423   ac_status=$?
27424   grep -v '^ *+' conftest.er1 >conftest.err
27425   rm -f conftest.er1
27426   cat conftest.err >&5
27427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); } &&
27429          { ac_try='test -z "$ac_c_werror_flag"
27430                          || test ! -s conftest.err'
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); }; } &&
27436          { ac_try='test -s conftest.$ac_objext'
27437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438   (eval $ac_try) 2>&5
27439   ac_status=$?
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); }; }; then
27442   ol_cv_func_ctime_r_nargs2=yes
27443 else
27444   echo "$as_me: failed program was:" >&5
27445 sed 's/^/| /' conftest.$ac_ext >&5
27446
27447 ol_cv_func_ctime_r_nargs2=no
27448 fi
27449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27450
27451         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27452            test $ol_cv_func_ctime_r_nargs2 = no ; then
27453
27454                 ol_cv_func_ctime_r_nargs=3
27455
27456         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27457              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27458
27459                 ol_cv_func_ctime_r_nargs=2
27460
27461         else
27462                 ol_cv_func_ctime_r_nargs=0
27463         fi
27464
27465 fi
27466 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27467 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27468
27469   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27470
27471 cat >>confdefs.h <<_ACEOF
27472 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27473 _ACEOF
27474
27475   fi
27476
27477 fi
27478
27479 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27480         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27481 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27482 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27483   echo $ECHO_N "(cached) $ECHO_C" >&6
27484 else
27485   cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491 #include <sys/types.h>
27492 #include <sys/socket.h>
27493 #include <netinet/in.h>
27494 #include <netdb.h>
27495 #define BUFSIZE (sizeof(struct hostent)+10)
27496 int
27497 main ()
27498 {
27499 struct hostent hent; char buffer[BUFSIZE];
27500                 int bufsize=BUFSIZE;int h_errno;
27501                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27502                         buffer, bufsize, &h_errno);
27503   ;
27504   return 0;
27505 }
27506 _ACEOF
27507 rm -f conftest.$ac_objext
27508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27509   (eval $ac_compile) 2>conftest.er1
27510   ac_status=$?
27511   grep -v '^ *+' conftest.er1 >conftest.err
27512   rm -f conftest.er1
27513   cat conftest.err >&5
27514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515   (exit $ac_status); } &&
27516          { ac_try='test -z "$ac_c_werror_flag"
27517                          || test ! -s conftest.err'
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); }; } &&
27523          { ac_try='test -s conftest.$ac_objext'
27524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525   (eval $ac_try) 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; }; then
27529   ol_cv_func_gethostbyname_r_nargs5=yes
27530 else
27531   echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534 ol_cv_func_gethostbyname_r_nargs5=no
27535 fi
27536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27537
27538         cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544 #include <sys/types.h>
27545 #include <sys/socket.h>
27546 #include <netinet/in.h>
27547 #include <netdb.h>
27548 #define BUFSIZE (sizeof(struct hostent)+10)
27549 int
27550 main ()
27551 {
27552 struct hostent hent;struct hostent *rhent;
27553                 char buffer[BUFSIZE];
27554                 int bufsize=BUFSIZE;int h_errno;
27555                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27556                         &rhent, &h_errno);
27557   ;
27558   return 0;
27559 }
27560 _ACEOF
27561 rm -f conftest.$ac_objext
27562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27563   (eval $ac_compile) 2>conftest.er1
27564   ac_status=$?
27565   grep -v '^ *+' conftest.er1 >conftest.err
27566   rm -f conftest.er1
27567   cat conftest.err >&5
27568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569   (exit $ac_status); } &&
27570          { ac_try='test -z "$ac_c_werror_flag"
27571                          || test ! -s conftest.err'
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); }; } &&
27577          { ac_try='test -s conftest.$ac_objext'
27578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579   (eval $ac_try) 2>&5
27580   ac_status=$?
27581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582   (exit $ac_status); }; }; then
27583   ol_cv_func_gethostbyname_r_nargs6=yes
27584 else
27585   echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27587
27588 ol_cv_func_gethostbyname_r_nargs6=no
27589 fi
27590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27591
27592         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27593            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27594
27595                 ol_cv_func_gethostbyname_r_nargs=5
27596
27597         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27598              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27599
27600                 ol_cv_func_gethostbyname_r_nargs=6
27601
27602         else
27603                 ol_cv_func_gethostbyname_r_nargs=0
27604         fi
27605
27606 fi
27607 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27608 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27609   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27610
27611 cat >>confdefs.h <<_ACEOF
27612 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27613 _ACEOF
27614
27615   fi
27616
27617 else
27618         ol_cv_func_gethostbyname_r_nargs=0
27619 fi
27620
27621 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27622         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27623 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27624 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27625   echo $ECHO_N "(cached) $ECHO_C" >&6
27626 else
27627   cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h.  */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h.  */
27633 #include <sys/types.h>
27634 #include <sys/socket.h>
27635 #include <netinet/in.h>
27636 #include <netdb.h>
27637 #define BUFSIZE (sizeof(struct hostent)+10)
27638 int
27639 main ()
27640 {
27641 struct hostent hent; char buffer[BUFSIZE];
27642             struct in_addr add;
27643             size_t alen=sizeof(struct in_addr);
27644             int bufsize=BUFSIZE;int h_errno;
27645                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27646                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653   (eval $ac_compile) 2>conftest.er1
27654   ac_status=$?
27655   grep -v '^ *+' conftest.er1 >conftest.err
27656   rm -f conftest.er1
27657   cat conftest.err >&5
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); } &&
27660          { ac_try='test -z "$ac_c_werror_flag"
27661                          || test ! -s conftest.err'
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); }; } &&
27667          { ac_try='test -s conftest.$ac_objext'
27668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669   (eval $ac_try) 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; }; then
27673   ol_cv_func_gethostbyaddr_r_nargs7=yes
27674 else
27675   echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27677
27678 ol_cv_func_gethostbyaddr_r_nargs7=no
27679 fi
27680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27681
27682         cat >conftest.$ac_ext <<_ACEOF
27683 /* confdefs.h.  */
27684 _ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h.  */
27688 #include <sys/types.h>
27689 #include <sys/socket.h>
27690 #include <netinet/in.h>
27691 #include <netdb.h>
27692 #define BUFSIZE (sizeof(struct hostent)+10)
27693 int
27694 main ()
27695 {
27696 struct hostent hent;
27697                 struct hostent *rhent; char buffer[BUFSIZE];
27698                 struct in_addr add;
27699                 size_t alen=sizeof(struct in_addr);
27700                 int bufsize=BUFSIZE;int h_errno;
27701                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27702                         alen, AF_INET, &hent, buffer, bufsize,
27703                         &rhent, &h_errno);
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27710   (eval $ac_compile) 2>conftest.er1
27711   ac_status=$?
27712   grep -v '^ *+' conftest.er1 >conftest.err
27713   rm -f conftest.er1
27714   cat conftest.err >&5
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); } &&
27717          { ac_try='test -z "$ac_c_werror_flag"
27718                          || test ! -s conftest.err'
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); }; } &&
27724          { ac_try='test -s conftest.$ac_objext'
27725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726   (eval $ac_try) 2>&5
27727   ac_status=$?
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); }; }; then
27730   ol_cv_func_gethostbyaddr_r_nargs8=yes
27731 else
27732   echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735 ol_cv_func_gethostbyaddr_r_nargs8=no
27736 fi
27737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27738
27739         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27740            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27741
27742                 ol_cv_func_gethostbyaddr_r_nargs=7
27743
27744         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27745              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27746
27747                 ol_cv_func_gethostbyaddr_r_nargs=8
27748
27749         else
27750                 ol_cv_func_gethostbyaddr_r_nargs=0
27751         fi
27752
27753 fi
27754 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27755 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27756   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27757
27758 cat >>confdefs.h <<_ACEOF
27759 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27760 _ACEOF
27761
27762   fi
27763
27764 else
27765         ol_cv_func_gethostbyaddr_r_nargs=0
27766 fi
27767
27768 ol_link_ldbm=no
27769
27770 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27771
27772         if test $ol_enable_ldbm_api = bcompat; then \
27773
27774
27775 for ac_header in db_185.h db.h
27776 do
27777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27779   echo "$as_me:$LINENO: checking for $ac_header" >&5
27780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27782   echo $ECHO_N "(cached) $ECHO_C" >&6
27783 fi
27784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27786 else
27787   # Is the header compilable?
27788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27790 cat >conftest.$ac_ext <<_ACEOF
27791 /* confdefs.h.  */
27792 _ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h.  */
27796 $ac_includes_default
27797 #include <$ac_header>
27798 _ACEOF
27799 rm -f conftest.$ac_objext
27800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27801   (eval $ac_compile) 2>conftest.er1
27802   ac_status=$?
27803   grep -v '^ *+' conftest.er1 >conftest.err
27804   rm -f conftest.er1
27805   cat conftest.err >&5
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); } &&
27808          { ac_try='test -z "$ac_c_werror_flag"
27809                          || test ! -s conftest.err'
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); }; } &&
27815          { ac_try='test -s conftest.$ac_objext'
27816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817   (eval $ac_try) 2>&5
27818   ac_status=$?
27819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820   (exit $ac_status); }; }; then
27821   ac_header_compiler=yes
27822 else
27823   echo "$as_me: failed program was:" >&5
27824 sed 's/^/| /' conftest.$ac_ext >&5
27825
27826 ac_header_compiler=no
27827 fi
27828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27830 echo "${ECHO_T}$ac_header_compiler" >&6
27831
27832 # Is the header present?
27833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27835 cat >conftest.$ac_ext <<_ACEOF
27836 /* confdefs.h.  */
27837 _ACEOF
27838 cat confdefs.h >>conftest.$ac_ext
27839 cat >>conftest.$ac_ext <<_ACEOF
27840 /* end confdefs.h.  */
27841 #include <$ac_header>
27842 _ACEOF
27843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27845   ac_status=$?
27846   grep -v '^ *+' conftest.er1 >conftest.err
27847   rm -f conftest.er1
27848   cat conftest.err >&5
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); } >/dev/null; then
27851   if test -s conftest.err; then
27852     ac_cpp_err=$ac_c_preproc_warn_flag
27853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27854   else
27855     ac_cpp_err=
27856   fi
27857 else
27858   ac_cpp_err=yes
27859 fi
27860 if test -z "$ac_cpp_err"; then
27861   ac_header_preproc=yes
27862 else
27863   echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27865
27866   ac_header_preproc=no
27867 fi
27868 rm -f conftest.err conftest.$ac_ext
27869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27870 echo "${ECHO_T}$ac_header_preproc" >&6
27871
27872 # So?  What about this header?
27873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27874   yes:no: )
27875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27879     ac_header_preproc=yes
27880     ;;
27881   no:yes:* )
27882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27894     (
27895       cat <<\_ASBOX
27896 ## --------------------------------------------- ##
27897 ## Report this to <http://www.openldap.org/its/> ##
27898 ## --------------------------------------------- ##
27899 _ASBOX
27900     ) |
27901       sed "s/^/$as_me: WARNING:     /" >&2
27902     ;;
27903 esac
27904 echo "$as_me:$LINENO: checking for $ac_header" >&5
27905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27907   echo $ECHO_N "(cached) $ECHO_C" >&6
27908 else
27909   eval "$as_ac_Header=\$ac_header_preproc"
27910 fi
27911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27913
27914 fi
27915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27916   cat >>confdefs.h <<_ACEOF
27917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27918 _ACEOF
27919
27920 fi
27921
27922 done
27923
27924 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27925         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27926 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27927 if test "${ol_cv_header_db1+set}" = set; then
27928   echo $ECHO_N "(cached) $ECHO_C" >&6
27929 else
27930
27931                 cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937
27938 #if HAVE_DB_185_H
27939 #       include <db_185.h>
27940 #else
27941 #       include <db.h>
27942 #endif
27943
27944  /* this check could be improved */
27945 #ifndef DB_VERSION_MAJOR
27946 #       define DB_VERSION_MAJOR 1
27947 #endif
27948
27949 #if DB_VERSION_MAJOR == 1
27950         __db_version_1
27951 #endif
27952
27953 _ACEOF
27954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27955   $EGREP "__db_version_1" >/dev/null 2>&1; then
27956   ol_cv_header_db1=yes
27957 else
27958   ol_cv_header_db1=no
27959 fi
27960 rm -f conftest*
27961
27962 fi
27963 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27964 echo "${ECHO_T}$ol_cv_header_db1" >&6
27965
27966         if test $ol_cv_header_db1 = yes ; then
27967                 ol_cv_lib_db=no
27968
27969 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27970 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27971 if test "${ol_cv_bdb_major+set}" = set; then
27972   echo $ECHO_N "(cached) $ECHO_C" >&6
27973 else
27974
27975         ol_cv_bdb_major=0
27976         if test $ol_cv_bdb_major = 0 ; then
27977                 cat >conftest.$ac_ext <<_ACEOF
27978 /* confdefs.h.  */
27979 _ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h.  */
27983
27984 #include <db.h>
27985 #ifndef DB_VERSION_MAJOR
27986 #       define DB_VERSION_MAJOR 1
27987 #endif
27988 #if DB_VERSION_MAJOR == 4
27989 __db_version
27990 #endif
27991
27992 _ACEOF
27993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27994   $EGREP "__db_version" >/dev/null 2>&1; then
27995   ol_cv_bdb_major=4
27996 else
27997   :
27998 fi
27999 rm -f conftest*
28000
28001         fi
28002         if test $ol_cv_bdb_major = 0 ; then
28003                 cat >conftest.$ac_ext <<_ACEOF
28004 /* confdefs.h.  */
28005 _ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h.  */
28009
28010 #include <db.h>
28011 #ifndef DB_VERSION_MAJOR
28012 #       define DB_VERSION_MAJOR 1
28013 #endif
28014 #if DB_VERSION_MAJOR == 3
28015 __db_version
28016 #endif
28017
28018 _ACEOF
28019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28020   $EGREP "__db_version" >/dev/null 2>&1; then
28021   ol_cv_bdb_major=3
28022 else
28023   :
28024 fi
28025 rm -f conftest*
28026
28027         fi
28028         if test $ol_cv_bdb_major = 0 ; then
28029                 cat >conftest.$ac_ext <<_ACEOF
28030 /* confdefs.h.  */
28031 _ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h.  */
28035
28036 #include <db.h>
28037 #ifndef DB_VERSION_MAJOR
28038 #       define DB_VERSION_MAJOR 1
28039 #endif
28040 #if DB_VERSION_MAJOR == 2
28041 __db_version
28042 #endif
28043
28044 _ACEOF
28045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28046   $EGREP "__db_version" >/dev/null 2>&1; then
28047   ol_cv_bdb_major=2
28048 else
28049   :
28050 fi
28051 rm -f conftest*
28052
28053         fi
28054         if test $ol_cv_bdb_major = 0 ; then
28055                 cat >conftest.$ac_ext <<_ACEOF
28056 /* confdefs.h.  */
28057 _ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h.  */
28061
28062 #include <db.h>
28063 #ifndef DB_VERSION_MAJOR
28064 #       define DB_VERSION_MAJOR 1
28065 #endif
28066 #if DB_VERSION_MAJOR == 1
28067 __db_version
28068 #endif
28069
28070 _ACEOF
28071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28072   $EGREP "__db_version" >/dev/null 2>&1; then
28073   ol_cv_bdb_major=1
28074 else
28075   :
28076 fi
28077 rm -f conftest*
28078
28079         fi
28080
28081         if test $ol_cv_bdb_major = 0 ; then
28082                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28083 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28084    { (exit 1); exit 1; }; }
28085         fi
28086
28087 fi
28088 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28089 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28090
28091 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28092 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28093 if test "${ol_cv_bdb_minor+set}" = set; then
28094   echo $ECHO_N "(cached) $ECHO_C" >&6
28095 else
28096
28097         ol_cv_bdb_minor=0
28098         if test $ol_cv_bdb_minor = 0 ; then
28099                 cat >conftest.$ac_ext <<_ACEOF
28100 /* confdefs.h.  */
28101 _ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h.  */
28105
28106 #include <db.h>
28107 #ifndef DB_VERSION_MINOR
28108 #       define DB_VERSION_MINOR 0
28109 #endif
28110 #if DB_VERSION_MINOR == 9
28111 __db_version
28112 #endif
28113
28114 _ACEOF
28115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28116   $EGREP "__db_version" >/dev/null 2>&1; then
28117   ol_cv_bdb_minor=9
28118 else
28119   :
28120 fi
28121 rm -f conftest*
28122
28123         fi
28124         if test $ol_cv_bdb_minor = 0 ; then
28125                 cat >conftest.$ac_ext <<_ACEOF
28126 /* confdefs.h.  */
28127 _ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h.  */
28131
28132 #include <db.h>
28133 #ifndef DB_VERSION_MINOR
28134 #       define DB_VERSION_MINOR 0
28135 #endif
28136 #if DB_VERSION_MINOR == 8
28137 __db_version
28138 #endif
28139
28140 _ACEOF
28141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28142   $EGREP "__db_version" >/dev/null 2>&1; then
28143   ol_cv_bdb_minor=8
28144 else
28145   :
28146 fi
28147 rm -f conftest*
28148
28149         fi
28150         if test $ol_cv_bdb_minor = 0 ; then
28151                 cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h.  */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h.  */
28157
28158 #include <db.h>
28159 #ifndef DB_VERSION_MINOR
28160 #       define DB_VERSION_MINOR 0
28161 #endif
28162 #if DB_VERSION_MINOR == 7
28163 __db_version
28164 #endif
28165
28166 _ACEOF
28167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28168   $EGREP "__db_version" >/dev/null 2>&1; then
28169   ol_cv_bdb_minor=7
28170 else
28171   :
28172 fi
28173 rm -f conftest*
28174
28175         fi
28176         if test $ol_cv_bdb_minor = 0 ; then
28177                 cat >conftest.$ac_ext <<_ACEOF
28178 /* confdefs.h.  */
28179 _ACEOF
28180 cat confdefs.h >>conftest.$ac_ext
28181 cat >>conftest.$ac_ext <<_ACEOF
28182 /* end confdefs.h.  */
28183
28184 #include <db.h>
28185 #ifndef DB_VERSION_MINOR
28186 #       define DB_VERSION_MINOR 0
28187 #endif
28188 #if DB_VERSION_MINOR == 6
28189 __db_version
28190 #endif
28191
28192 _ACEOF
28193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28194   $EGREP "__db_version" >/dev/null 2>&1; then
28195   ol_cv_bdb_minor=6
28196 else
28197   :
28198 fi
28199 rm -f conftest*
28200
28201         fi
28202         if test $ol_cv_bdb_minor = 0 ; then
28203                 cat >conftest.$ac_ext <<_ACEOF
28204 /* confdefs.h.  */
28205 _ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h.  */
28209
28210 #include <db.h>
28211 #ifndef DB_VERSION_MINOR
28212 #       define DB_VERSION_MINOR 0
28213 #endif
28214 #if DB_VERSION_MINOR == 5
28215 __db_version
28216 #endif
28217
28218 _ACEOF
28219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28220   $EGREP "__db_version" >/dev/null 2>&1; then
28221   ol_cv_bdb_minor=5
28222 else
28223   :
28224 fi
28225 rm -f conftest*
28226
28227         fi
28228         if test $ol_cv_bdb_minor = 0 ; then
28229                 cat >conftest.$ac_ext <<_ACEOF
28230 /* confdefs.h.  */
28231 _ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h.  */
28235
28236 #include <db.h>
28237 #ifndef DB_VERSION_MINOR
28238 #       define DB_VERSION_MINOR 0
28239 #endif
28240 #if DB_VERSION_MINOR == 4
28241 __db_version
28242 #endif
28243
28244 _ACEOF
28245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28246   $EGREP "__db_version" >/dev/null 2>&1; then
28247   ol_cv_bdb_minor=4
28248 else
28249   :
28250 fi
28251 rm -f conftest*
28252
28253         fi
28254         if test $ol_cv_bdb_minor = 0 ; then
28255                 cat >conftest.$ac_ext <<_ACEOF
28256 /* confdefs.h.  */
28257 _ACEOF
28258 cat confdefs.h >>conftest.$ac_ext
28259 cat >>conftest.$ac_ext <<_ACEOF
28260 /* end confdefs.h.  */
28261
28262 #include <db.h>
28263 #ifndef DB_VERSION_MINOR
28264 #       define DB_VERSION_MINOR 0
28265 #endif
28266 #if DB_VERSION_MINOR == 3
28267 __db_version
28268 #endif
28269
28270 _ACEOF
28271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28272   $EGREP "__db_version" >/dev/null 2>&1; then
28273   ol_cv_bdb_minor=3
28274 else
28275   :
28276 fi
28277 rm -f conftest*
28278
28279         fi
28280         if test $ol_cv_bdb_minor = 0 ; then
28281                 cat >conftest.$ac_ext <<_ACEOF
28282 /* confdefs.h.  */
28283 _ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h.  */
28287
28288 #include <db.h>
28289 #ifndef DB_VERSION_MINOR
28290 #       define DB_VERSION_MINOR 0
28291 #endif
28292 #if DB_VERSION_MINOR == 2
28293 __db_version
28294 #endif
28295
28296 _ACEOF
28297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28298   $EGREP "__db_version" >/dev/null 2>&1; then
28299   ol_cv_bdb_minor=2
28300 else
28301   :
28302 fi
28303 rm -f conftest*
28304
28305         fi
28306         if test $ol_cv_bdb_minor = 0 ; then
28307                 cat >conftest.$ac_ext <<_ACEOF
28308 /* confdefs.h.  */
28309 _ACEOF
28310 cat confdefs.h >>conftest.$ac_ext
28311 cat >>conftest.$ac_ext <<_ACEOF
28312 /* end confdefs.h.  */
28313
28314 #include <db.h>
28315 #ifndef DB_VERSION_MINOR
28316 #       define DB_VERSION_MINOR 0
28317 #endif
28318 #if DB_VERSION_MINOR == 1
28319 __db_version
28320 #endif
28321
28322 _ACEOF
28323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28324   $EGREP "__db_version" >/dev/null 2>&1; then
28325   ol_cv_bdb_minor=1
28326 else
28327   :
28328 fi
28329 rm -f conftest*
28330
28331         fi
28332
28333 fi
28334 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28335 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28336
28337 if test $ol_cv_bdb_major = 4 ; then
28338         if test $ol_cv_bdb_minor = 4 ; then
28339                 if test $ol_cv_lib_db = no ; then
28340         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28341 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28342 if test "${ol_cv_db_db44+set}" = set; then
28343   echo $ECHO_N "(cached) $ECHO_C" >&6
28344 else
28345
28346         ol_DB_LIB=-ldb44
28347         ol_LIBS=$LIBS
28348         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28349
28350         cat >conftest.$ac_ext <<_ACEOF
28351 /* confdefs.h.  */
28352 _ACEOF
28353 cat confdefs.h >>conftest.$ac_ext
28354 cat >>conftest.$ac_ext <<_ACEOF
28355 /* end confdefs.h.  */
28356
28357 #ifdef HAVE_DB_185_H
28358 # include <db_185.h>
28359 #else
28360 # include <db.h>
28361 #endif
28362
28363 #ifndef DB_VERSION_MAJOR
28364 # define DB_VERSION_MAJOR 1
28365 #endif
28366
28367 #ifndef NULL
28368 #define NULL ((void*)0)
28369 #endif
28370
28371 int
28372 main ()
28373 {
28374
28375 #if DB_VERSION_MAJOR > 1
28376         {
28377                 char *version;
28378                 int major, minor, patch;
28379
28380                 version = db_version( &major, &minor, &patch );
28381
28382                 if( major != DB_VERSION_MAJOR ||
28383                         minor < DB_VERSION_MINOR )
28384                 {
28385                         printf("Berkeley DB version mismatch\n"
28386                                 "\theader: %s\n\tlibrary: %s\n",
28387                                 DB_VERSION_STRING, version);
28388                         return 1;
28389                 }
28390         }
28391 #endif
28392
28393 #if DB_VERSION_MAJOR > 2
28394         db_env_create( NULL, 0 );
28395 #elif DB_VERSION_MAJOR > 1
28396         db_appexit( NULL );
28397 #else
28398         (void) dbopen( NULL, 0, 0, 0, NULL);
28399 #endif
28400
28401   ;
28402   return 0;
28403 }
28404 _ACEOF
28405 rm -f conftest.$ac_objext conftest$ac_exeext
28406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28407   (eval $ac_link) 2>conftest.er1
28408   ac_status=$?
28409   grep -v '^ *+' conftest.er1 >conftest.err
28410   rm -f conftest.er1
28411   cat conftest.err >&5
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } &&
28414          { ac_try='test -z "$ac_c_werror_flag"
28415                          || test ! -s conftest.err'
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); }; } &&
28421          { ac_try='test -s conftest$ac_exeext'
28422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28423   (eval $ac_try) 2>&5
28424   ac_status=$?
28425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426   (exit $ac_status); }; }; then
28427   ol_cv_db_db44=yes
28428 else
28429   echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432 ol_cv_db_db44=no
28433 fi
28434 rm -f conftest.err conftest.$ac_objext \
28435       conftest$ac_exeext conftest.$ac_ext
28436
28437         LIBS="$ol_LIBS"
28438
28439 fi
28440 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28441 echo "${ECHO_T}$ol_cv_db_db44" >&6
28442
28443         if test $ol_cv_db_db44 = yes ; then
28444                 ol_cv_lib_db=-ldb44
28445         fi
28446 fi
28447
28448                 if test $ol_cv_lib_db = no ; then
28449         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28450 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28451 if test "${ol_cv_db_db_44+set}" = set; then
28452   echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454
28455         ol_DB_LIB=-ldb-44
28456         ol_LIBS=$LIBS
28457         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28458
28459         cat >conftest.$ac_ext <<_ACEOF
28460 /* confdefs.h.  */
28461 _ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h.  */
28465
28466 #ifdef HAVE_DB_185_H
28467 # include <db_185.h>
28468 #else
28469 # include <db.h>
28470 #endif
28471
28472 #ifndef DB_VERSION_MAJOR
28473 # define DB_VERSION_MAJOR 1
28474 #endif
28475
28476 #ifndef NULL
28477 #define NULL ((void*)0)
28478 #endif
28479
28480 int
28481 main ()
28482 {
28483
28484 #if DB_VERSION_MAJOR > 1
28485         {
28486                 char *version;
28487                 int major, minor, patch;
28488
28489                 version = db_version( &major, &minor, &patch );
28490
28491                 if( major != DB_VERSION_MAJOR ||
28492                         minor < DB_VERSION_MINOR )
28493                 {
28494                         printf("Berkeley DB version mismatch\n"
28495                                 "\theader: %s\n\tlibrary: %s\n",
28496                                 DB_VERSION_STRING, version);
28497                         return 1;
28498                 }
28499         }
28500 #endif
28501
28502 #if DB_VERSION_MAJOR > 2
28503         db_env_create( NULL, 0 );
28504 #elif DB_VERSION_MAJOR > 1
28505         db_appexit( NULL );
28506 #else
28507         (void) dbopen( NULL, 0, 0, 0, NULL);
28508 #endif
28509
28510   ;
28511   return 0;
28512 }
28513 _ACEOF
28514 rm -f conftest.$ac_objext conftest$ac_exeext
28515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28516   (eval $ac_link) 2>conftest.er1
28517   ac_status=$?
28518   grep -v '^ *+' conftest.er1 >conftest.err
28519   rm -f conftest.er1
28520   cat conftest.err >&5
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); } &&
28523          { ac_try='test -z "$ac_c_werror_flag"
28524                          || test ! -s conftest.err'
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); }; } &&
28530          { ac_try='test -s conftest$ac_exeext'
28531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532   (eval $ac_try) 2>&5
28533   ac_status=$?
28534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535   (exit $ac_status); }; }; then
28536   ol_cv_db_db_44=yes
28537 else
28538   echo "$as_me: failed program was:" >&5
28539 sed 's/^/| /' conftest.$ac_ext >&5
28540
28541 ol_cv_db_db_44=no
28542 fi
28543 rm -f conftest.err conftest.$ac_objext \
28544       conftest$ac_exeext conftest.$ac_ext
28545
28546         LIBS="$ol_LIBS"
28547
28548 fi
28549 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28550 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28551
28552         if test $ol_cv_db_db_44 = yes ; then
28553                 ol_cv_lib_db=-ldb-44
28554         fi
28555 fi
28556
28557                 if test $ol_cv_lib_db = no ; then
28558         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28559 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28560 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28561   echo $ECHO_N "(cached) $ECHO_C" >&6
28562 else
28563
28564         ol_DB_LIB=-ldb-4.4
28565         ol_LIBS=$LIBS
28566         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28567
28568         cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574
28575 #ifdef HAVE_DB_185_H
28576 # include <db_185.h>
28577 #else
28578 # include <db.h>
28579 #endif
28580
28581 #ifndef DB_VERSION_MAJOR
28582 # define DB_VERSION_MAJOR 1
28583 #endif
28584
28585 #ifndef NULL
28586 #define NULL ((void*)0)
28587 #endif
28588
28589 int
28590 main ()
28591 {
28592
28593 #if DB_VERSION_MAJOR > 1
28594         {
28595                 char *version;
28596                 int major, minor, patch;
28597
28598                 version = db_version( &major, &minor, &patch );
28599
28600                 if( major != DB_VERSION_MAJOR ||
28601                         minor < DB_VERSION_MINOR )
28602                 {
28603                         printf("Berkeley DB version mismatch\n"
28604                                 "\theader: %s\n\tlibrary: %s\n",
28605                                 DB_VERSION_STRING, version);
28606                         return 1;
28607                 }
28608         }
28609 #endif
28610
28611 #if DB_VERSION_MAJOR > 2
28612         db_env_create( NULL, 0 );
28613 #elif DB_VERSION_MAJOR > 1
28614         db_appexit( NULL );
28615 #else
28616         (void) dbopen( NULL, 0, 0, 0, NULL);
28617 #endif
28618
28619   ;
28620   return 0;
28621 }
28622 _ACEOF
28623 rm -f conftest.$ac_objext conftest$ac_exeext
28624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28625   (eval $ac_link) 2>conftest.er1
28626   ac_status=$?
28627   grep -v '^ *+' conftest.er1 >conftest.err
28628   rm -f conftest.er1
28629   cat conftest.err >&5
28630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631   (exit $ac_status); } &&
28632          { ac_try='test -z "$ac_c_werror_flag"
28633                          || test ! -s conftest.err'
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); }; } &&
28639          { ac_try='test -s conftest$ac_exeext'
28640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641   (eval $ac_try) 2>&5
28642   ac_status=$?
28643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644   (exit $ac_status); }; }; then
28645   ol_cv_db_db_4_dot_4=yes
28646 else
28647   echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.$ac_ext >&5
28649
28650 ol_cv_db_db_4_dot_4=no
28651 fi
28652 rm -f conftest.err conftest.$ac_objext \
28653       conftest$ac_exeext conftest.$ac_ext
28654
28655         LIBS="$ol_LIBS"
28656
28657 fi
28658 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28659 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28660
28661         if test $ol_cv_db_db_4_dot_4 = yes ; then
28662                 ol_cv_lib_db=-ldb-4.4
28663         fi
28664 fi
28665
28666                 if test $ol_cv_lib_db = no ; then
28667         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28668 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28669 if test "${ol_cv_db_db_4_4+set}" = set; then
28670   echo $ECHO_N "(cached) $ECHO_C" >&6
28671 else
28672
28673         ol_DB_LIB=-ldb-4-4
28674         ol_LIBS=$LIBS
28675         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28676
28677         cat >conftest.$ac_ext <<_ACEOF
28678 /* confdefs.h.  */
28679 _ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h.  */
28683
28684 #ifdef HAVE_DB_185_H
28685 # include <db_185.h>
28686 #else
28687 # include <db.h>
28688 #endif
28689
28690 #ifndef DB_VERSION_MAJOR
28691 # define DB_VERSION_MAJOR 1
28692 #endif
28693
28694 #ifndef NULL
28695 #define NULL ((void*)0)
28696 #endif
28697
28698 int
28699 main ()
28700 {
28701
28702 #if DB_VERSION_MAJOR > 1
28703         {
28704                 char *version;
28705                 int major, minor, patch;
28706
28707                 version = db_version( &major, &minor, &patch );
28708
28709                 if( major != DB_VERSION_MAJOR ||
28710                         minor < DB_VERSION_MINOR )
28711                 {
28712                         printf("Berkeley DB version mismatch\n"
28713                                 "\theader: %s\n\tlibrary: %s\n",
28714                                 DB_VERSION_STRING, version);
28715                         return 1;
28716                 }
28717         }
28718 #endif
28719
28720 #if DB_VERSION_MAJOR > 2
28721         db_env_create( NULL, 0 );
28722 #elif DB_VERSION_MAJOR > 1
28723         db_appexit( NULL );
28724 #else
28725         (void) dbopen( NULL, 0, 0, 0, NULL);
28726 #endif
28727
28728   ;
28729   return 0;
28730 }
28731 _ACEOF
28732 rm -f conftest.$ac_objext conftest$ac_exeext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28734   (eval $ac_link) 2>conftest.er1
28735   ac_status=$?
28736   grep -v '^ *+' conftest.er1 >conftest.err
28737   rm -f conftest.er1
28738   cat conftest.err >&5
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } &&
28741          { ac_try='test -z "$ac_c_werror_flag"
28742                          || test ! -s conftest.err'
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); }; } &&
28748          { ac_try='test -s conftest$ac_exeext'
28749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750   (eval $ac_try) 2>&5
28751   ac_status=$?
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); }; }; then
28754   ol_cv_db_db_4_4=yes
28755 else
28756   echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28758
28759 ol_cv_db_db_4_4=no
28760 fi
28761 rm -f conftest.err conftest.$ac_objext \
28762       conftest$ac_exeext conftest.$ac_ext
28763
28764         LIBS="$ol_LIBS"
28765
28766 fi
28767 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28768 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28769
28770         if test $ol_cv_db_db_4_4 = yes ; then
28771                 ol_cv_lib_db=-ldb-4-4
28772         fi
28773 fi
28774
28775         elif test $ol_cv_bdb_minor = 3 ; then
28776                 if test $ol_cv_lib_db = no ; then
28777         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28778 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28779 if test "${ol_cv_db_db43+set}" = set; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 else
28782
28783         ol_DB_LIB=-ldb43
28784         ol_LIBS=$LIBS
28785         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28786
28787         cat >conftest.$ac_ext <<_ACEOF
28788 /* confdefs.h.  */
28789 _ACEOF
28790 cat confdefs.h >>conftest.$ac_ext
28791 cat >>conftest.$ac_ext <<_ACEOF
28792 /* end confdefs.h.  */
28793
28794 #ifdef HAVE_DB_185_H
28795 # include <db_185.h>
28796 #else
28797 # include <db.h>
28798 #endif
28799
28800 #ifndef DB_VERSION_MAJOR
28801 # define DB_VERSION_MAJOR 1
28802 #endif
28803
28804 #ifndef NULL
28805 #define NULL ((void*)0)
28806 #endif
28807
28808 int
28809 main ()
28810 {
28811
28812 #if DB_VERSION_MAJOR > 1
28813         {
28814                 char *version;
28815                 int major, minor, patch;
28816
28817                 version = db_version( &major, &minor, &patch );
28818
28819                 if( major != DB_VERSION_MAJOR ||
28820                         minor < DB_VERSION_MINOR )
28821                 {
28822                         printf("Berkeley DB version mismatch\n"
28823                                 "\theader: %s\n\tlibrary: %s\n",
28824                                 DB_VERSION_STRING, version);
28825                         return 1;
28826                 }
28827         }
28828 #endif
28829
28830 #if DB_VERSION_MAJOR > 2
28831         db_env_create( NULL, 0 );
28832 #elif DB_VERSION_MAJOR > 1
28833         db_appexit( NULL );
28834 #else
28835         (void) dbopen( NULL, 0, 0, 0, NULL);
28836 #endif
28837
28838   ;
28839   return 0;
28840 }
28841 _ACEOF
28842 rm -f conftest.$ac_objext conftest$ac_exeext
28843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28844   (eval $ac_link) 2>conftest.er1
28845   ac_status=$?
28846   grep -v '^ *+' conftest.er1 >conftest.err
28847   rm -f conftest.er1
28848   cat conftest.err >&5
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); } &&
28851          { ac_try='test -z "$ac_c_werror_flag"
28852                          || test ! -s conftest.err'
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); }; } &&
28858          { ac_try='test -s conftest$ac_exeext'
28859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860   (eval $ac_try) 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; }; then
28864   ol_cv_db_db43=yes
28865 else
28866   echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28868
28869 ol_cv_db_db43=no
28870 fi
28871 rm -f conftest.err conftest.$ac_objext \
28872       conftest$ac_exeext conftest.$ac_ext
28873
28874         LIBS="$ol_LIBS"
28875
28876 fi
28877 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28878 echo "${ECHO_T}$ol_cv_db_db43" >&6
28879
28880         if test $ol_cv_db_db43 = yes ; then
28881                 ol_cv_lib_db=-ldb43
28882         fi
28883 fi
28884
28885                 if test $ol_cv_lib_db = no ; then
28886         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28887 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28888 if test "${ol_cv_db_db_43+set}" = set; then
28889   echo $ECHO_N "(cached) $ECHO_C" >&6
28890 else
28891
28892         ol_DB_LIB=-ldb-43
28893         ol_LIBS=$LIBS
28894         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28895
28896         cat >conftest.$ac_ext <<_ACEOF
28897 /* confdefs.h.  */
28898 _ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h.  */
28902
28903 #ifdef HAVE_DB_185_H
28904 # include <db_185.h>
28905 #else
28906 # include <db.h>
28907 #endif
28908
28909 #ifndef DB_VERSION_MAJOR
28910 # define DB_VERSION_MAJOR 1
28911 #endif
28912
28913 #ifndef NULL
28914 #define NULL ((void*)0)
28915 #endif
28916
28917 int
28918 main ()
28919 {
28920
28921 #if DB_VERSION_MAJOR > 1
28922         {
28923                 char *version;
28924                 int major, minor, patch;
28925
28926                 version = db_version( &major, &minor, &patch );
28927
28928                 if( major != DB_VERSION_MAJOR ||
28929                         minor < DB_VERSION_MINOR )
28930                 {
28931                         printf("Berkeley DB version mismatch\n"
28932                                 "\theader: %s\n\tlibrary: %s\n",
28933                                 DB_VERSION_STRING, version);
28934                         return 1;
28935                 }
28936         }
28937 #endif
28938
28939 #if DB_VERSION_MAJOR > 2
28940         db_env_create( NULL, 0 );
28941 #elif DB_VERSION_MAJOR > 1
28942         db_appexit( NULL );
28943 #else
28944         (void) dbopen( NULL, 0, 0, 0, NULL);
28945 #endif
28946
28947   ;
28948   return 0;
28949 }
28950 _ACEOF
28951 rm -f conftest.$ac_objext conftest$ac_exeext
28952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28953   (eval $ac_link) 2>conftest.er1
28954   ac_status=$?
28955   grep -v '^ *+' conftest.er1 >conftest.err
28956   rm -f conftest.er1
28957   cat conftest.err >&5
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } &&
28960          { ac_try='test -z "$ac_c_werror_flag"
28961                          || test ! -s conftest.err'
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); }; } &&
28967          { ac_try='test -s conftest$ac_exeext'
28968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969   (eval $ac_try) 2>&5
28970   ac_status=$?
28971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); }; }; then
28973   ol_cv_db_db_43=yes
28974 else
28975   echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28977
28978 ol_cv_db_db_43=no
28979 fi
28980 rm -f conftest.err conftest.$ac_objext \
28981       conftest$ac_exeext conftest.$ac_ext
28982
28983         LIBS="$ol_LIBS"
28984
28985 fi
28986 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28987 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28988
28989         if test $ol_cv_db_db_43 = yes ; then
28990                 ol_cv_lib_db=-ldb-43
28991         fi
28992 fi
28993
28994                 if test $ol_cv_lib_db = no ; then
28995         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28996 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28997 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28998   echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000
29001         ol_DB_LIB=-ldb-4.3
29002         ol_LIBS=$LIBS
29003         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29004
29005         cat >conftest.$ac_ext <<_ACEOF
29006 /* confdefs.h.  */
29007 _ACEOF
29008 cat confdefs.h >>conftest.$ac_ext
29009 cat >>conftest.$ac_ext <<_ACEOF
29010 /* end confdefs.h.  */
29011
29012 #ifdef HAVE_DB_185_H
29013 # include <db_185.h>
29014 #else
29015 # include <db.h>
29016 #endif
29017
29018 #ifndef DB_VERSION_MAJOR
29019 # define DB_VERSION_MAJOR 1
29020 #endif
29021
29022 #ifndef NULL
29023 #define NULL ((void*)0)
29024 #endif
29025
29026 int
29027 main ()
29028 {
29029
29030 #if DB_VERSION_MAJOR > 1
29031         {
29032                 char *version;
29033                 int major, minor, patch;
29034
29035                 version = db_version( &major, &minor, &patch );
29036
29037                 if( major != DB_VERSION_MAJOR ||
29038                         minor < DB_VERSION_MINOR )
29039                 {
29040                         printf("Berkeley DB version mismatch\n"
29041                                 "\theader: %s\n\tlibrary: %s\n",
29042                                 DB_VERSION_STRING, version);
29043                         return 1;
29044                 }
29045         }
29046 #endif
29047
29048 #if DB_VERSION_MAJOR > 2
29049         db_env_create( NULL, 0 );
29050 #elif DB_VERSION_MAJOR > 1
29051         db_appexit( NULL );
29052 #else
29053         (void) dbopen( NULL, 0, 0, 0, NULL);
29054 #endif
29055
29056   ;
29057   return 0;
29058 }
29059 _ACEOF
29060 rm -f conftest.$ac_objext conftest$ac_exeext
29061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29062   (eval $ac_link) 2>conftest.er1
29063   ac_status=$?
29064   grep -v '^ *+' conftest.er1 >conftest.err
29065   rm -f conftest.er1
29066   cat conftest.err >&5
29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068   (exit $ac_status); } &&
29069          { ac_try='test -z "$ac_c_werror_flag"
29070                          || test ! -s conftest.err'
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); }; } &&
29076          { ac_try='test -s conftest$ac_exeext'
29077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29078   (eval $ac_try) 2>&5
29079   ac_status=$?
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); }; }; then
29082   ol_cv_db_db_4_dot_3=yes
29083 else
29084   echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.$ac_ext >&5
29086
29087 ol_cv_db_db_4_dot_3=no
29088 fi
29089 rm -f conftest.err conftest.$ac_objext \
29090       conftest$ac_exeext conftest.$ac_ext
29091
29092         LIBS="$ol_LIBS"
29093
29094 fi
29095 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29096 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29097
29098         if test $ol_cv_db_db_4_dot_3 = yes ; then
29099                 ol_cv_lib_db=-ldb-4.3
29100         fi
29101 fi
29102
29103                 if test $ol_cv_lib_db = no ; then
29104         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29105 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29106 if test "${ol_cv_db_db_4_3+set}" = set; then
29107   echo $ECHO_N "(cached) $ECHO_C" >&6
29108 else
29109
29110         ol_DB_LIB=-ldb-4-3
29111         ol_LIBS=$LIBS
29112         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29113
29114         cat >conftest.$ac_ext <<_ACEOF
29115 /* confdefs.h.  */
29116 _ACEOF
29117 cat confdefs.h >>conftest.$ac_ext
29118 cat >>conftest.$ac_ext <<_ACEOF
29119 /* end confdefs.h.  */
29120
29121 #ifdef HAVE_DB_185_H
29122 # include <db_185.h>
29123 #else
29124 # include <db.h>
29125 #endif
29126
29127 #ifndef DB_VERSION_MAJOR
29128 # define DB_VERSION_MAJOR 1
29129 #endif
29130
29131 #ifndef NULL
29132 #define NULL ((void*)0)
29133 #endif
29134
29135 int
29136 main ()
29137 {
29138
29139 #if DB_VERSION_MAJOR > 1
29140         {
29141                 char *version;
29142                 int major, minor, patch;
29143
29144                 version = db_version( &major, &minor, &patch );
29145
29146                 if( major != DB_VERSION_MAJOR ||
29147                         minor < DB_VERSION_MINOR )
29148                 {
29149                         printf("Berkeley DB version mismatch\n"
29150                                 "\theader: %s\n\tlibrary: %s\n",
29151                                 DB_VERSION_STRING, version);
29152                         return 1;
29153                 }
29154         }
29155 #endif
29156
29157 #if DB_VERSION_MAJOR > 2
29158         db_env_create( NULL, 0 );
29159 #elif DB_VERSION_MAJOR > 1
29160         db_appexit( NULL );
29161 #else
29162         (void) dbopen( NULL, 0, 0, 0, NULL);
29163 #endif
29164
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 rm -f conftest.$ac_objext conftest$ac_exeext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171   (eval $ac_link) 2>conftest.er1
29172   ac_status=$?
29173   grep -v '^ *+' conftest.er1 >conftest.err
29174   rm -f conftest.er1
29175   cat conftest.err >&5
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); } &&
29178          { ac_try='test -z "$ac_c_werror_flag"
29179                          || test ! -s conftest.err'
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); }; } &&
29185          { ac_try='test -s conftest$ac_exeext'
29186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187   (eval $ac_try) 2>&5
29188   ac_status=$?
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); }; }; then
29191   ol_cv_db_db_4_3=yes
29192 else
29193   echo "$as_me: failed program was:" >&5
29194 sed 's/^/| /' conftest.$ac_ext >&5
29195
29196 ol_cv_db_db_4_3=no
29197 fi
29198 rm -f conftest.err conftest.$ac_objext \
29199       conftest$ac_exeext conftest.$ac_ext
29200
29201         LIBS="$ol_LIBS"
29202
29203 fi
29204 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29205 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29206
29207         if test $ol_cv_db_db_4_3 = yes ; then
29208                 ol_cv_lib_db=-ldb-4-3
29209         fi
29210 fi
29211
29212         elif test $ol_cv_bdb_minor = 2 ; then
29213                 if test $ol_cv_lib_db = no ; then
29214         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29215 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29216 if test "${ol_cv_db_db42+set}" = set; then
29217   echo $ECHO_N "(cached) $ECHO_C" >&6
29218 else
29219
29220         ol_DB_LIB=-ldb42
29221         ol_LIBS=$LIBS
29222         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29223
29224         cat >conftest.$ac_ext <<_ACEOF
29225 /* confdefs.h.  */
29226 _ACEOF
29227 cat confdefs.h >>conftest.$ac_ext
29228 cat >>conftest.$ac_ext <<_ACEOF
29229 /* end confdefs.h.  */
29230
29231 #ifdef HAVE_DB_185_H
29232 # include <db_185.h>
29233 #else
29234 # include <db.h>
29235 #endif
29236
29237 #ifndef DB_VERSION_MAJOR
29238 # define DB_VERSION_MAJOR 1
29239 #endif
29240
29241 #ifndef NULL
29242 #define NULL ((void*)0)
29243 #endif
29244
29245 int
29246 main ()
29247 {
29248
29249 #if DB_VERSION_MAJOR > 1
29250         {
29251                 char *version;
29252                 int major, minor, patch;
29253
29254                 version = db_version( &major, &minor, &patch );
29255
29256                 if( major != DB_VERSION_MAJOR ||
29257                         minor < DB_VERSION_MINOR )
29258                 {
29259                         printf("Berkeley DB version mismatch\n"
29260                                 "\theader: %s\n\tlibrary: %s\n",
29261                                 DB_VERSION_STRING, version);
29262                         return 1;
29263                 }
29264         }
29265 #endif
29266
29267 #if DB_VERSION_MAJOR > 2
29268         db_env_create( NULL, 0 );
29269 #elif DB_VERSION_MAJOR > 1
29270         db_appexit( NULL );
29271 #else
29272         (void) dbopen( NULL, 0, 0, 0, NULL);
29273 #endif
29274
29275   ;
29276   return 0;
29277 }
29278 _ACEOF
29279 rm -f conftest.$ac_objext conftest$ac_exeext
29280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29281   (eval $ac_link) 2>conftest.er1
29282   ac_status=$?
29283   grep -v '^ *+' conftest.er1 >conftest.err
29284   rm -f conftest.er1
29285   cat conftest.err >&5
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); } &&
29288          { ac_try='test -z "$ac_c_werror_flag"
29289                          || test ! -s conftest.err'
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); }; } &&
29295          { ac_try='test -s conftest$ac_exeext'
29296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29297   (eval $ac_try) 2>&5
29298   ac_status=$?
29299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); }; }; then
29301   ol_cv_db_db42=yes
29302 else
29303   echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29305
29306 ol_cv_db_db42=no
29307 fi
29308 rm -f conftest.err conftest.$ac_objext \
29309       conftest$ac_exeext conftest.$ac_ext
29310
29311         LIBS="$ol_LIBS"
29312
29313 fi
29314 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29315 echo "${ECHO_T}$ol_cv_db_db42" >&6
29316
29317         if test $ol_cv_db_db42 = yes ; then
29318                 ol_cv_lib_db=-ldb42
29319         fi
29320 fi
29321
29322                 if test $ol_cv_lib_db = no ; then
29323         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29324 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29325 if test "${ol_cv_db_db_42+set}" = set; then
29326   echo $ECHO_N "(cached) $ECHO_C" >&6
29327 else
29328
29329         ol_DB_LIB=-ldb-42
29330         ol_LIBS=$LIBS
29331         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29332
29333         cat >conftest.$ac_ext <<_ACEOF
29334 /* confdefs.h.  */
29335 _ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h.  */
29339
29340 #ifdef HAVE_DB_185_H
29341 # include <db_185.h>
29342 #else
29343 # include <db.h>
29344 #endif
29345
29346 #ifndef DB_VERSION_MAJOR
29347 # define DB_VERSION_MAJOR 1
29348 #endif
29349
29350 #ifndef NULL
29351 #define NULL ((void*)0)
29352 #endif
29353
29354 int
29355 main ()
29356 {
29357
29358 #if DB_VERSION_MAJOR > 1
29359         {
29360                 char *version;
29361                 int major, minor, patch;
29362
29363                 version = db_version( &major, &minor, &patch );
29364
29365                 if( major != DB_VERSION_MAJOR ||
29366                         minor < DB_VERSION_MINOR )
29367                 {
29368                         printf("Berkeley DB version mismatch\n"
29369                                 "\theader: %s\n\tlibrary: %s\n",
29370                                 DB_VERSION_STRING, version);
29371                         return 1;
29372                 }
29373         }
29374 #endif
29375
29376 #if DB_VERSION_MAJOR > 2
29377         db_env_create( NULL, 0 );
29378 #elif DB_VERSION_MAJOR > 1
29379         db_appexit( NULL );
29380 #else
29381         (void) dbopen( NULL, 0, 0, 0, NULL);
29382 #endif
29383
29384   ;
29385   return 0;
29386 }
29387 _ACEOF
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29390   (eval $ac_link) 2>conftest.er1
29391   ac_status=$?
29392   grep -v '^ *+' conftest.er1 >conftest.err
29393   rm -f conftest.er1
29394   cat conftest.err >&5
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); } &&
29397          { ac_try='test -z "$ac_c_werror_flag"
29398                          || test ! -s conftest.err'
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); }; } &&
29404          { ac_try='test -s conftest$ac_exeext'
29405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406   (eval $ac_try) 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   ol_cv_db_db_42=yes
29411 else
29412   echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29414
29415 ol_cv_db_db_42=no
29416 fi
29417 rm -f conftest.err conftest.$ac_objext \
29418       conftest$ac_exeext conftest.$ac_ext
29419
29420         LIBS="$ol_LIBS"
29421
29422 fi
29423 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29424 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29425
29426         if test $ol_cv_db_db_42 = yes ; then
29427                 ol_cv_lib_db=-ldb-42
29428         fi
29429 fi
29430
29431                 if test $ol_cv_lib_db = no ; then
29432         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29433 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29434 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29435   echo $ECHO_N "(cached) $ECHO_C" >&6
29436 else
29437
29438         ol_DB_LIB=-ldb-4.2
29439         ol_LIBS=$LIBS
29440         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29441
29442         cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h.  */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h.  */
29448
29449 #ifdef HAVE_DB_185_H
29450 # include <db_185.h>
29451 #else
29452 # include <db.h>
29453 #endif
29454
29455 #ifndef DB_VERSION_MAJOR
29456 # define DB_VERSION_MAJOR 1
29457 #endif
29458
29459 #ifndef NULL
29460 #define NULL ((void*)0)
29461 #endif
29462
29463 int
29464 main ()
29465 {
29466
29467 #if DB_VERSION_MAJOR > 1
29468         {
29469                 char *version;
29470                 int major, minor, patch;
29471
29472                 version = db_version( &major, &minor, &patch );
29473
29474                 if( major != DB_VERSION_MAJOR ||
29475                         minor < DB_VERSION_MINOR )
29476                 {
29477                         printf("Berkeley DB version mismatch\n"
29478                                 "\theader: %s\n\tlibrary: %s\n",
29479                                 DB_VERSION_STRING, version);
29480                         return 1;
29481                 }
29482         }
29483 #endif
29484
29485 #if DB_VERSION_MAJOR > 2
29486         db_env_create( NULL, 0 );
29487 #elif DB_VERSION_MAJOR > 1
29488         db_appexit( NULL );
29489 #else
29490         (void) dbopen( NULL, 0, 0, 0, NULL);
29491 #endif
29492
29493   ;
29494   return 0;
29495 }
29496 _ACEOF
29497 rm -f conftest.$ac_objext conftest$ac_exeext
29498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29499   (eval $ac_link) 2>conftest.er1
29500   ac_status=$?
29501   grep -v '^ *+' conftest.er1 >conftest.err
29502   rm -f conftest.er1
29503   cat conftest.err >&5
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); } &&
29506          { ac_try='test -z "$ac_c_werror_flag"
29507                          || test ! -s conftest.err'
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); }; } &&
29513          { ac_try='test -s conftest$ac_exeext'
29514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515   (eval $ac_try) 2>&5
29516   ac_status=$?
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); }; }; then
29519   ol_cv_db_db_4_dot_2=yes
29520 else
29521   echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524 ol_cv_db_db_4_dot_2=no
29525 fi
29526 rm -f conftest.err conftest.$ac_objext \
29527       conftest$ac_exeext conftest.$ac_ext
29528
29529         LIBS="$ol_LIBS"
29530
29531 fi
29532 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29533 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29534
29535         if test $ol_cv_db_db_4_dot_2 = yes ; then
29536                 ol_cv_lib_db=-ldb-4.2
29537         fi
29538 fi
29539
29540                 if test $ol_cv_lib_db = no ; then
29541         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29542 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29543 if test "${ol_cv_db_db_4_2+set}" = set; then
29544   echo $ECHO_N "(cached) $ECHO_C" >&6
29545 else
29546
29547         ol_DB_LIB=-ldb-4-2
29548         ol_LIBS=$LIBS
29549         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29550
29551         cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557
29558 #ifdef HAVE_DB_185_H
29559 # include <db_185.h>
29560 #else
29561 # include <db.h>
29562 #endif
29563
29564 #ifndef DB_VERSION_MAJOR
29565 # define DB_VERSION_MAJOR 1
29566 #endif
29567
29568 #ifndef NULL
29569 #define NULL ((void*)0)
29570 #endif
29571
29572 int
29573 main ()
29574 {
29575
29576 #if DB_VERSION_MAJOR > 1
29577         {
29578                 char *version;
29579                 int major, minor, patch;
29580
29581                 version = db_version( &major, &minor, &patch );
29582
29583                 if( major != DB_VERSION_MAJOR ||
29584                         minor < DB_VERSION_MINOR )
29585                 {
29586                         printf("Berkeley DB version mismatch\n"
29587                                 "\theader: %s\n\tlibrary: %s\n",
29588                                 DB_VERSION_STRING, version);
29589                         return 1;
29590                 }
29591         }
29592 #endif
29593
29594 #if DB_VERSION_MAJOR > 2
29595         db_env_create( NULL, 0 );
29596 #elif DB_VERSION_MAJOR > 1
29597         db_appexit( NULL );
29598 #else
29599         (void) dbopen( NULL, 0, 0, 0, NULL);
29600 #endif
29601
29602   ;
29603   return 0;
29604 }
29605 _ACEOF
29606 rm -f conftest.$ac_objext conftest$ac_exeext
29607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29608   (eval $ac_link) 2>conftest.er1
29609   ac_status=$?
29610   grep -v '^ *+' conftest.er1 >conftest.err
29611   rm -f conftest.er1
29612   cat conftest.err >&5
29613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614   (exit $ac_status); } &&
29615          { ac_try='test -z "$ac_c_werror_flag"
29616                          || test ! -s conftest.err'
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); }; } &&
29622          { ac_try='test -s conftest$ac_exeext'
29623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624   (eval $ac_try) 2>&5
29625   ac_status=$?
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); }; }; then
29628   ol_cv_db_db_4_2=yes
29629 else
29630   echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29632
29633 ol_cv_db_db_4_2=no
29634 fi
29635 rm -f conftest.err conftest.$ac_objext \
29636       conftest$ac_exeext conftest.$ac_ext
29637
29638         LIBS="$ol_LIBS"
29639
29640 fi
29641 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29642 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29643
29644         if test $ol_cv_db_db_4_2 = yes ; then
29645                 ol_cv_lib_db=-ldb-4-2
29646         fi
29647 fi
29648
29649         elif test $ol_cv_bdb_minor = 1 ; then
29650                 if test $ol_cv_lib_db = no ; then
29651         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29652 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29653 if test "${ol_cv_db_db41+set}" = set; then
29654   echo $ECHO_N "(cached) $ECHO_C" >&6
29655 else
29656
29657         ol_DB_LIB=-ldb41
29658         ol_LIBS=$LIBS
29659         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29660
29661         cat >conftest.$ac_ext <<_ACEOF
29662 /* confdefs.h.  */
29663 _ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h.  */
29667
29668 #ifdef HAVE_DB_185_H
29669 # include <db_185.h>
29670 #else
29671 # include <db.h>
29672 #endif
29673
29674 #ifndef DB_VERSION_MAJOR
29675 # define DB_VERSION_MAJOR 1
29676 #endif
29677
29678 #ifndef NULL
29679 #define NULL ((void*)0)
29680 #endif
29681
29682 int
29683 main ()
29684 {
29685
29686 #if DB_VERSION_MAJOR > 1
29687         {
29688                 char *version;
29689                 int major, minor, patch;
29690
29691                 version = db_version( &major, &minor, &patch );
29692
29693                 if( major != DB_VERSION_MAJOR ||
29694                         minor < DB_VERSION_MINOR )
29695                 {
29696                         printf("Berkeley DB version mismatch\n"
29697                                 "\theader: %s\n\tlibrary: %s\n",
29698                                 DB_VERSION_STRING, version);
29699                         return 1;
29700                 }
29701         }
29702 #endif
29703
29704 #if DB_VERSION_MAJOR > 2
29705         db_env_create( NULL, 0 );
29706 #elif DB_VERSION_MAJOR > 1
29707         db_appexit( NULL );
29708 #else
29709         (void) dbopen( NULL, 0, 0, 0, NULL);
29710 #endif
29711
29712   ;
29713   return 0;
29714 }
29715 _ACEOF
29716 rm -f conftest.$ac_objext conftest$ac_exeext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29718   (eval $ac_link) 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } &&
29725          { ac_try='test -z "$ac_c_werror_flag"
29726                          || test ! -s conftest.err'
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); }; } &&
29732          { ac_try='test -s conftest$ac_exeext'
29733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734   (eval $ac_try) 2>&5
29735   ac_status=$?
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); }; }; then
29738   ol_cv_db_db41=yes
29739 else
29740   echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29742
29743 ol_cv_db_db41=no
29744 fi
29745 rm -f conftest.err conftest.$ac_objext \
29746       conftest$ac_exeext conftest.$ac_ext
29747
29748         LIBS="$ol_LIBS"
29749
29750 fi
29751 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29752 echo "${ECHO_T}$ol_cv_db_db41" >&6
29753
29754         if test $ol_cv_db_db41 = yes ; then
29755                 ol_cv_lib_db=-ldb41
29756         fi
29757 fi
29758
29759                 if test $ol_cv_lib_db = no ; then
29760         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29761 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29762 if test "${ol_cv_db_db_41+set}" = set; then
29763   echo $ECHO_N "(cached) $ECHO_C" >&6
29764 else
29765
29766         ol_DB_LIB=-ldb-41
29767         ol_LIBS=$LIBS
29768         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29769
29770         cat >conftest.$ac_ext <<_ACEOF
29771 /* confdefs.h.  */
29772 _ACEOF
29773 cat confdefs.h >>conftest.$ac_ext
29774 cat >>conftest.$ac_ext <<_ACEOF
29775 /* end confdefs.h.  */
29776
29777 #ifdef HAVE_DB_185_H
29778 # include <db_185.h>
29779 #else
29780 # include <db.h>
29781 #endif
29782
29783 #ifndef DB_VERSION_MAJOR
29784 # define DB_VERSION_MAJOR 1
29785 #endif
29786
29787 #ifndef NULL
29788 #define NULL ((void*)0)
29789 #endif
29790
29791 int
29792 main ()
29793 {
29794
29795 #if DB_VERSION_MAJOR > 1
29796         {
29797                 char *version;
29798                 int major, minor, patch;
29799
29800                 version = db_version( &major, &minor, &patch );
29801
29802                 if( major != DB_VERSION_MAJOR ||
29803                         minor < DB_VERSION_MINOR )
29804                 {
29805                         printf("Berkeley DB version mismatch\n"
29806                                 "\theader: %s\n\tlibrary: %s\n",
29807                                 DB_VERSION_STRING, version);
29808                         return 1;
29809                 }
29810         }
29811 #endif
29812
29813 #if DB_VERSION_MAJOR > 2
29814         db_env_create( NULL, 0 );
29815 #elif DB_VERSION_MAJOR > 1
29816         db_appexit( NULL );
29817 #else
29818         (void) dbopen( NULL, 0, 0, 0, NULL);
29819 #endif
29820
29821   ;
29822   return 0;
29823 }
29824 _ACEOF
29825 rm -f conftest.$ac_objext conftest$ac_exeext
29826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29827   (eval $ac_link) 2>conftest.er1
29828   ac_status=$?
29829   grep -v '^ *+' conftest.er1 >conftest.err
29830   rm -f conftest.er1
29831   cat conftest.err >&5
29832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833   (exit $ac_status); } &&
29834          { ac_try='test -z "$ac_c_werror_flag"
29835                          || test ! -s conftest.err'
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); }; } &&
29841          { ac_try='test -s conftest$ac_exeext'
29842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843   (eval $ac_try) 2>&5
29844   ac_status=$?
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); }; }; then
29847   ol_cv_db_db_41=yes
29848 else
29849   echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29851
29852 ol_cv_db_db_41=no
29853 fi
29854 rm -f conftest.err conftest.$ac_objext \
29855       conftest$ac_exeext conftest.$ac_ext
29856
29857         LIBS="$ol_LIBS"
29858
29859 fi
29860 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29861 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29862
29863         if test $ol_cv_db_db_41 = yes ; then
29864                 ol_cv_lib_db=-ldb-41
29865         fi
29866 fi
29867
29868                 if test $ol_cv_lib_db = no ; then
29869         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29870 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29871 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29872   echo $ECHO_N "(cached) $ECHO_C" >&6
29873 else
29874
29875         ol_DB_LIB=-ldb-4.1
29876         ol_LIBS=$LIBS
29877         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29878
29879         cat >conftest.$ac_ext <<_ACEOF
29880 /* confdefs.h.  */
29881 _ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h.  */
29885
29886 #ifdef HAVE_DB_185_H
29887 # include <db_185.h>
29888 #else
29889 # include <db.h>
29890 #endif
29891
29892 #ifndef DB_VERSION_MAJOR
29893 # define DB_VERSION_MAJOR 1
29894 #endif
29895
29896 #ifndef NULL
29897 #define NULL ((void*)0)
29898 #endif
29899
29900 int
29901 main ()
29902 {
29903
29904 #if DB_VERSION_MAJOR > 1
29905         {
29906                 char *version;
29907                 int major, minor, patch;
29908
29909                 version = db_version( &major, &minor, &patch );
29910
29911                 if( major != DB_VERSION_MAJOR ||
29912                         minor < DB_VERSION_MINOR )
29913                 {
29914                         printf("Berkeley DB version mismatch\n"
29915                                 "\theader: %s\n\tlibrary: %s\n",
29916                                 DB_VERSION_STRING, version);
29917                         return 1;
29918                 }
29919         }
29920 #endif
29921
29922 #if DB_VERSION_MAJOR > 2
29923         db_env_create( NULL, 0 );
29924 #elif DB_VERSION_MAJOR > 1
29925         db_appexit( NULL );
29926 #else
29927         (void) dbopen( NULL, 0, 0, 0, NULL);
29928 #endif
29929
29930   ;
29931   return 0;
29932 }
29933 _ACEOF
29934 rm -f conftest.$ac_objext conftest$ac_exeext
29935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29936   (eval $ac_link) 2>conftest.er1
29937   ac_status=$?
29938   grep -v '^ *+' conftest.er1 >conftest.err
29939   rm -f conftest.er1
29940   cat conftest.err >&5
29941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942   (exit $ac_status); } &&
29943          { ac_try='test -z "$ac_c_werror_flag"
29944                          || test ! -s conftest.err'
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); }; } &&
29950          { ac_try='test -s conftest$ac_exeext'
29951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952   (eval $ac_try) 2>&5
29953   ac_status=$?
29954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955   (exit $ac_status); }; }; then
29956   ol_cv_db_db_4_dot_1=yes
29957 else
29958   echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.$ac_ext >&5
29960
29961 ol_cv_db_db_4_dot_1=no
29962 fi
29963 rm -f conftest.err conftest.$ac_objext \
29964       conftest$ac_exeext conftest.$ac_ext
29965
29966         LIBS="$ol_LIBS"
29967
29968 fi
29969 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29970 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29971
29972         if test $ol_cv_db_db_4_dot_1 = yes ; then
29973                 ol_cv_lib_db=-ldb-4.1
29974         fi
29975 fi
29976
29977                 if test $ol_cv_lib_db = no ; then
29978         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29979 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29980 if test "${ol_cv_db_db_4_1+set}" = set; then
29981   echo $ECHO_N "(cached) $ECHO_C" >&6
29982 else
29983
29984         ol_DB_LIB=-ldb-4-1
29985         ol_LIBS=$LIBS
29986         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29987
29988         cat >conftest.$ac_ext <<_ACEOF
29989 /* confdefs.h.  */
29990 _ACEOF
29991 cat confdefs.h >>conftest.$ac_ext
29992 cat >>conftest.$ac_ext <<_ACEOF
29993 /* end confdefs.h.  */
29994
29995 #ifdef HAVE_DB_185_H
29996 # include <db_185.h>
29997 #else
29998 # include <db.h>
29999 #endif
30000
30001 #ifndef DB_VERSION_MAJOR
30002 # define DB_VERSION_MAJOR 1
30003 #endif
30004
30005 #ifndef NULL
30006 #define NULL ((void*)0)
30007 #endif
30008
30009 int
30010 main ()
30011 {
30012
30013 #if DB_VERSION_MAJOR > 1
30014         {
30015                 char *version;
30016                 int major, minor, patch;
30017
30018                 version = db_version( &major, &minor, &patch );
30019
30020                 if( major != DB_VERSION_MAJOR ||
30021                         minor < DB_VERSION_MINOR )
30022                 {
30023                         printf("Berkeley DB version mismatch\n"
30024                                 "\theader: %s\n\tlibrary: %s\n",
30025                                 DB_VERSION_STRING, version);
30026                         return 1;
30027                 }
30028         }
30029 #endif
30030
30031 #if DB_VERSION_MAJOR > 2
30032         db_env_create( NULL, 0 );
30033 #elif DB_VERSION_MAJOR > 1
30034         db_appexit( NULL );
30035 #else
30036         (void) dbopen( NULL, 0, 0, 0, NULL);
30037 #endif
30038
30039   ;
30040   return 0;
30041 }
30042 _ACEOF
30043 rm -f conftest.$ac_objext conftest$ac_exeext
30044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30045   (eval $ac_link) 2>conftest.er1
30046   ac_status=$?
30047   grep -v '^ *+' conftest.er1 >conftest.err
30048   rm -f conftest.er1
30049   cat conftest.err >&5
30050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051   (exit $ac_status); } &&
30052          { ac_try='test -z "$ac_c_werror_flag"
30053                          || test ! -s conftest.err'
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); }; } &&
30059          { ac_try='test -s conftest$ac_exeext'
30060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30061   (eval $ac_try) 2>&5
30062   ac_status=$?
30063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064   (exit $ac_status); }; }; then
30065   ol_cv_db_db_4_1=yes
30066 else
30067   echo "$as_me: failed program was:" >&5
30068 sed 's/^/| /' conftest.$ac_ext >&5
30069
30070 ol_cv_db_db_4_1=no
30071 fi
30072 rm -f conftest.err conftest.$ac_objext \
30073       conftest$ac_exeext conftest.$ac_ext
30074
30075         LIBS="$ol_LIBS"
30076
30077 fi
30078 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30079 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30080
30081         if test $ol_cv_db_db_4_1 = yes ; then
30082                 ol_cv_lib_db=-ldb-4-1
30083         fi
30084 fi
30085
30086         fi
30087         if test $ol_cv_lib_db = no ; then
30088         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30089 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30090 if test "${ol_cv_db_db_4+set}" = set; then
30091   echo $ECHO_N "(cached) $ECHO_C" >&6
30092 else
30093
30094         ol_DB_LIB=-ldb-4
30095         ol_LIBS=$LIBS
30096         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30097
30098         cat >conftest.$ac_ext <<_ACEOF
30099 /* confdefs.h.  */
30100 _ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h.  */
30104
30105 #ifdef HAVE_DB_185_H
30106 # include <db_185.h>
30107 #else
30108 # include <db.h>
30109 #endif
30110
30111 #ifndef DB_VERSION_MAJOR
30112 # define DB_VERSION_MAJOR 1
30113 #endif
30114
30115 #ifndef NULL
30116 #define NULL ((void*)0)
30117 #endif
30118
30119 int
30120 main ()
30121 {
30122
30123 #if DB_VERSION_MAJOR > 1
30124         {
30125                 char *version;
30126                 int major, minor, patch;
30127
30128                 version = db_version( &major, &minor, &patch );
30129
30130                 if( major != DB_VERSION_MAJOR ||
30131                         minor < DB_VERSION_MINOR )
30132                 {
30133                         printf("Berkeley DB version mismatch\n"
30134                                 "\theader: %s\n\tlibrary: %s\n",
30135                                 DB_VERSION_STRING, version);
30136                         return 1;
30137                 }
30138         }
30139 #endif
30140
30141 #if DB_VERSION_MAJOR > 2
30142         db_env_create( NULL, 0 );
30143 #elif DB_VERSION_MAJOR > 1
30144         db_appexit( NULL );
30145 #else
30146         (void) dbopen( NULL, 0, 0, 0, NULL);
30147 #endif
30148
30149   ;
30150   return 0;
30151 }
30152 _ACEOF
30153 rm -f conftest.$ac_objext conftest$ac_exeext
30154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30155   (eval $ac_link) 2>conftest.er1
30156   ac_status=$?
30157   grep -v '^ *+' conftest.er1 >conftest.err
30158   rm -f conftest.er1
30159   cat conftest.err >&5
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); } &&
30162          { ac_try='test -z "$ac_c_werror_flag"
30163                          || test ! -s conftest.err'
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); }; } &&
30169          { ac_try='test -s conftest$ac_exeext'
30170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30171   (eval $ac_try) 2>&5
30172   ac_status=$?
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); }; }; then
30175   ol_cv_db_db_4=yes
30176 else
30177   echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30179
30180 ol_cv_db_db_4=no
30181 fi
30182 rm -f conftest.err conftest.$ac_objext \
30183       conftest$ac_exeext conftest.$ac_ext
30184
30185         LIBS="$ol_LIBS"
30186
30187 fi
30188 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30189 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30190
30191         if test $ol_cv_db_db_4 = yes ; then
30192                 ol_cv_lib_db=-ldb-4
30193         fi
30194 fi
30195
30196         if test $ol_cv_lib_db = no ; then
30197         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30198 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30199 if test "${ol_cv_db_db4+set}" = set; then
30200   echo $ECHO_N "(cached) $ECHO_C" >&6
30201 else
30202
30203         ol_DB_LIB=-ldb4
30204         ol_LIBS=$LIBS
30205         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30206
30207         cat >conftest.$ac_ext <<_ACEOF
30208 /* confdefs.h.  */
30209 _ACEOF
30210 cat confdefs.h >>conftest.$ac_ext
30211 cat >>conftest.$ac_ext <<_ACEOF
30212 /* end confdefs.h.  */
30213
30214 #ifdef HAVE_DB_185_H
30215 # include <db_185.h>
30216 #else
30217 # include <db.h>
30218 #endif
30219
30220 #ifndef DB_VERSION_MAJOR
30221 # define DB_VERSION_MAJOR 1
30222 #endif
30223
30224 #ifndef NULL
30225 #define NULL ((void*)0)
30226 #endif
30227
30228 int
30229 main ()
30230 {
30231
30232 #if DB_VERSION_MAJOR > 1
30233         {
30234                 char *version;
30235                 int major, minor, patch;
30236
30237                 version = db_version( &major, &minor, &patch );
30238
30239                 if( major != DB_VERSION_MAJOR ||
30240                         minor < DB_VERSION_MINOR )
30241                 {
30242                         printf("Berkeley DB version mismatch\n"
30243                                 "\theader: %s\n\tlibrary: %s\n",
30244                                 DB_VERSION_STRING, version);
30245                         return 1;
30246                 }
30247         }
30248 #endif
30249
30250 #if DB_VERSION_MAJOR > 2
30251         db_env_create( NULL, 0 );
30252 #elif DB_VERSION_MAJOR > 1
30253         db_appexit( NULL );
30254 #else
30255         (void) dbopen( NULL, 0, 0, 0, NULL);
30256 #endif
30257
30258   ;
30259   return 0;
30260 }
30261 _ACEOF
30262 rm -f conftest.$ac_objext conftest$ac_exeext
30263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30264   (eval $ac_link) 2>conftest.er1
30265   ac_status=$?
30266   grep -v '^ *+' conftest.er1 >conftest.err
30267   rm -f conftest.er1
30268   cat conftest.err >&5
30269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270   (exit $ac_status); } &&
30271          { ac_try='test -z "$ac_c_werror_flag"
30272                          || test ! -s conftest.err'
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); }; } &&
30278          { ac_try='test -s conftest$ac_exeext'
30279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280   (eval $ac_try) 2>&5
30281   ac_status=$?
30282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283   (exit $ac_status); }; }; then
30284   ol_cv_db_db4=yes
30285 else
30286   echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30288
30289 ol_cv_db_db4=no
30290 fi
30291 rm -f conftest.err conftest.$ac_objext \
30292       conftest$ac_exeext conftest.$ac_ext
30293
30294         LIBS="$ol_LIBS"
30295
30296 fi
30297 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30298 echo "${ECHO_T}$ol_cv_db_db4" >&6
30299
30300         if test $ol_cv_db_db4 = yes ; then
30301                 ol_cv_lib_db=-ldb4
30302         fi
30303 fi
30304
30305         if test $ol_cv_lib_db = no ; then
30306         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30307 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30308 if test "${ol_cv_db_db+set}" = set; then
30309   echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311
30312         ol_DB_LIB=-ldb
30313         ol_LIBS=$LIBS
30314         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30315
30316         cat >conftest.$ac_ext <<_ACEOF
30317 /* confdefs.h.  */
30318 _ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h.  */
30322
30323 #ifdef HAVE_DB_185_H
30324 # include <db_185.h>
30325 #else
30326 # include <db.h>
30327 #endif
30328
30329 #ifndef DB_VERSION_MAJOR
30330 # define DB_VERSION_MAJOR 1
30331 #endif
30332
30333 #ifndef NULL
30334 #define NULL ((void*)0)
30335 #endif
30336
30337 int
30338 main ()
30339 {
30340
30341 #if DB_VERSION_MAJOR > 1
30342         {
30343                 char *version;
30344                 int major, minor, patch;
30345
30346                 version = db_version( &major, &minor, &patch );
30347
30348                 if( major != DB_VERSION_MAJOR ||
30349                         minor < DB_VERSION_MINOR )
30350                 {
30351                         printf("Berkeley DB version mismatch\n"
30352                                 "\theader: %s\n\tlibrary: %s\n",
30353                                 DB_VERSION_STRING, version);
30354                         return 1;
30355                 }
30356         }
30357 #endif
30358
30359 #if DB_VERSION_MAJOR > 2
30360         db_env_create( NULL, 0 );
30361 #elif DB_VERSION_MAJOR > 1
30362         db_appexit( NULL );
30363 #else
30364         (void) dbopen( NULL, 0, 0, 0, NULL);
30365 #endif
30366
30367   ;
30368   return 0;
30369 }
30370 _ACEOF
30371 rm -f conftest.$ac_objext conftest$ac_exeext
30372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30373   (eval $ac_link) 2>conftest.er1
30374   ac_status=$?
30375   grep -v '^ *+' conftest.er1 >conftest.err
30376   rm -f conftest.er1
30377   cat conftest.err >&5
30378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379   (exit $ac_status); } &&
30380          { ac_try='test -z "$ac_c_werror_flag"
30381                          || test ! -s conftest.err'
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); }; } &&
30387          { ac_try='test -s conftest$ac_exeext'
30388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389   (eval $ac_try) 2>&5
30390   ac_status=$?
30391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); }; }; then
30393   ol_cv_db_db=yes
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30397
30398 ol_cv_db_db=no
30399 fi
30400 rm -f conftest.err conftest.$ac_objext \
30401       conftest$ac_exeext conftest.$ac_ext
30402
30403         LIBS="$ol_LIBS"
30404
30405 fi
30406 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30407 echo "${ECHO_T}$ol_cv_db_db" >&6
30408
30409         if test $ol_cv_db_db = yes ; then
30410                 ol_cv_lib_db=-ldb
30411         fi
30412 fi
30413
30414
30415 elif test $ol_cv_bdb_major = 3 ; then
30416         if test $ol_cv_lib_db = no ; then
30417         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30418 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30419 if test "${ol_cv_db_db3+set}" = set; then
30420   echo $ECHO_N "(cached) $ECHO_C" >&6
30421 else
30422
30423         ol_DB_LIB=-ldb3
30424         ol_LIBS=$LIBS
30425         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30426
30427         cat >conftest.$ac_ext <<_ACEOF
30428 /* confdefs.h.  */
30429 _ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h.  */
30433
30434 #ifdef HAVE_DB_185_H
30435 # include <db_185.h>
30436 #else
30437 # include <db.h>
30438 #endif
30439
30440 #ifndef DB_VERSION_MAJOR
30441 # define DB_VERSION_MAJOR 1
30442 #endif
30443
30444 #ifndef NULL
30445 #define NULL ((void*)0)
30446 #endif
30447
30448 int
30449 main ()
30450 {
30451
30452 #if DB_VERSION_MAJOR > 1
30453         {
30454                 char *version;
30455                 int major, minor, patch;
30456
30457                 version = db_version( &major, &minor, &patch );
30458
30459                 if( major != DB_VERSION_MAJOR ||
30460                         minor < DB_VERSION_MINOR )
30461                 {
30462                         printf("Berkeley DB version mismatch\n"
30463                                 "\theader: %s\n\tlibrary: %s\n",
30464                                 DB_VERSION_STRING, version);
30465                         return 1;
30466                 }
30467         }
30468 #endif
30469
30470 #if DB_VERSION_MAJOR > 2
30471         db_env_create( NULL, 0 );
30472 #elif DB_VERSION_MAJOR > 1
30473         db_appexit( NULL );
30474 #else
30475         (void) dbopen( NULL, 0, 0, 0, NULL);
30476 #endif
30477
30478   ;
30479   return 0;
30480 }
30481 _ACEOF
30482 rm -f conftest.$ac_objext conftest$ac_exeext
30483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30484   (eval $ac_link) 2>conftest.er1
30485   ac_status=$?
30486   grep -v '^ *+' conftest.er1 >conftest.err
30487   rm -f conftest.er1
30488   cat conftest.err >&5
30489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490   (exit $ac_status); } &&
30491          { ac_try='test -z "$ac_c_werror_flag"
30492                          || test ! -s conftest.err'
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); }; } &&
30498          { ac_try='test -s conftest$ac_exeext'
30499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500   (eval $ac_try) 2>&5
30501   ac_status=$?
30502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503   (exit $ac_status); }; }; then
30504   ol_cv_db_db3=yes
30505 else
30506   echo "$as_me: failed program was:" >&5
30507 sed 's/^/| /' conftest.$ac_ext >&5
30508
30509 ol_cv_db_db3=no
30510 fi
30511 rm -f conftest.err conftest.$ac_objext \
30512       conftest$ac_exeext conftest.$ac_ext
30513
30514         LIBS="$ol_LIBS"
30515
30516 fi
30517 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30518 echo "${ECHO_T}$ol_cv_db_db3" >&6
30519
30520         if test $ol_cv_db_db3 = yes ; then
30521                 ol_cv_lib_db=-ldb3
30522         fi
30523 fi
30524
30525         if test $ol_cv_lib_db = no ; then
30526         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30527 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30528 if test "${ol_cv_db_db_3+set}" = set; then
30529   echo $ECHO_N "(cached) $ECHO_C" >&6
30530 else
30531
30532         ol_DB_LIB=-ldb-3
30533         ol_LIBS=$LIBS
30534         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30535
30536         cat >conftest.$ac_ext <<_ACEOF
30537 /* confdefs.h.  */
30538 _ACEOF
30539 cat confdefs.h >>conftest.$ac_ext
30540 cat >>conftest.$ac_ext <<_ACEOF
30541 /* end confdefs.h.  */
30542
30543 #ifdef HAVE_DB_185_H
30544 # include <db_185.h>
30545 #else
30546 # include <db.h>
30547 #endif
30548
30549 #ifndef DB_VERSION_MAJOR
30550 # define DB_VERSION_MAJOR 1
30551 #endif
30552
30553 #ifndef NULL
30554 #define NULL ((void*)0)
30555 #endif
30556
30557 int
30558 main ()
30559 {
30560
30561 #if DB_VERSION_MAJOR > 1
30562         {
30563                 char *version;
30564                 int major, minor, patch;
30565
30566                 version = db_version( &major, &minor, &patch );
30567
30568                 if( major != DB_VERSION_MAJOR ||
30569                         minor < DB_VERSION_MINOR )
30570                 {
30571                         printf("Berkeley DB version mismatch\n"
30572                                 "\theader: %s\n\tlibrary: %s\n",
30573                                 DB_VERSION_STRING, version);
30574                         return 1;
30575                 }
30576         }
30577 #endif
30578
30579 #if DB_VERSION_MAJOR > 2
30580         db_env_create( NULL, 0 );
30581 #elif DB_VERSION_MAJOR > 1
30582         db_appexit( NULL );
30583 #else
30584         (void) dbopen( NULL, 0, 0, 0, NULL);
30585 #endif
30586
30587   ;
30588   return 0;
30589 }
30590 _ACEOF
30591 rm -f conftest.$ac_objext conftest$ac_exeext
30592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30593   (eval $ac_link) 2>conftest.er1
30594   ac_status=$?
30595   grep -v '^ *+' conftest.er1 >conftest.err
30596   rm -f conftest.er1
30597   cat conftest.err >&5
30598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599   (exit $ac_status); } &&
30600          { ac_try='test -z "$ac_c_werror_flag"
30601                          || test ! -s conftest.err'
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); }; } &&
30607          { ac_try='test -s conftest$ac_exeext'
30608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30609   (eval $ac_try) 2>&5
30610   ac_status=$?
30611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612   (exit $ac_status); }; }; then
30613   ol_cv_db_db_3=yes
30614 else
30615   echo "$as_me: failed program was:" >&5
30616 sed 's/^/| /' conftest.$ac_ext >&5
30617
30618 ol_cv_db_db_3=no
30619 fi
30620 rm -f conftest.err conftest.$ac_objext \
30621       conftest$ac_exeext conftest.$ac_ext
30622
30623         LIBS="$ol_LIBS"
30624
30625 fi
30626 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30627 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30628
30629         if test $ol_cv_db_db_3 = yes ; then
30630                 ol_cv_lib_db=-ldb-3
30631         fi
30632 fi
30633
30634
30635 elif test $ol_cv_bdb_major = 2 ; then
30636         if test $ol_cv_lib_db = no ; then
30637         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30638 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30639 if test "${ol_cv_db_db2+set}" = set; then
30640   echo $ECHO_N "(cached) $ECHO_C" >&6
30641 else
30642
30643         ol_DB_LIB=-ldb2
30644         ol_LIBS=$LIBS
30645         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30646
30647         cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h.  */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h.  */
30653
30654 #ifdef HAVE_DB_185_H
30655 # include <db_185.h>
30656 #else
30657 # include <db.h>
30658 #endif
30659
30660 #ifndef DB_VERSION_MAJOR
30661 # define DB_VERSION_MAJOR 1
30662 #endif
30663
30664 #ifndef NULL
30665 #define NULL ((void*)0)
30666 #endif
30667
30668 int
30669 main ()
30670 {
30671
30672 #if DB_VERSION_MAJOR > 1
30673         {
30674                 char *version;
30675                 int major, minor, patch;
30676
30677                 version = db_version( &major, &minor, &patch );
30678
30679                 if( major != DB_VERSION_MAJOR ||
30680                         minor < DB_VERSION_MINOR )
30681                 {
30682                         printf("Berkeley DB version mismatch\n"
30683                                 "\theader: %s\n\tlibrary: %s\n",
30684                                 DB_VERSION_STRING, version);
30685                         return 1;
30686                 }
30687         }
30688 #endif
30689
30690 #if DB_VERSION_MAJOR > 2
30691         db_env_create( NULL, 0 );
30692 #elif DB_VERSION_MAJOR > 1
30693         db_appexit( NULL );
30694 #else
30695         (void) dbopen( NULL, 0, 0, 0, NULL);
30696 #endif
30697
30698   ;
30699   return 0;
30700 }
30701 _ACEOF
30702 rm -f conftest.$ac_objext conftest$ac_exeext
30703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30704   (eval $ac_link) 2>conftest.er1
30705   ac_status=$?
30706   grep -v '^ *+' conftest.er1 >conftest.err
30707   rm -f conftest.er1
30708   cat conftest.err >&5
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); } &&
30711          { ac_try='test -z "$ac_c_werror_flag"
30712                          || test ! -s conftest.err'
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); }; } &&
30718          { ac_try='test -s conftest$ac_exeext'
30719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30720   (eval $ac_try) 2>&5
30721   ac_status=$?
30722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723   (exit $ac_status); }; }; then
30724   ol_cv_db_db2=yes
30725 else
30726   echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30728
30729 ol_cv_db_db2=no
30730 fi
30731 rm -f conftest.err conftest.$ac_objext \
30732       conftest$ac_exeext conftest.$ac_ext
30733
30734         LIBS="$ol_LIBS"
30735
30736 fi
30737 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30738 echo "${ECHO_T}$ol_cv_db_db2" >&6
30739
30740         if test $ol_cv_db_db2 = yes ; then
30741                 ol_cv_lib_db=-ldb2
30742         fi
30743 fi
30744
30745         if test $ol_cv_lib_db = no ; then
30746         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30747 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30748 if test "${ol_cv_db_db_2+set}" = set; then
30749   echo $ECHO_N "(cached) $ECHO_C" >&6
30750 else
30751
30752         ol_DB_LIB=-ldb-2
30753         ol_LIBS=$LIBS
30754         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30755
30756         cat >conftest.$ac_ext <<_ACEOF
30757 /* confdefs.h.  */
30758 _ACEOF
30759 cat confdefs.h >>conftest.$ac_ext
30760 cat >>conftest.$ac_ext <<_ACEOF
30761 /* end confdefs.h.  */
30762
30763 #ifdef HAVE_DB_185_H
30764 # include <db_185.h>
30765 #else
30766 # include <db.h>
30767 #endif
30768
30769 #ifndef DB_VERSION_MAJOR
30770 # define DB_VERSION_MAJOR 1
30771 #endif
30772
30773 #ifndef NULL
30774 #define NULL ((void*)0)
30775 #endif
30776
30777 int
30778 main ()
30779 {
30780
30781 #if DB_VERSION_MAJOR > 1
30782         {
30783                 char *version;
30784                 int major, minor, patch;
30785
30786                 version = db_version( &major, &minor, &patch );
30787
30788                 if( major != DB_VERSION_MAJOR ||
30789                         minor < DB_VERSION_MINOR )
30790                 {
30791                         printf("Berkeley DB version mismatch\n"
30792                                 "\theader: %s\n\tlibrary: %s\n",
30793                                 DB_VERSION_STRING, version);
30794                         return 1;
30795                 }
30796         }
30797 #endif
30798
30799 #if DB_VERSION_MAJOR > 2
30800         db_env_create( NULL, 0 );
30801 #elif DB_VERSION_MAJOR > 1
30802         db_appexit( NULL );
30803 #else
30804         (void) dbopen( NULL, 0, 0, 0, NULL);
30805 #endif
30806
30807   ;
30808   return 0;
30809 }
30810 _ACEOF
30811 rm -f conftest.$ac_objext conftest$ac_exeext
30812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30813   (eval $ac_link) 2>conftest.er1
30814   ac_status=$?
30815   grep -v '^ *+' conftest.er1 >conftest.err
30816   rm -f conftest.er1
30817   cat conftest.err >&5
30818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819   (exit $ac_status); } &&
30820          { ac_try='test -z "$ac_c_werror_flag"
30821                          || test ! -s conftest.err'
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); }; } &&
30827          { ac_try='test -s conftest$ac_exeext'
30828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829   (eval $ac_try) 2>&5
30830   ac_status=$?
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); }; }; then
30833   ol_cv_db_db_2=yes
30834 else
30835   echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838 ol_cv_db_db_2=no
30839 fi
30840 rm -f conftest.err conftest.$ac_objext \
30841       conftest$ac_exeext conftest.$ac_ext
30842
30843         LIBS="$ol_LIBS"
30844
30845 fi
30846 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30847 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30848
30849         if test $ol_cv_db_db_2 = yes ; then
30850                 ol_cv_lib_db=-ldb-2
30851         fi
30852 fi
30853
30854
30855 elif test $ol_cv_bdb_major = 1 ; then
30856         if test $ol_cv_lib_db = no ; then
30857         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30858 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30859 if test "${ol_cv_db_db1+set}" = set; then
30860   echo $ECHO_N "(cached) $ECHO_C" >&6
30861 else
30862
30863         ol_DB_LIB=-ldb1
30864         ol_LIBS=$LIBS
30865         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30866
30867         cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h.  */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h.  */
30873
30874 #ifdef HAVE_DB_185_H
30875 # include <db_185.h>
30876 #else
30877 # include <db.h>
30878 #endif
30879
30880 #ifndef DB_VERSION_MAJOR
30881 # define DB_VERSION_MAJOR 1
30882 #endif
30883
30884 #ifndef NULL
30885 #define NULL ((void*)0)
30886 #endif
30887
30888 int
30889 main ()
30890 {
30891
30892 #if DB_VERSION_MAJOR > 1
30893         {
30894                 char *version;
30895                 int major, minor, patch;
30896
30897                 version = db_version( &major, &minor, &patch );
30898
30899                 if( major != DB_VERSION_MAJOR ||
30900                         minor < DB_VERSION_MINOR )
30901                 {
30902                         printf("Berkeley DB version mismatch\n"
30903                                 "\theader: %s\n\tlibrary: %s\n",
30904                                 DB_VERSION_STRING, version);
30905                         return 1;
30906                 }
30907         }
30908 #endif
30909
30910 #if DB_VERSION_MAJOR > 2
30911         db_env_create( NULL, 0 );
30912 #elif DB_VERSION_MAJOR > 1
30913         db_appexit( NULL );
30914 #else
30915         (void) dbopen( NULL, 0, 0, 0, NULL);
30916 #endif
30917
30918   ;
30919   return 0;
30920 }
30921 _ACEOF
30922 rm -f conftest.$ac_objext conftest$ac_exeext
30923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30924   (eval $ac_link) 2>conftest.er1
30925   ac_status=$?
30926   grep -v '^ *+' conftest.er1 >conftest.err
30927   rm -f conftest.er1
30928   cat conftest.err >&5
30929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930   (exit $ac_status); } &&
30931          { ac_try='test -z "$ac_c_werror_flag"
30932                          || test ! -s conftest.err'
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); }; } &&
30938          { ac_try='test -s conftest$ac_exeext'
30939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940   (eval $ac_try) 2>&5
30941   ac_status=$?
30942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943   (exit $ac_status); }; }; then
30944   ol_cv_db_db1=yes
30945 else
30946   echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30948
30949 ol_cv_db_db1=no
30950 fi
30951 rm -f conftest.err conftest.$ac_objext \
30952       conftest$ac_exeext conftest.$ac_ext
30953
30954         LIBS="$ol_LIBS"
30955
30956 fi
30957 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30958 echo "${ECHO_T}$ol_cv_db_db1" >&6
30959
30960         if test $ol_cv_db_db1 = yes ; then
30961                 ol_cv_lib_db=-ldb1
30962         fi
30963 fi
30964
30965         if test $ol_cv_lib_db = no ; then
30966         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30967 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30968 if test "${ol_cv_db_db_1+set}" = set; then
30969   echo $ECHO_N "(cached) $ECHO_C" >&6
30970 else
30971
30972         ol_DB_LIB=-ldb-1
30973         ol_LIBS=$LIBS
30974         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30975
30976         cat >conftest.$ac_ext <<_ACEOF
30977 /* confdefs.h.  */
30978 _ACEOF
30979 cat confdefs.h >>conftest.$ac_ext
30980 cat >>conftest.$ac_ext <<_ACEOF
30981 /* end confdefs.h.  */
30982
30983 #ifdef HAVE_DB_185_H
30984 # include <db_185.h>
30985 #else
30986 # include <db.h>
30987 #endif
30988
30989 #ifndef DB_VERSION_MAJOR
30990 # define DB_VERSION_MAJOR 1
30991 #endif
30992
30993 #ifndef NULL
30994 #define NULL ((void*)0)
30995 #endif
30996
30997 int
30998 main ()
30999 {
31000
31001 #if DB_VERSION_MAJOR > 1
31002         {
31003                 char *version;
31004                 int major, minor, patch;
31005
31006                 version = db_version( &major, &minor, &patch );
31007
31008                 if( major != DB_VERSION_MAJOR ||
31009                         minor < DB_VERSION_MINOR )
31010                 {
31011                         printf("Berkeley DB version mismatch\n"
31012                                 "\theader: %s\n\tlibrary: %s\n",
31013                                 DB_VERSION_STRING, version);
31014                         return 1;
31015                 }
31016         }
31017 #endif
31018
31019 #if DB_VERSION_MAJOR > 2
31020         db_env_create( NULL, 0 );
31021 #elif DB_VERSION_MAJOR > 1
31022         db_appexit( NULL );
31023 #else
31024         (void) dbopen( NULL, 0, 0, 0, NULL);
31025 #endif
31026
31027   ;
31028   return 0;
31029 }
31030 _ACEOF
31031 rm -f conftest.$ac_objext conftest$ac_exeext
31032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31033   (eval $ac_link) 2>conftest.er1
31034   ac_status=$?
31035   grep -v '^ *+' conftest.er1 >conftest.err
31036   rm -f conftest.er1
31037   cat conftest.err >&5
31038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039   (exit $ac_status); } &&
31040          { ac_try='test -z "$ac_c_werror_flag"
31041                          || test ! -s conftest.err'
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); }; } &&
31047          { ac_try='test -s conftest$ac_exeext'
31048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049   (eval $ac_try) 2>&5
31050   ac_status=$?
31051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052   (exit $ac_status); }; }; then
31053   ol_cv_db_db_1=yes
31054 else
31055   echo "$as_me: failed program was:" >&5
31056 sed 's/^/| /' conftest.$ac_ext >&5
31057
31058 ol_cv_db_db_1=no
31059 fi
31060 rm -f conftest.err conftest.$ac_objext \
31061       conftest$ac_exeext conftest.$ac_ext
31062
31063         LIBS="$ol_LIBS"
31064
31065 fi
31066 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31067 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31068
31069         if test $ol_cv_db_db_1 = yes ; then
31070                 ol_cv_lib_db=-ldb-1
31071         fi
31072 fi
31073
31074 fi
31075 if test $ol_cv_lib_db = no ; then
31076         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31077 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31078 if test "${ol_cv_db_none+set}" = set; then
31079   echo $ECHO_N "(cached) $ECHO_C" >&6
31080 else
31081
31082         ol_DB_LIB=
31083         ol_LIBS=$LIBS
31084         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31085
31086         cat >conftest.$ac_ext <<_ACEOF
31087 /* confdefs.h.  */
31088 _ACEOF
31089 cat confdefs.h >>conftest.$ac_ext
31090 cat >>conftest.$ac_ext <<_ACEOF
31091 /* end confdefs.h.  */
31092
31093 #ifdef HAVE_DB_185_H
31094 # include <db_185.h>
31095 #else
31096 # include <db.h>
31097 #endif
31098
31099 #ifndef DB_VERSION_MAJOR
31100 # define DB_VERSION_MAJOR 1
31101 #endif
31102
31103 #ifndef NULL
31104 #define NULL ((void*)0)
31105 #endif
31106
31107 int
31108 main ()
31109 {
31110
31111 #if DB_VERSION_MAJOR > 1
31112         {
31113                 char *version;
31114                 int major, minor, patch;
31115
31116                 version = db_version( &major, &minor, &patch );
31117
31118                 if( major != DB_VERSION_MAJOR ||
31119                         minor < DB_VERSION_MINOR )
31120                 {
31121                         printf("Berkeley DB version mismatch\n"
31122                                 "\theader: %s\n\tlibrary: %s\n",
31123                                 DB_VERSION_STRING, version);
31124                         return 1;
31125                 }
31126         }
31127 #endif
31128
31129 #if DB_VERSION_MAJOR > 2
31130         db_env_create( NULL, 0 );
31131 #elif DB_VERSION_MAJOR > 1
31132         db_appexit( NULL );
31133 #else
31134         (void) dbopen( NULL, 0, 0, 0, NULL);
31135 #endif
31136
31137   ;
31138   return 0;
31139 }
31140 _ACEOF
31141 rm -f conftest.$ac_objext conftest$ac_exeext
31142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31143   (eval $ac_link) 2>conftest.er1
31144   ac_status=$?
31145   grep -v '^ *+' conftest.er1 >conftest.err
31146   rm -f conftest.er1
31147   cat conftest.err >&5
31148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149   (exit $ac_status); } &&
31150          { ac_try='test -z "$ac_c_werror_flag"
31151                          || test ! -s conftest.err'
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); }; } &&
31157          { ac_try='test -s conftest$ac_exeext'
31158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31159   (eval $ac_try) 2>&5
31160   ac_status=$?
31161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162   (exit $ac_status); }; }; then
31163   ol_cv_db_none=yes
31164 else
31165   echo "$as_me: failed program was:" >&5
31166 sed 's/^/| /' conftest.$ac_ext >&5
31167
31168 ol_cv_db_none=no
31169 fi
31170 rm -f conftest.err conftest.$ac_objext \
31171       conftest$ac_exeext conftest.$ac_ext
31172
31173         LIBS="$ol_LIBS"
31174
31175 fi
31176 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31177 echo "${ECHO_T}$ol_cv_db_none" >&6
31178
31179         if test $ol_cv_db_none = yes ; then
31180                 ol_cv_lib_db=yes
31181         fi
31182 fi
31183
31184
31185                 if test "$ol_cv_lib_db" != no ; then
31186                         ol_cv_berkeley_db=yes
31187                 fi
31188         fi
31189 fi
31190
31191         else
31192                 ol_cv_berkeley_db=no
31193
31194 for ac_header in db.h
31195 do
31196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31198   echo "$as_me:$LINENO: checking for $ac_header" >&5
31199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31201   echo $ECHO_N "(cached) $ECHO_C" >&6
31202 fi
31203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31205 else
31206   # Is the header compilable?
31207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31209 cat >conftest.$ac_ext <<_ACEOF
31210 /* confdefs.h.  */
31211 _ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h.  */
31215 $ac_includes_default
31216 #include <$ac_header>
31217 _ACEOF
31218 rm -f conftest.$ac_objext
31219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31220   (eval $ac_compile) 2>conftest.er1
31221   ac_status=$?
31222   grep -v '^ *+' conftest.er1 >conftest.err
31223   rm -f conftest.er1
31224   cat conftest.err >&5
31225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226   (exit $ac_status); } &&
31227          { ac_try='test -z "$ac_c_werror_flag"
31228                          || test ! -s conftest.err'
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); }; } &&
31234          { ac_try='test -s conftest.$ac_objext'
31235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31236   (eval $ac_try) 2>&5
31237   ac_status=$?
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); }; }; then
31240   ac_header_compiler=yes
31241 else
31242   echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31244
31245 ac_header_compiler=no
31246 fi
31247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31249 echo "${ECHO_T}$ac_header_compiler" >&6
31250
31251 # Is the header present?
31252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31254 cat >conftest.$ac_ext <<_ACEOF
31255 /* confdefs.h.  */
31256 _ACEOF
31257 cat confdefs.h >>conftest.$ac_ext
31258 cat >>conftest.$ac_ext <<_ACEOF
31259 /* end confdefs.h.  */
31260 #include <$ac_header>
31261 _ACEOF
31262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31264   ac_status=$?
31265   grep -v '^ *+' conftest.er1 >conftest.err
31266   rm -f conftest.er1
31267   cat conftest.err >&5
31268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269   (exit $ac_status); } >/dev/null; then
31270   if test -s conftest.err; then
31271     ac_cpp_err=$ac_c_preproc_warn_flag
31272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31273   else
31274     ac_cpp_err=
31275   fi
31276 else
31277   ac_cpp_err=yes
31278 fi
31279 if test -z "$ac_cpp_err"; then
31280   ac_header_preproc=yes
31281 else
31282   echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31284
31285   ac_header_preproc=no
31286 fi
31287 rm -f conftest.err conftest.$ac_ext
31288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31289 echo "${ECHO_T}$ac_header_preproc" >&6
31290
31291 # So?  What about this header?
31292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31293   yes:no: )
31294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31298     ac_header_preproc=yes
31299     ;;
31300   no:yes:* )
31301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31313     (
31314       cat <<\_ASBOX
31315 ## --------------------------------------------- ##
31316 ## Report this to <http://www.openldap.org/its/> ##
31317 ## --------------------------------------------- ##
31318 _ASBOX
31319     ) |
31320       sed "s/^/$as_me: WARNING:     /" >&2
31321     ;;
31322 esac
31323 echo "$as_me:$LINENO: checking for $ac_header" >&5
31324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31326   echo $ECHO_N "(cached) $ECHO_C" >&6
31327 else
31328   eval "$as_ac_Header=\$ac_header_preproc"
31329 fi
31330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31332
31333 fi
31334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31335   cat >>confdefs.h <<_ACEOF
31336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31337 _ACEOF
31338
31339 fi
31340
31341 done
31342
31343 if test $ac_cv_header_db_h = yes; then
31344         ol_cv_lib_db=no
31345
31346 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31347 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31348 if test "${ol_cv_bdb_major+set}" = set; then
31349   echo $ECHO_N "(cached) $ECHO_C" >&6
31350 else
31351
31352         ol_cv_bdb_major=0
31353         if test $ol_cv_bdb_major = 0 ; then
31354                 cat >conftest.$ac_ext <<_ACEOF
31355 /* confdefs.h.  */
31356 _ACEOF
31357 cat confdefs.h >>conftest.$ac_ext
31358 cat >>conftest.$ac_ext <<_ACEOF
31359 /* end confdefs.h.  */
31360
31361 #include <db.h>
31362 #ifndef DB_VERSION_MAJOR
31363 #       define DB_VERSION_MAJOR 1
31364 #endif
31365 #if DB_VERSION_MAJOR == 4
31366 __db_version
31367 #endif
31368
31369 _ACEOF
31370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31371   $EGREP "__db_version" >/dev/null 2>&1; then
31372   ol_cv_bdb_major=4
31373 else
31374   :
31375 fi
31376 rm -f conftest*
31377
31378         fi
31379         if test $ol_cv_bdb_major = 0 ; then
31380                 cat >conftest.$ac_ext <<_ACEOF
31381 /* confdefs.h.  */
31382 _ACEOF
31383 cat confdefs.h >>conftest.$ac_ext
31384 cat >>conftest.$ac_ext <<_ACEOF
31385 /* end confdefs.h.  */
31386
31387 #include <db.h>
31388 #ifndef DB_VERSION_MAJOR
31389 #       define DB_VERSION_MAJOR 1
31390 #endif
31391 #if DB_VERSION_MAJOR == 3
31392 __db_version
31393 #endif
31394
31395 _ACEOF
31396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31397   $EGREP "__db_version" >/dev/null 2>&1; then
31398   ol_cv_bdb_major=3
31399 else
31400   :
31401 fi
31402 rm -f conftest*
31403
31404         fi
31405         if test $ol_cv_bdb_major = 0 ; then
31406                 cat >conftest.$ac_ext <<_ACEOF
31407 /* confdefs.h.  */
31408 _ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h.  */
31412
31413 #include <db.h>
31414 #ifndef DB_VERSION_MAJOR
31415 #       define DB_VERSION_MAJOR 1
31416 #endif
31417 #if DB_VERSION_MAJOR == 2
31418 __db_version
31419 #endif
31420
31421 _ACEOF
31422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31423   $EGREP "__db_version" >/dev/null 2>&1; then
31424   ol_cv_bdb_major=2
31425 else
31426   :
31427 fi
31428 rm -f conftest*
31429
31430         fi
31431         if test $ol_cv_bdb_major = 0 ; then
31432                 cat >conftest.$ac_ext <<_ACEOF
31433 /* confdefs.h.  */
31434 _ACEOF
31435 cat confdefs.h >>conftest.$ac_ext
31436 cat >>conftest.$ac_ext <<_ACEOF
31437 /* end confdefs.h.  */
31438
31439 #include <db.h>
31440 #ifndef DB_VERSION_MAJOR
31441 #       define DB_VERSION_MAJOR 1
31442 #endif
31443 #if DB_VERSION_MAJOR == 1
31444 __db_version
31445 #endif
31446
31447 _ACEOF
31448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31449   $EGREP "__db_version" >/dev/null 2>&1; then
31450   ol_cv_bdb_major=1
31451 else
31452   :
31453 fi
31454 rm -f conftest*
31455
31456         fi
31457
31458         if test $ol_cv_bdb_major = 0 ; then
31459                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31460 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31461    { (exit 1); exit 1; }; }
31462         fi
31463
31464 fi
31465 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31466 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31467
31468 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31469 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31470 if test "${ol_cv_bdb_minor+set}" = set; then
31471   echo $ECHO_N "(cached) $ECHO_C" >&6
31472 else
31473
31474         ol_cv_bdb_minor=0
31475         if test $ol_cv_bdb_minor = 0 ; then
31476                 cat >conftest.$ac_ext <<_ACEOF
31477 /* confdefs.h.  */
31478 _ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h.  */
31482
31483 #include <db.h>
31484 #ifndef DB_VERSION_MINOR
31485 #       define DB_VERSION_MINOR 0
31486 #endif
31487 #if DB_VERSION_MINOR == 9
31488 __db_version
31489 #endif
31490
31491 _ACEOF
31492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31493   $EGREP "__db_version" >/dev/null 2>&1; then
31494   ol_cv_bdb_minor=9
31495 else
31496   :
31497 fi
31498 rm -f conftest*
31499
31500         fi
31501         if test $ol_cv_bdb_minor = 0 ; then
31502                 cat >conftest.$ac_ext <<_ACEOF
31503 /* confdefs.h.  */
31504 _ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h.  */
31508
31509 #include <db.h>
31510 #ifndef DB_VERSION_MINOR
31511 #       define DB_VERSION_MINOR 0
31512 #endif
31513 #if DB_VERSION_MINOR == 8
31514 __db_version
31515 #endif
31516
31517 _ACEOF
31518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31519   $EGREP "__db_version" >/dev/null 2>&1; then
31520   ol_cv_bdb_minor=8
31521 else
31522   :
31523 fi
31524 rm -f conftest*
31525
31526         fi
31527         if test $ol_cv_bdb_minor = 0 ; then
31528                 cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h.  */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h.  */
31534
31535 #include <db.h>
31536 #ifndef DB_VERSION_MINOR
31537 #       define DB_VERSION_MINOR 0
31538 #endif
31539 #if DB_VERSION_MINOR == 7
31540 __db_version
31541 #endif
31542
31543 _ACEOF
31544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31545   $EGREP "__db_version" >/dev/null 2>&1; then
31546   ol_cv_bdb_minor=7
31547 else
31548   :
31549 fi
31550 rm -f conftest*
31551
31552         fi
31553         if test $ol_cv_bdb_minor = 0 ; then
31554                 cat >conftest.$ac_ext <<_ACEOF
31555 /* confdefs.h.  */
31556 _ACEOF
31557 cat confdefs.h >>conftest.$ac_ext
31558 cat >>conftest.$ac_ext <<_ACEOF
31559 /* end confdefs.h.  */
31560
31561 #include <db.h>
31562 #ifndef DB_VERSION_MINOR
31563 #       define DB_VERSION_MINOR 0
31564 #endif
31565 #if DB_VERSION_MINOR == 6
31566 __db_version
31567 #endif
31568
31569 _ACEOF
31570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31571   $EGREP "__db_version" >/dev/null 2>&1; then
31572   ol_cv_bdb_minor=6
31573 else
31574   :
31575 fi
31576 rm -f conftest*
31577
31578         fi
31579         if test $ol_cv_bdb_minor = 0 ; then
31580                 cat >conftest.$ac_ext <<_ACEOF
31581 /* confdefs.h.  */
31582 _ACEOF
31583 cat confdefs.h >>conftest.$ac_ext
31584 cat >>conftest.$ac_ext <<_ACEOF
31585 /* end confdefs.h.  */
31586
31587 #include <db.h>
31588 #ifndef DB_VERSION_MINOR
31589 #       define DB_VERSION_MINOR 0
31590 #endif
31591 #if DB_VERSION_MINOR == 5
31592 __db_version
31593 #endif
31594
31595 _ACEOF
31596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31597   $EGREP "__db_version" >/dev/null 2>&1; then
31598   ol_cv_bdb_minor=5
31599 else
31600   :
31601 fi
31602 rm -f conftest*
31603
31604         fi
31605         if test $ol_cv_bdb_minor = 0 ; then
31606                 cat >conftest.$ac_ext <<_ACEOF
31607 /* confdefs.h.  */
31608 _ACEOF
31609 cat confdefs.h >>conftest.$ac_ext
31610 cat >>conftest.$ac_ext <<_ACEOF
31611 /* end confdefs.h.  */
31612
31613 #include <db.h>
31614 #ifndef DB_VERSION_MINOR
31615 #       define DB_VERSION_MINOR 0
31616 #endif
31617 #if DB_VERSION_MINOR == 4
31618 __db_version
31619 #endif
31620
31621 _ACEOF
31622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31623   $EGREP "__db_version" >/dev/null 2>&1; then
31624   ol_cv_bdb_minor=4
31625 else
31626   :
31627 fi
31628 rm -f conftest*
31629
31630         fi
31631         if test $ol_cv_bdb_minor = 0 ; then
31632                 cat >conftest.$ac_ext <<_ACEOF
31633 /* confdefs.h.  */
31634 _ACEOF
31635 cat confdefs.h >>conftest.$ac_ext
31636 cat >>conftest.$ac_ext <<_ACEOF
31637 /* end confdefs.h.  */
31638
31639 #include <db.h>
31640 #ifndef DB_VERSION_MINOR
31641 #       define DB_VERSION_MINOR 0
31642 #endif
31643 #if DB_VERSION_MINOR == 3
31644 __db_version
31645 #endif
31646
31647 _ACEOF
31648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31649   $EGREP "__db_version" >/dev/null 2>&1; then
31650   ol_cv_bdb_minor=3
31651 else
31652   :
31653 fi
31654 rm -f conftest*
31655
31656         fi
31657         if test $ol_cv_bdb_minor = 0 ; then
31658                 cat >conftest.$ac_ext <<_ACEOF
31659 /* confdefs.h.  */
31660 _ACEOF
31661 cat confdefs.h >>conftest.$ac_ext
31662 cat >>conftest.$ac_ext <<_ACEOF
31663 /* end confdefs.h.  */
31664
31665 #include <db.h>
31666 #ifndef DB_VERSION_MINOR
31667 #       define DB_VERSION_MINOR 0
31668 #endif
31669 #if DB_VERSION_MINOR == 2
31670 __db_version
31671 #endif
31672
31673 _ACEOF
31674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31675   $EGREP "__db_version" >/dev/null 2>&1; then
31676   ol_cv_bdb_minor=2
31677 else
31678   :
31679 fi
31680 rm -f conftest*
31681
31682         fi
31683         if test $ol_cv_bdb_minor = 0 ; then
31684                 cat >conftest.$ac_ext <<_ACEOF
31685 /* confdefs.h.  */
31686 _ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h.  */
31690
31691 #include <db.h>
31692 #ifndef DB_VERSION_MINOR
31693 #       define DB_VERSION_MINOR 0
31694 #endif
31695 #if DB_VERSION_MINOR == 1
31696 __db_version
31697 #endif
31698
31699 _ACEOF
31700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31701   $EGREP "__db_version" >/dev/null 2>&1; then
31702   ol_cv_bdb_minor=1
31703 else
31704   :
31705 fi
31706 rm -f conftest*
31707
31708         fi
31709
31710 fi
31711 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31712 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31713
31714 if test $ol_cv_bdb_major = 4 ; then
31715         if test $ol_cv_bdb_minor = 4 ; then
31716                 if test $ol_cv_lib_db = no ; then
31717         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31718 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31719 if test "${ol_cv_db_db44+set}" = set; then
31720   echo $ECHO_N "(cached) $ECHO_C" >&6
31721 else
31722
31723         ol_DB_LIB=-ldb44
31724         ol_LIBS=$LIBS
31725         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31726
31727         cat >conftest.$ac_ext <<_ACEOF
31728 /* confdefs.h.  */
31729 _ACEOF
31730 cat confdefs.h >>conftest.$ac_ext
31731 cat >>conftest.$ac_ext <<_ACEOF
31732 /* end confdefs.h.  */
31733
31734 #ifdef HAVE_DB_185_H
31735 # include <db_185.h>
31736 #else
31737 # include <db.h>
31738 #endif
31739
31740 #ifndef DB_VERSION_MAJOR
31741 # define DB_VERSION_MAJOR 1
31742 #endif
31743
31744 #ifndef NULL
31745 #define NULL ((void*)0)
31746 #endif
31747
31748 int
31749 main ()
31750 {
31751
31752 #if DB_VERSION_MAJOR > 1
31753         {
31754                 char *version;
31755                 int major, minor, patch;
31756
31757                 version = db_version( &major, &minor, &patch );
31758
31759                 if( major != DB_VERSION_MAJOR ||
31760                         minor < DB_VERSION_MINOR )
31761                 {
31762                         printf("Berkeley DB version mismatch\n"
31763                                 "\theader: %s\n\tlibrary: %s\n",
31764                                 DB_VERSION_STRING, version);
31765                         return 1;
31766                 }
31767         }
31768 #endif
31769
31770 #if DB_VERSION_MAJOR > 2
31771         db_env_create( NULL, 0 );
31772 #elif DB_VERSION_MAJOR > 1
31773         db_appexit( NULL );
31774 #else
31775         (void) dbopen( NULL, 0, 0, 0, NULL);
31776 #endif
31777
31778   ;
31779   return 0;
31780 }
31781 _ACEOF
31782 rm -f conftest.$ac_objext conftest$ac_exeext
31783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31784   (eval $ac_link) 2>conftest.er1
31785   ac_status=$?
31786   grep -v '^ *+' conftest.er1 >conftest.err
31787   rm -f conftest.er1
31788   cat conftest.err >&5
31789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790   (exit $ac_status); } &&
31791          { ac_try='test -z "$ac_c_werror_flag"
31792                          || test ! -s conftest.err'
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); }; } &&
31798          { ac_try='test -s conftest$ac_exeext'
31799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800   (eval $ac_try) 2>&5
31801   ac_status=$?
31802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803   (exit $ac_status); }; }; then
31804   ol_cv_db_db44=yes
31805 else
31806   echo "$as_me: failed program was:" >&5
31807 sed 's/^/| /' conftest.$ac_ext >&5
31808
31809 ol_cv_db_db44=no
31810 fi
31811 rm -f conftest.err conftest.$ac_objext \
31812       conftest$ac_exeext conftest.$ac_ext
31813
31814         LIBS="$ol_LIBS"
31815
31816 fi
31817 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31818 echo "${ECHO_T}$ol_cv_db_db44" >&6
31819
31820         if test $ol_cv_db_db44 = yes ; then
31821                 ol_cv_lib_db=-ldb44
31822         fi
31823 fi
31824
31825                 if test $ol_cv_lib_db = no ; then
31826         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31827 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31828 if test "${ol_cv_db_db_44+set}" = set; then
31829   echo $ECHO_N "(cached) $ECHO_C" >&6
31830 else
31831
31832         ol_DB_LIB=-ldb-44
31833         ol_LIBS=$LIBS
31834         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31835
31836         cat >conftest.$ac_ext <<_ACEOF
31837 /* confdefs.h.  */
31838 _ACEOF
31839 cat confdefs.h >>conftest.$ac_ext
31840 cat >>conftest.$ac_ext <<_ACEOF
31841 /* end confdefs.h.  */
31842
31843 #ifdef HAVE_DB_185_H
31844 # include <db_185.h>
31845 #else
31846 # include <db.h>
31847 #endif
31848
31849 #ifndef DB_VERSION_MAJOR
31850 # define DB_VERSION_MAJOR 1
31851 #endif
31852
31853 #ifndef NULL
31854 #define NULL ((void*)0)
31855 #endif
31856
31857 int
31858 main ()
31859 {
31860
31861 #if DB_VERSION_MAJOR > 1
31862         {
31863                 char *version;
31864                 int major, minor, patch;
31865
31866                 version = db_version( &major, &minor, &patch );
31867
31868                 if( major != DB_VERSION_MAJOR ||
31869                         minor < DB_VERSION_MINOR )
31870                 {
31871                         printf("Berkeley DB version mismatch\n"
31872                                 "\theader: %s\n\tlibrary: %s\n",
31873                                 DB_VERSION_STRING, version);
31874                         return 1;
31875                 }
31876         }
31877 #endif
31878
31879 #if DB_VERSION_MAJOR > 2
31880         db_env_create( NULL, 0 );
31881 #elif DB_VERSION_MAJOR > 1
31882         db_appexit( NULL );
31883 #else
31884         (void) dbopen( NULL, 0, 0, 0, NULL);
31885 #endif
31886
31887   ;
31888   return 0;
31889 }
31890 _ACEOF
31891 rm -f conftest.$ac_objext conftest$ac_exeext
31892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31893   (eval $ac_link) 2>conftest.er1
31894   ac_status=$?
31895   grep -v '^ *+' conftest.er1 >conftest.err
31896   rm -f conftest.er1
31897   cat conftest.err >&5
31898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899   (exit $ac_status); } &&
31900          { ac_try='test -z "$ac_c_werror_flag"
31901                          || test ! -s conftest.err'
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); }; } &&
31907          { ac_try='test -s conftest$ac_exeext'
31908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909   (eval $ac_try) 2>&5
31910   ac_status=$?
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); }; }; then
31913   ol_cv_db_db_44=yes
31914 else
31915   echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31917
31918 ol_cv_db_db_44=no
31919 fi
31920 rm -f conftest.err conftest.$ac_objext \
31921       conftest$ac_exeext conftest.$ac_ext
31922
31923         LIBS="$ol_LIBS"
31924
31925 fi
31926 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31927 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31928
31929         if test $ol_cv_db_db_44 = yes ; then
31930                 ol_cv_lib_db=-ldb-44
31931         fi
31932 fi
31933
31934                 if test $ol_cv_lib_db = no ; then
31935         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31936 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31937 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31938   echo $ECHO_N "(cached) $ECHO_C" >&6
31939 else
31940
31941         ol_DB_LIB=-ldb-4.4
31942         ol_LIBS=$LIBS
31943         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31944
31945         cat >conftest.$ac_ext <<_ACEOF
31946 /* confdefs.h.  */
31947 _ACEOF
31948 cat confdefs.h >>conftest.$ac_ext
31949 cat >>conftest.$ac_ext <<_ACEOF
31950 /* end confdefs.h.  */
31951
31952 #ifdef HAVE_DB_185_H
31953 # include <db_185.h>
31954 #else
31955 # include <db.h>
31956 #endif
31957
31958 #ifndef DB_VERSION_MAJOR
31959 # define DB_VERSION_MAJOR 1
31960 #endif
31961
31962 #ifndef NULL
31963 #define NULL ((void*)0)
31964 #endif
31965
31966 int
31967 main ()
31968 {
31969
31970 #if DB_VERSION_MAJOR > 1
31971         {
31972                 char *version;
31973                 int major, minor, patch;
31974
31975                 version = db_version( &major, &minor, &patch );
31976
31977                 if( major != DB_VERSION_MAJOR ||
31978                         minor < DB_VERSION_MINOR )
31979                 {
31980                         printf("Berkeley DB version mismatch\n"
31981                                 "\theader: %s\n\tlibrary: %s\n",
31982                                 DB_VERSION_STRING, version);
31983                         return 1;
31984                 }
31985         }
31986 #endif
31987
31988 #if DB_VERSION_MAJOR > 2
31989         db_env_create( NULL, 0 );
31990 #elif DB_VERSION_MAJOR > 1
31991         db_appexit( NULL );
31992 #else
31993         (void) dbopen( NULL, 0, 0, 0, NULL);
31994 #endif
31995
31996   ;
31997   return 0;
31998 }
31999 _ACEOF
32000 rm -f conftest.$ac_objext conftest$ac_exeext
32001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32002   (eval $ac_link) 2>conftest.er1
32003   ac_status=$?
32004   grep -v '^ *+' conftest.er1 >conftest.err
32005   rm -f conftest.er1
32006   cat conftest.err >&5
32007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008   (exit $ac_status); } &&
32009          { ac_try='test -z "$ac_c_werror_flag"
32010                          || test ! -s conftest.err'
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); }; } &&
32016          { ac_try='test -s conftest$ac_exeext'
32017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32018   (eval $ac_try) 2>&5
32019   ac_status=$?
32020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021   (exit $ac_status); }; }; then
32022   ol_cv_db_db_4_dot_4=yes
32023 else
32024   echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32026
32027 ol_cv_db_db_4_dot_4=no
32028 fi
32029 rm -f conftest.err conftest.$ac_objext \
32030       conftest$ac_exeext conftest.$ac_ext
32031
32032         LIBS="$ol_LIBS"
32033
32034 fi
32035 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32036 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32037
32038         if test $ol_cv_db_db_4_dot_4 = yes ; then
32039                 ol_cv_lib_db=-ldb-4.4
32040         fi
32041 fi
32042
32043                 if test $ol_cv_lib_db = no ; then
32044         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32045 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32046 if test "${ol_cv_db_db_4_4+set}" = set; then
32047   echo $ECHO_N "(cached) $ECHO_C" >&6
32048 else
32049
32050         ol_DB_LIB=-ldb-4-4
32051         ol_LIBS=$LIBS
32052         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32053
32054         cat >conftest.$ac_ext <<_ACEOF
32055 /* confdefs.h.  */
32056 _ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h.  */
32060
32061 #ifdef HAVE_DB_185_H
32062 # include <db_185.h>
32063 #else
32064 # include <db.h>
32065 #endif
32066
32067 #ifndef DB_VERSION_MAJOR
32068 # define DB_VERSION_MAJOR 1
32069 #endif
32070
32071 #ifndef NULL
32072 #define NULL ((void*)0)
32073 #endif
32074
32075 int
32076 main ()
32077 {
32078
32079 #if DB_VERSION_MAJOR > 1
32080         {
32081                 char *version;
32082                 int major, minor, patch;
32083
32084                 version = db_version( &major, &minor, &patch );
32085
32086                 if( major != DB_VERSION_MAJOR ||
32087                         minor < DB_VERSION_MINOR )
32088                 {
32089                         printf("Berkeley DB version mismatch\n"
32090                                 "\theader: %s\n\tlibrary: %s\n",
32091                                 DB_VERSION_STRING, version);
32092                         return 1;
32093                 }
32094         }
32095 #endif
32096
32097 #if DB_VERSION_MAJOR > 2
32098         db_env_create( NULL, 0 );
32099 #elif DB_VERSION_MAJOR > 1
32100         db_appexit( NULL );
32101 #else
32102         (void) dbopen( NULL, 0, 0, 0, NULL);
32103 #endif
32104
32105   ;
32106   return 0;
32107 }
32108 _ACEOF
32109 rm -f conftest.$ac_objext conftest$ac_exeext
32110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32111   (eval $ac_link) 2>conftest.er1
32112   ac_status=$?
32113   grep -v '^ *+' conftest.er1 >conftest.err
32114   rm -f conftest.er1
32115   cat conftest.err >&5
32116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117   (exit $ac_status); } &&
32118          { ac_try='test -z "$ac_c_werror_flag"
32119                          || test ! -s conftest.err'
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); }; } &&
32125          { ac_try='test -s conftest$ac_exeext'
32126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32127   (eval $ac_try) 2>&5
32128   ac_status=$?
32129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32130   (exit $ac_status); }; }; then
32131   ol_cv_db_db_4_4=yes
32132 else
32133   echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32135
32136 ol_cv_db_db_4_4=no
32137 fi
32138 rm -f conftest.err conftest.$ac_objext \
32139       conftest$ac_exeext conftest.$ac_ext
32140
32141         LIBS="$ol_LIBS"
32142
32143 fi
32144 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32145 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32146
32147         if test $ol_cv_db_db_4_4 = yes ; then
32148                 ol_cv_lib_db=-ldb-4-4
32149         fi
32150 fi
32151
32152         elif test $ol_cv_bdb_minor = 3 ; then
32153                 if test $ol_cv_lib_db = no ; then
32154         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32155 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32156 if test "${ol_cv_db_db43+set}" = set; then
32157   echo $ECHO_N "(cached) $ECHO_C" >&6
32158 else
32159
32160         ol_DB_LIB=-ldb43
32161         ol_LIBS=$LIBS
32162         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32163
32164         cat >conftest.$ac_ext <<_ACEOF
32165 /* confdefs.h.  */
32166 _ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h.  */
32170
32171 #ifdef HAVE_DB_185_H
32172 # include <db_185.h>
32173 #else
32174 # include <db.h>
32175 #endif
32176
32177 #ifndef DB_VERSION_MAJOR
32178 # define DB_VERSION_MAJOR 1
32179 #endif
32180
32181 #ifndef NULL
32182 #define NULL ((void*)0)
32183 #endif
32184
32185 int
32186 main ()
32187 {
32188
32189 #if DB_VERSION_MAJOR > 1
32190         {
32191                 char *version;
32192                 int major, minor, patch;
32193
32194                 version = db_version( &major, &minor, &patch );
32195
32196                 if( major != DB_VERSION_MAJOR ||
32197                         minor < DB_VERSION_MINOR )
32198                 {
32199                         printf("Berkeley DB version mismatch\n"
32200                                 "\theader: %s\n\tlibrary: %s\n",
32201                                 DB_VERSION_STRING, version);
32202                         return 1;
32203                 }
32204         }
32205 #endif
32206
32207 #if DB_VERSION_MAJOR > 2
32208         db_env_create( NULL, 0 );
32209 #elif DB_VERSION_MAJOR > 1
32210         db_appexit( NULL );
32211 #else
32212         (void) dbopen( NULL, 0, 0, 0, NULL);
32213 #endif
32214
32215   ;
32216   return 0;
32217 }
32218 _ACEOF
32219 rm -f conftest.$ac_objext conftest$ac_exeext
32220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32221   (eval $ac_link) 2>conftest.er1
32222   ac_status=$?
32223   grep -v '^ *+' conftest.er1 >conftest.err
32224   rm -f conftest.er1
32225   cat conftest.err >&5
32226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227   (exit $ac_status); } &&
32228          { ac_try='test -z "$ac_c_werror_flag"
32229                          || test ! -s conftest.err'
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); }; } &&
32235          { ac_try='test -s conftest$ac_exeext'
32236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237   (eval $ac_try) 2>&5
32238   ac_status=$?
32239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240   (exit $ac_status); }; }; then
32241   ol_cv_db_db43=yes
32242 else
32243   echo "$as_me: failed program was:" >&5
32244 sed 's/^/| /' conftest.$ac_ext >&5
32245
32246 ol_cv_db_db43=no
32247 fi
32248 rm -f conftest.err conftest.$ac_objext \
32249       conftest$ac_exeext conftest.$ac_ext
32250
32251         LIBS="$ol_LIBS"
32252
32253 fi
32254 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32255 echo "${ECHO_T}$ol_cv_db_db43" >&6
32256
32257         if test $ol_cv_db_db43 = yes ; then
32258                 ol_cv_lib_db=-ldb43
32259         fi
32260 fi
32261
32262                 if test $ol_cv_lib_db = no ; then
32263         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32264 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32265 if test "${ol_cv_db_db_43+set}" = set; then
32266   echo $ECHO_N "(cached) $ECHO_C" >&6
32267 else
32268
32269         ol_DB_LIB=-ldb-43
32270         ol_LIBS=$LIBS
32271         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32272
32273         cat >conftest.$ac_ext <<_ACEOF
32274 /* confdefs.h.  */
32275 _ACEOF
32276 cat confdefs.h >>conftest.$ac_ext
32277 cat >>conftest.$ac_ext <<_ACEOF
32278 /* end confdefs.h.  */
32279
32280 #ifdef HAVE_DB_185_H
32281 # include <db_185.h>
32282 #else
32283 # include <db.h>
32284 #endif
32285
32286 #ifndef DB_VERSION_MAJOR
32287 # define DB_VERSION_MAJOR 1
32288 #endif
32289
32290 #ifndef NULL
32291 #define NULL ((void*)0)
32292 #endif
32293
32294 int
32295 main ()
32296 {
32297
32298 #if DB_VERSION_MAJOR > 1
32299         {
32300                 char *version;
32301                 int major, minor, patch;
32302
32303                 version = db_version( &major, &minor, &patch );
32304
32305                 if( major != DB_VERSION_MAJOR ||
32306                         minor < DB_VERSION_MINOR )
32307                 {
32308                         printf("Berkeley DB version mismatch\n"
32309                                 "\theader: %s\n\tlibrary: %s\n",
32310                                 DB_VERSION_STRING, version);
32311                         return 1;
32312                 }
32313         }
32314 #endif
32315
32316 #if DB_VERSION_MAJOR > 2
32317         db_env_create( NULL, 0 );
32318 #elif DB_VERSION_MAJOR > 1
32319         db_appexit( NULL );
32320 #else
32321         (void) dbopen( NULL, 0, 0, 0, NULL);
32322 #endif
32323
32324   ;
32325   return 0;
32326 }
32327 _ACEOF
32328 rm -f conftest.$ac_objext conftest$ac_exeext
32329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32330   (eval $ac_link) 2>conftest.er1
32331   ac_status=$?
32332   grep -v '^ *+' conftest.er1 >conftest.err
32333   rm -f conftest.er1
32334   cat conftest.err >&5
32335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336   (exit $ac_status); } &&
32337          { ac_try='test -z "$ac_c_werror_flag"
32338                          || test ! -s conftest.err'
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); }; } &&
32344          { ac_try='test -s conftest$ac_exeext'
32345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32346   (eval $ac_try) 2>&5
32347   ac_status=$?
32348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349   (exit $ac_status); }; }; then
32350   ol_cv_db_db_43=yes
32351 else
32352   echo "$as_me: failed program was:" >&5
32353 sed 's/^/| /' conftest.$ac_ext >&5
32354
32355 ol_cv_db_db_43=no
32356 fi
32357 rm -f conftest.err conftest.$ac_objext \
32358       conftest$ac_exeext conftest.$ac_ext
32359
32360         LIBS="$ol_LIBS"
32361
32362 fi
32363 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32364 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32365
32366         if test $ol_cv_db_db_43 = yes ; then
32367                 ol_cv_lib_db=-ldb-43
32368         fi
32369 fi
32370
32371                 if test $ol_cv_lib_db = no ; then
32372         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32373 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32374 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32375   echo $ECHO_N "(cached) $ECHO_C" >&6
32376 else
32377
32378         ol_DB_LIB=-ldb-4.3
32379         ol_LIBS=$LIBS
32380         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32381
32382         cat >conftest.$ac_ext <<_ACEOF
32383 /* confdefs.h.  */
32384 _ACEOF
32385 cat confdefs.h >>conftest.$ac_ext
32386 cat >>conftest.$ac_ext <<_ACEOF
32387 /* end confdefs.h.  */
32388
32389 #ifdef HAVE_DB_185_H
32390 # include <db_185.h>
32391 #else
32392 # include <db.h>
32393 #endif
32394
32395 #ifndef DB_VERSION_MAJOR
32396 # define DB_VERSION_MAJOR 1
32397 #endif
32398
32399 #ifndef NULL
32400 #define NULL ((void*)0)
32401 #endif
32402
32403 int
32404 main ()
32405 {
32406
32407 #if DB_VERSION_MAJOR > 1
32408         {
32409                 char *version;
32410                 int major, minor, patch;
32411
32412                 version = db_version( &major, &minor, &patch );
32413
32414                 if( major != DB_VERSION_MAJOR ||
32415                         minor < DB_VERSION_MINOR )
32416                 {
32417                         printf("Berkeley DB version mismatch\n"
32418                                 "\theader: %s\n\tlibrary: %s\n",
32419                                 DB_VERSION_STRING, version);
32420                         return 1;
32421                 }
32422         }
32423 #endif
32424
32425 #if DB_VERSION_MAJOR > 2
32426         db_env_create( NULL, 0 );
32427 #elif DB_VERSION_MAJOR > 1
32428         db_appexit( NULL );
32429 #else
32430         (void) dbopen( NULL, 0, 0, 0, NULL);
32431 #endif
32432
32433   ;
32434   return 0;
32435 }
32436 _ACEOF
32437 rm -f conftest.$ac_objext conftest$ac_exeext
32438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32439   (eval $ac_link) 2>conftest.er1
32440   ac_status=$?
32441   grep -v '^ *+' conftest.er1 >conftest.err
32442   rm -f conftest.er1
32443   cat conftest.err >&5
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); } &&
32446          { ac_try='test -z "$ac_c_werror_flag"
32447                          || test ! -s conftest.err'
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); }; } &&
32453          { ac_try='test -s conftest$ac_exeext'
32454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455   (eval $ac_try) 2>&5
32456   ac_status=$?
32457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458   (exit $ac_status); }; }; then
32459   ol_cv_db_db_4_dot_3=yes
32460 else
32461   echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32463
32464 ol_cv_db_db_4_dot_3=no
32465 fi
32466 rm -f conftest.err conftest.$ac_objext \
32467       conftest$ac_exeext conftest.$ac_ext
32468
32469         LIBS="$ol_LIBS"
32470
32471 fi
32472 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32473 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32474
32475         if test $ol_cv_db_db_4_dot_3 = yes ; then
32476                 ol_cv_lib_db=-ldb-4.3
32477         fi
32478 fi
32479
32480                 if test $ol_cv_lib_db = no ; then
32481         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32482 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32483 if test "${ol_cv_db_db_4_3+set}" = set; then
32484   echo $ECHO_N "(cached) $ECHO_C" >&6
32485 else
32486
32487         ol_DB_LIB=-ldb-4-3
32488         ol_LIBS=$LIBS
32489         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32490
32491         cat >conftest.$ac_ext <<_ACEOF
32492 /* confdefs.h.  */
32493 _ACEOF
32494 cat confdefs.h >>conftest.$ac_ext
32495 cat >>conftest.$ac_ext <<_ACEOF
32496 /* end confdefs.h.  */
32497
32498 #ifdef HAVE_DB_185_H
32499 # include <db_185.h>
32500 #else
32501 # include <db.h>
32502 #endif
32503
32504 #ifndef DB_VERSION_MAJOR
32505 # define DB_VERSION_MAJOR 1
32506 #endif
32507
32508 #ifndef NULL
32509 #define NULL ((void*)0)
32510 #endif
32511
32512 int
32513 main ()
32514 {
32515
32516 #if DB_VERSION_MAJOR > 1
32517         {
32518                 char *version;
32519                 int major, minor, patch;
32520
32521                 version = db_version( &major, &minor, &patch );
32522
32523                 if( major != DB_VERSION_MAJOR ||
32524                         minor < DB_VERSION_MINOR )
32525                 {
32526                         printf("Berkeley DB version mismatch\n"
32527                                 "\theader: %s\n\tlibrary: %s\n",
32528                                 DB_VERSION_STRING, version);
32529                         return 1;
32530                 }
32531         }
32532 #endif
32533
32534 #if DB_VERSION_MAJOR > 2
32535         db_env_create( NULL, 0 );
32536 #elif DB_VERSION_MAJOR > 1
32537         db_appexit( NULL );
32538 #else
32539         (void) dbopen( NULL, 0, 0, 0, NULL);
32540 #endif
32541
32542   ;
32543   return 0;
32544 }
32545 _ACEOF
32546 rm -f conftest.$ac_objext conftest$ac_exeext
32547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32548   (eval $ac_link) 2>conftest.er1
32549   ac_status=$?
32550   grep -v '^ *+' conftest.er1 >conftest.err
32551   rm -f conftest.er1
32552   cat conftest.err >&5
32553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554   (exit $ac_status); } &&
32555          { ac_try='test -z "$ac_c_werror_flag"
32556                          || test ! -s conftest.err'
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); }; } &&
32562          { ac_try='test -s conftest$ac_exeext'
32563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32564   (eval $ac_try) 2>&5
32565   ac_status=$?
32566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567   (exit $ac_status); }; }; then
32568   ol_cv_db_db_4_3=yes
32569 else
32570   echo "$as_me: failed program was:" >&5
32571 sed 's/^/| /' conftest.$ac_ext >&5
32572
32573 ol_cv_db_db_4_3=no
32574 fi
32575 rm -f conftest.err conftest.$ac_objext \
32576       conftest$ac_exeext conftest.$ac_ext
32577
32578         LIBS="$ol_LIBS"
32579
32580 fi
32581 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32582 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32583
32584         if test $ol_cv_db_db_4_3 = yes ; then
32585                 ol_cv_lib_db=-ldb-4-3
32586         fi
32587 fi
32588
32589         elif test $ol_cv_bdb_minor = 2 ; then
32590                 if test $ol_cv_lib_db = no ; then
32591         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32592 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32593 if test "${ol_cv_db_db42+set}" = set; then
32594   echo $ECHO_N "(cached) $ECHO_C" >&6
32595 else
32596
32597         ol_DB_LIB=-ldb42
32598         ol_LIBS=$LIBS
32599         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32600
32601         cat >conftest.$ac_ext <<_ACEOF
32602 /* confdefs.h.  */
32603 _ACEOF
32604 cat confdefs.h >>conftest.$ac_ext
32605 cat >>conftest.$ac_ext <<_ACEOF
32606 /* end confdefs.h.  */
32607
32608 #ifdef HAVE_DB_185_H
32609 # include <db_185.h>
32610 #else
32611 # include <db.h>
32612 #endif
32613
32614 #ifndef DB_VERSION_MAJOR
32615 # define DB_VERSION_MAJOR 1
32616 #endif
32617
32618 #ifndef NULL
32619 #define NULL ((void*)0)
32620 #endif
32621
32622 int
32623 main ()
32624 {
32625
32626 #if DB_VERSION_MAJOR > 1
32627         {
32628                 char *version;
32629                 int major, minor, patch;
32630
32631                 version = db_version( &major, &minor, &patch );
32632
32633                 if( major != DB_VERSION_MAJOR ||
32634                         minor < DB_VERSION_MINOR )
32635                 {
32636                         printf("Berkeley DB version mismatch\n"
32637                                 "\theader: %s\n\tlibrary: %s\n",
32638                                 DB_VERSION_STRING, version);
32639                         return 1;
32640                 }
32641         }
32642 #endif
32643
32644 #if DB_VERSION_MAJOR > 2
32645         db_env_create( NULL, 0 );
32646 #elif DB_VERSION_MAJOR > 1
32647         db_appexit( NULL );
32648 #else
32649         (void) dbopen( NULL, 0, 0, 0, NULL);
32650 #endif
32651
32652   ;
32653   return 0;
32654 }
32655 _ACEOF
32656 rm -f conftest.$ac_objext conftest$ac_exeext
32657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32658   (eval $ac_link) 2>conftest.er1
32659   ac_status=$?
32660   grep -v '^ *+' conftest.er1 >conftest.err
32661   rm -f conftest.er1
32662   cat conftest.err >&5
32663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664   (exit $ac_status); } &&
32665          { ac_try='test -z "$ac_c_werror_flag"
32666                          || test ! -s conftest.err'
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); }; } &&
32672          { ac_try='test -s conftest$ac_exeext'
32673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674   (eval $ac_try) 2>&5
32675   ac_status=$?
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); }; }; then
32678   ol_cv_db_db42=yes
32679 else
32680   echo "$as_me: failed program was:" >&5
32681 sed 's/^/| /' conftest.$ac_ext >&5
32682
32683 ol_cv_db_db42=no
32684 fi
32685 rm -f conftest.err conftest.$ac_objext \
32686       conftest$ac_exeext conftest.$ac_ext
32687
32688         LIBS="$ol_LIBS"
32689
32690 fi
32691 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32692 echo "${ECHO_T}$ol_cv_db_db42" >&6
32693
32694         if test $ol_cv_db_db42 = yes ; then
32695                 ol_cv_lib_db=-ldb42
32696         fi
32697 fi
32698
32699                 if test $ol_cv_lib_db = no ; then
32700         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32701 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32702 if test "${ol_cv_db_db_42+set}" = set; then
32703   echo $ECHO_N "(cached) $ECHO_C" >&6
32704 else
32705
32706         ol_DB_LIB=-ldb-42
32707         ol_LIBS=$LIBS
32708         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32709
32710         cat >conftest.$ac_ext <<_ACEOF
32711 /* confdefs.h.  */
32712 _ACEOF
32713 cat confdefs.h >>conftest.$ac_ext
32714 cat >>conftest.$ac_ext <<_ACEOF
32715 /* end confdefs.h.  */
32716
32717 #ifdef HAVE_DB_185_H
32718 # include <db_185.h>
32719 #else
32720 # include <db.h>
32721 #endif
32722
32723 #ifndef DB_VERSION_MAJOR
32724 # define DB_VERSION_MAJOR 1
32725 #endif
32726
32727 #ifndef NULL
32728 #define NULL ((void*)0)
32729 #endif
32730
32731 int
32732 main ()
32733 {
32734
32735 #if DB_VERSION_MAJOR > 1
32736         {
32737                 char *version;
32738                 int major, minor, patch;
32739
32740                 version = db_version( &major, &minor, &patch );
32741
32742                 if( major != DB_VERSION_MAJOR ||
32743                         minor < DB_VERSION_MINOR )
32744                 {
32745                         printf("Berkeley DB version mismatch\n"
32746                                 "\theader: %s\n\tlibrary: %s\n",
32747                                 DB_VERSION_STRING, version);
32748                         return 1;
32749                 }
32750         }
32751 #endif
32752
32753 #if DB_VERSION_MAJOR > 2
32754         db_env_create( NULL, 0 );
32755 #elif DB_VERSION_MAJOR > 1
32756         db_appexit( NULL );
32757 #else
32758         (void) dbopen( NULL, 0, 0, 0, NULL);
32759 #endif
32760
32761   ;
32762   return 0;
32763 }
32764 _ACEOF
32765 rm -f conftest.$ac_objext conftest$ac_exeext
32766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32767   (eval $ac_link) 2>conftest.er1
32768   ac_status=$?
32769   grep -v '^ *+' conftest.er1 >conftest.err
32770   rm -f conftest.er1
32771   cat conftest.err >&5
32772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773   (exit $ac_status); } &&
32774          { ac_try='test -z "$ac_c_werror_flag"
32775                          || test ! -s conftest.err'
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); }; } &&
32781          { ac_try='test -s conftest$ac_exeext'
32782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32783   (eval $ac_try) 2>&5
32784   ac_status=$?
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); }; }; then
32787   ol_cv_db_db_42=yes
32788 else
32789   echo "$as_me: failed program was:" >&5
32790 sed 's/^/| /' conftest.$ac_ext >&5
32791
32792 ol_cv_db_db_42=no
32793 fi
32794 rm -f conftest.err conftest.$ac_objext \
32795       conftest$ac_exeext conftest.$ac_ext
32796
32797         LIBS="$ol_LIBS"
32798
32799 fi
32800 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32801 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32802
32803         if test $ol_cv_db_db_42 = yes ; then
32804                 ol_cv_lib_db=-ldb-42
32805         fi
32806 fi
32807
32808                 if test $ol_cv_lib_db = no ; then
32809         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32810 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32811 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32812   echo $ECHO_N "(cached) $ECHO_C" >&6
32813 else
32814
32815         ol_DB_LIB=-ldb-4.2
32816         ol_LIBS=$LIBS
32817         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32818
32819         cat >conftest.$ac_ext <<_ACEOF
32820 /* confdefs.h.  */
32821 _ACEOF
32822 cat confdefs.h >>conftest.$ac_ext
32823 cat >>conftest.$ac_ext <<_ACEOF
32824 /* end confdefs.h.  */
32825
32826 #ifdef HAVE_DB_185_H
32827 # include <db_185.h>
32828 #else
32829 # include <db.h>
32830 #endif
32831
32832 #ifndef DB_VERSION_MAJOR
32833 # define DB_VERSION_MAJOR 1
32834 #endif
32835
32836 #ifndef NULL
32837 #define NULL ((void*)0)
32838 #endif
32839
32840 int
32841 main ()
32842 {
32843
32844 #if DB_VERSION_MAJOR > 1
32845         {
32846                 char *version;
32847                 int major, minor, patch;
32848
32849                 version = db_version( &major, &minor, &patch );
32850
32851                 if( major != DB_VERSION_MAJOR ||
32852                         minor < DB_VERSION_MINOR )
32853                 {
32854                         printf("Berkeley DB version mismatch\n"
32855                                 "\theader: %s\n\tlibrary: %s\n",
32856                                 DB_VERSION_STRING, version);
32857                         return 1;
32858                 }
32859         }
32860 #endif
32861
32862 #if DB_VERSION_MAJOR > 2
32863         db_env_create( NULL, 0 );
32864 #elif DB_VERSION_MAJOR > 1
32865         db_appexit( NULL );
32866 #else
32867         (void) dbopen( NULL, 0, 0, 0, NULL);
32868 #endif
32869
32870   ;
32871   return 0;
32872 }
32873 _ACEOF
32874 rm -f conftest.$ac_objext conftest$ac_exeext
32875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32876   (eval $ac_link) 2>conftest.er1
32877   ac_status=$?
32878   grep -v '^ *+' conftest.er1 >conftest.err
32879   rm -f conftest.er1
32880   cat conftest.err >&5
32881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882   (exit $ac_status); } &&
32883          { ac_try='test -z "$ac_c_werror_flag"
32884                          || test ! -s conftest.err'
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); }; } &&
32890          { ac_try='test -s conftest$ac_exeext'
32891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32892   (eval $ac_try) 2>&5
32893   ac_status=$?
32894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895   (exit $ac_status); }; }; then
32896   ol_cv_db_db_4_dot_2=yes
32897 else
32898   echo "$as_me: failed program was:" >&5
32899 sed 's/^/| /' conftest.$ac_ext >&5
32900
32901 ol_cv_db_db_4_dot_2=no
32902 fi
32903 rm -f conftest.err conftest.$ac_objext \
32904       conftest$ac_exeext conftest.$ac_ext
32905
32906         LIBS="$ol_LIBS"
32907
32908 fi
32909 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32910 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32911
32912         if test $ol_cv_db_db_4_dot_2 = yes ; then
32913                 ol_cv_lib_db=-ldb-4.2
32914         fi
32915 fi
32916
32917                 if test $ol_cv_lib_db = no ; then
32918         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32919 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32920 if test "${ol_cv_db_db_4_2+set}" = set; then
32921   echo $ECHO_N "(cached) $ECHO_C" >&6
32922 else
32923
32924         ol_DB_LIB=-ldb-4-2
32925         ol_LIBS=$LIBS
32926         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32927
32928         cat >conftest.$ac_ext <<_ACEOF
32929 /* confdefs.h.  */
32930 _ACEOF
32931 cat confdefs.h >>conftest.$ac_ext
32932 cat >>conftest.$ac_ext <<_ACEOF
32933 /* end confdefs.h.  */
32934
32935 #ifdef HAVE_DB_185_H
32936 # include <db_185.h>
32937 #else
32938 # include <db.h>
32939 #endif
32940
32941 #ifndef DB_VERSION_MAJOR
32942 # define DB_VERSION_MAJOR 1
32943 #endif
32944
32945 #ifndef NULL
32946 #define NULL ((void*)0)
32947 #endif
32948
32949 int
32950 main ()
32951 {
32952
32953 #if DB_VERSION_MAJOR > 1
32954         {
32955                 char *version;
32956                 int major, minor, patch;
32957
32958                 version = db_version( &major, &minor, &patch );
32959
32960                 if( major != DB_VERSION_MAJOR ||
32961                         minor < DB_VERSION_MINOR )
32962                 {
32963                         printf("Berkeley DB version mismatch\n"
32964                                 "\theader: %s\n\tlibrary: %s\n",
32965                                 DB_VERSION_STRING, version);
32966                         return 1;
32967                 }
32968         }
32969 #endif
32970
32971 #if DB_VERSION_MAJOR > 2
32972         db_env_create( NULL, 0 );
32973 #elif DB_VERSION_MAJOR > 1
32974         db_appexit( NULL );
32975 #else
32976         (void) dbopen( NULL, 0, 0, 0, NULL);
32977 #endif
32978
32979   ;
32980   return 0;
32981 }
32982 _ACEOF
32983 rm -f conftest.$ac_objext conftest$ac_exeext
32984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32985   (eval $ac_link) 2>conftest.er1
32986   ac_status=$?
32987   grep -v '^ *+' conftest.er1 >conftest.err
32988   rm -f conftest.er1
32989   cat conftest.err >&5
32990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991   (exit $ac_status); } &&
32992          { ac_try='test -z "$ac_c_werror_flag"
32993                          || test ! -s conftest.err'
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); }; } &&
32999          { ac_try='test -s conftest$ac_exeext'
33000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33001   (eval $ac_try) 2>&5
33002   ac_status=$?
33003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004   (exit $ac_status); }; }; then
33005   ol_cv_db_db_4_2=yes
33006 else
33007   echo "$as_me: failed program was:" >&5
33008 sed 's/^/| /' conftest.$ac_ext >&5
33009
33010 ol_cv_db_db_4_2=no
33011 fi
33012 rm -f conftest.err conftest.$ac_objext \
33013       conftest$ac_exeext conftest.$ac_ext
33014
33015         LIBS="$ol_LIBS"
33016
33017 fi
33018 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33019 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33020
33021         if test $ol_cv_db_db_4_2 = yes ; then
33022                 ol_cv_lib_db=-ldb-4-2
33023         fi
33024 fi
33025
33026         elif test $ol_cv_bdb_minor = 1 ; then
33027                 if test $ol_cv_lib_db = no ; then
33028         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33029 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33030 if test "${ol_cv_db_db41+set}" = set; then
33031   echo $ECHO_N "(cached) $ECHO_C" >&6
33032 else
33033
33034         ol_DB_LIB=-ldb41
33035         ol_LIBS=$LIBS
33036         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33037
33038         cat >conftest.$ac_ext <<_ACEOF
33039 /* confdefs.h.  */
33040 _ACEOF
33041 cat confdefs.h >>conftest.$ac_ext
33042 cat >>conftest.$ac_ext <<_ACEOF
33043 /* end confdefs.h.  */
33044
33045 #ifdef HAVE_DB_185_H
33046 # include <db_185.h>
33047 #else
33048 # include <db.h>
33049 #endif
33050
33051 #ifndef DB_VERSION_MAJOR
33052 # define DB_VERSION_MAJOR 1
33053 #endif
33054
33055 #ifndef NULL
33056 #define NULL ((void*)0)
33057 #endif
33058
33059 int
33060 main ()
33061 {
33062
33063 #if DB_VERSION_MAJOR > 1
33064         {
33065                 char *version;
33066                 int major, minor, patch;
33067
33068                 version = db_version( &major, &minor, &patch );
33069
33070                 if( major != DB_VERSION_MAJOR ||
33071                         minor < DB_VERSION_MINOR )
33072                 {
33073                         printf("Berkeley DB version mismatch\n"
33074                                 "\theader: %s\n\tlibrary: %s\n",
33075                                 DB_VERSION_STRING, version);
33076                         return 1;
33077                 }
33078         }
33079 #endif
33080
33081 #if DB_VERSION_MAJOR > 2
33082         db_env_create( NULL, 0 );
33083 #elif DB_VERSION_MAJOR > 1
33084         db_appexit( NULL );
33085 #else
33086         (void) dbopen( NULL, 0, 0, 0, NULL);
33087 #endif
33088
33089   ;
33090   return 0;
33091 }
33092 _ACEOF
33093 rm -f conftest.$ac_objext conftest$ac_exeext
33094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33095   (eval $ac_link) 2>conftest.er1
33096   ac_status=$?
33097   grep -v '^ *+' conftest.er1 >conftest.err
33098   rm -f conftest.er1
33099   cat conftest.err >&5
33100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101   (exit $ac_status); } &&
33102          { ac_try='test -z "$ac_c_werror_flag"
33103                          || test ! -s conftest.err'
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); }; } &&
33109          { ac_try='test -s conftest$ac_exeext'
33110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111   (eval $ac_try) 2>&5
33112   ac_status=$?
33113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114   (exit $ac_status); }; }; then
33115   ol_cv_db_db41=yes
33116 else
33117   echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.$ac_ext >&5
33119
33120 ol_cv_db_db41=no
33121 fi
33122 rm -f conftest.err conftest.$ac_objext \
33123       conftest$ac_exeext conftest.$ac_ext
33124
33125         LIBS="$ol_LIBS"
33126
33127 fi
33128 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33129 echo "${ECHO_T}$ol_cv_db_db41" >&6
33130
33131         if test $ol_cv_db_db41 = yes ; then
33132                 ol_cv_lib_db=-ldb41
33133         fi
33134 fi
33135
33136                 if test $ol_cv_lib_db = no ; then
33137         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33138 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33139 if test "${ol_cv_db_db_41+set}" = set; then
33140   echo $ECHO_N "(cached) $ECHO_C" >&6
33141 else
33142
33143         ol_DB_LIB=-ldb-41
33144         ol_LIBS=$LIBS
33145         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33146
33147         cat >conftest.$ac_ext <<_ACEOF
33148 /* confdefs.h.  */
33149 _ACEOF
33150 cat confdefs.h >>conftest.$ac_ext
33151 cat >>conftest.$ac_ext <<_ACEOF
33152 /* end confdefs.h.  */
33153
33154 #ifdef HAVE_DB_185_H
33155 # include <db_185.h>
33156 #else
33157 # include <db.h>
33158 #endif
33159
33160 #ifndef DB_VERSION_MAJOR
33161 # define DB_VERSION_MAJOR 1
33162 #endif
33163
33164 #ifndef NULL
33165 #define NULL ((void*)0)
33166 #endif
33167
33168 int
33169 main ()
33170 {
33171
33172 #if DB_VERSION_MAJOR > 1
33173         {
33174                 char *version;
33175                 int major, minor, patch;
33176
33177                 version = db_version( &major, &minor, &patch );
33178
33179                 if( major != DB_VERSION_MAJOR ||
33180                         minor < DB_VERSION_MINOR )
33181                 {
33182                         printf("Berkeley DB version mismatch\n"
33183                                 "\theader: %s\n\tlibrary: %s\n",
33184                                 DB_VERSION_STRING, version);
33185                         return 1;
33186                 }
33187         }
33188 #endif
33189
33190 #if DB_VERSION_MAJOR > 2
33191         db_env_create( NULL, 0 );
33192 #elif DB_VERSION_MAJOR > 1
33193         db_appexit( NULL );
33194 #else
33195         (void) dbopen( NULL, 0, 0, 0, NULL);
33196 #endif
33197
33198   ;
33199   return 0;
33200 }
33201 _ACEOF
33202 rm -f conftest.$ac_objext conftest$ac_exeext
33203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33204   (eval $ac_link) 2>conftest.er1
33205   ac_status=$?
33206   grep -v '^ *+' conftest.er1 >conftest.err
33207   rm -f conftest.er1
33208   cat conftest.err >&5
33209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210   (exit $ac_status); } &&
33211          { ac_try='test -z "$ac_c_werror_flag"
33212                          || test ! -s conftest.err'
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); }; } &&
33218          { ac_try='test -s conftest$ac_exeext'
33219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220   (eval $ac_try) 2>&5
33221   ac_status=$?
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); }; }; then
33224   ol_cv_db_db_41=yes
33225 else
33226   echo "$as_me: failed program was:" >&5
33227 sed 's/^/| /' conftest.$ac_ext >&5
33228
33229 ol_cv_db_db_41=no
33230 fi
33231 rm -f conftest.err conftest.$ac_objext \
33232       conftest$ac_exeext conftest.$ac_ext
33233
33234         LIBS="$ol_LIBS"
33235
33236 fi
33237 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33238 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33239
33240         if test $ol_cv_db_db_41 = yes ; then
33241                 ol_cv_lib_db=-ldb-41
33242         fi
33243 fi
33244
33245                 if test $ol_cv_lib_db = no ; then
33246         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33247 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33248 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33249   echo $ECHO_N "(cached) $ECHO_C" >&6
33250 else
33251
33252         ol_DB_LIB=-ldb-4.1
33253         ol_LIBS=$LIBS
33254         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33255
33256         cat >conftest.$ac_ext <<_ACEOF
33257 /* confdefs.h.  */
33258 _ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h.  */
33262
33263 #ifdef HAVE_DB_185_H
33264 # include <db_185.h>
33265 #else
33266 # include <db.h>
33267 #endif
33268
33269 #ifndef DB_VERSION_MAJOR
33270 # define DB_VERSION_MAJOR 1
33271 #endif
33272
33273 #ifndef NULL
33274 #define NULL ((void*)0)
33275 #endif
33276
33277 int
33278 main ()
33279 {
33280
33281 #if DB_VERSION_MAJOR > 1
33282         {
33283                 char *version;
33284                 int major, minor, patch;
33285
33286                 version = db_version( &major, &minor, &patch );
33287
33288                 if( major != DB_VERSION_MAJOR ||
33289                         minor < DB_VERSION_MINOR )
33290                 {
33291                         printf("Berkeley DB version mismatch\n"
33292                                 "\theader: %s\n\tlibrary: %s\n",
33293                                 DB_VERSION_STRING, version);
33294                         return 1;
33295                 }
33296         }
33297 #endif
33298
33299 #if DB_VERSION_MAJOR > 2
33300         db_env_create( NULL, 0 );
33301 #elif DB_VERSION_MAJOR > 1
33302         db_appexit( NULL );
33303 #else
33304         (void) dbopen( NULL, 0, 0, 0, NULL);
33305 #endif
33306
33307   ;
33308   return 0;
33309 }
33310 _ACEOF
33311 rm -f conftest.$ac_objext conftest$ac_exeext
33312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33313   (eval $ac_link) 2>conftest.er1
33314   ac_status=$?
33315   grep -v '^ *+' conftest.er1 >conftest.err
33316   rm -f conftest.er1
33317   cat conftest.err >&5
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); } &&
33320          { ac_try='test -z "$ac_c_werror_flag"
33321                          || test ! -s conftest.err'
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); }; } &&
33327          { ac_try='test -s conftest$ac_exeext'
33328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33329   (eval $ac_try) 2>&5
33330   ac_status=$?
33331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33332   (exit $ac_status); }; }; then
33333   ol_cv_db_db_4_dot_1=yes
33334 else
33335   echo "$as_me: failed program was:" >&5
33336 sed 's/^/| /' conftest.$ac_ext >&5
33337
33338 ol_cv_db_db_4_dot_1=no
33339 fi
33340 rm -f conftest.err conftest.$ac_objext \
33341       conftest$ac_exeext conftest.$ac_ext
33342
33343         LIBS="$ol_LIBS"
33344
33345 fi
33346 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33347 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33348
33349         if test $ol_cv_db_db_4_dot_1 = yes ; then
33350                 ol_cv_lib_db=-ldb-4.1
33351         fi
33352 fi
33353
33354                 if test $ol_cv_lib_db = no ; then
33355         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33356 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33357 if test "${ol_cv_db_db_4_1+set}" = set; then
33358   echo $ECHO_N "(cached) $ECHO_C" >&6
33359 else
33360
33361         ol_DB_LIB=-ldb-4-1
33362         ol_LIBS=$LIBS
33363         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33364
33365         cat >conftest.$ac_ext <<_ACEOF
33366 /* confdefs.h.  */
33367 _ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h.  */
33371
33372 #ifdef HAVE_DB_185_H
33373 # include <db_185.h>
33374 #else
33375 # include <db.h>
33376 #endif
33377
33378 #ifndef DB_VERSION_MAJOR
33379 # define DB_VERSION_MAJOR 1
33380 #endif
33381
33382 #ifndef NULL
33383 #define NULL ((void*)0)
33384 #endif
33385
33386 int
33387 main ()
33388 {
33389
33390 #if DB_VERSION_MAJOR > 1
33391         {
33392                 char *version;
33393                 int major, minor, patch;
33394
33395                 version = db_version( &major, &minor, &patch );
33396
33397                 if( major != DB_VERSION_MAJOR ||
33398                         minor < DB_VERSION_MINOR )
33399                 {
33400                         printf("Berkeley DB version mismatch\n"
33401                                 "\theader: %s\n\tlibrary: %s\n",
33402                                 DB_VERSION_STRING, version);
33403                         return 1;
33404                 }
33405         }
33406 #endif
33407
33408 #if DB_VERSION_MAJOR > 2
33409         db_env_create( NULL, 0 );
33410 #elif DB_VERSION_MAJOR > 1
33411         db_appexit( NULL );
33412 #else
33413         (void) dbopen( NULL, 0, 0, 0, NULL);
33414 #endif
33415
33416   ;
33417   return 0;
33418 }
33419 _ACEOF
33420 rm -f conftest.$ac_objext conftest$ac_exeext
33421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33422   (eval $ac_link) 2>conftest.er1
33423   ac_status=$?
33424   grep -v '^ *+' conftest.er1 >conftest.err
33425   rm -f conftest.er1
33426   cat conftest.err >&5
33427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428   (exit $ac_status); } &&
33429          { ac_try='test -z "$ac_c_werror_flag"
33430                          || test ! -s conftest.err'
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); }; } &&
33436          { ac_try='test -s conftest$ac_exeext'
33437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33438   (eval $ac_try) 2>&5
33439   ac_status=$?
33440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441   (exit $ac_status); }; }; then
33442   ol_cv_db_db_4_1=yes
33443 else
33444   echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33446
33447 ol_cv_db_db_4_1=no
33448 fi
33449 rm -f conftest.err conftest.$ac_objext \
33450       conftest$ac_exeext conftest.$ac_ext
33451
33452         LIBS="$ol_LIBS"
33453
33454 fi
33455 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33456 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33457
33458         if test $ol_cv_db_db_4_1 = yes ; then
33459                 ol_cv_lib_db=-ldb-4-1
33460         fi
33461 fi
33462
33463         fi
33464         if test $ol_cv_lib_db = no ; then
33465         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33466 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33467 if test "${ol_cv_db_db_4+set}" = set; then
33468   echo $ECHO_N "(cached) $ECHO_C" >&6
33469 else
33470
33471         ol_DB_LIB=-ldb-4
33472         ol_LIBS=$LIBS
33473         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33474
33475         cat >conftest.$ac_ext <<_ACEOF
33476 /* confdefs.h.  */
33477 _ACEOF
33478 cat confdefs.h >>conftest.$ac_ext
33479 cat >>conftest.$ac_ext <<_ACEOF
33480 /* end confdefs.h.  */
33481
33482 #ifdef HAVE_DB_185_H
33483 # include <db_185.h>
33484 #else
33485 # include <db.h>
33486 #endif
33487
33488 #ifndef DB_VERSION_MAJOR
33489 # define DB_VERSION_MAJOR 1
33490 #endif
33491
33492 #ifndef NULL
33493 #define NULL ((void*)0)
33494 #endif
33495
33496 int
33497 main ()
33498 {
33499
33500 #if DB_VERSION_MAJOR > 1
33501         {
33502                 char *version;
33503                 int major, minor, patch;
33504
33505                 version = db_version( &major, &minor, &patch );
33506
33507                 if( major != DB_VERSION_MAJOR ||
33508                         minor < DB_VERSION_MINOR )
33509                 {
33510                         printf("Berkeley DB version mismatch\n"
33511                                 "\theader: %s\n\tlibrary: %s\n",
33512                                 DB_VERSION_STRING, version);
33513                         return 1;
33514                 }
33515         }
33516 #endif
33517
33518 #if DB_VERSION_MAJOR > 2
33519         db_env_create( NULL, 0 );
33520 #elif DB_VERSION_MAJOR > 1
33521         db_appexit( NULL );
33522 #else
33523         (void) dbopen( NULL, 0, 0, 0, NULL);
33524 #endif
33525
33526   ;
33527   return 0;
33528 }
33529 _ACEOF
33530 rm -f conftest.$ac_objext conftest$ac_exeext
33531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33532   (eval $ac_link) 2>conftest.er1
33533   ac_status=$?
33534   grep -v '^ *+' conftest.er1 >conftest.err
33535   rm -f conftest.er1
33536   cat conftest.err >&5
33537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538   (exit $ac_status); } &&
33539          { ac_try='test -z "$ac_c_werror_flag"
33540                          || test ! -s conftest.err'
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); }; } &&
33546          { ac_try='test -s conftest$ac_exeext'
33547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548   (eval $ac_try) 2>&5
33549   ac_status=$?
33550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551   (exit $ac_status); }; }; then
33552   ol_cv_db_db_4=yes
33553 else
33554   echo "$as_me: failed program was:" >&5
33555 sed 's/^/| /' conftest.$ac_ext >&5
33556
33557 ol_cv_db_db_4=no
33558 fi
33559 rm -f conftest.err conftest.$ac_objext \
33560       conftest$ac_exeext conftest.$ac_ext
33561
33562         LIBS="$ol_LIBS"
33563
33564 fi
33565 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33566 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33567
33568         if test $ol_cv_db_db_4 = yes ; then
33569                 ol_cv_lib_db=-ldb-4
33570         fi
33571 fi
33572
33573         if test $ol_cv_lib_db = no ; then
33574         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33575 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33576 if test "${ol_cv_db_db4+set}" = set; then
33577   echo $ECHO_N "(cached) $ECHO_C" >&6
33578 else
33579
33580         ol_DB_LIB=-ldb4
33581         ol_LIBS=$LIBS
33582         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33583
33584         cat >conftest.$ac_ext <<_ACEOF
33585 /* confdefs.h.  */
33586 _ACEOF
33587 cat confdefs.h >>conftest.$ac_ext
33588 cat >>conftest.$ac_ext <<_ACEOF
33589 /* end confdefs.h.  */
33590
33591 #ifdef HAVE_DB_185_H
33592 # include <db_185.h>
33593 #else
33594 # include <db.h>
33595 #endif
33596
33597 #ifndef DB_VERSION_MAJOR
33598 # define DB_VERSION_MAJOR 1
33599 #endif
33600
33601 #ifndef NULL
33602 #define NULL ((void*)0)
33603 #endif
33604
33605 int
33606 main ()
33607 {
33608
33609 #if DB_VERSION_MAJOR > 1
33610         {
33611                 char *version;
33612                 int major, minor, patch;
33613
33614                 version = db_version( &major, &minor, &patch );
33615
33616                 if( major != DB_VERSION_MAJOR ||
33617                         minor < DB_VERSION_MINOR )
33618                 {
33619                         printf("Berkeley DB version mismatch\n"
33620                                 "\theader: %s\n\tlibrary: %s\n",
33621                                 DB_VERSION_STRING, version);
33622                         return 1;
33623                 }
33624         }
33625 #endif
33626
33627 #if DB_VERSION_MAJOR > 2
33628         db_env_create( NULL, 0 );
33629 #elif DB_VERSION_MAJOR > 1
33630         db_appexit( NULL );
33631 #else
33632         (void) dbopen( NULL, 0, 0, 0, NULL);
33633 #endif
33634
33635   ;
33636   return 0;
33637 }
33638 _ACEOF
33639 rm -f conftest.$ac_objext conftest$ac_exeext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33641   (eval $ac_link) 2>conftest.er1
33642   ac_status=$?
33643   grep -v '^ *+' conftest.er1 >conftest.err
33644   rm -f conftest.er1
33645   cat conftest.err >&5
33646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647   (exit $ac_status); } &&
33648          { ac_try='test -z "$ac_c_werror_flag"
33649                          || test ! -s conftest.err'
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); }; } &&
33655          { ac_try='test -s conftest$ac_exeext'
33656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657   (eval $ac_try) 2>&5
33658   ac_status=$?
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); }; }; then
33661   ol_cv_db_db4=yes
33662 else
33663   echo "$as_me: failed program was:" >&5
33664 sed 's/^/| /' conftest.$ac_ext >&5
33665
33666 ol_cv_db_db4=no
33667 fi
33668 rm -f conftest.err conftest.$ac_objext \
33669       conftest$ac_exeext conftest.$ac_ext
33670
33671         LIBS="$ol_LIBS"
33672
33673 fi
33674 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33675 echo "${ECHO_T}$ol_cv_db_db4" >&6
33676
33677         if test $ol_cv_db_db4 = yes ; then
33678                 ol_cv_lib_db=-ldb4
33679         fi
33680 fi
33681
33682         if test $ol_cv_lib_db = no ; then
33683         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33684 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33685 if test "${ol_cv_db_db+set}" = set; then
33686   echo $ECHO_N "(cached) $ECHO_C" >&6
33687 else
33688
33689         ol_DB_LIB=-ldb
33690         ol_LIBS=$LIBS
33691         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33692
33693         cat >conftest.$ac_ext <<_ACEOF
33694 /* confdefs.h.  */
33695 _ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h.  */
33699
33700 #ifdef HAVE_DB_185_H
33701 # include <db_185.h>
33702 #else
33703 # include <db.h>
33704 #endif
33705
33706 #ifndef DB_VERSION_MAJOR
33707 # define DB_VERSION_MAJOR 1
33708 #endif
33709
33710 #ifndef NULL
33711 #define NULL ((void*)0)
33712 #endif
33713
33714 int
33715 main ()
33716 {
33717
33718 #if DB_VERSION_MAJOR > 1
33719         {
33720                 char *version;
33721                 int major, minor, patch;
33722
33723                 version = db_version( &major, &minor, &patch );
33724
33725                 if( major != DB_VERSION_MAJOR ||
33726                         minor < DB_VERSION_MINOR )
33727                 {
33728                         printf("Berkeley DB version mismatch\n"
33729                                 "\theader: %s\n\tlibrary: %s\n",
33730                                 DB_VERSION_STRING, version);
33731                         return 1;
33732                 }
33733         }
33734 #endif
33735
33736 #if DB_VERSION_MAJOR > 2
33737         db_env_create( NULL, 0 );
33738 #elif DB_VERSION_MAJOR > 1
33739         db_appexit( NULL );
33740 #else
33741         (void) dbopen( NULL, 0, 0, 0, NULL);
33742 #endif
33743
33744   ;
33745   return 0;
33746 }
33747 _ACEOF
33748 rm -f conftest.$ac_objext conftest$ac_exeext
33749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33750   (eval $ac_link) 2>conftest.er1
33751   ac_status=$?
33752   grep -v '^ *+' conftest.er1 >conftest.err
33753   rm -f conftest.er1
33754   cat conftest.err >&5
33755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756   (exit $ac_status); } &&
33757          { ac_try='test -z "$ac_c_werror_flag"
33758                          || test ! -s conftest.err'
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); }; } &&
33764          { ac_try='test -s conftest$ac_exeext'
33765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33766   (eval $ac_try) 2>&5
33767   ac_status=$?
33768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769   (exit $ac_status); }; }; then
33770   ol_cv_db_db=yes
33771 else
33772   echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33774
33775 ol_cv_db_db=no
33776 fi
33777 rm -f conftest.err conftest.$ac_objext \
33778       conftest$ac_exeext conftest.$ac_ext
33779
33780         LIBS="$ol_LIBS"
33781
33782 fi
33783 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33784 echo "${ECHO_T}$ol_cv_db_db" >&6
33785
33786         if test $ol_cv_db_db = yes ; then
33787                 ol_cv_lib_db=-ldb
33788         fi
33789 fi
33790
33791
33792 elif test $ol_cv_bdb_major = 3 ; then
33793         if test $ol_cv_lib_db = no ; then
33794         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33795 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33796 if test "${ol_cv_db_db3+set}" = set; then
33797   echo $ECHO_N "(cached) $ECHO_C" >&6
33798 else
33799
33800         ol_DB_LIB=-ldb3
33801         ol_LIBS=$LIBS
33802         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33803
33804         cat >conftest.$ac_ext <<_ACEOF
33805 /* confdefs.h.  */
33806 _ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h.  */
33810
33811 #ifdef HAVE_DB_185_H
33812 # include <db_185.h>
33813 #else
33814 # include <db.h>
33815 #endif
33816
33817 #ifndef DB_VERSION_MAJOR
33818 # define DB_VERSION_MAJOR 1
33819 #endif
33820
33821 #ifndef NULL
33822 #define NULL ((void*)0)
33823 #endif
33824
33825 int
33826 main ()
33827 {
33828
33829 #if DB_VERSION_MAJOR > 1
33830         {
33831                 char *version;
33832                 int major, minor, patch;
33833
33834                 version = db_version( &major, &minor, &patch );
33835
33836                 if( major != DB_VERSION_MAJOR ||
33837                         minor < DB_VERSION_MINOR )
33838                 {
33839                         printf("Berkeley DB version mismatch\n"
33840                                 "\theader: %s\n\tlibrary: %s\n",
33841                                 DB_VERSION_STRING, version);
33842                         return 1;
33843                 }
33844         }
33845 #endif
33846
33847 #if DB_VERSION_MAJOR > 2
33848         db_env_create( NULL, 0 );
33849 #elif DB_VERSION_MAJOR > 1
33850         db_appexit( NULL );
33851 #else
33852         (void) dbopen( NULL, 0, 0, 0, NULL);
33853 #endif
33854
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest.$ac_objext conftest$ac_exeext
33860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33861   (eval $ac_link) 2>conftest.er1
33862   ac_status=$?
33863   grep -v '^ *+' conftest.er1 >conftest.err
33864   rm -f conftest.er1
33865   cat conftest.err >&5
33866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867   (exit $ac_status); } &&
33868          { ac_try='test -z "$ac_c_werror_flag"
33869                          || test ! -s conftest.err'
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); }; } &&
33875          { ac_try='test -s conftest$ac_exeext'
33876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877   (eval $ac_try) 2>&5
33878   ac_status=$?
33879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880   (exit $ac_status); }; }; then
33881   ol_cv_db_db3=yes
33882 else
33883   echo "$as_me: failed program was:" >&5
33884 sed 's/^/| /' conftest.$ac_ext >&5
33885
33886 ol_cv_db_db3=no
33887 fi
33888 rm -f conftest.err conftest.$ac_objext \
33889       conftest$ac_exeext conftest.$ac_ext
33890
33891         LIBS="$ol_LIBS"
33892
33893 fi
33894 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33895 echo "${ECHO_T}$ol_cv_db_db3" >&6
33896
33897         if test $ol_cv_db_db3 = yes ; then
33898                 ol_cv_lib_db=-ldb3
33899         fi
33900 fi
33901
33902         if test $ol_cv_lib_db = no ; then
33903         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33904 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33905 if test "${ol_cv_db_db_3+set}" = set; then
33906   echo $ECHO_N "(cached) $ECHO_C" >&6
33907 else
33908
33909         ol_DB_LIB=-ldb-3
33910         ol_LIBS=$LIBS
33911         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33912
33913         cat >conftest.$ac_ext <<_ACEOF
33914 /* confdefs.h.  */
33915 _ACEOF
33916 cat confdefs.h >>conftest.$ac_ext
33917 cat >>conftest.$ac_ext <<_ACEOF
33918 /* end confdefs.h.  */
33919
33920 #ifdef HAVE_DB_185_H
33921 # include <db_185.h>
33922 #else
33923 # include <db.h>
33924 #endif
33925
33926 #ifndef DB_VERSION_MAJOR
33927 # define DB_VERSION_MAJOR 1
33928 #endif
33929
33930 #ifndef NULL
33931 #define NULL ((void*)0)
33932 #endif
33933
33934 int
33935 main ()
33936 {
33937
33938 #if DB_VERSION_MAJOR > 1
33939         {
33940                 char *version;
33941                 int major, minor, patch;
33942
33943                 version = db_version( &major, &minor, &patch );
33944
33945                 if( major != DB_VERSION_MAJOR ||
33946                         minor < DB_VERSION_MINOR )
33947                 {
33948                         printf("Berkeley DB version mismatch\n"
33949                                 "\theader: %s\n\tlibrary: %s\n",
33950                                 DB_VERSION_STRING, version);
33951                         return 1;
33952                 }
33953         }
33954 #endif
33955
33956 #if DB_VERSION_MAJOR > 2
33957         db_env_create( NULL, 0 );
33958 #elif DB_VERSION_MAJOR > 1
33959         db_appexit( NULL );
33960 #else
33961         (void) dbopen( NULL, 0, 0, 0, NULL);
33962 #endif
33963
33964   ;
33965   return 0;
33966 }
33967 _ACEOF
33968 rm -f conftest.$ac_objext conftest$ac_exeext
33969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33970   (eval $ac_link) 2>conftest.er1
33971   ac_status=$?
33972   grep -v '^ *+' conftest.er1 >conftest.err
33973   rm -f conftest.er1
33974   cat conftest.err >&5
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); } &&
33977          { ac_try='test -z "$ac_c_werror_flag"
33978                          || test ! -s conftest.err'
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); }; } &&
33984          { ac_try='test -s conftest$ac_exeext'
33985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33986   (eval $ac_try) 2>&5
33987   ac_status=$?
33988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989   (exit $ac_status); }; }; then
33990   ol_cv_db_db_3=yes
33991 else
33992   echo "$as_me: failed program was:" >&5
33993 sed 's/^/| /' conftest.$ac_ext >&5
33994
33995 ol_cv_db_db_3=no
33996 fi
33997 rm -f conftest.err conftest.$ac_objext \
33998       conftest$ac_exeext conftest.$ac_ext
33999
34000         LIBS="$ol_LIBS"
34001
34002 fi
34003 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
34004 echo "${ECHO_T}$ol_cv_db_db_3" >&6
34005
34006         if test $ol_cv_db_db_3 = yes ; then
34007                 ol_cv_lib_db=-ldb-3
34008         fi
34009 fi
34010
34011
34012 elif test $ol_cv_bdb_major = 2 ; then
34013         if test $ol_cv_lib_db = no ; then
34014         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34015 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34016 if test "${ol_cv_db_db2+set}" = set; then
34017   echo $ECHO_N "(cached) $ECHO_C" >&6
34018 else
34019
34020         ol_DB_LIB=-ldb2
34021         ol_LIBS=$LIBS
34022         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34023
34024         cat >conftest.$ac_ext <<_ACEOF
34025 /* confdefs.h.  */
34026 _ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h.  */
34030
34031 #ifdef HAVE_DB_185_H
34032 # include <db_185.h>
34033 #else
34034 # include <db.h>
34035 #endif
34036
34037 #ifndef DB_VERSION_MAJOR
34038 # define DB_VERSION_MAJOR 1
34039 #endif
34040
34041 #ifndef NULL
34042 #define NULL ((void*)0)
34043 #endif
34044
34045 int
34046 main ()
34047 {
34048
34049 #if DB_VERSION_MAJOR > 1
34050         {
34051                 char *version;
34052                 int major, minor, patch;
34053
34054                 version = db_version( &major, &minor, &patch );
34055
34056                 if( major != DB_VERSION_MAJOR ||
34057                         minor < DB_VERSION_MINOR )
34058                 {
34059                         printf("Berkeley DB version mismatch\n"
34060                                 "\theader: %s\n\tlibrary: %s\n",
34061                                 DB_VERSION_STRING, version);
34062                         return 1;
34063                 }
34064         }
34065 #endif
34066
34067 #if DB_VERSION_MAJOR > 2
34068         db_env_create( NULL, 0 );
34069 #elif DB_VERSION_MAJOR > 1
34070         db_appexit( NULL );
34071 #else
34072         (void) dbopen( NULL, 0, 0, 0, NULL);
34073 #endif
34074
34075   ;
34076   return 0;
34077 }
34078 _ACEOF
34079 rm -f conftest.$ac_objext conftest$ac_exeext
34080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34081   (eval $ac_link) 2>conftest.er1
34082   ac_status=$?
34083   grep -v '^ *+' conftest.er1 >conftest.err
34084   rm -f conftest.er1
34085   cat conftest.err >&5
34086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087   (exit $ac_status); } &&
34088          { ac_try='test -z "$ac_c_werror_flag"
34089                          || test ! -s conftest.err'
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); }; } &&
34095          { ac_try='test -s conftest$ac_exeext'
34096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34097   (eval $ac_try) 2>&5
34098   ac_status=$?
34099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100   (exit $ac_status); }; }; then
34101   ol_cv_db_db2=yes
34102 else
34103   echo "$as_me: failed program was:" >&5
34104 sed 's/^/| /' conftest.$ac_ext >&5
34105
34106 ol_cv_db_db2=no
34107 fi
34108 rm -f conftest.err conftest.$ac_objext \
34109       conftest$ac_exeext conftest.$ac_ext
34110
34111         LIBS="$ol_LIBS"
34112
34113 fi
34114 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34115 echo "${ECHO_T}$ol_cv_db_db2" >&6
34116
34117         if test $ol_cv_db_db2 = yes ; then
34118                 ol_cv_lib_db=-ldb2
34119         fi
34120 fi
34121
34122         if test $ol_cv_lib_db = no ; then
34123         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34124 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34125 if test "${ol_cv_db_db_2+set}" = set; then
34126   echo $ECHO_N "(cached) $ECHO_C" >&6
34127 else
34128
34129         ol_DB_LIB=-ldb-2
34130         ol_LIBS=$LIBS
34131         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34132
34133         cat >conftest.$ac_ext <<_ACEOF
34134 /* confdefs.h.  */
34135 _ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h.  */
34139
34140 #ifdef HAVE_DB_185_H
34141 # include <db_185.h>
34142 #else
34143 # include <db.h>
34144 #endif
34145
34146 #ifndef DB_VERSION_MAJOR
34147 # define DB_VERSION_MAJOR 1
34148 #endif
34149
34150 #ifndef NULL
34151 #define NULL ((void*)0)
34152 #endif
34153
34154 int
34155 main ()
34156 {
34157
34158 #if DB_VERSION_MAJOR > 1
34159         {
34160                 char *version;
34161                 int major, minor, patch;
34162
34163                 version = db_version( &major, &minor, &patch );
34164
34165                 if( major != DB_VERSION_MAJOR ||
34166                         minor < DB_VERSION_MINOR )
34167                 {
34168                         printf("Berkeley DB version mismatch\n"
34169                                 "\theader: %s\n\tlibrary: %s\n",
34170                                 DB_VERSION_STRING, version);
34171                         return 1;
34172                 }
34173         }
34174 #endif
34175
34176 #if DB_VERSION_MAJOR > 2
34177         db_env_create( NULL, 0 );
34178 #elif DB_VERSION_MAJOR > 1
34179         db_appexit( NULL );
34180 #else
34181         (void) dbopen( NULL, 0, 0, 0, NULL);
34182 #endif
34183
34184   ;
34185   return 0;
34186 }
34187 _ACEOF
34188 rm -f conftest.$ac_objext conftest$ac_exeext
34189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34190   (eval $ac_link) 2>conftest.er1
34191   ac_status=$?
34192   grep -v '^ *+' conftest.er1 >conftest.err
34193   rm -f conftest.er1
34194   cat conftest.err >&5
34195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196   (exit $ac_status); } &&
34197          { ac_try='test -z "$ac_c_werror_flag"
34198                          || test ! -s conftest.err'
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); }; } &&
34204          { ac_try='test -s conftest$ac_exeext'
34205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34206   (eval $ac_try) 2>&5
34207   ac_status=$?
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); }; }; then
34210   ol_cv_db_db_2=yes
34211 else
34212   echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34214
34215 ol_cv_db_db_2=no
34216 fi
34217 rm -f conftest.err conftest.$ac_objext \
34218       conftest$ac_exeext conftest.$ac_ext
34219
34220         LIBS="$ol_LIBS"
34221
34222 fi
34223 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34224 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34225
34226         if test $ol_cv_db_db_2 = yes ; then
34227                 ol_cv_lib_db=-ldb-2
34228         fi
34229 fi
34230
34231
34232 elif test $ol_cv_bdb_major = 1 ; then
34233         if test $ol_cv_lib_db = no ; then
34234         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34235 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34236 if test "${ol_cv_db_db1+set}" = set; then
34237   echo $ECHO_N "(cached) $ECHO_C" >&6
34238 else
34239
34240         ol_DB_LIB=-ldb1
34241         ol_LIBS=$LIBS
34242         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34243
34244         cat >conftest.$ac_ext <<_ACEOF
34245 /* confdefs.h.  */
34246 _ACEOF
34247 cat confdefs.h >>conftest.$ac_ext
34248 cat >>conftest.$ac_ext <<_ACEOF
34249 /* end confdefs.h.  */
34250
34251 #ifdef HAVE_DB_185_H
34252 # include <db_185.h>
34253 #else
34254 # include <db.h>
34255 #endif
34256
34257 #ifndef DB_VERSION_MAJOR
34258 # define DB_VERSION_MAJOR 1
34259 #endif
34260
34261 #ifndef NULL
34262 #define NULL ((void*)0)
34263 #endif
34264
34265 int
34266 main ()
34267 {
34268
34269 #if DB_VERSION_MAJOR > 1
34270         {
34271                 char *version;
34272                 int major, minor, patch;
34273
34274                 version = db_version( &major, &minor, &patch );
34275
34276                 if( major != DB_VERSION_MAJOR ||
34277                         minor < DB_VERSION_MINOR )
34278                 {
34279                         printf("Berkeley DB version mismatch\n"
34280                                 "\theader: %s\n\tlibrary: %s\n",
34281                                 DB_VERSION_STRING, version);
34282                         return 1;
34283                 }
34284         }
34285 #endif
34286
34287 #if DB_VERSION_MAJOR > 2
34288         db_env_create( NULL, 0 );
34289 #elif DB_VERSION_MAJOR > 1
34290         db_appexit( NULL );
34291 #else
34292         (void) dbopen( NULL, 0, 0, 0, NULL);
34293 #endif
34294
34295   ;
34296   return 0;
34297 }
34298 _ACEOF
34299 rm -f conftest.$ac_objext conftest$ac_exeext
34300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34301   (eval $ac_link) 2>conftest.er1
34302   ac_status=$?
34303   grep -v '^ *+' conftest.er1 >conftest.err
34304   rm -f conftest.er1
34305   cat conftest.err >&5
34306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307   (exit $ac_status); } &&
34308          { ac_try='test -z "$ac_c_werror_flag"
34309                          || test ! -s conftest.err'
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); }; } &&
34315          { ac_try='test -s conftest$ac_exeext'
34316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34317   (eval $ac_try) 2>&5
34318   ac_status=$?
34319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320   (exit $ac_status); }; }; then
34321   ol_cv_db_db1=yes
34322 else
34323   echo "$as_me: failed program was:" >&5
34324 sed 's/^/| /' conftest.$ac_ext >&5
34325
34326 ol_cv_db_db1=no
34327 fi
34328 rm -f conftest.err conftest.$ac_objext \
34329       conftest$ac_exeext conftest.$ac_ext
34330
34331         LIBS="$ol_LIBS"
34332
34333 fi
34334 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34335 echo "${ECHO_T}$ol_cv_db_db1" >&6
34336
34337         if test $ol_cv_db_db1 = yes ; then
34338                 ol_cv_lib_db=-ldb1
34339         fi
34340 fi
34341
34342         if test $ol_cv_lib_db = no ; then
34343         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34344 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34345 if test "${ol_cv_db_db_1+set}" = set; then
34346   echo $ECHO_N "(cached) $ECHO_C" >&6
34347 else
34348
34349         ol_DB_LIB=-ldb-1
34350         ol_LIBS=$LIBS
34351         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34352
34353         cat >conftest.$ac_ext <<_ACEOF
34354 /* confdefs.h.  */
34355 _ACEOF
34356 cat confdefs.h >>conftest.$ac_ext
34357 cat >>conftest.$ac_ext <<_ACEOF
34358 /* end confdefs.h.  */
34359
34360 #ifdef HAVE_DB_185_H
34361 # include <db_185.h>
34362 #else
34363 # include <db.h>
34364 #endif
34365
34366 #ifndef DB_VERSION_MAJOR
34367 # define DB_VERSION_MAJOR 1
34368 #endif
34369
34370 #ifndef NULL
34371 #define NULL ((void*)0)
34372 #endif
34373
34374 int
34375 main ()
34376 {
34377
34378 #if DB_VERSION_MAJOR > 1
34379         {
34380                 char *version;
34381                 int major, minor, patch;
34382
34383                 version = db_version( &major, &minor, &patch );
34384
34385                 if( major != DB_VERSION_MAJOR ||
34386                         minor < DB_VERSION_MINOR )
34387                 {
34388                         printf("Berkeley DB version mismatch\n"
34389                                 "\theader: %s\n\tlibrary: %s\n",
34390                                 DB_VERSION_STRING, version);
34391                         return 1;
34392                 }
34393         }
34394 #endif
34395
34396 #if DB_VERSION_MAJOR > 2
34397         db_env_create( NULL, 0 );
34398 #elif DB_VERSION_MAJOR > 1
34399         db_appexit( NULL );
34400 #else
34401         (void) dbopen( NULL, 0, 0, 0, NULL);
34402 #endif
34403
34404   ;
34405   return 0;
34406 }
34407 _ACEOF
34408 rm -f conftest.$ac_objext conftest$ac_exeext
34409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34410   (eval $ac_link) 2>conftest.er1
34411   ac_status=$?
34412   grep -v '^ *+' conftest.er1 >conftest.err
34413   rm -f conftest.er1
34414   cat conftest.err >&5
34415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416   (exit $ac_status); } &&
34417          { ac_try='test -z "$ac_c_werror_flag"
34418                          || test ! -s conftest.err'
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); }; } &&
34424          { ac_try='test -s conftest$ac_exeext'
34425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34426   (eval $ac_try) 2>&5
34427   ac_status=$?
34428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429   (exit $ac_status); }; }; then
34430   ol_cv_db_db_1=yes
34431 else
34432   echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34434
34435 ol_cv_db_db_1=no
34436 fi
34437 rm -f conftest.err conftest.$ac_objext \
34438       conftest$ac_exeext conftest.$ac_ext
34439
34440         LIBS="$ol_LIBS"
34441
34442 fi
34443 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34444 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34445
34446         if test $ol_cv_db_db_1 = yes ; then
34447                 ol_cv_lib_db=-ldb-1
34448         fi
34449 fi
34450
34451 fi
34452 if test $ol_cv_lib_db = no ; then
34453         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34454 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34455 if test "${ol_cv_db_none+set}" = set; then
34456   echo $ECHO_N "(cached) $ECHO_C" >&6
34457 else
34458
34459         ol_DB_LIB=
34460         ol_LIBS=$LIBS
34461         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34462
34463         cat >conftest.$ac_ext <<_ACEOF
34464 /* confdefs.h.  */
34465 _ACEOF
34466 cat confdefs.h >>conftest.$ac_ext
34467 cat >>conftest.$ac_ext <<_ACEOF
34468 /* end confdefs.h.  */
34469
34470 #ifdef HAVE_DB_185_H
34471 # include <db_185.h>
34472 #else
34473 # include <db.h>
34474 #endif
34475
34476 #ifndef DB_VERSION_MAJOR
34477 # define DB_VERSION_MAJOR 1
34478 #endif
34479
34480 #ifndef NULL
34481 #define NULL ((void*)0)
34482 #endif
34483
34484 int
34485 main ()
34486 {
34487
34488 #if DB_VERSION_MAJOR > 1
34489         {
34490                 char *version;
34491                 int major, minor, patch;
34492
34493                 version = db_version( &major, &minor, &patch );
34494
34495                 if( major != DB_VERSION_MAJOR ||
34496                         minor < DB_VERSION_MINOR )
34497                 {
34498                         printf("Berkeley DB version mismatch\n"
34499                                 "\theader: %s\n\tlibrary: %s\n",
34500                                 DB_VERSION_STRING, version);
34501                         return 1;
34502                 }
34503         }
34504 #endif
34505
34506 #if DB_VERSION_MAJOR > 2
34507         db_env_create( NULL, 0 );
34508 #elif DB_VERSION_MAJOR > 1
34509         db_appexit( NULL );
34510 #else
34511         (void) dbopen( NULL, 0, 0, 0, NULL);
34512 #endif
34513
34514   ;
34515   return 0;
34516 }
34517 _ACEOF
34518 rm -f conftest.$ac_objext conftest$ac_exeext
34519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34520   (eval $ac_link) 2>conftest.er1
34521   ac_status=$?
34522   grep -v '^ *+' conftest.er1 >conftest.err
34523   rm -f conftest.er1
34524   cat conftest.err >&5
34525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526   (exit $ac_status); } &&
34527          { ac_try='test -z "$ac_c_werror_flag"
34528                          || test ! -s conftest.err'
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); }; } &&
34534          { ac_try='test -s conftest$ac_exeext'
34535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536   (eval $ac_try) 2>&5
34537   ac_status=$?
34538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539   (exit $ac_status); }; }; then
34540   ol_cv_db_none=yes
34541 else
34542   echo "$as_me: failed program was:" >&5
34543 sed 's/^/| /' conftest.$ac_ext >&5
34544
34545 ol_cv_db_none=no
34546 fi
34547 rm -f conftest.err conftest.$ac_objext \
34548       conftest$ac_exeext conftest.$ac_ext
34549
34550         LIBS="$ol_LIBS"
34551
34552 fi
34553 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34554 echo "${ECHO_T}$ol_cv_db_none" >&6
34555
34556         if test $ol_cv_db_none = yes ; then
34557                 ol_cv_lib_db=yes
34558         fi
34559 fi
34560
34561
34562         if test "$ol_cv_lib_db" != no ; then
34563                 ol_cv_berkeley_db=yes
34564                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34565 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34566 if test "${ol_cv_berkeley_db_version+set}" = set; then
34567   echo $ECHO_N "(cached) $ECHO_C" >&6
34568 else
34569
34570         ol_LIBS="$LIBS"
34571         LIBS="$LTHREAD_LIBS $LIBS"
34572         if test $ol_cv_lib_db != yes ; then
34573                 LIBS="$ol_cv_lib_db $LIBS"
34574         fi
34575
34576         if test "$cross_compiling" = yes; then
34577   ol_cv_berkeley_db_version=cross
34578 else
34579   cat >conftest.$ac_ext <<_ACEOF
34580 /* confdefs.h.  */
34581 _ACEOF
34582 cat confdefs.h >>conftest.$ac_ext
34583 cat >>conftest.$ac_ext <<_ACEOF
34584 /* end confdefs.h.  */
34585
34586 #ifdef HAVE_DB_185_H
34587         choke me;
34588 #else
34589 #include <db.h>
34590 #endif
34591 #ifndef DB_VERSION_MAJOR
34592 # define DB_VERSION_MAJOR 1
34593 #endif
34594 #ifndef NULL
34595 #define NULL ((void *)0)
34596 #endif
34597 main()
34598 {
34599 #if DB_VERSION_MAJOR > 1
34600         char *version;
34601         int major, minor, patch;
34602
34603         version = db_version( &major, &minor, &patch );
34604
34605         if( major != DB_VERSION_MAJOR ||
34606                 minor != DB_VERSION_MINOR ||
34607                 patch != DB_VERSION_PATCH )
34608         {
34609                 printf("Berkeley DB version mismatch\n"
34610                         "\theader: %s\n\tlibrary: %s\n",
34611                         DB_VERSION_STRING, version);
34612                 return 1;
34613         }
34614 #endif
34615
34616         return 0;
34617 }
34618 _ACEOF
34619 rm -f conftest$ac_exeext
34620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34621   (eval $ac_link) 2>&5
34622   ac_status=$?
34623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626   (eval $ac_try) 2>&5
34627   ac_status=$?
34628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629   (exit $ac_status); }; }; then
34630   ol_cv_berkeley_db_version=yes
34631 else
34632   echo "$as_me: program exited with status $ac_status" >&5
34633 echo "$as_me: failed program was:" >&5
34634 sed 's/^/| /' conftest.$ac_ext >&5
34635
34636 ( exit $ac_status )
34637 ol_cv_berkeley_db_version=no
34638 fi
34639 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34640 fi
34641
34642         LIBS="$ol_LIBS"
34643
34644 fi
34645 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34646 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34647
34648         if test $ol_cv_berkeley_db_version = no ; then
34649                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34650 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34651    { (exit 1); exit 1; }; }
34652         fi
34653
34654                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34655 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34656 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34657   echo $ECHO_N "(cached) $ECHO_C" >&6
34658 else
34659
34660         ol_LIBS="$LIBS"
34661         LIBS="$LTHREAD_LIBS $LIBS"
34662         if test $ol_cv_lib_db != yes ; then
34663                 LIBS="$ol_cv_lib_db $LIBS"
34664         fi
34665
34666         if test "$cross_compiling" = yes; then
34667   ol_cv_berkeley_db_thread=cross
34668 else
34669   cat >conftest.$ac_ext <<_ACEOF
34670 /* confdefs.h.  */
34671 _ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h.  */
34675
34676 #ifdef HAVE_DB_185_H
34677         choke me;
34678 #else
34679 #include <db.h>
34680 #endif
34681 #ifndef NULL
34682 #define NULL ((void *)0)
34683 #endif
34684 main()
34685 {
34686         int rc;
34687         u_int32_t flags = DB_CREATE |
34688 #ifdef DB_PRIVATE
34689                 DB_PRIVATE |
34690 #endif
34691                 DB_THREAD;
34692
34693 #if DB_VERSION_MAJOR > 2
34694         DB_ENV *env = NULL;
34695
34696         rc = db_env_create( &env, 0 );
34697
34698         flags |= DB_INIT_MPOOL;
34699 #ifdef DB_MPOOL_PRIVATE
34700         flags |= DB_MPOOL_PRIVATE;
34701 #endif
34702
34703         if( rc ) {
34704                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34705                 return rc;
34706         }
34707
34708 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34709         rc = env->open( env, NULL, flags, 0 );
34710 #else
34711         rc = env->open( env, NULL, NULL, flags, 0 );
34712 #endif
34713
34714         if ( rc == 0 ) {
34715                 rc = env->close( env, 0 );
34716         }
34717
34718         if( rc ) {
34719                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34720                 return rc;
34721         }
34722
34723 #else
34724         DB_ENV env;
34725         memset( &env, '\0', sizeof(env) );
34726
34727         rc = db_appinit( NULL, NULL, &env, flags );
34728
34729         if( rc == 0 ) {
34730                 db_appexit( &env );
34731         }
34732
34733         unlink("__db_mpool.share");
34734         unlink("__db_lock.share");
34735 #endif
34736
34737         return rc;
34738 }
34739 _ACEOF
34740 rm -f conftest$ac_exeext
34741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34742   (eval $ac_link) 2>&5
34743   ac_status=$?
34744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34747   (eval $ac_try) 2>&5
34748   ac_status=$?
34749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750   (exit $ac_status); }; }; then
34751   ol_cv_berkeley_db_thread=yes
34752 else
34753   echo "$as_me: program exited with status $ac_status" >&5
34754 echo "$as_me: failed program was:" >&5
34755 sed 's/^/| /' conftest.$ac_ext >&5
34756
34757 ( exit $ac_status )
34758 ol_cv_berkeley_db_thread=no
34759 fi
34760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34761 fi
34762
34763         LIBS="$ol_LIBS"
34764
34765 fi
34766 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34767 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34768
34769         if test $ol_cv_berkeley_db_thread != no ; then
34770
34771 cat >>confdefs.h <<\_ACEOF
34772 #define HAVE_BERKELEY_DB_THREAD 1
34773 _ACEOF
34774
34775         fi
34776
34777         fi
34778 fi
34779
34780         fi
34781
34782         if test $ol_cv_berkeley_db != no ; then
34783
34784 cat >>confdefs.h <<\_ACEOF
34785 #define HAVE_BERKELEY_DB 1
34786 _ACEOF
34787
34788
34789                 ol_link_ldbm=berkeley
34790                 ol_enable_ldbm_api=berkeley
34791
34792                 if test $ol_enable_ldbm_type = hash ; then
34793
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LDBM_USE_DBHASH 1
34796 _ACEOF
34797
34798                 else
34799
34800 cat >>confdefs.h <<\_ACEOF
34801 #define LDBM_USE_DBBTREE 1
34802 _ACEOF
34803
34804                 fi
34805
34806                                                 if test $ol_cv_lib_db != yes ; then
34807                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34808                 fi
34809         fi
34810         ;;
34811 esac
34812
34813 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34814         if test $ol_link_ldbm != berkeley ; then
34815                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34816 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34817    { (exit 1); exit 1; }; }
34818         else
34819                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34820 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34821 if test "${ol_cv_bdb_compat+set}" = set; then
34822   echo $ECHO_N "(cached) $ECHO_C" >&6
34823 else
34824
34825         cat >conftest.$ac_ext <<_ACEOF
34826 /* confdefs.h.  */
34827 _ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h.  */
34831
34832 #include <db.h>
34833
34834  /* this check could be improved */
34835 #ifndef DB_VERSION_MAJOR
34836 #       define DB_VERSION_MAJOR 1
34837 #endif
34838 #ifndef DB_VERSION_MINOR
34839 #       define DB_VERSION_MINOR 0
34840 #endif
34841
34842 /* require 4.2 or later */
34843 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34844         __db_version_compat
34845 #endif
34846
34847 _ACEOF
34848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34849   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34850   ol_cv_bdb_compat=yes
34851 else
34852   ol_cv_bdb_compat=no
34853 fi
34854 rm -f conftest*
34855
34856 fi
34857 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34858 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34859
34860
34861                 if test $ol_cv_bdb_compat != yes ; then
34862                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34863 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34864    { (exit 1); exit 1; }; }
34865                 fi
34866         fi
34867 fi
34868
34869 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34870         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34871 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34872         ol_enable_ldbm_api=none
34873 fi
34874
34875 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34876         echo "$as_me:$LINENO: checking for MDBM library" >&5
34877 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34878 if test "${ol_cv_lib_mdbm+set}" = set; then
34879   echo $ECHO_N "(cached) $ECHO_C" >&6
34880 else
34881         ol_LIBS="$LIBS"
34882         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34883 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34884 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34885   echo $ECHO_N "(cached) $ECHO_C" >&6
34886 else
34887   cat >conftest.$ac_ext <<_ACEOF
34888 /* confdefs.h.  */
34889 _ACEOF
34890 cat confdefs.h >>conftest.$ac_ext
34891 cat >>conftest.$ac_ext <<_ACEOF
34892 /* end confdefs.h.  */
34893 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34895 #define mdbm_set_chain innocuous_mdbm_set_chain
34896
34897 /* System header to define __stub macros and hopefully few prototypes,
34898     which can conflict with char mdbm_set_chain (); below.
34899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34900     <limits.h> exists even on freestanding compilers.  */
34901
34902 #ifdef __STDC__
34903 # include <limits.h>
34904 #else
34905 # include <assert.h>
34906 #endif
34907
34908 #undef mdbm_set_chain
34909
34910 /* Override any gcc2 internal prototype to avoid an error.  */
34911 #ifdef __cplusplus
34912 extern "C"
34913 {
34914 #endif
34915 /* We use char because int might match the return type of a gcc2
34916    builtin and then its argument prototype would still apply.  */
34917 char mdbm_set_chain ();
34918 /* The GNU C library defines this for functions which it implements
34919     to always fail with ENOSYS.  Some functions are actually named
34920     something starting with __ and the normal name is an alias.  */
34921 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34922 choke me
34923 #else
34924 char (*f) () = mdbm_set_chain;
34925 #endif
34926 #ifdef __cplusplus
34927 }
34928 #endif
34929
34930 int
34931 main ()
34932 {
34933 return f != mdbm_set_chain;
34934   ;
34935   return 0;
34936 }
34937 _ACEOF
34938 rm -f conftest.$ac_objext conftest$ac_exeext
34939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34940   (eval $ac_link) 2>conftest.er1
34941   ac_status=$?
34942   grep -v '^ *+' conftest.er1 >conftest.err
34943   rm -f conftest.er1
34944   cat conftest.err >&5
34945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); } &&
34947          { ac_try='test -z "$ac_c_werror_flag"
34948                          || test ! -s conftest.err'
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); }; } &&
34954          { ac_try='test -s conftest$ac_exeext'
34955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34956   (eval $ac_try) 2>&5
34957   ac_status=$?
34958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959   (exit $ac_status); }; }; then
34960   ac_cv_func_mdbm_set_chain=yes
34961 else
34962   echo "$as_me: failed program was:" >&5
34963 sed 's/^/| /' conftest.$ac_ext >&5
34964
34965 ac_cv_func_mdbm_set_chain=no
34966 fi
34967 rm -f conftest.err conftest.$ac_objext \
34968       conftest$ac_exeext conftest.$ac_ext
34969 fi
34970 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34971 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34972 if test $ac_cv_func_mdbm_set_chain = yes; then
34973   ol_cv_lib_mdbm=yes
34974 else
34975
34976                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34977 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34978 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34979   echo $ECHO_N "(cached) $ECHO_C" >&6
34980 else
34981   ac_check_lib_save_LIBS=$LIBS
34982 LIBS="-lmdbm  $LIBS"
34983 cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h.  */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h.  */
34989
34990 /* Override any gcc2 internal prototype to avoid an error.  */
34991 #ifdef __cplusplus
34992 extern "C"
34993 #endif
34994 /* We use char because int might match the return type of a gcc2
34995    builtin and then its argument prototype would still apply.  */
34996 char mdbm_set_chain ();
34997 int
34998 main ()
34999 {
35000 mdbm_set_chain ();
35001   ;
35002   return 0;
35003 }
35004 _ACEOF
35005 rm -f conftest.$ac_objext conftest$ac_exeext
35006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35007   (eval $ac_link) 2>conftest.er1
35008   ac_status=$?
35009   grep -v '^ *+' conftest.er1 >conftest.err
35010   rm -f conftest.er1
35011   cat conftest.err >&5
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); } &&
35014          { ac_try='test -z "$ac_c_werror_flag"
35015                          || test ! -s conftest.err'
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); }; } &&
35021          { ac_try='test -s conftest$ac_exeext'
35022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023   (eval $ac_try) 2>&5
35024   ac_status=$?
35025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026   (exit $ac_status); }; }; then
35027   ac_cv_lib_mdbm_mdbm_set_chain=yes
35028 else
35029   echo "$as_me: failed program was:" >&5
35030 sed 's/^/| /' conftest.$ac_ext >&5
35031
35032 ac_cv_lib_mdbm_mdbm_set_chain=no
35033 fi
35034 rm -f conftest.err conftest.$ac_objext \
35035       conftest$ac_exeext conftest.$ac_ext
35036 LIBS=$ac_check_lib_save_LIBS
35037 fi
35038 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35039 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35040 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35041   ol_cv_lib_mdbm=-lmdbm
35042 else
35043   ol_cv_lib_mdbm=no
35044 fi
35045
35046
35047 fi
35048
35049         LIBS="$ol_LIBS"
35050
35051 fi
35052 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35053 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35054
35055
35056
35057 for ac_header in mdbm.h
35058 do
35059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35061   echo "$as_me:$LINENO: checking for $ac_header" >&5
35062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35064   echo $ECHO_N "(cached) $ECHO_C" >&6
35065 fi
35066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35068 else
35069   # Is the header compilable?
35070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35072 cat >conftest.$ac_ext <<_ACEOF
35073 /* confdefs.h.  */
35074 _ACEOF
35075 cat confdefs.h >>conftest.$ac_ext
35076 cat >>conftest.$ac_ext <<_ACEOF
35077 /* end confdefs.h.  */
35078 $ac_includes_default
35079 #include <$ac_header>
35080 _ACEOF
35081 rm -f conftest.$ac_objext
35082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35083   (eval $ac_compile) 2>conftest.er1
35084   ac_status=$?
35085   grep -v '^ *+' conftest.er1 >conftest.err
35086   rm -f conftest.er1
35087   cat conftest.err >&5
35088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089   (exit $ac_status); } &&
35090          { ac_try='test -z "$ac_c_werror_flag"
35091                          || test ! -s conftest.err'
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); }; } &&
35097          { ac_try='test -s conftest.$ac_objext'
35098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099   (eval $ac_try) 2>&5
35100   ac_status=$?
35101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102   (exit $ac_status); }; }; then
35103   ac_header_compiler=yes
35104 else
35105   echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35107
35108 ac_header_compiler=no
35109 fi
35110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35112 echo "${ECHO_T}$ac_header_compiler" >&6
35113
35114 # Is the header present?
35115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35117 cat >conftest.$ac_ext <<_ACEOF
35118 /* confdefs.h.  */
35119 _ACEOF
35120 cat confdefs.h >>conftest.$ac_ext
35121 cat >>conftest.$ac_ext <<_ACEOF
35122 /* end confdefs.h.  */
35123 #include <$ac_header>
35124 _ACEOF
35125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35127   ac_status=$?
35128   grep -v '^ *+' conftest.er1 >conftest.err
35129   rm -f conftest.er1
35130   cat conftest.err >&5
35131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132   (exit $ac_status); } >/dev/null; then
35133   if test -s conftest.err; then
35134     ac_cpp_err=$ac_c_preproc_warn_flag
35135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35136   else
35137     ac_cpp_err=
35138   fi
35139 else
35140   ac_cpp_err=yes
35141 fi
35142 if test -z "$ac_cpp_err"; then
35143   ac_header_preproc=yes
35144 else
35145   echo "$as_me: failed program was:" >&5
35146 sed 's/^/| /' conftest.$ac_ext >&5
35147
35148   ac_header_preproc=no
35149 fi
35150 rm -f conftest.err conftest.$ac_ext
35151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35152 echo "${ECHO_T}$ac_header_preproc" >&6
35153
35154 # So?  What about this header?
35155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35156   yes:no: )
35157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35161     ac_header_preproc=yes
35162     ;;
35163   no:yes:* )
35164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35176     (
35177       cat <<\_ASBOX
35178 ## --------------------------------------------- ##
35179 ## Report this to <http://www.openldap.org/its/> ##
35180 ## --------------------------------------------- ##
35181 _ASBOX
35182     ) |
35183       sed "s/^/$as_me: WARNING:     /" >&2
35184     ;;
35185 esac
35186 echo "$as_me:$LINENO: checking for $ac_header" >&5
35187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35189   echo $ECHO_N "(cached) $ECHO_C" >&6
35190 else
35191   eval "$as_ac_Header=\$ac_header_preproc"
35192 fi
35193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35195
35196 fi
35197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35198   cat >>confdefs.h <<_ACEOF
35199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35200 _ACEOF
35201
35202 fi
35203
35204 done
35205
35206  echo "$as_me:$LINENO: checking for db" >&5
35207 echo $ECHO_N "checking for db... $ECHO_C" >&6
35208 if test "${ol_cv_mdbm+set}" = set; then
35209   echo $ECHO_N "(cached) $ECHO_C" >&6
35210 else
35211
35212         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35213                 ol_cv_mdbm=no
35214         else
35215                 ol_cv_mdbm=yes
35216         fi
35217
35218 fi
35219 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35220 echo "${ECHO_T}$ol_cv_mdbm" >&6
35221  if test $ol_cv_mdbm = yes ; then
35222
35223 cat >>confdefs.h <<\_ACEOF
35224 #define HAVE_MDBM 1
35225 _ACEOF
35226
35227  fi
35228
35229
35230         if test $ol_cv_mdbm = yes ; then
35231                 ol_link_ldbm=mdbm
35232                 ol_enable_ldbm_api=mdbm
35233                 if test $ol_cv_lib_mdbm != yes ; then
35234                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35235                 fi
35236         fi
35237 fi
35238
35239 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35240         echo "$as_me:$LINENO: checking for GDBM library" >&5
35241 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35242 if test "${ol_cv_lib_gdbm+set}" = set; then
35243   echo $ECHO_N "(cached) $ECHO_C" >&6
35244 else
35245         ol_LIBS="$LIBS"
35246         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35247 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35248 if test "${ac_cv_func_gdbm_open+set}" = set; then
35249   echo $ECHO_N "(cached) $ECHO_C" >&6
35250 else
35251   cat >conftest.$ac_ext <<_ACEOF
35252 /* confdefs.h.  */
35253 _ACEOF
35254 cat confdefs.h >>conftest.$ac_ext
35255 cat >>conftest.$ac_ext <<_ACEOF
35256 /* end confdefs.h.  */
35257 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35259 #define gdbm_open innocuous_gdbm_open
35260
35261 /* System header to define __stub macros and hopefully few prototypes,
35262     which can conflict with char gdbm_open (); below.
35263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35264     <limits.h> exists even on freestanding compilers.  */
35265
35266 #ifdef __STDC__
35267 # include <limits.h>
35268 #else
35269 # include <assert.h>
35270 #endif
35271
35272 #undef gdbm_open
35273
35274 /* Override any gcc2 internal prototype to avoid an error.  */
35275 #ifdef __cplusplus
35276 extern "C"
35277 {
35278 #endif
35279 /* We use char because int might match the return type of a gcc2
35280    builtin and then its argument prototype would still apply.  */
35281 char gdbm_open ();
35282 /* The GNU C library defines this for functions which it implements
35283     to always fail with ENOSYS.  Some functions are actually named
35284     something starting with __ and the normal name is an alias.  */
35285 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35286 choke me
35287 #else
35288 char (*f) () = gdbm_open;
35289 #endif
35290 #ifdef __cplusplus
35291 }
35292 #endif
35293
35294 int
35295 main ()
35296 {
35297 return f != gdbm_open;
35298   ;
35299   return 0;
35300 }
35301 _ACEOF
35302 rm -f conftest.$ac_objext conftest$ac_exeext
35303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35304   (eval $ac_link) 2>conftest.er1
35305   ac_status=$?
35306   grep -v '^ *+' conftest.er1 >conftest.err
35307   rm -f conftest.er1
35308   cat conftest.err >&5
35309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310   (exit $ac_status); } &&
35311          { ac_try='test -z "$ac_c_werror_flag"
35312                          || test ! -s conftest.err'
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); }; } &&
35318          { ac_try='test -s conftest$ac_exeext'
35319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35320   (eval $ac_try) 2>&5
35321   ac_status=$?
35322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323   (exit $ac_status); }; }; then
35324   ac_cv_func_gdbm_open=yes
35325 else
35326   echo "$as_me: failed program was:" >&5
35327 sed 's/^/| /' conftest.$ac_ext >&5
35328
35329 ac_cv_func_gdbm_open=no
35330 fi
35331 rm -f conftest.err conftest.$ac_objext \
35332       conftest$ac_exeext conftest.$ac_ext
35333 fi
35334 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35335 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35336 if test $ac_cv_func_gdbm_open = yes; then
35337   ol_cv_lib_gdbm=yes
35338 else
35339
35340                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35341 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35342 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35343   echo $ECHO_N "(cached) $ECHO_C" >&6
35344 else
35345   ac_check_lib_save_LIBS=$LIBS
35346 LIBS="-lgdbm  $LIBS"
35347 cat >conftest.$ac_ext <<_ACEOF
35348 /* confdefs.h.  */
35349 _ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h.  */
35353
35354 /* Override any gcc2 internal prototype to avoid an error.  */
35355 #ifdef __cplusplus
35356 extern "C"
35357 #endif
35358 /* We use char because int might match the return type of a gcc2
35359    builtin and then its argument prototype would still apply.  */
35360 char gdbm_open ();
35361 int
35362 main ()
35363 {
35364 gdbm_open ();
35365   ;
35366   return 0;
35367 }
35368 _ACEOF
35369 rm -f conftest.$ac_objext conftest$ac_exeext
35370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35371   (eval $ac_link) 2>conftest.er1
35372   ac_status=$?
35373   grep -v '^ *+' conftest.er1 >conftest.err
35374   rm -f conftest.er1
35375   cat conftest.err >&5
35376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377   (exit $ac_status); } &&
35378          { ac_try='test -z "$ac_c_werror_flag"
35379                          || test ! -s conftest.err'
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); }; } &&
35385          { ac_try='test -s conftest$ac_exeext'
35386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387   (eval $ac_try) 2>&5
35388   ac_status=$?
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); }; }; then
35391   ac_cv_lib_gdbm_gdbm_open=yes
35392 else
35393   echo "$as_me: failed program was:" >&5
35394 sed 's/^/| /' conftest.$ac_ext >&5
35395
35396 ac_cv_lib_gdbm_gdbm_open=no
35397 fi
35398 rm -f conftest.err conftest.$ac_objext \
35399       conftest$ac_exeext conftest.$ac_ext
35400 LIBS=$ac_check_lib_save_LIBS
35401 fi
35402 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35403 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35404 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35405   ol_cv_lib_gdbm=-lgdbm
35406 else
35407   ol_cv_lib_gdbm=no
35408 fi
35409
35410
35411 fi
35412
35413         LIBS="$ol_LIBS"
35414
35415 fi
35416 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35417 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35418
35419
35420
35421 for ac_header in gdbm.h
35422 do
35423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35425   echo "$as_me:$LINENO: checking for $ac_header" >&5
35426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35428   echo $ECHO_N "(cached) $ECHO_C" >&6
35429 fi
35430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35432 else
35433   # Is the header compilable?
35434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35436 cat >conftest.$ac_ext <<_ACEOF
35437 /* confdefs.h.  */
35438 _ACEOF
35439 cat confdefs.h >>conftest.$ac_ext
35440 cat >>conftest.$ac_ext <<_ACEOF
35441 /* end confdefs.h.  */
35442 $ac_includes_default
35443 #include <$ac_header>
35444 _ACEOF
35445 rm -f conftest.$ac_objext
35446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35447   (eval $ac_compile) 2>conftest.er1
35448   ac_status=$?
35449   grep -v '^ *+' conftest.er1 >conftest.err
35450   rm -f conftest.er1
35451   cat conftest.err >&5
35452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453   (exit $ac_status); } &&
35454          { ac_try='test -z "$ac_c_werror_flag"
35455                          || test ! -s conftest.err'
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); }; } &&
35461          { ac_try='test -s conftest.$ac_objext'
35462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35463   (eval $ac_try) 2>&5
35464   ac_status=$?
35465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466   (exit $ac_status); }; }; then
35467   ac_header_compiler=yes
35468 else
35469   echo "$as_me: failed program was:" >&5
35470 sed 's/^/| /' conftest.$ac_ext >&5
35471
35472 ac_header_compiler=no
35473 fi
35474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35476 echo "${ECHO_T}$ac_header_compiler" >&6
35477
35478 # Is the header present?
35479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35481 cat >conftest.$ac_ext <<_ACEOF
35482 /* confdefs.h.  */
35483 _ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h.  */
35487 #include <$ac_header>
35488 _ACEOF
35489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35491   ac_status=$?
35492   grep -v '^ *+' conftest.er1 >conftest.err
35493   rm -f conftest.er1
35494   cat conftest.err >&5
35495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496   (exit $ac_status); } >/dev/null; then
35497   if test -s conftest.err; then
35498     ac_cpp_err=$ac_c_preproc_warn_flag
35499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35500   else
35501     ac_cpp_err=
35502   fi
35503 else
35504   ac_cpp_err=yes
35505 fi
35506 if test -z "$ac_cpp_err"; then
35507   ac_header_preproc=yes
35508 else
35509   echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35511
35512   ac_header_preproc=no
35513 fi
35514 rm -f conftest.err conftest.$ac_ext
35515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35516 echo "${ECHO_T}$ac_header_preproc" >&6
35517
35518 # So?  What about this header?
35519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35520   yes:no: )
35521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35525     ac_header_preproc=yes
35526     ;;
35527   no:yes:* )
35528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35540     (
35541       cat <<\_ASBOX
35542 ## --------------------------------------------- ##
35543 ## Report this to <http://www.openldap.org/its/> ##
35544 ## --------------------------------------------- ##
35545 _ASBOX
35546     ) |
35547       sed "s/^/$as_me: WARNING:     /" >&2
35548     ;;
35549 esac
35550 echo "$as_me:$LINENO: checking for $ac_header" >&5
35551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35553   echo $ECHO_N "(cached) $ECHO_C" >&6
35554 else
35555   eval "$as_ac_Header=\$ac_header_preproc"
35556 fi
35557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35559
35560 fi
35561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35562   cat >>confdefs.h <<_ACEOF
35563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35564 _ACEOF
35565
35566 fi
35567
35568 done
35569
35570  echo "$as_me:$LINENO: checking for db" >&5
35571 echo $ECHO_N "checking for db... $ECHO_C" >&6
35572 if test "${ol_cv_gdbm+set}" = set; then
35573   echo $ECHO_N "(cached) $ECHO_C" >&6
35574 else
35575
35576         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35577                 ol_cv_gdbm=no
35578         else
35579                 ol_cv_gdbm=yes
35580         fi
35581
35582 fi
35583 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35584 echo "${ECHO_T}$ol_cv_gdbm" >&6
35585  if test $ol_cv_gdbm = yes ; then
35586
35587 cat >>confdefs.h <<\_ACEOF
35588 #define HAVE_GDBM 1
35589 _ACEOF
35590
35591  fi
35592
35593
35594         if test $ol_cv_gdbm = yes ; then
35595                 ol_link_ldbm=gdbm
35596                 ol_enable_ldbm_api=gdbm
35597
35598                 if test $ol_cv_lib_gdbm != yes ; then
35599                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35600                 fi
35601         fi
35602 fi
35603
35604 if test $ol_enable_ldbm_api = ndbm ; then
35605         echo "$as_me:$LINENO: checking for NDBM library" >&5
35606 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35607 if test "${ol_cv_lib_ndbm+set}" = set; then
35608   echo $ECHO_N "(cached) $ECHO_C" >&6
35609 else
35610         ol_LIBS="$LIBS"
35611         echo "$as_me:$LINENO: checking for dbm_open" >&5
35612 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35613 if test "${ac_cv_func_dbm_open+set}" = set; then
35614   echo $ECHO_N "(cached) $ECHO_C" >&6
35615 else
35616   cat >conftest.$ac_ext <<_ACEOF
35617 /* confdefs.h.  */
35618 _ACEOF
35619 cat confdefs.h >>conftest.$ac_ext
35620 cat >>conftest.$ac_ext <<_ACEOF
35621 /* end confdefs.h.  */
35622 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35624 #define dbm_open innocuous_dbm_open
35625
35626 /* System header to define __stub macros and hopefully few prototypes,
35627     which can conflict with char dbm_open (); below.
35628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35629     <limits.h> exists even on freestanding compilers.  */
35630
35631 #ifdef __STDC__
35632 # include <limits.h>
35633 #else
35634 # include <assert.h>
35635 #endif
35636
35637 #undef dbm_open
35638
35639 /* Override any gcc2 internal prototype to avoid an error.  */
35640 #ifdef __cplusplus
35641 extern "C"
35642 {
35643 #endif
35644 /* We use char because int might match the return type of a gcc2
35645    builtin and then its argument prototype would still apply.  */
35646 char dbm_open ();
35647 /* The GNU C library defines this for functions which it implements
35648     to always fail with ENOSYS.  Some functions are actually named
35649     something starting with __ and the normal name is an alias.  */
35650 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35651 choke me
35652 #else
35653 char (*f) () = dbm_open;
35654 #endif
35655 #ifdef __cplusplus
35656 }
35657 #endif
35658
35659 int
35660 main ()
35661 {
35662 return f != dbm_open;
35663   ;
35664   return 0;
35665 }
35666 _ACEOF
35667 rm -f conftest.$ac_objext conftest$ac_exeext
35668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35669   (eval $ac_link) 2>conftest.er1
35670   ac_status=$?
35671   grep -v '^ *+' conftest.er1 >conftest.err
35672   rm -f conftest.er1
35673   cat conftest.err >&5
35674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675   (exit $ac_status); } &&
35676          { ac_try='test -z "$ac_c_werror_flag"
35677                          || test ! -s conftest.err'
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); }; } &&
35683          { ac_try='test -s conftest$ac_exeext'
35684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685   (eval $ac_try) 2>&5
35686   ac_status=$?
35687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688   (exit $ac_status); }; }; then
35689   ac_cv_func_dbm_open=yes
35690 else
35691   echo "$as_me: failed program was:" >&5
35692 sed 's/^/| /' conftest.$ac_ext >&5
35693
35694 ac_cv_func_dbm_open=no
35695 fi
35696 rm -f conftest.err conftest.$ac_objext \
35697       conftest$ac_exeext conftest.$ac_ext
35698 fi
35699 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35700 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35701 if test $ac_cv_func_dbm_open = yes; then
35702   ol_cv_lib_ndbm=yes
35703 else
35704
35705                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35706 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35707 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35708   echo $ECHO_N "(cached) $ECHO_C" >&6
35709 else
35710   ac_check_lib_save_LIBS=$LIBS
35711 LIBS="-lndbm  $LIBS"
35712 cat >conftest.$ac_ext <<_ACEOF
35713 /* confdefs.h.  */
35714 _ACEOF
35715 cat confdefs.h >>conftest.$ac_ext
35716 cat >>conftest.$ac_ext <<_ACEOF
35717 /* end confdefs.h.  */
35718
35719 /* Override any gcc2 internal prototype to avoid an error.  */
35720 #ifdef __cplusplus
35721 extern "C"
35722 #endif
35723 /* We use char because int might match the return type of a gcc2
35724    builtin and then its argument prototype would still apply.  */
35725 char dbm_open ();
35726 int
35727 main ()
35728 {
35729 dbm_open ();
35730   ;
35731   return 0;
35732 }
35733 _ACEOF
35734 rm -f conftest.$ac_objext conftest$ac_exeext
35735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35736   (eval $ac_link) 2>conftest.er1
35737   ac_status=$?
35738   grep -v '^ *+' conftest.er1 >conftest.err
35739   rm -f conftest.er1
35740   cat conftest.err >&5
35741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742   (exit $ac_status); } &&
35743          { ac_try='test -z "$ac_c_werror_flag"
35744                          || test ! -s conftest.err'
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); }; } &&
35750          { ac_try='test -s conftest$ac_exeext'
35751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752   (eval $ac_try) 2>&5
35753   ac_status=$?
35754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755   (exit $ac_status); }; }; then
35756   ac_cv_lib_ndbm_dbm_open=yes
35757 else
35758   echo "$as_me: failed program was:" >&5
35759 sed 's/^/| /' conftest.$ac_ext >&5
35760
35761 ac_cv_lib_ndbm_dbm_open=no
35762 fi
35763 rm -f conftest.err conftest.$ac_objext \
35764       conftest$ac_exeext conftest.$ac_ext
35765 LIBS=$ac_check_lib_save_LIBS
35766 fi
35767 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35768 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35769 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35770   ol_cv_lib_ndbm=-lndbm
35771 else
35772
35773                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35774 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35775 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35776   echo $ECHO_N "(cached) $ECHO_C" >&6
35777 else
35778   ac_check_lib_save_LIBS=$LIBS
35779 LIBS="-ldbm  $LIBS"
35780 cat >conftest.$ac_ext <<_ACEOF
35781 /* confdefs.h.  */
35782 _ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h.  */
35786
35787 /* Override any gcc2 internal prototype to avoid an error.  */
35788 #ifdef __cplusplus
35789 extern "C"
35790 #endif
35791 /* We use char because int might match the return type of a gcc2
35792    builtin and then its argument prototype would still apply.  */
35793 char dbm_open ();
35794 int
35795 main ()
35796 {
35797 dbm_open ();
35798   ;
35799   return 0;
35800 }
35801 _ACEOF
35802 rm -f conftest.$ac_objext conftest$ac_exeext
35803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35804   (eval $ac_link) 2>conftest.er1
35805   ac_status=$?
35806   grep -v '^ *+' conftest.er1 >conftest.err
35807   rm -f conftest.er1
35808   cat conftest.err >&5
35809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810   (exit $ac_status); } &&
35811          { ac_try='test -z "$ac_c_werror_flag"
35812                          || test ! -s conftest.err'
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); }; } &&
35818          { ac_try='test -s conftest$ac_exeext'
35819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35820   (eval $ac_try) 2>&5
35821   ac_status=$?
35822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823   (exit $ac_status); }; }; then
35824   ac_cv_lib_dbm_dbm_open=yes
35825 else
35826   echo "$as_me: failed program was:" >&5
35827 sed 's/^/| /' conftest.$ac_ext >&5
35828
35829 ac_cv_lib_dbm_dbm_open=no
35830 fi
35831 rm -f conftest.err conftest.$ac_objext \
35832       conftest$ac_exeext conftest.$ac_ext
35833 LIBS=$ac_check_lib_save_LIBS
35834 fi
35835 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35836 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35837 if test $ac_cv_lib_dbm_dbm_open = yes; then
35838   ol_cv_lib_ndbm=-ldbm
35839 else
35840   ol_cv_lib_ndbm=no
35841 fi
35842
35843 fi
35844
35845
35846 fi
35847
35848         LIBS="$ol_LIBS"
35849
35850 fi
35851 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35852 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35853
35854
35855
35856 for ac_header in ndbm.h
35857 do
35858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35860   echo "$as_me:$LINENO: checking for $ac_header" >&5
35861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35863   echo $ECHO_N "(cached) $ECHO_C" >&6
35864 fi
35865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35867 else
35868   # Is the header compilable?
35869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35871 cat >conftest.$ac_ext <<_ACEOF
35872 /* confdefs.h.  */
35873 _ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h.  */
35877 $ac_includes_default
35878 #include <$ac_header>
35879 _ACEOF
35880 rm -f conftest.$ac_objext
35881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35882   (eval $ac_compile) 2>conftest.er1
35883   ac_status=$?
35884   grep -v '^ *+' conftest.er1 >conftest.err
35885   rm -f conftest.er1
35886   cat conftest.err >&5
35887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888   (exit $ac_status); } &&
35889          { ac_try='test -z "$ac_c_werror_flag"
35890                          || test ! -s conftest.err'
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); }; } &&
35896          { ac_try='test -s conftest.$ac_objext'
35897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898   (eval $ac_try) 2>&5
35899   ac_status=$?
35900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901   (exit $ac_status); }; }; then
35902   ac_header_compiler=yes
35903 else
35904   echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35906
35907 ac_header_compiler=no
35908 fi
35909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35911 echo "${ECHO_T}$ac_header_compiler" >&6
35912
35913 # Is the header present?
35914 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35915 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35916 cat >conftest.$ac_ext <<_ACEOF
35917 /* confdefs.h.  */
35918 _ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h.  */
35922 #include <$ac_header>
35923 _ACEOF
35924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35926   ac_status=$?
35927   grep -v '^ *+' conftest.er1 >conftest.err
35928   rm -f conftest.er1
35929   cat conftest.err >&5
35930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931   (exit $ac_status); } >/dev/null; then
35932   if test -s conftest.err; then
35933     ac_cpp_err=$ac_c_preproc_warn_flag
35934     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35935   else
35936     ac_cpp_err=
35937   fi
35938 else
35939   ac_cpp_err=yes
35940 fi
35941 if test -z "$ac_cpp_err"; then
35942   ac_header_preproc=yes
35943 else
35944   echo "$as_me: failed program was:" >&5
35945 sed 's/^/| /' conftest.$ac_ext >&5
35946
35947   ac_header_preproc=no
35948 fi
35949 rm -f conftest.err conftest.$ac_ext
35950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35951 echo "${ECHO_T}$ac_header_preproc" >&6
35952
35953 # So?  What about this header?
35954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35955   yes:no: )
35956     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35960     ac_header_preproc=yes
35961     ;;
35962   no:yes:* )
35963     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35965     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35966 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35967     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35969     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35970 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35973     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35975     (
35976       cat <<\_ASBOX
35977 ## --------------------------------------------- ##
35978 ## Report this to <http://www.openldap.org/its/> ##
35979 ## --------------------------------------------- ##
35980 _ASBOX
35981     ) |
35982       sed "s/^/$as_me: WARNING:     /" >&2
35983     ;;
35984 esac
35985 echo "$as_me:$LINENO: checking for $ac_header" >&5
35986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35988   echo $ECHO_N "(cached) $ECHO_C" >&6
35989 else
35990   eval "$as_ac_Header=\$ac_header_preproc"
35991 fi
35992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35994
35995 fi
35996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35997   cat >>confdefs.h <<_ACEOF
35998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35999 _ACEOF
36000
36001 fi
36002
36003 done
36004
36005  echo "$as_me:$LINENO: checking for db" >&5
36006 echo $ECHO_N "checking for db... $ECHO_C" >&6
36007 if test "${ol_cv_ndbm+set}" = set; then
36008   echo $ECHO_N "(cached) $ECHO_C" >&6
36009 else
36010
36011         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36012                 ol_cv_ndbm=no
36013         else
36014                 ol_cv_ndbm=yes
36015         fi
36016
36017 fi
36018 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36019 echo "${ECHO_T}$ol_cv_ndbm" >&6
36020  if test $ol_cv_ndbm = yes ; then
36021
36022 cat >>confdefs.h <<\_ACEOF
36023 #define HAVE_NDBM 1
36024 _ACEOF
36025
36026  fi
36027
36028
36029         if test $ol_cv_ndbm = yes ; then
36030                 ol_link_ldbm=ndbm
36031                 ol_enable_ldbm_api=ndbm
36032
36033                 if test $ol_cv_lib_ndbm != yes ; then
36034                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36035                 fi
36036         fi
36037 fi
36038
36039 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36040         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36041 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36042    { (exit 1); exit 1; }; }
36043 fi
36044
36045 if test $ol_enable_bdb = yes ||
36046    test $ol_enable_hdb = yes ||
36047    test $ol_enable_ldbm = yes ; then
36048         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36049 fi
36050
36051
36052 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36053         BUILD_LIBS_DYNAMIC=shared
36054
36055 cat >>confdefs.h <<\_ACEOF
36056 #define LDAP_LIBS_DYNAMIC 1
36057 _ACEOF
36058
36059         LTSTATIC=""
36060 else
36061         BUILD_LIBS_DYNAMIC=static
36062         LTSTATIC="-static"
36063 fi
36064
36065 if test $ol_enable_wrappers != no ; then
36066
36067 for ac_header in tcpd.h
36068 do
36069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36071   echo "$as_me:$LINENO: checking for $ac_header" >&5
36072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36074   echo $ECHO_N "(cached) $ECHO_C" >&6
36075 fi
36076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36078 else
36079   # Is the header compilable?
36080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36082 cat >conftest.$ac_ext <<_ACEOF
36083 /* confdefs.h.  */
36084 _ACEOF
36085 cat confdefs.h >>conftest.$ac_ext
36086 cat >>conftest.$ac_ext <<_ACEOF
36087 /* end confdefs.h.  */
36088 $ac_includes_default
36089 #include <$ac_header>
36090 _ACEOF
36091 rm -f conftest.$ac_objext
36092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36093   (eval $ac_compile) 2>conftest.er1
36094   ac_status=$?
36095   grep -v '^ *+' conftest.er1 >conftest.err
36096   rm -f conftest.er1
36097   cat conftest.err >&5
36098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099   (exit $ac_status); } &&
36100          { ac_try='test -z "$ac_c_werror_flag"
36101                          || test ! -s conftest.err'
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); }; } &&
36107          { ac_try='test -s conftest.$ac_objext'
36108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36109   (eval $ac_try) 2>&5
36110   ac_status=$?
36111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112   (exit $ac_status); }; }; then
36113   ac_header_compiler=yes
36114 else
36115   echo "$as_me: failed program was:" >&5
36116 sed 's/^/| /' conftest.$ac_ext >&5
36117
36118 ac_header_compiler=no
36119 fi
36120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36122 echo "${ECHO_T}$ac_header_compiler" >&6
36123
36124 # Is the header present?
36125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36127 cat >conftest.$ac_ext <<_ACEOF
36128 /* confdefs.h.  */
36129 _ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h.  */
36133 #include <$ac_header>
36134 _ACEOF
36135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36137   ac_status=$?
36138   grep -v '^ *+' conftest.er1 >conftest.err
36139   rm -f conftest.er1
36140   cat conftest.err >&5
36141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142   (exit $ac_status); } >/dev/null; then
36143   if test -s conftest.err; then
36144     ac_cpp_err=$ac_c_preproc_warn_flag
36145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36146   else
36147     ac_cpp_err=
36148   fi
36149 else
36150   ac_cpp_err=yes
36151 fi
36152 if test -z "$ac_cpp_err"; then
36153   ac_header_preproc=yes
36154 else
36155   echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36157
36158   ac_header_preproc=no
36159 fi
36160 rm -f conftest.err conftest.$ac_ext
36161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36162 echo "${ECHO_T}$ac_header_preproc" >&6
36163
36164 # So?  What about this header?
36165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36166   yes:no: )
36167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36171     ac_header_preproc=yes
36172     ;;
36173   no:yes:* )
36174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36176     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36177 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36178     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36180     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36181 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36184     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36186     (
36187       cat <<\_ASBOX
36188 ## --------------------------------------------- ##
36189 ## Report this to <http://www.openldap.org/its/> ##
36190 ## --------------------------------------------- ##
36191 _ASBOX
36192     ) |
36193       sed "s/^/$as_me: WARNING:     /" >&2
36194     ;;
36195 esac
36196 echo "$as_me:$LINENO: checking for $ac_header" >&5
36197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36199   echo $ECHO_N "(cached) $ECHO_C" >&6
36200 else
36201   eval "$as_ac_Header=\$ac_header_preproc"
36202 fi
36203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36205
36206 fi
36207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36208   cat >>confdefs.h <<_ACEOF
36209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36210 _ACEOF
36211
36212                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36213 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36214                 save_LIBS="$LIBS"
36215                 LIBS="$LIBS -lwrap"
36216                 cat >conftest.$ac_ext <<_ACEOF
36217 /* confdefs.h.  */
36218 _ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h.  */
36222
36223 #include <tcpd.h>
36224 int allow_severity = 0;
36225 int deny_severity  = 0;
36226
36227 struct request_info *req;
36228
36229 int
36230 main ()
36231 {
36232
36233 hosts_access(req)
36234
36235   ;
36236   return 0;
36237 }
36238 _ACEOF
36239 rm -f conftest.$ac_objext conftest$ac_exeext
36240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36241   (eval $ac_link) 2>conftest.er1
36242   ac_status=$?
36243   grep -v '^ *+' conftest.er1 >conftest.err
36244   rm -f conftest.er1
36245   cat conftest.err >&5
36246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247   (exit $ac_status); } &&
36248          { ac_try='test -z "$ac_c_werror_flag"
36249                          || test ! -s conftest.err'
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); }; } &&
36255          { ac_try='test -s conftest$ac_exeext'
36256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36257   (eval $ac_try) 2>&5
36258   ac_status=$?
36259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260   (exit $ac_status); }; }; then
36261   echo "$as_me:$LINENO: result: -lwrap" >&5
36262 echo "${ECHO_T}-lwrap" >&6
36263                 have_wrappers=yes
36264                 LIBS="$save_LIBS"
36265 else
36266   echo "$as_me: failed program was:" >&5
36267 sed 's/^/| /' conftest.$ac_ext >&5
36268
36269
36270                                 LIBS="$LIBS -lnsl"
36271                 cat >conftest.$ac_ext <<_ACEOF
36272 /* confdefs.h.  */
36273 _ACEOF
36274 cat confdefs.h >>conftest.$ac_ext
36275 cat >>conftest.$ac_ext <<_ACEOF
36276 /* end confdefs.h.  */
36277
36278 #include <tcpd.h>
36279 int allow_severity = 0;
36280 int deny_severity  = 0;
36281
36282 struct request_info *req;
36283
36284 int
36285 main ()
36286 {
36287
36288 hosts_access(req)
36289
36290   ;
36291   return 0;
36292 }
36293 _ACEOF
36294 rm -f conftest.$ac_objext conftest$ac_exeext
36295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36296   (eval $ac_link) 2>conftest.er1
36297   ac_status=$?
36298   grep -v '^ *+' conftest.er1 >conftest.err
36299   rm -f conftest.er1
36300   cat conftest.err >&5
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); } &&
36303          { ac_try='test -z "$ac_c_werror_flag"
36304                          || test ! -s conftest.err'
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); }; } &&
36310          { ac_try='test -s conftest$ac_exeext'
36311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312   (eval $ac_try) 2>&5
36313   ac_status=$?
36314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315   (exit $ac_status); }; }; then
36316   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36317 echo "${ECHO_T}-lwrap -lnsl" >&6
36318                 have_wrappers=yes
36319                 LIBS="$save_LIBS -lnsl"
36320 else
36321   echo "$as_me: failed program was:" >&5
36322 sed 's/^/| /' conftest.$ac_ext >&5
36323
36324
36325                 echo "$as_me:$LINENO: result: no" >&5
36326 echo "${ECHO_T}no" >&6
36327                 have_wrappers=no
36328                 LIBS=$save_LIBS
36329 fi
36330 rm -f conftest.err conftest.$ac_objext \
36331       conftest$ac_exeext conftest.$ac_ext
36332 fi
36333 rm -f conftest.err conftest.$ac_objext \
36334       conftest$ac_exeext conftest.$ac_ext
36335 else
36336   have_wrappers=no
36337 fi
36338
36339 done
36340
36341
36342         if test $have_wrappers = yes ; then
36343
36344 cat >>confdefs.h <<\_ACEOF
36345 #define HAVE_TCPD 1
36346 _ACEOF
36347
36348                 WRAP_LIBS="-lwrap"
36349         elif test $ol_enable_wrappers = yes ; then
36350                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36351 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36352    { (exit 1); exit 1; }; }
36353         else
36354                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36355 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36356                 WRAP_LIBS=""
36357         fi
36358 fi
36359
36360 if test $ol_enable_syslog != no ; then
36361         echo "$as_me:$LINENO: checking for openlog" >&5
36362 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36363 if test "${ac_cv_func_openlog+set}" = set; then
36364   echo $ECHO_N "(cached) $ECHO_C" >&6
36365 else
36366   cat >conftest.$ac_ext <<_ACEOF
36367 /* confdefs.h.  */
36368 _ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h.  */
36372 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36374 #define openlog innocuous_openlog
36375
36376 /* System header to define __stub macros and hopefully few prototypes,
36377     which can conflict with char openlog (); below.
36378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36379     <limits.h> exists even on freestanding compilers.  */
36380
36381 #ifdef __STDC__
36382 # include <limits.h>
36383 #else
36384 # include <assert.h>
36385 #endif
36386
36387 #undef openlog
36388
36389 /* Override any gcc2 internal prototype to avoid an error.  */
36390 #ifdef __cplusplus
36391 extern "C"
36392 {
36393 #endif
36394 /* We use char because int might match the return type of a gcc2
36395    builtin and then its argument prototype would still apply.  */
36396 char openlog ();
36397 /* The GNU C library defines this for functions which it implements
36398     to always fail with ENOSYS.  Some functions are actually named
36399     something starting with __ and the normal name is an alias.  */
36400 #if defined (__stub_openlog) || defined (__stub___openlog)
36401 choke me
36402 #else
36403 char (*f) () = openlog;
36404 #endif
36405 #ifdef __cplusplus
36406 }
36407 #endif
36408
36409 int
36410 main ()
36411 {
36412 return f != openlog;
36413   ;
36414   return 0;
36415 }
36416 _ACEOF
36417 rm -f conftest.$ac_objext conftest$ac_exeext
36418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36419   (eval $ac_link) 2>conftest.er1
36420   ac_status=$?
36421   grep -v '^ *+' conftest.er1 >conftest.err
36422   rm -f conftest.er1
36423   cat conftest.err >&5
36424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425   (exit $ac_status); } &&
36426          { ac_try='test -z "$ac_c_werror_flag"
36427                          || test ! -s conftest.err'
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); }; } &&
36433          { ac_try='test -s conftest$ac_exeext'
36434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435   (eval $ac_try) 2>&5
36436   ac_status=$?
36437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438   (exit $ac_status); }; }; then
36439   ac_cv_func_openlog=yes
36440 else
36441   echo "$as_me: failed program was:" >&5
36442 sed 's/^/| /' conftest.$ac_ext >&5
36443
36444 ac_cv_func_openlog=no
36445 fi
36446 rm -f conftest.err conftest.$ac_objext \
36447       conftest$ac_exeext conftest.$ac_ext
36448 fi
36449 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36450 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36451
36452         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36453                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36454 echo "$as_me: error: could not find syslog" >&2;}
36455    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36456         fi
36457         ol_enable_syslog=$ac_cv_func_openlog
36458 fi
36459
36460 ol_link_sql=no
36461 if test $ol_enable_sql != no ; then
36462
36463
36464 for ac_header in sql.h sqlext.h
36465 do
36466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36468   echo "$as_me:$LINENO: checking for $ac_header" >&5
36469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36471   echo $ECHO_N "(cached) $ECHO_C" >&6
36472 fi
36473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36475 else
36476   # Is the header compilable?
36477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36479 cat >conftest.$ac_ext <<_ACEOF
36480 /* confdefs.h.  */
36481 _ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h.  */
36485 $ac_includes_default
36486 #include <$ac_header>
36487 _ACEOF
36488 rm -f conftest.$ac_objext
36489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36490   (eval $ac_compile) 2>conftest.er1
36491   ac_status=$?
36492   grep -v '^ *+' conftest.er1 >conftest.err
36493   rm -f conftest.er1
36494   cat conftest.err >&5
36495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496   (exit $ac_status); } &&
36497          { ac_try='test -z "$ac_c_werror_flag"
36498                          || test ! -s conftest.err'
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); }; } &&
36504          { ac_try='test -s conftest.$ac_objext'
36505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36506   (eval $ac_try) 2>&5
36507   ac_status=$?
36508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509   (exit $ac_status); }; }; then
36510   ac_header_compiler=yes
36511 else
36512   echo "$as_me: failed program was:" >&5
36513 sed 's/^/| /' conftest.$ac_ext >&5
36514
36515 ac_header_compiler=no
36516 fi
36517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36519 echo "${ECHO_T}$ac_header_compiler" >&6
36520
36521 # Is the header present?
36522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36524 cat >conftest.$ac_ext <<_ACEOF
36525 /* confdefs.h.  */
36526 _ACEOF
36527 cat confdefs.h >>conftest.$ac_ext
36528 cat >>conftest.$ac_ext <<_ACEOF
36529 /* end confdefs.h.  */
36530 #include <$ac_header>
36531 _ACEOF
36532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36534   ac_status=$?
36535   grep -v '^ *+' conftest.er1 >conftest.err
36536   rm -f conftest.er1
36537   cat conftest.err >&5
36538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539   (exit $ac_status); } >/dev/null; then
36540   if test -s conftest.err; then
36541     ac_cpp_err=$ac_c_preproc_warn_flag
36542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36543   else
36544     ac_cpp_err=
36545   fi
36546 else
36547   ac_cpp_err=yes
36548 fi
36549 if test -z "$ac_cpp_err"; then
36550   ac_header_preproc=yes
36551 else
36552   echo "$as_me: failed program was:" >&5
36553 sed 's/^/| /' conftest.$ac_ext >&5
36554
36555   ac_header_preproc=no
36556 fi
36557 rm -f conftest.err conftest.$ac_ext
36558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36559 echo "${ECHO_T}$ac_header_preproc" >&6
36560
36561 # So?  What about this header?
36562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36563   yes:no: )
36564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36568     ac_header_preproc=yes
36569     ;;
36570   no:yes:* )
36571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36583     (
36584       cat <<\_ASBOX
36585 ## --------------------------------------------- ##
36586 ## Report this to <http://www.openldap.org/its/> ##
36587 ## --------------------------------------------- ##
36588 _ASBOX
36589     ) |
36590       sed "s/^/$as_me: WARNING:     /" >&2
36591     ;;
36592 esac
36593 echo "$as_me:$LINENO: checking for $ac_header" >&5
36594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36596   echo $ECHO_N "(cached) $ECHO_C" >&6
36597 else
36598   eval "$as_ac_Header=\$ac_header_preproc"
36599 fi
36600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36602
36603 fi
36604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36605   cat >>confdefs.h <<_ACEOF
36606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36607 _ACEOF
36608
36609 else
36610
36611                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36612 echo "$as_me: error: could not locate SQL headers" >&2;}
36613    { (exit 1); exit 1; }; }
36614
36615 fi
36616
36617 done
36618
36619
36620         sql_LIBS="$LIBS"
36621         LIBS="$LTHREAD_LIBS"
36622
36623         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36624 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36625 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36626   echo $ECHO_N "(cached) $ECHO_C" >&6
36627 else
36628   ac_check_lib_save_LIBS=$LIBS
36629 LIBS="-liodbc  $LIBS"
36630 cat >conftest.$ac_ext <<_ACEOF
36631 /* confdefs.h.  */
36632 _ACEOF
36633 cat confdefs.h >>conftest.$ac_ext
36634 cat >>conftest.$ac_ext <<_ACEOF
36635 /* end confdefs.h.  */
36636
36637 /* Override any gcc2 internal prototype to avoid an error.  */
36638 #ifdef __cplusplus
36639 extern "C"
36640 #endif
36641 /* We use char because int might match the return type of a gcc2
36642    builtin and then its argument prototype would still apply.  */
36643 char SQLDriverConnect ();
36644 int
36645 main ()
36646 {
36647 SQLDriverConnect ();
36648   ;
36649   return 0;
36650 }
36651 _ACEOF
36652 rm -f conftest.$ac_objext conftest$ac_exeext
36653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36654   (eval $ac_link) 2>conftest.er1
36655   ac_status=$?
36656   grep -v '^ *+' conftest.er1 >conftest.err
36657   rm -f conftest.er1
36658   cat conftest.err >&5
36659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36660   (exit $ac_status); } &&
36661          { ac_try='test -z "$ac_c_werror_flag"
36662                          || test ! -s conftest.err'
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); }; } &&
36668          { ac_try='test -s conftest$ac_exeext'
36669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36670   (eval $ac_try) 2>&5
36671   ac_status=$?
36672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673   (exit $ac_status); }; }; then
36674   ac_cv_lib_iodbc_SQLDriverConnect=yes
36675 else
36676   echo "$as_me: failed program was:" >&5
36677 sed 's/^/| /' conftest.$ac_ext >&5
36678
36679 ac_cv_lib_iodbc_SQLDriverConnect=no
36680 fi
36681 rm -f conftest.err conftest.$ac_objext \
36682       conftest$ac_exeext conftest.$ac_ext
36683 LIBS=$ac_check_lib_save_LIBS
36684 fi
36685 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36686 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36687 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36688   have_iodbc=yes
36689 else
36690   have_iodbc=no
36691 fi
36692
36693         if test $have_iodbc = yes ; then
36694                 ol_link_sql="-liodbc"
36695         else
36696                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36697 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36698 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36699   echo $ECHO_N "(cached) $ECHO_C" >&6
36700 else
36701   ac_check_lib_save_LIBS=$LIBS
36702 LIBS="-lodbc  $LIBS"
36703 cat >conftest.$ac_ext <<_ACEOF
36704 /* confdefs.h.  */
36705 _ACEOF
36706 cat confdefs.h >>conftest.$ac_ext
36707 cat >>conftest.$ac_ext <<_ACEOF
36708 /* end confdefs.h.  */
36709
36710 /* Override any gcc2 internal prototype to avoid an error.  */
36711 #ifdef __cplusplus
36712 extern "C"
36713 #endif
36714 /* We use char because int might match the return type of a gcc2
36715    builtin and then its argument prototype would still apply.  */
36716 char SQLDriverConnect ();
36717 int
36718 main ()
36719 {
36720 SQLDriverConnect ();
36721   ;
36722   return 0;
36723 }
36724 _ACEOF
36725 rm -f conftest.$ac_objext conftest$ac_exeext
36726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36727   (eval $ac_link) 2>conftest.er1
36728   ac_status=$?
36729   grep -v '^ *+' conftest.er1 >conftest.err
36730   rm -f conftest.er1
36731   cat conftest.err >&5
36732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733   (exit $ac_status); } &&
36734          { ac_try='test -z "$ac_c_werror_flag"
36735                          || test ! -s conftest.err'
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); }; } &&
36741          { ac_try='test -s conftest$ac_exeext'
36742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36743   (eval $ac_try) 2>&5
36744   ac_status=$?
36745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746   (exit $ac_status); }; }; then
36747   ac_cv_lib_odbc_SQLDriverConnect=yes
36748 else
36749   echo "$as_me: failed program was:" >&5
36750 sed 's/^/| /' conftest.$ac_ext >&5
36751
36752 ac_cv_lib_odbc_SQLDriverConnect=no
36753 fi
36754 rm -f conftest.err conftest.$ac_objext \
36755       conftest$ac_exeext conftest.$ac_ext
36756 LIBS=$ac_check_lib_save_LIBS
36757 fi
36758 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36759 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36760 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36761   have_odbc=yes
36762 else
36763   have_odbc=no
36764 fi
36765
36766                 if test $have_odbc = yes ; then
36767                         ol_link_sql="-lodbc"
36768                 fi
36769         fi
36770
36771         LIBS="$sql_LIBS"
36772
36773         if test $ol_link_sql != no ; then
36774                 SLAPD_SQL_LIBS="$ol_link_sql"
36775
36776         elif test $ol_enable_sql != auto ; then
36777                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36778 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36779    { (exit 1); exit 1; }; }
36780         fi
36781 fi
36782
36783 ol_icu=no
36784
36785 for ac_header in unicode/utypes.h
36786 do
36787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36789   echo "$as_me:$LINENO: checking for $ac_header" >&5
36790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36792   echo $ECHO_N "(cached) $ECHO_C" >&6
36793 fi
36794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36796 else
36797   # Is the header compilable?
36798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36800 cat >conftest.$ac_ext <<_ACEOF
36801 /* confdefs.h.  */
36802 _ACEOF
36803 cat confdefs.h >>conftest.$ac_ext
36804 cat >>conftest.$ac_ext <<_ACEOF
36805 /* end confdefs.h.  */
36806 $ac_includes_default
36807 #include <$ac_header>
36808 _ACEOF
36809 rm -f conftest.$ac_objext
36810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36811   (eval $ac_compile) 2>conftest.er1
36812   ac_status=$?
36813   grep -v '^ *+' conftest.er1 >conftest.err
36814   rm -f conftest.er1
36815   cat conftest.err >&5
36816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36817   (exit $ac_status); } &&
36818          { ac_try='test -z "$ac_c_werror_flag"
36819                          || test ! -s conftest.err'
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); }; } &&
36825          { ac_try='test -s conftest.$ac_objext'
36826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36827   (eval $ac_try) 2>&5
36828   ac_status=$?
36829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830   (exit $ac_status); }; }; then
36831   ac_header_compiler=yes
36832 else
36833   echo "$as_me: failed program was:" >&5
36834 sed 's/^/| /' conftest.$ac_ext >&5
36835
36836 ac_header_compiler=no
36837 fi
36838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36840 echo "${ECHO_T}$ac_header_compiler" >&6
36841
36842 # Is the header present?
36843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36845 cat >conftest.$ac_ext <<_ACEOF
36846 /* confdefs.h.  */
36847 _ACEOF
36848 cat confdefs.h >>conftest.$ac_ext
36849 cat >>conftest.$ac_ext <<_ACEOF
36850 /* end confdefs.h.  */
36851 #include <$ac_header>
36852 _ACEOF
36853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36855   ac_status=$?
36856   grep -v '^ *+' conftest.er1 >conftest.err
36857   rm -f conftest.er1
36858   cat conftest.err >&5
36859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860   (exit $ac_status); } >/dev/null; then
36861   if test -s conftest.err; then
36862     ac_cpp_err=$ac_c_preproc_warn_flag
36863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36864   else
36865     ac_cpp_err=
36866   fi
36867 else
36868   ac_cpp_err=yes
36869 fi
36870 if test -z "$ac_cpp_err"; then
36871   ac_header_preproc=yes
36872 else
36873   echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36875
36876   ac_header_preproc=no
36877 fi
36878 rm -f conftest.err conftest.$ac_ext
36879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36880 echo "${ECHO_T}$ac_header_preproc" >&6
36881
36882 # So?  What about this header?
36883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36884   yes:no: )
36885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36889     ac_header_preproc=yes
36890     ;;
36891   no:yes:* )
36892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36904     (
36905       cat <<\_ASBOX
36906 ## --------------------------------------------- ##
36907 ## Report this to <http://www.openldap.org/its/> ##
36908 ## --------------------------------------------- ##
36909 _ASBOX
36910     ) |
36911       sed "s/^/$as_me: WARNING:     /" >&2
36912     ;;
36913 esac
36914 echo "$as_me:$LINENO: checking for $ac_header" >&5
36915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36917   echo $ECHO_N "(cached) $ECHO_C" >&6
36918 else
36919   eval "$as_ac_Header=\$ac_header_preproc"
36920 fi
36921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36923
36924 fi
36925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36926   cat >>confdefs.h <<_ACEOF
36927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36928 _ACEOF
36929
36930 fi
36931
36932 done
36933
36934 if test $ac_cv_header_unicode_utypes_h = yes ; then
36935                 OL_ICULIBS="-licuuc -licudata"
36936
36937         echo "$as_me:$LINENO: checking for ICU libraries" >&5
36938 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36939 if test "${ol_cv_lib_icu+set}" = set; then
36940   echo $ECHO_N "(cached) $ECHO_C" >&6
36941 else
36942
36943                 ol_LIBS="$LIBS"
36944                 LIBS="$OL_ICULIBS $LIBS"
36945                 cat >conftest.$ac_ext <<_ACEOF
36946 /* confdefs.h.  */
36947 _ACEOF
36948 cat confdefs.h >>conftest.$ac_ext
36949 cat >>conftest.$ac_ext <<_ACEOF
36950 /* end confdefs.h.  */
36951
36952 #include <unicode/utypes.h>
36953
36954 int
36955 main ()
36956 {
36957
36958 (void) u_errorName(0);
36959
36960   ;
36961   return 0;
36962 }
36963 _ACEOF
36964 rm -f conftest.$ac_objext conftest$ac_exeext
36965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36966   (eval $ac_link) 2>conftest.er1
36967   ac_status=$?
36968   grep -v '^ *+' conftest.er1 >conftest.err
36969   rm -f conftest.er1
36970   cat conftest.err >&5
36971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972   (exit $ac_status); } &&
36973          { ac_try='test -z "$ac_c_werror_flag"
36974                          || test ! -s conftest.err'
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); }; } &&
36980          { ac_try='test -s conftest$ac_exeext'
36981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36982   (eval $ac_try) 2>&5
36983   ac_status=$?
36984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985   (exit $ac_status); }; }; then
36986   ol_cv_lib_icu=yes
36987 else
36988   echo "$as_me: failed program was:" >&5
36989 sed 's/^/| /' conftest.$ac_ext >&5
36990
36991 ol_cv_lib_icu=no
36992 fi
36993 rm -f conftest.err conftest.$ac_objext \
36994       conftest$ac_exeext conftest.$ac_ext
36995                 LIBS="$ol_LIBS"
36996
36997 fi
36998 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36999 echo "${ECHO_T}$ol_cv_lib_icu" >&6
37000
37001         if test $ol_cv_lib_icu != no ; then
37002                 ol_icu="$OL_ICULIBS"
37003
37004 cat >>confdefs.h <<\_ACEOF
37005 #define HAVE_ICU 1
37006 _ACEOF
37007
37008         fi
37009 fi
37010
37011 if test "$ol_icu" = no ; then
37012         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
37013 echo "$as_me: WARNING: ICU not available" >&2;}
37014 else
37015         ICU_LIBS="$ol_icu"
37016 fi
37017 WITH_SASL=no
37018 ol_link_sasl=no
37019 ol_link_spasswd=no
37020 if test $ol_with_cyrus_sasl != no ; then
37021
37022
37023 for ac_header in sasl/sasl.h sasl.h
37024 do
37025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37027   echo "$as_me:$LINENO: checking for $ac_header" >&5
37028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37030   echo $ECHO_N "(cached) $ECHO_C" >&6
37031 fi
37032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37034 else
37035   # Is the header compilable?
37036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37038 cat >conftest.$ac_ext <<_ACEOF
37039 /* confdefs.h.  */
37040 _ACEOF
37041 cat confdefs.h >>conftest.$ac_ext
37042 cat >>conftest.$ac_ext <<_ACEOF
37043 /* end confdefs.h.  */
37044 $ac_includes_default
37045 #include <$ac_header>
37046 _ACEOF
37047 rm -f conftest.$ac_objext
37048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37049   (eval $ac_compile) 2>conftest.er1
37050   ac_status=$?
37051   grep -v '^ *+' conftest.er1 >conftest.err
37052   rm -f conftest.er1
37053   cat conftest.err >&5
37054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055   (exit $ac_status); } &&
37056          { ac_try='test -z "$ac_c_werror_flag"
37057                          || test ! -s conftest.err'
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); }; } &&
37063          { ac_try='test -s conftest.$ac_objext'
37064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37065   (eval $ac_try) 2>&5
37066   ac_status=$?
37067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068   (exit $ac_status); }; }; then
37069   ac_header_compiler=yes
37070 else
37071   echo "$as_me: failed program was:" >&5
37072 sed 's/^/| /' conftest.$ac_ext >&5
37073
37074 ac_header_compiler=no
37075 fi
37076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37078 echo "${ECHO_T}$ac_header_compiler" >&6
37079
37080 # Is the header present?
37081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37083 cat >conftest.$ac_ext <<_ACEOF
37084 /* confdefs.h.  */
37085 _ACEOF
37086 cat confdefs.h >>conftest.$ac_ext
37087 cat >>conftest.$ac_ext <<_ACEOF
37088 /* end confdefs.h.  */
37089 #include <$ac_header>
37090 _ACEOF
37091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37093   ac_status=$?
37094   grep -v '^ *+' conftest.er1 >conftest.err
37095   rm -f conftest.er1
37096   cat conftest.err >&5
37097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098   (exit $ac_status); } >/dev/null; then
37099   if test -s conftest.err; then
37100     ac_cpp_err=$ac_c_preproc_warn_flag
37101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37102   else
37103     ac_cpp_err=
37104   fi
37105 else
37106   ac_cpp_err=yes
37107 fi
37108 if test -z "$ac_cpp_err"; then
37109   ac_header_preproc=yes
37110 else
37111   echo "$as_me: failed program was:" >&5
37112 sed 's/^/| /' conftest.$ac_ext >&5
37113
37114   ac_header_preproc=no
37115 fi
37116 rm -f conftest.err conftest.$ac_ext
37117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37118 echo "${ECHO_T}$ac_header_preproc" >&6
37119
37120 # So?  What about this header?
37121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37122   yes:no: )
37123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37127     ac_header_preproc=yes
37128     ;;
37129   no:yes:* )
37130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37142     (
37143       cat <<\_ASBOX
37144 ## --------------------------------------------- ##
37145 ## Report this to <http://www.openldap.org/its/> ##
37146 ## --------------------------------------------- ##
37147 _ASBOX
37148     ) |
37149       sed "s/^/$as_me: WARNING:     /" >&2
37150     ;;
37151 esac
37152 echo "$as_me:$LINENO: checking for $ac_header" >&5
37153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37155   echo $ECHO_N "(cached) $ECHO_C" >&6
37156 else
37157   eval "$as_ac_Header=\$ac_header_preproc"
37158 fi
37159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37161
37162 fi
37163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37164   cat >>confdefs.h <<_ACEOF
37165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37166 _ACEOF
37167
37168 fi
37169
37170 done
37171
37172
37173         if test $ac_cv_header_sasl_sasl_h = yes ||
37174            test $ac_cv_header_sasl_h = yes; then
37175                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37176 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37177 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37178   echo $ECHO_N "(cached) $ECHO_C" >&6
37179 else
37180   ac_check_lib_save_LIBS=$LIBS
37181 LIBS="-lsasl2  $LIBS"
37182 cat >conftest.$ac_ext <<_ACEOF
37183 /* confdefs.h.  */
37184 _ACEOF
37185 cat confdefs.h >>conftest.$ac_ext
37186 cat >>conftest.$ac_ext <<_ACEOF
37187 /* end confdefs.h.  */
37188
37189 /* Override any gcc2 internal prototype to avoid an error.  */
37190 #ifdef __cplusplus
37191 extern "C"
37192 #endif
37193 /* We use char because int might match the return type of a gcc2
37194    builtin and then its argument prototype would still apply.  */
37195 char sasl_client_init ();
37196 int
37197 main ()
37198 {
37199 sasl_client_init ();
37200   ;
37201   return 0;
37202 }
37203 _ACEOF
37204 rm -f conftest.$ac_objext conftest$ac_exeext
37205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37206   (eval $ac_link) 2>conftest.er1
37207   ac_status=$?
37208   grep -v '^ *+' conftest.er1 >conftest.err
37209   rm -f conftest.er1
37210   cat conftest.err >&5
37211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212   (exit $ac_status); } &&
37213          { ac_try='test -z "$ac_c_werror_flag"
37214                          || test ! -s conftest.err'
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); }; } &&
37220          { ac_try='test -s conftest$ac_exeext'
37221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37222   (eval $ac_try) 2>&5
37223   ac_status=$?
37224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225   (exit $ac_status); }; }; then
37226   ac_cv_lib_sasl2_sasl_client_init=yes
37227 else
37228   echo "$as_me: failed program was:" >&5
37229 sed 's/^/| /' conftest.$ac_ext >&5
37230
37231 ac_cv_lib_sasl2_sasl_client_init=no
37232 fi
37233 rm -f conftest.err conftest.$ac_objext \
37234       conftest$ac_exeext conftest.$ac_ext
37235 LIBS=$ac_check_lib_save_LIBS
37236 fi
37237 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37238 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37239 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37240   ol_link_sasl="-lsasl2"
37241 else
37242   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37243 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37244 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37245   echo $ECHO_N "(cached) $ECHO_C" >&6
37246 else
37247   ac_check_lib_save_LIBS=$LIBS
37248 LIBS="-lsasl  $LIBS"
37249 cat >conftest.$ac_ext <<_ACEOF
37250 /* confdefs.h.  */
37251 _ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h.  */
37255
37256 /* Override any gcc2 internal prototype to avoid an error.  */
37257 #ifdef __cplusplus
37258 extern "C"
37259 #endif
37260 /* We use char because int might match the return type of a gcc2
37261    builtin and then its argument prototype would still apply.  */
37262 char sasl_client_init ();
37263 int
37264 main ()
37265 {
37266 sasl_client_init ();
37267   ;
37268   return 0;
37269 }
37270 _ACEOF
37271 rm -f conftest.$ac_objext conftest$ac_exeext
37272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37273   (eval $ac_link) 2>conftest.er1
37274   ac_status=$?
37275   grep -v '^ *+' conftest.er1 >conftest.err
37276   rm -f conftest.er1
37277   cat conftest.err >&5
37278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279   (exit $ac_status); } &&
37280          { ac_try='test -z "$ac_c_werror_flag"
37281                          || test ! -s conftest.err'
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); }; } &&
37287          { ac_try='test -s conftest$ac_exeext'
37288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37289   (eval $ac_try) 2>&5
37290   ac_status=$?
37291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292   (exit $ac_status); }; }; then
37293   ac_cv_lib_sasl_sasl_client_init=yes
37294 else
37295   echo "$as_me: failed program was:" >&5
37296 sed 's/^/| /' conftest.$ac_ext >&5
37297
37298 ac_cv_lib_sasl_sasl_client_init=no
37299 fi
37300 rm -f conftest.err conftest.$ac_objext \
37301       conftest$ac_exeext conftest.$ac_ext
37302 LIBS=$ac_check_lib_save_LIBS
37303 fi
37304 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37305 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37306 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37307   ol_link_sasl="-lsasl"
37308 fi
37309
37310 fi
37311
37312         fi
37313
37314         if test $ol_link_sasl = no ; then
37315                 if test $ol_with_cyrus_sasl != auto ; then
37316                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37317 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37318    { (exit 1); exit 1; }; }
37319                 else
37320                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37321 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37322                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37323 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37324                         if test $ol_link_tls = no ; then
37325                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37326 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37327                         fi
37328                 fi
37329         else
37330                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37331 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37332 if test "${ol_cv_sasl_compat+set}" = set; then
37333   echo $ECHO_N "(cached) $ECHO_C" >&6
37334 else
37335
37336         cat >conftest.$ac_ext <<_ACEOF
37337 /* confdefs.h.  */
37338 _ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h.  */
37342
37343 #ifdef HAVE_SASL_SASL_H
37344 #include <sasl/sasl.h>
37345 #else
37346 #include <sasl.h>
37347 #endif
37348
37349 /* Require 2.1.15+ */
37350 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
37351         char *__sasl_compat = "2.2+ or better okay (we guess)";
37352 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
37353         && SASL_VERSION_STEP >=15
37354         char *__sasl_compat = "2.1.15+ or better okay";
37355 #endif
37356
37357 _ACEOF
37358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37359   $EGREP "__sasl_compat" >/dev/null 2>&1; then
37360   ol_cv_sasl_compat=yes
37361 else
37362   ol_cv_sasl_compat=no
37363 fi
37364 rm -f conftest*
37365
37366 fi
37367 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37368 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37369
37370                 if test $ol_cv_sasl_compat = no ; then
37371                         ol_link_sasl=no
37372                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37373 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37374    { (exit 1); exit 1; }; }
37375                 fi
37376
37377
37378 cat >>confdefs.h <<\_ACEOF
37379 #define HAVE_CYRUS_SASL 1
37380 _ACEOF
37381
37382                 SASL_LIBS="$ol_link_sasl"
37383                 if test $ol_enable_spasswd != no ; then
37384                         ol_link_spasswd=yes
37385                 fi
37386
37387                 ac_save_LIBS="$LIBS"
37388                 LIBS="$LIBS $ol_link_sasl"
37389                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37390 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37391 if test "${ac_cv_func_sasl_version+set}" = set; then
37392   echo $ECHO_N "(cached) $ECHO_C" >&6
37393 else
37394   cat >conftest.$ac_ext <<_ACEOF
37395 /* confdefs.h.  */
37396 _ACEOF
37397 cat confdefs.h >>conftest.$ac_ext
37398 cat >>conftest.$ac_ext <<_ACEOF
37399 /* end confdefs.h.  */
37400 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37402 #define sasl_version innocuous_sasl_version
37403
37404 /* System header to define __stub macros and hopefully few prototypes,
37405     which can conflict with char sasl_version (); below.
37406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37407     <limits.h> exists even on freestanding compilers.  */
37408
37409 #ifdef __STDC__
37410 # include <limits.h>
37411 #else
37412 # include <assert.h>
37413 #endif
37414
37415 #undef sasl_version
37416
37417 /* Override any gcc2 internal prototype to avoid an error.  */
37418 #ifdef __cplusplus
37419 extern "C"
37420 {
37421 #endif
37422 /* We use char because int might match the return type of a gcc2
37423    builtin and then its argument prototype would still apply.  */
37424 char sasl_version ();
37425 /* The GNU C library defines this for functions which it implements
37426     to always fail with ENOSYS.  Some functions are actually named
37427     something starting with __ and the normal name is an alias.  */
37428 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37429 choke me
37430 #else
37431 char (*f) () = sasl_version;
37432 #endif
37433 #ifdef __cplusplus
37434 }
37435 #endif
37436
37437 int
37438 main ()
37439 {
37440 return f != sasl_version;
37441   ;
37442   return 0;
37443 }
37444 _ACEOF
37445 rm -f conftest.$ac_objext conftest$ac_exeext
37446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37447   (eval $ac_link) 2>conftest.er1
37448   ac_status=$?
37449   grep -v '^ *+' conftest.er1 >conftest.err
37450   rm -f conftest.er1
37451   cat conftest.err >&5
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); } &&
37454          { ac_try='test -z "$ac_c_werror_flag"
37455                          || test ! -s conftest.err'
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); }; } &&
37461          { ac_try='test -s conftest$ac_exeext'
37462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463   (eval $ac_try) 2>&5
37464   ac_status=$?
37465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466   (exit $ac_status); }; }; then
37467   ac_cv_func_sasl_version=yes
37468 else
37469   echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37471
37472 ac_cv_func_sasl_version=no
37473 fi
37474 rm -f conftest.err conftest.$ac_objext \
37475       conftest$ac_exeext conftest.$ac_ext
37476 fi
37477 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37478 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37479 if test $ac_cv_func_sasl_version = yes; then
37480
37481 cat >>confdefs.h <<\_ACEOF
37482 #define HAVE_SASL_VERSION 1
37483 _ACEOF
37484
37485 fi
37486
37487                 LIBS="$ac_save_LIBS"
37488
37489                 WITH_SASL=yes
37490         fi
37491
37492 else
37493         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37494 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37495         if test $ol_link_tls = no ; then
37496                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37497 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37498         fi
37499 fi
37500
37501 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37502         dev=no
37503         if test -r /dev/urandom ; then
37504                 dev="/dev/urandom";
37505         elif test -r /idev/urandom ; then
37506                 dev="/idev/urandom";
37507         elif test -r /dev/srandom ; then
37508                 dev="/dev/srandom";
37509         elif test -r /dev/random ; then
37510                 dev="/dev/random";
37511         elif test -r /idev/random ; then
37512                 dev="/idev/random";
37513         fi
37514
37515         if test $dev != no ; then
37516
37517 cat >>confdefs.h <<_ACEOF
37518 #define URANDOM_DEVICE "$dev"
37519 _ACEOF
37520
37521         fi
37522 fi
37523
37524 ol_link_fetch=no
37525 if test $ol_with_fetch != no ; then
37526         ol_LIBS=$LIBS
37527 LIBS="-lfetch -lcom_err $LIBS"
37528 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37529 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37530 if test "${ol_cv_lib_fetch+set}" = set; then
37531   echo $ECHO_N "(cached) $ECHO_C" >&6
37532 else
37533
37534         cat >conftest.$ac_ext <<_ACEOF
37535 /* confdefs.h.  */
37536 _ACEOF
37537 cat confdefs.h >>conftest.$ac_ext
37538 cat >>conftest.$ac_ext <<_ACEOF
37539 /* end confdefs.h.  */
37540
37541 #include <sys/param.h>
37542 #include <stdio.h>
37543 #include <fetch.h>
37544 int
37545 main ()
37546 {
37547 struct url *u = fetchParseURL("file:///");
37548   ;
37549   return 0;
37550 }
37551 _ACEOF
37552 rm -f conftest.$ac_objext conftest$ac_exeext
37553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37554   (eval $ac_link) 2>conftest.er1
37555   ac_status=$?
37556   grep -v '^ *+' conftest.er1 >conftest.err
37557   rm -f conftest.er1
37558   cat conftest.err >&5
37559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560   (exit $ac_status); } &&
37561          { ac_try='test -z "$ac_c_werror_flag"
37562                          || test ! -s conftest.err'
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); }; } &&
37568          { ac_try='test -s conftest$ac_exeext'
37569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37570   (eval $ac_try) 2>&5
37571   ac_status=$?
37572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573   (exit $ac_status); }; }; then
37574   ol_cv_lib_fetch=yes
37575 else
37576   echo "$as_me: failed program was:" >&5
37577 sed 's/^/| /' conftest.$ac_ext >&5
37578
37579 ol_cv_lib_fetch=no
37580 fi
37581 rm -f conftest.err conftest.$ac_objext \
37582       conftest$ac_exeext conftest.$ac_ext
37583 fi
37584 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37585 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37586 LIBS=$ol_LIBS
37587 if test $ol_cv_lib_fetch != no ; then
37588         ol_link_fetch="-lfetch -lcom_err"
37589
37590 cat >>confdefs.h <<\_ACEOF
37591 #define HAVE_FETCH 1
37592 _ACEOF
37593
37594 fi
37595
37596
37597         if test $ol_cv_lib_fetch != no ; then
37598                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37599                 ol_link_fetch=freebsd
37600
37601         elif test $ol_with_fetch != auto ; then
37602                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37603 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37604    { (exit 1); exit 1; }; }
37605         fi
37606 fi
37607
37608 if test $ol_enable_crypt != no ; then
37609         save_LIBS="$LIBS"
37610         LIBS="$TLS_LIBS $LIBS"
37611
37612         echo "$as_me:$LINENO: checking for crypt" >&5
37613 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37614 if test "${ac_cv_func_crypt+set}" = set; then
37615   echo $ECHO_N "(cached) $ECHO_C" >&6
37616 else
37617   cat >conftest.$ac_ext <<_ACEOF
37618 /* confdefs.h.  */
37619 _ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h.  */
37623 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37625 #define crypt innocuous_crypt
37626
37627 /* System header to define __stub macros and hopefully few prototypes,
37628     which can conflict with char crypt (); below.
37629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37630     <limits.h> exists even on freestanding compilers.  */
37631
37632 #ifdef __STDC__
37633 # include <limits.h>
37634 #else
37635 # include <assert.h>
37636 #endif
37637
37638 #undef crypt
37639
37640 /* Override any gcc2 internal prototype to avoid an error.  */
37641 #ifdef __cplusplus
37642 extern "C"
37643 {
37644 #endif
37645 /* We use char because int might match the return type of a gcc2
37646    builtin and then its argument prototype would still apply.  */
37647 char crypt ();
37648 /* The GNU C library defines this for functions which it implements
37649     to always fail with ENOSYS.  Some functions are actually named
37650     something starting with __ and the normal name is an alias.  */
37651 #if defined (__stub_crypt) || defined (__stub___crypt)
37652 choke me
37653 #else
37654 char (*f) () = crypt;
37655 #endif
37656 #ifdef __cplusplus
37657 }
37658 #endif
37659
37660 int
37661 main ()
37662 {
37663 return f != crypt;
37664   ;
37665   return 0;
37666 }
37667 _ACEOF
37668 rm -f conftest.$ac_objext conftest$ac_exeext
37669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37670   (eval $ac_link) 2>conftest.er1
37671   ac_status=$?
37672   grep -v '^ *+' conftest.er1 >conftest.err
37673   rm -f conftest.er1
37674   cat conftest.err >&5
37675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676   (exit $ac_status); } &&
37677          { ac_try='test -z "$ac_c_werror_flag"
37678                          || test ! -s conftest.err'
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); }; } &&
37684          { ac_try='test -s conftest$ac_exeext'
37685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37686   (eval $ac_try) 2>&5
37687   ac_status=$?
37688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689   (exit $ac_status); }; }; then
37690   ac_cv_func_crypt=yes
37691 else
37692   echo "$as_me: failed program was:" >&5
37693 sed 's/^/| /' conftest.$ac_ext >&5
37694
37695 ac_cv_func_crypt=no
37696 fi
37697 rm -f conftest.err conftest.$ac_objext \
37698       conftest$ac_exeext conftest.$ac_ext
37699 fi
37700 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37701 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37702 if test $ac_cv_func_crypt = yes; then
37703   have_crypt=yes
37704 else
37705
37706                 LIBS="$save_LIBS"
37707                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37708 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37709 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37710   echo $ECHO_N "(cached) $ECHO_C" >&6
37711 else
37712   ac_check_lib_save_LIBS=$LIBS
37713 LIBS="-lcrypt  $LIBS"
37714 cat >conftest.$ac_ext <<_ACEOF
37715 /* confdefs.h.  */
37716 _ACEOF
37717 cat confdefs.h >>conftest.$ac_ext
37718 cat >>conftest.$ac_ext <<_ACEOF
37719 /* end confdefs.h.  */
37720
37721 /* Override any gcc2 internal prototype to avoid an error.  */
37722 #ifdef __cplusplus
37723 extern "C"
37724 #endif
37725 /* We use char because int might match the return type of a gcc2
37726    builtin and then its argument prototype would still apply.  */
37727 char crypt ();
37728 int
37729 main ()
37730 {
37731 crypt ();
37732   ;
37733   return 0;
37734 }
37735 _ACEOF
37736 rm -f conftest.$ac_objext conftest$ac_exeext
37737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37738   (eval $ac_link) 2>conftest.er1
37739   ac_status=$?
37740   grep -v '^ *+' conftest.er1 >conftest.err
37741   rm -f conftest.er1
37742   cat conftest.err >&5
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); } &&
37745          { ac_try='test -z "$ac_c_werror_flag"
37746                          || test ! -s conftest.err'
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); }; } &&
37752          { ac_try='test -s conftest$ac_exeext'
37753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37754   (eval $ac_try) 2>&5
37755   ac_status=$?
37756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757   (exit $ac_status); }; }; then
37758   ac_cv_lib_crypt_crypt=yes
37759 else
37760   echo "$as_me: failed program was:" >&5
37761 sed 's/^/| /' conftest.$ac_ext >&5
37762
37763 ac_cv_lib_crypt_crypt=no
37764 fi
37765 rm -f conftest.err conftest.$ac_objext \
37766       conftest$ac_exeext conftest.$ac_ext
37767 LIBS=$ac_check_lib_save_LIBS
37768 fi
37769 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37770 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37771 if test $ac_cv_lib_crypt_crypt = yes; then
37772   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37773                         have_crypt=yes
37774 else
37775   have_crypt=no
37776 fi
37777
37778 fi
37779
37780
37781         LIBS="$save_LIBS"
37782
37783         if test $have_crypt = yes ; then
37784
37785 cat >>confdefs.h <<\_ACEOF
37786 #define HAVE_CRYPT 1
37787 _ACEOF
37788
37789         else
37790                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37791 echo "$as_me: WARNING: could not find crypt" >&2;}
37792                 if test $ol_enable_crypt = yes ; then
37793                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37794 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37795    { (exit 1); exit 1; }; }
37796                 fi
37797
37798                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37799 echo "$as_me: WARNING: disabling crypt support" >&2;}
37800                 ol_enable_crypt=no
37801         fi
37802 fi
37803
37804 if test $ol_enable_proctitle != no ; then
37805         echo "$as_me:$LINENO: checking for setproctitle" >&5
37806 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37807 if test "${ac_cv_func_setproctitle+set}" = set; then
37808   echo $ECHO_N "(cached) $ECHO_C" >&6
37809 else
37810   cat >conftest.$ac_ext <<_ACEOF
37811 /* confdefs.h.  */
37812 _ACEOF
37813 cat confdefs.h >>conftest.$ac_ext
37814 cat >>conftest.$ac_ext <<_ACEOF
37815 /* end confdefs.h.  */
37816 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37818 #define setproctitle innocuous_setproctitle
37819
37820 /* System header to define __stub macros and hopefully few prototypes,
37821     which can conflict with char setproctitle (); below.
37822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37823     <limits.h> exists even on freestanding compilers.  */
37824
37825 #ifdef __STDC__
37826 # include <limits.h>
37827 #else
37828 # include <assert.h>
37829 #endif
37830
37831 #undef setproctitle
37832
37833 /* Override any gcc2 internal prototype to avoid an error.  */
37834 #ifdef __cplusplus
37835 extern "C"
37836 {
37837 #endif
37838 /* We use char because int might match the return type of a gcc2
37839    builtin and then its argument prototype would still apply.  */
37840 char setproctitle ();
37841 /* The GNU C library defines this for functions which it implements
37842     to always fail with ENOSYS.  Some functions are actually named
37843     something starting with __ and the normal name is an alias.  */
37844 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37845 choke me
37846 #else
37847 char (*f) () = setproctitle;
37848 #endif
37849 #ifdef __cplusplus
37850 }
37851 #endif
37852
37853 int
37854 main ()
37855 {
37856 return f != setproctitle;
37857   ;
37858   return 0;
37859 }
37860 _ACEOF
37861 rm -f conftest.$ac_objext conftest$ac_exeext
37862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37863   (eval $ac_link) 2>conftest.er1
37864   ac_status=$?
37865   grep -v '^ *+' conftest.er1 >conftest.err
37866   rm -f conftest.er1
37867   cat conftest.err >&5
37868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869   (exit $ac_status); } &&
37870          { ac_try='test -z "$ac_c_werror_flag"
37871                          || test ! -s conftest.err'
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); }; } &&
37877          { ac_try='test -s conftest$ac_exeext'
37878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37879   (eval $ac_try) 2>&5
37880   ac_status=$?
37881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); }; }; then
37883   ac_cv_func_setproctitle=yes
37884 else
37885   echo "$as_me: failed program was:" >&5
37886 sed 's/^/| /' conftest.$ac_ext >&5
37887
37888 ac_cv_func_setproctitle=no
37889 fi
37890 rm -f conftest.err conftest.$ac_objext \
37891       conftest$ac_exeext conftest.$ac_ext
37892 fi
37893 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37894 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37895 if test $ac_cv_func_setproctitle = yes; then
37896   have_setproctitle=yes
37897 else
37898
37899                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37900 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37901 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37902   echo $ECHO_N "(cached) $ECHO_C" >&6
37903 else
37904   ac_check_lib_save_LIBS=$LIBS
37905 LIBS="-lutil  $LIBS"
37906 cat >conftest.$ac_ext <<_ACEOF
37907 /* confdefs.h.  */
37908 _ACEOF
37909 cat confdefs.h >>conftest.$ac_ext
37910 cat >>conftest.$ac_ext <<_ACEOF
37911 /* end confdefs.h.  */
37912
37913 /* Override any gcc2 internal prototype to avoid an error.  */
37914 #ifdef __cplusplus
37915 extern "C"
37916 #endif
37917 /* We use char because int might match the return type of a gcc2
37918    builtin and then its argument prototype would still apply.  */
37919 char setproctitle ();
37920 int
37921 main ()
37922 {
37923 setproctitle ();
37924   ;
37925   return 0;
37926 }
37927 _ACEOF
37928 rm -f conftest.$ac_objext conftest$ac_exeext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37930   (eval $ac_link) 2>conftest.er1
37931   ac_status=$?
37932   grep -v '^ *+' conftest.er1 >conftest.err
37933   rm -f conftest.er1
37934   cat conftest.err >&5
37935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); } &&
37937          { ac_try='test -z "$ac_c_werror_flag"
37938                          || test ! -s conftest.err'
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); }; } &&
37944          { ac_try='test -s conftest$ac_exeext'
37945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946   (eval $ac_try) 2>&5
37947   ac_status=$?
37948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949   (exit $ac_status); }; }; then
37950   ac_cv_lib_util_setproctitle=yes
37951 else
37952   echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37954
37955 ac_cv_lib_util_setproctitle=no
37956 fi
37957 rm -f conftest.err conftest.$ac_objext \
37958       conftest$ac_exeext conftest.$ac_ext
37959 LIBS=$ac_check_lib_save_LIBS
37960 fi
37961 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37962 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37963 if test $ac_cv_lib_util_setproctitle = yes; then
37964   have_setproctitle=yes
37965                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37966 else
37967   have_setproctitle=no
37968                         case $LIBOBJS in
37969     "setproctitle.$ac_objext"   | \
37970   *" setproctitle.$ac_objext"   | \
37971     "setproctitle.$ac_objext "* | \
37972   *" setproctitle.$ac_objext "* ) ;;
37973   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37974 esac
37975
37976                         LIBSRCS="$LIBSRCS setproctitle.c"
37977 fi
37978
37979 fi
37980
37981
37982         if test $have_setproctitle = yes ; then
37983
37984 cat >>confdefs.h <<\_ACEOF
37985 #define HAVE_SETPROCTITLE 1
37986 _ACEOF
37987
37988         fi
37989 fi
37990
37991 if test $ol_enable_slp != no ; then
37992
37993 for ac_header in slp.h
37994 do
37995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37997   echo "$as_me:$LINENO: checking for $ac_header" >&5
37998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38000   echo $ECHO_N "(cached) $ECHO_C" >&6
38001 fi
38002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38004 else
38005   # Is the header compilable?
38006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38008 cat >conftest.$ac_ext <<_ACEOF
38009 /* confdefs.h.  */
38010 _ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h.  */
38014 $ac_includes_default
38015 #include <$ac_header>
38016 _ACEOF
38017 rm -f conftest.$ac_objext
38018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38019   (eval $ac_compile) 2>conftest.er1
38020   ac_status=$?
38021   grep -v '^ *+' conftest.er1 >conftest.err
38022   rm -f conftest.er1
38023   cat conftest.err >&5
38024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38025   (exit $ac_status); } &&
38026          { ac_try='test -z "$ac_c_werror_flag"
38027                          || test ! -s conftest.err'
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); }; } &&
38033          { ac_try='test -s conftest.$ac_objext'
38034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38035   (eval $ac_try) 2>&5
38036   ac_status=$?
38037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038   (exit $ac_status); }; }; then
38039   ac_header_compiler=yes
38040 else
38041   echo "$as_me: failed program was:" >&5
38042 sed 's/^/| /' conftest.$ac_ext >&5
38043
38044 ac_header_compiler=no
38045 fi
38046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38048 echo "${ECHO_T}$ac_header_compiler" >&6
38049
38050 # Is the header present?
38051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38053 cat >conftest.$ac_ext <<_ACEOF
38054 /* confdefs.h.  */
38055 _ACEOF
38056 cat confdefs.h >>conftest.$ac_ext
38057 cat >>conftest.$ac_ext <<_ACEOF
38058 /* end confdefs.h.  */
38059 #include <$ac_header>
38060 _ACEOF
38061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38063   ac_status=$?
38064   grep -v '^ *+' conftest.er1 >conftest.err
38065   rm -f conftest.er1
38066   cat conftest.err >&5
38067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068   (exit $ac_status); } >/dev/null; then
38069   if test -s conftest.err; then
38070     ac_cpp_err=$ac_c_preproc_warn_flag
38071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38072   else
38073     ac_cpp_err=
38074   fi
38075 else
38076   ac_cpp_err=yes
38077 fi
38078 if test -z "$ac_cpp_err"; then
38079   ac_header_preproc=yes
38080 else
38081   echo "$as_me: failed program was:" >&5
38082 sed 's/^/| /' conftest.$ac_ext >&5
38083
38084   ac_header_preproc=no
38085 fi
38086 rm -f conftest.err conftest.$ac_ext
38087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38088 echo "${ECHO_T}$ac_header_preproc" >&6
38089
38090 # So?  What about this header?
38091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38092   yes:no: )
38093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38097     ac_header_preproc=yes
38098     ;;
38099   no:yes:* )
38100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38112     (
38113       cat <<\_ASBOX
38114 ## --------------------------------------------- ##
38115 ## Report this to <http://www.openldap.org/its/> ##
38116 ## --------------------------------------------- ##
38117 _ASBOX
38118     ) |
38119       sed "s/^/$as_me: WARNING:     /" >&2
38120     ;;
38121 esac
38122 echo "$as_me:$LINENO: checking for $ac_header" >&5
38123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38125   echo $ECHO_N "(cached) $ECHO_C" >&6
38126 else
38127   eval "$as_ac_Header=\$ac_header_preproc"
38128 fi
38129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38131
38132 fi
38133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38134   cat >>confdefs.h <<_ACEOF
38135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38136 _ACEOF
38137
38138 fi
38139
38140 done
38141
38142
38143         if test $ac_cv_header_slp_h = yes ; then
38144                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38145 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38146 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38147   echo $ECHO_N "(cached) $ECHO_C" >&6
38148 else
38149   ac_check_lib_save_LIBS=$LIBS
38150 LIBS="-lslp  $LIBS"
38151 cat >conftest.$ac_ext <<_ACEOF
38152 /* confdefs.h.  */
38153 _ACEOF
38154 cat confdefs.h >>conftest.$ac_ext
38155 cat >>conftest.$ac_ext <<_ACEOF
38156 /* end confdefs.h.  */
38157
38158 /* Override any gcc2 internal prototype to avoid an error.  */
38159 #ifdef __cplusplus
38160 extern "C"
38161 #endif
38162 /* We use char because int might match the return type of a gcc2
38163    builtin and then its argument prototype would still apply.  */
38164 char SLPOpen ();
38165 int
38166 main ()
38167 {
38168 SLPOpen ();
38169   ;
38170   return 0;
38171 }
38172 _ACEOF
38173 rm -f conftest.$ac_objext conftest$ac_exeext
38174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38175   (eval $ac_link) 2>conftest.er1
38176   ac_status=$?
38177   grep -v '^ *+' conftest.er1 >conftest.err
38178   rm -f conftest.er1
38179   cat conftest.err >&5
38180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181   (exit $ac_status); } &&
38182          { ac_try='test -z "$ac_c_werror_flag"
38183                          || test ! -s conftest.err'
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); }; } &&
38189          { ac_try='test -s conftest$ac_exeext'
38190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191   (eval $ac_try) 2>&5
38192   ac_status=$?
38193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194   (exit $ac_status); }; }; then
38195   ac_cv_lib_slp_SLPOpen=yes
38196 else
38197   echo "$as_me: failed program was:" >&5
38198 sed 's/^/| /' conftest.$ac_ext >&5
38199
38200 ac_cv_lib_slp_SLPOpen=no
38201 fi
38202 rm -f conftest.err conftest.$ac_objext \
38203       conftest$ac_exeext conftest.$ac_ext
38204 LIBS=$ac_check_lib_save_LIBS
38205 fi
38206 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38207 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38208 if test $ac_cv_lib_slp_SLPOpen = yes; then
38209   have_slp=yes
38210 else
38211   have_slp=no
38212 fi
38213
38214                 if test $have_slp = yes ; then
38215
38216 cat >>confdefs.h <<\_ACEOF
38217 #define HAVE_SLP 1
38218 _ACEOF
38219
38220                         SLAPD_SLP_LIBS=-lslp
38221                 fi
38222
38223         elif test $ol_enable_slp = yes ; then
38224                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38225 echo "$as_me: error: SLP not found" >&2;}
38226    { (exit 1); exit 1; }; }
38227         fi
38228 fi
38229
38230 if test "$ol_with_multiple_precision" != "no" ; then
38231         ol_have_bignum=no
38232         ol_have_gmp=no
38233
38234
38235
38236 for ac_header in openssl/bn.h bn.h
38237 do
38238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38240   echo "$as_me:$LINENO: checking for $ac_header" >&5
38241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38243   echo $ECHO_N "(cached) $ECHO_C" >&6
38244 fi
38245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38247 else
38248   # Is the header compilable?
38249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38251 cat >conftest.$ac_ext <<_ACEOF
38252 /* confdefs.h.  */
38253 _ACEOF
38254 cat confdefs.h >>conftest.$ac_ext
38255 cat >>conftest.$ac_ext <<_ACEOF
38256 /* end confdefs.h.  */
38257 $ac_includes_default
38258 #include <$ac_header>
38259 _ACEOF
38260 rm -f conftest.$ac_objext
38261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38262   (eval $ac_compile) 2>conftest.er1
38263   ac_status=$?
38264   grep -v '^ *+' conftest.er1 >conftest.err
38265   rm -f conftest.er1
38266   cat conftest.err >&5
38267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38268   (exit $ac_status); } &&
38269          { ac_try='test -z "$ac_c_werror_flag"
38270                          || test ! -s conftest.err'
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); }; } &&
38276          { ac_try='test -s conftest.$ac_objext'
38277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38278   (eval $ac_try) 2>&5
38279   ac_status=$?
38280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281   (exit $ac_status); }; }; then
38282   ac_header_compiler=yes
38283 else
38284   echo "$as_me: failed program was:" >&5
38285 sed 's/^/| /' conftest.$ac_ext >&5
38286
38287 ac_header_compiler=no
38288 fi
38289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38291 echo "${ECHO_T}$ac_header_compiler" >&6
38292
38293 # Is the header present?
38294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38296 cat >conftest.$ac_ext <<_ACEOF
38297 /* confdefs.h.  */
38298 _ACEOF
38299 cat confdefs.h >>conftest.$ac_ext
38300 cat >>conftest.$ac_ext <<_ACEOF
38301 /* end confdefs.h.  */
38302 #include <$ac_header>
38303 _ACEOF
38304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38306   ac_status=$?
38307   grep -v '^ *+' conftest.er1 >conftest.err
38308   rm -f conftest.er1
38309   cat conftest.err >&5
38310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311   (exit $ac_status); } >/dev/null; then
38312   if test -s conftest.err; then
38313     ac_cpp_err=$ac_c_preproc_warn_flag
38314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38315   else
38316     ac_cpp_err=
38317   fi
38318 else
38319   ac_cpp_err=yes
38320 fi
38321 if test -z "$ac_cpp_err"; then
38322   ac_header_preproc=yes
38323 else
38324   echo "$as_me: failed program was:" >&5
38325 sed 's/^/| /' conftest.$ac_ext >&5
38326
38327   ac_header_preproc=no
38328 fi
38329 rm -f conftest.err conftest.$ac_ext
38330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38331 echo "${ECHO_T}$ac_header_preproc" >&6
38332
38333 # So?  What about this header?
38334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38335   yes:no: )
38336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38340     ac_header_preproc=yes
38341     ;;
38342   no:yes:* )
38343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38355     (
38356       cat <<\_ASBOX
38357 ## --------------------------------------------- ##
38358 ## Report this to <http://www.openldap.org/its/> ##
38359 ## --------------------------------------------- ##
38360 _ASBOX
38361     ) |
38362       sed "s/^/$as_me: WARNING:     /" >&2
38363     ;;
38364 esac
38365 echo "$as_me:$LINENO: checking for $ac_header" >&5
38366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38368   echo $ECHO_N "(cached) $ECHO_C" >&6
38369 else
38370   eval "$as_ac_Header=\$ac_header_preproc"
38371 fi
38372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38374
38375 fi
38376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38377   cat >>confdefs.h <<_ACEOF
38378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38379 _ACEOF
38380
38381 fi
38382
38383 done
38384
38385
38386
38387 for ac_header in openssl/crypto.h crypto.h
38388 do
38389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38391   echo "$as_me:$LINENO: checking for $ac_header" >&5
38392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38394   echo $ECHO_N "(cached) $ECHO_C" >&6
38395 fi
38396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38398 else
38399   # Is the header compilable?
38400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38402 cat >conftest.$ac_ext <<_ACEOF
38403 /* confdefs.h.  */
38404 _ACEOF
38405 cat confdefs.h >>conftest.$ac_ext
38406 cat >>conftest.$ac_ext <<_ACEOF
38407 /* end confdefs.h.  */
38408 $ac_includes_default
38409 #include <$ac_header>
38410 _ACEOF
38411 rm -f conftest.$ac_objext
38412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38413   (eval $ac_compile) 2>conftest.er1
38414   ac_status=$?
38415   grep -v '^ *+' conftest.er1 >conftest.err
38416   rm -f conftest.er1
38417   cat conftest.err >&5
38418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419   (exit $ac_status); } &&
38420          { ac_try='test -z "$ac_c_werror_flag"
38421                          || test ! -s conftest.err'
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); }; } &&
38427          { ac_try='test -s conftest.$ac_objext'
38428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38429   (eval $ac_try) 2>&5
38430   ac_status=$?
38431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432   (exit $ac_status); }; }; then
38433   ac_header_compiler=yes
38434 else
38435   echo "$as_me: failed program was:" >&5
38436 sed 's/^/| /' conftest.$ac_ext >&5
38437
38438 ac_header_compiler=no
38439 fi
38440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38442 echo "${ECHO_T}$ac_header_compiler" >&6
38443
38444 # Is the header present?
38445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38447 cat >conftest.$ac_ext <<_ACEOF
38448 /* confdefs.h.  */
38449 _ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h.  */
38453 #include <$ac_header>
38454 _ACEOF
38455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38457   ac_status=$?
38458   grep -v '^ *+' conftest.er1 >conftest.err
38459   rm -f conftest.er1
38460   cat conftest.err >&5
38461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38462   (exit $ac_status); } >/dev/null; then
38463   if test -s conftest.err; then
38464     ac_cpp_err=$ac_c_preproc_warn_flag
38465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38466   else
38467     ac_cpp_err=
38468   fi
38469 else
38470   ac_cpp_err=yes
38471 fi
38472 if test -z "$ac_cpp_err"; then
38473   ac_header_preproc=yes
38474 else
38475   echo "$as_me: failed program was:" >&5
38476 sed 's/^/| /' conftest.$ac_ext >&5
38477
38478   ac_header_preproc=no
38479 fi
38480 rm -f conftest.err conftest.$ac_ext
38481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38482 echo "${ECHO_T}$ac_header_preproc" >&6
38483
38484 # So?  What about this header?
38485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38486   yes:no: )
38487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38491     ac_header_preproc=yes
38492     ;;
38493   no:yes:* )
38494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38506     (
38507       cat <<\_ASBOX
38508 ## --------------------------------------------- ##
38509 ## Report this to <http://www.openldap.org/its/> ##
38510 ## --------------------------------------------- ##
38511 _ASBOX
38512     ) |
38513       sed "s/^/$as_me: WARNING:     /" >&2
38514     ;;
38515 esac
38516 echo "$as_me:$LINENO: checking for $ac_header" >&5
38517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38519   echo $ECHO_N "(cached) $ECHO_C" >&6
38520 else
38521   eval "$as_ac_Header=\$ac_header_preproc"
38522 fi
38523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38525
38526 fi
38527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38528   cat >>confdefs.h <<_ACEOF
38529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38530 _ACEOF
38531
38532 fi
38533
38534 done
38535
38536
38537 for ac_header in gmp.h
38538 do
38539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38541   echo "$as_me:$LINENO: checking for $ac_header" >&5
38542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38544   echo $ECHO_N "(cached) $ECHO_C" >&6
38545 fi
38546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38548 else
38549   # Is the header compilable?
38550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38552 cat >conftest.$ac_ext <<_ACEOF
38553 /* confdefs.h.  */
38554 _ACEOF
38555 cat confdefs.h >>conftest.$ac_ext
38556 cat >>conftest.$ac_ext <<_ACEOF
38557 /* end confdefs.h.  */
38558 $ac_includes_default
38559 #include <$ac_header>
38560 _ACEOF
38561 rm -f conftest.$ac_objext
38562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38563   (eval $ac_compile) 2>conftest.er1
38564   ac_status=$?
38565   grep -v '^ *+' conftest.er1 >conftest.err
38566   rm -f conftest.er1
38567   cat conftest.err >&5
38568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569   (exit $ac_status); } &&
38570          { ac_try='test -z "$ac_c_werror_flag"
38571                          || test ! -s conftest.err'
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); }; } &&
38577          { ac_try='test -s conftest.$ac_objext'
38578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38579   (eval $ac_try) 2>&5
38580   ac_status=$?
38581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38582   (exit $ac_status); }; }; then
38583   ac_header_compiler=yes
38584 else
38585   echo "$as_me: failed program was:" >&5
38586 sed 's/^/| /' conftest.$ac_ext >&5
38587
38588 ac_header_compiler=no
38589 fi
38590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38592 echo "${ECHO_T}$ac_header_compiler" >&6
38593
38594 # Is the header present?
38595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38597 cat >conftest.$ac_ext <<_ACEOF
38598 /* confdefs.h.  */
38599 _ACEOF
38600 cat confdefs.h >>conftest.$ac_ext
38601 cat >>conftest.$ac_ext <<_ACEOF
38602 /* end confdefs.h.  */
38603 #include <$ac_header>
38604 _ACEOF
38605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38607   ac_status=$?
38608   grep -v '^ *+' conftest.er1 >conftest.err
38609   rm -f conftest.er1
38610   cat conftest.err >&5
38611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612   (exit $ac_status); } >/dev/null; then
38613   if test -s conftest.err; then
38614     ac_cpp_err=$ac_c_preproc_warn_flag
38615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38616   else
38617     ac_cpp_err=
38618   fi
38619 else
38620   ac_cpp_err=yes
38621 fi
38622 if test -z "$ac_cpp_err"; then
38623   ac_header_preproc=yes
38624 else
38625   echo "$as_me: failed program was:" >&5
38626 sed 's/^/| /' conftest.$ac_ext >&5
38627
38628   ac_header_preproc=no
38629 fi
38630 rm -f conftest.err conftest.$ac_ext
38631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38632 echo "${ECHO_T}$ac_header_preproc" >&6
38633
38634 # So?  What about this header?
38635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38636   yes:no: )
38637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38641     ac_header_preproc=yes
38642     ;;
38643   no:yes:* )
38644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38656     (
38657       cat <<\_ASBOX
38658 ## --------------------------------------------- ##
38659 ## Report this to <http://www.openldap.org/its/> ##
38660 ## --------------------------------------------- ##
38661 _ASBOX
38662     ) |
38663       sed "s/^/$as_me: WARNING:     /" >&2
38664     ;;
38665 esac
38666 echo "$as_me:$LINENO: checking for $ac_header" >&5
38667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38669   echo $ECHO_N "(cached) $ECHO_C" >&6
38670 else
38671   eval "$as_ac_Header=\$ac_header_preproc"
38672 fi
38673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38675
38676 fi
38677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38678   cat >>confdefs.h <<_ACEOF
38679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38680 _ACEOF
38681
38682 fi
38683
38684 done
38685
38686
38687         if test "$ol_with_tls" = "found" ; then
38688                 ol_have_bn_h=no
38689                 ol_have_crypto_h=no
38690
38691                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38692                    test "$ac_cv_header_bn_h" = "yes" ; then
38693                         ol_have_bn_h=yes
38694                 fi
38695
38696                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38697                    test "$ac_cv_header_crypto_h" = "yes" ; then
38698                         ol_have_crypto_h=yes
38699                 fi
38700
38701                 if test "$ol_have_bn_h" = "yes" &&
38702                    test "$ol_have_crypto_h" = "yes" ; then
38703                         ol_have_bignum=yes
38704                 fi
38705         fi
38706
38707         if test $ac_cv_header_gmp_h = yes ; then
38708                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38709 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38710 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38711   echo $ECHO_N "(cached) $ECHO_C" >&6
38712 else
38713   ac_check_lib_save_LIBS=$LIBS
38714 LIBS="-lgmp  $LIBS"
38715 cat >conftest.$ac_ext <<_ACEOF
38716 /* confdefs.h.  */
38717 _ACEOF
38718 cat confdefs.h >>conftest.$ac_ext
38719 cat >>conftest.$ac_ext <<_ACEOF
38720 /* end confdefs.h.  */
38721
38722 /* Override any gcc2 internal prototype to avoid an error.  */
38723 #ifdef __cplusplus
38724 extern "C"
38725 #endif
38726 /* We use char because int might match the return type of a gcc2
38727    builtin and then its argument prototype would still apply.  */
38728 char __gmpz_add_ui ();
38729 int
38730 main ()
38731 {
38732 __gmpz_add_ui ();
38733   ;
38734   return 0;
38735 }
38736 _ACEOF
38737 rm -f conftest.$ac_objext conftest$ac_exeext
38738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38739   (eval $ac_link) 2>conftest.er1
38740   ac_status=$?
38741   grep -v '^ *+' conftest.er1 >conftest.err
38742   rm -f conftest.er1
38743   cat conftest.err >&5
38744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38745   (exit $ac_status); } &&
38746          { ac_try='test -z "$ac_c_werror_flag"
38747                          || test ! -s conftest.err'
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); }; } &&
38753          { ac_try='test -s conftest$ac_exeext'
38754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38755   (eval $ac_try) 2>&5
38756   ac_status=$?
38757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38758   (exit $ac_status); }; }; then
38759   ac_cv_lib_gmp___gmpz_add_ui=yes
38760 else
38761   echo "$as_me: failed program was:" >&5
38762 sed 's/^/| /' conftest.$ac_ext >&5
38763
38764 ac_cv_lib_gmp___gmpz_add_ui=no
38765 fi
38766 rm -f conftest.err conftest.$ac_objext \
38767       conftest$ac_exeext conftest.$ac_ext
38768 LIBS=$ac_check_lib_save_LIBS
38769 fi
38770 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38771 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38772 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38773   have_gmp=yes
38774 else
38775   have_gmp=no
38776 fi
38777
38778                 if test $have_gmp = yes ; then
38779                         ol_have_gmp=yes
38780                 fi
38781         fi
38782
38783         echo "$as_me:$LINENO: checking for multiple precision support" >&5
38784 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38785
38786         ol_mp_support="none"
38787         case "$ol_with_multiple_precision" in
38788         auto)
38789                                                                                 if test "$ol_have_bignum" = "yes" ; then
38790                         ol_mp_support="bignum"
38791                 else
38792                         if test "$ol_have_gmp" = "yes" ; then
38793                                 ol_mp_support="gmp"
38794                         fi
38795                 fi
38796                 ;;
38797         bignum)
38798                 if test "$ol_have_bignum" != "yes" ; then
38799                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38800 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38801    { (exit 1); exit 1; }; }
38802                 fi
38803                 ol_mp_support="bignum"
38804                 ;;
38805         gmp)
38806                 if test "$ol_have_gmp" != "yes" ; then
38807                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
38808 echo "$as_me: error: GMP not available" >&2;}
38809    { (exit 1); exit 1; }; }
38810                 fi
38811                 ol_mp_support="gmp"
38812                 ;;
38813         yes)
38814                 if test "$ol_have_bignum" = "yes" ; then
38815                         ol_mp_support="bignum"
38816                 elif test "$ol_have_gmp" = "yes" ; then
38817                         ol_mp_support="gmp"
38818                 else
38819                         { { echo "$as_me:$LINENO: error: not available" >&5
38820 echo "$as_me: error: not available" >&2;}
38821    { (exit 1); exit 1; }; }
38822                 fi
38823                 ;;
38824         esac
38825
38826         case "$ol_mp_support" in
38827         bignum)
38828
38829 cat >>confdefs.h <<\_ACEOF
38830 #define HAVE_BIGNUM 1
38831 _ACEOF
38832
38833                 ;;
38834         gmp)
38835
38836 cat >>confdefs.h <<\_ACEOF
38837 #define HAVE_GMP 1
38838 _ACEOF
38839
38840                 SLAPD_GMP_LIBS=-lgmp
38841                 ;;
38842         none)
38843                 ;;
38844         esac
38845
38846         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38847 echo "${ECHO_T}$ol_mp_support" >&6
38848 fi
38849
38850
38851 echo "$as_me:$LINENO: checking for mode_t" >&5
38852 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38853 if test "${ac_cv_type_mode_t+set}" = set; then
38854   echo $ECHO_N "(cached) $ECHO_C" >&6
38855 else
38856   cat >conftest.$ac_ext <<_ACEOF
38857 /* confdefs.h.  */
38858 _ACEOF
38859 cat confdefs.h >>conftest.$ac_ext
38860 cat >>conftest.$ac_ext <<_ACEOF
38861 /* end confdefs.h.  */
38862 $ac_includes_default
38863 int
38864 main ()
38865 {
38866 if ((mode_t *) 0)
38867   return 0;
38868 if (sizeof (mode_t))
38869   return 0;
38870   ;
38871   return 0;
38872 }
38873 _ACEOF
38874 rm -f conftest.$ac_objext
38875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38876   (eval $ac_compile) 2>conftest.er1
38877   ac_status=$?
38878   grep -v '^ *+' conftest.er1 >conftest.err
38879   rm -f conftest.er1
38880   cat conftest.err >&5
38881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882   (exit $ac_status); } &&
38883          { ac_try='test -z "$ac_c_werror_flag"
38884                          || test ! -s conftest.err'
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); }; } &&
38890          { ac_try='test -s conftest.$ac_objext'
38891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38892   (eval $ac_try) 2>&5
38893   ac_status=$?
38894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895   (exit $ac_status); }; }; then
38896   ac_cv_type_mode_t=yes
38897 else
38898   echo "$as_me: failed program was:" >&5
38899 sed 's/^/| /' conftest.$ac_ext >&5
38900
38901 ac_cv_type_mode_t=no
38902 fi
38903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38904 fi
38905 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38906 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38907 if test $ac_cv_type_mode_t = yes; then
38908   :
38909 else
38910
38911 cat >>confdefs.h <<_ACEOF
38912 #define mode_t int
38913 _ACEOF
38914
38915 fi
38916
38917 echo "$as_me:$LINENO: checking for off_t" >&5
38918 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38919 if test "${ac_cv_type_off_t+set}" = set; then
38920   echo $ECHO_N "(cached) $ECHO_C" >&6
38921 else
38922   cat >conftest.$ac_ext <<_ACEOF
38923 /* confdefs.h.  */
38924 _ACEOF
38925 cat confdefs.h >>conftest.$ac_ext
38926 cat >>conftest.$ac_ext <<_ACEOF
38927 /* end confdefs.h.  */
38928 $ac_includes_default
38929 int
38930 main ()
38931 {
38932 if ((off_t *) 0)
38933   return 0;
38934 if (sizeof (off_t))
38935   return 0;
38936   ;
38937   return 0;
38938 }
38939 _ACEOF
38940 rm -f conftest.$ac_objext
38941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38942   (eval $ac_compile) 2>conftest.er1
38943   ac_status=$?
38944   grep -v '^ *+' conftest.er1 >conftest.err
38945   rm -f conftest.er1
38946   cat conftest.err >&5
38947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38948   (exit $ac_status); } &&
38949          { ac_try='test -z "$ac_c_werror_flag"
38950                          || test ! -s conftest.err'
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); }; } &&
38956          { ac_try='test -s conftest.$ac_objext'
38957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38958   (eval $ac_try) 2>&5
38959   ac_status=$?
38960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961   (exit $ac_status); }; }; then
38962   ac_cv_type_off_t=yes
38963 else
38964   echo "$as_me: failed program was:" >&5
38965 sed 's/^/| /' conftest.$ac_ext >&5
38966
38967 ac_cv_type_off_t=no
38968 fi
38969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38970 fi
38971 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38972 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38973 if test $ac_cv_type_off_t = yes; then
38974   :
38975 else
38976
38977 cat >>confdefs.h <<_ACEOF
38978 #define off_t long
38979 _ACEOF
38980
38981 fi
38982
38983 echo "$as_me:$LINENO: checking for pid_t" >&5
38984 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38985 if test "${ac_cv_type_pid_t+set}" = set; then
38986   echo $ECHO_N "(cached) $ECHO_C" >&6
38987 else
38988   cat >conftest.$ac_ext <<_ACEOF
38989 /* confdefs.h.  */
38990 _ACEOF
38991 cat confdefs.h >>conftest.$ac_ext
38992 cat >>conftest.$ac_ext <<_ACEOF
38993 /* end confdefs.h.  */
38994 $ac_includes_default
38995 int
38996 main ()
38997 {
38998 if ((pid_t *) 0)
38999   return 0;
39000 if (sizeof (pid_t))
39001   return 0;
39002   ;
39003   return 0;
39004 }
39005 _ACEOF
39006 rm -f conftest.$ac_objext
39007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39008   (eval $ac_compile) 2>conftest.er1
39009   ac_status=$?
39010   grep -v '^ *+' conftest.er1 >conftest.err
39011   rm -f conftest.er1
39012   cat conftest.err >&5
39013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014   (exit $ac_status); } &&
39015          { ac_try='test -z "$ac_c_werror_flag"
39016                          || test ! -s conftest.err'
39017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018   (eval $ac_try) 2>&5
39019   ac_status=$?
39020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021   (exit $ac_status); }; } &&
39022          { ac_try='test -s conftest.$ac_objext'
39023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024   (eval $ac_try) 2>&5
39025   ac_status=$?
39026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027   (exit $ac_status); }; }; then
39028   ac_cv_type_pid_t=yes
39029 else
39030   echo "$as_me: failed program was:" >&5
39031 sed 's/^/| /' conftest.$ac_ext >&5
39032
39033 ac_cv_type_pid_t=no
39034 fi
39035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39036 fi
39037 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39038 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39039 if test $ac_cv_type_pid_t = yes; then
39040   :
39041 else
39042
39043 cat >>confdefs.h <<_ACEOF
39044 #define pid_t int
39045 _ACEOF
39046
39047 fi
39048
39049 echo "$as_me:$LINENO: checking for ssize_t" >&5
39050 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39051 if test "${ac_cv_type_ssize_t+set}" = set; then
39052   echo $ECHO_N "(cached) $ECHO_C" >&6
39053 else
39054   cat >conftest.$ac_ext <<_ACEOF
39055 /* confdefs.h.  */
39056 _ACEOF
39057 cat confdefs.h >>conftest.$ac_ext
39058 cat >>conftest.$ac_ext <<_ACEOF
39059 /* end confdefs.h.  */
39060 $ac_includes_default
39061 int
39062 main ()
39063 {
39064 if ((ssize_t *) 0)
39065   return 0;
39066 if (sizeof (ssize_t))
39067   return 0;
39068   ;
39069   return 0;
39070 }
39071 _ACEOF
39072 rm -f conftest.$ac_objext
39073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39074   (eval $ac_compile) 2>conftest.er1
39075   ac_status=$?
39076   grep -v '^ *+' conftest.er1 >conftest.err
39077   rm -f conftest.er1
39078   cat conftest.err >&5
39079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080   (exit $ac_status); } &&
39081          { ac_try='test -z "$ac_c_werror_flag"
39082                          || test ! -s conftest.err'
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); }; } &&
39088          { ac_try='test -s conftest.$ac_objext'
39089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090   (eval $ac_try) 2>&5
39091   ac_status=$?
39092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093   (exit $ac_status); }; }; then
39094   ac_cv_type_ssize_t=yes
39095 else
39096   echo "$as_me: failed program was:" >&5
39097 sed 's/^/| /' conftest.$ac_ext >&5
39098
39099 ac_cv_type_ssize_t=no
39100 fi
39101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39102 fi
39103 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39104 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39105 if test $ac_cv_type_ssize_t = yes; then
39106   :
39107 else
39108
39109 cat >>confdefs.h <<_ACEOF
39110 #define ssize_t signed int
39111 _ACEOF
39112
39113 fi
39114
39115 echo "$as_me:$LINENO: checking for caddr_t" >&5
39116 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39117 if test "${ac_cv_type_caddr_t+set}" = set; then
39118   echo $ECHO_N "(cached) $ECHO_C" >&6
39119 else
39120   cat >conftest.$ac_ext <<_ACEOF
39121 /* confdefs.h.  */
39122 _ACEOF
39123 cat confdefs.h >>conftest.$ac_ext
39124 cat >>conftest.$ac_ext <<_ACEOF
39125 /* end confdefs.h.  */
39126 $ac_includes_default
39127 int
39128 main ()
39129 {
39130 if ((caddr_t *) 0)
39131   return 0;
39132 if (sizeof (caddr_t))
39133   return 0;
39134   ;
39135   return 0;
39136 }
39137 _ACEOF
39138 rm -f conftest.$ac_objext
39139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39140   (eval $ac_compile) 2>conftest.er1
39141   ac_status=$?
39142   grep -v '^ *+' conftest.er1 >conftest.err
39143   rm -f conftest.er1
39144   cat conftest.err >&5
39145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146   (exit $ac_status); } &&
39147          { ac_try='test -z "$ac_c_werror_flag"
39148                          || test ! -s conftest.err'
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); }; } &&
39154          { ac_try='test -s conftest.$ac_objext'
39155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39156   (eval $ac_try) 2>&5
39157   ac_status=$?
39158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159   (exit $ac_status); }; }; then
39160   ac_cv_type_caddr_t=yes
39161 else
39162   echo "$as_me: failed program was:" >&5
39163 sed 's/^/| /' conftest.$ac_ext >&5
39164
39165 ac_cv_type_caddr_t=no
39166 fi
39167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39168 fi
39169 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39170 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39171 if test $ac_cv_type_caddr_t = yes; then
39172   :
39173 else
39174
39175 cat >>confdefs.h <<_ACEOF
39176 #define caddr_t char *
39177 _ACEOF
39178
39179 fi
39180
39181 echo "$as_me:$LINENO: checking for size_t" >&5
39182 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39183 if test "${ac_cv_type_size_t+set}" = set; then
39184   echo $ECHO_N "(cached) $ECHO_C" >&6
39185 else
39186   cat >conftest.$ac_ext <<_ACEOF
39187 /* confdefs.h.  */
39188 _ACEOF
39189 cat confdefs.h >>conftest.$ac_ext
39190 cat >>conftest.$ac_ext <<_ACEOF
39191 /* end confdefs.h.  */
39192 $ac_includes_default
39193 int
39194 main ()
39195 {
39196 if ((size_t *) 0)
39197   return 0;
39198 if (sizeof (size_t))
39199   return 0;
39200   ;
39201   return 0;
39202 }
39203 _ACEOF
39204 rm -f conftest.$ac_objext
39205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39206   (eval $ac_compile) 2>conftest.er1
39207   ac_status=$?
39208   grep -v '^ *+' conftest.er1 >conftest.err
39209   rm -f conftest.er1
39210   cat conftest.err >&5
39211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212   (exit $ac_status); } &&
39213          { ac_try='test -z "$ac_c_werror_flag"
39214                          || test ! -s conftest.err'
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); }; } &&
39220          { ac_try='test -s conftest.$ac_objext'
39221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222   (eval $ac_try) 2>&5
39223   ac_status=$?
39224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225   (exit $ac_status); }; }; then
39226   ac_cv_type_size_t=yes
39227 else
39228   echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39230
39231 ac_cv_type_size_t=no
39232 fi
39233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39234 fi
39235 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39236 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39237 if test $ac_cv_type_size_t = yes; then
39238   :
39239 else
39240
39241 cat >>confdefs.h <<_ACEOF
39242 #define size_t unsigned
39243 _ACEOF
39244
39245 fi
39246
39247
39248 echo "$as_me:$LINENO: checking for long long" >&5
39249 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39250 if test "${ac_cv_type_long_long+set}" = set; then
39251   echo $ECHO_N "(cached) $ECHO_C" >&6
39252 else
39253   cat >conftest.$ac_ext <<_ACEOF
39254 /* confdefs.h.  */
39255 _ACEOF
39256 cat confdefs.h >>conftest.$ac_ext
39257 cat >>conftest.$ac_ext <<_ACEOF
39258 /* end confdefs.h.  */
39259 $ac_includes_default
39260 int
39261 main ()
39262 {
39263 if ((long long *) 0)
39264   return 0;
39265 if (sizeof (long long))
39266   return 0;
39267   ;
39268   return 0;
39269 }
39270 _ACEOF
39271 rm -f conftest.$ac_objext
39272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39273   (eval $ac_compile) 2>conftest.er1
39274   ac_status=$?
39275   grep -v '^ *+' conftest.er1 >conftest.err
39276   rm -f conftest.er1
39277   cat conftest.err >&5
39278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279   (exit $ac_status); } &&
39280          { ac_try='test -z "$ac_c_werror_flag"
39281                          || test ! -s conftest.err'
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); }; } &&
39287          { ac_try='test -s conftest.$ac_objext'
39288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39289   (eval $ac_try) 2>&5
39290   ac_status=$?
39291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292   (exit $ac_status); }; }; then
39293   ac_cv_type_long_long=yes
39294 else
39295   echo "$as_me: failed program was:" >&5
39296 sed 's/^/| /' conftest.$ac_ext >&5
39297
39298 ac_cv_type_long_long=no
39299 fi
39300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39301 fi
39302 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39303 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39304 if test $ac_cv_type_long_long = yes; then
39305
39306 cat >>confdefs.h <<_ACEOF
39307 #define HAVE_LONG_LONG 1
39308 _ACEOF
39309
39310
39311 fi
39312
39313 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39314 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39315 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39316   echo $ECHO_N "(cached) $ECHO_C" >&6
39317 else
39318   cat >conftest.$ac_ext <<_ACEOF
39319 /* confdefs.h.  */
39320 _ACEOF
39321 cat confdefs.h >>conftest.$ac_ext
39322 cat >>conftest.$ac_ext <<_ACEOF
39323 /* end confdefs.h.  */
39324 $ac_includes_default
39325 int
39326 main ()
39327 {
39328 if ((ptrdiff_t *) 0)
39329   return 0;
39330 if (sizeof (ptrdiff_t))
39331   return 0;
39332   ;
39333   return 0;
39334 }
39335 _ACEOF
39336 rm -f conftest.$ac_objext
39337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39338   (eval $ac_compile) 2>conftest.er1
39339   ac_status=$?
39340   grep -v '^ *+' conftest.er1 >conftest.err
39341   rm -f conftest.er1
39342   cat conftest.err >&5
39343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344   (exit $ac_status); } &&
39345          { ac_try='test -z "$ac_c_werror_flag"
39346                          || test ! -s conftest.err'
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); }; } &&
39352          { ac_try='test -s conftest.$ac_objext'
39353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39354   (eval $ac_try) 2>&5
39355   ac_status=$?
39356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39357   (exit $ac_status); }; }; then
39358   ac_cv_type_ptrdiff_t=yes
39359 else
39360   echo "$as_me: failed program was:" >&5
39361 sed 's/^/| /' conftest.$ac_ext >&5
39362
39363 ac_cv_type_ptrdiff_t=no
39364 fi
39365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39366 fi
39367 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39368 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39369 if test $ac_cv_type_ptrdiff_t = yes; then
39370
39371 cat >>confdefs.h <<_ACEOF
39372 #define HAVE_PTRDIFF_T 1
39373 _ACEOF
39374
39375
39376 fi
39377
39378
39379 echo "$as_me:$LINENO: checking for socklen_t" >&5
39380 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39381 if test "${ac_cv_type_socklen_t+set}" = set; then
39382   echo $ECHO_N "(cached) $ECHO_C" >&6
39383 else
39384   cat >conftest.$ac_ext <<_ACEOF
39385 /* confdefs.h.  */
39386 _ACEOF
39387 cat confdefs.h >>conftest.$ac_ext
39388 cat >>conftest.$ac_ext <<_ACEOF
39389 /* end confdefs.h.  */
39390 $ac_includes_default
39391 #ifdef HAVE_SYS_SOCKET_H
39392 #include <sys/socket.h>
39393 #endif
39394
39395
39396 int
39397 main ()
39398 {
39399 if ((socklen_t *) 0)
39400   return 0;
39401 if (sizeof (socklen_t))
39402   return 0;
39403   ;
39404   return 0;
39405 }
39406 _ACEOF
39407 rm -f conftest.$ac_objext
39408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39409   (eval $ac_compile) 2>conftest.er1
39410   ac_status=$?
39411   grep -v '^ *+' conftest.er1 >conftest.err
39412   rm -f conftest.er1
39413   cat conftest.err >&5
39414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39415   (exit $ac_status); } &&
39416          { ac_try='test -z "$ac_c_werror_flag"
39417                          || test ! -s conftest.err'
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); }; } &&
39423          { ac_try='test -s conftest.$ac_objext'
39424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39425   (eval $ac_try) 2>&5
39426   ac_status=$?
39427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39428   (exit $ac_status); }; }; then
39429   ac_cv_type_socklen_t=yes
39430 else
39431   echo "$as_me: failed program was:" >&5
39432 sed 's/^/| /' conftest.$ac_ext >&5
39433
39434 ac_cv_type_socklen_t=no
39435 fi
39436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39437 fi
39438 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39439 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39440 if test $ac_cv_type_socklen_t = yes; then
39441   :
39442 else
39443
39444 cat >>confdefs.h <<_ACEOF
39445 #define socklen_t int
39446 _ACEOF
39447
39448 fi
39449
39450
39451 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39452 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39453 if test "${ac_cv_type_signal+set}" = set; then
39454   echo $ECHO_N "(cached) $ECHO_C" >&6
39455 else
39456   cat >conftest.$ac_ext <<_ACEOF
39457 /* confdefs.h.  */
39458 _ACEOF
39459 cat confdefs.h >>conftest.$ac_ext
39460 cat >>conftest.$ac_ext <<_ACEOF
39461 /* end confdefs.h.  */
39462 #include <sys/types.h>
39463 #include <signal.h>
39464 #ifdef signal
39465 # undef signal
39466 #endif
39467 #ifdef __cplusplus
39468 extern "C" void (*signal (int, void (*)(int)))(int);
39469 #else
39470 void (*signal ()) ();
39471 #endif
39472
39473 int
39474 main ()
39475 {
39476 int i;
39477   ;
39478   return 0;
39479 }
39480 _ACEOF
39481 rm -f conftest.$ac_objext
39482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39483   (eval $ac_compile) 2>conftest.er1
39484   ac_status=$?
39485   grep -v '^ *+' conftest.er1 >conftest.err
39486   rm -f conftest.er1
39487   cat conftest.err >&5
39488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489   (exit $ac_status); } &&
39490          { ac_try='test -z "$ac_c_werror_flag"
39491                          || test ! -s conftest.err'
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); }; } &&
39497          { ac_try='test -s conftest.$ac_objext'
39498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39499   (eval $ac_try) 2>&5
39500   ac_status=$?
39501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39502   (exit $ac_status); }; }; then
39503   ac_cv_type_signal=void
39504 else
39505   echo "$as_me: failed program was:" >&5
39506 sed 's/^/| /' conftest.$ac_ext >&5
39507
39508 ac_cv_type_signal=int
39509 fi
39510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39511 fi
39512 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39513 echo "${ECHO_T}$ac_cv_type_signal" >&6
39514
39515 cat >>confdefs.h <<_ACEOF
39516 #define RETSIGTYPE $ac_cv_type_signal
39517 _ACEOF
39518
39519
39520
39521 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39522 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39523 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39524   echo $ECHO_N "(cached) $ECHO_C" >&6
39525 else
39526   cat >conftest.$ac_ext <<_ACEOF
39527 /* confdefs.h.  */
39528 _ACEOF
39529 cat confdefs.h >>conftest.$ac_ext
39530 cat >>conftest.$ac_ext <<_ACEOF
39531 /* end confdefs.h.  */
39532 $ac_includes_default
39533 #include <signal.h>
39534
39535
39536 int
39537 main ()
39538 {
39539 if ((sig_atomic_t *) 0)
39540   return 0;
39541 if (sizeof (sig_atomic_t))
39542   return 0;
39543   ;
39544   return 0;
39545 }
39546 _ACEOF
39547 rm -f conftest.$ac_objext
39548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39549   (eval $ac_compile) 2>conftest.er1
39550   ac_status=$?
39551   grep -v '^ *+' conftest.er1 >conftest.err
39552   rm -f conftest.er1
39553   cat conftest.err >&5
39554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555   (exit $ac_status); } &&
39556          { ac_try='test -z "$ac_c_werror_flag"
39557                          || test ! -s conftest.err'
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); }; } &&
39563          { ac_try='test -s conftest.$ac_objext'
39564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565   (eval $ac_try) 2>&5
39566   ac_status=$?
39567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568   (exit $ac_status); }; }; then
39569   ac_cv_type_sig_atomic_t=yes
39570 else
39571   echo "$as_me: failed program was:" >&5
39572 sed 's/^/| /' conftest.$ac_ext >&5
39573
39574 ac_cv_type_sig_atomic_t=no
39575 fi
39576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39577 fi
39578 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39579 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39580 if test $ac_cv_type_sig_atomic_t = yes; then
39581   :
39582 else
39583
39584 cat >>confdefs.h <<_ACEOF
39585 #define sig_atomic_t int
39586 _ACEOF
39587
39588 fi
39589
39590
39591 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39592 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39593 if test "${ac_cv_type_uid_t+set}" = set; then
39594   echo $ECHO_N "(cached) $ECHO_C" >&6
39595 else
39596   cat >conftest.$ac_ext <<_ACEOF
39597 /* confdefs.h.  */
39598 _ACEOF
39599 cat confdefs.h >>conftest.$ac_ext
39600 cat >>conftest.$ac_ext <<_ACEOF
39601 /* end confdefs.h.  */
39602 #include <sys/types.h>
39603
39604 _ACEOF
39605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39606   $EGREP "uid_t" >/dev/null 2>&1; then
39607   ac_cv_type_uid_t=yes
39608 else
39609   ac_cv_type_uid_t=no
39610 fi
39611 rm -f conftest*
39612
39613 fi
39614 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39615 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39616 if test $ac_cv_type_uid_t = no; then
39617
39618 cat >>confdefs.h <<\_ACEOF
39619 #define uid_t int
39620 _ACEOF
39621
39622
39623 cat >>confdefs.h <<\_ACEOF
39624 #define gid_t int
39625 _ACEOF
39626
39627 fi
39628
39629
39630 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39631 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39632 if test "${ac_cv_header_time+set}" = set; then
39633   echo $ECHO_N "(cached) $ECHO_C" >&6
39634 else
39635   cat >conftest.$ac_ext <<_ACEOF
39636 /* confdefs.h.  */
39637 _ACEOF
39638 cat confdefs.h >>conftest.$ac_ext
39639 cat >>conftest.$ac_ext <<_ACEOF
39640 /* end confdefs.h.  */
39641 #include <sys/types.h>
39642 #include <sys/time.h>
39643 #include <time.h>
39644
39645 int
39646 main ()
39647 {
39648 if ((struct tm *) 0)
39649 return 0;
39650   ;
39651   return 0;
39652 }
39653 _ACEOF
39654 rm -f conftest.$ac_objext
39655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39656   (eval $ac_compile) 2>conftest.er1
39657   ac_status=$?
39658   grep -v '^ *+' conftest.er1 >conftest.err
39659   rm -f conftest.er1
39660   cat conftest.err >&5
39661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662   (exit $ac_status); } &&
39663          { ac_try='test -z "$ac_c_werror_flag"
39664                          || test ! -s conftest.err'
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); }; } &&
39670          { ac_try='test -s conftest.$ac_objext'
39671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39672   (eval $ac_try) 2>&5
39673   ac_status=$?
39674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675   (exit $ac_status); }; }; then
39676   ac_cv_header_time=yes
39677 else
39678   echo "$as_me: failed program was:" >&5
39679 sed 's/^/| /' conftest.$ac_ext >&5
39680
39681 ac_cv_header_time=no
39682 fi
39683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39684 fi
39685 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39686 echo "${ECHO_T}$ac_cv_header_time" >&6
39687 if test $ac_cv_header_time = yes; then
39688
39689 cat >>confdefs.h <<\_ACEOF
39690 #define TIME_WITH_SYS_TIME 1
39691 _ACEOF
39692
39693 fi
39694
39695 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39696 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39697 if test "${ac_cv_struct_tm+set}" = set; then
39698   echo $ECHO_N "(cached) $ECHO_C" >&6
39699 else
39700   cat >conftest.$ac_ext <<_ACEOF
39701 /* confdefs.h.  */
39702 _ACEOF
39703 cat confdefs.h >>conftest.$ac_ext
39704 cat >>conftest.$ac_ext <<_ACEOF
39705 /* end confdefs.h.  */
39706 #include <sys/types.h>
39707 #include <time.h>
39708
39709 int
39710 main ()
39711 {
39712 struct tm *tp; tp->tm_sec;
39713   ;
39714   return 0;
39715 }
39716 _ACEOF
39717 rm -f conftest.$ac_objext
39718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39719   (eval $ac_compile) 2>conftest.er1
39720   ac_status=$?
39721   grep -v '^ *+' conftest.er1 >conftest.err
39722   rm -f conftest.er1
39723   cat conftest.err >&5
39724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725   (exit $ac_status); } &&
39726          { ac_try='test -z "$ac_c_werror_flag"
39727                          || test ! -s conftest.err'
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); }; } &&
39733          { ac_try='test -s conftest.$ac_objext'
39734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39735   (eval $ac_try) 2>&5
39736   ac_status=$?
39737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738   (exit $ac_status); }; }; then
39739   ac_cv_struct_tm=time.h
39740 else
39741   echo "$as_me: failed program was:" >&5
39742 sed 's/^/| /' conftest.$ac_ext >&5
39743
39744 ac_cv_struct_tm=sys/time.h
39745 fi
39746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39747 fi
39748 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39749 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39750 if test $ac_cv_struct_tm = sys/time.h; then
39751
39752 cat >>confdefs.h <<\_ACEOF
39753 #define TM_IN_SYS_TIME 1
39754 _ACEOF
39755
39756 fi
39757
39758 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39759 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39760 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39761   echo $ECHO_N "(cached) $ECHO_C" >&6
39762 else
39763   cat >conftest.$ac_ext <<_ACEOF
39764 /* confdefs.h.  */
39765 _ACEOF
39766 cat confdefs.h >>conftest.$ac_ext
39767 cat >>conftest.$ac_ext <<_ACEOF
39768 /* end confdefs.h.  */
39769 $ac_includes_default
39770 int
39771 main ()
39772 {
39773 static struct stat ac_aggr;
39774 if (ac_aggr.st_blksize)
39775 return 0;
39776   ;
39777   return 0;
39778 }
39779 _ACEOF
39780 rm -f conftest.$ac_objext
39781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39782   (eval $ac_compile) 2>conftest.er1
39783   ac_status=$?
39784   grep -v '^ *+' conftest.er1 >conftest.err
39785   rm -f conftest.er1
39786   cat conftest.err >&5
39787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788   (exit $ac_status); } &&
39789          { ac_try='test -z "$ac_c_werror_flag"
39790                          || test ! -s conftest.err'
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); }; } &&
39796          { ac_try='test -s conftest.$ac_objext'
39797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39798   (eval $ac_try) 2>&5
39799   ac_status=$?
39800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39801   (exit $ac_status); }; }; then
39802   ac_cv_member_struct_stat_st_blksize=yes
39803 else
39804   echo "$as_me: failed program was:" >&5
39805 sed 's/^/| /' conftest.$ac_ext >&5
39806
39807 cat >conftest.$ac_ext <<_ACEOF
39808 /* confdefs.h.  */
39809 _ACEOF
39810 cat confdefs.h >>conftest.$ac_ext
39811 cat >>conftest.$ac_ext <<_ACEOF
39812 /* end confdefs.h.  */
39813 $ac_includes_default
39814 int
39815 main ()
39816 {
39817 static struct stat ac_aggr;
39818 if (sizeof ac_aggr.st_blksize)
39819 return 0;
39820   ;
39821   return 0;
39822 }
39823 _ACEOF
39824 rm -f conftest.$ac_objext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39826   (eval $ac_compile) 2>conftest.er1
39827   ac_status=$?
39828   grep -v '^ *+' conftest.er1 >conftest.err
39829   rm -f conftest.er1
39830   cat conftest.err >&5
39831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832   (exit $ac_status); } &&
39833          { ac_try='test -z "$ac_c_werror_flag"
39834                          || test ! -s conftest.err'
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); }; } &&
39840          { ac_try='test -s conftest.$ac_objext'
39841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842   (eval $ac_try) 2>&5
39843   ac_status=$?
39844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845   (exit $ac_status); }; }; then
39846   ac_cv_member_struct_stat_st_blksize=yes
39847 else
39848   echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39850
39851 ac_cv_member_struct_stat_st_blksize=no
39852 fi
39853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39854 fi
39855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39856 fi
39857 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39858 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39859 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39860
39861 cat >>confdefs.h <<_ACEOF
39862 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39863 _ACEOF
39864
39865
39866 fi
39867
39868 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39869 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39870 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39871   echo $ECHO_N "(cached) $ECHO_C" >&6
39872 else
39873   cat >conftest.$ac_ext <<_ACEOF
39874 /* confdefs.h.  */
39875 _ACEOF
39876 cat confdefs.h >>conftest.$ac_ext
39877 cat >>conftest.$ac_ext <<_ACEOF
39878 /* end confdefs.h.  */
39879 $ac_includes_default
39880 #include <pwd.h>
39881
39882 int
39883 main ()
39884 {
39885 static struct passwd ac_aggr;
39886 if (ac_aggr.pw_gecos)
39887 return 0;
39888   ;
39889   return 0;
39890 }
39891 _ACEOF
39892 rm -f conftest.$ac_objext
39893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39894   (eval $ac_compile) 2>conftest.er1
39895   ac_status=$?
39896   grep -v '^ *+' conftest.er1 >conftest.err
39897   rm -f conftest.er1
39898   cat conftest.err >&5
39899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); } &&
39901          { ac_try='test -z "$ac_c_werror_flag"
39902                          || test ! -s conftest.err'
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); }; } &&
39908          { ac_try='test -s conftest.$ac_objext'
39909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910   (eval $ac_try) 2>&5
39911   ac_status=$?
39912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913   (exit $ac_status); }; }; then
39914   ac_cv_member_struct_passwd_pw_gecos=yes
39915 else
39916   echo "$as_me: failed program was:" >&5
39917 sed 's/^/| /' conftest.$ac_ext >&5
39918
39919 cat >conftest.$ac_ext <<_ACEOF
39920 /* confdefs.h.  */
39921 _ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h.  */
39925 $ac_includes_default
39926 #include <pwd.h>
39927
39928 int
39929 main ()
39930 {
39931 static struct passwd ac_aggr;
39932 if (sizeof ac_aggr.pw_gecos)
39933 return 0;
39934   ;
39935   return 0;
39936 }
39937 _ACEOF
39938 rm -f conftest.$ac_objext
39939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39940   (eval $ac_compile) 2>conftest.er1
39941   ac_status=$?
39942   grep -v '^ *+' conftest.er1 >conftest.err
39943   rm -f conftest.er1
39944   cat conftest.err >&5
39945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946   (exit $ac_status); } &&
39947          { ac_try='test -z "$ac_c_werror_flag"
39948                          || test ! -s conftest.err'
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); }; } &&
39954          { ac_try='test -s conftest.$ac_objext'
39955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956   (eval $ac_try) 2>&5
39957   ac_status=$?
39958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959   (exit $ac_status); }; }; then
39960   ac_cv_member_struct_passwd_pw_gecos=yes
39961 else
39962   echo "$as_me: failed program was:" >&5
39963 sed 's/^/| /' conftest.$ac_ext >&5
39964
39965 ac_cv_member_struct_passwd_pw_gecos=no
39966 fi
39967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39968 fi
39969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39970 fi
39971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39972 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39973 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39974
39975 cat >>confdefs.h <<_ACEOF
39976 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39977 _ACEOF
39978
39979
39980 fi
39981
39982 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39983 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39984 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39985   echo $ECHO_N "(cached) $ECHO_C" >&6
39986 else
39987   cat >conftest.$ac_ext <<_ACEOF
39988 /* confdefs.h.  */
39989 _ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h.  */
39993 $ac_includes_default
39994 #include <pwd.h>
39995
39996 int
39997 main ()
39998 {
39999 static struct passwd ac_aggr;
40000 if (ac_aggr.pw_passwd)
40001 return 0;
40002   ;
40003   return 0;
40004 }
40005 _ACEOF
40006 rm -f conftest.$ac_objext
40007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40008   (eval $ac_compile) 2>conftest.er1
40009   ac_status=$?
40010   grep -v '^ *+' conftest.er1 >conftest.err
40011   rm -f conftest.er1
40012   cat conftest.err >&5
40013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014   (exit $ac_status); } &&
40015          { ac_try='test -z "$ac_c_werror_flag"
40016                          || test ! -s conftest.err'
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); }; } &&
40022          { ac_try='test -s conftest.$ac_objext'
40023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40024   (eval $ac_try) 2>&5
40025   ac_status=$?
40026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027   (exit $ac_status); }; }; then
40028   ac_cv_member_struct_passwd_pw_passwd=yes
40029 else
40030   echo "$as_me: failed program was:" >&5
40031 sed 's/^/| /' conftest.$ac_ext >&5
40032
40033 cat >conftest.$ac_ext <<_ACEOF
40034 /* confdefs.h.  */
40035 _ACEOF
40036 cat confdefs.h >>conftest.$ac_ext
40037 cat >>conftest.$ac_ext <<_ACEOF
40038 /* end confdefs.h.  */
40039 $ac_includes_default
40040 #include <pwd.h>
40041
40042 int
40043 main ()
40044 {
40045 static struct passwd ac_aggr;
40046 if (sizeof ac_aggr.pw_passwd)
40047 return 0;
40048   ;
40049   return 0;
40050 }
40051 _ACEOF
40052 rm -f conftest.$ac_objext
40053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40054   (eval $ac_compile) 2>conftest.er1
40055   ac_status=$?
40056   grep -v '^ *+' conftest.er1 >conftest.err
40057   rm -f conftest.er1
40058   cat conftest.err >&5
40059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060   (exit $ac_status); } &&
40061          { ac_try='test -z "$ac_c_werror_flag"
40062                          || test ! -s conftest.err'
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); }; } &&
40068          { ac_try='test -s conftest.$ac_objext'
40069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40070   (eval $ac_try) 2>&5
40071   ac_status=$?
40072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073   (exit $ac_status); }; }; then
40074   ac_cv_member_struct_passwd_pw_passwd=yes
40075 else
40076   echo "$as_me: failed program was:" >&5
40077 sed 's/^/| /' conftest.$ac_ext >&5
40078
40079 ac_cv_member_struct_passwd_pw_passwd=no
40080 fi
40081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40082 fi
40083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40084 fi
40085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40086 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40087 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40088
40089 cat >>confdefs.h <<_ACEOF
40090 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40091 _ACEOF
40092
40093
40094 fi
40095
40096
40097 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40098 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40099 if test "${ol_cv_c_upper_lower+set}" = set; then
40100   echo $ECHO_N "(cached) $ECHO_C" >&6
40101 else
40102
40103         if test "$cross_compiling" = yes; then
40104   ol_cv_c_upper_lower=safe
40105 else
40106   cat >conftest.$ac_ext <<_ACEOF
40107 /* confdefs.h.  */
40108 _ACEOF
40109 cat confdefs.h >>conftest.$ac_ext
40110 cat >>conftest.$ac_ext <<_ACEOF
40111 /* end confdefs.h.  */
40112
40113 #include <ctype.h>
40114 main()
40115 {
40116         if ('C' == toupper('C'))
40117                 exit(0);
40118         else
40119                 exit(1);
40120 }
40121 _ACEOF
40122 rm -f conftest$ac_exeext
40123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40124   (eval $ac_link) 2>&5
40125   ac_status=$?
40126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40129   (eval $ac_try) 2>&5
40130   ac_status=$?
40131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132   (exit $ac_status); }; }; then
40133   ol_cv_c_upper_lower=no
40134 else
40135   echo "$as_me: program exited with status $ac_status" >&5
40136 echo "$as_me: failed program was:" >&5
40137 sed 's/^/| /' conftest.$ac_ext >&5
40138
40139 ( exit $ac_status )
40140 ol_cv_c_upper_lower=yes
40141 fi
40142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40143 fi
40144 fi
40145 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40146 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40147 if test $ol_cv_c_upper_lower != no ; then
40148
40149 cat >>confdefs.h <<\_ACEOF
40150 #define C_UPPER_LOWER 1
40151 _ACEOF
40152
40153 fi
40154
40155 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40156 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40157 if test "${ac_cv_c_const+set}" = set; then
40158   echo $ECHO_N "(cached) $ECHO_C" >&6
40159 else
40160   cat >conftest.$ac_ext <<_ACEOF
40161 /* confdefs.h.  */
40162 _ACEOF
40163 cat confdefs.h >>conftest.$ac_ext
40164 cat >>conftest.$ac_ext <<_ACEOF
40165 /* end confdefs.h.  */
40166
40167 int
40168 main ()
40169 {
40170 /* FIXME: Include the comments suggested by Paul. */
40171 #ifndef __cplusplus
40172   /* Ultrix mips cc rejects this.  */
40173   typedef int charset[2];
40174   const charset x;
40175   /* SunOS 4.1.1 cc rejects this.  */
40176   char const *const *ccp;
40177   char **p;
40178   /* NEC SVR4.0.2 mips cc rejects this.  */
40179   struct point {int x, y;};
40180   static struct point const zero = {0,0};
40181   /* AIX XL C 1.02.0.0 rejects this.
40182      It does not let you subtract one const X* pointer from another in
40183      an arm of an if-expression whose if-part is not a constant
40184      expression */
40185   const char *g = "string";
40186   ccp = &g + (g ? g-g : 0);
40187   /* HPUX 7.0 cc rejects these. */
40188   ++ccp;
40189   p = (char**) ccp;
40190   ccp = (char const *const *) p;
40191   { /* SCO 3.2v4 cc rejects this.  */
40192     char *t;
40193     char const *s = 0 ? (char *) 0 : (char const *) 0;
40194
40195     *t++ = 0;
40196   }
40197   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
40198     int x[] = {25, 17};
40199     const int *foo = &x[0];
40200     ++foo;
40201   }
40202   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40203     typedef const int *iptr;
40204     iptr p = 0;
40205     ++p;
40206   }
40207   { /* AIX XL C 1.02.0.0 rejects this saying
40208        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40209     struct s { int j; const int *ap[3]; };
40210     struct s *b; b->j = 5;
40211   }
40212   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40213     const int foo = 10;
40214   }
40215 #endif
40216
40217   ;
40218   return 0;
40219 }
40220 _ACEOF
40221 rm -f conftest.$ac_objext
40222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40223   (eval $ac_compile) 2>conftest.er1
40224   ac_status=$?
40225   grep -v '^ *+' conftest.er1 >conftest.err
40226   rm -f conftest.er1
40227   cat conftest.err >&5
40228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40229   (exit $ac_status); } &&
40230          { ac_try='test -z "$ac_c_werror_flag"
40231                          || test ! -s conftest.err'
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); }; } &&
40237          { ac_try='test -s conftest.$ac_objext'
40238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239   (eval $ac_try) 2>&5
40240   ac_status=$?
40241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242   (exit $ac_status); }; }; then
40243   ac_cv_c_const=yes
40244 else
40245   echo "$as_me: failed program was:" >&5
40246 sed 's/^/| /' conftest.$ac_ext >&5
40247
40248 ac_cv_c_const=no
40249 fi
40250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40251 fi
40252 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40253 echo "${ECHO_T}$ac_cv_c_const" >&6
40254 if test $ac_cv_c_const = no; then
40255
40256 cat >>confdefs.h <<\_ACEOF
40257 #define const
40258 _ACEOF
40259
40260 fi
40261
40262 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40263 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40264 if test "${ol_cv_c_volatile+set}" = set; then
40265   echo $ECHO_N "(cached) $ECHO_C" >&6
40266 else
40267   cat >conftest.$ac_ext <<_ACEOF
40268 /* confdefs.h.  */
40269 _ACEOF
40270 cat confdefs.h >>conftest.$ac_ext
40271 cat >>conftest.$ac_ext <<_ACEOF
40272 /* end confdefs.h.  */
40273 int x, y, z;
40274 int
40275 main ()
40276 {
40277 volatile int a; int * volatile b = x ? &y : &z;
40278       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40279       *b = 0;
40280   ;
40281   return 0;
40282 }
40283 _ACEOF
40284 rm -f conftest.$ac_objext
40285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40286   (eval $ac_compile) 2>conftest.er1
40287   ac_status=$?
40288   grep -v '^ *+' conftest.er1 >conftest.err
40289   rm -f conftest.er1
40290   cat conftest.err >&5
40291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292   (exit $ac_status); } &&
40293          { ac_try='test -z "$ac_c_werror_flag"
40294                          || test ! -s conftest.err'
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); }; } &&
40300          { ac_try='test -s conftest.$ac_objext'
40301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40302   (eval $ac_try) 2>&5
40303   ac_status=$?
40304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40305   (exit $ac_status); }; }; then
40306   ol_cv_c_volatile=yes
40307 else
40308   echo "$as_me: failed program was:" >&5
40309 sed 's/^/| /' conftest.$ac_ext >&5
40310
40311 ol_cv_c_volatile=no
40312 fi
40313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40314 fi
40315 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40316 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40317   if test $ol_cv_c_volatile = yes; then
40318     :
40319   else
40320
40321 cat >>confdefs.h <<\_ACEOF
40322 #define volatile
40323 _ACEOF
40324
40325   fi
40326
40327
40328 if test $cross_compiling = yes ; then
40329         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40330 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40331
40332 cat >>confdefs.h <<\_ACEOF
40333 #define CROSS_COMPILING 1
40334 _ACEOF
40335
40336 else
40337         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40338 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40339 if test "${ac_cv_c_bigendian+set}" = set; then
40340   echo $ECHO_N "(cached) $ECHO_C" >&6
40341 else
40342   # See if sys/param.h defines the BYTE_ORDER macro.
40343 cat >conftest.$ac_ext <<_ACEOF
40344 /* confdefs.h.  */
40345 _ACEOF
40346 cat confdefs.h >>conftest.$ac_ext
40347 cat >>conftest.$ac_ext <<_ACEOF
40348 /* end confdefs.h.  */
40349 #include <sys/types.h>
40350 #include <sys/param.h>
40351
40352 int
40353 main ()
40354 {
40355 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40356  bogus endian macros
40357 #endif
40358
40359   ;
40360   return 0;
40361 }
40362 _ACEOF
40363 rm -f conftest.$ac_objext
40364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40365   (eval $ac_compile) 2>conftest.er1
40366   ac_status=$?
40367   grep -v '^ *+' conftest.er1 >conftest.err
40368   rm -f conftest.er1
40369   cat conftest.err >&5
40370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40371   (exit $ac_status); } &&
40372          { ac_try='test -z "$ac_c_werror_flag"
40373                          || test ! -s conftest.err'
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); }; } &&
40379          { ac_try='test -s conftest.$ac_objext'
40380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40381   (eval $ac_try) 2>&5
40382   ac_status=$?
40383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384   (exit $ac_status); }; }; then
40385   # It does; now see whether it defined to BIG_ENDIAN or not.
40386 cat >conftest.$ac_ext <<_ACEOF
40387 /* confdefs.h.  */
40388 _ACEOF
40389 cat confdefs.h >>conftest.$ac_ext
40390 cat >>conftest.$ac_ext <<_ACEOF
40391 /* end confdefs.h.  */
40392 #include <sys/types.h>
40393 #include <sys/param.h>
40394
40395 int
40396 main ()
40397 {
40398 #if BYTE_ORDER != BIG_ENDIAN
40399  not big endian
40400 #endif
40401
40402   ;
40403   return 0;
40404 }
40405 _ACEOF
40406 rm -f conftest.$ac_objext
40407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40408   (eval $ac_compile) 2>conftest.er1
40409   ac_status=$?
40410   grep -v '^ *+' conftest.er1 >conftest.err
40411   rm -f conftest.er1
40412   cat conftest.err >&5
40413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414   (exit $ac_status); } &&
40415          { ac_try='test -z "$ac_c_werror_flag"
40416                          || test ! -s conftest.err'
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); }; } &&
40422          { ac_try='test -s conftest.$ac_objext'
40423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40424   (eval $ac_try) 2>&5
40425   ac_status=$?
40426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427   (exit $ac_status); }; }; then
40428   ac_cv_c_bigendian=yes
40429 else
40430   echo "$as_me: failed program was:" >&5
40431 sed 's/^/| /' conftest.$ac_ext >&5
40432
40433 ac_cv_c_bigendian=no
40434 fi
40435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40436 else
40437   echo "$as_me: failed program was:" >&5
40438 sed 's/^/| /' conftest.$ac_ext >&5
40439
40440 # It does not; compile a test program.
40441 if test "$cross_compiling" = yes; then
40442   # try to guess the endianness by grepping values into an object file
40443   ac_cv_c_bigendian=unknown
40444   cat >conftest.$ac_ext <<_ACEOF
40445 /* confdefs.h.  */
40446 _ACEOF
40447 cat confdefs.h >>conftest.$ac_ext
40448 cat >>conftest.$ac_ext <<_ACEOF
40449 /* end confdefs.h.  */
40450 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40451 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40452 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40453 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40454 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40455 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40456 int
40457 main ()
40458 {
40459  _ascii (); _ebcdic ();
40460   ;
40461   return 0;
40462 }
40463 _ACEOF
40464 rm -f conftest.$ac_objext
40465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40466   (eval $ac_compile) 2>conftest.er1
40467   ac_status=$?
40468   grep -v '^ *+' conftest.er1 >conftest.err
40469   rm -f conftest.er1
40470   cat conftest.err >&5
40471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472   (exit $ac_status); } &&
40473          { ac_try='test -z "$ac_c_werror_flag"
40474                          || test ! -s conftest.err'
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); }; } &&
40480          { ac_try='test -s conftest.$ac_objext'
40481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482   (eval $ac_try) 2>&5
40483   ac_status=$?
40484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); }; }; then
40486   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40487   ac_cv_c_bigendian=yes
40488 fi
40489 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40490   if test "$ac_cv_c_bigendian" = unknown; then
40491     ac_cv_c_bigendian=no
40492   else
40493     # finding both strings is unlikely to happen, but who knows?
40494     ac_cv_c_bigendian=unknown
40495   fi
40496 fi
40497 else
40498   echo "$as_me: failed program was:" >&5
40499 sed 's/^/| /' conftest.$ac_ext >&5
40500
40501 fi
40502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40503 else
40504   cat >conftest.$ac_ext <<_ACEOF
40505 /* confdefs.h.  */
40506 _ACEOF
40507 cat confdefs.h >>conftest.$ac_ext
40508 cat >>conftest.$ac_ext <<_ACEOF
40509 /* end confdefs.h.  */
40510 int
40511 main ()
40512 {
40513   /* Are we little or big endian?  From Harbison&Steele.  */
40514   union
40515   {
40516     long l;
40517     char c[sizeof (long)];
40518   } u;
40519   u.l = 1;
40520   exit (u.c[sizeof (long) - 1] == 1);
40521 }
40522 _ACEOF
40523 rm -f conftest$ac_exeext
40524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40525   (eval $ac_link) 2>&5
40526   ac_status=$?
40527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40530   (eval $ac_try) 2>&5
40531   ac_status=$?
40532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533   (exit $ac_status); }; }; then
40534   ac_cv_c_bigendian=no
40535 else
40536   echo "$as_me: program exited with status $ac_status" >&5
40537 echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40539
40540 ( exit $ac_status )
40541 ac_cv_c_bigendian=yes
40542 fi
40543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40544 fi
40545 fi
40546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40547 fi
40548 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40549 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40550 case $ac_cv_c_bigendian in
40551   yes)
40552
40553 cat >>confdefs.h <<\_ACEOF
40554 #define WORDS_BIGENDIAN 1
40555 _ACEOF
40556  ;;
40557   no)
40558      ;;
40559   *)
40560     { { echo "$as_me:$LINENO: error: unknown endianness
40561 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40562 echo "$as_me: error: unknown endianness
40563 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40564    { (exit 1); exit 1; }; } ;;
40565 esac
40566
40567 fi
40568
40569 echo "$as_me:$LINENO: checking for short" >&5
40570 echo $ECHO_N "checking for short... $ECHO_C" >&6
40571 if test "${ac_cv_type_short+set}" = set; then
40572   echo $ECHO_N "(cached) $ECHO_C" >&6
40573 else
40574   cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h.  */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h.  */
40580 $ac_includes_default
40581 int
40582 main ()
40583 {
40584 if ((short *) 0)
40585   return 0;
40586 if (sizeof (short))
40587   return 0;
40588   ;
40589   return 0;
40590 }
40591 _ACEOF
40592 rm -f conftest.$ac_objext
40593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40594   (eval $ac_compile) 2>conftest.er1
40595   ac_status=$?
40596   grep -v '^ *+' conftest.er1 >conftest.err
40597   rm -f conftest.er1
40598   cat conftest.err >&5
40599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600   (exit $ac_status); } &&
40601          { ac_try='test -z "$ac_c_werror_flag"
40602                          || test ! -s conftest.err'
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); }; } &&
40608          { ac_try='test -s conftest.$ac_objext'
40609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40610   (eval $ac_try) 2>&5
40611   ac_status=$?
40612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40613   (exit $ac_status); }; }; then
40614   ac_cv_type_short=yes
40615 else
40616   echo "$as_me: failed program was:" >&5
40617 sed 's/^/| /' conftest.$ac_ext >&5
40618
40619 ac_cv_type_short=no
40620 fi
40621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40622 fi
40623 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40624 echo "${ECHO_T}$ac_cv_type_short" >&6
40625
40626 echo "$as_me:$LINENO: checking size of short" >&5
40627 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40628 if test "${ac_cv_sizeof_short+set}" = set; then
40629   echo $ECHO_N "(cached) $ECHO_C" >&6
40630 else
40631   if test "$ac_cv_type_short" = yes; then
40632   # The cast to unsigned long works around a bug in the HP C Compiler
40633   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40634   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40635   # This bug is HP SR number 8606223364.
40636   if test "$cross_compiling" = yes; then
40637   # Depending upon the size, compute the lo and hi bounds.
40638 cat >conftest.$ac_ext <<_ACEOF
40639 /* confdefs.h.  */
40640 _ACEOF
40641 cat confdefs.h >>conftest.$ac_ext
40642 cat >>conftest.$ac_ext <<_ACEOF
40643 /* end confdefs.h.  */
40644 $ac_includes_default
40645 int
40646 main ()
40647 {
40648 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40649 test_array [0] = 0
40650
40651   ;
40652   return 0;
40653 }
40654 _ACEOF
40655 rm -f conftest.$ac_objext
40656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40657   (eval $ac_compile) 2>conftest.er1
40658   ac_status=$?
40659   grep -v '^ *+' conftest.er1 >conftest.err
40660   rm -f conftest.er1
40661   cat conftest.err >&5
40662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663   (exit $ac_status); } &&
40664          { ac_try='test -z "$ac_c_werror_flag"
40665                          || test ! -s conftest.err'
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); }; } &&
40671          { ac_try='test -s conftest.$ac_objext'
40672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673   (eval $ac_try) 2>&5
40674   ac_status=$?
40675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676   (exit $ac_status); }; }; then
40677   ac_lo=0 ac_mid=0
40678   while :; do
40679     cat >conftest.$ac_ext <<_ACEOF
40680 /* confdefs.h.  */
40681 _ACEOF
40682 cat confdefs.h >>conftest.$ac_ext
40683 cat >>conftest.$ac_ext <<_ACEOF
40684 /* end confdefs.h.  */
40685 $ac_includes_default
40686 int
40687 main ()
40688 {
40689 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40690 test_array [0] = 0
40691
40692   ;
40693   return 0;
40694 }
40695 _ACEOF
40696 rm -f conftest.$ac_objext
40697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40698   (eval $ac_compile) 2>conftest.er1
40699   ac_status=$?
40700   grep -v '^ *+' conftest.er1 >conftest.err
40701   rm -f conftest.er1
40702   cat conftest.err >&5
40703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704   (exit $ac_status); } &&
40705          { ac_try='test -z "$ac_c_werror_flag"
40706                          || test ! -s conftest.err'
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); }; } &&
40712          { ac_try='test -s conftest.$ac_objext'
40713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40714   (eval $ac_try) 2>&5
40715   ac_status=$?
40716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717   (exit $ac_status); }; }; then
40718   ac_hi=$ac_mid; break
40719 else
40720   echo "$as_me: failed program was:" >&5
40721 sed 's/^/| /' conftest.$ac_ext >&5
40722
40723 ac_lo=`expr $ac_mid + 1`
40724                     if test $ac_lo -le $ac_mid; then
40725                       ac_lo= ac_hi=
40726                       break
40727                     fi
40728                     ac_mid=`expr 2 '*' $ac_mid + 1`
40729 fi
40730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40731   done
40732 else
40733   echo "$as_me: failed program was:" >&5
40734 sed 's/^/| /' conftest.$ac_ext >&5
40735
40736 cat >conftest.$ac_ext <<_ACEOF
40737 /* confdefs.h.  */
40738 _ACEOF
40739 cat confdefs.h >>conftest.$ac_ext
40740 cat >>conftest.$ac_ext <<_ACEOF
40741 /* end confdefs.h.  */
40742 $ac_includes_default
40743 int
40744 main ()
40745 {
40746 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40747 test_array [0] = 0
40748
40749   ;
40750   return 0;
40751 }
40752 _ACEOF
40753 rm -f conftest.$ac_objext
40754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40755   (eval $ac_compile) 2>conftest.er1
40756   ac_status=$?
40757   grep -v '^ *+' conftest.er1 >conftest.err
40758   rm -f conftest.er1
40759   cat conftest.err >&5
40760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40761   (exit $ac_status); } &&
40762          { ac_try='test -z "$ac_c_werror_flag"
40763                          || test ! -s conftest.err'
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); }; } &&
40769          { ac_try='test -s conftest.$ac_objext'
40770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40771   (eval $ac_try) 2>&5
40772   ac_status=$?
40773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774   (exit $ac_status); }; }; then
40775   ac_hi=-1 ac_mid=-1
40776   while :; do
40777     cat >conftest.$ac_ext <<_ACEOF
40778 /* confdefs.h.  */
40779 _ACEOF
40780 cat confdefs.h >>conftest.$ac_ext
40781 cat >>conftest.$ac_ext <<_ACEOF
40782 /* end confdefs.h.  */
40783 $ac_includes_default
40784 int
40785 main ()
40786 {
40787 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40788 test_array [0] = 0
40789
40790   ;
40791   return 0;
40792 }
40793 _ACEOF
40794 rm -f conftest.$ac_objext
40795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40796   (eval $ac_compile) 2>conftest.er1
40797   ac_status=$?
40798   grep -v '^ *+' conftest.er1 >conftest.err
40799   rm -f conftest.er1
40800   cat conftest.err >&5
40801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802   (exit $ac_status); } &&
40803          { ac_try='test -z "$ac_c_werror_flag"
40804                          || test ! -s conftest.err'
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); }; } &&
40810          { ac_try='test -s conftest.$ac_objext'
40811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40812   (eval $ac_try) 2>&5
40813   ac_status=$?
40814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815   (exit $ac_status); }; }; then
40816   ac_lo=$ac_mid; break
40817 else
40818   echo "$as_me: failed program was:" >&5
40819 sed 's/^/| /' conftest.$ac_ext >&5
40820
40821 ac_hi=`expr '(' $ac_mid ')' - 1`
40822                        if test $ac_mid -le $ac_hi; then
40823                          ac_lo= ac_hi=
40824                          break
40825                        fi
40826                        ac_mid=`expr 2 '*' $ac_mid`
40827 fi
40828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40829   done
40830 else
40831   echo "$as_me: failed program was:" >&5
40832 sed 's/^/| /' conftest.$ac_ext >&5
40833
40834 ac_lo= ac_hi=
40835 fi
40836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40837 fi
40838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40839 # Binary search between lo and hi bounds.
40840 while test "x$ac_lo" != "x$ac_hi"; do
40841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40842   cat >conftest.$ac_ext <<_ACEOF
40843 /* confdefs.h.  */
40844 _ACEOF
40845 cat confdefs.h >>conftest.$ac_ext
40846 cat >>conftest.$ac_ext <<_ACEOF
40847 /* end confdefs.h.  */
40848 $ac_includes_default
40849 int
40850 main ()
40851 {
40852 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40853 test_array [0] = 0
40854
40855   ;
40856   return 0;
40857 }
40858 _ACEOF
40859 rm -f conftest.$ac_objext
40860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40861   (eval $ac_compile) 2>conftest.er1
40862   ac_status=$?
40863   grep -v '^ *+' conftest.er1 >conftest.err
40864   rm -f conftest.er1
40865   cat conftest.err >&5
40866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40867   (exit $ac_status); } &&
40868          { ac_try='test -z "$ac_c_werror_flag"
40869                          || test ! -s conftest.err'
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); }; } &&
40875          { ac_try='test -s conftest.$ac_objext'
40876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40877   (eval $ac_try) 2>&5
40878   ac_status=$?
40879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40880   (exit $ac_status); }; }; then
40881   ac_hi=$ac_mid
40882 else
40883   echo "$as_me: failed program was:" >&5
40884 sed 's/^/| /' conftest.$ac_ext >&5
40885
40886 ac_lo=`expr '(' $ac_mid ')' + 1`
40887 fi
40888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40889 done
40890 case $ac_lo in
40891 ?*) ac_cv_sizeof_short=$ac_lo;;
40892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40893 See \`config.log' for more details." >&5
40894 echo "$as_me: error: cannot compute sizeof (short), 77
40895 See \`config.log' for more details." >&2;}
40896    { (exit 1); exit 1; }; } ;;
40897 esac
40898 else
40899   if test "$cross_compiling" = yes; then
40900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40901 See \`config.log' for more details." >&5
40902 echo "$as_me: error: cannot run test program while cross compiling
40903 See \`config.log' for more details." >&2;}
40904    { (exit 1); exit 1; }; }
40905 else
40906   cat >conftest.$ac_ext <<_ACEOF
40907 /* confdefs.h.  */
40908 _ACEOF
40909 cat confdefs.h >>conftest.$ac_ext
40910 cat >>conftest.$ac_ext <<_ACEOF
40911 /* end confdefs.h.  */
40912 $ac_includes_default
40913 long longval () { return (long) (sizeof (short)); }
40914 unsigned long ulongval () { return (long) (sizeof (short)); }
40915 #include <stdio.h>
40916 #include <stdlib.h>
40917 int
40918 main ()
40919 {
40920
40921   FILE *f = fopen ("conftest.val", "w");
40922   if (! f)
40923     exit (1);
40924   if (((long) (sizeof (short))) < 0)
40925     {
40926       long i = longval ();
40927       if (i != ((long) (sizeof (short))))
40928         exit (1);
40929       fprintf (f, "%ld\n", i);
40930     }
40931   else
40932     {
40933       unsigned long i = ulongval ();
40934       if (i != ((long) (sizeof (short))))
40935         exit (1);
40936       fprintf (f, "%lu\n", i);
40937     }
40938   exit (ferror (f) || fclose (f) != 0);
40939
40940   ;
40941   return 0;
40942 }
40943 _ACEOF
40944 rm -f conftest$ac_exeext
40945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40946   (eval $ac_link) 2>&5
40947   ac_status=$?
40948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40951   (eval $ac_try) 2>&5
40952   ac_status=$?
40953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954   (exit $ac_status); }; }; then
40955   ac_cv_sizeof_short=`cat conftest.val`
40956 else
40957   echo "$as_me: program exited with status $ac_status" >&5
40958 echo "$as_me: failed program was:" >&5
40959 sed 's/^/| /' conftest.$ac_ext >&5
40960
40961 ( exit $ac_status )
40962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40963 See \`config.log' for more details." >&5
40964 echo "$as_me: error: cannot compute sizeof (short), 77
40965 See \`config.log' for more details." >&2;}
40966    { (exit 1); exit 1; }; }
40967 fi
40968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40969 fi
40970 fi
40971 rm -f conftest.val
40972 else
40973   ac_cv_sizeof_short=0
40974 fi
40975 fi
40976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40977 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40978 cat >>confdefs.h <<_ACEOF
40979 #define SIZEOF_SHORT $ac_cv_sizeof_short
40980 _ACEOF
40981
40982
40983 echo "$as_me:$LINENO: checking for int" >&5
40984 echo $ECHO_N "checking for int... $ECHO_C" >&6
40985 if test "${ac_cv_type_int+set}" = set; then
40986   echo $ECHO_N "(cached) $ECHO_C" >&6
40987 else
40988   cat >conftest.$ac_ext <<_ACEOF
40989 /* confdefs.h.  */
40990 _ACEOF
40991 cat confdefs.h >>conftest.$ac_ext
40992 cat >>conftest.$ac_ext <<_ACEOF
40993 /* end confdefs.h.  */
40994 $ac_includes_default
40995 int
40996 main ()
40997 {
40998 if ((int *) 0)
40999   return 0;
41000 if (sizeof (int))
41001   return 0;
41002   ;
41003   return 0;
41004 }
41005 _ACEOF
41006 rm -f conftest.$ac_objext
41007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41008   (eval $ac_compile) 2>conftest.er1
41009   ac_status=$?
41010   grep -v '^ *+' conftest.er1 >conftest.err
41011   rm -f conftest.er1
41012   cat conftest.err >&5
41013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014   (exit $ac_status); } &&
41015          { ac_try='test -z "$ac_c_werror_flag"
41016                          || test ! -s conftest.err'
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); }; } &&
41022          { ac_try='test -s conftest.$ac_objext'
41023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41024   (eval $ac_try) 2>&5
41025   ac_status=$?
41026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41027   (exit $ac_status); }; }; then
41028   ac_cv_type_int=yes
41029 else
41030   echo "$as_me: failed program was:" >&5
41031 sed 's/^/| /' conftest.$ac_ext >&5
41032
41033 ac_cv_type_int=no
41034 fi
41035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41036 fi
41037 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
41038 echo "${ECHO_T}$ac_cv_type_int" >&6
41039
41040 echo "$as_me:$LINENO: checking size of int" >&5
41041 echo $ECHO_N "checking size of int... $ECHO_C" >&6
41042 if test "${ac_cv_sizeof_int+set}" = set; then
41043   echo $ECHO_N "(cached) $ECHO_C" >&6
41044 else
41045   if test "$ac_cv_type_int" = yes; then
41046   # The cast to unsigned long works around a bug in the HP C Compiler
41047   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41048   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41049   # This bug is HP SR number 8606223364.
41050   if test "$cross_compiling" = yes; then
41051   # Depending upon the size, compute the lo and hi bounds.
41052 cat >conftest.$ac_ext <<_ACEOF
41053 /* confdefs.h.  */
41054 _ACEOF
41055 cat confdefs.h >>conftest.$ac_ext
41056 cat >>conftest.$ac_ext <<_ACEOF
41057 /* end confdefs.h.  */
41058 $ac_includes_default
41059 int
41060 main ()
41061 {
41062 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41063 test_array [0] = 0
41064
41065   ;
41066   return 0;
41067 }
41068 _ACEOF
41069 rm -f conftest.$ac_objext
41070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41071   (eval $ac_compile) 2>conftest.er1
41072   ac_status=$?
41073   grep -v '^ *+' conftest.er1 >conftest.err
41074   rm -f conftest.er1
41075   cat conftest.err >&5
41076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077   (exit $ac_status); } &&
41078          { ac_try='test -z "$ac_c_werror_flag"
41079                          || test ! -s conftest.err'
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); }; } &&
41085          { ac_try='test -s conftest.$ac_objext'
41086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41087   (eval $ac_try) 2>&5
41088   ac_status=$?
41089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090   (exit $ac_status); }; }; then
41091   ac_lo=0 ac_mid=0
41092   while :; do
41093     cat >conftest.$ac_ext <<_ACEOF
41094 /* confdefs.h.  */
41095 _ACEOF
41096 cat confdefs.h >>conftest.$ac_ext
41097 cat >>conftest.$ac_ext <<_ACEOF
41098 /* end confdefs.h.  */
41099 $ac_includes_default
41100 int
41101 main ()
41102 {
41103 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41104 test_array [0] = 0
41105
41106   ;
41107   return 0;
41108 }
41109 _ACEOF
41110 rm -f conftest.$ac_objext
41111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41112   (eval $ac_compile) 2>conftest.er1
41113   ac_status=$?
41114   grep -v '^ *+' conftest.er1 >conftest.err
41115   rm -f conftest.er1
41116   cat conftest.err >&5
41117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41118   (exit $ac_status); } &&
41119          { ac_try='test -z "$ac_c_werror_flag"
41120                          || test ! -s conftest.err'
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); }; } &&
41126          { ac_try='test -s conftest.$ac_objext'
41127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41128   (eval $ac_try) 2>&5
41129   ac_status=$?
41130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41131   (exit $ac_status); }; }; then
41132   ac_hi=$ac_mid; break
41133 else
41134   echo "$as_me: failed program was:" >&5
41135 sed 's/^/| /' conftest.$ac_ext >&5
41136
41137 ac_lo=`expr $ac_mid + 1`
41138                     if test $ac_lo -le $ac_mid; then
41139                       ac_lo= ac_hi=
41140                       break
41141                     fi
41142                     ac_mid=`expr 2 '*' $ac_mid + 1`
41143 fi
41144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41145   done
41146 else
41147   echo "$as_me: failed program was:" >&5
41148 sed 's/^/| /' conftest.$ac_ext >&5
41149
41150 cat >conftest.$ac_ext <<_ACEOF
41151 /* confdefs.h.  */
41152 _ACEOF
41153 cat confdefs.h >>conftest.$ac_ext
41154 cat >>conftest.$ac_ext <<_ACEOF
41155 /* end confdefs.h.  */
41156 $ac_includes_default
41157 int
41158 main ()
41159 {
41160 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41161 test_array [0] = 0
41162
41163   ;
41164   return 0;
41165 }
41166 _ACEOF
41167 rm -f conftest.$ac_objext
41168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41169   (eval $ac_compile) 2>conftest.er1
41170   ac_status=$?
41171   grep -v '^ *+' conftest.er1 >conftest.err
41172   rm -f conftest.er1
41173   cat conftest.err >&5
41174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175   (exit $ac_status); } &&
41176          { ac_try='test -z "$ac_c_werror_flag"
41177                          || test ! -s conftest.err'
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); }; } &&
41183          { ac_try='test -s conftest.$ac_objext'
41184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41185   (eval $ac_try) 2>&5
41186   ac_status=$?
41187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41188   (exit $ac_status); }; }; then
41189   ac_hi=-1 ac_mid=-1
41190   while :; do
41191     cat >conftest.$ac_ext <<_ACEOF
41192 /* confdefs.h.  */
41193 _ACEOF
41194 cat confdefs.h >>conftest.$ac_ext
41195 cat >>conftest.$ac_ext <<_ACEOF
41196 /* end confdefs.h.  */
41197 $ac_includes_default
41198 int
41199 main ()
41200 {
41201 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41202 test_array [0] = 0
41203
41204   ;
41205   return 0;
41206 }
41207 _ACEOF
41208 rm -f conftest.$ac_objext
41209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41210   (eval $ac_compile) 2>conftest.er1
41211   ac_status=$?
41212   grep -v '^ *+' conftest.er1 >conftest.err
41213   rm -f conftest.er1
41214   cat conftest.err >&5
41215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216   (exit $ac_status); } &&
41217          { ac_try='test -z "$ac_c_werror_flag"
41218                          || test ! -s conftest.err'
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); }; } &&
41224          { ac_try='test -s conftest.$ac_objext'
41225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41226   (eval $ac_try) 2>&5
41227   ac_status=$?
41228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41229   (exit $ac_status); }; }; then
41230   ac_lo=$ac_mid; break
41231 else
41232   echo "$as_me: failed program was:" >&5
41233 sed 's/^/| /' conftest.$ac_ext >&5
41234
41235 ac_hi=`expr '(' $ac_mid ')' - 1`
41236                        if test $ac_mid -le $ac_hi; then
41237                          ac_lo= ac_hi=
41238                          break
41239                        fi
41240                        ac_mid=`expr 2 '*' $ac_mid`
41241 fi
41242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41243   done
41244 else
41245   echo "$as_me: failed program was:" >&5
41246 sed 's/^/| /' conftest.$ac_ext >&5
41247
41248 ac_lo= ac_hi=
41249 fi
41250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41251 fi
41252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41253 # Binary search between lo and hi bounds.
41254 while test "x$ac_lo" != "x$ac_hi"; do
41255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41256   cat >conftest.$ac_ext <<_ACEOF
41257 /* confdefs.h.  */
41258 _ACEOF
41259 cat confdefs.h >>conftest.$ac_ext
41260 cat >>conftest.$ac_ext <<_ACEOF
41261 /* end confdefs.h.  */
41262 $ac_includes_default
41263 int
41264 main ()
41265 {
41266 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41267 test_array [0] = 0
41268
41269   ;
41270   return 0;
41271 }
41272 _ACEOF
41273 rm -f conftest.$ac_objext
41274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41275   (eval $ac_compile) 2>conftest.er1
41276   ac_status=$?
41277   grep -v '^ *+' conftest.er1 >conftest.err
41278   rm -f conftest.er1
41279   cat conftest.err >&5
41280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41281   (exit $ac_status); } &&
41282          { ac_try='test -z "$ac_c_werror_flag"
41283                          || test ! -s conftest.err'
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); }; } &&
41289          { ac_try='test -s conftest.$ac_objext'
41290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41291   (eval $ac_try) 2>&5
41292   ac_status=$?
41293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41294   (exit $ac_status); }; }; then
41295   ac_hi=$ac_mid
41296 else
41297   echo "$as_me: failed program was:" >&5
41298 sed 's/^/| /' conftest.$ac_ext >&5
41299
41300 ac_lo=`expr '(' $ac_mid ')' + 1`
41301 fi
41302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41303 done
41304 case $ac_lo in
41305 ?*) ac_cv_sizeof_int=$ac_lo;;
41306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41307 See \`config.log' for more details." >&5
41308 echo "$as_me: error: cannot compute sizeof (int), 77
41309 See \`config.log' for more details." >&2;}
41310    { (exit 1); exit 1; }; } ;;
41311 esac
41312 else
41313   if test "$cross_compiling" = yes; then
41314   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41315 See \`config.log' for more details." >&5
41316 echo "$as_me: error: cannot run test program while cross compiling
41317 See \`config.log' for more details." >&2;}
41318    { (exit 1); exit 1; }; }
41319 else
41320   cat >conftest.$ac_ext <<_ACEOF
41321 /* confdefs.h.  */
41322 _ACEOF
41323 cat confdefs.h >>conftest.$ac_ext
41324 cat >>conftest.$ac_ext <<_ACEOF
41325 /* end confdefs.h.  */
41326 $ac_includes_default
41327 long longval () { return (long) (sizeof (int)); }
41328 unsigned long ulongval () { return (long) (sizeof (int)); }
41329 #include <stdio.h>
41330 #include <stdlib.h>
41331 int
41332 main ()
41333 {
41334
41335   FILE *f = fopen ("conftest.val", "w");
41336   if (! f)
41337     exit (1);
41338   if (((long) (sizeof (int))) < 0)
41339     {
41340       long i = longval ();
41341       if (i != ((long) (sizeof (int))))
41342         exit (1);
41343       fprintf (f, "%ld\n", i);
41344     }
41345   else
41346     {
41347       unsigned long i = ulongval ();
41348       if (i != ((long) (sizeof (int))))
41349         exit (1);
41350       fprintf (f, "%lu\n", i);
41351     }
41352   exit (ferror (f) || fclose (f) != 0);
41353
41354   ;
41355   return 0;
41356 }
41357 _ACEOF
41358 rm -f conftest$ac_exeext
41359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41360   (eval $ac_link) 2>&5
41361   ac_status=$?
41362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41365   (eval $ac_try) 2>&5
41366   ac_status=$?
41367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368   (exit $ac_status); }; }; then
41369   ac_cv_sizeof_int=`cat conftest.val`
41370 else
41371   echo "$as_me: program exited with status $ac_status" >&5
41372 echo "$as_me: failed program was:" >&5
41373 sed 's/^/| /' conftest.$ac_ext >&5
41374
41375 ( exit $ac_status )
41376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41377 See \`config.log' for more details." >&5
41378 echo "$as_me: error: cannot compute sizeof (int), 77
41379 See \`config.log' for more details." >&2;}
41380    { (exit 1); exit 1; }; }
41381 fi
41382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41383 fi
41384 fi
41385 rm -f conftest.val
41386 else
41387   ac_cv_sizeof_int=0
41388 fi
41389 fi
41390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41391 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41392 cat >>confdefs.h <<_ACEOF
41393 #define SIZEOF_INT $ac_cv_sizeof_int
41394 _ACEOF
41395
41396
41397 echo "$as_me:$LINENO: checking for long" >&5
41398 echo $ECHO_N "checking for long... $ECHO_C" >&6
41399 if test "${ac_cv_type_long+set}" = set; then
41400   echo $ECHO_N "(cached) $ECHO_C" >&6
41401 else
41402   cat >conftest.$ac_ext <<_ACEOF
41403 /* confdefs.h.  */
41404 _ACEOF
41405 cat confdefs.h >>conftest.$ac_ext
41406 cat >>conftest.$ac_ext <<_ACEOF
41407 /* end confdefs.h.  */
41408 $ac_includes_default
41409 int
41410 main ()
41411 {
41412 if ((long *) 0)
41413   return 0;
41414 if (sizeof (long))
41415   return 0;
41416   ;
41417   return 0;
41418 }
41419 _ACEOF
41420 rm -f conftest.$ac_objext
41421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41422   (eval $ac_compile) 2>conftest.er1
41423   ac_status=$?
41424   grep -v '^ *+' conftest.er1 >conftest.err
41425   rm -f conftest.er1
41426   cat conftest.err >&5
41427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428   (exit $ac_status); } &&
41429          { ac_try='test -z "$ac_c_werror_flag"
41430                          || test ! -s conftest.err'
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); }; } &&
41436          { ac_try='test -s conftest.$ac_objext'
41437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41438   (eval $ac_try) 2>&5
41439   ac_status=$?
41440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41441   (exit $ac_status); }; }; then
41442   ac_cv_type_long=yes
41443 else
41444   echo "$as_me: failed program was:" >&5
41445 sed 's/^/| /' conftest.$ac_ext >&5
41446
41447 ac_cv_type_long=no
41448 fi
41449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41450 fi
41451 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41452 echo "${ECHO_T}$ac_cv_type_long" >&6
41453
41454 echo "$as_me:$LINENO: checking size of long" >&5
41455 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41456 if test "${ac_cv_sizeof_long+set}" = set; then
41457   echo $ECHO_N "(cached) $ECHO_C" >&6
41458 else
41459   if test "$ac_cv_type_long" = yes; then
41460   # The cast to unsigned long works around a bug in the HP C Compiler
41461   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41462   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41463   # This bug is HP SR number 8606223364.
41464   if test "$cross_compiling" = yes; then
41465   # Depending upon the size, compute the lo and hi bounds.
41466 cat >conftest.$ac_ext <<_ACEOF
41467 /* confdefs.h.  */
41468 _ACEOF
41469 cat confdefs.h >>conftest.$ac_ext
41470 cat >>conftest.$ac_ext <<_ACEOF
41471 /* end confdefs.h.  */
41472 $ac_includes_default
41473 int
41474 main ()
41475 {
41476 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41477 test_array [0] = 0
41478
41479   ;
41480   return 0;
41481 }
41482 _ACEOF
41483 rm -f conftest.$ac_objext
41484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41485   (eval $ac_compile) 2>conftest.er1
41486   ac_status=$?
41487   grep -v '^ *+' conftest.er1 >conftest.err
41488   rm -f conftest.er1
41489   cat conftest.err >&5
41490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491   (exit $ac_status); } &&
41492          { ac_try='test -z "$ac_c_werror_flag"
41493                          || test ! -s conftest.err'
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); }; } &&
41499          { ac_try='test -s conftest.$ac_objext'
41500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501   (eval $ac_try) 2>&5
41502   ac_status=$?
41503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504   (exit $ac_status); }; }; then
41505   ac_lo=0 ac_mid=0
41506   while :; do
41507     cat >conftest.$ac_ext <<_ACEOF
41508 /* confdefs.h.  */
41509 _ACEOF
41510 cat confdefs.h >>conftest.$ac_ext
41511 cat >>conftest.$ac_ext <<_ACEOF
41512 /* end confdefs.h.  */
41513 $ac_includes_default
41514 int
41515 main ()
41516 {
41517 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41518 test_array [0] = 0
41519
41520   ;
41521   return 0;
41522 }
41523 _ACEOF
41524 rm -f conftest.$ac_objext
41525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41526   (eval $ac_compile) 2>conftest.er1
41527   ac_status=$?
41528   grep -v '^ *+' conftest.er1 >conftest.err
41529   rm -f conftest.er1
41530   cat conftest.err >&5
41531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532   (exit $ac_status); } &&
41533          { ac_try='test -z "$ac_c_werror_flag"
41534                          || test ! -s conftest.err'
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); }; } &&
41540          { ac_try='test -s conftest.$ac_objext'
41541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41542   (eval $ac_try) 2>&5
41543   ac_status=$?
41544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545   (exit $ac_status); }; }; then
41546   ac_hi=$ac_mid; break
41547 else
41548   echo "$as_me: failed program was:" >&5
41549 sed 's/^/| /' conftest.$ac_ext >&5
41550
41551 ac_lo=`expr $ac_mid + 1`
41552                     if test $ac_lo -le $ac_mid; then
41553                       ac_lo= ac_hi=
41554                       break
41555                     fi
41556                     ac_mid=`expr 2 '*' $ac_mid + 1`
41557 fi
41558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41559   done
41560 else
41561   echo "$as_me: failed program was:" >&5
41562 sed 's/^/| /' conftest.$ac_ext >&5
41563
41564 cat >conftest.$ac_ext <<_ACEOF
41565 /* confdefs.h.  */
41566 _ACEOF
41567 cat confdefs.h >>conftest.$ac_ext
41568 cat >>conftest.$ac_ext <<_ACEOF
41569 /* end confdefs.h.  */
41570 $ac_includes_default
41571 int
41572 main ()
41573 {
41574 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41575 test_array [0] = 0
41576
41577   ;
41578   return 0;
41579 }
41580 _ACEOF
41581 rm -f conftest.$ac_objext
41582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41583   (eval $ac_compile) 2>conftest.er1
41584   ac_status=$?
41585   grep -v '^ *+' conftest.er1 >conftest.err
41586   rm -f conftest.er1
41587   cat conftest.err >&5
41588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589   (exit $ac_status); } &&
41590          { ac_try='test -z "$ac_c_werror_flag"
41591                          || test ! -s conftest.err'
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); }; } &&
41597          { ac_try='test -s conftest.$ac_objext'
41598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41599   (eval $ac_try) 2>&5
41600   ac_status=$?
41601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602   (exit $ac_status); }; }; then
41603   ac_hi=-1 ac_mid=-1
41604   while :; do
41605     cat >conftest.$ac_ext <<_ACEOF
41606 /* confdefs.h.  */
41607 _ACEOF
41608 cat confdefs.h >>conftest.$ac_ext
41609 cat >>conftest.$ac_ext <<_ACEOF
41610 /* end confdefs.h.  */
41611 $ac_includes_default
41612 int
41613 main ()
41614 {
41615 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41616 test_array [0] = 0
41617
41618   ;
41619   return 0;
41620 }
41621 _ACEOF
41622 rm -f conftest.$ac_objext
41623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41624   (eval $ac_compile) 2>conftest.er1
41625   ac_status=$?
41626   grep -v '^ *+' conftest.er1 >conftest.err
41627   rm -f conftest.er1
41628   cat conftest.err >&5
41629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41630   (exit $ac_status); } &&
41631          { ac_try='test -z "$ac_c_werror_flag"
41632                          || test ! -s conftest.err'
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); }; } &&
41638          { ac_try='test -s conftest.$ac_objext'
41639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41640   (eval $ac_try) 2>&5
41641   ac_status=$?
41642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643   (exit $ac_status); }; }; then
41644   ac_lo=$ac_mid; break
41645 else
41646   echo "$as_me: failed program was:" >&5
41647 sed 's/^/| /' conftest.$ac_ext >&5
41648
41649 ac_hi=`expr '(' $ac_mid ')' - 1`
41650                        if test $ac_mid -le $ac_hi; then
41651                          ac_lo= ac_hi=
41652                          break
41653                        fi
41654                        ac_mid=`expr 2 '*' $ac_mid`
41655 fi
41656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41657   done
41658 else
41659   echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41661
41662 ac_lo= ac_hi=
41663 fi
41664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41665 fi
41666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41667 # Binary search between lo and hi bounds.
41668 while test "x$ac_lo" != "x$ac_hi"; do
41669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41670   cat >conftest.$ac_ext <<_ACEOF
41671 /* confdefs.h.  */
41672 _ACEOF
41673 cat confdefs.h >>conftest.$ac_ext
41674 cat >>conftest.$ac_ext <<_ACEOF
41675 /* end confdefs.h.  */
41676 $ac_includes_default
41677 int
41678 main ()
41679 {
41680 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41681 test_array [0] = 0
41682
41683   ;
41684   return 0;
41685 }
41686 _ACEOF
41687 rm -f conftest.$ac_objext
41688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41689   (eval $ac_compile) 2>conftest.er1
41690   ac_status=$?
41691   grep -v '^ *+' conftest.er1 >conftest.err
41692   rm -f conftest.er1
41693   cat conftest.err >&5
41694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41695   (exit $ac_status); } &&
41696          { ac_try='test -z "$ac_c_werror_flag"
41697                          || test ! -s conftest.err'
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); }; } &&
41703          { ac_try='test -s conftest.$ac_objext'
41704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41705   (eval $ac_try) 2>&5
41706   ac_status=$?
41707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708   (exit $ac_status); }; }; then
41709   ac_hi=$ac_mid
41710 else
41711   echo "$as_me: failed program was:" >&5
41712 sed 's/^/| /' conftest.$ac_ext >&5
41713
41714 ac_lo=`expr '(' $ac_mid ')' + 1`
41715 fi
41716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41717 done
41718 case $ac_lo in
41719 ?*) ac_cv_sizeof_long=$ac_lo;;
41720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41721 See \`config.log' for more details." >&5
41722 echo "$as_me: error: cannot compute sizeof (long), 77
41723 See \`config.log' for more details." >&2;}
41724    { (exit 1); exit 1; }; } ;;
41725 esac
41726 else
41727   if test "$cross_compiling" = yes; then
41728   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41729 See \`config.log' for more details." >&5
41730 echo "$as_me: error: cannot run test program while cross compiling
41731 See \`config.log' for more details." >&2;}
41732    { (exit 1); exit 1; }; }
41733 else
41734   cat >conftest.$ac_ext <<_ACEOF
41735 /* confdefs.h.  */
41736 _ACEOF
41737 cat confdefs.h >>conftest.$ac_ext
41738 cat >>conftest.$ac_ext <<_ACEOF
41739 /* end confdefs.h.  */
41740 $ac_includes_default
41741 long longval () { return (long) (sizeof (long)); }
41742 unsigned long ulongval () { return (long) (sizeof (long)); }
41743 #include <stdio.h>
41744 #include <stdlib.h>
41745 int
41746 main ()
41747 {
41748
41749   FILE *f = fopen ("conftest.val", "w");
41750   if (! f)
41751     exit (1);
41752   if (((long) (sizeof (long))) < 0)
41753     {
41754       long i = longval ();
41755       if (i != ((long) (sizeof (long))))
41756         exit (1);
41757       fprintf (f, "%ld\n", i);
41758     }
41759   else
41760     {
41761       unsigned long i = ulongval ();
41762       if (i != ((long) (sizeof (long))))
41763         exit (1);
41764       fprintf (f, "%lu\n", i);
41765     }
41766   exit (ferror (f) || fclose (f) != 0);
41767
41768   ;
41769   return 0;
41770 }
41771 _ACEOF
41772 rm -f conftest$ac_exeext
41773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41774   (eval $ac_link) 2>&5
41775   ac_status=$?
41776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41779   (eval $ac_try) 2>&5
41780   ac_status=$?
41781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782   (exit $ac_status); }; }; then
41783   ac_cv_sizeof_long=`cat conftest.val`
41784 else
41785   echo "$as_me: program exited with status $ac_status" >&5
41786 echo "$as_me: failed program was:" >&5
41787 sed 's/^/| /' conftest.$ac_ext >&5
41788
41789 ( exit $ac_status )
41790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41791 See \`config.log' for more details." >&5
41792 echo "$as_me: error: cannot compute sizeof (long), 77
41793 See \`config.log' for more details." >&2;}
41794    { (exit 1); exit 1; }; }
41795 fi
41796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41797 fi
41798 fi
41799 rm -f conftest.val
41800 else
41801   ac_cv_sizeof_long=0
41802 fi
41803 fi
41804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41805 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41806 cat >>confdefs.h <<_ACEOF
41807 #define SIZEOF_LONG $ac_cv_sizeof_long
41808 _ACEOF
41809
41810
41811 echo "$as_me:$LINENO: checking for wchar_t" >&5
41812 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41813 if test "${ac_cv_type_wchar_t+set}" = set; then
41814   echo $ECHO_N "(cached) $ECHO_C" >&6
41815 else
41816   cat >conftest.$ac_ext <<_ACEOF
41817 /* confdefs.h.  */
41818 _ACEOF
41819 cat confdefs.h >>conftest.$ac_ext
41820 cat >>conftest.$ac_ext <<_ACEOF
41821 /* end confdefs.h.  */
41822 $ac_includes_default
41823 int
41824 main ()
41825 {
41826 if ((wchar_t *) 0)
41827   return 0;
41828 if (sizeof (wchar_t))
41829   return 0;
41830   ;
41831   return 0;
41832 }
41833 _ACEOF
41834 rm -f conftest.$ac_objext
41835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41836   (eval $ac_compile) 2>conftest.er1
41837   ac_status=$?
41838   grep -v '^ *+' conftest.er1 >conftest.err
41839   rm -f conftest.er1
41840   cat conftest.err >&5
41841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842   (exit $ac_status); } &&
41843          { ac_try='test -z "$ac_c_werror_flag"
41844                          || test ! -s conftest.err'
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); }; } &&
41850          { ac_try='test -s conftest.$ac_objext'
41851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41852   (eval $ac_try) 2>&5
41853   ac_status=$?
41854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41855   (exit $ac_status); }; }; then
41856   ac_cv_type_wchar_t=yes
41857 else
41858   echo "$as_me: failed program was:" >&5
41859 sed 's/^/| /' conftest.$ac_ext >&5
41860
41861 ac_cv_type_wchar_t=no
41862 fi
41863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41864 fi
41865 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41866 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41867
41868 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41869 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41870 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41871   echo $ECHO_N "(cached) $ECHO_C" >&6
41872 else
41873   if test "$ac_cv_type_wchar_t" = yes; then
41874   # The cast to unsigned long works around a bug in the HP C Compiler
41875   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41876   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41877   # This bug is HP SR number 8606223364.
41878   if test "$cross_compiling" = yes; then
41879   # Depending upon the size, compute the lo and hi bounds.
41880 cat >conftest.$ac_ext <<_ACEOF
41881 /* confdefs.h.  */
41882 _ACEOF
41883 cat confdefs.h >>conftest.$ac_ext
41884 cat >>conftest.$ac_ext <<_ACEOF
41885 /* end confdefs.h.  */
41886 $ac_includes_default
41887 int
41888 main ()
41889 {
41890 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41891 test_array [0] = 0
41892
41893   ;
41894   return 0;
41895 }
41896 _ACEOF
41897 rm -f conftest.$ac_objext
41898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41899   (eval $ac_compile) 2>conftest.er1
41900   ac_status=$?
41901   grep -v '^ *+' conftest.er1 >conftest.err
41902   rm -f conftest.er1
41903   cat conftest.err >&5
41904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41905   (exit $ac_status); } &&
41906          { ac_try='test -z "$ac_c_werror_flag"
41907                          || test ! -s conftest.err'
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); }; } &&
41913          { ac_try='test -s conftest.$ac_objext'
41914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41915   (eval $ac_try) 2>&5
41916   ac_status=$?
41917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918   (exit $ac_status); }; }; then
41919   ac_lo=0 ac_mid=0
41920   while :; do
41921     cat >conftest.$ac_ext <<_ACEOF
41922 /* confdefs.h.  */
41923 _ACEOF
41924 cat confdefs.h >>conftest.$ac_ext
41925 cat >>conftest.$ac_ext <<_ACEOF
41926 /* end confdefs.h.  */
41927 $ac_includes_default
41928 int
41929 main ()
41930 {
41931 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41932 test_array [0] = 0
41933
41934   ;
41935   return 0;
41936 }
41937 _ACEOF
41938 rm -f conftest.$ac_objext
41939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41940   (eval $ac_compile) 2>conftest.er1
41941   ac_status=$?
41942   grep -v '^ *+' conftest.er1 >conftest.err
41943   rm -f conftest.er1
41944   cat conftest.err >&5
41945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946   (exit $ac_status); } &&
41947          { ac_try='test -z "$ac_c_werror_flag"
41948                          || test ! -s conftest.err'
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); }; } &&
41954          { ac_try='test -s conftest.$ac_objext'
41955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41956   (eval $ac_try) 2>&5
41957   ac_status=$?
41958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41959   (exit $ac_status); }; }; then
41960   ac_hi=$ac_mid; break
41961 else
41962   echo "$as_me: failed program was:" >&5
41963 sed 's/^/| /' conftest.$ac_ext >&5
41964
41965 ac_lo=`expr $ac_mid + 1`
41966                     if test $ac_lo -le $ac_mid; then
41967                       ac_lo= ac_hi=
41968                       break
41969                     fi
41970                     ac_mid=`expr 2 '*' $ac_mid + 1`
41971 fi
41972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41973   done
41974 else
41975   echo "$as_me: failed program was:" >&5
41976 sed 's/^/| /' conftest.$ac_ext >&5
41977
41978 cat >conftest.$ac_ext <<_ACEOF
41979 /* confdefs.h.  */
41980 _ACEOF
41981 cat confdefs.h >>conftest.$ac_ext
41982 cat >>conftest.$ac_ext <<_ACEOF
41983 /* end confdefs.h.  */
41984 $ac_includes_default
41985 int
41986 main ()
41987 {
41988 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41989 test_array [0] = 0
41990
41991   ;
41992   return 0;
41993 }
41994 _ACEOF
41995 rm -f conftest.$ac_objext
41996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41997   (eval $ac_compile) 2>conftest.er1
41998   ac_status=$?
41999   grep -v '^ *+' conftest.er1 >conftest.err
42000   rm -f conftest.er1
42001   cat conftest.err >&5
42002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003   (exit $ac_status); } &&
42004          { ac_try='test -z "$ac_c_werror_flag"
42005                          || test ! -s conftest.err'
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); }; } &&
42011          { ac_try='test -s conftest.$ac_objext'
42012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42013   (eval $ac_try) 2>&5
42014   ac_status=$?
42015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016   (exit $ac_status); }; }; then
42017   ac_hi=-1 ac_mid=-1
42018   while :; do
42019     cat >conftest.$ac_ext <<_ACEOF
42020 /* confdefs.h.  */
42021 _ACEOF
42022 cat confdefs.h >>conftest.$ac_ext
42023 cat >>conftest.$ac_ext <<_ACEOF
42024 /* end confdefs.h.  */
42025 $ac_includes_default
42026 int
42027 main ()
42028 {
42029 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
42030 test_array [0] = 0
42031
42032   ;
42033   return 0;
42034 }
42035 _ACEOF
42036 rm -f conftest.$ac_objext
42037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42038   (eval $ac_compile) 2>conftest.er1
42039   ac_status=$?
42040   grep -v '^ *+' conftest.er1 >conftest.err
42041   rm -f conftest.er1
42042   cat conftest.err >&5
42043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42044   (exit $ac_status); } &&
42045          { ac_try='test -z "$ac_c_werror_flag"
42046                          || test ! -s conftest.err'
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); }; } &&
42052          { ac_try='test -s conftest.$ac_objext'
42053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42054   (eval $ac_try) 2>&5
42055   ac_status=$?
42056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057   (exit $ac_status); }; }; then
42058   ac_lo=$ac_mid; break
42059 else
42060   echo "$as_me: failed program was:" >&5
42061 sed 's/^/| /' conftest.$ac_ext >&5
42062
42063 ac_hi=`expr '(' $ac_mid ')' - 1`
42064                        if test $ac_mid -le $ac_hi; then
42065                          ac_lo= ac_hi=
42066                          break
42067                        fi
42068                        ac_mid=`expr 2 '*' $ac_mid`
42069 fi
42070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42071   done
42072 else
42073   echo "$as_me: failed program was:" >&5
42074 sed 's/^/| /' conftest.$ac_ext >&5
42075
42076 ac_lo= ac_hi=
42077 fi
42078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42079 fi
42080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42081 # Binary search between lo and hi bounds.
42082 while test "x$ac_lo" != "x$ac_hi"; do
42083   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42084   cat >conftest.$ac_ext <<_ACEOF
42085 /* confdefs.h.  */
42086 _ACEOF
42087 cat confdefs.h >>conftest.$ac_ext
42088 cat >>conftest.$ac_ext <<_ACEOF
42089 /* end confdefs.h.  */
42090 $ac_includes_default
42091 int
42092 main ()
42093 {
42094 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42095 test_array [0] = 0
42096
42097   ;
42098   return 0;
42099 }
42100 _ACEOF
42101 rm -f conftest.$ac_objext
42102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42103   (eval $ac_compile) 2>conftest.er1
42104   ac_status=$?
42105   grep -v '^ *+' conftest.er1 >conftest.err
42106   rm -f conftest.er1
42107   cat conftest.err >&5
42108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42109   (exit $ac_status); } &&
42110          { ac_try='test -z "$ac_c_werror_flag"
42111                          || test ! -s conftest.err'
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); }; } &&
42117          { ac_try='test -s conftest.$ac_objext'
42118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42119   (eval $ac_try) 2>&5
42120   ac_status=$?
42121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42122   (exit $ac_status); }; }; then
42123   ac_hi=$ac_mid
42124 else
42125   echo "$as_me: failed program was:" >&5
42126 sed 's/^/| /' conftest.$ac_ext >&5
42127
42128 ac_lo=`expr '(' $ac_mid ')' + 1`
42129 fi
42130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42131 done
42132 case $ac_lo in
42133 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42135 See \`config.log' for more details." >&5
42136 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42137 See \`config.log' for more details." >&2;}
42138    { (exit 1); exit 1; }; } ;;
42139 esac
42140 else
42141   if test "$cross_compiling" = yes; then
42142   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42143 See \`config.log' for more details." >&5
42144 echo "$as_me: error: cannot run test program while cross compiling
42145 See \`config.log' for more details." >&2;}
42146    { (exit 1); exit 1; }; }
42147 else
42148   cat >conftest.$ac_ext <<_ACEOF
42149 /* confdefs.h.  */
42150 _ACEOF
42151 cat confdefs.h >>conftest.$ac_ext
42152 cat >>conftest.$ac_ext <<_ACEOF
42153 /* end confdefs.h.  */
42154 $ac_includes_default
42155 long longval () { return (long) (sizeof (wchar_t)); }
42156 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42157 #include <stdio.h>
42158 #include <stdlib.h>
42159 int
42160 main ()
42161 {
42162
42163   FILE *f = fopen ("conftest.val", "w");
42164   if (! f)
42165     exit (1);
42166   if (((long) (sizeof (wchar_t))) < 0)
42167     {
42168       long i = longval ();
42169       if (i != ((long) (sizeof (wchar_t))))
42170         exit (1);
42171       fprintf (f, "%ld\n", i);
42172     }
42173   else
42174     {
42175       unsigned long i = ulongval ();
42176       if (i != ((long) (sizeof (wchar_t))))
42177         exit (1);
42178       fprintf (f, "%lu\n", i);
42179     }
42180   exit (ferror (f) || fclose (f) != 0);
42181
42182   ;
42183   return 0;
42184 }
42185 _ACEOF
42186 rm -f conftest$ac_exeext
42187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42188   (eval $ac_link) 2>&5
42189   ac_status=$?
42190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42193   (eval $ac_try) 2>&5
42194   ac_status=$?
42195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42196   (exit $ac_status); }; }; then
42197   ac_cv_sizeof_wchar_t=`cat conftest.val`
42198 else
42199   echo "$as_me: program exited with status $ac_status" >&5
42200 echo "$as_me: failed program was:" >&5
42201 sed 's/^/| /' conftest.$ac_ext >&5
42202
42203 ( exit $ac_status )
42204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42205 See \`config.log' for more details." >&5
42206 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42207 See \`config.log' for more details." >&2;}
42208    { (exit 1); exit 1; }; }
42209 fi
42210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42211 fi
42212 fi
42213 rm -f conftest.val
42214 else
42215   ac_cv_sizeof_wchar_t=0
42216 fi
42217 fi
42218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42219 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42220 cat >>confdefs.h <<_ACEOF
42221 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42222 _ACEOF
42223
42224
42225
42226 if test "$ac_cv_sizeof_int" -lt 4 ; then
42227         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42228 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42229
42230
42231 cat >>confdefs.h <<\_ACEOF
42232 #define LBER_INT_T long
42233 _ACEOF
42234
42235 else
42236
42237 cat >>confdefs.h <<\_ACEOF
42238 #define LBER_INT_T int
42239 _ACEOF
42240
42241 fi
42242
42243
42244 cat >>confdefs.h <<\_ACEOF
42245 #define LBER_LEN_T long
42246 _ACEOF
42247
42248
42249 cat >>confdefs.h <<\_ACEOF
42250 #define LBER_SOCKET_T int
42251 _ACEOF
42252
42253
42254 cat >>confdefs.h <<\_ACEOF
42255 #define LBER_TAG_T long
42256 _ACEOF
42257
42258
42259 echo "$as_me:$LINENO: checking for working memcmp" >&5
42260 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42261 if test "${ac_cv_func_memcmp_working+set}" = set; then
42262   echo $ECHO_N "(cached) $ECHO_C" >&6
42263 else
42264   if test "$cross_compiling" = yes; then
42265   ac_cv_func_memcmp_working=no
42266 else
42267   cat >conftest.$ac_ext <<_ACEOF
42268 /* confdefs.h.  */
42269 _ACEOF
42270 cat confdefs.h >>conftest.$ac_ext
42271 cat >>conftest.$ac_ext <<_ACEOF
42272 /* end confdefs.h.  */
42273 $ac_includes_default
42274 int
42275 main ()
42276 {
42277
42278   /* Some versions of memcmp are not 8-bit clean.  */
42279   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42280   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42281     exit (1);
42282
42283   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42284      or more and with at least one buffer not starting on a 4-byte boundary.
42285      William Lewis provided this test program.   */
42286   {
42287     char foo[21];
42288     char bar[21];
42289     int i;
42290     for (i = 0; i < 4; i++)
42291       {
42292         char *a = foo + i;
42293         char *b = bar + i;
42294         strcpy (a, "--------01111111");
42295         strcpy (b, "--------10000000");
42296         if (memcmp (a, b, 16) >= 0)
42297           exit (1);
42298       }
42299     exit (0);
42300   }
42301
42302   ;
42303   return 0;
42304 }
42305 _ACEOF
42306 rm -f conftest$ac_exeext
42307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42308   (eval $ac_link) 2>&5
42309   ac_status=$?
42310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42313   (eval $ac_try) 2>&5
42314   ac_status=$?
42315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316   (exit $ac_status); }; }; then
42317   ac_cv_func_memcmp_working=yes
42318 else
42319   echo "$as_me: program exited with status $ac_status" >&5
42320 echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42322
42323 ( exit $ac_status )
42324 ac_cv_func_memcmp_working=no
42325 fi
42326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42327 fi
42328 fi
42329 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42330 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42331 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42332     "memcmp.$ac_objext"   | \
42333   *" memcmp.$ac_objext"   | \
42334     "memcmp.$ac_objext "* | \
42335   *" memcmp.$ac_objext "* ) ;;
42336   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42337 esac
42338
42339
42340
42341 if test $ac_cv_func_memcmp_working = no ; then
42342
42343 cat >>confdefs.h <<\_ACEOF
42344 #define NEED_MEMCMP_REPLACEMENT 1
42345 _ACEOF
42346
42347 fi
42348
42349
42350 for ac_func in strftime
42351 do
42352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42353 echo "$as_me:$LINENO: checking for $ac_func" >&5
42354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42355 if eval "test \"\${$as_ac_var+set}\" = set"; then
42356   echo $ECHO_N "(cached) $ECHO_C" >&6
42357 else
42358   cat >conftest.$ac_ext <<_ACEOF
42359 /* confdefs.h.  */
42360 _ACEOF
42361 cat confdefs.h >>conftest.$ac_ext
42362 cat >>conftest.$ac_ext <<_ACEOF
42363 /* end confdefs.h.  */
42364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42366 #define $ac_func innocuous_$ac_func
42367
42368 /* System header to define __stub macros and hopefully few prototypes,
42369     which can conflict with char $ac_func (); below.
42370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42371     <limits.h> exists even on freestanding compilers.  */
42372
42373 #ifdef __STDC__
42374 # include <limits.h>
42375 #else
42376 # include <assert.h>
42377 #endif
42378
42379 #undef $ac_func
42380
42381 /* Override any gcc2 internal prototype to avoid an error.  */
42382 #ifdef __cplusplus
42383 extern "C"
42384 {
42385 #endif
42386 /* We use char because int might match the return type of a gcc2
42387    builtin and then its argument prototype would still apply.  */
42388 char $ac_func ();
42389 /* The GNU C library defines this for functions which it implements
42390     to always fail with ENOSYS.  Some functions are actually named
42391     something starting with __ and the normal name is an alias.  */
42392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42393 choke me
42394 #else
42395 char (*f) () = $ac_func;
42396 #endif
42397 #ifdef __cplusplus
42398 }
42399 #endif
42400
42401 int
42402 main ()
42403 {
42404 return f != $ac_func;
42405   ;
42406   return 0;
42407 }
42408 _ACEOF
42409 rm -f conftest.$ac_objext conftest$ac_exeext
42410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42411   (eval $ac_link) 2>conftest.er1
42412   ac_status=$?
42413   grep -v '^ *+' conftest.er1 >conftest.err
42414   rm -f conftest.er1
42415   cat conftest.err >&5
42416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42417   (exit $ac_status); } &&
42418          { ac_try='test -z "$ac_c_werror_flag"
42419                          || test ! -s conftest.err'
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); }; } &&
42425          { ac_try='test -s conftest$ac_exeext'
42426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42427   (eval $ac_try) 2>&5
42428   ac_status=$?
42429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430   (exit $ac_status); }; }; then
42431   eval "$as_ac_var=yes"
42432 else
42433   echo "$as_me: failed program was:" >&5
42434 sed 's/^/| /' conftest.$ac_ext >&5
42435
42436 eval "$as_ac_var=no"
42437 fi
42438 rm -f conftest.err conftest.$ac_objext \
42439       conftest$ac_exeext conftest.$ac_ext
42440 fi
42441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42443 if test `eval echo '${'$as_ac_var'}'` = yes; then
42444   cat >>confdefs.h <<_ACEOF
42445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42446 _ACEOF
42447
42448 else
42449   # strftime is in -lintl on SCO UNIX.
42450 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42451 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42452 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42453   echo $ECHO_N "(cached) $ECHO_C" >&6
42454 else
42455   ac_check_lib_save_LIBS=$LIBS
42456 LIBS="-lintl  $LIBS"
42457 cat >conftest.$ac_ext <<_ACEOF
42458 /* confdefs.h.  */
42459 _ACEOF
42460 cat confdefs.h >>conftest.$ac_ext
42461 cat >>conftest.$ac_ext <<_ACEOF
42462 /* end confdefs.h.  */
42463
42464 /* Override any gcc2 internal prototype to avoid an error.  */
42465 #ifdef __cplusplus
42466 extern "C"
42467 #endif
42468 /* We use char because int might match the return type of a gcc2
42469    builtin and then its argument prototype would still apply.  */
42470 char strftime ();
42471 int
42472 main ()
42473 {
42474 strftime ();
42475   ;
42476   return 0;
42477 }
42478 _ACEOF
42479 rm -f conftest.$ac_objext conftest$ac_exeext
42480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42481   (eval $ac_link) 2>conftest.er1
42482   ac_status=$?
42483   grep -v '^ *+' conftest.er1 >conftest.err
42484   rm -f conftest.er1
42485   cat conftest.err >&5
42486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487   (exit $ac_status); } &&
42488          { ac_try='test -z "$ac_c_werror_flag"
42489                          || test ! -s conftest.err'
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); }; } &&
42495          { ac_try='test -s conftest$ac_exeext'
42496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42497   (eval $ac_try) 2>&5
42498   ac_status=$?
42499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500   (exit $ac_status); }; }; then
42501   ac_cv_lib_intl_strftime=yes
42502 else
42503   echo "$as_me: failed program was:" >&5
42504 sed 's/^/| /' conftest.$ac_ext >&5
42505
42506 ac_cv_lib_intl_strftime=no
42507 fi
42508 rm -f conftest.err conftest.$ac_objext \
42509       conftest$ac_exeext conftest.$ac_ext
42510 LIBS=$ac_check_lib_save_LIBS
42511 fi
42512 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42513 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42514 if test $ac_cv_lib_intl_strftime = yes; then
42515   cat >>confdefs.h <<\_ACEOF
42516 #define HAVE_STRFTIME 1
42517 _ACEOF
42518
42519 LIBS="-lintl $LIBS"
42520 fi
42521
42522 fi
42523 done
42524
42525
42526 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42527 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42528 if test "${ol_cv_func_inet_aton+set}" = set; then
42529   echo $ECHO_N "(cached) $ECHO_C" >&6
42530 else
42531   cat >conftest.$ac_ext <<_ACEOF
42532 /* confdefs.h.  */
42533 _ACEOF
42534 cat confdefs.h >>conftest.$ac_ext
42535 cat >>conftest.$ac_ext <<_ACEOF
42536 /* end confdefs.h.  */
42537
42538 #ifdef HAVE_SYS_TYPES_H
42539 #       include <sys/types.h>
42540 #endif
42541 #ifdef HAVE_SYS_SOCKET_H
42542 #       include <sys/socket.h>
42543 #       ifdef HAVE_SYS_SELECT_H
42544 #               include <sys/select.h>
42545 #       endif
42546 #       include <netinet/in.h>
42547 #       ifdef HAVE_ARPA_INET_H
42548 #               include <arpa/inet.h>
42549 #       endif
42550 #endif
42551
42552 int
42553 main ()
42554 {
42555 struct in_addr in;
42556 int rc = inet_aton( "255.255.255.255", &in );
42557   ;
42558   return 0;
42559 }
42560 _ACEOF
42561 rm -f conftest.$ac_objext conftest$ac_exeext
42562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42563   (eval $ac_link) 2>conftest.er1
42564   ac_status=$?
42565   grep -v '^ *+' conftest.er1 >conftest.err
42566   rm -f conftest.er1
42567   cat conftest.err >&5
42568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569   (exit $ac_status); } &&
42570          { ac_try='test -z "$ac_c_werror_flag"
42571                          || test ! -s conftest.err'
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); }; } &&
42577          { ac_try='test -s conftest$ac_exeext'
42578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42579   (eval $ac_try) 2>&5
42580   ac_status=$?
42581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42582   (exit $ac_status); }; }; then
42583   ol_cv_func_inet_aton=yes
42584 else
42585   echo "$as_me: failed program was:" >&5
42586 sed 's/^/| /' conftest.$ac_ext >&5
42587
42588 ol_cv_func_inet_aton=no
42589 fi
42590 rm -f conftest.err conftest.$ac_objext \
42591       conftest$ac_exeext conftest.$ac_ext
42592 fi
42593 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42594 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42595   if test $ol_cv_func_inet_aton != no; then
42596
42597 cat >>confdefs.h <<\_ACEOF
42598 #define HAVE_INET_ATON 1
42599 _ACEOF
42600
42601   fi
42602
42603
42604 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42605 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42606 if test "${ac_cv_func__spawnlp+set}" = set; then
42607   echo $ECHO_N "(cached) $ECHO_C" >&6
42608 else
42609   cat >conftest.$ac_ext <<_ACEOF
42610 /* confdefs.h.  */
42611 _ACEOF
42612 cat confdefs.h >>conftest.$ac_ext
42613 cat >>conftest.$ac_ext <<_ACEOF
42614 /* end confdefs.h.  */
42615 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42617 #define _spawnlp innocuous__spawnlp
42618
42619 /* System header to define __stub macros and hopefully few prototypes,
42620     which can conflict with char _spawnlp (); below.
42621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42622     <limits.h> exists even on freestanding compilers.  */
42623
42624 #ifdef __STDC__
42625 # include <limits.h>
42626 #else
42627 # include <assert.h>
42628 #endif
42629
42630 #undef _spawnlp
42631
42632 /* Override any gcc2 internal prototype to avoid an error.  */
42633 #ifdef __cplusplus
42634 extern "C"
42635 {
42636 #endif
42637 /* We use char because int might match the return type of a gcc2
42638    builtin and then its argument prototype would still apply.  */
42639 char _spawnlp ();
42640 /* The GNU C library defines this for functions which it implements
42641     to always fail with ENOSYS.  Some functions are actually named
42642     something starting with __ and the normal name is an alias.  */
42643 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42644 choke me
42645 #else
42646 char (*f) () = _spawnlp;
42647 #endif
42648 #ifdef __cplusplus
42649 }
42650 #endif
42651
42652 int
42653 main ()
42654 {
42655 return f != _spawnlp;
42656   ;
42657   return 0;
42658 }
42659 _ACEOF
42660 rm -f conftest.$ac_objext conftest$ac_exeext
42661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42662   (eval $ac_link) 2>conftest.er1
42663   ac_status=$?
42664   grep -v '^ *+' conftest.er1 >conftest.err
42665   rm -f conftest.er1
42666   cat conftest.err >&5
42667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668   (exit $ac_status); } &&
42669          { ac_try='test -z "$ac_c_werror_flag"
42670                          || test ! -s conftest.err'
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); }; } &&
42676          { ac_try='test -s conftest$ac_exeext'
42677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42678   (eval $ac_try) 2>&5
42679   ac_status=$?
42680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681   (exit $ac_status); }; }; then
42682   ac_cv_func__spawnlp=yes
42683 else
42684   echo "$as_me: failed program was:" >&5
42685 sed 's/^/| /' conftest.$ac_ext >&5
42686
42687 ac_cv_func__spawnlp=no
42688 fi
42689 rm -f conftest.err conftest.$ac_objext \
42690       conftest$ac_exeext conftest.$ac_ext
42691 fi
42692 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42693 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42694 if test $ac_cv_func__spawnlp = yes; then
42695
42696 cat >>confdefs.h <<\_ACEOF
42697 #define HAVE_SPAWNLP 1
42698 _ACEOF
42699
42700 fi
42701
42702
42703 echo "$as_me:$LINENO: checking for _snprintf" >&5
42704 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42705 if test "${ac_cv_func__snprintf+set}" = set; then
42706   echo $ECHO_N "(cached) $ECHO_C" >&6
42707 else
42708   cat >conftest.$ac_ext <<_ACEOF
42709 /* confdefs.h.  */
42710 _ACEOF
42711 cat confdefs.h >>conftest.$ac_ext
42712 cat >>conftest.$ac_ext <<_ACEOF
42713 /* end confdefs.h.  */
42714 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42716 #define _snprintf innocuous__snprintf
42717
42718 /* System header to define __stub macros and hopefully few prototypes,
42719     which can conflict with char _snprintf (); below.
42720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42721     <limits.h> exists even on freestanding compilers.  */
42722
42723 #ifdef __STDC__
42724 # include <limits.h>
42725 #else
42726 # include <assert.h>
42727 #endif
42728
42729 #undef _snprintf
42730
42731 /* Override any gcc2 internal prototype to avoid an error.  */
42732 #ifdef __cplusplus
42733 extern "C"
42734 {
42735 #endif
42736 /* We use char because int might match the return type of a gcc2
42737    builtin and then its argument prototype would still apply.  */
42738 char _snprintf ();
42739 /* The GNU C library defines this for functions which it implements
42740     to always fail with ENOSYS.  Some functions are actually named
42741     something starting with __ and the normal name is an alias.  */
42742 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42743 choke me
42744 #else
42745 char (*f) () = _snprintf;
42746 #endif
42747 #ifdef __cplusplus
42748 }
42749 #endif
42750
42751 int
42752 main ()
42753 {
42754 return f != _snprintf;
42755   ;
42756   return 0;
42757 }
42758 _ACEOF
42759 rm -f conftest.$ac_objext conftest$ac_exeext
42760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42761   (eval $ac_link) 2>conftest.er1
42762   ac_status=$?
42763   grep -v '^ *+' conftest.er1 >conftest.err
42764   rm -f conftest.er1
42765   cat conftest.err >&5
42766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42767   (exit $ac_status); } &&
42768          { ac_try='test -z "$ac_c_werror_flag"
42769                          || test ! -s conftest.err'
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); }; } &&
42775          { ac_try='test -s conftest$ac_exeext'
42776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42777   (eval $ac_try) 2>&5
42778   ac_status=$?
42779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780   (exit $ac_status); }; }; then
42781   ac_cv_func__snprintf=yes
42782 else
42783   echo "$as_me: failed program was:" >&5
42784 sed 's/^/| /' conftest.$ac_ext >&5
42785
42786 ac_cv_func__snprintf=no
42787 fi
42788 rm -f conftest.err conftest.$ac_objext \
42789       conftest$ac_exeext conftest.$ac_ext
42790 fi
42791 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42792 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42793 if test $ac_cv_func__snprintf = yes; then
42794   ac_cv_func_snprintf=yes
42795
42796 cat >>confdefs.h <<\_ACEOF
42797 #define snprintf _snprintf
42798 _ACEOF
42799
42800
42801 fi
42802
42803
42804 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42805 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42806 if test "${ac_cv_func__vsnprintf+set}" = set; then
42807   echo $ECHO_N "(cached) $ECHO_C" >&6
42808 else
42809   cat >conftest.$ac_ext <<_ACEOF
42810 /* confdefs.h.  */
42811 _ACEOF
42812 cat confdefs.h >>conftest.$ac_ext
42813 cat >>conftest.$ac_ext <<_ACEOF
42814 /* end confdefs.h.  */
42815 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42817 #define _vsnprintf innocuous__vsnprintf
42818
42819 /* System header to define __stub macros and hopefully few prototypes,
42820     which can conflict with char _vsnprintf (); below.
42821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42822     <limits.h> exists even on freestanding compilers.  */
42823
42824 #ifdef __STDC__
42825 # include <limits.h>
42826 #else
42827 # include <assert.h>
42828 #endif
42829
42830 #undef _vsnprintf
42831
42832 /* Override any gcc2 internal prototype to avoid an error.  */
42833 #ifdef __cplusplus
42834 extern "C"
42835 {
42836 #endif
42837 /* We use char because int might match the return type of a gcc2
42838    builtin and then its argument prototype would still apply.  */
42839 char _vsnprintf ();
42840 /* The GNU C library defines this for functions which it implements
42841     to always fail with ENOSYS.  Some functions are actually named
42842     something starting with __ and the normal name is an alias.  */
42843 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42844 choke me
42845 #else
42846 char (*f) () = _vsnprintf;
42847 #endif
42848 #ifdef __cplusplus
42849 }
42850 #endif
42851
42852 int
42853 main ()
42854 {
42855 return f != _vsnprintf;
42856   ;
42857   return 0;
42858 }
42859 _ACEOF
42860 rm -f conftest.$ac_objext conftest$ac_exeext
42861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42862   (eval $ac_link) 2>conftest.er1
42863   ac_status=$?
42864   grep -v '^ *+' conftest.er1 >conftest.err
42865   rm -f conftest.er1
42866   cat conftest.err >&5
42867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42868   (exit $ac_status); } &&
42869          { ac_try='test -z "$ac_c_werror_flag"
42870                          || test ! -s conftest.err'
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); }; } &&
42876          { ac_try='test -s conftest$ac_exeext'
42877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42878   (eval $ac_try) 2>&5
42879   ac_status=$?
42880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881   (exit $ac_status); }; }; then
42882   ac_cv_func__vsnprintf=yes
42883 else
42884   echo "$as_me: failed program was:" >&5
42885 sed 's/^/| /' conftest.$ac_ext >&5
42886
42887 ac_cv_func__vsnprintf=no
42888 fi
42889 rm -f conftest.err conftest.$ac_objext \
42890       conftest$ac_exeext conftest.$ac_ext
42891 fi
42892 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42893 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42894 if test $ac_cv_func__vsnprintf = yes; then
42895   ac_cv_func_vsnprintf=yes
42896
42897 cat >>confdefs.h <<\_ACEOF
42898 #define vsnprintf _vsnprintf
42899 _ACEOF
42900
42901
42902 fi
42903
42904
42905
42906 for ac_func in vprintf
42907 do
42908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42909 echo "$as_me:$LINENO: checking for $ac_func" >&5
42910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42911 if eval "test \"\${$as_ac_var+set}\" = set"; then
42912   echo $ECHO_N "(cached) $ECHO_C" >&6
42913 else
42914   cat >conftest.$ac_ext <<_ACEOF
42915 /* confdefs.h.  */
42916 _ACEOF
42917 cat confdefs.h >>conftest.$ac_ext
42918 cat >>conftest.$ac_ext <<_ACEOF
42919 /* end confdefs.h.  */
42920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42922 #define $ac_func innocuous_$ac_func
42923
42924 /* System header to define __stub macros and hopefully few prototypes,
42925     which can conflict with char $ac_func (); below.
42926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42927     <limits.h> exists even on freestanding compilers.  */
42928
42929 #ifdef __STDC__
42930 # include <limits.h>
42931 #else
42932 # include <assert.h>
42933 #endif
42934
42935 #undef $ac_func
42936
42937 /* Override any gcc2 internal prototype to avoid an error.  */
42938 #ifdef __cplusplus
42939 extern "C"
42940 {
42941 #endif
42942 /* We use char because int might match the return type of a gcc2
42943    builtin and then its argument prototype would still apply.  */
42944 char $ac_func ();
42945 /* The GNU C library defines this for functions which it implements
42946     to always fail with ENOSYS.  Some functions are actually named
42947     something starting with __ and the normal name is an alias.  */
42948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42949 choke me
42950 #else
42951 char (*f) () = $ac_func;
42952 #endif
42953 #ifdef __cplusplus
42954 }
42955 #endif
42956
42957 int
42958 main ()
42959 {
42960 return f != $ac_func;
42961   ;
42962   return 0;
42963 }
42964 _ACEOF
42965 rm -f conftest.$ac_objext conftest$ac_exeext
42966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42967   (eval $ac_link) 2>conftest.er1
42968   ac_status=$?
42969   grep -v '^ *+' conftest.er1 >conftest.err
42970   rm -f conftest.er1
42971   cat conftest.err >&5
42972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973   (exit $ac_status); } &&
42974          { ac_try='test -z "$ac_c_werror_flag"
42975                          || test ! -s conftest.err'
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); }; } &&
42981          { ac_try='test -s conftest$ac_exeext'
42982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42983   (eval $ac_try) 2>&5
42984   ac_status=$?
42985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986   (exit $ac_status); }; }; then
42987   eval "$as_ac_var=yes"
42988 else
42989   echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42991
42992 eval "$as_ac_var=no"
42993 fi
42994 rm -f conftest.err conftest.$ac_objext \
42995       conftest$ac_exeext conftest.$ac_ext
42996 fi
42997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42999 if test `eval echo '${'$as_ac_var'}'` = yes; then
43000   cat >>confdefs.h <<_ACEOF
43001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43002 _ACEOF
43003
43004 echo "$as_me:$LINENO: checking for _doprnt" >&5
43005 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43006 if test "${ac_cv_func__doprnt+set}" = set; then
43007   echo $ECHO_N "(cached) $ECHO_C" >&6
43008 else
43009   cat >conftest.$ac_ext <<_ACEOF
43010 /* confdefs.h.  */
43011 _ACEOF
43012 cat confdefs.h >>conftest.$ac_ext
43013 cat >>conftest.$ac_ext <<_ACEOF
43014 /* end confdefs.h.  */
43015 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43017 #define _doprnt innocuous__doprnt
43018
43019 /* System header to define __stub macros and hopefully few prototypes,
43020     which can conflict with char _doprnt (); below.
43021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43022     <limits.h> exists even on freestanding compilers.  */
43023
43024 #ifdef __STDC__
43025 # include <limits.h>
43026 #else
43027 # include <assert.h>
43028 #endif
43029
43030 #undef _doprnt
43031
43032 /* Override any gcc2 internal prototype to avoid an error.  */
43033 #ifdef __cplusplus
43034 extern "C"
43035 {
43036 #endif
43037 /* We use char because int might match the return type of a gcc2
43038    builtin and then its argument prototype would still apply.  */
43039 char _doprnt ();
43040 /* The GNU C library defines this for functions which it implements
43041     to always fail with ENOSYS.  Some functions are actually named
43042     something starting with __ and the normal name is an alias.  */
43043 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43044 choke me
43045 #else
43046 char (*f) () = _doprnt;
43047 #endif
43048 #ifdef __cplusplus
43049 }
43050 #endif
43051
43052 int
43053 main ()
43054 {
43055 return f != _doprnt;
43056   ;
43057   return 0;
43058 }
43059 _ACEOF
43060 rm -f conftest.$ac_objext conftest$ac_exeext
43061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43062   (eval $ac_link) 2>conftest.er1
43063   ac_status=$?
43064   grep -v '^ *+' conftest.er1 >conftest.err
43065   rm -f conftest.er1
43066   cat conftest.err >&5
43067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43068   (exit $ac_status); } &&
43069          { ac_try='test -z "$ac_c_werror_flag"
43070                          || test ! -s conftest.err'
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); }; } &&
43076          { ac_try='test -s conftest$ac_exeext'
43077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43078   (eval $ac_try) 2>&5
43079   ac_status=$?
43080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081   (exit $ac_status); }; }; then
43082   ac_cv_func__doprnt=yes
43083 else
43084   echo "$as_me: failed program was:" >&5
43085 sed 's/^/| /' conftest.$ac_ext >&5
43086
43087 ac_cv_func__doprnt=no
43088 fi
43089 rm -f conftest.err conftest.$ac_objext \
43090       conftest$ac_exeext conftest.$ac_ext
43091 fi
43092 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43093 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43094 if test $ac_cv_func__doprnt = yes; then
43095
43096 cat >>confdefs.h <<\_ACEOF
43097 #define HAVE_DOPRNT 1
43098 _ACEOF
43099
43100 fi
43101
43102 fi
43103 done
43104
43105
43106
43107 if test $ac_cv_func_vprintf = yes ; then
43108
43109
43110 for ac_func in snprintf vsnprintf
43111 do
43112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43113 echo "$as_me:$LINENO: checking for $ac_func" >&5
43114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43115 if eval "test \"\${$as_ac_var+set}\" = set"; then
43116   echo $ECHO_N "(cached) $ECHO_C" >&6
43117 else
43118   cat >conftest.$ac_ext <<_ACEOF
43119 /* confdefs.h.  */
43120 _ACEOF
43121 cat confdefs.h >>conftest.$ac_ext
43122 cat >>conftest.$ac_ext <<_ACEOF
43123 /* end confdefs.h.  */
43124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43126 #define $ac_func innocuous_$ac_func
43127
43128 /* System header to define __stub macros and hopefully few prototypes,
43129     which can conflict with char $ac_func (); below.
43130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43131     <limits.h> exists even on freestanding compilers.  */
43132
43133 #ifdef __STDC__
43134 # include <limits.h>
43135 #else
43136 # include <assert.h>
43137 #endif
43138
43139 #undef $ac_func
43140
43141 /* Override any gcc2 internal prototype to avoid an error.  */
43142 #ifdef __cplusplus
43143 extern "C"
43144 {
43145 #endif
43146 /* We use char because int might match the return type of a gcc2
43147    builtin and then its argument prototype would still apply.  */
43148 char $ac_func ();
43149 /* The GNU C library defines this for functions which it implements
43150     to always fail with ENOSYS.  Some functions are actually named
43151     something starting with __ and the normal name is an alias.  */
43152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43153 choke me
43154 #else
43155 char (*f) () = $ac_func;
43156 #endif
43157 #ifdef __cplusplus
43158 }
43159 #endif
43160
43161 int
43162 main ()
43163 {
43164 return f != $ac_func;
43165   ;
43166   return 0;
43167 }
43168 _ACEOF
43169 rm -f conftest.$ac_objext conftest$ac_exeext
43170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43171   (eval $ac_link) 2>conftest.er1
43172   ac_status=$?
43173   grep -v '^ *+' conftest.er1 >conftest.err
43174   rm -f conftest.er1
43175   cat conftest.err >&5
43176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43177   (exit $ac_status); } &&
43178          { ac_try='test -z "$ac_c_werror_flag"
43179                          || test ! -s conftest.err'
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); }; } &&
43185          { ac_try='test -s conftest$ac_exeext'
43186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43187   (eval $ac_try) 2>&5
43188   ac_status=$?
43189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190   (exit $ac_status); }; }; then
43191   eval "$as_ac_var=yes"
43192 else
43193   echo "$as_me: failed program was:" >&5
43194 sed 's/^/| /' conftest.$ac_ext >&5
43195
43196 eval "$as_ac_var=no"
43197 fi
43198 rm -f conftest.err conftest.$ac_objext \
43199       conftest$ac_exeext conftest.$ac_ext
43200 fi
43201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43203 if test `eval echo '${'$as_ac_var'}'` = yes; then
43204   cat >>confdefs.h <<_ACEOF
43205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43206 _ACEOF
43207
43208 fi
43209 done
43210
43211 fi
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
43262
43263
43264
43265
43266
43267 for ac_func in \
43268         bcopy                   \
43269         closesocket             \
43270         chroot                  \
43271         endgrent                \
43272         endpwent                \
43273         fcntl                   \
43274         flock                   \
43275         fstat                   \
43276         getdtablesize   \
43277         getgrgid                \
43278         gethostname             \
43279         getpass                 \
43280         getpassphrase   \
43281         getpwuid                \
43282         getpwnam                \
43283         getspnam                \
43284         gettimeofday    \
43285         initgroups              \
43286         inet_ntoa_b             \
43287         lockf                   \
43288         memcpy                  \
43289         memmove                 \
43290         memrchr                 \
43291         mkstemp                 \
43292         mktemp                  \
43293         pipe                    \
43294         read                    \
43295         recv                    \
43296         recvfrom                \
43297         setpwfile               \
43298         setgid                  \
43299         setegid                 \
43300         setsid                  \
43301         setuid                  \
43302         seteuid                 \
43303         signal                  \
43304         strdup                  \
43305         strpbrk                 \
43306         strrchr                 \
43307         strsep                  \
43308         strstr                  \
43309         strtol                  \
43310         strtoul                 \
43311         strtoq                  \
43312         strtouq                 \
43313         strtoll                 \
43314         strspn                  \
43315         sysconf                 \
43316         waitpid                 \
43317         wait4                   \
43318         write                   \
43319         send                    \
43320         sendmsg                 \
43321         sendto                  \
43322
43323 do
43324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43325 echo "$as_me:$LINENO: checking for $ac_func" >&5
43326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43327 if eval "test \"\${$as_ac_var+set}\" = set"; then
43328   echo $ECHO_N "(cached) $ECHO_C" >&6
43329 else
43330   cat >conftest.$ac_ext <<_ACEOF
43331 /* confdefs.h.  */
43332 _ACEOF
43333 cat confdefs.h >>conftest.$ac_ext
43334 cat >>conftest.$ac_ext <<_ACEOF
43335 /* end confdefs.h.  */
43336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43338 #define $ac_func innocuous_$ac_func
43339
43340 /* System header to define __stub macros and hopefully few prototypes,
43341     which can conflict with char $ac_func (); below.
43342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43343     <limits.h> exists even on freestanding compilers.  */
43344
43345 #ifdef __STDC__
43346 # include <limits.h>
43347 #else
43348 # include <assert.h>
43349 #endif
43350
43351 #undef $ac_func
43352
43353 /* Override any gcc2 internal prototype to avoid an error.  */
43354 #ifdef __cplusplus
43355 extern "C"
43356 {
43357 #endif
43358 /* We use char because int might match the return type of a gcc2
43359    builtin and then its argument prototype would still apply.  */
43360 char $ac_func ();
43361 /* The GNU C library defines this for functions which it implements
43362     to always fail with ENOSYS.  Some functions are actually named
43363     something starting with __ and the normal name is an alias.  */
43364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43365 choke me
43366 #else
43367 char (*f) () = $ac_func;
43368 #endif
43369 #ifdef __cplusplus
43370 }
43371 #endif
43372
43373 int
43374 main ()
43375 {
43376 return f != $ac_func;
43377   ;
43378   return 0;
43379 }
43380 _ACEOF
43381 rm -f conftest.$ac_objext conftest$ac_exeext
43382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43383   (eval $ac_link) 2>conftest.er1
43384   ac_status=$?
43385   grep -v '^ *+' conftest.er1 >conftest.err
43386   rm -f conftest.er1
43387   cat conftest.err >&5
43388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43389   (exit $ac_status); } &&
43390          { ac_try='test -z "$ac_c_werror_flag"
43391                          || test ! -s conftest.err'
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); }; } &&
43397          { ac_try='test -s conftest$ac_exeext'
43398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43399   (eval $ac_try) 2>&5
43400   ac_status=$?
43401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402   (exit $ac_status); }; }; then
43403   eval "$as_ac_var=yes"
43404 else
43405   echo "$as_me: failed program was:" >&5
43406 sed 's/^/| /' conftest.$ac_ext >&5
43407
43408 eval "$as_ac_var=no"
43409 fi
43410 rm -f conftest.err conftest.$ac_objext \
43411       conftest$ac_exeext conftest.$ac_ext
43412 fi
43413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43415 if test `eval echo '${'$as_ac_var'}'` = yes; then
43416   cat >>confdefs.h <<_ACEOF
43417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43418 _ACEOF
43419
43420 fi
43421 done
43422
43423
43424
43425
43426 for ac_func in getopt getpeereid
43427 do
43428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43429 echo "$as_me:$LINENO: checking for $ac_func" >&5
43430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43431 if eval "test \"\${$as_ac_var+set}\" = set"; then
43432   echo $ECHO_N "(cached) $ECHO_C" >&6
43433 else
43434   cat >conftest.$ac_ext <<_ACEOF
43435 /* confdefs.h.  */
43436 _ACEOF
43437 cat confdefs.h >>conftest.$ac_ext
43438 cat >>conftest.$ac_ext <<_ACEOF
43439 /* end confdefs.h.  */
43440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43442 #define $ac_func innocuous_$ac_func
43443
43444 /* System header to define __stub macros and hopefully few prototypes,
43445     which can conflict with char $ac_func (); below.
43446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43447     <limits.h> exists even on freestanding compilers.  */
43448
43449 #ifdef __STDC__
43450 # include <limits.h>
43451 #else
43452 # include <assert.h>
43453 #endif
43454
43455 #undef $ac_func
43456
43457 /* Override any gcc2 internal prototype to avoid an error.  */
43458 #ifdef __cplusplus
43459 extern "C"
43460 {
43461 #endif
43462 /* We use char because int might match the return type of a gcc2
43463    builtin and then its argument prototype would still apply.  */
43464 char $ac_func ();
43465 /* The GNU C library defines this for functions which it implements
43466     to always fail with ENOSYS.  Some functions are actually named
43467     something starting with __ and the normal name is an alias.  */
43468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43469 choke me
43470 #else
43471 char (*f) () = $ac_func;
43472 #endif
43473 #ifdef __cplusplus
43474 }
43475 #endif
43476
43477 int
43478 main ()
43479 {
43480 return f != $ac_func;
43481   ;
43482   return 0;
43483 }
43484 _ACEOF
43485 rm -f conftest.$ac_objext conftest$ac_exeext
43486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43487   (eval $ac_link) 2>conftest.er1
43488   ac_status=$?
43489   grep -v '^ *+' conftest.er1 >conftest.err
43490   rm -f conftest.er1
43491   cat conftest.err >&5
43492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493   (exit $ac_status); } &&
43494          { ac_try='test -z "$ac_c_werror_flag"
43495                          || test ! -s conftest.err'
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); }; } &&
43501          { ac_try='test -s conftest$ac_exeext'
43502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43503   (eval $ac_try) 2>&5
43504   ac_status=$?
43505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506   (exit $ac_status); }; }; then
43507   eval "$as_ac_var=yes"
43508 else
43509   echo "$as_me: failed program was:" >&5
43510 sed 's/^/| /' conftest.$ac_ext >&5
43511
43512 eval "$as_ac_var=no"
43513 fi
43514 rm -f conftest.err conftest.$ac_objext \
43515       conftest$ac_exeext conftest.$ac_ext
43516 fi
43517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43519 if test `eval echo '${'$as_ac_var'}'` = yes; then
43520   cat >>confdefs.h <<_ACEOF
43521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43522 _ACEOF
43523
43524 else
43525   case $LIBOBJS in
43526     "$ac_func.$ac_objext"   | \
43527   *" $ac_func.$ac_objext"   | \
43528     "$ac_func.$ac_objext "* | \
43529   *" $ac_func.$ac_objext "* ) ;;
43530   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43531 esac
43532
43533 fi
43534 done
43535
43536
43537
43538 if test "$ac_cv_func_getopt" != yes; then
43539         LIBSRCS="$LIBSRCS getopt.c"
43540 fi
43541
43542 if test "$ac_cv_func_getpeereid" != yes; then
43543
43544 for ac_func in getpeerucred
43545 do
43546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43547 echo "$as_me:$LINENO: checking for $ac_func" >&5
43548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43549 if eval "test \"\${$as_ac_var+set}\" = set"; then
43550   echo $ECHO_N "(cached) $ECHO_C" >&6
43551 else
43552   cat >conftest.$ac_ext <<_ACEOF
43553 /* confdefs.h.  */
43554 _ACEOF
43555 cat confdefs.h >>conftest.$ac_ext
43556 cat >>conftest.$ac_ext <<_ACEOF
43557 /* end confdefs.h.  */
43558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43560 #define $ac_func innocuous_$ac_func
43561
43562 /* System header to define __stub macros and hopefully few prototypes,
43563     which can conflict with char $ac_func (); below.
43564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43565     <limits.h> exists even on freestanding compilers.  */
43566
43567 #ifdef __STDC__
43568 # include <limits.h>
43569 #else
43570 # include <assert.h>
43571 #endif
43572
43573 #undef $ac_func
43574
43575 /* Override any gcc2 internal prototype to avoid an error.  */
43576 #ifdef __cplusplus
43577 extern "C"
43578 {
43579 #endif
43580 /* We use char because int might match the return type of a gcc2
43581    builtin and then its argument prototype would still apply.  */
43582 char $ac_func ();
43583 /* The GNU C library defines this for functions which it implements
43584     to always fail with ENOSYS.  Some functions are actually named
43585     something starting with __ and the normal name is an alias.  */
43586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43587 choke me
43588 #else
43589 char (*f) () = $ac_func;
43590 #endif
43591 #ifdef __cplusplus
43592 }
43593 #endif
43594
43595 int
43596 main ()
43597 {
43598 return f != $ac_func;
43599   ;
43600   return 0;
43601 }
43602 _ACEOF
43603 rm -f conftest.$ac_objext conftest$ac_exeext
43604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43605   (eval $ac_link) 2>conftest.er1
43606   ac_status=$?
43607   grep -v '^ *+' conftest.er1 >conftest.err
43608   rm -f conftest.er1
43609   cat conftest.err >&5
43610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611   (exit $ac_status); } &&
43612          { ac_try='test -z "$ac_c_werror_flag"
43613                          || test ! -s conftest.err'
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); }; } &&
43619          { ac_try='test -s conftest$ac_exeext'
43620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43621   (eval $ac_try) 2>&5
43622   ac_status=$?
43623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624   (exit $ac_status); }; }; then
43625   eval "$as_ac_var=yes"
43626 else
43627   echo "$as_me: failed program was:" >&5
43628 sed 's/^/| /' conftest.$ac_ext >&5
43629
43630 eval "$as_ac_var=no"
43631 fi
43632 rm -f conftest.err conftest.$ac_objext \
43633       conftest$ac_exeext conftest.$ac_ext
43634 fi
43635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43637 if test `eval echo '${'$as_ac_var'}'` = yes; then
43638   cat >>confdefs.h <<_ACEOF
43639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43640 _ACEOF
43641
43642 fi
43643 done
43644
43645         if test "$ac_cv_func_getpeerucred" != yes ; then
43646                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43647 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43648 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43649   echo $ECHO_N "(cached) $ECHO_C" >&6
43650 else
43651   cat >conftest.$ac_ext <<_ACEOF
43652 /* confdefs.h.  */
43653 _ACEOF
43654 cat confdefs.h >>conftest.$ac_ext
43655 cat >>conftest.$ac_ext <<_ACEOF
43656 /* end confdefs.h.  */
43657 $ac_includes_default
43658 #ifdef HAVE_SYS_SOCKET_H
43659 #include <sys/socket.h>
43660 #endif
43661
43662 int
43663 main ()
43664 {
43665 static struct msghdr ac_aggr;
43666 if (ac_aggr.msg_accrightslen)
43667 return 0;
43668   ;
43669   return 0;
43670 }
43671 _ACEOF
43672 rm -f conftest.$ac_objext
43673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43674   (eval $ac_compile) 2>conftest.er1
43675   ac_status=$?
43676   grep -v '^ *+' conftest.er1 >conftest.err
43677   rm -f conftest.er1
43678   cat conftest.err >&5
43679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680   (exit $ac_status); } &&
43681          { ac_try='test -z "$ac_c_werror_flag"
43682                          || test ! -s conftest.err'
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); }; } &&
43688          { ac_try='test -s conftest.$ac_objext'
43689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43690   (eval $ac_try) 2>&5
43691   ac_status=$?
43692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43693   (exit $ac_status); }; }; then
43694   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43695 else
43696   echo "$as_me: failed program was:" >&5
43697 sed 's/^/| /' conftest.$ac_ext >&5
43698
43699 cat >conftest.$ac_ext <<_ACEOF
43700 /* confdefs.h.  */
43701 _ACEOF
43702 cat confdefs.h >>conftest.$ac_ext
43703 cat >>conftest.$ac_ext <<_ACEOF
43704 /* end confdefs.h.  */
43705 $ac_includes_default
43706 #ifdef HAVE_SYS_SOCKET_H
43707 #include <sys/socket.h>
43708 #endif
43709
43710 int
43711 main ()
43712 {
43713 static struct msghdr ac_aggr;
43714 if (sizeof ac_aggr.msg_accrightslen)
43715 return 0;
43716   ;
43717   return 0;
43718 }
43719 _ACEOF
43720 rm -f conftest.$ac_objext
43721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43722   (eval $ac_compile) 2>conftest.er1
43723   ac_status=$?
43724   grep -v '^ *+' conftest.er1 >conftest.err
43725   rm -f conftest.er1
43726   cat conftest.err >&5
43727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43728   (exit $ac_status); } &&
43729          { ac_try='test -z "$ac_c_werror_flag"
43730                          || test ! -s conftest.err'
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); }; } &&
43736          { ac_try='test -s conftest.$ac_objext'
43737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43738   (eval $ac_try) 2>&5
43739   ac_status=$?
43740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741   (exit $ac_status); }; }; then
43742   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43743 else
43744   echo "$as_me: failed program was:" >&5
43745 sed 's/^/| /' conftest.$ac_ext >&5
43746
43747 ac_cv_member_struct_msghdr_msg_accrightslen=no
43748 fi
43749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43750 fi
43751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43752 fi
43753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43754 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43755 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43756
43757 cat >>confdefs.h <<_ACEOF
43758 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43759 _ACEOF
43760
43761
43762 fi
43763
43764                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43765                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43766 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43767 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43768   echo $ECHO_N "(cached) $ECHO_C" >&6
43769 else
43770   cat >conftest.$ac_ext <<_ACEOF
43771 /* confdefs.h.  */
43772 _ACEOF
43773 cat confdefs.h >>conftest.$ac_ext
43774 cat >>conftest.$ac_ext <<_ACEOF
43775 /* end confdefs.h.  */
43776 $ac_includes_default
43777 #ifdef HAVE_SYS_SOCKET_H
43778 #include <sys/socket.h>
43779 #endif
43780
43781 int
43782 main ()
43783 {
43784 static struct msghdr ac_aggr;
43785 if (ac_aggr.msg_control)
43786 return 0;
43787   ;
43788   return 0;
43789 }
43790 _ACEOF
43791 rm -f conftest.$ac_objext
43792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43793   (eval $ac_compile) 2>conftest.er1
43794   ac_status=$?
43795   grep -v '^ *+' conftest.er1 >conftest.err
43796   rm -f conftest.er1
43797   cat conftest.err >&5
43798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43799   (exit $ac_status); } &&
43800          { ac_try='test -z "$ac_c_werror_flag"
43801                          || test ! -s conftest.err'
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); }; } &&
43807          { ac_try='test -s conftest.$ac_objext'
43808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43809   (eval $ac_try) 2>&5
43810   ac_status=$?
43811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43812   (exit $ac_status); }; }; then
43813   ac_cv_member_struct_msghdr_msg_control=yes
43814 else
43815   echo "$as_me: failed program was:" >&5
43816 sed 's/^/| /' conftest.$ac_ext >&5
43817
43818 cat >conftest.$ac_ext <<_ACEOF
43819 /* confdefs.h.  */
43820 _ACEOF
43821 cat confdefs.h >>conftest.$ac_ext
43822 cat >>conftest.$ac_ext <<_ACEOF
43823 /* end confdefs.h.  */
43824 $ac_includes_default
43825 #ifdef HAVE_SYS_SOCKET_H
43826 #include <sys/socket.h>
43827 #endif
43828
43829 int
43830 main ()
43831 {
43832 static struct msghdr ac_aggr;
43833 if (sizeof ac_aggr.msg_control)
43834 return 0;
43835   ;
43836   return 0;
43837 }
43838 _ACEOF
43839 rm -f conftest.$ac_objext
43840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43841   (eval $ac_compile) 2>conftest.er1
43842   ac_status=$?
43843   grep -v '^ *+' conftest.er1 >conftest.err
43844   rm -f conftest.er1
43845   cat conftest.err >&5
43846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847   (exit $ac_status); } &&
43848          { ac_try='test -z "$ac_c_werror_flag"
43849                          || test ! -s conftest.err'
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); }; } &&
43855          { ac_try='test -s conftest.$ac_objext'
43856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43857   (eval $ac_try) 2>&5
43858   ac_status=$?
43859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43860   (exit $ac_status); }; }; then
43861   ac_cv_member_struct_msghdr_msg_control=yes
43862 else
43863   echo "$as_me: failed program was:" >&5
43864 sed 's/^/| /' conftest.$ac_ext >&5
43865
43866 ac_cv_member_struct_msghdr_msg_control=no
43867 fi
43868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43869 fi
43870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43871 fi
43872 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43873 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43874 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43875
43876 cat >>confdefs.h <<_ACEOF
43877 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43878 _ACEOF
43879
43880
43881 fi
43882
43883                 fi
43884         fi
43885         LIBSRCS="$LIBSRCS getpeereid.c"
43886 fi
43887
43888 if test "$ac_cv_func_snprintf" != yes ||
43889    test "$ac_cv_func_vsnprintf" != yes; then
43890         if test "$ac_cv_func_snprintf" != yes; then
43891
43892 cat >>confdefs.h <<\_ACEOF
43893 #define snprintf ber_pvt_snprintf
43894 _ACEOF
43895
43896         fi
43897         if test "$ac_cv_func_vsnprintf" != yes; then
43898
43899 cat >>confdefs.h <<\_ACEOF
43900 #define vsnprintf ber_pvt_vsnprintf
43901 _ACEOF
43902
43903         fi
43904 fi
43905
43906
43907 if test "$ol_enable_slapi" != no ; then
43908
43909 for ac_header in ltdl.h
43910 do
43911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43913   echo "$as_me:$LINENO: checking for $ac_header" >&5
43914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43916   echo $ECHO_N "(cached) $ECHO_C" >&6
43917 fi
43918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43920 else
43921   # Is the header compilable?
43922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43924 cat >conftest.$ac_ext <<_ACEOF
43925 /* confdefs.h.  */
43926 _ACEOF
43927 cat confdefs.h >>conftest.$ac_ext
43928 cat >>conftest.$ac_ext <<_ACEOF
43929 /* end confdefs.h.  */
43930 $ac_includes_default
43931 #include <$ac_header>
43932 _ACEOF
43933 rm -f conftest.$ac_objext
43934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43935   (eval $ac_compile) 2>conftest.er1
43936   ac_status=$?
43937   grep -v '^ *+' conftest.er1 >conftest.err
43938   rm -f conftest.er1
43939   cat conftest.err >&5
43940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941   (exit $ac_status); } &&
43942          { ac_try='test -z "$ac_c_werror_flag"
43943                          || test ! -s conftest.err'
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); }; } &&
43949          { ac_try='test -s conftest.$ac_objext'
43950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43951   (eval $ac_try) 2>&5
43952   ac_status=$?
43953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43954   (exit $ac_status); }; }; then
43955   ac_header_compiler=yes
43956 else
43957   echo "$as_me: failed program was:" >&5
43958 sed 's/^/| /' conftest.$ac_ext >&5
43959
43960 ac_header_compiler=no
43961 fi
43962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43964 echo "${ECHO_T}$ac_header_compiler" >&6
43965
43966 # Is the header present?
43967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43969 cat >conftest.$ac_ext <<_ACEOF
43970 /* confdefs.h.  */
43971 _ACEOF
43972 cat confdefs.h >>conftest.$ac_ext
43973 cat >>conftest.$ac_ext <<_ACEOF
43974 /* end confdefs.h.  */
43975 #include <$ac_header>
43976 _ACEOF
43977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43979   ac_status=$?
43980   grep -v '^ *+' conftest.er1 >conftest.err
43981   rm -f conftest.er1
43982   cat conftest.err >&5
43983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43984   (exit $ac_status); } >/dev/null; then
43985   if test -s conftest.err; then
43986     ac_cpp_err=$ac_c_preproc_warn_flag
43987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43988   else
43989     ac_cpp_err=
43990   fi
43991 else
43992   ac_cpp_err=yes
43993 fi
43994 if test -z "$ac_cpp_err"; then
43995   ac_header_preproc=yes
43996 else
43997   echo "$as_me: failed program was:" >&5
43998 sed 's/^/| /' conftest.$ac_ext >&5
43999
44000   ac_header_preproc=no
44001 fi
44002 rm -f conftest.err conftest.$ac_ext
44003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44004 echo "${ECHO_T}$ac_header_preproc" >&6
44005
44006 # So?  What about this header?
44007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44008   yes:no: )
44009     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44013     ac_header_preproc=yes
44014     ;;
44015   no:yes:* )
44016     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44018     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44019 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44020     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44022     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44023 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44026     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44028     (
44029       cat <<\_ASBOX
44030 ## --------------------------------------------- ##
44031 ## Report this to <http://www.openldap.org/its/> ##
44032 ## --------------------------------------------- ##
44033 _ASBOX
44034     ) |
44035       sed "s/^/$as_me: WARNING:     /" >&2
44036     ;;
44037 esac
44038 echo "$as_me:$LINENO: checking for $ac_header" >&5
44039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44041   echo $ECHO_N "(cached) $ECHO_C" >&6
44042 else
44043   eval "$as_ac_Header=\$ac_header_preproc"
44044 fi
44045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44047
44048 fi
44049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44050   cat >>confdefs.h <<_ACEOF
44051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44052 _ACEOF
44053
44054 fi
44055
44056 done
44057
44058
44059         if test $ac_cv_header_ltdl_h != yes ; then
44060                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44061 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44062    { (exit 1); exit 1; }; }
44063         fi
44064         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44065 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44066 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44067   echo $ECHO_N "(cached) $ECHO_C" >&6
44068 else
44069   ac_check_lib_save_LIBS=$LIBS
44070 LIBS="-lltdl  $LIBS"
44071 cat >conftest.$ac_ext <<_ACEOF
44072 /* confdefs.h.  */
44073 _ACEOF
44074 cat confdefs.h >>conftest.$ac_ext
44075 cat >>conftest.$ac_ext <<_ACEOF
44076 /* end confdefs.h.  */
44077
44078 /* Override any gcc2 internal prototype to avoid an error.  */
44079 #ifdef __cplusplus
44080 extern "C"
44081 #endif
44082 /* We use char because int might match the return type of a gcc2
44083    builtin and then its argument prototype would still apply.  */
44084 char lt_dlinit ();
44085 int
44086 main ()
44087 {
44088 lt_dlinit ();
44089   ;
44090   return 0;
44091 }
44092 _ACEOF
44093 rm -f conftest.$ac_objext conftest$ac_exeext
44094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44095   (eval $ac_link) 2>conftest.er1
44096   ac_status=$?
44097   grep -v '^ *+' conftest.er1 >conftest.err
44098   rm -f conftest.er1
44099   cat conftest.err >&5
44100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44101   (exit $ac_status); } &&
44102          { ac_try='test -z "$ac_c_werror_flag"
44103                          || test ! -s conftest.err'
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); }; } &&
44109          { ac_try='test -s conftest$ac_exeext'
44110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111   (eval $ac_try) 2>&5
44112   ac_status=$?
44113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114   (exit $ac_status); }; }; then
44115   ac_cv_lib_ltdl_lt_dlinit=yes
44116 else
44117   echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44119
44120 ac_cv_lib_ltdl_lt_dlinit=no
44121 fi
44122 rm -f conftest.err conftest.$ac_objext \
44123       conftest$ac_exeext conftest.$ac_ext
44124 LIBS=$ac_check_lib_save_LIBS
44125 fi
44126 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44127 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44128 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44129
44130                 SLAPI_LIBS=-lltdl
44131                 LIBSLAPI=libslapi.a
44132                 LIBSLAPITOOLS=../libslapi.a
44133
44134 cat >>confdefs.h <<\_ACEOF
44135 #define HAVE_LIBLTDL 1
44136 _ACEOF
44137
44138
44139 else
44140   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44141 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44142    { (exit 1); exit 1; }; }
44143 fi
44144
44145
44146
44147 cat >>confdefs.h <<\_ACEOF
44148 #define LDAP_SLAPI 1
44149 _ACEOF
44150
44151 fi
44152
44153 if test "$ol_enable_debug" != no ; then
44154         if test "$ol_enable_debug" = traditional; then
44155
44156 cat >>confdefs.h <<\_ACEOF
44157 #define OLD_DEBUG 1
44158 _ACEOF
44159
44160         fi
44161
44162 cat >>confdefs.h <<\_ACEOF
44163 #define LDAP_DEBUG 1
44164 _ACEOF
44165
44166 fi
44167 if test "$ol_enable_syslog" = yes ; then
44168
44169 cat >>confdefs.h <<\_ACEOF
44170 #define LDAP_SYSLOG 1
44171 _ACEOF
44172
44173 fi
44174 if test "$ol_link_kbind" != no ; then
44175
44176 cat >>confdefs.h <<\_ACEOF
44177 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44178 _ACEOF
44179
44180 fi
44181 if test "$ol_enable_proctitle" != no ; then
44182
44183 cat >>confdefs.h <<\_ACEOF
44184 #define LDAP_PROCTITLE 1
44185 _ACEOF
44186
44187 fi
44188 if test "$ol_enable_referrals" != no ; then
44189
44190 cat >>confdefs.h <<\_ACEOF
44191 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44192 _ACEOF
44193
44194 fi
44195 if test "$ol_enable_local" != no; then
44196
44197 cat >>confdefs.h <<\_ACEOF
44198 #define LDAP_PF_LOCAL 1
44199 _ACEOF
44200
44201 fi
44202 if test "$ol_link_ipv6" != no; then
44203
44204 cat >>confdefs.h <<\_ACEOF
44205 #define LDAP_PF_INET6 1
44206 _ACEOF
44207
44208 fi
44209 if test "$ol_enable_cleartext" != no ; then
44210
44211 cat >>confdefs.h <<\_ACEOF
44212 #define SLAPD_CLEARTEXT 1
44213 _ACEOF
44214
44215 fi
44216 if test "$ol_enable_crypt" != no ; then
44217
44218 cat >>confdefs.h <<\_ACEOF
44219 #define SLAPD_CRYPT 1
44220 _ACEOF
44221
44222 fi
44223 if test "$ol_link_spasswd" != no ; then
44224
44225 cat >>confdefs.h <<\_ACEOF
44226 #define SLAPD_SPASSWD 1
44227 _ACEOF
44228
44229 fi
44230 if test "$ol_enable_multimaster" != no ; then
44231
44232 cat >>confdefs.h <<\_ACEOF
44233 #define SLAPD_MULTIMASTER 1
44234 _ACEOF
44235
44236 fi
44237 if test "$ol_enable_rlookups" != no ; then
44238
44239 cat >>confdefs.h <<\_ACEOF
44240 #define SLAPD_RLOOKUPS 1
44241 _ACEOF
44242
44243 fi
44244 if test "$ol_enable_aci" != no ; then
44245         if test $ol_enable_dynacl = no ; then
44246                 ol_enable_dynacl=yes
44247                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44248 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44249         fi
44250         if test "$ol_enable_aci" = mod ; then
44251                 MFLAG=SLAPD_MOD_DYNAMIC
44252                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44253 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44254    { (exit 1); exit 1; }; }
44255         else
44256                 MFLAG=SLAPD_MOD_STATIC
44257         fi
44258         WITH_ACI_ENABLED=$ol_enable_aci
44259
44260 cat >>confdefs.h <<_ACEOF
44261 #define SLAPD_ACI_ENABLED $MFLAG
44262 _ACEOF
44263
44264 else
44265         WITH_ACI_ENABLED=no
44266 fi
44267 if test "$ol_enable_dynacl" != no ; then
44268
44269 cat >>confdefs.h <<\_ACEOF
44270 #define SLAP_DYNACL 1
44271 _ACEOF
44272
44273 fi
44274
44275 if test "$ol_link_modules" != no ; then
44276
44277 cat >>confdefs.h <<\_ACEOF
44278 #define SLAPD_MODULES 1
44279 _ACEOF
44280
44281         BUILD_SLAPD=yes
44282         SLAPD_MODULES_LDFLAGS="-dlopen self"
44283 fi
44284
44285
44286 cat >>confdefs.h <<\_ACEOF
44287 #define SLAPD_MOD_STATIC 1
44288 _ACEOF
44289
44290
44291 cat >>confdefs.h <<\_ACEOF
44292 #define SLAPD_MOD_DYNAMIC 2
44293 _ACEOF
44294
44295
44296 if test "$ol_enable_bdb" != no ; then
44297         BUILD_SLAPD=yes
44298         BUILD_BDB=$ol_enable_bdb
44299         if test "$ol_enable_bdb" = mod ; then
44300                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44301                 MFLAG=SLAPD_MOD_DYNAMIC
44302         else
44303                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44304                 MFLAG=SLAPD_MOD_STATIC
44305         fi
44306
44307 cat >>confdefs.h <<_ACEOF
44308 #define SLAPD_BDB $MFLAG
44309 _ACEOF
44310
44311 fi
44312
44313 if test "$ol_enable_dnssrv" != no ; then
44314         BUILD_SLAPD=yes
44315         BUILD_DNSSRV=$ol_enable_dnssrv
44316         if test "$ol_enable_dnssrv" = mod ; then
44317                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44318                 MFLAG=SLAPD_MOD_DYNAMIC
44319         else
44320                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44321                 MFLAG=SLAPD_MOD_STATIC
44322         fi
44323
44324 cat >>confdefs.h <<_ACEOF
44325 #define SLAPD_DNSSRV $MFLAG
44326 _ACEOF
44327
44328 fi
44329
44330 if test "$ol_enable_hdb" != no ; then
44331         BUILD_SLAPD=yes
44332         BUILD_HDB=$ol_enable_hdb
44333         if test "$ol_enable_hdb" = mod ; then
44334                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44335                 MFLAG=SLAPD_MOD_DYNAMIC
44336         else
44337                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44338                 MFLAG=SLAPD_MOD_STATIC
44339         fi
44340
44341 cat >>confdefs.h <<_ACEOF
44342 #define SLAPD_HDB $MFLAG
44343 _ACEOF
44344
44345 fi
44346
44347 if test "$ol_enable_ldap" != no ; then
44348         BUILD_SLAPD=yes
44349         BUILD_LDAP=$ol_enable_ldap
44350         if test "$ol_enable_ldap" = mod ; then
44351                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44352                 MFLAG=SLAPD_MOD_DYNAMIC
44353         else
44354                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44355                 MFLAG=SLAPD_MOD_STATIC
44356         fi
44357
44358 cat >>confdefs.h <<_ACEOF
44359 #define SLAPD_LDAP $MFLAG
44360 _ACEOF
44361
44362 fi
44363
44364 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44365         BUILD_SLAPD=yes
44366         BUILD_LDBM=$ol_enable_ldbm
44367         if test "$ol_enable_ldbm" = mod ; then
44368                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44369                 MFLAG=SLAPD_MOD_DYNAMIC
44370         else
44371                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44372                 MFLAG=SLAPD_MOD_STATIC
44373         fi
44374
44375 cat >>confdefs.h <<_ACEOF
44376 #define SLAPD_LDBM $MFLAG
44377 _ACEOF
44378
44379 fi
44380
44381 if test "$ol_enable_meta" != no ; then
44382         BUILD_SLAPD=yes
44383         BUILD_META=$ol_enable_meta
44384         BUILD_REWRITE=yes
44385         if test "$ol_enable_meta" = mod ; then
44386                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44387                 MFLAG=SLAPD_MOD_DYNAMIC
44388         else
44389                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44390                 MFLAG=SLAPD_MOD_STATIC
44391         fi
44392
44393 cat >>confdefs.h <<_ACEOF
44394 #define SLAPD_META $MFLAG
44395 _ACEOF
44396
44397 fi
44398
44399 if test "$ol_enable_monitor" != no ; then
44400         BUILD_SLAPD=yes
44401         BUILD_MONITOR=$ol_enable_monitor
44402         if test "$ol_enable_monitor" = mod ; then
44403                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44404                 MFLAG=SLAPD_MOD_DYNAMIC
44405         else
44406                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44407                 MFLAG=SLAPD_MOD_STATIC
44408         fi
44409
44410 cat >>confdefs.h <<_ACEOF
44411 #define SLAPD_MONITOR $MFLAG
44412 _ACEOF
44413
44414 fi
44415
44416 if test "$ol_enable_null" != no ; then
44417         BUILD_SLAPD=yes
44418         BUILD_NULL=$ol_enable_null
44419         if test "$ol_enable_null" = mod ; then
44420                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44421                 MFLAG=SLAPD_MOD_DYNAMIC
44422         else
44423                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44424                 MFLAG=SLAPD_MOD_STATIC
44425         fi
44426
44427 cat >>confdefs.h <<_ACEOF
44428 #define SLAPD_NULL $MFLAG
44429 _ACEOF
44430
44431 fi
44432
44433 if test "$ol_enable_passwd" != no ; then
44434         BUILD_SLAPD=yes
44435         BUILD_PASSWD=$ol_enable_passwd
44436         if test "$ol_enable_passwd" = mod ; then
44437                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44438                 MFLAG=SLAPD_MOD_DYNAMIC
44439         else
44440                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44441                 MFLAG=SLAPD_MOD_STATIC
44442         fi
44443
44444 cat >>confdefs.h <<_ACEOF
44445 #define SLAPD_PASSWD $MFLAG
44446 _ACEOF
44447
44448 fi
44449
44450 if test "$ol_link_perl" != no ; then
44451         BUILD_SLAPD=yes
44452         BUILD_PERL=$ol_enable_perl
44453         if test "$ol_enable_perl" = mod ; then
44454                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44455                 MFLAG=SLAPD_MOD_DYNAMIC
44456         else
44457                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44458                 MFLAG=SLAPD_MOD_STATIC
44459         fi
44460
44461 cat >>confdefs.h <<_ACEOF
44462 #define SLAPD_PERL $MFLAG
44463 _ACEOF
44464
44465 fi
44466
44467 if test "$ol_enable_relay" != no ; then
44468         BUILD_SLAPD=yes
44469         BUILD_RELAY=$ol_enable_relay
44470         if test "$ol_enable_relay" = mod ; then
44471                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44472                 MFLAG=SLAPD_MOD_DYNAMIC
44473         else
44474                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44475                 MFLAG=SLAPD_MOD_STATIC
44476         fi
44477
44478 cat >>confdefs.h <<_ACEOF
44479 #define SLAPD_RELAY $MFLAG
44480 _ACEOF
44481
44482 fi
44483
44484 if test "$ol_enable_shell" != no ; then
44485         if test "$ol_link_threads" != no ; then
44486                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44487 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44488         fi
44489         BUILD_SLAPD=yes
44490         BUILD_SHELL=$ol_enable_shell
44491         if test "$ol_enable_shell" = mod ; then
44492                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44493                 MFLAG=SLAPD_MOD_DYNAMIC
44494         else
44495                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44496                 MFLAG=SLAPD_MOD_STATIC
44497         fi
44498
44499 cat >>confdefs.h <<_ACEOF
44500 #define SLAPD_SHELL $MFLAG
44501 _ACEOF
44502
44503 fi
44504
44505 if test "$ol_link_sql" != no ; then
44506         BUILD_SLAPD=yes
44507         BUILD_SQL=$ol_enable_sql
44508         if test "$ol_enable_sql" = mod; then
44509                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44510                 MFLAG=SLAPD_MOD_DYNAMIC
44511         else
44512                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44513                 MFLAG=SLAPD_MOD_STATIC
44514         fi
44515
44516 cat >>confdefs.h <<_ACEOF
44517 #define SLAPD_SQL $MFLAG
44518 _ACEOF
44519
44520 fi
44521
44522 if test "$ol_enable_accesslog" != no ; then
44523         BUILD_ACCESSLOG=$ol_enable_accesslog
44524         if test "$ol_enable_accesslog" = mod ; then
44525                 MFLAG=SLAPD_MOD_DYNAMIC
44526                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44527         else
44528                 MFLAG=SLAPD_MOD_STATIC
44529                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44530         fi
44531
44532 cat >>confdefs.h <<_ACEOF
44533 #define SLAPD_OVER_ACCESSLOG $MFLAG
44534 _ACEOF
44535
44536 fi
44537
44538 if test "$ol_enable_dds" != no ; then
44539         BUILD_DDS=$ol_enable_dds
44540         if test "$ol_enable_dds" = mod ; then
44541                 MFLAG=SLAPD_MOD_DYNAMIC
44542                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44543         else
44544                 MFLAG=SLAPD_MOD_STATIC
44545                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44546         fi
44547
44548 cat >>confdefs.h <<_ACEOF
44549 #define SLAPD_OVER_DDS $MFLAG
44550 _ACEOF
44551
44552 fi
44553
44554 if test "$ol_enable_denyop" != no ; then
44555         BUILD_DENYOP=$ol_enable_denyop
44556         if test "$ol_enable_denyop" = mod ; then
44557                 MFLAG=SLAPD_MOD_DYNAMIC
44558                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44559         else
44560                 MFLAG=SLAPD_MOD_STATIC
44561                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44562         fi
44563
44564 cat >>confdefs.h <<_ACEOF
44565 #define SLAPD_OVER_DENYOP $MFLAG
44566 _ACEOF
44567
44568 fi
44569
44570 if test "$ol_enable_dyngroup" != no ; then
44571         BUILD_DYNGROUP=$ol_enable_dyngroup
44572         if test "$ol_enable_dyngroup" = mod ; then
44573                 MFLAG=SLAPD_MOD_DYNAMIC
44574                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44575         else
44576                 MFLAG=SLAPD_MOD_STATIC
44577                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44578         fi
44579
44580 cat >>confdefs.h <<_ACEOF
44581 #define SLAPD_OVER_DYNGROUP $MFLAG
44582 _ACEOF
44583
44584 fi
44585
44586 if test "$ol_enable_dynlist" != no ; then
44587         BUILD_DYNLIST=$ol_enable_dynlist
44588         if test "$ol_enable_dynlist" = mod ; then
44589                 MFLAG=SLAPD_MOD_DYNAMIC
44590                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44591         else
44592                 MFLAG=SLAPD_MOD_STATIC
44593                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44594         fi
44595
44596 cat >>confdefs.h <<_ACEOF
44597 #define SLAPD_OVER_DYNLIST $MFLAG
44598 _ACEOF
44599
44600 fi
44601
44602 if test "$ol_enable_lastmod" != no ; then
44603         BUILD_LASTMOD=$ol_enable_lastmod
44604         if test "$ol_enable_lastmod" = mod ; then
44605                 MFLAG=SLAPD_MOD_DYNAMIC
44606                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44607         else
44608                 MFLAG=SLAPD_MOD_STATIC
44609                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44610         fi
44611
44612 cat >>confdefs.h <<_ACEOF
44613 #define SLAPD_OVER_LASTMOD $MFLAG
44614 _ACEOF
44615
44616 fi
44617
44618 if test "$ol_enable_ppolicy" != no ; then
44619         BUILD_PPOLICY=$ol_enable_ppolicy
44620         if test "$ol_enable_ppolicy" = mod ; then
44621                 MFLAG=SLAPD_MOD_DYNAMIC
44622                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44623         else
44624                 MFLAG=SLAPD_MOD_STATIC
44625                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44626         fi
44627
44628 cat >>confdefs.h <<_ACEOF
44629 #define SLAPD_OVER_PPOLICY $MFLAG
44630 _ACEOF
44631
44632 fi
44633
44634 if test "$ol_enable_proxycache" != no ; then
44635         BUILD_PROXYCACHE=$ol_enable_proxycache
44636         if test "$ol_enable_proxycache" = mod ; then
44637                 MFLAG=SLAPD_MOD_DYNAMIC
44638                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44639         else
44640                 MFLAG=SLAPD_MOD_STATIC
44641                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44642         fi
44643
44644 cat >>confdefs.h <<_ACEOF
44645 #define SLAPD_OVER_PROXYCACHE $MFLAG
44646 _ACEOF
44647
44648 fi
44649
44650 if test "$ol_enable_refint" != no ; then
44651         BUILD_REFINT=$ol_enable_refint
44652         if test "$ol_enable_refint" = mod ; then
44653                 MFLAG=SLAPD_MOD_DYNAMIC
44654                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44655         else
44656                 MFLAG=SLAPD_MOD_STATIC
44657                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44658         fi
44659
44660 cat >>confdefs.h <<_ACEOF
44661 #define SLAPD_OVER_REFINT $MFLAG
44662 _ACEOF
44663
44664 fi
44665
44666 if test "$ol_enable_retcode" != no ; then
44667         BUILD_RETCODE=$ol_enable_retcode
44668         if test "$ol_enable_retcode" = mod ; then
44669                 MFLAG=SLAPD_MOD_DYNAMIC
44670                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44671         else
44672                 MFLAG=SLAPD_MOD_STATIC
44673                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44674         fi
44675
44676 cat >>confdefs.h <<_ACEOF
44677 #define SLAPD_OVER_RETCODE $MFLAG
44678 _ACEOF
44679
44680 fi
44681
44682 if test "$ol_enable_rwm" != no ; then
44683         BUILD_REWRITE=yes
44684         BUILD_RWM=$ol_enable_rwm
44685         if test "$ol_enable_rwm" = mod ; then
44686                 MFLAG=SLAPD_MOD_DYNAMIC
44687                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44688         else
44689                 MFLAG=SLAPD_MOD_STATIC
44690                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44691         fi
44692
44693 cat >>confdefs.h <<_ACEOF
44694 #define SLAPD_OVER_RWM $MFLAG
44695 _ACEOF
44696
44697 fi
44698
44699 if test "$ol_enable_syncprov" != no ; then
44700         BUILD_SYNCPROV=$ol_enable_syncprov
44701         if test "$ol_enable_syncprov" = mod ; then
44702                 MFLAG=SLAPD_MOD_DYNAMIC
44703                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44704         else
44705                 MFLAG=SLAPD_MOD_STATIC
44706                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44707         fi
44708
44709 cat >>confdefs.h <<_ACEOF
44710 #define SLAPD_OVER_SYNCPROV $MFLAG
44711 _ACEOF
44712
44713 fi
44714
44715 if test "$ol_enable_translucent" != no ; then
44716         BUILD_TRANSLUCENT=$ol_enable_translucent
44717         if test "$ol_enable_translucent" = mod ; then
44718                 MFLAG=SLAPD_MOD_DYNAMIC
44719                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44720         else
44721                 MFLAG=SLAPD_MOD_STATIC
44722                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44723         fi
44724
44725 cat >>confdefs.h <<_ACEOF
44726 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44727 _ACEOF
44728
44729 fi
44730
44731 if test "$ol_enable_unique" != no ; then
44732         BUILD_UNIQUE=$ol_enable_unique
44733         if test "$ol_enable_unique" = mod ; then
44734                 MFLAG=SLAPD_MOD_DYNAMIC
44735                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44736         else
44737                 MFLAG=SLAPD_MOD_STATIC
44738                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44739         fi
44740
44741 cat >>confdefs.h <<_ACEOF
44742 #define SLAPD_OVER_UNIQUE $MFLAG
44743 _ACEOF
44744
44745 fi
44746
44747 if test "$ol_enable_valsort" != no ; then
44748         BUILD_VALSORT=$ol_enable_valsort
44749         if test "$ol_enable_valsort" = mod ; then
44750                 MFLAG=SLAPD_MOD_DYNAMIC
44751                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44752         else
44753                 MFLAG=SLAPD_MOD_STATIC
44754                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44755         fi
44756
44757 cat >>confdefs.h <<_ACEOF
44758 #define SLAPD_OVER_VALSORT $MFLAG
44759 _ACEOF
44760
44761 fi
44762
44763 if test "$ol_enable_slurpd" != no &&
44764    test "$ol_link_threads" != no &&
44765    test $BUILD_SLAPD = yes ; then
44766         BUILD_SLURPD=yes
44767 fi
44768
44769 if test "$ol_enable_rewrite" != no ; then
44770
44771 cat >>confdefs.h <<\_ACEOF
44772 #define ENABLE_REWRITE 1
44773 _ACEOF
44774
44775         BUILD_REWRITE=yes
44776 fi
44777
44778 if test "$ol_enable_slapi" != no ; then
44779
44780 cat >>confdefs.h <<\_ACEOF
44781 #define ENABLE_SLAPI 1
44782 _ACEOF
44783
44784         BUILD_SLAPI=yes
44785         SLAPD_SLAPI_DEPEND=libslapi.a
44786 fi
44787
44788
44789
44790 if test "$ac_cv_mingw32" = yes ; then
44791         PLAT=NT
44792         SLAPD_MODULES_LDFLAGS=
44793 else
44794         PLAT=UNIX
44795 fi
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
44867
44868
44869
44870
44871
44872
44873
44874
44875
44876
44877
44878
44879 # Check whether --with-xxinstall or --without-xxinstall was given.
44880 if test "${with_xxinstall+set}" = set; then
44881   withval="$with_xxinstall"
44882
44883 fi;
44884
44885
44886                                                                                                                                                                                                                                                                                                                                                                                                                 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"
44887
44888
44889           ac_config_commands="$ac_config_commands default"
44890
44891
44892
44893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44894 # Let make expand exec_prefix.
44895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44896
44897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44899 # trailing colons and then remove the whole line if VPATH becomes empty
44900 # (actually we leave an empty line to preserve line numbers).
44901 if test "x$srcdir" = x.; then
44902   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44903 s/:*\$(srcdir):*/:/;
44904 s/:*\${srcdir}:*/:/;
44905 s/:*@srcdir@:*/:/;
44906 s/^\([^=]*=[     ]*\):*/\1/;
44907 s/:*$//;
44908 s/^[^=]*=[       ]*$//;
44909 }'
44910 fi
44911
44912 DEFS=-DHAVE_CONFIG_H
44913
44914 ac_libobjs=
44915 ac_ltlibobjs=
44916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44917   # 1. Remove the extension, and $U if already installed.
44918   ac_i=`echo "$ac_i" |
44919          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44920   # 2. Add them.
44921   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44922   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44923 done
44924 LIBOBJS=$ac_libobjs
44925
44926 LTLIBOBJS=$ac_ltlibobjs
44927
44928
44929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44930   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44931 Usually this means the macro was only invoked conditionally." >&5
44932 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44933 Usually this means the macro was only invoked conditionally." >&2;}
44934    { (exit 1); exit 1; }; }
44935 fi
44936 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44937   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44938 Usually this means the macro was only invoked conditionally." >&5
44939 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44940 Usually this means the macro was only invoked conditionally." >&2;}
44941    { (exit 1); exit 1; }; }
44942 fi
44943 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44944   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44945 Usually this means the macro was only invoked conditionally." >&5
44946 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44947 Usually this means the macro was only invoked conditionally." >&2;}
44948    { (exit 1); exit 1; }; }
44949 fi
44950
44951 : ${CONFIG_STATUS=./config.status}
44952 ac_clean_files_save=$ac_clean_files
44953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44956 cat >$CONFIG_STATUS <<_ACEOF
44957 #! $SHELL
44958 # Generated by $as_me.
44959 # Run this file to recreate the current configuration.
44960 # Compiler output produced by configure, useful for debugging
44961 # configure, is in config.log if it exists.
44962
44963 debug=false
44964 ac_cs_recheck=false
44965 ac_cs_silent=false
44966 SHELL=\${CONFIG_SHELL-$SHELL}
44967 _ACEOF
44968
44969 cat >>$CONFIG_STATUS <<\_ACEOF
44970 ## --------------------- ##
44971 ## M4sh Initialization.  ##
44972 ## --------------------- ##
44973
44974 # Be Bourne compatible
44975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44976   emulate sh
44977   NULLCMD=:
44978   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44979   # is contrary to our usage.  Disable this feature.
44980   alias -g '${1+"$@"}'='"$@"'
44981 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44982   set -o posix
44983 fi
44984 DUALCASE=1; export DUALCASE # for MKS sh
44985
44986 # Support unset when possible.
44987 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44988   as_unset=unset
44989 else
44990   as_unset=false
44991 fi
44992
44993
44994 # Work around bugs in pre-3.0 UWIN ksh.
44995 $as_unset ENV MAIL MAILPATH
44996 PS1='$ '
44997 PS2='> '
44998 PS4='+ '
44999
45000 # NLS nuisances.
45001 for as_var in \
45002   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45003   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45004   LC_TELEPHONE LC_TIME
45005 do
45006   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45007     eval $as_var=C; export $as_var
45008   else
45009     $as_unset $as_var
45010   fi
45011 done
45012
45013 # Required to use basename.
45014 if expr a : '\(a\)' >/dev/null 2>&1; then
45015   as_expr=expr
45016 else
45017   as_expr=false
45018 fi
45019
45020 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45021   as_basename=basename
45022 else
45023   as_basename=false
45024 fi
45025
45026
45027 # Name of the executable.
45028 as_me=`$as_basename "$0" ||
45029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45030          X"$0" : 'X\(//\)$' \| \
45031          X"$0" : 'X\(/\)$' \| \
45032          .     : '\(.\)' 2>/dev/null ||
45033 echo X/"$0" |
45034     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45035           /^X\/\(\/\/\)$/{ s//\1/; q; }
45036           /^X\/\(\/\).*/{ s//\1/; q; }
45037           s/.*/./; q'`
45038
45039
45040 # PATH needs CR, and LINENO needs CR and PATH.
45041 # Avoid depending upon Character Ranges.
45042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45045 as_cr_digits='0123456789'
45046 as_cr_alnum=$as_cr_Letters$as_cr_digits
45047
45048 # The user is always right.
45049 if test "${PATH_SEPARATOR+set}" != set; then
45050   echo "#! /bin/sh" >conf$$.sh
45051   echo  "exit 0"   >>conf$$.sh
45052   chmod +x conf$$.sh
45053   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45054     PATH_SEPARATOR=';'
45055   else
45056     PATH_SEPARATOR=:
45057   fi
45058   rm -f conf$$.sh
45059 fi
45060
45061
45062   as_lineno_1=$LINENO
45063   as_lineno_2=$LINENO
45064   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45065   test "x$as_lineno_1" != "x$as_lineno_2" &&
45066   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
45067   # Find who we are.  Look in the path if we contain no path at all
45068   # relative or not.
45069   case $0 in
45070     *[\\/]* ) as_myself=$0 ;;
45071     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45072 for as_dir in $PATH
45073 do
45074   IFS=$as_save_IFS
45075   test -z "$as_dir" && as_dir=.
45076   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45077 done
45078
45079        ;;
45080   esac
45081   # We did not find ourselves, most probably we were run as `sh COMMAND'
45082   # in which case we are not to be found in the path.
45083   if test "x$as_myself" = x; then
45084     as_myself=$0
45085   fi
45086   if test ! -f "$as_myself"; then
45087     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45088 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45089    { (exit 1); exit 1; }; }
45090   fi
45091   case $CONFIG_SHELL in
45092   '')
45093     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45094 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45095 do
45096   IFS=$as_save_IFS
45097   test -z "$as_dir" && as_dir=.
45098   for as_base in sh bash ksh sh5; do
45099          case $as_dir in
45100          /*)
45101            if ("$as_dir/$as_base" -c '
45102   as_lineno_1=$LINENO
45103   as_lineno_2=$LINENO
45104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45105   test "x$as_lineno_1" != "x$as_lineno_2" &&
45106   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
45107              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45108              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45109              CONFIG_SHELL=$as_dir/$as_base
45110              export CONFIG_SHELL
45111              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45112            fi;;
45113          esac
45114        done
45115 done
45116 ;;
45117   esac
45118
45119   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45120   # uniformly replaced by the line number.  The first 'sed' inserts a
45121   # line-number line before each line; the second 'sed' does the real
45122   # work.  The second script uses 'N' to pair each line-number line
45123   # with the numbered line, and appends trailing '-' during
45124   # substitution so that $LINENO is not a special case at line end.
45125   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45126   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
45127   sed '=' <$as_myself |
45128     sed '
45129       N
45130       s,$,-,
45131       : loop
45132       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45133       t loop
45134       s,-$,,
45135       s,^['$as_cr_digits']*\n,,
45136     ' >$as_me.lineno &&
45137   chmod +x $as_me.lineno ||
45138     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45139 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45140    { (exit 1); exit 1; }; }
45141
45142   # Don't try to exec as it changes $[0], causing all sort of problems
45143   # (the dirname of $[0] is not the place where we might find the
45144   # original and so on.  Autoconf is especially sensible to this).
45145   . ./$as_me.lineno
45146   # Exit status is that of the last command.
45147   exit
45148 }
45149
45150
45151 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45152   *c*,-n*) ECHO_N= ECHO_C='
45153 ' ECHO_T='      ' ;;
45154   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45155   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
45156 esac
45157
45158 if expr a : '\(a\)' >/dev/null 2>&1; then
45159   as_expr=expr
45160 else
45161   as_expr=false
45162 fi
45163
45164 rm -f conf$$ conf$$.exe conf$$.file
45165 echo >conf$$.file
45166 if ln -s conf$$.file conf$$ 2>/dev/null; then
45167   # We could just check for DJGPP; but this test a) works b) is more generic
45168   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45169   if test -f conf$$.exe; then
45170     # Don't use ln at all; we don't have any links
45171     as_ln_s='cp -p'
45172   else
45173     as_ln_s='ln -s'
45174   fi
45175 elif ln conf$$.file conf$$ 2>/dev/null; then
45176   as_ln_s=ln
45177 else
45178   as_ln_s='cp -p'
45179 fi
45180 rm -f conf$$ conf$$.exe conf$$.file
45181
45182 if mkdir -p . 2>/dev/null; then
45183   as_mkdir_p=:
45184 else
45185   test -d ./-p && rmdir ./-p
45186   as_mkdir_p=false
45187 fi
45188
45189 as_executable_p="test -f"
45190
45191 # Sed expression to map a string onto a valid CPP name.
45192 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45193
45194 # Sed expression to map a string onto a valid variable name.
45195 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45196
45197
45198 # IFS
45199 # We need space, tab and new line, in precisely that order.
45200 as_nl='
45201 '
45202 IFS="   $as_nl"
45203
45204 # CDPATH.
45205 $as_unset CDPATH
45206
45207 exec 6>&1
45208
45209 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45210 # report actual input values of CONFIG_FILES etc. instead of their
45211 # values after options handling.  Logging --version etc. is OK.
45212 exec 5>>config.log
45213 {
45214   echo
45215   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45216 ## Running $as_me. ##
45217 _ASBOX
45218 } >&5
45219 cat >&5 <<_CSEOF
45220
45221 This file was extended by $as_me, which was
45222 generated by GNU Autoconf 2.59.  Invocation command line was
45223
45224   CONFIG_FILES    = $CONFIG_FILES
45225   CONFIG_HEADERS  = $CONFIG_HEADERS
45226   CONFIG_LINKS    = $CONFIG_LINKS
45227   CONFIG_COMMANDS = $CONFIG_COMMANDS
45228   $ $0 $@
45229
45230 _CSEOF
45231 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45232 echo >&5
45233 _ACEOF
45234
45235 # Files that config.status was made for.
45236 if test -n "$ac_config_files"; then
45237   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45238 fi
45239
45240 if test -n "$ac_config_headers"; then
45241   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45242 fi
45243
45244 if test -n "$ac_config_links"; then
45245   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45246 fi
45247
45248 if test -n "$ac_config_commands"; then
45249   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45250 fi
45251
45252 cat >>$CONFIG_STATUS <<\_ACEOF
45253
45254 ac_cs_usage="\
45255 \`$as_me' instantiates files from templates according to the
45256 current configuration.
45257
45258 Usage: $0 [OPTIONS] [FILE]...
45259
45260   -h, --help       print this help, then exit
45261   -V, --version    print version number, then exit
45262   -q, --quiet      do not print progress messages
45263   -d, --debug      don't remove temporary files
45264       --recheck    update $as_me by reconfiguring in the same conditions
45265   --file=FILE[:TEMPLATE]
45266                    instantiate the configuration file FILE
45267   --header=FILE[:TEMPLATE]
45268                    instantiate the configuration header FILE
45269
45270 Configuration files:
45271 $config_files
45272
45273 Configuration headers:
45274 $config_headers
45275
45276 Configuration commands:
45277 $config_commands
45278
45279 Report bugs to <bug-autoconf@gnu.org>."
45280 _ACEOF
45281
45282 cat >>$CONFIG_STATUS <<_ACEOF
45283 ac_cs_version="\\
45284 config.status
45285 configured by $0, generated by GNU Autoconf 2.59,
45286   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45287
45288 Copyright (C) 2003 Free Software Foundation, Inc.
45289 This config.status script is free software; the Free Software Foundation
45290 gives unlimited permission to copy, distribute and modify it."
45291 srcdir=$srcdir
45292 INSTALL="$INSTALL"
45293 _ACEOF
45294
45295 cat >>$CONFIG_STATUS <<\_ACEOF
45296 # If no file are specified by the user, then we need to provide default
45297 # value.  By we need to know if files were specified by the user.
45298 ac_need_defaults=:
45299 while test $# != 0
45300 do
45301   case $1 in
45302   --*=*)
45303     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45304     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45305     ac_shift=:
45306     ;;
45307   -*)
45308     ac_option=$1
45309     ac_optarg=$2
45310     ac_shift=shift
45311     ;;
45312   *) # This is not an option, so the user has probably given explicit
45313      # arguments.
45314      ac_option=$1
45315      ac_need_defaults=false;;
45316   esac
45317
45318   case $ac_option in
45319   # Handling of the options.
45320 _ACEOF
45321 cat >>$CONFIG_STATUS <<\_ACEOF
45322   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45323     ac_cs_recheck=: ;;
45324   --version | --vers* | -V )
45325     echo "$ac_cs_version"; exit 0 ;;
45326   --he | --h)
45327     # Conflict between --help and --header
45328     { { echo "$as_me:$LINENO: error: ambiguous option: $1
45329 Try \`$0 --help' for more information." >&5
45330 echo "$as_me: error: ambiguous option: $1
45331 Try \`$0 --help' for more information." >&2;}
45332    { (exit 1); exit 1; }; };;
45333   --help | --hel | -h )
45334     echo "$ac_cs_usage"; exit 0 ;;
45335   --debug | --d* | -d )
45336     debug=: ;;
45337   --file | --fil | --fi | --f )
45338     $ac_shift
45339     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45340     ac_need_defaults=false;;
45341   --header | --heade | --head | --hea )
45342     $ac_shift
45343     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45344     ac_need_defaults=false;;
45345   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45346   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45347     ac_cs_silent=: ;;
45348
45349   # This is an error.
45350   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45351 Try \`$0 --help' for more information." >&5
45352 echo "$as_me: error: unrecognized option: $1
45353 Try \`$0 --help' for more information." >&2;}
45354    { (exit 1); exit 1; }; } ;;
45355
45356   *) ac_config_targets="$ac_config_targets $1" ;;
45357
45358   esac
45359   shift
45360 done
45361
45362 ac_configure_extra_args=
45363
45364 if $ac_cs_silent; then
45365   exec 6>/dev/null
45366   ac_configure_extra_args="$ac_configure_extra_args --silent"
45367 fi
45368
45369 _ACEOF
45370 cat >>$CONFIG_STATUS <<_ACEOF
45371 if \$ac_cs_recheck; then
45372   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45373   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45374 fi
45375
45376 _ACEOF
45377
45378 cat >>$CONFIG_STATUS <<_ACEOF
45379 #
45380 # INIT-COMMANDS section.
45381 #
45382
45383 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45384
45385 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45386 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45387
45388
45389 _ACEOF
45390
45391
45392
45393 cat >>$CONFIG_STATUS <<\_ACEOF
45394 for ac_config_target in $ac_config_targets
45395 do
45396   case "$ac_config_target" in
45397   # Handling of arguments.
45398   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45399   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45400   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45401   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45402   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45403   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45404   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45405   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45406   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45407   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45408   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45409   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45410   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45411   "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" ;;
45412   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45413   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45414   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45415   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45416   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45417   "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" ;;
45418   "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" ;;
45419   "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" ;;
45420   "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" ;;
45421   "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" ;;
45422   "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" ;;
45423   "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" ;;
45424   "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" ;;
45425   "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" ;;
45426   "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" ;;
45427   "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" ;;
45428   "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" ;;
45429   "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" ;;
45430   "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" ;;
45431   "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" ;;
45432   "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" ;;
45433   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45434   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45435   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45436   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45437   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45438   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45439   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45440   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45441   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45442   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45443   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45444 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45445    { (exit 1); exit 1; }; };;
45446   esac
45447 done
45448
45449 # If the user did not use the arguments to specify the items to instantiate,
45450 # then the envvar interface is used.  Set only those that are not.
45451 # We use the long form for the default assignment because of an extremely
45452 # bizarre bug on SunOS 4.1.3.
45453 if $ac_need_defaults; then
45454   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45455   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45456   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45457 fi
45458
45459 # Have a temporary directory for convenience.  Make it in the build tree
45460 # simply because there is no reason to put it here, and in addition,
45461 # creating and moving files from /tmp can sometimes cause problems.
45462 # Create a temporary directory, and hook for its removal unless debugging.
45463 $debug ||
45464 {
45465   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45466   trap '{ (exit 1); exit 1; }' 1 2 13 15
45467 }
45468
45469 # Create a (secure) tmp directory for tmp files.
45470
45471 {
45472   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45473   test -n "$tmp" && test -d "$tmp"
45474 }  ||
45475 {
45476   tmp=./confstat$$-$RANDOM
45477   (umask 077 && mkdir $tmp)
45478 } ||
45479 {
45480    echo "$me: cannot create a temporary directory in ." >&2
45481    { (exit 1); exit 1; }
45482 }
45483
45484 _ACEOF
45485
45486 cat >>$CONFIG_STATUS <<_ACEOF
45487
45488 #
45489 # CONFIG_FILES section.
45490 #
45491
45492 # No need to generate the scripts if there are no CONFIG_FILES.
45493 # This happens for instance when ./config.status config.h
45494 if test -n "\$CONFIG_FILES"; then
45495   # Protect against being on the right side of a sed subst in config.status.
45496   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45497    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45498 s,@SHELL@,$SHELL,;t t
45499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45505 s,@exec_prefix@,$exec_prefix,;t t
45506 s,@prefix@,$prefix,;t t
45507 s,@program_transform_name@,$program_transform_name,;t t
45508 s,@bindir@,$bindir,;t t
45509 s,@sbindir@,$sbindir,;t t
45510 s,@libexecdir@,$libexecdir,;t t
45511 s,@datadir@,$datadir,;t t
45512 s,@sysconfdir@,$sysconfdir,;t t
45513 s,@sharedstatedir@,$sharedstatedir,;t t
45514 s,@localstatedir@,$localstatedir,;t t
45515 s,@libdir@,$libdir,;t t
45516 s,@includedir@,$includedir,;t t
45517 s,@oldincludedir@,$oldincludedir,;t t
45518 s,@infodir@,$infodir,;t t
45519 s,@mandir@,$mandir,;t t
45520 s,@build_alias@,$build_alias,;t t
45521 s,@host_alias@,$host_alias,;t t
45522 s,@target_alias@,$target_alias,;t t
45523 s,@DEFS@,$DEFS,;t t
45524 s,@ECHO_C@,$ECHO_C,;t t
45525 s,@ECHO_N@,$ECHO_N,;t t
45526 s,@ECHO_T@,$ECHO_T,;t t
45527 s,@LIBS@,$LIBS,;t t
45528 s,@build@,$build,;t t
45529 s,@build_cpu@,$build_cpu,;t t
45530 s,@build_vendor@,$build_vendor,;t t
45531 s,@build_os@,$build_os,;t t
45532 s,@host@,$host,;t t
45533 s,@host_cpu@,$host_cpu,;t t
45534 s,@host_vendor@,$host_vendor,;t t
45535 s,@host_os@,$host_os,;t t
45536 s,@target@,$target,;t t
45537 s,@target_cpu@,$target_cpu,;t t
45538 s,@target_vendor@,$target_vendor,;t t
45539 s,@target_os@,$target_os,;t t
45540 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45541 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45542 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45543 s,@CYGPATH_W@,$CYGPATH_W,;t t
45544 s,@PACKAGE@,$PACKAGE,;t t
45545 s,@VERSION@,$VERSION,;t t
45546 s,@ACLOCAL@,$ACLOCAL,;t t
45547 s,@AUTOCONF@,$AUTOCONF,;t t
45548 s,@AUTOMAKE@,$AUTOMAKE,;t t
45549 s,@AUTOHEADER@,$AUTOHEADER,;t t
45550 s,@MAKEINFO@,$MAKEINFO,;t t
45551 s,@install_sh@,$install_sh,;t t
45552 s,@STRIP@,$STRIP,;t t
45553 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45554 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45555 s,@mkdir_p@,$mkdir_p,;t t
45556 s,@AWK@,$AWK,;t t
45557 s,@SET_MAKE@,$SET_MAKE,;t t
45558 s,@am__leading_dot@,$am__leading_dot,;t t
45559 s,@AMTAR@,$AMTAR,;t t
45560 s,@am__tar@,$am__tar,;t t
45561 s,@am__untar@,$am__untar,;t t
45562 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45563 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45564 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45565 s,@top_builddir@,$top_builddir,;t t
45566 s,@ldap_subdir@,$ldap_subdir,;t t
45567 s,@CC@,$CC,;t t
45568 s,@AR@,$AR,;t t
45569 s,@CFLAGS@,$CFLAGS,;t t
45570 s,@LDFLAGS@,$LDFLAGS,;t t
45571 s,@CPPFLAGS@,$CPPFLAGS,;t t
45572 s,@ac_ct_CC@,$ac_ct_CC,;t t
45573 s,@EXEEXT@,$EXEEXT,;t t
45574 s,@OBJEXT@,$OBJEXT,;t t
45575 s,@DEPDIR@,$DEPDIR,;t t
45576 s,@am__include@,$am__include,;t t
45577 s,@am__quote@,$am__quote,;t t
45578 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45579 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45580 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45581 s,@CCDEPMODE@,$CCDEPMODE,;t t
45582 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45583 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45584 s,@EGREP@,$EGREP,;t t
45585 s,@LN_S@,$LN_S,;t t
45586 s,@ECHO@,$ECHO,;t t
45587 s,@ac_ct_AR@,$ac_ct_AR,;t t
45588 s,@RANLIB@,$RANLIB,;t t
45589 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45590 s,@DLLTOOL@,$DLLTOOL,;t t
45591 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45592 s,@AS@,$AS,;t t
45593 s,@ac_ct_AS@,$ac_ct_AS,;t t
45594 s,@OBJDUMP@,$OBJDUMP,;t t
45595 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45596 s,@CPP@,$CPP,;t t
45597 s,@LIBTOOL@,$LIBTOOL,;t t
45598 s,@PERLBIN@,$PERLBIN,;t t
45599 s,@OL_MKDEP@,$OL_MKDEP,;t t
45600 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45601 s,@LTSTATIC@,$LTSTATIC,;t t
45602 s,@LIBOBJS@,$LIBOBJS,;t t
45603 s,@LIBSRCS@,$LIBSRCS,;t t
45604 s,@PLAT@,$PLAT,;t t
45605 s,@WITH_SASL@,$WITH_SASL,;t t
45606 s,@WITH_TLS@,$WITH_TLS,;t t
45607 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45608 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45609 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45610 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45611 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45612 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45613 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45614 s,@BUILD_BDB@,$BUILD_BDB,;t t
45615 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45616 s,@BUILD_HDB@,$BUILD_HDB,;t t
45617 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45618 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45619 s,@BUILD_META@,$BUILD_META,;t t
45620 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45621 s,@BUILD_NULL@,$BUILD_NULL,;t t
45622 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45623 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45624 s,@BUILD_PERL@,$BUILD_PERL,;t t
45625 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45626 s,@BUILD_SQL@,$BUILD_SQL,;t t
45627 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45628 s,@BUILD_DDS@,$BUILD_DDS,;t t
45629 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45630 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45631 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45632 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45633 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45634 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45635 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45636 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45637 s,@BUILD_RWM@,$BUILD_RWM,;t t
45638 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45639 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45640 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45641 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45642 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45643 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45644 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45645 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45646 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45647 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45648 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45649 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45650 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45651 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45652 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45653 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45654 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45655 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45656 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45657 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45658 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45659 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45660 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45661 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45662 s,@SASL_LIBS@,$SASL_LIBS,;t t
45663 s,@TLS_LIBS@,$TLS_LIBS,;t t
45664 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45665 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45666 s,@LIBSLAPI@,$LIBSLAPI,;t t
45667 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45668 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45669 s,@ICU_LIBS@,$ICU_LIBS,;t t
45670 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45671 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45672 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45673 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45674 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45675 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45676 CEOF
45677
45678 _ACEOF
45679
45680   cat >>$CONFIG_STATUS <<\_ACEOF
45681   # Split the substitutions into bite-sized pieces for seds with
45682   # small command number limits, like on Digital OSF/1 and HP-UX.
45683   ac_max_sed_lines=48
45684   ac_sed_frag=1 # Number of current file.
45685   ac_beg=1 # First line for current file.
45686   ac_end=$ac_max_sed_lines # Line after last line for current file.
45687   ac_more_lines=:
45688   ac_sed_cmds=
45689   while $ac_more_lines; do
45690     if test $ac_beg -gt 1; then
45691       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45692     else
45693       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45694     fi
45695     if test ! -s $tmp/subs.frag; then
45696       ac_more_lines=false
45697     else
45698       # The purpose of the label and of the branching condition is to
45699       # speed up the sed processing (if there are no `@' at all, there
45700       # is no need to browse any of the substitutions).
45701       # These are the two extra sed commands mentioned above.
45702       (echo ':t
45703   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45704       if test -z "$ac_sed_cmds"; then
45705         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45706       else
45707         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45708       fi
45709       ac_sed_frag=`expr $ac_sed_frag + 1`
45710       ac_beg=$ac_end
45711       ac_end=`expr $ac_end + $ac_max_sed_lines`
45712     fi
45713   done
45714   if test -z "$ac_sed_cmds"; then
45715     ac_sed_cmds=cat
45716   fi
45717 fi # test -n "$CONFIG_FILES"
45718
45719 _ACEOF
45720 cat >>$CONFIG_STATUS <<\_ACEOF
45721 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45722   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45723   case $ac_file in
45724   - | *:- | *:-:* ) # input from stdin
45725         cat >$tmp/stdin
45726         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45727         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45728   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45729         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45730   * )   ac_file_in=$ac_file.in ;;
45731   esac
45732
45733   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45734   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45736          X"$ac_file" : 'X\(//\)[^/]' \| \
45737          X"$ac_file" : 'X\(//\)$' \| \
45738          X"$ac_file" : 'X\(/\)' \| \
45739          .     : '\(.\)' 2>/dev/null ||
45740 echo X"$ac_file" |
45741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45742           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45743           /^X\(\/\/\)$/{ s//\1/; q; }
45744           /^X\(\/\).*/{ s//\1/; q; }
45745           s/.*/./; q'`
45746   { if $as_mkdir_p; then
45747     mkdir -p "$ac_dir"
45748   else
45749     as_dir="$ac_dir"
45750     as_dirs=
45751     while test ! -d "$as_dir"; do
45752       as_dirs="$as_dir $as_dirs"
45753       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45755          X"$as_dir" : 'X\(//\)[^/]' \| \
45756          X"$as_dir" : 'X\(//\)$' \| \
45757          X"$as_dir" : 'X\(/\)' \| \
45758          .     : '\(.\)' 2>/dev/null ||
45759 echo X"$as_dir" |
45760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45761           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45762           /^X\(\/\/\)$/{ s//\1/; q; }
45763           /^X\(\/\).*/{ s//\1/; q; }
45764           s/.*/./; q'`
45765     done
45766     test ! -n "$as_dirs" || mkdir $as_dirs
45767   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45769    { (exit 1); exit 1; }; }; }
45770
45771   ac_builddir=.
45772
45773 if test "$ac_dir" != .; then
45774   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45775   # A "../" for each directory in $ac_dir_suffix.
45776   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45777 else
45778   ac_dir_suffix= ac_top_builddir=
45779 fi
45780
45781 case $srcdir in
45782   .)  # No --srcdir option.  We are building in place.
45783     ac_srcdir=.
45784     if test -z "$ac_top_builddir"; then
45785        ac_top_srcdir=.
45786     else
45787        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45788     fi ;;
45789   [\\/]* | ?:[\\/]* )  # Absolute path.
45790     ac_srcdir=$srcdir$ac_dir_suffix;
45791     ac_top_srcdir=$srcdir ;;
45792   *) # Relative path.
45793     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45794     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45795 esac
45796
45797 # Do not use `cd foo && pwd` to compute absolute paths, because
45798 # the directories may not exist.
45799 case `pwd` in
45800 .) ac_abs_builddir="$ac_dir";;
45801 *)
45802   case "$ac_dir" in
45803   .) ac_abs_builddir=`pwd`;;
45804   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45805   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45806   esac;;
45807 esac
45808 case $ac_abs_builddir in
45809 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45810 *)
45811   case ${ac_top_builddir}. in
45812   .) ac_abs_top_builddir=$ac_abs_builddir;;
45813   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45814   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45815   esac;;
45816 esac
45817 case $ac_abs_builddir in
45818 .) ac_abs_srcdir=$ac_srcdir;;
45819 *)
45820   case $ac_srcdir in
45821   .) ac_abs_srcdir=$ac_abs_builddir;;
45822   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45823   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45824   esac;;
45825 esac
45826 case $ac_abs_builddir in
45827 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45828 *)
45829   case $ac_top_srcdir in
45830   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45831   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45832   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45833   esac;;
45834 esac
45835
45836
45837   case $INSTALL in
45838   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45839   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45840   esac
45841
45842   if test x"$ac_file" != x-; then
45843     { echo "$as_me:$LINENO: creating $ac_file" >&5
45844 echo "$as_me: creating $ac_file" >&6;}
45845     rm -f "$ac_file"
45846   fi
45847   # Let's still pretend it is `configure' which instantiates (i.e., don't
45848   # use $as_me), people would be surprised to read:
45849   #    /* config.h.  Generated by config.status.  */
45850   if test x"$ac_file" = x-; then
45851     configure_input=
45852   else
45853     configure_input="$ac_file.  "
45854   fi
45855   configure_input=$configure_input"Generated from `echo $ac_file_in |
45856                                      sed 's,.*/,,'` by configure."
45857
45858   # First look for the input files in the build tree, otherwise in the
45859   # src tree.
45860   ac_file_inputs=`IFS=:
45861     for f in $ac_file_in; do
45862       case $f in
45863       -) echo $tmp/stdin ;;
45864       [\\/$]*)
45865          # Absolute (can't be DOS-style, as IFS=:)
45866          test -f "$f" || { { 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          echo "$f";;
45870       *) # Relative
45871          if test -f "$f"; then
45872            # Build tree
45873            echo "$f"
45874          elif test -f "$srcdir/$f"; then
45875            # Source tree
45876            echo "$srcdir/$f"
45877          else
45878            # /dev/null tree
45879            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45880 echo "$as_me: error: cannot find input file: $f" >&2;}
45881    { (exit 1); exit 1; }; }
45882          fi;;
45883       esac
45884     done` || { (exit 1); exit 1; }
45885 _ACEOF
45886 cat >>$CONFIG_STATUS <<_ACEOF
45887   sed "$ac_vpsub
45888 $extrasub
45889 _ACEOF
45890 cat >>$CONFIG_STATUS <<\_ACEOF
45891 :t
45892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45893 s,@configure_input@,$configure_input,;t t
45894 s,@srcdir@,$ac_srcdir,;t t
45895 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45896 s,@top_srcdir@,$ac_top_srcdir,;t t
45897 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45898 s,@builddir@,$ac_builddir,;t t
45899 s,@abs_builddir@,$ac_abs_builddir,;t t
45900 s,@top_builddir@,$ac_top_builddir,;t t
45901 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45902 s,@INSTALL@,$ac_INSTALL,;t t
45903 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45904   rm -f $tmp/stdin
45905   if test x"$ac_file" != x-; then
45906     mv $tmp/out $ac_file
45907   else
45908     cat $tmp/out
45909     rm -f $tmp/out
45910   fi
45911
45912 done
45913 _ACEOF
45914 cat >>$CONFIG_STATUS <<\_ACEOF
45915
45916 #
45917 # CONFIG_HEADER section.
45918 #
45919
45920 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45921 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45922 #
45923 # ac_d sets the value in "#define NAME VALUE" lines.
45924 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45925 ac_dB='[         ].*$,\1#\2'
45926 ac_dC=' '
45927 ac_dD=',;t'
45928 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45929 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45930 ac_uB='$,\1#\2define\3'
45931 ac_uC=' '
45932 ac_uD=',;t'
45933
45934 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45935   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45936   case $ac_file in
45937   - | *:- | *:-:* ) # input from stdin
45938         cat >$tmp/stdin
45939         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45940         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45941   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45942         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45943   * )   ac_file_in=$ac_file.in ;;
45944   esac
45945
45946   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45947 echo "$as_me: creating $ac_file" >&6;}
45948
45949   # First look for the input files in the build tree, otherwise in the
45950   # src tree.
45951   ac_file_inputs=`IFS=:
45952     for f in $ac_file_in; do
45953       case $f in
45954       -) echo $tmp/stdin ;;
45955       [\\/$]*)
45956          # Absolute (can't be DOS-style, as IFS=:)
45957          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45958 echo "$as_me: error: cannot find input file: $f" >&2;}
45959    { (exit 1); exit 1; }; }
45960          # Do quote $f, to prevent DOS paths from being IFS'd.
45961          echo "$f";;
45962       *) # Relative
45963          if test -f "$f"; then
45964            # Build tree
45965            echo "$f"
45966          elif test -f "$srcdir/$f"; then
45967            # Source tree
45968            echo "$srcdir/$f"
45969          else
45970            # /dev/null tree
45971            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45972 echo "$as_me: error: cannot find input file: $f" >&2;}
45973    { (exit 1); exit 1; }; }
45974          fi;;
45975       esac
45976     done` || { (exit 1); exit 1; }
45977   # Remove the trailing spaces.
45978   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45979
45980 _ACEOF
45981
45982 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45983 # `conftest.undefs', that substitutes the proper values into
45984 # config.h.in to produce config.h.  The first handles `#define'
45985 # templates, and the second `#undef' templates.
45986 # And first: Protect against being on the right side of a sed subst in
45987 # config.status.  Protect against being in an unquoted here document
45988 # in config.status.
45989 rm -f conftest.defines conftest.undefs
45990 # Using a here document instead of a string reduces the quoting nightmare.
45991 # Putting comments in sed scripts is not portable.
45992 #
45993 # `end' is used to avoid that the second main sed command (meant for
45994 # 0-ary CPP macros) applies to n-ary macro definitions.
45995 # See the Autoconf documentation for `clear'.
45996 cat >confdef2sed.sed <<\_ACEOF
45997 s/[\\&,]/\\&/g
45998 s,[\\$`],\\&,g
45999 t clear
46000 : clear
46001 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46002 t end
46003 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46004 : end
46005 _ACEOF
46006 # If some macros were called several times there might be several times
46007 # the same #defines, which is useless.  Nevertheless, we may not want to
46008 # sort them, since we want the *last* AC-DEFINE to be honored.
46009 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46010 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46011 rm -f confdef2sed.sed
46012
46013 # This sed command replaces #undef with comments.  This is necessary, for
46014 # example, in the case of _POSIX_SOURCE, which is predefined and required
46015 # on some systems where configure will not decide to define it.
46016 cat >>conftest.undefs <<\_ACEOF
46017 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46018 _ACEOF
46019
46020 # Break up conftest.defines because some shells have a limit on the size
46021 # of here documents, and old seds have small limits too (100 cmds).
46022 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46023 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46024 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46025 echo '  :' >>$CONFIG_STATUS
46026 rm -f conftest.tail
46027 while grep . conftest.defines >/dev/null
46028 do
46029   # Write a limited-size here document to $tmp/defines.sed.
46030   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46031   # Speed up: don't consider the non `#define' lines.
46032   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
46033   # Work around the forget-to-reset-the-flag bug.
46034   echo 't clr' >>$CONFIG_STATUS
46035   echo ': clr' >>$CONFIG_STATUS
46036   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46037   echo 'CEOF
46038   sed -f $tmp/defines.sed $tmp/in >$tmp/out
46039   rm -f $tmp/in
46040   mv $tmp/out $tmp/in
46041 ' >>$CONFIG_STATUS
46042   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46043   rm -f conftest.defines
46044   mv conftest.tail conftest.defines
46045 done
46046 rm -f conftest.defines
46047 echo '  fi # grep' >>$CONFIG_STATUS
46048 echo >>$CONFIG_STATUS
46049
46050 # Break up conftest.undefs because some shells have a limit on the size
46051 # of here documents, and old seds have small limits too (100 cmds).
46052 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
46053 rm -f conftest.tail
46054 while grep . conftest.undefs >/dev/null
46055 do
46056   # Write a limited-size here document to $tmp/undefs.sed.
46057   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46058   # Speed up: don't consider the non `#undef'
46059   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
46060   # Work around the forget-to-reset-the-flag bug.
46061   echo 't clr' >>$CONFIG_STATUS
46062   echo ': clr' >>$CONFIG_STATUS
46063   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46064   echo 'CEOF
46065   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46066   rm -f $tmp/in
46067   mv $tmp/out $tmp/in
46068 ' >>$CONFIG_STATUS
46069   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46070   rm -f conftest.undefs
46071   mv conftest.tail conftest.undefs
46072 done
46073 rm -f conftest.undefs
46074
46075 cat >>$CONFIG_STATUS <<\_ACEOF
46076   # Let's still pretend it is `configure' which instantiates (i.e., don't
46077   # use $as_me), people would be surprised to read:
46078   #    /* config.h.  Generated by config.status.  */
46079   if test x"$ac_file" = x-; then
46080     echo "/* Generated by configure.  */" >$tmp/config.h
46081   else
46082     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
46083   fi
46084   cat $tmp/in >>$tmp/config.h
46085   rm -f $tmp/in
46086   if test x"$ac_file" != x-; then
46087     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46088       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46089 echo "$as_me: $ac_file is unchanged" >&6;}
46090     else
46091       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46093          X"$ac_file" : 'X\(//\)[^/]' \| \
46094          X"$ac_file" : 'X\(//\)$' \| \
46095          X"$ac_file" : 'X\(/\)' \| \
46096          .     : '\(.\)' 2>/dev/null ||
46097 echo X"$ac_file" |
46098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46099           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46100           /^X\(\/\/\)$/{ s//\1/; q; }
46101           /^X\(\/\).*/{ s//\1/; q; }
46102           s/.*/./; q'`
46103       { if $as_mkdir_p; then
46104     mkdir -p "$ac_dir"
46105   else
46106     as_dir="$ac_dir"
46107     as_dirs=
46108     while test ! -d "$as_dir"; do
46109       as_dirs="$as_dir $as_dirs"
46110       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46112          X"$as_dir" : 'X\(//\)[^/]' \| \
46113          X"$as_dir" : 'X\(//\)$' \| \
46114          X"$as_dir" : 'X\(/\)' \| \
46115          .     : '\(.\)' 2>/dev/null ||
46116 echo X"$as_dir" |
46117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46118           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46119           /^X\(\/\/\)$/{ s//\1/; q; }
46120           /^X\(\/\).*/{ s//\1/; q; }
46121           s/.*/./; q'`
46122     done
46123     test ! -n "$as_dirs" || mkdir $as_dirs
46124   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46125 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46126    { (exit 1); exit 1; }; }; }
46127
46128       rm -f $ac_file
46129       mv $tmp/config.h $ac_file
46130     fi
46131   else
46132     cat $tmp/config.h
46133     rm -f $tmp/config.h
46134   fi
46135 # Compute $ac_file's index in $config_headers.
46136 _am_stamp_count=1
46137 for _am_header in $config_headers :; do
46138   case $_am_header in
46139     $ac_file | $ac_file:* )
46140       break ;;
46141     * )
46142       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46143   esac
46144 done
46145 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46146 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46147          X$ac_file : 'X\(//\)[^/]' \| \
46148          X$ac_file : 'X\(//\)$' \| \
46149          X$ac_file : 'X\(/\)' \| \
46150          .     : '\(.\)' 2>/dev/null ||
46151 echo X$ac_file |
46152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46153           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46154           /^X\(\/\/\)$/{ s//\1/; q; }
46155           /^X\(\/\).*/{ s//\1/; q; }
46156           s/.*/./; q'`/stamp-h$_am_stamp_count
46157 done
46158 _ACEOF
46159 cat >>$CONFIG_STATUS <<\_ACEOF
46160
46161 #
46162 # CONFIG_COMMANDS section.
46163 #
46164 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46165   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46166   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46167   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46168 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46169          X"$ac_dest" : 'X\(//\)[^/]' \| \
46170          X"$ac_dest" : 'X\(//\)$' \| \
46171          X"$ac_dest" : 'X\(/\)' \| \
46172          .     : '\(.\)' 2>/dev/null ||
46173 echo X"$ac_dest" |
46174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46175           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46176           /^X\(\/\/\)$/{ s//\1/; q; }
46177           /^X\(\/\).*/{ s//\1/; q; }
46178           s/.*/./; q'`
46179   { if $as_mkdir_p; then
46180     mkdir -p "$ac_dir"
46181   else
46182     as_dir="$ac_dir"
46183     as_dirs=
46184     while test ! -d "$as_dir"; do
46185       as_dirs="$as_dir $as_dirs"
46186       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46188          X"$as_dir" : 'X\(//\)[^/]' \| \
46189          X"$as_dir" : 'X\(//\)$' \| \
46190          X"$as_dir" : 'X\(/\)' \| \
46191          .     : '\(.\)' 2>/dev/null ||
46192 echo X"$as_dir" |
46193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46194           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46195           /^X\(\/\/\)$/{ s//\1/; q; }
46196           /^X\(\/\).*/{ s//\1/; q; }
46197           s/.*/./; q'`
46198     done
46199     test ! -n "$as_dirs" || mkdir $as_dirs
46200   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46201 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46202    { (exit 1); exit 1; }; }; }
46203
46204   ac_builddir=.
46205
46206 if test "$ac_dir" != .; then
46207   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46208   # A "../" for each directory in $ac_dir_suffix.
46209   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46210 else
46211   ac_dir_suffix= ac_top_builddir=
46212 fi
46213
46214 case $srcdir in
46215   .)  # No --srcdir option.  We are building in place.
46216     ac_srcdir=.
46217     if test -z "$ac_top_builddir"; then
46218        ac_top_srcdir=.
46219     else
46220        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46221     fi ;;
46222   [\\/]* | ?:[\\/]* )  # Absolute path.
46223     ac_srcdir=$srcdir$ac_dir_suffix;
46224     ac_top_srcdir=$srcdir ;;
46225   *) # Relative path.
46226     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46227     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46228 esac
46229
46230 # Do not use `cd foo && pwd` to compute absolute paths, because
46231 # the directories may not exist.
46232 case `pwd` in
46233 .) ac_abs_builddir="$ac_dir";;
46234 *)
46235   case "$ac_dir" in
46236   .) ac_abs_builddir=`pwd`;;
46237   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46238   *) ac_abs_builddir=`pwd`/"$ac_dir";;
46239   esac;;
46240 esac
46241 case $ac_abs_builddir in
46242 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46243 *)
46244   case ${ac_top_builddir}. in
46245   .) ac_abs_top_builddir=$ac_abs_builddir;;
46246   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46247   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46248   esac;;
46249 esac
46250 case $ac_abs_builddir in
46251 .) ac_abs_srcdir=$ac_srcdir;;
46252 *)
46253   case $ac_srcdir in
46254   .) ac_abs_srcdir=$ac_abs_builddir;;
46255   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46256   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46257   esac;;
46258 esac
46259 case $ac_abs_builddir in
46260 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46261 *)
46262   case $ac_top_srcdir in
46263   .) ac_abs_top_srcdir=$ac_abs_builddir;;
46264   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46265   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46266   esac;;
46267 esac
46268
46269
46270   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46271 echo "$as_me: executing $ac_dest commands" >&6;}
46272   case $ac_dest in
46273     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46274   # Strip MF so we end up with the name of the file.
46275   mf=`echo "$mf" | sed -e 's/:.*$//'`
46276   # Check whether this is an Automake generated Makefile or not.
46277   # We used to match only the files named `Makefile.in', but
46278   # some people rename them; so instead we look at the file content.
46279   # Grep'ing the first line is not enough: some people post-process
46280   # each Makefile.in and add a new line on top of each file to say so.
46281   # So let's grep whole file.
46282   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46283     dirpart=`(dirname "$mf") 2>/dev/null ||
46284 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46285          X"$mf" : 'X\(//\)[^/]' \| \
46286          X"$mf" : 'X\(//\)$' \| \
46287          X"$mf" : 'X\(/\)' \| \
46288          .     : '\(.\)' 2>/dev/null ||
46289 echo X"$mf" |
46290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46291           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46292           /^X\(\/\/\)$/{ s//\1/; q; }
46293           /^X\(\/\).*/{ s//\1/; q; }
46294           s/.*/./; q'`
46295   else
46296     continue
46297   fi
46298   # Extract the definition of DEPDIR, am__include, and am__quote
46299   # from the Makefile without running `make'.
46300   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46301   test -z "$DEPDIR" && continue
46302   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46303   test -z "am__include" && continue
46304   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46305   # When using ansi2knr, U may be empty or an underscore; expand it
46306   U=`sed -n 's/^U = //p' < "$mf"`
46307   # Find all dependency output files, they are included files with
46308   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46309   # simplest approach to changing $(DEPDIR) to its actual value in the
46310   # expansion.
46311   for file in `sed -n "
46312     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46313        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46314     # Make sure the directory exists.
46315     test -f "$dirpart/$file" && continue
46316     fdir=`(dirname "$file") 2>/dev/null ||
46317 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46318          X"$file" : 'X\(//\)[^/]' \| \
46319          X"$file" : 'X\(//\)$' \| \
46320          X"$file" : 'X\(/\)' \| \
46321          .     : '\(.\)' 2>/dev/null ||
46322 echo X"$file" |
46323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46324           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46325           /^X\(\/\/\)$/{ s//\1/; q; }
46326           /^X\(\/\).*/{ s//\1/; q; }
46327           s/.*/./; q'`
46328     { if $as_mkdir_p; then
46329     mkdir -p $dirpart/$fdir
46330   else
46331     as_dir=$dirpart/$fdir
46332     as_dirs=
46333     while test ! -d "$as_dir"; do
46334       as_dirs="$as_dir $as_dirs"
46335       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46337          X"$as_dir" : 'X\(//\)[^/]' \| \
46338          X"$as_dir" : 'X\(//\)$' \| \
46339          X"$as_dir" : 'X\(/\)' \| \
46340          .     : '\(.\)' 2>/dev/null ||
46341 echo X"$as_dir" |
46342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46343           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46344           /^X\(\/\/\)$/{ s//\1/; q; }
46345           /^X\(\/\).*/{ s//\1/; q; }
46346           s/.*/./; q'`
46347     done
46348     test ! -n "$as_dirs" || mkdir $as_dirs
46349   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46350 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46351    { (exit 1); exit 1; }; }; }
46352
46353     # echo "creating $dirpart/$file"
46354     echo '# dummy' > "$dirpart/$file"
46355   done
46356 done
46357  ;;
46358     default )
46359 chmod +x tests/run
46360 date > stamp-h
46361 BACKENDSC="servers/slapd/backends.c"
46362 echo "Making $BACKENDSC"
46363 rm -f $BACKENDSC
46364 cat > $BACKENDSC << ENDX
46365 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46366  *
46367  * Copyright 1998-2006 The OpenLDAP Foundation.
46368  * All rights reserved.
46369  *
46370  * Redistribution and use in source and binary forms, with or without
46371  * modification, are permitted only as authorized by the OpenLDAP
46372  * Public License.
46373  *
46374  * A copy of this license is available in the file LICENSE in the
46375  * top-level directory of the distribution or, alternatively, at
46376  * <http://www.OpenLDAP.org/license.html>.
46377  */
46378 /* This file is automatically generated by configure; please do not edit. */
46379
46380 #include "portable.h"
46381 #include "slap.h"
46382
46383 ENDX
46384 if test "${STATIC_BACKENDS}"; then
46385         for b in config ${STATIC_BACKENDS}; do
46386                 bb=`echo "${b}" | sed -e 's/back-//'`
46387                 cat >> $BACKENDSC << ENDX
46388 extern BI_init ${bb}_back_initialize;
46389 ENDX
46390         done
46391
46392         cat >> $BACKENDSC << ENDX
46393
46394 BackendInfo slap_binfo[] = {
46395 ENDX
46396
46397         for b in config ${STATIC_BACKENDS}; do
46398                 bb=`echo "${b}" | sed -e 's/back-//'`
46399                 echo "    Add ${bb} ..."
46400                 cat >> $BACKENDSC << ENDX
46401         { "${bb}", ${bb}_back_initialize },
46402 ENDX
46403         done
46404
46405         cat >> $BACKENDSC << ENDX
46406         { NULL, NULL },
46407 };
46408
46409 /* end of generated file */
46410 ENDX
46411 fi
46412 OVERLAYSC="servers/slapd/overlays/statover.c"
46413 echo "Making $OVERLAYSC"
46414 rm -f $OVERLAYSC
46415 cat > $OVERLAYSC << ENDX
46416 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46417  *
46418  * Copyright 1998-2006 The OpenLDAP Foundation.
46419  * All rights reserved.
46420  *
46421  * Redistribution and use in source and binary forms, with or without
46422  * modification, are permitted only as authorized by the OpenLDAP
46423  * Public License.
46424  *
46425  * A copy of this license is available in the file LICENSE in the
46426  * top-level directory of the distribution or, alternatively, at
46427  * <http://www.OpenLDAP.org/license.html>.
46428  */
46429 /* This file is automatically generated by configure; please do not edit. */
46430
46431 #include "portable.h"
46432 #include "slap.h"
46433
46434 ENDX
46435 if test "${STATIC_OVERLAYS}"; then
46436         for o in ${STATIC_OVERLAYS}; do
46437                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46438                 cat >> $OVERLAYSC << ENDX
46439 extern OV_init ${oo}_initialize;
46440 ENDX
46441         done
46442 fi
46443
46444 cat >> $OVERLAYSC << ENDX
46445
46446 OverlayInit slap_oinfo[] = {
46447 ENDX
46448
46449 if test "${STATIC_OVERLAYS}"; then
46450         for o in ${STATIC_OVERLAYS}; do
46451                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46452                 echo "    Add ${oo} ..."
46453                 cat >> $OVERLAYSC << ENDX
46454         { "${oo}", ${oo}_initialize },
46455 ENDX
46456         done
46457 fi
46458
46459         cat >> $OVERLAYSC << ENDX
46460         { NULL, NULL },
46461 };
46462
46463 /* end of generated file */
46464 ENDX
46465
46466 echo Please run \"make depend\" to build dependencies
46467  ;;
46468   esac
46469 done
46470 _ACEOF
46471
46472 cat >>$CONFIG_STATUS <<\_ACEOF
46473
46474 { (exit 0); exit 0; }
46475 _ACEOF
46476 chmod +x $CONFIG_STATUS
46477 ac_clean_files=$ac_clean_files_save
46478
46479
46480 # configure is writing to config.log, and then calls config.status.
46481 # config.status does its own redirection, appending to config.log.
46482 # Unfortunately, on DOS this fails, as config.log is still kept open
46483 # by configure, so config.status won't be able to write to it; its
46484 # output is simply discarded.  So we exec the FD to /dev/null,
46485 # effectively closing config.log, so it can be properly (re)opened and
46486 # appended to by config.status.  When coming back to configure, we
46487 # need to make the FD available again.
46488 if test "$no_create" != yes; then
46489   ac_cs_success=:
46490   ac_config_status_args=
46491   test "$silent" = yes &&
46492     ac_config_status_args="$ac_config_status_args --quiet"
46493   exec 5>/dev/null
46494   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46495   exec 5>>config.log
46496   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46497   # would make configure fail if this is the last instruction.
46498   $ac_cs_success || { (exit 1); exit 1; }
46499 fi
46500