]> git.sur5r.net Git - openldap/blob - configure
Search libs for uuid_generate
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.646 2007/03/02 06:36:23 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2007 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_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS BDB_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-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-null         enable null backend no|yes|mod [no]
1040     --enable-passwd       enable passwd backend no|yes|mod [no]
1041     --enable-perl         enable perl backend no|yes|mod [no]
1042     --enable-relay        enable relay backend no|yes|mod [yes]
1043     --enable-shell        enable shell backend no|yes|mod [no]
1044     --enable-sql          enable sql backend no|yes|mod [no]
1045
1046 SLAPD Overlay Options:
1047     --enable-overlays     enable all available overlays no|yes|mod
1048     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1049     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1050     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1051     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1055     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1056     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1057     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1058     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1059     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 SLURPD (Replication Daemon) Options:
1066   --enable-slurpd         enable building slurpd [auto]
1067
1068 Library Generation & Linking Options
1069   --enable-static[=PKGS]
1070                           build static libraries [default=yes]
1071   --enable-shared[=PKGS]
1072                           build shared libraries [default=yes]
1073   --enable-fast-install[=PKGS]
1074                           optimize for fast installation [default=yes]
1075   --disable-dependency-tracking  speeds up one-time build
1076   --enable-dependency-tracking   do not reject slow dependency extractors
1077   --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079 Optional Packages:
1080   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082   --with-subdir=DIR       change default subdirectory used for installs
1083   --with-cyrus-sasl       with Cyrus SASL support [auto]
1084   --with-fetch            with fetch(3) URL support [auto]
1085   --with-threads          with threads [auto]
1086   --with-tls              with TLS/SSL support [auto]
1087   --with-yielding-select  with implicitly yielding select [auto]
1088   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1089   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1090   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1091   --with-pic              try to use only PIC/non-PIC objects [default=use
1092                           both]
1093   --with-tags[=TAGS]
1094                           include additional configurations [automatic]
1095
1096 See INSTALL file for further details.
1097
1098 Some influential environment variables:
1099   CC          C compiler command
1100   CFLAGS      C compiler flags
1101   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1102               nonstandard directory <lib dir>
1103   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104               headers in a nonstandard directory <include dir>
1105   CPP         C preprocessor
1106
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1109
1110 _ACEOF
1111 fi
1112
1113 if test "$ac_init_help" = "recursive"; then
1114   # If there are subdirs, report their specific --help.
1115   ac_popdir=`pwd`
1116   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117     test -d $ac_dir || continue
1118     ac_builddir=.
1119
1120 if test "$ac_dir" != .; then
1121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122   # A "../" for each directory in $ac_dir_suffix.
1123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 else
1125   ac_dir_suffix= ac_top_builddir=
1126 fi
1127
1128 case $srcdir in
1129   .)  # No --srcdir option.  We are building in place.
1130     ac_srcdir=.
1131     if test -z "$ac_top_builddir"; then
1132        ac_top_srcdir=.
1133     else
1134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135     fi ;;
1136   [\\/]* | ?:[\\/]* )  # Absolute path.
1137     ac_srcdir=$srcdir$ac_dir_suffix;
1138     ac_top_srcdir=$srcdir ;;
1139   *) # Relative path.
1140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 esac
1143
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1146 case `pwd` in
1147 .) ac_abs_builddir="$ac_dir";;
1148 *)
1149   case "$ac_dir" in
1150   .) ac_abs_builddir=`pwd`;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *)
1158   case ${ac_top_builddir}. in
1159   .) ac_abs_top_builddir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162   esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1166 *)
1167   case $ac_srcdir in
1168   .) ac_abs_srcdir=$ac_abs_builddir;;
1169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171   esac;;
1172 esac
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *)
1176   case $ac_top_srcdir in
1177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180   esac;;
1181 esac
1182
1183     cd $ac_dir
1184     # Check for guested configure; otherwise get Cygnus style configure.
1185     if test -f $ac_srcdir/configure.gnu; then
1186       echo
1187       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1188     elif test -f $ac_srcdir/configure; then
1189       echo
1190       $SHELL $ac_srcdir/configure  --help=recursive
1191     elif test -f $ac_srcdir/configure.ac ||
1192            test -f $ac_srcdir/configure.in; then
1193       echo
1194       $ac_configure --help
1195     else
1196       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197     fi
1198     cd $ac_popdir
1199   done
1200 fi
1201
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1204   cat <<\_ACEOF
1205
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1209
1210 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1212 _ACEOF
1213   exit 0
1214 fi
1215 exec 5>config.log
1216 cat >&5 <<_ACEOF
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1219
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59.  Invocation command line was
1222
1223   $ $0 $@
1224
1225 _ACEOF
1226 {
1227 cat <<_ASUNAME
1228 ## --------- ##
1229 ## Platform. ##
1230 ## --------- ##
1231
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1240
1241 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1242 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1245 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1246 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1247 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1248
1249 _ASUNAME
1250
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252 for as_dir in $PATH
1253 do
1254   IFS=$as_save_IFS
1255   test -z "$as_dir" && as_dir=.
1256   echo "PATH: $as_dir"
1257 done
1258
1259 } >&5
1260
1261 cat >&5 <<_ACEOF
1262
1263
1264 ## ----------- ##
1265 ## Core tests. ##
1266 ## ----------- ##
1267
1268 _ACEOF
1269
1270
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1276 ac_configure_args=
1277 ac_configure_args0=
1278 ac_configure_args1=
1279 ac_sep=
1280 ac_must_keep_next=false
1281 for ac_pass in 1 2
1282 do
1283   for ac_arg
1284   do
1285     case $ac_arg in
1286     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288     | -silent | --silent | --silen | --sile | --sil)
1289       continue ;;
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     esac
1293     case $ac_pass in
1294     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295     2)
1296       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297       if test $ac_must_keep_next = true; then
1298         ac_must_keep_next=false # Got value, back to normal.
1299       else
1300         case $ac_arg in
1301           *=* | --config-cache | -C | -disable-* | --disable-* \
1302           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304           | -with-* | --with-* | -without-* | --without-* | --x)
1305             case "$ac_configure_args0 " in
1306               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307             esac
1308             ;;
1309           -* ) ac_must_keep_next=true ;;
1310         esac
1311       fi
1312       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313       # Get rid of the leading space.
1314       ac_sep=" "
1315       ;;
1316     esac
1317   done
1318 done
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log.  We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328   # Save into config.log some information that might help in debugging.
1329   {
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1336 _ASBOX
1337     echo
1338     # The following way of writing the cache mishandles newlines in values,
1339 {
1340   (set) 2>&1 |
1341     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342     *ac_space=\ *)
1343       sed -n \
1344         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1346       ;;
1347     *)
1348       sed -n \
1349         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350       ;;
1351     esac;
1352 }
1353     echo
1354
1355     cat <<\_ASBOX
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1359 _ASBOX
1360     echo
1361     for ac_var in $ac_subst_vars
1362     do
1363       eval ac_val=$`echo $ac_var`
1364       echo "$ac_var='"'"'$ac_val'"'"'"
1365     done | sort
1366     echo
1367
1368     if test -n "$ac_subst_files"; then
1369       cat <<\_ASBOX
1370 ## ------------- ##
1371 ## Output files. ##
1372 ## ------------- ##
1373 _ASBOX
1374       echo
1375       for ac_var in $ac_subst_files
1376       do
1377         eval ac_val=$`echo $ac_var`
1378         echo "$ac_var='"'"'$ac_val'"'"'"
1379       done | sort
1380       echo
1381     fi
1382
1383     if test -s confdefs.h; then
1384       cat <<\_ASBOX
1385 ## ----------- ##
1386 ## confdefs.h. ##
1387 ## ----------- ##
1388 _ASBOX
1389       echo
1390       sed "/^$/d" confdefs.h | sort
1391       echo
1392     fi
1393     test "$ac_signal" != 0 &&
1394       echo "$as_me: caught signal $ac_signal"
1395     echo "$as_me: exit $exit_status"
1396   } >&5
1397   rm -f core *.core &&
1398   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399     exit $exit_status
1400      ' 0
1401 for ac_signal in 1 2 13 15; do
1402   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403 done
1404 ac_signal=0
1405
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409 echo >confdefs.h
1410
1411 # Predefined preprocessor variables.
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1415 _ACEOF
1416
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 _ACEOF
1436
1437
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441   if test "x$prefix" != xNONE; then
1442     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443   else
1444     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445   fi
1446 fi
1447 for ac_site_file in $CONFIG_SITE; do
1448   if test -r "$ac_site_file"; then
1449     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451     sed 's/^/| /' "$ac_site_file" >&5
1452     . "$ac_site_file"
1453   fi
1454 done
1455
1456
1457 # Check that the precious variables saved in the cache have kept the same
1458 # value.
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463   eval ac_new_set=\$ac_env_${ac_var}_set
1464   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465   eval ac_new_val="\$ac_env_${ac_var}_value"
1466   case $ac_old_set,$ac_new_set in
1467     set,)
1468       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470       ac_cache_corrupted=: ;;
1471     ,set)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,);;
1476     *)
1477       if test "x$ac_old_val" != "x$ac_new_val"; then
1478         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1481 echo "$as_me:   former value:  $ac_old_val" >&2;}
1482         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1483 echo "$as_me:   current value: $ac_new_val" >&2;}
1484         ac_cache_corrupted=:
1485       fi;;
1486   esac
1487   # Pass precious variables to config.status.
1488   if test "$ac_new_set" = set; then
1489     case $ac_new_val in
1490     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492     *) ac_arg=$ac_var=$ac_new_val ;;
1493     esac
1494     case " $ac_configure_args " in
1495       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1496       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497     esac
1498   fi
1499 done
1500 if $ac_cache_corrupted; then
1501   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507
1508 ac_ext=c
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in build $srcdir/build; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif 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/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589         ac_cv_shtool="$ac_aux_dir/shtool"
1590 else
1591         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 SHTOOL="$ac_cv_shtool"
1597
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1600
1601 OPENLDAP_CVS=""
1602 if test -d $ac_aux_dir/CVS; then
1603         OPENLDAP_CVS="(from CVS sources) "
1604 fi
1605
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621   ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625    { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647   ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669   ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687   test "$program_prefix$program_suffix$program_transform_name" = \
1688     NONENONEs,x,x, &&
1689   program_prefix=${target_alias}-
1690
1691 am__api_version="1.9"
1692 # Find a good install program.  We prefer a C program (faster),
1693 # so one script is as good as another.  But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1698 # AIX /bin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   # Account for people who put trailing slashes in PATH elements.
1717 case $as_dir/ in
1718   ./ | .// | /cC/* | \
1719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1721   /usr/ucb/* ) ;;
1722   *)
1723     # OSF1 and SCO ODT 3.0 have their own names for install.
1724     # Don't use installbsd from OSF since it installs stuff as root
1725     # by default.
1726     for ac_prog in ginstall scoinst install; do
1727       for ac_exec_ext in '' $ac_executable_extensions; do
1728         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729           if test $ac_prog = install &&
1730             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731             # AIX install.  It has an incompatible calling convention.
1732             :
1733           elif test $ac_prog = install &&
1734             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # program-specific install script used by HP pwplus--don't use.
1736             :
1737           else
1738             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739             break 3
1740           fi
1741         fi
1742       done
1743     done
1744     ;;
1745 esac
1746 done
1747
1748
1749 fi
1750   if test "${ac_cv_path_install+set}" = set; then
1751     INSTALL=$ac_cv_path_install
1752   else
1753     # As a last resort, use the slow shell script.  We don't cache a
1754     # path for INSTALL within a source directory, because that will
1755     # break other packages using the cache if that directory is
1756     # removed, or if the path is relative.
1757     INSTALL=$ac_install_sh
1758   fi
1759 fi
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1762
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1768
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1773 # Just in case
1774 sleep 1
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments.  Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1780 # directory).
1781 if (
1782    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783    if test "$*" = "X"; then
1784       # -L didn't work.
1785       set X `ls -t $srcdir/configure conftest.file`
1786    fi
1787    rm -f conftest.file
1788    if test "$*" != "X $srcdir/configure conftest.file" \
1789       && test "$*" != "X conftest.file $srcdir/configure"; then
1790
1791       # If neither matched, then we have a broken ls.  This can happen
1792       # if, for instance, CONFIG_SHELL is bash and it inherits a
1793       # broken ls alias from the environment.  This has actually
1794       # happened.  Such a system could not be considered "sane".
1795       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&2;}
1799    { (exit 1); exit 1; }; }
1800    fi
1801
1802    test "$2" = conftest.file
1803    )
1804 then
1805    # Ok.
1806    :
1807 else
1808    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $.  echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1825 _ACEOF
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1827 rm conftest.sed
1828
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1831
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835   am_missing_run="$MISSING --run "
1836 else
1837   am_missing_run=
1838   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1840 fi
1841
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843   # We used to keeping the `.' as first argument, in order to
1844   # allow $(mkdir_p) to be used without argument.  As in
1845   #   $(mkdir_p) $(somedir)
1846   # where $(somedir) is conditionally defined.  However this is wrong
1847   # for two reasons:
1848   #  1. if the package is installed by a user who cannot write `.'
1849   #     make install will fail,
1850   #  2. the above comment should most certainly read
1851   #     $(mkdir_p) $(DESTDIR)$(somedir)
1852   #     so it does not work when $(somedir) is undefined and
1853   #     $(DESTDIR) is not.
1854   #  To support the latter case, we have to write
1855   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856   #  so the `.' trick is pointless.
1857   mkdir_p='mkdir -p --'
1858 else
1859   # On NextStep and OpenStep, the `mkdir' command does not
1860   # recognize any option.  It will interpret all options as
1861   # directories to create, and then abort because `.' already
1862   # exists.
1863   for d in ./-p ./--version;
1864   do
1865     test -d $d && rmdir $d
1866   done
1867   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868   if test -f "$ac_aux_dir/mkinstalldirs"; then
1869     mkdir_p='$(mkinstalldirs)'
1870   else
1871     mkdir_p='$(install_sh) -d'
1872   fi
1873 fi
1874
1875 for ac_prog in gawk mawk nawk awk
1876 do
1877   # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$AWK"; then
1885   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_AWK="$ac_prog"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 AWK=$ac_cv_prog_AWK
1904 if test -n "$AWK"; then
1905   echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912   test -n "$AWK" && break
1913 done
1914
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.make <<\_ACEOF
1922 all:
1923         @echo 'ac_maketemp="$(MAKE)"'
1924 _ACEOF
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928   eval ac_cv_prog_make_${ac_make}_set=yes
1929 else
1930   eval ac_cv_prog_make_${ac_make}_set=no
1931 fi
1932 rm -f conftest.make
1933 fi
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935   echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1937   SET_MAKE=
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941   SET_MAKE="MAKE=${MAKE-make}"
1942 fi
1943
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1947   am__leading_dot=.
1948 else
1949   am__leading_dot=_
1950 fi
1951 rmdir .tst 2>/dev/null
1952
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955    test -f $srcdir/config.status; then
1956   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963   if (cygpath --version) >/dev/null 2>/dev/null; then
1964     CYGPATH_W='cygpath -w'
1965   else
1966     CYGPATH_W=echo
1967   fi
1968 fi
1969
1970
1971 # Define the identity of the package.
1972  PACKAGE=$OL_PACKAGE
1973  VERSION=$OL_VERSION
1974
1975
1976 # Some tools Automake needs.
1977
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1979
1980
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1982
1983
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1985
1986
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1988
1989
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1991
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1993
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'.  However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999   if test -n "$ac_tool_prefix"; then
2000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$STRIP"; then
2008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028   echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_STRIP"; then
2037   ac_ct_STRIP=$STRIP
2038   # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_STRIP"; then
2046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055     ac_cv_prog_ac_ct_STRIP="strip"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061
2062   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2063 fi
2064 fi
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074   STRIP=$ac_ct_STRIP
2075 else
2076   STRIP="$ac_cv_prog_STRIP"
2077 fi
2078
2079 fi
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2081
2082 # We need awk for the "check" target.  The system "awk" is bad on
2083 # some platforms.
2084 # Always define AMTAR for backward compatibility.
2085
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2087
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2089
2090
2091
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2101 _ACEOF
2102
2103
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2107 _ACEOF
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2122 _ACEOF
2123
2124
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2126
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2128
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2130
2131
2132
2133
2134
2135
2136
2137           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2138
2139           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2140
2141           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2142
2143
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2146
2147
2148 top_builddir=`pwd`
2149
2150 ldap_subdir="/openldap"
2151
2152
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155   withval="$with_subdir"
2156   case "$withval" in
2157         no) ldap_subdir=""
2158                 ;;
2159         yes)
2160                 ;;
2161         /*|\\*)
2162                 ldap_subdir="$withval"
2163                 ;;
2164         *)
2165                 ldap_subdir="/$withval"
2166                 ;;
2167 esac
2168
2169 fi;
2170
2171 # OpenLDAP --enable-debug
2172
2173         # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175   enableval="$enable_debug"
2176
2177         ol_arg=invalid
2178         for ol_val in no yes traditional ; do
2179                 if test "$enableval" = "$ol_val" ; then
2180                         ol_arg="$ol_val"
2181                 fi
2182         done
2183         if test "$ol_arg" = "invalid" ; then
2184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186    { (exit 1); exit 1; }; }
2187         fi
2188         ol_enable_debug="$ol_arg"
2189
2190 else
2191         ol_enable_debug=yes
2192 fi;
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2195
2196         # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198   enableval="$enable_dynamic"
2199
2200         ol_arg=invalid
2201         for ol_val in auto yes no ; do
2202                 if test "$enableval" = "$ol_val" ; then
2203                         ol_arg="$ol_val"
2204                 fi
2205         done
2206         if test "$ol_arg" = "invalid" ; then
2207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209    { (exit 1); exit 1; }; }
2210         fi
2211         ol_enable_dynamic="$ol_arg"
2212
2213 else
2214         ol_enable_dynamic=no
2215 fi;
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2218
2219         # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221   enableval="$enable_syslog"
2222
2223         ol_arg=invalid
2224         for ol_val in auto yes no ; do
2225                 if test "$enableval" = "$ol_val" ; then
2226                         ol_arg="$ol_val"
2227                 fi
2228         done
2229         if test "$ol_arg" = "invalid" ; then
2230                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232    { (exit 1); exit 1; }; }
2233         fi
2234         ol_enable_syslog="$ol_arg"
2235
2236 else
2237         ol_enable_syslog=auto
2238 fi;
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2241
2242         # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244   enableval="$enable_proctitle"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_proctitle="$ol_arg"
2258
2259 else
2260         ol_enable_proctitle=yes
2261 fi;
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 # OpenLDAP --enable-ipv6
2265
2266         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268   enableval="$enable_ipv6"
2269
2270         ol_arg=invalid
2271         for ol_val in auto yes no ; do
2272                 if test "$enableval" = "$ol_val" ; then
2273                         ol_arg="$ol_val"
2274                 fi
2275         done
2276         if test "$ol_arg" = "invalid" ; then
2277                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279    { (exit 1); exit 1; }; }
2280         fi
2281         ol_enable_ipv6="$ol_arg"
2282
2283 else
2284         ol_enable_ipv6=auto
2285 fi;
2286 # end --enable-ipv6
2287 # OpenLDAP --enable-local
2288
2289         # Check whether --enable-local or --disable-local was given.
2290 if test "${enable_local+set}" = set; then
2291   enableval="$enable_local"
2292
2293         ol_arg=invalid
2294         for ol_val in auto yes no ; do
2295                 if test "$enableval" = "$ol_val" ; then
2296                         ol_arg="$ol_val"
2297                 fi
2298         done
2299         if test "$ol_arg" = "invalid" ; then
2300                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2301 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2302    { (exit 1); exit 1; }; }
2303         fi
2304         ol_enable_local="$ol_arg"
2305
2306 else
2307         ol_enable_local=auto
2308 fi;
2309 # end --enable-local
2310
2311 # OpenLDAP --with-cyrus_sasl
2312
2313 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2314 if test "${with_cyrus_sasl+set}" = set; then
2315   withval="$with_cyrus_sasl"
2316
2317         ol_arg=invalid
2318         for ol_val in auto yes no  ; do
2319                 if test "$withval" = "$ol_val" ; then
2320                         ol_arg="$ol_val"
2321                 fi
2322         done
2323         if test "$ol_arg" = "invalid" ; then
2324                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2325 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2326    { (exit 1); exit 1; }; }
2327         fi
2328         ol_with_cyrus_sasl="$ol_arg"
2329
2330 else
2331         ol_with_cyrus_sasl="auto"
2332 fi; # end --with-cyrus_sasl
2333
2334 # OpenLDAP --with-fetch
2335
2336 # Check whether --with-fetch or --without-fetch was given.
2337 if test "${with_fetch+set}" = set; then
2338   withval="$with_fetch"
2339
2340         ol_arg=invalid
2341         for ol_val in auto yes no  ; do
2342                 if test "$withval" = "$ol_val" ; then
2343                         ol_arg="$ol_val"
2344                 fi
2345         done
2346         if test "$ol_arg" = "invalid" ; then
2347                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2348 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2349    { (exit 1); exit 1; }; }
2350         fi
2351         ol_with_fetch="$ol_arg"
2352
2353 else
2354         ol_with_fetch="auto"
2355 fi; # end --with-fetch
2356
2357 # OpenLDAP --with-threads
2358
2359 # Check whether --with-threads or --without-threads was given.
2360 if test "${with_threads+set}" = set; then
2361   withval="$with_threads"
2362
2363         ol_arg=invalid
2364         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2365                 if test "$withval" = "$ol_val" ; then
2366                         ol_arg="$ol_val"
2367                 fi
2368         done
2369         if test "$ol_arg" = "invalid" ; then
2370                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2371 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2372    { (exit 1); exit 1; }; }
2373         fi
2374         ol_with_threads="$ol_arg"
2375
2376 else
2377         ol_with_threads="auto"
2378 fi; # end --with-threads
2379
2380 # OpenLDAP --with-tls
2381
2382 # Check whether --with-tls or --without-tls was given.
2383 if test "${with_tls+set}" = set; then
2384   withval="$with_tls"
2385
2386         ol_arg=invalid
2387         for ol_val in auto openssl yes no  ; do
2388                 if test "$withval" = "$ol_val" ; then
2389                         ol_arg="$ol_val"
2390                 fi
2391         done
2392         if test "$ol_arg" = "invalid" ; then
2393                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2394 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2395    { (exit 1); exit 1; }; }
2396         fi
2397         ol_with_tls="$ol_arg"
2398
2399 else
2400         ol_with_tls="auto"
2401 fi; # end --with-tls
2402
2403 # OpenLDAP --with-yielding_select
2404
2405 # Check whether --with-yielding_select or --without-yielding_select was given.
2406 if test "${with_yielding_select+set}" = set; then
2407   withval="$with_yielding_select"
2408
2409         ol_arg=invalid
2410         for ol_val in auto yes no manual  ; do
2411                 if test "$withval" = "$ol_val" ; then
2412                         ol_arg="$ol_val"
2413                 fi
2414         done
2415         if test "$ol_arg" = "invalid" ; then
2416                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2417 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2418    { (exit 1); exit 1; }; }
2419         fi
2420         ol_with_yielding_select="$ol_arg"
2421
2422 else
2423         ol_with_yielding_select="auto"
2424 fi; # end --with-yielding_select
2425
2426 # OpenLDAP --with-mp
2427
2428 # Check whether --with-mp or --without-mp was given.
2429 if test "${with_mp+set}" = set; then
2430   withval="$with_mp"
2431
2432         ol_arg=invalid
2433         for ol_val in auto longlong long bignum gmp yes no ; do
2434                 if test "$withval" = "$ol_val" ; then
2435                         ol_arg="$ol_val"
2436                 fi
2437         done
2438         if test "$ol_arg" = "invalid" ; then
2439                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2440 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2441    { (exit 1); exit 1; }; }
2442         fi
2443         ol_with_mp="$ol_arg"
2444
2445 else
2446         ol_with_mp="auto"
2447 fi; # end --with-mp
2448
2449 # OpenLDAP --with-odbc
2450
2451 # Check whether --with-odbc or --without-odbc was given.
2452 if test "${with_odbc+set}" = set; then
2453   withval="$with_odbc"
2454
2455         ol_arg=invalid
2456         for ol_val in auto iodbc unixodbc  ; do
2457                 if test "$withval" = "$ol_val" ; then
2458                         ol_arg="$ol_val"
2459                 fi
2460         done
2461         if test "$ol_arg" = "invalid" ; then
2462                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2463 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2464    { (exit 1); exit 1; }; }
2465         fi
2466         ol_with_odbc="$ol_arg"
2467
2468 else
2469         ol_with_odbc="auto"
2470 fi; # end --with-odbc
2471
2472
2473
2474 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2475 if test "${enable_xxslapdoptions+set}" = set; then
2476   enableval="$enable_xxslapdoptions"
2477
2478 fi;
2479 # OpenLDAP --enable-slapd
2480
2481         # Check whether --enable-slapd or --disable-slapd was given.
2482 if test "${enable_slapd+set}" = set; then
2483   enableval="$enable_slapd"
2484
2485         ol_arg=invalid
2486         for ol_val in auto yes no ; do
2487                 if test "$enableval" = "$ol_val" ; then
2488                         ol_arg="$ol_val"
2489                 fi
2490         done
2491         if test "$ol_arg" = "invalid" ; then
2492                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2493 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2494    { (exit 1); exit 1; }; }
2495         fi
2496         ol_enable_slapd="$ol_arg"
2497
2498 else
2499         ol_enable_slapd=yes
2500 fi;
2501 # end --enable-slapd
2502 # OpenLDAP --enable-dynacl
2503
2504         # Check whether --enable-dynacl or --disable-dynacl was given.
2505 if test "${enable_dynacl+set}" = set; then
2506   enableval="$enable_dynacl"
2507
2508         ol_arg=invalid
2509         for ol_val in auto yes no ; do
2510                 if test "$enableval" = "$ol_val" ; then
2511                         ol_arg="$ol_val"
2512                 fi
2513         done
2514         if test "$ol_arg" = "invalid" ; then
2515                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2516 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2517    { (exit 1); exit 1; }; }
2518         fi
2519         ol_enable_dynacl="$ol_arg"
2520
2521 else
2522         ol_enable_dynacl=no
2523 fi;
2524 # end --enable-dynacl
2525 # OpenLDAP --enable-aci
2526
2527         # Check whether --enable-aci or --disable-aci was given.
2528 if test "${enable_aci+set}" = set; then
2529   enableval="$enable_aci"
2530
2531         ol_arg=invalid
2532         for ol_val in no yes mod ; do
2533                 if test "$enableval" = "$ol_val" ; then
2534                         ol_arg="$ol_val"
2535                 fi
2536         done
2537         if test "$ol_arg" = "invalid" ; then
2538                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2539 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2540    { (exit 1); exit 1; }; }
2541         fi
2542         ol_enable_aci="$ol_arg"
2543
2544 else
2545         ol_enable_aci=no
2546 fi;
2547 # end --enable-aci
2548 # OpenLDAP --enable-cleartext
2549
2550         # Check whether --enable-cleartext or --disable-cleartext was given.
2551 if test "${enable_cleartext+set}" = set; then
2552   enableval="$enable_cleartext"
2553
2554         ol_arg=invalid
2555         for ol_val in auto yes no ; do
2556                 if test "$enableval" = "$ol_val" ; then
2557                         ol_arg="$ol_val"
2558                 fi
2559         done
2560         if test "$ol_arg" = "invalid" ; then
2561                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2562 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2563    { (exit 1); exit 1; }; }
2564         fi
2565         ol_enable_cleartext="$ol_arg"
2566
2567 else
2568         ol_enable_cleartext=yes
2569 fi;
2570 # end --enable-cleartext
2571 # OpenLDAP --enable-crypt
2572
2573         # Check whether --enable-crypt or --disable-crypt was given.
2574 if test "${enable_crypt+set}" = set; then
2575   enableval="$enable_crypt"
2576
2577         ol_arg=invalid
2578         for ol_val in auto yes no ; do
2579                 if test "$enableval" = "$ol_val" ; then
2580                         ol_arg="$ol_val"
2581                 fi
2582         done
2583         if test "$ol_arg" = "invalid" ; then
2584                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2586    { (exit 1); exit 1; }; }
2587         fi
2588         ol_enable_crypt="$ol_arg"
2589
2590 else
2591         ol_enable_crypt=no
2592 fi;
2593 # end --enable-crypt
2594 # OpenLDAP --enable-lmpasswd
2595
2596         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2597 if test "${enable_lmpasswd+set}" = set; then
2598   enableval="$enable_lmpasswd"
2599
2600         ol_arg=invalid
2601         for ol_val in auto yes no ; do
2602                 if test "$enableval" = "$ol_val" ; then
2603                         ol_arg="$ol_val"
2604                 fi
2605         done
2606         if test "$ol_arg" = "invalid" ; then
2607                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2608 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2609    { (exit 1); exit 1; }; }
2610         fi
2611         ol_enable_lmpasswd="$ol_arg"
2612
2613 else
2614         ol_enable_lmpasswd=no
2615 fi;
2616 # end --enable-lmpasswd
2617 # OpenLDAP --enable-spasswd
2618
2619         # Check whether --enable-spasswd or --disable-spasswd was given.
2620 if test "${enable_spasswd+set}" = set; then
2621   enableval="$enable_spasswd"
2622
2623         ol_arg=invalid
2624         for ol_val in auto yes no ; do
2625                 if test "$enableval" = "$ol_val" ; then
2626                         ol_arg="$ol_val"
2627                 fi
2628         done
2629         if test "$ol_arg" = "invalid" ; then
2630                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2631 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2632    { (exit 1); exit 1; }; }
2633         fi
2634         ol_enable_spasswd="$ol_arg"
2635
2636 else
2637         ol_enable_spasswd=no
2638 fi;
2639 # end --enable-spasswd
2640 # OpenLDAP --enable-modules
2641
2642         # Check whether --enable-modules or --disable-modules was given.
2643 if test "${enable_modules+set}" = set; then
2644   enableval="$enable_modules"
2645
2646         ol_arg=invalid
2647         for ol_val in auto yes no ; do
2648                 if test "$enableval" = "$ol_val" ; then
2649                         ol_arg="$ol_val"
2650                 fi
2651         done
2652         if test "$ol_arg" = "invalid" ; then
2653                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2654 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2655    { (exit 1); exit 1; }; }
2656         fi
2657         ol_enable_modules="$ol_arg"
2658
2659 else
2660         ol_enable_modules=no
2661 fi;
2662 # end --enable-modules
2663 # OpenLDAP --enable-rewrite
2664
2665         # Check whether --enable-rewrite or --disable-rewrite was given.
2666 if test "${enable_rewrite+set}" = set; then
2667   enableval="$enable_rewrite"
2668
2669         ol_arg=invalid
2670         for ol_val in auto yes no ; do
2671                 if test "$enableval" = "$ol_val" ; then
2672                         ol_arg="$ol_val"
2673                 fi
2674         done
2675         if test "$ol_arg" = "invalid" ; then
2676                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2677 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2678    { (exit 1); exit 1; }; }
2679         fi
2680         ol_enable_rewrite="$ol_arg"
2681
2682 else
2683         ol_enable_rewrite=auto
2684 fi;
2685 # end --enable-rewrite
2686 # OpenLDAP --enable-rlookups
2687
2688         # Check whether --enable-rlookups or --disable-rlookups was given.
2689 if test "${enable_rlookups+set}" = set; then
2690   enableval="$enable_rlookups"
2691
2692         ol_arg=invalid
2693         for ol_val in auto yes no ; do
2694                 if test "$enableval" = "$ol_val" ; then
2695                         ol_arg="$ol_val"
2696                 fi
2697         done
2698         if test "$ol_arg" = "invalid" ; then
2699                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2700 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2701    { (exit 1); exit 1; }; }
2702         fi
2703         ol_enable_rlookups="$ol_arg"
2704
2705 else
2706         ol_enable_rlookups=no
2707 fi;
2708 # end --enable-rlookups
2709 # OpenLDAP --enable-slapi
2710
2711         # Check whether --enable-slapi or --disable-slapi was given.
2712 if test "${enable_slapi+set}" = set; then
2713   enableval="$enable_slapi"
2714
2715         ol_arg=invalid
2716         for ol_val in auto yes no ; do
2717                 if test "$enableval" = "$ol_val" ; then
2718                         ol_arg="$ol_val"
2719                 fi
2720         done
2721         if test "$ol_arg" = "invalid" ; then
2722                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2724    { (exit 1); exit 1; }; }
2725         fi
2726         ol_enable_slapi="$ol_arg"
2727
2728 else
2729         ol_enable_slapi=no
2730 fi;
2731 # end --enable-slapi
2732 # OpenLDAP --enable-slp
2733
2734         # Check whether --enable-slp or --disable-slp was given.
2735 if test "${enable_slp+set}" = set; then
2736   enableval="$enable_slp"
2737
2738         ol_arg=invalid
2739         for ol_val in auto yes no ; do
2740                 if test "$enableval" = "$ol_val" ; then
2741                         ol_arg="$ol_val"
2742                 fi
2743         done
2744         if test "$ol_arg" = "invalid" ; then
2745                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2746 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2747    { (exit 1); exit 1; }; }
2748         fi
2749         ol_enable_slp="$ol_arg"
2750
2751 else
2752         ol_enable_slp=no
2753 fi;
2754 # end --enable-slp
2755 # OpenLDAP --enable-wrappers
2756
2757         # Check whether --enable-wrappers or --disable-wrappers was given.
2758 if test "${enable_wrappers+set}" = set; then
2759   enableval="$enable_wrappers"
2760
2761         ol_arg=invalid
2762         for ol_val in auto yes no ; do
2763                 if test "$enableval" = "$ol_val" ; then
2764                         ol_arg="$ol_val"
2765                 fi
2766         done
2767         if test "$ol_arg" = "invalid" ; then
2768                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2769 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2770    { (exit 1); exit 1; }; }
2771         fi
2772         ol_enable_wrappers="$ol_arg"
2773
2774 else
2775         ol_enable_wrappers=no
2776 fi;
2777 # end --enable-wrappers
2778
2779 Backends="bdb \
2780         dnssrv \
2781         hdb \
2782         ldap \
2783         meta \
2784         monitor \
2785         null \
2786         passwd \
2787         perl \
2788         relay \
2789         shell \
2790         sql"
2791
2792 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2793 if test "${enable_xxslapbackends+set}" = set; then
2794   enableval="$enable_xxslapbackends"
2795
2796 fi;
2797
2798 # OpenLDAP --enable-backends
2799
2800         # Check whether --enable-backends or --disable-backends was given.
2801 if test "${enable_backends+set}" = set; then
2802   enableval="$enable_backends"
2803
2804         ol_arg=invalid
2805         for ol_val in no yes mod ; do
2806                 if test "$enableval" = "$ol_val" ; then
2807                         ol_arg="$ol_val"
2808                 fi
2809         done
2810         if test "$ol_arg" = "invalid" ; then
2811                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2812 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2813    { (exit 1); exit 1; }; }
2814         fi
2815         ol_enable_backends="$ol_arg"
2816
2817 fi;
2818 # end --enable-backends
2819 # OpenLDAP --enable-bdb
2820
2821         # Check whether --enable-bdb or --disable-bdb was given.
2822 if test "${enable_bdb+set}" = set; then
2823   enableval="$enable_bdb"
2824
2825         ol_arg=invalid
2826         for ol_val in no yes mod ; do
2827                 if test "$enableval" = "$ol_val" ; then
2828                         ol_arg="$ol_val"
2829                 fi
2830         done
2831         if test "$ol_arg" = "invalid" ; then
2832                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2833 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2834    { (exit 1); exit 1; }; }
2835         fi
2836         ol_enable_bdb="$ol_arg"
2837
2838 else
2839         ol_enable_bdb=${ol_enable_backends:-yes}
2840 fi;
2841 # end --enable-bdb
2842 # OpenLDAP --enable-dnssrv
2843
2844         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2845 if test "${enable_dnssrv+set}" = set; then
2846   enableval="$enable_dnssrv"
2847
2848         ol_arg=invalid
2849         for ol_val in no yes mod ; do
2850                 if test "$enableval" = "$ol_val" ; then
2851                         ol_arg="$ol_val"
2852                 fi
2853         done
2854         if test "$ol_arg" = "invalid" ; then
2855                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2856 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2857    { (exit 1); exit 1; }; }
2858         fi
2859         ol_enable_dnssrv="$ol_arg"
2860
2861 else
2862         ol_enable_dnssrv=${ol_enable_backends:-no}
2863 fi;
2864 # end --enable-dnssrv
2865 # OpenLDAP --enable-hdb
2866
2867         # Check whether --enable-hdb or --disable-hdb was given.
2868 if test "${enable_hdb+set}" = set; then
2869   enableval="$enable_hdb"
2870
2871         ol_arg=invalid
2872         for ol_val in no yes mod ; do
2873                 if test "$enableval" = "$ol_val" ; then
2874                         ol_arg="$ol_val"
2875                 fi
2876         done
2877         if test "$ol_arg" = "invalid" ; then
2878                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2879 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2880    { (exit 1); exit 1; }; }
2881         fi
2882         ol_enable_hdb="$ol_arg"
2883
2884 else
2885         ol_enable_hdb=${ol_enable_backends:-yes}
2886 fi;
2887 # end --enable-hdb
2888 # OpenLDAP --enable-ldap
2889
2890         # Check whether --enable-ldap or --disable-ldap was given.
2891 if test "${enable_ldap+set}" = set; then
2892   enableval="$enable_ldap"
2893
2894         ol_arg=invalid
2895         for ol_val in no yes mod ; do
2896                 if test "$enableval" = "$ol_val" ; then
2897                         ol_arg="$ol_val"
2898                 fi
2899         done
2900         if test "$ol_arg" = "invalid" ; then
2901                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2902 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2903    { (exit 1); exit 1; }; }
2904         fi
2905         ol_enable_ldap="$ol_arg"
2906
2907 else
2908         ol_enable_ldap=${ol_enable_backends:-no}
2909 fi;
2910 # end --enable-ldap
2911 # OpenLDAP --enable-meta
2912
2913         # Check whether --enable-meta or --disable-meta was given.
2914 if test "${enable_meta+set}" = set; then
2915   enableval="$enable_meta"
2916
2917         ol_arg=invalid
2918         for ol_val in no yes mod ; do
2919                 if test "$enableval" = "$ol_val" ; then
2920                         ol_arg="$ol_val"
2921                 fi
2922         done
2923         if test "$ol_arg" = "invalid" ; then
2924                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2926    { (exit 1); exit 1; }; }
2927         fi
2928         ol_enable_meta="$ol_arg"
2929
2930 else
2931         ol_enable_meta=${ol_enable_backends:-no}
2932 fi;
2933 # end --enable-meta
2934 # OpenLDAP --enable-monitor
2935
2936         # Check whether --enable-monitor or --disable-monitor was given.
2937 if test "${enable_monitor+set}" = set; then
2938   enableval="$enable_monitor"
2939
2940         ol_arg=invalid
2941         for ol_val in no yes mod ; do
2942                 if test "$enableval" = "$ol_val" ; then
2943                         ol_arg="$ol_val"
2944                 fi
2945         done
2946         if test "$ol_arg" = "invalid" ; then
2947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2949    { (exit 1); exit 1; }; }
2950         fi
2951         ol_enable_monitor="$ol_arg"
2952
2953 else
2954         ol_enable_monitor=${ol_enable_backends:-yes}
2955 fi;
2956 # end --enable-monitor
2957 # OpenLDAP --enable-null
2958
2959         # Check whether --enable-null or --disable-null was given.
2960 if test "${enable_null+set}" = set; then
2961   enableval="$enable_null"
2962
2963         ol_arg=invalid
2964         for ol_val in no yes mod ; do
2965                 if test "$enableval" = "$ol_val" ; then
2966                         ol_arg="$ol_val"
2967                 fi
2968         done
2969         if test "$ol_arg" = "invalid" ; then
2970                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2971 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2972    { (exit 1); exit 1; }; }
2973         fi
2974         ol_enable_null="$ol_arg"
2975
2976 else
2977         ol_enable_null=${ol_enable_backends:-no}
2978 fi;
2979 # end --enable-null
2980 # OpenLDAP --enable-passwd
2981
2982         # Check whether --enable-passwd or --disable-passwd was given.
2983 if test "${enable_passwd+set}" = set; then
2984   enableval="$enable_passwd"
2985
2986         ol_arg=invalid
2987         for ol_val in no yes mod ; do
2988                 if test "$enableval" = "$ol_val" ; then
2989                         ol_arg="$ol_val"
2990                 fi
2991         done
2992         if test "$ol_arg" = "invalid" ; then
2993                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2995    { (exit 1); exit 1; }; }
2996         fi
2997         ol_enable_passwd="$ol_arg"
2998
2999 else
3000         ol_enable_passwd=${ol_enable_backends:-no}
3001 fi;
3002 # end --enable-passwd
3003 # OpenLDAP --enable-perl
3004
3005         # Check whether --enable-perl or --disable-perl was given.
3006 if test "${enable_perl+set}" = set; then
3007   enableval="$enable_perl"
3008
3009         ol_arg=invalid
3010         for ol_val in no yes mod ; do
3011                 if test "$enableval" = "$ol_val" ; then
3012                         ol_arg="$ol_val"
3013                 fi
3014         done
3015         if test "$ol_arg" = "invalid" ; then
3016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3018    { (exit 1); exit 1; }; }
3019         fi
3020         ol_enable_perl="$ol_arg"
3021
3022 else
3023         ol_enable_perl=${ol_enable_backends:-no}
3024 fi;
3025 # end --enable-perl
3026 # OpenLDAP --enable-relay
3027
3028         # Check whether --enable-relay or --disable-relay was given.
3029 if test "${enable_relay+set}" = set; then
3030   enableval="$enable_relay"
3031
3032         ol_arg=invalid
3033         for ol_val in no yes mod ; do
3034                 if test "$enableval" = "$ol_val" ; then
3035                         ol_arg="$ol_val"
3036                 fi
3037         done
3038         if test "$ol_arg" = "invalid" ; then
3039                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3041    { (exit 1); exit 1; }; }
3042         fi
3043         ol_enable_relay="$ol_arg"
3044
3045 else
3046         ol_enable_relay=${ol_enable_backends:-yes}
3047 fi;
3048 # end --enable-relay
3049 # OpenLDAP --enable-shell
3050
3051         # Check whether --enable-shell or --disable-shell was given.
3052 if test "${enable_shell+set}" = set; then
3053   enableval="$enable_shell"
3054
3055         ol_arg=invalid
3056         for ol_val in no yes mod ; do
3057                 if test "$enableval" = "$ol_val" ; then
3058                         ol_arg="$ol_val"
3059                 fi
3060         done
3061         if test "$ol_arg" = "invalid" ; then
3062                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3063 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3064    { (exit 1); exit 1; }; }
3065         fi
3066         ol_enable_shell="$ol_arg"
3067
3068 else
3069         ol_enable_shell=${ol_enable_backends:-no}
3070 fi;
3071 # end --enable-shell
3072 # OpenLDAP --enable-sql
3073
3074         # Check whether --enable-sql or --disable-sql was given.
3075 if test "${enable_sql+set}" = set; then
3076   enableval="$enable_sql"
3077
3078         ol_arg=invalid
3079         for ol_val in no yes mod ; do
3080                 if test "$enableval" = "$ol_val" ; then
3081                         ol_arg="$ol_val"
3082                 fi
3083         done
3084         if test "$ol_arg" = "invalid" ; then
3085                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3086 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3087    { (exit 1); exit 1; }; }
3088         fi
3089         ol_enable_sql="$ol_arg"
3090
3091 else
3092         ol_enable_sql=${ol_enable_backends:-no}
3093 fi;
3094 # end --enable-sql
3095
3096 Overlays="accesslog \
3097         auditlog \
3098         constraint \
3099         dds \
3100         dyngroup \
3101         dynlist \
3102         ppolicy \
3103         proxycache \
3104         refint \
3105         retcode \
3106         rwm \
3107         seqmod \
3108         syncprov \
3109         translucent \
3110         unique \
3111         valsort"
3112
3113 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3114 if test "${enable_xxslapoverlays+set}" = set; then
3115   enableval="$enable_xxslapoverlays"
3116
3117 fi;
3118
3119 # OpenLDAP --enable-overlays
3120
3121         # Check whether --enable-overlays or --disable-overlays was given.
3122 if test "${enable_overlays+set}" = set; then
3123   enableval="$enable_overlays"
3124
3125         ol_arg=invalid
3126         for ol_val in no yes mod ; do
3127                 if test "$enableval" = "$ol_val" ; then
3128                         ol_arg="$ol_val"
3129                 fi
3130         done
3131         if test "$ol_arg" = "invalid" ; then
3132                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3134    { (exit 1); exit 1; }; }
3135         fi
3136         ol_enable_overlays="$ol_arg"
3137
3138 fi;
3139 # end --enable-overlays
3140 # OpenLDAP --enable-accesslog
3141
3142         # Check whether --enable-accesslog or --disable-accesslog was given.
3143 if test "${enable_accesslog+set}" = set; then
3144   enableval="$enable_accesslog"
3145
3146         ol_arg=invalid
3147         for ol_val in no yes mod ; do
3148                 if test "$enableval" = "$ol_val" ; then
3149                         ol_arg="$ol_val"
3150                 fi
3151         done
3152         if test "$ol_arg" = "invalid" ; then
3153                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3154 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3155    { (exit 1); exit 1; }; }
3156         fi
3157         ol_enable_accesslog="$ol_arg"
3158
3159 else
3160         ol_enable_accesslog=${ol_enable_overlays:-no}
3161 fi;
3162 # end --enable-accesslog
3163
3164 # OpenLDAP --enable-auditlog
3165
3166         # Check whether --enable-auditlog or --disable-auditlog was given.
3167 if test "${enable_auditlog+set}" = set; then
3168   enableval="$enable_auditlog"
3169
3170         ol_arg=invalid
3171         for ol_val in no yes mod ; do
3172                 if test "$enableval" = "$ol_val" ; then
3173                         ol_arg="$ol_val"
3174                 fi
3175         done
3176         if test "$ol_arg" = "invalid" ; then
3177                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3179    { (exit 1); exit 1; }; }
3180         fi
3181         ol_enable_auditlog="$ol_arg"
3182
3183 else
3184         ol_enable_auditlog=${ol_enable_overlays:-no}
3185 fi;
3186 # end --enable-auditlog
3187
3188 # OpenLDAP --enable-constraint
3189
3190         # Check whether --enable-constraint or --disable-constraint was given.
3191 if test "${enable_constraint+set}" = set; then
3192   enableval="$enable_constraint"
3193
3194         ol_arg=invalid
3195         for ol_val in no yes mod ; do
3196                 if test "$enableval" = "$ol_val" ; then
3197                         ol_arg="$ol_val"
3198                 fi
3199         done
3200         if test "$ol_arg" = "invalid" ; then
3201                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3203    { (exit 1); exit 1; }; }
3204         fi
3205         ol_enable_constraint="$ol_arg"
3206
3207 else
3208         ol_enable_constraint=${ol_enable_overlays:-no}
3209 fi;
3210 # end --enable-constraint
3211
3212 # OpenLDAP --enable-dds
3213
3214         # Check whether --enable-dds or --disable-dds was given.
3215 if test "${enable_dds+set}" = set; then
3216   enableval="$enable_dds"
3217
3218         ol_arg=invalid
3219         for ol_val in no yes mod ; do
3220                 if test "$enableval" = "$ol_val" ; then
3221                         ol_arg="$ol_val"
3222                 fi
3223         done
3224         if test "$ol_arg" = "invalid" ; then
3225                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3227    { (exit 1); exit 1; }; }
3228         fi
3229         ol_enable_dds="$ol_arg"
3230
3231 else
3232         ol_enable_dds=${ol_enable_overlays:-no}
3233 fi;
3234 # end --enable-dds
3235
3236 # OpenLDAP --enable-dyngroup
3237
3238         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3239 if test "${enable_dyngroup+set}" = set; then
3240   enableval="$enable_dyngroup"
3241
3242         ol_arg=invalid
3243         for ol_val in no yes mod ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_dyngroup="$ol_arg"
3254
3255 else
3256         ol_enable_dyngroup=${ol_enable_overlays:-no}
3257 fi;
3258 # end --enable-dyngroup
3259
3260 # OpenLDAP --enable-dynlist
3261
3262         # Check whether --enable-dynlist or --disable-dynlist was given.
3263 if test "${enable_dynlist+set}" = set; then
3264   enableval="$enable_dynlist"
3265
3266         ol_arg=invalid
3267         for ol_val in no yes mod ; do
3268                 if test "$enableval" = "$ol_val" ; then
3269                         ol_arg="$ol_val"
3270                 fi
3271         done
3272         if test "$ol_arg" = "invalid" ; then
3273                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3275    { (exit 1); exit 1; }; }
3276         fi
3277         ol_enable_dynlist="$ol_arg"
3278
3279 else
3280         ol_enable_dynlist=${ol_enable_overlays:-no}
3281 fi;
3282 # end --enable-dynlist
3283
3284 # OpenLDAP --enable-ppolicy
3285
3286         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3287 if test "${enable_ppolicy+set}" = set; then
3288   enableval="$enable_ppolicy"
3289
3290         ol_arg=invalid
3291         for ol_val in no yes mod ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_ppolicy="$ol_arg"
3302
3303 else
3304         ol_enable_ppolicy=${ol_enable_overlays:-no}
3305 fi;
3306 # end --enable-ppolicy
3307
3308 # OpenLDAP --enable-proxycache
3309
3310         # Check whether --enable-proxycache or --disable-proxycache was given.
3311 if test "${enable_proxycache+set}" = set; then
3312   enableval="$enable_proxycache"
3313
3314         ol_arg=invalid
3315         for ol_val in no yes mod ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_proxycache="$ol_arg"
3326
3327 else
3328         ol_enable_proxycache=${ol_enable_overlays:-no}
3329 fi;
3330 # end --enable-proxycache
3331
3332 # OpenLDAP --enable-refint
3333
3334         # Check whether --enable-refint or --disable-refint was given.
3335 if test "${enable_refint+set}" = set; then
3336   enableval="$enable_refint"
3337
3338         ol_arg=invalid
3339         for ol_val in no yes mod ; do
3340                 if test "$enableval" = "$ol_val" ; then
3341                         ol_arg="$ol_val"
3342                 fi
3343         done
3344         if test "$ol_arg" = "invalid" ; then
3345                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3347    { (exit 1); exit 1; }; }
3348         fi
3349         ol_enable_refint="$ol_arg"
3350
3351 else
3352         ol_enable_refint=${ol_enable_overlays:-no}
3353 fi;
3354 # end --enable-refint
3355
3356 # OpenLDAP --enable-retcode
3357
3358         # Check whether --enable-retcode or --disable-retcode was given.
3359 if test "${enable_retcode+set}" = set; then
3360   enableval="$enable_retcode"
3361
3362         ol_arg=invalid
3363         for ol_val in no yes mod ; do
3364                 if test "$enableval" = "$ol_val" ; then
3365                         ol_arg="$ol_val"
3366                 fi
3367         done
3368         if test "$ol_arg" = "invalid" ; then
3369                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3371    { (exit 1); exit 1; }; }
3372         fi
3373         ol_enable_retcode="$ol_arg"
3374
3375 else
3376         ol_enable_retcode=${ol_enable_overlays:-no}
3377 fi;
3378 # end --enable-retcode
3379
3380 # OpenLDAP --enable-rwm
3381
3382         # Check whether --enable-rwm or --disable-rwm was given.
3383 if test "${enable_rwm+set}" = set; then
3384   enableval="$enable_rwm"
3385
3386         ol_arg=invalid
3387         for ol_val in no yes mod ; do
3388                 if test "$enableval" = "$ol_val" ; then
3389                         ol_arg="$ol_val"
3390                 fi
3391         done
3392         if test "$ol_arg" = "invalid" ; then
3393                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3395    { (exit 1); exit 1; }; }
3396         fi
3397         ol_enable_rwm="$ol_arg"
3398
3399 else
3400         ol_enable_rwm=${ol_enable_overlays:-no}
3401 fi;
3402 # end --enable-rwm
3403
3404 # OpenLDAP --enable-seqmod
3405
3406         # Check whether --enable-seqmod or --disable-seqmod was given.
3407 if test "${enable_seqmod+set}" = set; then
3408   enableval="$enable_seqmod"
3409
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_seqmod="$ol_arg"
3422
3423 else
3424         ol_enable_seqmod=${ol_enable_overlays:-yes}
3425 fi;
3426 # end --enable-seqmod
3427
3428 # OpenLDAP --enable-syncprov
3429
3430         # Check whether --enable-syncprov or --disable-syncprov was given.
3431 if test "${enable_syncprov+set}" = set; then
3432   enableval="$enable_syncprov"
3433
3434         ol_arg=invalid
3435         for ol_val in no yes mod ; do
3436                 if test "$enableval" = "$ol_val" ; then
3437                         ol_arg="$ol_val"
3438                 fi
3439         done
3440         if test "$ol_arg" = "invalid" ; then
3441                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3443    { (exit 1); exit 1; }; }
3444         fi
3445         ol_enable_syncprov="$ol_arg"
3446
3447 else
3448         ol_enable_syncprov=${ol_enable_overlays:-yes}
3449 fi;
3450 # end --enable-syncprov
3451
3452 # OpenLDAP --enable-translucent
3453
3454         # Check whether --enable-translucent or --disable-translucent was given.
3455 if test "${enable_translucent+set}" = set; then
3456   enableval="$enable_translucent"
3457
3458         ol_arg=invalid
3459         for ol_val in no yes mod ; do
3460                 if test "$enableval" = "$ol_val" ; then
3461                         ol_arg="$ol_val"
3462                 fi
3463         done
3464         if test "$ol_arg" = "invalid" ; then
3465                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3467    { (exit 1); exit 1; }; }
3468         fi
3469         ol_enable_translucent="$ol_arg"
3470
3471 else
3472         ol_enable_translucent=${ol_enable_overlays:-no}
3473 fi;
3474 # end --enable-translucent
3475
3476 # OpenLDAP --enable-unique
3477
3478         # Check whether --enable-unique or --disable-unique was given.
3479 if test "${enable_unique+set}" = set; then
3480   enableval="$enable_unique"
3481
3482         ol_arg=invalid
3483         for ol_val in no yes mod ; do
3484                 if test "$enableval" = "$ol_val" ; then
3485                         ol_arg="$ol_val"
3486                 fi
3487         done
3488         if test "$ol_arg" = "invalid" ; then
3489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3491    { (exit 1); exit 1; }; }
3492         fi
3493         ol_enable_unique="$ol_arg"
3494
3495 else
3496         ol_enable_unique=${ol_enable_overlays:-no}
3497 fi;
3498 # end --enable-unique
3499
3500 # OpenLDAP --enable-valsort
3501
3502         # Check whether --enable-valsort or --disable-valsort was given.
3503 if test "${enable_valsort+set}" = set; then
3504   enableval="$enable_valsort"
3505
3506         ol_arg=invalid
3507         for ol_val in no yes mod ; do
3508                 if test "$enableval" = "$ol_val" ; then
3509                         ol_arg="$ol_val"
3510                 fi
3511         done
3512         if test "$ol_arg" = "invalid" ; then
3513                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3515    { (exit 1); exit 1; }; }
3516         fi
3517         ol_enable_valsort="$ol_arg"
3518
3519 else
3520         ol_enable_valsort=${ol_enable_overlays:-no}
3521 fi;
3522 # end --enable-valsort
3523
3524
3525 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3526 if test "${enable_xxslurpdoptions+set}" = set; then
3527   enableval="$enable_xxslurpdoptions"
3528
3529 fi;
3530 # OpenLDAP --enable-slurpd
3531
3532         # Check whether --enable-slurpd or --disable-slurpd was given.
3533 if test "${enable_slurpd+set}" = set; then
3534   enableval="$enable_slurpd"
3535
3536         ol_arg=invalid
3537         for ol_val in auto yes no ; do
3538                 if test "$enableval" = "$ol_val" ; then
3539                         ol_arg="$ol_val"
3540                 fi
3541         done
3542         if test "$ol_arg" = "invalid" ; then
3543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3545    { (exit 1); exit 1; }; }
3546         fi
3547         ol_enable_slurpd="$ol_arg"
3548
3549 else
3550         ol_enable_slurpd=auto
3551 fi;
3552 # end --enable-slurpd
3553
3554 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3555 if test "${enable_xxliboptions+set}" = set; then
3556   enableval="$enable_xxliboptions"
3557
3558 fi;
3559 # Check whether --enable-static or --disable-static was given.
3560 if test "${enable_static+set}" = set; then
3561   enableval="$enable_static"
3562   p=${PACKAGE-default}
3563     case $enableval in
3564     yes) enable_static=yes ;;
3565     no) enable_static=no ;;
3566     *)
3567      enable_static=no
3568       # Look at the argument we got.  We use all the common list separators.
3569       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3570       for pkg in $enableval; do
3571         IFS="$lt_save_ifs"
3572         if test "X$pkg" = "X$p"; then
3573           enable_static=yes
3574         fi
3575       done
3576       IFS="$lt_save_ifs"
3577       ;;
3578     esac
3579 else
3580   enable_static=yes
3581 fi;
3582
3583 # Check whether --enable-shared or --disable-shared was given.
3584 if test "${enable_shared+set}" = set; then
3585   enableval="$enable_shared"
3586   p=${PACKAGE-default}
3587     case $enableval in
3588     yes) enable_shared=yes ;;
3589     no) enable_shared=no ;;
3590     *)
3591       enable_shared=no
3592       # Look at the argument we got.  We use all the common list separators.
3593       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3594       for pkg in $enableval; do
3595         IFS="$lt_save_ifs"
3596         if test "X$pkg" = "X$p"; then
3597           enable_shared=yes
3598         fi
3599       done
3600       IFS="$lt_save_ifs"
3601       ;;
3602     esac
3603 else
3604   enable_shared=yes
3605 fi;
3606
3607
3608
3609 # validate options
3610 if test $ol_enable_slapd = no ; then
3611                 if test $ol_enable_slapi = yes ; then
3612                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3613 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3614         fi
3615         case "$ol_enable_backends" in yes | mod)
3616                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3618         esac
3619         for i in $Backends; do
3620                 eval "ol_tmp=\$ol_enable_$i"
3621                 if test $ol_tmp != no ; then
3622                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3623 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3624                         eval "ol_enable_$i=no"
3625                 fi
3626         done
3627         if test $ol_enable_modules = yes ; then
3628                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3629 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3630         fi
3631         if test $ol_enable_wrappers = yes ; then
3632                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3633 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3634         fi
3635         if test $ol_enable_rlookups = yes ; then
3636                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3637 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3638         fi
3639         if test $ol_enable_dynacl = yes ; then
3640                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3641 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3642         fi
3643         if test $ol_enable_aci != no ; then
3644                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3646         fi
3647         if test $ol_enable_slurpd = yes ; then
3648                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3649 echo "$as_me: error: slurpd requires slapd" >&2;}
3650    { (exit 1); exit 1; }; }
3651         fi
3652         if test $ol_enable_rewrite = yes ; then
3653                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3654 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3655         fi
3656                 case "$ol_enable_overlays" in yes | mod)
3657                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3658 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3659         esac
3660         for i in $Overlays; do
3661                 eval "ol_tmp=\$ol_enable_$i"
3662                 if test $ol_tmp != no ; then
3663                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3665                         eval "ol_enable_$i=no"
3666                 fi
3667         done
3668
3669         # force settings to no
3670         ol_enable_slapi=no
3671
3672         ol_enable_backends=
3673         ol_enable_overlays=
3674         ol_enable_modules=no
3675         ol_enable_rlookups=no
3676         ol_enable_dynacl=no
3677         ol_enable_aci=no
3678         ol_enable_wrappers=no
3679
3680         ol_enable_slurpd=no
3681
3682         ol_enable_rewrite=no
3683
3684 elif test $ol_enable_modules != yes &&
3685         test $ol_enable_bdb = no &&
3686         test $ol_enable_dnssrv = no &&
3687         test $ol_enable_hdb = no &&
3688         test $ol_enable_ldap = no &&
3689         test $ol_enable_meta = no &&
3690         test $ol_enable_monitor = no &&
3691         test $ol_enable_null = no &&
3692         test $ol_enable_passwd = no &&
3693         test $ol_enable_perl = no &&
3694         test $ol_enable_relay = no &&
3695         test $ol_enable_shell = no &&
3696         test $ol_enable_sql = no ; then
3697
3698         if test $ol_enable_slapd = yes ; then
3699                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3700 echo "$as_me: error: slapd requires a backend" >&2;}
3701    { (exit 1); exit 1; }; }
3702         else
3703                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3704 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3705                 ol_enable_slapd=no
3706         fi
3707 fi
3708
3709 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3710         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3711 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3712    { (exit 1); exit 1; }; }
3713 fi
3714
3715 if test $ol_enable_slurpd = yes ; then
3716                 if test $ol_with_threads = no ; then
3717                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3718 echo "$as_me: error: slurpd requires threads" >&2;}
3719    { (exit 1); exit 1; }; }
3720         fi
3721 fi
3722
3723 if test $ol_enable_lmpasswd = yes ; then
3724         if test $ol_with_tls = no ; then
3725                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3726 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3727    { (exit 1); exit 1; }; }
3728         fi
3729 fi
3730
3731 if test $ol_enable_spasswd = yes ; then
3732         if test $ol_with_cyrus_sasl = no ; then
3733                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3734 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3735    { (exit 1); exit 1; }; }
3736         fi
3737         ol_with_cyrus_sasl=yes
3738 fi
3739
3740 echo "$as_me:$LINENO: result: done" >&5
3741 echo "${ECHO_T}done" >&6
3742
3743 LDAP_LIBS=
3744 BDB_LIBS=
3745 LTHREAD_LIBS=
3746 LUTIL_LIBS=
3747
3748 SLAPD_LIBS=
3749 SLURPD_LIBS=
3750
3751 BUILD_SLAPD=no
3752 BUILD_SLURPD=no
3753
3754 BUILD_THREAD=no
3755
3756 BUILD_SLAPI=no
3757 SLAPD_SLAPI_DEPEND=
3758
3759 BUILD_BDB=no
3760 BUILD_DNSSRV=no
3761 BUILD_HDB=no
3762 BUILD_LDAP=no
3763 BUILD_META=no
3764 BUILD_MONITOR=no
3765 BUILD_NULL=no
3766 BUILD_PASSWD=no
3767 BUILD_PERL=no
3768 BUILD_RELAY=no
3769 BUILD_SHELL=no
3770 BUILD_SQL=no
3771
3772 BUILD_ACCESSLOG=no
3773 BUILD_AUDITLOG=no
3774 BUILD_CONSTRAINT=no
3775 BUILD_DDS=no
3776 BUILD_DENYOP=no
3777 BUILD_DYNGROUP=no
3778 BUILD_DYNLIST=no
3779 BUILD_LASTMOD=no
3780 BUILD_PPOLICY=no
3781 BUILD_PROXYCACHE=no
3782 BUILD_REFINT=no
3783 BUILD_RETCODE=no
3784 BUILD_RWM=no
3785 BUILD_SEQMOD=no
3786 BUILD_SYNCPROV=no
3787 BUILD_TRANSLUCENT=no
3788 BUILD_UNIQUE=no
3789 BUILD_VALSORT=no
3790
3791 SLAPD_STATIC_OVERLAYS=
3792 SLAPD_DYNAMIC_OVERLAYS=
3793
3794 SLAPD_MODULES_LDFLAGS=
3795 SLAPD_MODULES_CPPFLAGS=
3796
3797 SLAPD_STATIC_BACKENDS=back-ldif
3798 SLAPD_DYNAMIC_BACKENDS=
3799
3800 SLAPD_PERL_LDFLAGS=
3801 MOD_PERL_LDFLAGS=
3802 PERL_CPPFLAGS=
3803
3804 SLAPD_SQL_LDFLAGS=
3805 SLAPD_SQL_LIBS=
3806 SLAPD_SQL_INCLUDES=
3807
3808 KRB4_LIBS=
3809 KRB5_LIBS=
3810 SASL_LIBS=
3811 TLS_LIBS=
3812 MODULES_LIBS=
3813 SLAPI_LIBS=
3814 LIBSLAPI=
3815 LIBSLAPITOOLS=
3816 AUTH_LIBS=
3817 ICU_LIBS=
3818
3819 SLAPD_SLP_LIBS=
3820 SLAPD_GMP_LIBS=
3821
3822
3823
3824 cat >>confdefs.h <<\_ACEOF
3825 #define HAVE_MKVERSION 1
3826 _ACEOF
3827
3828
3829
3830
3831 ol_aix_threads=no
3832 case "$target" in
3833 *-*-aix*)       if test -z "$CC" ; then
3834                 case "$ol_with_threads" in
3835                 auto | yes |  posix) ol_aix_threads=yes ;;
3836                 esac
3837         fi
3838 ;;
3839 esac
3840
3841 if test $ol_aix_threads = yes ; then
3842         if test -z "${CC}" ; then
3843                 for ac_prog in cc_r xlc_r cc
3844 do
3845   # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_CC+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if test -n "$CC"; then
3853   ac_cv_prog_CC="$CC" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_CC="$ac_prog"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869 fi
3870 fi
3871 CC=$ac_cv_prog_CC
3872 if test -n "$CC"; then
3873   echo "$as_me:$LINENO: result: $CC" >&5
3874 echo "${ECHO_T}$CC" >&6
3875 else
3876   echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3878 fi
3879
3880   test -n "$CC" && break
3881 done
3882
3883
3884                 if test "$CC" = cc ; then
3885                                                 if test $ol_with_threads != auto ; then
3886                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3887 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3888    { (exit 1); exit 1; }; }
3889                         else
3890                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3891 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3892                         fi
3893                         ol_with_threads=no
3894                 fi
3895         fi
3896
3897         case ${CC} in cc_r | xlc_r)
3898                 ol_with_threads=posix
3899                 ol_cv_pthread_create=yes
3900                 ;;
3901         esac
3902 fi
3903
3904 if test -z "${CC}"; then
3905         for ac_prog in cc gcc
3906 do
3907   # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_CC+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test -n "$CC"; then
3915   ac_cv_prog_CC="$CC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924     ac_cv_prog_CC="$ac_prog"
3925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926     break 2
3927   fi
3928 done
3929 done
3930
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935   echo "$as_me:$LINENO: result: $CC" >&5
3936 echo "${ECHO_T}$CC" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942   test -n "$CC" && break
3943 done
3944 test -n "$CC" || CC="missing"
3945
3946
3947         if test "${CC}" = "missing" ; then
3948                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3949 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3950    { (exit 1); exit 1; }; }
3951         fi
3952 fi
3953
3954 if test -z "${AR}"; then
3955         for ac_prog in ar gar
3956 do
3957   # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_AR+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$AR"; then
3965   ac_cv_prog_AR="$AR" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_AR="$ac_prog"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 AR=$ac_cv_prog_AR
3984 if test -n "$AR"; then
3985   echo "$as_me:$LINENO: result: $AR" >&5
3986 echo "${ECHO_T}$AR" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   test -n "$AR" && break
3993 done
3994 test -n "$AR" || AR="missing"
3995
3996
3997         if test "${AR}" = "missing" ; then
3998                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3999 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4000    { (exit 1); exit 1; }; }
4001         fi
4002 fi
4003
4004
4005
4006
4007
4008 # Check whether --enable-fast-install or --disable-fast-install was given.
4009 if test "${enable_fast_install+set}" = set; then
4010   enableval="$enable_fast_install"
4011   p=${PACKAGE-default}
4012     case $enableval in
4013     yes) enable_fast_install=yes ;;
4014     no) enable_fast_install=no ;;
4015     *)
4016       enable_fast_install=no
4017       # Look at the argument we got.  We use all the common list separators.
4018       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4019       for pkg in $enableval; do
4020         IFS="$lt_save_ifs"
4021         if test "X$pkg" = "X$p"; then
4022           enable_fast_install=yes
4023         fi
4024       done
4025       IFS="$lt_save_ifs"
4026       ;;
4027     esac
4028 else
4029   enable_fast_install=yes
4030 fi;
4031
4032 DEPDIR="${am__leading_dot}deps"
4033
4034           ac_config_commands="$ac_config_commands depfiles"
4035
4036
4037 am_make=${MAKE-make}
4038 cat > confinc << 'END'
4039 am__doit:
4040         @echo done
4041 .PHONY: am__doit
4042 END
4043 # If we don't find an include directive, just comment out the code.
4044 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4045 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4046 am__include="#"
4047 am__quote=
4048 _am_result=none
4049 # First try GNU make style include.
4050 echo "include confinc" > confmf
4051 # We grep out `Entering directory' and `Leaving directory'
4052 # messages which can occur if `w' ends up in MAKEFLAGS.
4053 # In particular we don't look at `^make:' because GNU make might
4054 # be invoked under some other name (usually "gmake"), in which
4055 # case it prints its new name instead of `make'.
4056 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4057    am__include=include
4058    am__quote=
4059    _am_result=GNU
4060 fi
4061 # Now try BSD make style include.
4062 if test "$am__include" = "#"; then
4063    echo '.include "confinc"' > confmf
4064    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4065       am__include=.include
4066       am__quote="\""
4067       _am_result=BSD
4068    fi
4069 fi
4070
4071
4072 echo "$as_me:$LINENO: result: $_am_result" >&5
4073 echo "${ECHO_T}$_am_result" >&6
4074 rm -f confinc confmf
4075
4076 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4077 if test "${enable_dependency_tracking+set}" = set; then
4078   enableval="$enable_dependency_tracking"
4079
4080 fi;
4081 if test "x$enable_dependency_tracking" != xno; then
4082   am_depcomp="$ac_aux_dir/depcomp"
4083   AMDEPBACKSLASH='\'
4084 fi
4085
4086
4087 if test "x$enable_dependency_tracking" != xno; then
4088   AMDEP_TRUE=
4089   AMDEP_FALSE='#'
4090 else
4091   AMDEP_TRUE='#'
4092   AMDEP_FALSE=
4093 fi
4094
4095
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 if test -n "$ac_tool_prefix"; then
4103   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_CC+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   if test -n "$CC"; then
4111   ac_cv_prog_CC="$CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118   for ac_exec_ext in '' $ac_executable_extensions; do
4119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125 done
4126
4127 fi
4128 fi
4129 CC=$ac_cv_prog_CC
4130 if test -n "$CC"; then
4131   echo "$as_me:$LINENO: result: $CC" >&5
4132 echo "${ECHO_T}$CC" >&6
4133 else
4134   echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 fi
4137
4138 fi
4139 if test -z "$ac_cv_prog_CC"; then
4140   ac_ct_CC=$CC
4141   # Extract the first word of "gcc", so it can be a program name with args.
4142 set dummy gcc; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   if test -n "$ac_ct_CC"; then
4149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156   for ac_exec_ext in '' $ac_executable_extensions; do
4157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158     ac_cv_prog_ac_ct_CC="gcc"
4159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163 done
4164
4165 fi
4166 fi
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4170 echo "${ECHO_T}$ac_ct_CC" >&6
4171 else
4172   echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4174 fi
4175
4176   CC=$ac_ct_CC
4177 else
4178   CC="$ac_cv_prog_CC"
4179 fi
4180
4181 if test -z "$CC"; then
4182   if test -n "$ac_tool_prefix"; then
4183   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4184 set dummy ${ac_tool_prefix}cc; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_CC+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   if test -n "$CC"; then
4191   ac_cv_prog_CC="$CC" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198   for ac_exec_ext in '' $ac_executable_extensions; do
4199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200     ac_cv_prog_CC="${ac_tool_prefix}cc"
4201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205 done
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211   echo "$as_me:$LINENO: result: $CC" >&5
4212 echo "${ECHO_T}$CC" >&6
4213 else
4214   echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218 fi
4219 if test -z "$ac_cv_prog_CC"; then
4220   ac_ct_CC=$CC
4221   # Extract the first word of "cc", so it can be a program name with args.
4222 set dummy cc; ac_word=$2
4223 echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   if test -n "$ac_ct_CC"; then
4229   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236   for ac_exec_ext in '' $ac_executable_extensions; do
4237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238     ac_cv_prog_ac_ct_CC="cc"
4239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243 done
4244
4245 fi
4246 fi
4247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4248 if test -n "$ac_ct_CC"; then
4249   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4250 echo "${ECHO_T}$ac_ct_CC" >&6
4251 else
4252   echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4254 fi
4255
4256   CC=$ac_ct_CC
4257 else
4258   CC="$ac_cv_prog_CC"
4259 fi
4260
4261 fi
4262 if test -z "$CC"; then
4263   # Extract the first word of "cc", so it can be a program name with args.
4264 set dummy cc; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_prog_CC+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   if test -n "$CC"; then
4271   ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273   ac_prog_rejected=no
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279   for ac_exec_ext in '' $ac_executable_extensions; do
4280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4282        ac_prog_rejected=yes
4283        continue
4284      fi
4285     ac_cv_prog_CC="cc"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292 if test $ac_prog_rejected = yes; then
4293   # We found a bogon in the path, so make sure we never use it.
4294   set dummy $ac_cv_prog_CC
4295   shift
4296   if test $# != 0; then
4297     # We chose a different compiler from the bogus one.
4298     # However, it has the same basename, so the bogon will be chosen
4299     # first if we set CC to just the basename; use the full file name.
4300     shift
4301     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4302   fi
4303 fi
4304 fi
4305 fi
4306 CC=$ac_cv_prog_CC
4307 if test -n "$CC"; then
4308   echo "$as_me:$LINENO: result: $CC" >&5
4309 echo "${ECHO_T}$CC" >&6
4310 else
4311   echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4313 fi
4314
4315 fi
4316 if test -z "$CC"; then
4317   if test -n "$ac_tool_prefix"; then
4318   for ac_prog in cl
4319   do
4320     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_CC+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   if test -n "$CC"; then
4328   ac_cv_prog_CC="$CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335   for ac_exec_ext in '' $ac_executable_extensions; do
4336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342 done
4343
4344 fi
4345 fi
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348   echo "$as_me:$LINENO: result: $CC" >&5
4349 echo "${ECHO_T}$CC" >&6
4350 else
4351   echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4353 fi
4354
4355     test -n "$CC" && break
4356   done
4357 fi
4358 if test -z "$CC"; then
4359   ac_ct_CC=$CC
4360   for ac_prog in cl
4361 do
4362   # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   if test -n "$ac_ct_CC"; then
4370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377   for ac_exec_ext in '' $ac_executable_extensions; do
4378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379     ac_cv_prog_ac_ct_CC="$ac_prog"
4380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384 done
4385
4386 fi
4387 fi
4388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4389 if test -n "$ac_ct_CC"; then
4390   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4391 echo "${ECHO_T}$ac_ct_CC" >&6
4392 else
4393   echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4395 fi
4396
4397   test -n "$ac_ct_CC" && break
4398 done
4399
4400   CC=$ac_ct_CC
4401 fi
4402
4403 fi
4404
4405
4406 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4407 See \`config.log' for more details." >&5
4408 echo "$as_me: error: no acceptable C compiler found in \$PATH
4409 See \`config.log' for more details." >&2;}
4410    { (exit 1); exit 1; }; }
4411
4412 # Provide some information about the compiler.
4413 echo "$as_me:$LINENO:" \
4414      "checking for C compiler version" >&5
4415 ac_compiler=`set X $ac_compile; echo $2`
4416 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4417   (eval $ac_compiler --version </dev/null >&5) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }
4421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4422   (eval $ac_compiler -v </dev/null >&5) 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); }
4426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4427   (eval $ac_compiler -V </dev/null >&5) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }
4431
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h.  */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h.  */
4438
4439 int
4440 main ()
4441 {
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 ac_clean_files_save=$ac_clean_files
4448 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4449 # Try to create an executable without -o first, disregard a.out.
4450 # It will help us diagnose broken compilers, and finding out an intuition
4451 # of exeext.
4452 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4453 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4454 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4455 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4456   (eval $ac_link_default) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; then
4460   # Find the output, starting from the most likely.  This scheme is
4461 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4462 # resort.
4463
4464 # Be careful to initialize this variable, since it used to be cached.
4465 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4466 ac_cv_exeext=
4467 # b.out is created by i960 compilers.
4468 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4469 do
4470   test -f "$ac_file" || continue
4471   case $ac_file in
4472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4473         ;;
4474     conftest.$ac_ext )
4475         # This is the source file.
4476         ;;
4477     [ab].out )
4478         # We found the default executable, but exeext='' is most
4479         # certainly right.
4480         break;;
4481     *.* )
4482         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4483         # FIXME: I believe we export ac_cv_exeext for Libtool,
4484         # but it would be cool to find out if it's true.  Does anybody
4485         # maintain Libtool? --akim.
4486         export ac_cv_exeext
4487         break;;
4488     * )
4489         break;;
4490   esac
4491 done
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4497 See \`config.log' for more details." >&5
4498 echo "$as_me: error: C compiler cannot create executables
4499 See \`config.log' for more details." >&2;}
4500    { (exit 77); exit 77; }; }
4501 fi
4502
4503 ac_exeext=$ac_cv_exeext
4504 echo "$as_me:$LINENO: result: $ac_file" >&5
4505 echo "${ECHO_T}$ac_file" >&6
4506
4507 # Check the compiler produces executables we can run.  If not, either
4508 # the compiler is broken, or we cross compile.
4509 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4510 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4511 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4512 # If not cross compiling, check that we can run a simple program.
4513 if test "$cross_compiling" != yes; then
4514   if { ac_try='./$ac_file'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; }; then
4520     cross_compiling=no
4521   else
4522     if test "$cross_compiling" = maybe; then
4523         cross_compiling=yes
4524     else
4525         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4526 If you meant to cross compile, use \`--host'.
4527 See \`config.log' for more details." >&5
4528 echo "$as_me: error: cannot run C compiled programs.
4529 If you meant to cross compile, use \`--host'.
4530 See \`config.log' for more details." >&2;}
4531    { (exit 1); exit 1; }; }
4532     fi
4533   fi
4534 fi
4535 echo "$as_me:$LINENO: result: yes" >&5
4536 echo "${ECHO_T}yes" >&6
4537
4538 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4539 ac_clean_files=$ac_clean_files_save
4540 # Check the compiler produces executables we can run.  If not, either
4541 # the compiler is broken, or we cross compile.
4542 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4543 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4544 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4545 echo "${ECHO_T}$cross_compiling" >&6
4546
4547 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4548 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550   (eval $ac_link) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; then
4554   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4555 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4556 # work properly (i.e., refer to `conftest.exe'), while it won't with
4557 # `rm'.
4558 for ac_file in conftest.exe conftest conftest.*; do
4559   test -f "$ac_file" || continue
4560   case $ac_file in
4561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4562     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4563           export ac_cv_exeext
4564           break;;
4565     * ) break;;
4566   esac
4567 done
4568 else
4569   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4572 See \`config.log' for more details." >&2;}
4573    { (exit 1); exit 1; }; }
4574 fi
4575
4576 rm -f conftest$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4578 echo "${ECHO_T}$ac_cv_exeext" >&6
4579
4580 rm -f conftest.$ac_ext
4581 EXEEXT=$ac_cv_exeext
4582 ac_exeext=$EXEEXT
4583 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4584 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4585 if test "${ac_cv_objext+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594
4595 int
4596 main ()
4597 {
4598
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.o conftest.obj
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605   (eval $ac_compile) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; then
4609   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4610   case $ac_file in
4611     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4612     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4613        break;;
4614   esac
4615 done
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4621 See \`config.log' for more details." >&5
4622 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4623 See \`config.log' for more details." >&2;}
4624    { (exit 1); exit 1; }; }
4625 fi
4626
4627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4628 fi
4629 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4630 echo "${ECHO_T}$ac_cv_objext" >&6
4631 OBJEXT=$ac_cv_objext
4632 ac_objext=$OBJEXT
4633 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4634 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644
4645 int
4646 main ()
4647 {
4648 #ifndef __GNUC__
4649        choke me
4650 #endif
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658   (eval $ac_compile) 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -z "$ac_c_werror_flag"
4666                          || test ! -s conftest.err'
4667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668   (eval $ac_try) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; } &&
4672          { ac_try='test -s conftest.$ac_objext'
4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674   (eval $ac_try) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; }; then
4678   ac_compiler_gnu=yes
4679 else
4680   echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 ac_compiler_gnu=no
4684 fi
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4687
4688 fi
4689 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4690 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4691 GCC=`test $ac_compiler_gnu = yes && echo yes`
4692 ac_test_CFLAGS=${CFLAGS+set}
4693 ac_save_CFLAGS=$CFLAGS
4694 CFLAGS="-g"
4695 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4696 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4697 if test "${ac_cv_prog_cc_g+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706
4707 int
4708 main ()
4709 {
4710
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717   (eval $ac_compile) 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_c_werror_flag"
4725                          || test ! -s conftest.err'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; } &&
4731          { ac_try='test -s conftest.$ac_objext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_cv_prog_cc_g=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 ac_cv_prog_cc_g=no
4743 fi
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4748 if test "$ac_test_CFLAGS" = set; then
4749   CFLAGS=$ac_save_CFLAGS
4750 elif test $ac_cv_prog_cc_g = yes; then
4751   if test "$GCC" = yes; then
4752     CFLAGS="-g -O2"
4753   else
4754     CFLAGS="-g"
4755   fi
4756 else
4757   if test "$GCC" = yes; then
4758     CFLAGS="-O2"
4759   else
4760     CFLAGS=
4761   fi
4762 fi
4763 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4764 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4765 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   ac_cv_prog_cc_stdc=no
4769 ac_save_CC=$CC
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 #include <stdarg.h>
4777 #include <stdio.h>
4778 #include <sys/types.h>
4779 #include <sys/stat.h>
4780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4781 struct buf { int x; };
4782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4783 static char *e (p, i)
4784      char **p;
4785      int i;
4786 {
4787   return p[i];
4788 }
4789 static char *f (char * (*g) (char **, int), char **p, ...)
4790 {
4791   char *s;
4792   va_list v;
4793   va_start (v,p);
4794   s = g (p, va_arg (v,int));
4795   va_end (v);
4796   return s;
4797 }
4798
4799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4800    function prototypes and stuff, but not '\xHH' hex character constants.
4801    These don't provoke an error unfortunately, instead are silently treated
4802    as 'x'.  The following induces an error, until -std1 is added to get
4803    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4804    array size at least.  It's necessary to write '\x00'==0 to get something
4805    that's true only with -std1.  */
4806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4807
4808 int test (int i, double x);
4809 struct s1 {int (*f) (int a);};
4810 struct s2 {int (*f) (double a);};
4811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4812 int argc;
4813 char **argv;
4814 int
4815 main ()
4816 {
4817 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 # Don't try gcc -ansi; that turns off useful extensions and
4823 # breaks some systems' header files.
4824 # AIX                   -qlanglvl=ansi
4825 # Ultrix and OSF/1      -std1
4826 # HP-UX 10.20 and later -Ae
4827 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4828 # SVR4                  -Xc -D__EXTENSIONS__
4829 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4830 do
4831   CC="$ac_save_CC $ac_arg"
4832   rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834   (eval $ac_compile) 2>conftest.er1
4835   ac_status=$?
4836   grep -v '^ *+' conftest.er1 >conftest.err
4837   rm -f conftest.er1
4838   cat conftest.err >&5
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } &&
4841          { ac_try='test -z "$ac_c_werror_flag"
4842                          || test ! -s conftest.err'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; } &&
4848          { ac_try='test -s conftest.$ac_objext'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; }; then
4854   ac_cv_prog_cc_stdc=$ac_arg
4855 break
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 fi
4861 rm -f conftest.err conftest.$ac_objext
4862 done
4863 rm -f conftest.$ac_ext conftest.$ac_objext
4864 CC=$ac_save_CC
4865
4866 fi
4867
4868 case "x$ac_cv_prog_cc_stdc" in
4869   x|xno)
4870     echo "$as_me:$LINENO: result: none needed" >&5
4871 echo "${ECHO_T}none needed" >&6 ;;
4872   *)
4873     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4874 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4875     CC="$CC $ac_cv_prog_cc_stdc" ;;
4876 esac
4877
4878 # Some people use a C++ compiler to compile C.  Since we use `exit',
4879 # in C++ we need to declare it.  In case someone uses the same compiler
4880 # for both compiling C and C++ we need to have the C++ compiler decide
4881 # the declaration of exit, since it's the most demanding environment.
4882 cat >conftest.$ac_ext <<_ACEOF
4883 #ifndef __cplusplus
4884   choke me
4885 #endif
4886 _ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889   (eval $ac_compile) 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } &&
4896          { ac_try='test -z "$ac_c_werror_flag"
4897                          || test ! -s conftest.err'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; } &&
4903          { ac_try='test -s conftest.$ac_objext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   for ac_declaration in \
4910    '' \
4911    'extern "C" void std::exit (int) throw (); using std::exit;' \
4912    'extern "C" void std::exit (int); using std::exit;' \
4913    'extern "C" void exit (int) throw ();' \
4914    'extern "C" void exit (int);' \
4915    'void exit (int);'
4916 do
4917   cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 $ac_declaration
4924 #include <stdlib.h>
4925 int
4926 main ()
4927 {
4928 exit (42);
4929   ;
4930   return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935   (eval $ac_compile) 2>conftest.er1
4936   ac_status=$?
4937   grep -v '^ *+' conftest.er1 >conftest.err
4938   rm -f conftest.er1
4939   cat conftest.err >&5
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } &&
4942          { ac_try='test -z "$ac_c_werror_flag"
4943                          || test ! -s conftest.err'
4944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945   (eval $ac_try) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); }; } &&
4949          { ac_try='test -s conftest.$ac_objext'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; }; then
4955   :
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 continue
4961 fi
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963   cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h.  */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h.  */
4969 $ac_declaration
4970 int
4971 main ()
4972 {
4973 exit (42);
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980   (eval $ac_compile) 2>conftest.er1
4981   ac_status=$?
4982   grep -v '^ *+' conftest.er1 >conftest.err
4983   rm -f conftest.er1
4984   cat conftest.err >&5
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } &&
4987          { ac_try='test -z "$ac_c_werror_flag"
4988                          || test ! -s conftest.err'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   break
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 fi
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 done
5008 rm -f conftest*
5009 if test -n "$ac_declaration"; then
5010   echo '#ifdef __cplusplus' >>confdefs.h
5011   echo $ac_declaration      >>confdefs.h
5012   echo '#endif'             >>confdefs.h
5013 fi
5014
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 fi
5020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027 depcc="$CC"   am_compiler_list=
5028
5029 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5030 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5031 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035   # We make a subdir and do the tests there.  Otherwise we can end up
5036   # making bogus files that we don't know about and never remove.  For
5037   # instance it was reported that on HP-UX the gcc test will end up
5038   # making a dummy file named `D' -- because `-MD' means `put the output
5039   # in D'.
5040   mkdir conftest.dir
5041   # Copy depcomp to subdir because otherwise we won't find it if we're
5042   # using a relative directory.
5043   cp "$am_depcomp" conftest.dir
5044   cd conftest.dir
5045   # We will build objects and dependencies in a subdirectory because
5046   # it helps to detect inapplicable dependency modes.  For instance
5047   # both Tru64's cc and ICC support -MD to output dependencies as a
5048   # side effect of compilation, but ICC will put the dependencies in
5049   # the current directory while Tru64 will put them in the object
5050   # directory.
5051   mkdir sub
5052
5053   am_cv_CC_dependencies_compiler_type=none
5054   if test "$am_compiler_list" = ""; then
5055      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056   fi
5057   for depmode in $am_compiler_list; do
5058     # Setup a source with many dependencies, because some compilers
5059     # like to wrap large dependency lists on column 80 (with \), and
5060     # we should not choose a depcomp mode which is confused by this.
5061     #
5062     # We need to recreate these files for each test, as the compiler may
5063     # overwrite some of them when testing with obscure command lines.
5064     # This happens at least with the AIX C compiler.
5065     : > sub/conftest.c
5066     for i in 1 2 3 4 5 6; do
5067       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5068       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5069       # Solaris 8's {/usr,}/bin/sh.
5070       touch sub/conftst$i.h
5071     done
5072     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5073
5074     case $depmode in
5075     nosideeffect)
5076       # after this tag, mechanisms are not by side-effect, so they'll
5077       # only be used when explicitly requested
5078       if test "x$enable_dependency_tracking" = xyes; then
5079         continue
5080       else
5081         break
5082       fi
5083       ;;
5084     none) break ;;
5085     esac
5086     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5087     # mode.  It turns out that the SunPro C++ compiler does not properly
5088     # handle `-M -o', and we need to detect this.
5089     if depmode=$depmode \
5090        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5091        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5092        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5093          >/dev/null 2>conftest.err &&
5094        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5096        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097       # icc doesn't choke on unknown options, it will just issue warnings
5098       # or remarks (even with -Werror).  So we grep stderr for any message
5099       # that says an option was ignored or not supported.
5100       # When given -MP, icc 7.0 and 7.1 complain thusly:
5101       #   icc: Command line warning: ignoring option '-M'; no argument required
5102       # The diagnosis changed in icc 8.0:
5103       #   icc: Command line remark: option '-MP' not supported
5104       if (grep 'ignoring option' conftest.err ||
5105           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106         am_cv_CC_dependencies_compiler_type=$depmode
5107         break
5108       fi
5109     fi
5110   done
5111
5112   cd ..
5113   rm -rf conftest.dir
5114 else
5115   am_cv_CC_dependencies_compiler_type=none
5116 fi
5117
5118 fi
5119 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5120 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5122
5123
5124
5125 if
5126   test "x$enable_dependency_tracking" != xno \
5127   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5128   am__fastdepCC_TRUE=
5129   am__fastdepCC_FALSE='#'
5130 else
5131   am__fastdepCC_TRUE='#'
5132   am__fastdepCC_FALSE=
5133 fi
5134
5135
5136 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5137 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5138 if test "${lt_cv_path_SED+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   # Loop through the user's path and test for sed and gsed.
5142 # Then use that list of sed's as ones to test for truncation.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for lt_ac_prog in sed gsed; do
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5151         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5152       fi
5153     done
5154   done
5155 done
5156 lt_ac_max=0
5157 lt_ac_count=0
5158 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5159 # along with /bin/sed that truncates output.
5160 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5161   test ! -f $lt_ac_sed && continue
5162   cat /dev/null > conftest.in
5163   lt_ac_count=0
5164   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5165   # Check for GNU sed and select it if it is found.
5166   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5167     lt_cv_path_SED=$lt_ac_sed
5168     break
5169   fi
5170   while true; do
5171     cat conftest.in conftest.in >conftest.tmp
5172     mv conftest.tmp conftest.in
5173     cp conftest.in conftest.nl
5174     echo >>conftest.nl
5175     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5176     cmp -s conftest.out conftest.nl || break
5177     # 10000 chars as input seems more than enough
5178     test $lt_ac_count -gt 10 && break
5179     lt_ac_count=`expr $lt_ac_count + 1`
5180     if test $lt_ac_count -gt $lt_ac_max; then
5181       lt_ac_max=$lt_ac_count
5182       lt_cv_path_SED=$lt_ac_sed
5183     fi
5184   done
5185 done
5186
5187 fi
5188
5189 SED=$lt_cv_path_SED
5190 echo "$as_me:$LINENO: result: $SED" >&5
5191 echo "${ECHO_T}$SED" >&6
5192
5193 echo "$as_me:$LINENO: checking for egrep" >&5
5194 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5195 if test "${ac_cv_prog_egrep+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5199     then ac_cv_prog_egrep='grep -E'
5200     else ac_cv_prog_egrep='egrep'
5201     fi
5202 fi
5203 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5204 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5205  EGREP=$ac_cv_prog_egrep
5206
5207
5208
5209 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5210 if test "${with_gnu_ld+set}" = set; then
5211   withval="$with_gnu_ld"
5212   test "$withval" = no || with_gnu_ld=yes
5213 else
5214   with_gnu_ld=no
5215 fi;
5216 ac_prog=ld
5217 if test "$GCC" = yes; then
5218   # Check if gcc -print-prog-name=ld gives a path.
5219   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5220 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5221   case $host in
5222   *-*-mingw*)
5223     # gcc leaves a trailing carriage return which upsets mingw
5224     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5225   *)
5226     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5227   esac
5228   case $ac_prog in
5229     # Accept absolute paths.
5230     [\\/]* | ?:[\\/]*)
5231       re_direlt='/[^/][^/]*/\.\./'
5232       # Canonicalize the pathname of ld
5233       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5234       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5235         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5236       done
5237       test -z "$LD" && LD="$ac_prog"
5238       ;;
5239   "")
5240     # If it fails, then pretend we aren't using GCC.
5241     ac_prog=ld
5242     ;;
5243   *)
5244     # If it is relative, then search for the first ld in PATH.
5245     with_gnu_ld=unknown
5246     ;;
5247   esac
5248 elif test "$with_gnu_ld" = yes; then
5249   echo "$as_me:$LINENO: checking for GNU ld" >&5
5250 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5251 else
5252   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5253 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5254 fi
5255 if test "${lt_cv_path_LD+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   if test -z "$LD"; then
5259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5260   for ac_dir in $PATH; do
5261     IFS="$lt_save_ifs"
5262     test -z "$ac_dir" && ac_dir=.
5263     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5264       lt_cv_path_LD="$ac_dir/$ac_prog"
5265       # Check to see if the program is GNU ld.  I'd rather use --version,
5266       # but apparently some variants of GNU ld only accept -v.
5267       # Break only if it was the GNU/non-GNU ld that we prefer.
5268       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5269       *GNU* | *'with BFD'*)
5270         test "$with_gnu_ld" != no && break
5271         ;;
5272       *)
5273         test "$with_gnu_ld" != yes && break
5274         ;;
5275       esac
5276     fi
5277   done
5278   IFS="$lt_save_ifs"
5279 else
5280   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5281 fi
5282 fi
5283
5284 LD="$lt_cv_path_LD"
5285 if test -n "$LD"; then
5286   echo "$as_me:$LINENO: result: $LD" >&5
5287 echo "${ECHO_T}$LD" >&6
5288 else
5289   echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6
5291 fi
5292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5294    { (exit 1); exit 1; }; }
5295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5297 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5301 case `$LD -v 2>&1 </dev/null` in
5302 *GNU* | *'with BFD'*)
5303   lt_cv_prog_gnu_ld=yes
5304   ;;
5305 *)
5306   lt_cv_prog_gnu_ld=no
5307   ;;
5308 esac
5309 fi
5310 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5311 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5312 with_gnu_ld=$lt_cv_prog_gnu_ld
5313
5314
5315 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5316 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5317 if test "${lt_cv_ld_reload_flag+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   lt_cv_ld_reload_flag='-r'
5321 fi
5322 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5323 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5324 reload_flag=$lt_cv_ld_reload_flag
5325 case $reload_flag in
5326 "" | " "*) ;;
5327 *) reload_flag=" $reload_flag" ;;
5328 esac
5329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5330 case $host_os in
5331   darwin*)
5332     if test "$GCC" = yes; then
5333       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5334     else
5335       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5336     fi
5337     ;;
5338 esac
5339
5340 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5341 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5342 if test "${lt_cv_path_NM+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test -n "$NM"; then
5346   # Let the user override the test.
5347   lt_cv_path_NM="$NM"
5348 else
5349   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5350   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5351     IFS="$lt_save_ifs"
5352     test -z "$ac_dir" && ac_dir=.
5353     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5354     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5355       # Check to see if the nm accepts a BSD-compat flag.
5356       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5357       #   nm: unknown option "B" ignored
5358       # Tru64's nm complains that /dev/null is an invalid object file
5359       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5360       */dev/null* | *'Invalid file or object type'*)
5361         lt_cv_path_NM="$tmp_nm -B"
5362         break
5363         ;;
5364       *)
5365         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5366         */dev/null*)
5367           lt_cv_path_NM="$tmp_nm -p"
5368           break
5369           ;;
5370         *)
5371           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5372           continue # so that we can try to find one that supports BSD flags
5373           ;;
5374         esac
5375       esac
5376     fi
5377   done
5378   IFS="$lt_save_ifs"
5379   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5380 fi
5381 fi
5382 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5383 echo "${ECHO_T}$lt_cv_path_NM" >&6
5384 NM="$lt_cv_path_NM"
5385
5386 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5387 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5388 LN_S=$as_ln_s
5389 if test "$LN_S" = "ln -s"; then
5390   echo "$as_me:$LINENO: result: yes" >&5
5391 echo "${ECHO_T}yes" >&6
5392 else
5393   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5394 echo "${ECHO_T}no, using $LN_S" >&6
5395 fi
5396
5397 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5398 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5399 if test "${lt_cv_deplibs_check_method+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   lt_cv_file_magic_cmd='$MAGIC_CMD'
5403 lt_cv_file_magic_test_file=
5404 lt_cv_deplibs_check_method='unknown'
5405 # Need to set the preceding variable on all platforms that support
5406 # interlibrary dependencies.
5407 # 'none' -- dependencies not supported.
5408 # `unknown' -- same as none, but documents that we really don't know.
5409 # 'pass_all' -- all dependencies passed with no checks.
5410 # 'test_compile' -- check by making test program.
5411 # 'file_magic [[regex]]' -- check by looking for files in library path
5412 # which responds to the $file_magic_cmd with a given extended regex.
5413 # If you have `file' or equivalent on your system and you're not sure
5414 # whether `pass_all' will *always* work, you probably want this one.
5415
5416 case $host_os in
5417 aix4* | aix5*)
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420
5421 beos*)
5422   lt_cv_deplibs_check_method=pass_all
5423   ;;
5424
5425 bsdi[45]*)
5426   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5427   lt_cv_file_magic_cmd='/usr/bin/file -L'
5428   lt_cv_file_magic_test_file=/shlib/libc.so
5429   ;;
5430
5431 cygwin*)
5432   # func_win32_libid is a shell function defined in ltmain.sh
5433   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5434   lt_cv_file_magic_cmd='func_win32_libid'
5435   ;;
5436
5437 mingw* | pw32*)
5438   # Base MSYS/MinGW do not provide the 'file' command needed by
5439   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5440   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5441   lt_cv_file_magic_cmd='$OBJDUMP -f'
5442   ;;
5443
5444 darwin* | rhapsody*)
5445   lt_cv_deplibs_check_method=pass_all
5446   ;;
5447
5448 freebsd* | kfreebsd*-gnu | dragonfly*)
5449   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5450     case $host_cpu in
5451     i*86 )
5452       # Not sure whether the presence of OpenBSD here was a mistake.
5453       # Let's accept both of them until this is cleared up.
5454       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5455       lt_cv_file_magic_cmd=/usr/bin/file
5456       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5457       ;;
5458     esac
5459   else
5460     lt_cv_deplibs_check_method=pass_all
5461   fi
5462   ;;
5463
5464 gnu*)
5465   lt_cv_deplibs_check_method=pass_all
5466   ;;
5467
5468 hpux10.20* | hpux11*)
5469   lt_cv_file_magic_cmd=/usr/bin/file
5470   case $host_cpu in
5471   ia64*)
5472     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5473     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5474     ;;
5475   hppa*64*)
5476     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]'
5477     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5478     ;;
5479   *)
5480     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5481     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5482     ;;
5483   esac
5484   ;;
5485
5486 irix5* | irix6* | nonstopux*)
5487   case $LD in
5488   *-32|*"-32 ") libmagic=32-bit;;
5489   *-n32|*"-n32 ") libmagic=N32;;
5490   *-64|*"-64 ") libmagic=64-bit;;
5491   *) libmagic=never-match;;
5492   esac
5493   lt_cv_deplibs_check_method=pass_all
5494   ;;
5495
5496 # This must be Linux ELF.
5497 linux*)
5498   lt_cv_deplibs_check_method=pass_all
5499   ;;
5500
5501 netbsd*)
5502   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5504   else
5505     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5506   fi
5507   ;;
5508
5509 newos6*)
5510   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5511   lt_cv_file_magic_cmd=/usr/bin/file
5512   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5513   ;;
5514
5515 nto-qnx*)
5516   lt_cv_deplibs_check_method=unknown
5517   ;;
5518
5519 openbsd*)
5520   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5521     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5522   else
5523     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5524   fi
5525   ;;
5526
5527 osf3* | osf4* | osf5*)
5528   lt_cv_deplibs_check_method=pass_all
5529   ;;
5530
5531 sco3.2v5*)
5532   lt_cv_deplibs_check_method=pass_all
5533   ;;
5534
5535 solaris*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5540   case $host_vendor in
5541   motorola)
5542     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]'
5543     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5544     ;;
5545   ncr)
5546     lt_cv_deplibs_check_method=pass_all
5547     ;;
5548   sequent)
5549     lt_cv_file_magic_cmd='/bin/file'
5550     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5551     ;;
5552   sni)
5553     lt_cv_file_magic_cmd='/bin/file'
5554     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5555     lt_cv_file_magic_test_file=/lib/libc.so
5556     ;;
5557   siemens)
5558     lt_cv_deplibs_check_method=pass_all
5559     ;;
5560   esac
5561   ;;
5562
5563 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566 esac
5567
5568 fi
5569 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5570 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5571 file_magic_cmd=$lt_cv_file_magic_cmd
5572 deplibs_check_method=$lt_cv_deplibs_check_method
5573 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5574
5575
5576
5577
5578 # If no C compiler was specified, use CC.
5579 LTCC=${LTCC-"$CC"}
5580
5581 # Allow CC to be a program name with arguments.
5582 compiler=$CC
5583
5584
5585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5586 if test "${enable_libtool_lock+set}" = set; then
5587   enableval="$enable_libtool_lock"
5588
5589 fi;
5590 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5591
5592 # Some flags need to be propagated to the compiler or linker for good
5593 # libtool support.
5594 case $host in
5595 ia64-*-hpux*)
5596   # Find out which ABI we are using.
5597   echo 'int i;' > conftest.$ac_ext
5598   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599   (eval $ac_compile) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; then
5603     case `/usr/bin/file conftest.$ac_objext` in
5604     *ELF-32*)
5605       HPUX_IA64_MODE="32"
5606       ;;
5607     *ELF-64*)
5608       HPUX_IA64_MODE="64"
5609       ;;
5610     esac
5611   fi
5612   rm -rf conftest*
5613   ;;
5614 *-*-irix6*)
5615   # Find out which ABI we are using.
5616   echo '#line 5616 "configure"' > conftest.$ac_ext
5617   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618   (eval $ac_compile) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; then
5622    if test "$lt_cv_prog_gnu_ld" = yes; then
5623     case `/usr/bin/file conftest.$ac_objext` in
5624     *32-bit*)
5625       LD="${LD-ld} -melf32bsmip"
5626       ;;
5627     *N32*)
5628       LD="${LD-ld} -melf32bmipn32"
5629       ;;
5630     *64-bit*)
5631       LD="${LD-ld} -melf64bmip"
5632       ;;
5633     esac
5634    else
5635     case `/usr/bin/file conftest.$ac_objext` in
5636     *32-bit*)
5637       LD="${LD-ld} -32"
5638       ;;
5639     *N32*)
5640       LD="${LD-ld} -n32"
5641       ;;
5642     *64-bit*)
5643       LD="${LD-ld} -64"
5644       ;;
5645     esac
5646    fi
5647   fi
5648   rm -rf conftest*
5649   ;;
5650
5651 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5652   # Find out which ABI we are using.
5653   echo 'int i;' > conftest.$ac_ext
5654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655   (eval $ac_compile) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; then
5659     case `/usr/bin/file conftest.o` in
5660     *32-bit*)
5661       case $host in
5662         x86_64-*linux*)
5663           LD="${LD-ld} -m elf_i386"
5664           ;;
5665         ppc64-*linux*|powerpc64-*linux*)
5666           LD="${LD-ld} -m elf32ppclinux"
5667           ;;
5668         s390x-*linux*)
5669           LD="${LD-ld} -m elf_s390"
5670           ;;
5671         sparc64-*linux*)
5672           LD="${LD-ld} -m elf32_sparc"
5673           ;;
5674       esac
5675       ;;
5676     *64-bit*)
5677       case $host in
5678         x86_64-*linux*)
5679           LD="${LD-ld} -m elf_x86_64"
5680           ;;
5681         ppc*-*linux*|powerpc*-*linux*)
5682           LD="${LD-ld} -m elf64ppc"
5683           ;;
5684         s390*-*linux*)
5685           LD="${LD-ld} -m elf64_s390"
5686           ;;
5687         sparc*-*linux*)
5688           LD="${LD-ld} -m elf64_sparc"
5689           ;;
5690       esac
5691       ;;
5692     esac
5693   fi
5694   rm -rf conftest*
5695   ;;
5696
5697 *-*-sco3.2v5*)
5698   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5699   SAVE_CFLAGS="$CFLAGS"
5700   CFLAGS="$CFLAGS -belf"
5701   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5702 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5703 if test "${lt_cv_cc_needs_belf+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   ac_ext=c
5707 ac_cpp='$CPP $CPPFLAGS'
5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711
5712      cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718
5719 int
5720 main ()
5721 {
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729   (eval $ac_link) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest$ac_exeext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   lt_cv_cc_needs_belf=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 lt_cv_cc_needs_belf=no
5755 fi
5756 rm -f conftest.err conftest.$ac_objext \
5757       conftest$ac_exeext conftest.$ac_ext
5758      ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764 fi
5765 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5766 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5767   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5768     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5769     CFLAGS="$SAVE_CFLAGS"
5770   fi
5771   ;;
5772 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5773   if test -n "$ac_tool_prefix"; then
5774   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   if test -n "$DLLTOOL"; then
5782   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789   for ac_exec_ext in '' $ac_executable_extensions; do
5790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796 done
5797
5798 fi
5799 fi
5800 DLLTOOL=$ac_cv_prog_DLLTOOL
5801 if test -n "$DLLTOOL"; then
5802   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5803 echo "${ECHO_T}$DLLTOOL" >&6
5804 else
5805   echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5807 fi
5808
5809 fi
5810 if test -z "$ac_cv_prog_DLLTOOL"; then
5811   ac_ct_DLLTOOL=$DLLTOOL
5812   # Extract the first word of "dlltool", so it can be a program name with args.
5813 set dummy dlltool; ac_word=$2
5814 echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5816 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   if test -n "$ac_ct_DLLTOOL"; then
5820   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834 done
5835
5836   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5837 fi
5838 fi
5839 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5840 if test -n "$ac_ct_DLLTOOL"; then
5841   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5842 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5843 else
5844   echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5846 fi
5847
5848   DLLTOOL=$ac_ct_DLLTOOL
5849 else
5850   DLLTOOL="$ac_cv_prog_DLLTOOL"
5851 fi
5852
5853   if test -n "$ac_tool_prefix"; then
5854   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}as; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_AS+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -n "$AS"; then
5862   ac_cv_prog_AS="$AS" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871     ac_cv_prog_AS="${ac_tool_prefix}as"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877
5878 fi
5879 fi
5880 AS=$ac_cv_prog_AS
5881 if test -n "$AS"; then
5882   echo "$as_me:$LINENO: result: $AS" >&5
5883 echo "${ECHO_T}$AS" >&6
5884 else
5885   echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5887 fi
5888
5889 fi
5890 if test -z "$ac_cv_prog_AS"; then
5891   ac_ct_AS=$AS
5892   # Extract the first word of "as", so it can be a program name with args.
5893 set dummy as; ac_word=$2
5894 echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5896 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   if test -n "$ac_ct_AS"; then
5900   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   for ac_exec_ext in '' $ac_executable_extensions; do
5908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909     ac_cv_prog_ac_ct_AS="as"
5910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914 done
5915
5916   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5917 fi
5918 fi
5919 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5920 if test -n "$ac_ct_AS"; then
5921   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5922 echo "${ECHO_T}$ac_ct_AS" >&6
5923 else
5924   echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5926 fi
5927
5928   AS=$ac_ct_AS
5929 else
5930   AS="$ac_cv_prog_AS"
5931 fi
5932
5933   if test -n "$ac_tool_prefix"; then
5934   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   if test -n "$OBJDUMP"; then
5942   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949   for ac_exec_ext in '' $ac_executable_extensions; do
5950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956 done
5957
5958 fi
5959 fi
5960 OBJDUMP=$ac_cv_prog_OBJDUMP
5961 if test -n "$OBJDUMP"; then
5962   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5963 echo "${ECHO_T}$OBJDUMP" >&6
5964 else
5965   echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969 fi
5970 if test -z "$ac_cv_prog_OBJDUMP"; then
5971   ac_ct_OBJDUMP=$OBJDUMP
5972   # Extract the first word of "objdump", so it can be a program name with args.
5973 set dummy objdump; ac_word=$2
5974 echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5976 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   if test -n "$ac_ct_OBJDUMP"; then
5980   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985   IFS=$as_save_IFS
5986   test -z "$as_dir" && as_dir=.
5987   for ac_exec_ext in '' $ac_executable_extensions; do
5988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991     break 2
5992   fi
5993 done
5994 done
5995
5996   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5997 fi
5998 fi
5999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6000 if test -n "$ac_ct_OBJDUMP"; then
6001   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6002 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   OBJDUMP=$ac_ct_OBJDUMP
6009 else
6010   OBJDUMP="$ac_cv_prog_OBJDUMP"
6011 fi
6012
6013   ;;
6014
6015 esac
6016
6017 need_locks="$enable_libtool_lock"
6018
6019
6020 ac_ext=c
6021 ac_cpp='$CPP $CPPFLAGS'
6022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6025 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6026 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6027 # On Suns, sometimes $CPP names a directory.
6028 if test -n "$CPP" && test -d "$CPP"; then
6029   CPP=
6030 fi
6031 if test -z "$CPP"; then
6032   if test "${ac_cv_prog_CPP+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035       # Double quotes because CPP needs to be expanded
6036     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6037     do
6038       ac_preproc_ok=false
6039 for ac_c_preproc_warn_flag in '' yes
6040 do
6041   # Use a header file that comes with gcc, so configuring glibc
6042   # with a fresh cross-compiler works.
6043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6044   # <limits.h> exists even on freestanding compilers.
6045   # On the NeXT, cc -E runs the code through the compiler's parser,
6046   # not just through cpp. "Syntax error" is here to catch this case.
6047   cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 #ifdef __STDC__
6054 # include <limits.h>
6055 #else
6056 # include <assert.h>
6057 #endif
6058                      Syntax error
6059 _ACEOF
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } >/dev/null; then
6068   if test -s conftest.err; then
6069     ac_cpp_err=$ac_c_preproc_warn_flag
6070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6071   else
6072     ac_cpp_err=
6073   fi
6074 else
6075   ac_cpp_err=yes
6076 fi
6077 if test -z "$ac_cpp_err"; then
6078   :
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083   # Broken: fails on valid input.
6084 continue
6085 fi
6086 rm -f conftest.err conftest.$ac_ext
6087
6088   # OK, works on sane cases.  Now check whether non-existent headers
6089   # can be detected and how.
6090   cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096 #include <ac_nonexistent.h>
6097 _ACEOF
6098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6100   ac_status=$?
6101   grep -v '^ *+' conftest.er1 >conftest.err
6102   rm -f conftest.er1
6103   cat conftest.err >&5
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); } >/dev/null; then
6106   if test -s conftest.err; then
6107     ac_cpp_err=$ac_c_preproc_warn_flag
6108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6109   else
6110     ac_cpp_err=
6111   fi
6112 else
6113   ac_cpp_err=yes
6114 fi
6115 if test -z "$ac_cpp_err"; then
6116   # Broken: success on invalid input.
6117 continue
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122   # Passes both tests.
6123 ac_preproc_ok=:
6124 break
6125 fi
6126 rm -f conftest.err conftest.$ac_ext
6127
6128 done
6129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6130 rm -f conftest.err conftest.$ac_ext
6131 if $ac_preproc_ok; then
6132   break
6133 fi
6134
6135     done
6136     ac_cv_prog_CPP=$CPP
6137
6138 fi
6139   CPP=$ac_cv_prog_CPP
6140 else
6141   ac_cv_prog_CPP=$CPP
6142 fi
6143 echo "$as_me:$LINENO: result: $CPP" >&5
6144 echo "${ECHO_T}$CPP" >&6
6145 ac_preproc_ok=false
6146 for ac_c_preproc_warn_flag in '' yes
6147 do
6148   # Use a header file that comes with gcc, so configuring glibc
6149   # with a fresh cross-compiler works.
6150   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6151   # <limits.h> exists even on freestanding compilers.
6152   # On the NeXT, cc -E runs the code through the compiler's parser,
6153   # not just through cpp. "Syntax error" is here to catch this case.
6154   cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 #ifdef __STDC__
6161 # include <limits.h>
6162 #else
6163 # include <assert.h>
6164 #endif
6165                      Syntax error
6166 _ACEOF
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } >/dev/null; then
6175   if test -s conftest.err; then
6176     ac_cpp_err=$ac_c_preproc_warn_flag
6177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6178   else
6179     ac_cpp_err=
6180   fi
6181 else
6182   ac_cpp_err=yes
6183 fi
6184 if test -z "$ac_cpp_err"; then
6185   :
6186 else
6187   echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190   # Broken: fails on valid input.
6191 continue
6192 fi
6193 rm -f conftest.err conftest.$ac_ext
6194
6195   # OK, works on sane cases.  Now check whether non-existent headers
6196   # can be detected and how.
6197   cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203 #include <ac_nonexistent.h>
6204 _ACEOF
6205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } >/dev/null; then
6213   if test -s conftest.err; then
6214     ac_cpp_err=$ac_c_preproc_warn_flag
6215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6216   else
6217     ac_cpp_err=
6218   fi
6219 else
6220   ac_cpp_err=yes
6221 fi
6222 if test -z "$ac_cpp_err"; then
6223   # Broken: success on invalid input.
6224 continue
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229   # Passes both tests.
6230 ac_preproc_ok=:
6231 break
6232 fi
6233 rm -f conftest.err conftest.$ac_ext
6234
6235 done
6236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6237 rm -f conftest.err conftest.$ac_ext
6238 if $ac_preproc_ok; then
6239   :
6240 else
6241   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6242 See \`config.log' for more details." >&5
6243 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6244 See \`config.log' for more details." >&2;}
6245    { (exit 1); exit 1; }; }
6246 fi
6247
6248 ac_ext=c
6249 ac_cpp='$CPP $CPPFLAGS'
6250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253
6254
6255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6257 if test "${ac_cv_header_stdc+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 #include <stdlib.h>
6267 #include <stdarg.h>
6268 #include <string.h>
6269 #include <float.h>
6270
6271 int
6272 main ()
6273 {
6274
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281   (eval $ac_compile) 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_c_werror_flag"
6289                          || test ! -s conftest.err'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; } &&
6295          { ac_try='test -s conftest.$ac_objext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   ac_cv_header_stdc=yes
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 ac_cv_header_stdc=no
6307 fi
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309
6310 if test $ac_cv_header_stdc = yes; then
6311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6312   cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318 #include <string.h>
6319
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322   $EGREP "memchr" >/dev/null 2>&1; then
6323   :
6324 else
6325   ac_cv_header_stdc=no
6326 fi
6327 rm -f conftest*
6328
6329 fi
6330
6331 if test $ac_cv_header_stdc = yes; then
6332   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 #include <stdlib.h>
6340
6341 _ACEOF
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343   $EGREP "free" >/dev/null 2>&1; then
6344   :
6345 else
6346   ac_cv_header_stdc=no
6347 fi
6348 rm -f conftest*
6349
6350 fi
6351
6352 if test $ac_cv_header_stdc = yes; then
6353   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6354   if test "$cross_compiling" = yes; then
6355   :
6356 else
6357   cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h.  */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h.  */
6363 #include <ctype.h>
6364 #if ((' ' & 0x0FF) == 0x020)
6365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367 #else
6368 # define ISLOWER(c) \
6369                    (('a' <= (c) && (c) <= 'i') \
6370                      || ('j' <= (c) && (c) <= 'r') \
6371                      || ('s' <= (c) && (c) <= 'z'))
6372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6373 #endif
6374
6375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6376 int
6377 main ()
6378 {
6379   int i;
6380   for (i = 0; i < 256; i++)
6381     if (XOR (islower (i), ISLOWER (i))
6382         || toupper (i) != TOUPPER (i))
6383       exit(2);
6384   exit (0);
6385 }
6386 _ACEOF
6387 rm -f conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389   (eval $ac_link) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   :
6399 else
6400   echo "$as_me: program exited with status $ac_status" >&5
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 ( exit $ac_status )
6405 ac_cv_header_stdc=no
6406 fi
6407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 fi
6410 fi
6411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6413 if test $ac_cv_header_stdc = yes; then
6414
6415 cat >>confdefs.h <<\_ACEOF
6416 #define STDC_HEADERS 1
6417 _ACEOF
6418
6419 fi
6420
6421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6432                   inttypes.h stdint.h unistd.h
6433 do
6434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6435 echo "$as_me:$LINENO: checking for $ac_header" >&5
6436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h.  */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h.  */
6446 $ac_includes_default
6447
6448 #include <$ac_header>
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>conftest.er1
6453   ac_status=$?
6454   grep -v '^ *+' conftest.er1 >conftest.err
6455   rm -f conftest.er1
6456   cat conftest.err >&5
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } &&
6459          { ac_try='test -z "$ac_c_werror_flag"
6460                          || test ! -s conftest.err'
6461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462   (eval $ac_try) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; } &&
6466          { ac_try='test -s conftest.$ac_objext'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   eval "$as_ac_Header=yes"
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 eval "$as_ac_Header=no"
6478 fi
6479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6480 fi
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6484   cat >>confdefs.h <<_ACEOF
6485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6486 _ACEOF
6487
6488 fi
6489
6490 done
6491
6492
6493
6494 for ac_header in dlfcn.h
6495 do
6496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6498   echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6501   echo $ECHO_N "(cached) $ECHO_C" >&6
6502 fi
6503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505 else
6506   # Is the header compilable?
6507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h.  */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h.  */
6515 $ac_includes_default
6516 #include <$ac_header>
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520   (eval $ac_compile) 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_c_werror_flag"
6528                          || test ! -s conftest.err'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest.$ac_objext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_header_compiler=yes
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_header_compiler=no
6546 fi
6547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6549 echo "${ECHO_T}$ac_header_compiler" >&6
6550
6551 # Is the header present?
6552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 #include <$ac_header>
6561 _ACEOF
6562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6564   ac_status=$?
6565   grep -v '^ *+' conftest.er1 >conftest.err
6566   rm -f conftest.er1
6567   cat conftest.err >&5
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); } >/dev/null; then
6570   if test -s conftest.err; then
6571     ac_cpp_err=$ac_c_preproc_warn_flag
6572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6573   else
6574     ac_cpp_err=
6575   fi
6576 else
6577   ac_cpp_err=yes
6578 fi
6579 if test -z "$ac_cpp_err"; then
6580   ac_header_preproc=yes
6581 else
6582   echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6584
6585   ac_header_preproc=no
6586 fi
6587 rm -f conftest.err conftest.$ac_ext
6588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6589 echo "${ECHO_T}$ac_header_preproc" >&6
6590
6591 # So?  What about this header?
6592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6593   yes:no: )
6594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6598     ac_header_preproc=yes
6599     ;;
6600   no:yes:* )
6601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6613     (
6614       cat <<\_ASBOX
6615 ## --------------------------------------------- ##
6616 ## Report this to <http://www.openldap.org/its/> ##
6617 ## --------------------------------------------- ##
6618 _ASBOX
6619     ) |
6620       sed "s/^/$as_me: WARNING:     /" >&2
6621     ;;
6622 esac
6623 echo "$as_me:$LINENO: checking for $ac_header" >&5
6624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   eval "$as_ac_Header=\$ac_header_preproc"
6629 fi
6630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6632
6633 fi
6634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6635   cat >>confdefs.h <<_ACEOF
6636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 _ACEOF
6638
6639 fi
6640
6641 done
6642
6643
6644 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6645
6646 # find the maximum length of command line arguments
6647 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6648 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6649 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652     i=0
6653   teststring="ABCD"
6654
6655   case $build_os in
6656   msdosdjgpp*)
6657     # On DJGPP, this test can blow up pretty badly due to problems in libc
6658     # (any single argument exceeding 2000 bytes causes a buffer overrun
6659     # during glob expansion).  Even if it were fixed, the result of this
6660     # check would be larger than it should be.
6661     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6662     ;;
6663
6664   gnu*)
6665     # Under GNU Hurd, this test is not required because there is
6666     # no limit to the length of command line arguments.
6667     # Libtool will interpret -1 as no limit whatsoever
6668     lt_cv_sys_max_cmd_len=-1;
6669     ;;
6670
6671   cygwin* | mingw*)
6672     # On Win9x/ME, this test blows up -- it succeeds, but takes
6673     # about 5 minutes as the teststring grows exponentially.
6674     # Worse, since 9x/ME are not pre-emptively multitasking,
6675     # you end up with a "frozen" computer, even though with patience
6676     # the test eventually succeeds (with a max line length of 256k).
6677     # Instead, let's just punt: use the minimum linelength reported by
6678     # all of the supported platforms: 8192 (on NT/2K/XP).
6679     lt_cv_sys_max_cmd_len=8192;
6680     ;;
6681
6682   amigaos*)
6683     # On AmigaOS with pdksh, this test takes hours, literally.
6684     # So we just punt and use a minimum line length of 8192.
6685     lt_cv_sys_max_cmd_len=8192;
6686     ;;
6687
6688   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6689     # This has been around since 386BSD, at least.  Likely further.
6690     if test -x /sbin/sysctl; then
6691       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6692     elif test -x /usr/sbin/sysctl; then
6693       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6694     else
6695       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6696     fi
6697     # And add a safety zone
6698     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6700     ;;
6701   osf*)
6702     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6703     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6704     # nice to cause kernel panics so lets avoid the loop below.
6705     # First set a reasonable default.
6706     lt_cv_sys_max_cmd_len=16384
6707     #
6708     if test -x /sbin/sysconfig; then
6709       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6710         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6711       esac
6712     fi
6713     ;;
6714   *)
6715     # If test is not a shell built-in, we'll probably end up computing a
6716     # maximum length that is only half of the actual maximum length, but
6717     # we can't tell.
6718     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6719     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6720                = "XX$teststring") >/dev/null 2>&1 &&
6721             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6722             lt_cv_sys_max_cmd_len=$new_result &&
6723             test $i != 17 # 1/2 MB should be enough
6724     do
6725       i=`expr $i + 1`
6726       teststring=$teststring$teststring
6727     done
6728     teststring=
6729     # Add a significant safety factor because C++ compilers can tack on massive
6730     # amounts of additional arguments before passing them to the linker.
6731     # It appears as though 1/2 is a usable value.
6732     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6733     ;;
6734   esac
6735
6736 fi
6737
6738 if test -n $lt_cv_sys_max_cmd_len ; then
6739   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6740 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6741 else
6742   echo "$as_me:$LINENO: result: none" >&5
6743 echo "${ECHO_T}none" >&6
6744 fi
6745
6746
6747
6748
6749 # Check for command to grab the raw symbol name followed by C symbol from nm.
6750 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6751 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6752 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755
6756 # These are sane defaults that work on at least a few old systems.
6757 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6758
6759 # Character class describing NM global symbol codes.
6760 symcode='[BCDEGRST]'
6761
6762 # Regexp to match symbols that can be accessed directly from C.
6763 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6764
6765 # Transform an extracted symbol line into a proper C declaration
6766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6767
6768 # Transform an extracted symbol line into symbol name and symbol address
6769 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'"
6770
6771 # Define system-specific variables.
6772 case $host_os in
6773 aix*)
6774   symcode='[BCDT]'
6775   ;;
6776 cygwin* | mingw* | pw32*)
6777   symcode='[ABCDGISTW]'
6778   ;;
6779 hpux*) # Its linker distinguishes data from code symbols
6780   if test "$host_cpu" = ia64; then
6781     symcode='[ABCDEGRST]'
6782   fi
6783   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6784   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'"
6785   ;;
6786 linux*)
6787   if test "$host_cpu" = ia64; then
6788     symcode='[ABCDGIRSTW]'
6789     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6790     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'"
6791   fi
6792   ;;
6793 irix* | nonstopux*)
6794   symcode='[BCDEGRST]'
6795   ;;
6796 osf*)
6797   symcode='[BCDEGQRST]'
6798   ;;
6799 solaris* | sysv5*)
6800   symcode='[BDRT]'
6801   ;;
6802 sysv4)
6803   symcode='[DFNSTU]'
6804   ;;
6805 esac
6806
6807 # Handle CRLF in mingw tool chain
6808 opt_cr=
6809 case $build_os in
6810 mingw*)
6811   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6812   ;;
6813 esac
6814
6815 # If we're using GNU nm, then use its standard symbol codes.
6816 case `$NM -V 2>&1` in
6817 *GNU* | *'with BFD'*)
6818   symcode='[ABCDGIRSTW]' ;;
6819 esac
6820
6821 # Try without a prefix undercore, then with it.
6822 for ac_symprfx in "" "_"; do
6823
6824   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6825   symxfrm="\\1 $ac_symprfx\\2 \\2"
6826
6827   # Write the raw and C identifiers.
6828   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6829
6830   # Check to see that the pipe works correctly.
6831   pipe_works=no
6832
6833   rm -f conftest*
6834   cat > conftest.$ac_ext <<EOF
6835 #ifdef __cplusplus
6836 extern "C" {
6837 #endif
6838 char nm_test_var;
6839 void nm_test_func(){}
6840 #ifdef __cplusplus
6841 }
6842 #endif
6843 int main(){nm_test_var='a';nm_test_func();return(0);}
6844 EOF
6845
6846   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847   (eval $ac_compile) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; then
6851     # Now try to grab the symbols.
6852     nlist=conftest.nm
6853     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6854   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } && test -s "$nlist"; then
6858       # Try sorting and uniquifying the output.
6859       if sort "$nlist" | uniq > "$nlist"T; then
6860         mv -f "$nlist"T "$nlist"
6861       else
6862         rm -f "$nlist"T
6863       fi
6864
6865       # Make sure that we snagged all the symbols we need.
6866       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6867         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6868           cat <<EOF > conftest.$ac_ext
6869 #ifdef __cplusplus
6870 extern "C" {
6871 #endif
6872
6873 EOF
6874           # Now generate the symbol file.
6875           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6876
6877           cat <<EOF >> conftest.$ac_ext
6878 #if defined (__STDC__) && __STDC__
6879 # define lt_ptr_t void *
6880 #else
6881 # define lt_ptr_t char *
6882 # define const
6883 #endif
6884
6885 /* The mapping between symbol names and symbols. */
6886 const struct {
6887   const char *name;
6888   lt_ptr_t address;
6889 }
6890 lt_preloaded_symbols[] =
6891 {
6892 EOF
6893           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6894           cat <<\EOF >> conftest.$ac_ext
6895   {0, (lt_ptr_t) 0}
6896 };
6897
6898 #ifdef __cplusplus
6899 }
6900 #endif
6901 EOF
6902           # Now try linking the two files.
6903           mv conftest.$ac_objext conftstm.$ac_objext
6904           lt_save_LIBS="$LIBS"
6905           lt_save_CFLAGS="$CFLAGS"
6906           LIBS="conftstm.$ac_objext"
6907           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6908           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909   (eval $ac_link) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6913             pipe_works=yes
6914           fi
6915           LIBS="$lt_save_LIBS"
6916           CFLAGS="$lt_save_CFLAGS"
6917         else
6918           echo "cannot find nm_test_func in $nlist" >&5
6919         fi
6920       else
6921         echo "cannot find nm_test_var in $nlist" >&5
6922       fi
6923     else
6924       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6925     fi
6926   else
6927     echo "$progname: failed program was:" >&5
6928     cat conftest.$ac_ext >&5
6929   fi
6930   rm -f conftest* conftst*
6931
6932   # Do not use the global_symbol_pipe unless it works.
6933   if test "$pipe_works" = yes; then
6934     break
6935   else
6936     lt_cv_sys_global_symbol_pipe=
6937   fi
6938 done
6939
6940 fi
6941
6942 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6943   lt_cv_sys_global_symbol_to_cdecl=
6944 fi
6945 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6946   echo "$as_me:$LINENO: result: failed" >&5
6947 echo "${ECHO_T}failed" >&6
6948 else
6949   echo "$as_me:$LINENO: result: ok" >&5
6950 echo "${ECHO_T}ok" >&6
6951 fi
6952
6953 echo "$as_me:$LINENO: checking for objdir" >&5
6954 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6955 if test "${lt_cv_objdir+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   rm -f .libs 2>/dev/null
6959 mkdir .libs 2>/dev/null
6960 if test -d .libs; then
6961   lt_cv_objdir=.libs
6962 else
6963   # MS-DOS does not allow filenames that begin with a dot.
6964   lt_cv_objdir=_libs
6965 fi
6966 rmdir .libs 2>/dev/null
6967 fi
6968 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6969 echo "${ECHO_T}$lt_cv_objdir" >&6
6970 objdir=$lt_cv_objdir
6971
6972
6973
6974
6975
6976 case $host_os in
6977 aix3*)
6978   # AIX sometimes has problems with the GCC collect2 program.  For some
6979   # reason, if we set the COLLECT_NAMES environment variable, the problems
6980   # vanish in a puff of smoke.
6981   if test "X${COLLECT_NAMES+set}" != Xset; then
6982     COLLECT_NAMES=
6983     export COLLECT_NAMES
6984   fi
6985   ;;
6986 esac
6987
6988 # Sed substitution that helps us do robust quoting.  It backslashifies
6989 # metacharacters that are still active within double-quoted strings.
6990 Xsed='sed -e 1s/^X//'
6991 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6992
6993 # Same as above, but do not quote variable references.
6994 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6995
6996 # Sed substitution to delay expansion of an escaped shell variable in a
6997 # double_quote_subst'ed string.
6998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6999
7000 # Sed substitution to avoid accidental globbing in evaled expressions
7001 no_glob_subst='s/\*/\\\*/g'
7002
7003 # Constants:
7004 rm="rm -f"
7005
7006 # Global variables:
7007 default_ofile=libtool
7008 can_build_shared=yes
7009
7010 # All known linkers require a `.a' archive for static linking (except MSVC,
7011 # which needs '.lib').
7012 libext=a
7013 ltmain="$ac_aux_dir/ltmain.sh"
7014 ofile="$default_ofile"
7015 with_gnu_ld="$lt_cv_prog_gnu_ld"
7016
7017 if test -n "$ac_tool_prefix"; then
7018   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}ar; ac_word=$2
7020 echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022 if test "${ac_cv_prog_AR+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   if test -n "$AR"; then
7026   ac_cv_prog_AR="$AR" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033   for ac_exec_ext in '' $ac_executable_extensions; do
7034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_prog_AR="${ac_tool_prefix}ar"
7036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040 done
7041
7042 fi
7043 fi
7044 AR=$ac_cv_prog_AR
7045 if test -n "$AR"; then
7046   echo "$as_me:$LINENO: result: $AR" >&5
7047 echo "${ECHO_T}$AR" >&6
7048 else
7049   echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6
7051 fi
7052
7053 fi
7054 if test -z "$ac_cv_prog_AR"; then
7055   ac_ct_AR=$AR
7056   # Extract the first word of "ar", so it can be a program name with args.
7057 set dummy ar; ac_word=$2
7058 echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   if test -n "$ac_ct_AR"; then
7064   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071   for ac_exec_ext in '' $ac_executable_extensions; do
7072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073     ac_cv_prog_ac_ct_AR="ar"
7074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078 done
7079
7080   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7081 fi
7082 fi
7083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7084 if test -n "$ac_ct_AR"; then
7085   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7086 echo "${ECHO_T}$ac_ct_AR" >&6
7087 else
7088   echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7090 fi
7091
7092   AR=$ac_ct_AR
7093 else
7094   AR="$ac_cv_prog_AR"
7095 fi
7096
7097 if test -n "$ac_tool_prefix"; then
7098   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7100 echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102 if test "${ac_cv_prog_RANLIB+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   if test -n "$RANLIB"; then
7106   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113   for ac_exec_ext in '' $ac_executable_extensions; do
7114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120 done
7121
7122 fi
7123 fi
7124 RANLIB=$ac_cv_prog_RANLIB
7125 if test -n "$RANLIB"; then
7126   echo "$as_me:$LINENO: result: $RANLIB" >&5
7127 echo "${ECHO_T}$RANLIB" >&6
7128 else
7129   echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7131 fi
7132
7133 fi
7134 if test -z "$ac_cv_prog_RANLIB"; then
7135   ac_ct_RANLIB=$RANLIB
7136   # Extract the first word of "ranlib", so it can be a program name with args.
7137 set dummy ranlib; ac_word=$2
7138 echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7140 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   if test -n "$ac_ct_RANLIB"; then
7144   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151   for ac_exec_ext in '' $ac_executable_extensions; do
7152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153     ac_cv_prog_ac_ct_RANLIB="ranlib"
7154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158 done
7159
7160   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7161 fi
7162 fi
7163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7164 if test -n "$ac_ct_RANLIB"; then
7165   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7166 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7167 else
7168   echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7170 fi
7171
7172   RANLIB=$ac_ct_RANLIB
7173 else
7174   RANLIB="$ac_cv_prog_RANLIB"
7175 fi
7176
7177 if test -n "$ac_tool_prefix"; then
7178   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}strip; ac_word=$2
7180 echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182 if test "${ac_cv_prog_STRIP+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   if test -n "$STRIP"; then
7186   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193   for ac_exec_ext in '' $ac_executable_extensions; do
7194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200 done
7201
7202 fi
7203 fi
7204 STRIP=$ac_cv_prog_STRIP
7205 if test -n "$STRIP"; then
7206   echo "$as_me:$LINENO: result: $STRIP" >&5
7207 echo "${ECHO_T}$STRIP" >&6
7208 else
7209   echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211 fi
7212
7213 fi
7214 if test -z "$ac_cv_prog_STRIP"; then
7215   ac_ct_STRIP=$STRIP
7216   # Extract the first word of "strip", so it can be a program name with args.
7217 set dummy strip; ac_word=$2
7218 echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7220 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   if test -n "$ac_ct_STRIP"; then
7224   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231   for ac_exec_ext in '' $ac_executable_extensions; do
7232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233     ac_cv_prog_ac_ct_STRIP="strip"
7234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238 done
7239
7240   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7241 fi
7242 fi
7243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7244 if test -n "$ac_ct_STRIP"; then
7245   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7246 echo "${ECHO_T}$ac_ct_STRIP" >&6
7247 else
7248   echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6
7250 fi
7251
7252   STRIP=$ac_ct_STRIP
7253 else
7254   STRIP="$ac_cv_prog_STRIP"
7255 fi
7256
7257
7258 old_CC="$CC"
7259 old_CFLAGS="$CFLAGS"
7260
7261 # Set sane defaults for various variables
7262 test -z "$AR" && AR=ar
7263 test -z "$AR_FLAGS" && AR_FLAGS=cru
7264 test -z "$AS" && AS=as
7265 test -z "$CC" && CC=cc
7266 test -z "$LTCC" && LTCC=$CC
7267 test -z "$DLLTOOL" && DLLTOOL=dlltool
7268 test -z "$LD" && LD=ld
7269 test -z "$LN_S" && LN_S="ln -s"
7270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7271 test -z "$NM" && NM=nm
7272 test -z "$SED" && SED=sed
7273 test -z "$OBJDUMP" && OBJDUMP=objdump
7274 test -z "$RANLIB" && RANLIB=:
7275 test -z "$STRIP" && STRIP=:
7276 test -z "$ac_objext" && ac_objext=o
7277
7278 # Determine commands to create old-style static archives.
7279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7280 old_postinstall_cmds='chmod 644 $oldlib'
7281 old_postuninstall_cmds=
7282
7283 if test -n "$RANLIB"; then
7284   case $host_os in
7285   openbsd*)
7286     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7287     ;;
7288   *)
7289     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7290     ;;
7291   esac
7292   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7293 fi
7294
7295 for cc_temp in $compiler""; do
7296   case $cc_temp in
7297     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7298     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7299     \-*) ;;
7300     *) break;;
7301   esac
7302 done
7303 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7304
7305
7306 # Only perform the check for file, if the check method requires it
7307 case $deplibs_check_method in
7308 file_magic*)
7309   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7310     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7311 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   case $MAGIC_CMD in
7316 [\\/*] |  ?:[\\/]*)
7317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7318   ;;
7319 *)
7320   lt_save_MAGIC_CMD="$MAGIC_CMD"
7321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7323   for ac_dir in $ac_dummy; do
7324     IFS="$lt_save_ifs"
7325     test -z "$ac_dir" && ac_dir=.
7326     if test -f $ac_dir/${ac_tool_prefix}file; then
7327       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7328       if test -n "$file_magic_test_file"; then
7329         case $deplibs_check_method in
7330         "file_magic "*)
7331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7334             $EGREP "$file_magic_regex" > /dev/null; then
7335             :
7336           else
7337             cat <<EOF 1>&2
7338
7339 *** Warning: the command libtool uses to detect shared libraries,
7340 *** $file_magic_cmd, produces output that libtool cannot recognize.
7341 *** The result is that libtool may fail to recognize shared libraries
7342 *** as such.  This will affect the creation of libtool libraries that
7343 *** depend on shared libraries, but programs linked with such libtool
7344 *** libraries will work regardless of this problem.  Nevertheless, you
7345 *** may want to report the problem to your system manager and/or to
7346 *** bug-libtool@gnu.org
7347
7348 EOF
7349           fi ;;
7350         esac
7351       fi
7352       break
7353     fi
7354   done
7355   IFS="$lt_save_ifs"
7356   MAGIC_CMD="$lt_save_MAGIC_CMD"
7357   ;;
7358 esac
7359 fi
7360
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if test -n "$MAGIC_CMD"; then
7363   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7364 echo "${ECHO_T}$MAGIC_CMD" >&6
7365 else
7366   echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7368 fi
7369
7370 if test -z "$lt_cv_path_MAGIC_CMD"; then
7371   if test -n "$ac_tool_prefix"; then
7372     echo "$as_me:$LINENO: checking for file" >&5
7373 echo $ECHO_N "checking for file... $ECHO_C" >&6
7374 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   case $MAGIC_CMD in
7378 [\\/*] |  ?:[\\/]*)
7379   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7380   ;;
7381 *)
7382   lt_save_MAGIC_CMD="$MAGIC_CMD"
7383   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7385   for ac_dir in $ac_dummy; do
7386     IFS="$lt_save_ifs"
7387     test -z "$ac_dir" && ac_dir=.
7388     if test -f $ac_dir/file; then
7389       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7390       if test -n "$file_magic_test_file"; then
7391         case $deplibs_check_method in
7392         "file_magic "*)
7393           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7394           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7395           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7396             $EGREP "$file_magic_regex" > /dev/null; then
7397             :
7398           else
7399             cat <<EOF 1>&2
7400
7401 *** Warning: the command libtool uses to detect shared libraries,
7402 *** $file_magic_cmd, produces output that libtool cannot recognize.
7403 *** The result is that libtool may fail to recognize shared libraries
7404 *** as such.  This will affect the creation of libtool libraries that
7405 *** depend on shared libraries, but programs linked with such libtool
7406 *** libraries will work regardless of this problem.  Nevertheless, you
7407 *** may want to report the problem to your system manager and/or to
7408 *** bug-libtool@gnu.org
7409
7410 EOF
7411           fi ;;
7412         esac
7413       fi
7414       break
7415     fi
7416   done
7417   IFS="$lt_save_ifs"
7418   MAGIC_CMD="$lt_save_MAGIC_CMD"
7419   ;;
7420 esac
7421 fi
7422
7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424 if test -n "$MAGIC_CMD"; then
7425   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7426 echo "${ECHO_T}$MAGIC_CMD" >&6
7427 else
7428   echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430 fi
7431
7432   else
7433     MAGIC_CMD=:
7434   fi
7435 fi
7436
7437   fi
7438   ;;
7439 esac
7440
7441 enable_dlopen=yes
7442 enable_win32_dll=yes
7443
7444 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7445 if test "${enable_libtool_lock+set}" = set; then
7446   enableval="$enable_libtool_lock"
7447
7448 fi;
7449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7450
7451
7452 # Check whether --with-pic or --without-pic was given.
7453 if test "${with_pic+set}" = set; then
7454   withval="$with_pic"
7455   pic_mode="$withval"
7456 else
7457   pic_mode=default
7458 fi;
7459 test -z "$pic_mode" && pic_mode=default
7460
7461 # Use C for the default configuration in the libtool script
7462 tagname=
7463 lt_save_CC="$CC"
7464 ac_ext=c
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469
7470
7471 # Source file extension for C test sources.
7472 ac_ext=c
7473
7474 # Object file extension for compiled C test sources.
7475 objext=o
7476 objext=$objext
7477
7478 # Code to be used in simple compile tests
7479 lt_simple_compile_test_code="int some_variable = 0;\n"
7480
7481 # Code to be used in simple link tests
7482 lt_simple_link_test_code='int main(){return(0);}\n'
7483
7484
7485 # If no C compiler was specified, use CC.
7486 LTCC=${LTCC-"$CC"}
7487
7488 # Allow CC to be a program name with arguments.
7489 compiler=$CC
7490
7491
7492 # save warnings/boilerplate of simple test code
7493 ac_outfile=conftest.$ac_objext
7494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7496 _lt_compiler_boilerplate=`cat conftest.err`
7497 $rm conftest*
7498
7499 ac_outfile=conftest.$ac_objext
7500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7502 _lt_linker_boilerplate=`cat conftest.err`
7503 $rm conftest*
7504
7505
7506 #
7507 # Check for any special shared library compilation flags.
7508 #
7509 lt_prog_cc_shlib=
7510 if test "$GCC" = no; then
7511   case $host_os in
7512   sco3.2v5*)
7513     lt_prog_cc_shlib='-belf'
7514     ;;
7515   esac
7516 fi
7517 if test -n "$lt_prog_cc_shlib"; then
7518   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7519 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7520   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7521   else
7522     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7523 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7524     lt_cv_prog_cc_can_build_shared=no
7525   fi
7526 fi
7527
7528
7529 #
7530 # Check to make sure the static flag actually works.
7531 #
7532 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7533 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7534 if test "${lt_prog_compiler_static_works+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   lt_prog_compiler_static_works=no
7538    save_LDFLAGS="$LDFLAGS"
7539    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7540    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7541    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7542      # The linker can only warn and ignore the option if not recognized
7543      # So say no if there are warnings
7544      if test -s conftest.err; then
7545        # Append any errors to the config.log.
7546        cat conftest.err 1>&5
7547        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7548        $SED '/^$/d' conftest.err >conftest.er2
7549        if diff conftest.exp conftest.er2 >/dev/null; then
7550          lt_prog_compiler_static_works=yes
7551        fi
7552      else
7553        lt_prog_compiler_static_works=yes
7554      fi
7555    fi
7556    $rm conftest*
7557    LDFLAGS="$save_LDFLAGS"
7558
7559 fi
7560 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7561 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7562
7563 if test x"$lt_prog_compiler_static_works" = xyes; then
7564     :
7565 else
7566     lt_prog_compiler_static=
7567 fi
7568
7569
7570
7571
7572 lt_prog_compiler_no_builtin_flag=
7573
7574 if test "$GCC" = yes; then
7575   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7576
7577
7578 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7579 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7580 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583   lt_cv_prog_compiler_rtti_exceptions=no
7584   ac_outfile=conftest.$ac_objext
7585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586    lt_compiler_flag="-fno-rtti -fno-exceptions"
7587    # Insert the option either (1) after the last *FLAGS variable, or
7588    # (2) before a word containing "conftest.", or (3) at the end.
7589    # Note that $ac_compile itself does not contain backslashes and begins
7590    # with a dollar sign (not a hyphen), so the echo should work correctly.
7591    # The option is referenced via a variable to avoid confusing sed.
7592    lt_compile=`echo "$ac_compile" | $SED \
7593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595    -e 's:$: $lt_compiler_flag:'`
7596    (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597    (eval "$lt_compile" 2>conftest.err)
7598    ac_status=$?
7599    cat conftest.err >&5
7600    echo "$as_me:7600: \$? = $ac_status" >&5
7601    if (exit $ac_status) && test -s "$ac_outfile"; then
7602      # The compiler can only warn and ignore the option if not recognized
7603      # So say no if there are warnings other than the usual output.
7604      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7605      $SED '/^$/d' conftest.err >conftest.er2
7606      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7607        lt_cv_prog_compiler_rtti_exceptions=yes
7608      fi
7609    fi
7610    $rm conftest*
7611
7612 fi
7613 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7614 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7615
7616 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7617     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7618 else
7619     :
7620 fi
7621
7622 fi
7623
7624 lt_prog_compiler_wl=
7625 lt_prog_compiler_pic=
7626 lt_prog_compiler_static=
7627
7628 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7630
7631   if test "$GCC" = yes; then
7632     lt_prog_compiler_wl='-Wl,'
7633     lt_prog_compiler_static='-static'
7634
7635     case $host_os in
7636       aix*)
7637       # All AIX code is PIC.
7638       if test "$host_cpu" = ia64; then
7639         # AIX 5 now supports IA64 processor
7640         lt_prog_compiler_static='-Bstatic'
7641       fi
7642       ;;
7643
7644     amigaos*)
7645       # FIXME: we need at least 68020 code to build shared libraries, but
7646       # adding the `-m68020' flag to GCC prevents building anything better,
7647       # like `-m68040'.
7648       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7649       ;;
7650
7651     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7652       # PIC is the default for these OSes.
7653       ;;
7654
7655     mingw* | pw32* | os2*)
7656       # This hack is so that the source file can tell whether it is being
7657       # built for inclusion in a dll (and should export symbols for example).
7658       lt_prog_compiler_pic='-DDLL_EXPORT'
7659       ;;
7660
7661     darwin* | rhapsody*)
7662       # PIC is the default on this platform
7663       # Common symbols not allowed in MH_DYLIB files
7664       lt_prog_compiler_pic='-fno-common'
7665       ;;
7666
7667     msdosdjgpp*)
7668       # Just because we use GCC doesn't mean we suddenly get shared libraries
7669       # on systems that don't support them.
7670       lt_prog_compiler_can_build_shared=no
7671       enable_shared=no
7672       ;;
7673
7674     sysv4*MP*)
7675       if test -d /usr/nec; then
7676         lt_prog_compiler_pic=-Kconform_pic
7677       fi
7678       ;;
7679
7680     hpux*)
7681       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7682       # not for PA HP-UX.
7683       case $host_cpu in
7684       hppa*64*|ia64*)
7685         # +Z the default
7686         ;;
7687       *)
7688         lt_prog_compiler_pic='-fPIC'
7689         ;;
7690       esac
7691       ;;
7692
7693     *)
7694       lt_prog_compiler_pic='-fPIC'
7695       ;;
7696     esac
7697   else
7698     # PORTME Check for flag to pass linker flags through the system compiler.
7699     case $host_os in
7700     aix*)
7701       lt_prog_compiler_wl='-Wl,'
7702       if test "$host_cpu" = ia64; then
7703         # AIX 5 now supports IA64 processor
7704         lt_prog_compiler_static='-Bstatic'
7705       else
7706         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7707       fi
7708       ;;
7709       darwin*)
7710         # PIC is the default on this platform
7711         # Common symbols not allowed in MH_DYLIB files
7712        case $cc_basename in
7713          xlc*)
7714          lt_prog_compiler_pic='-qnocommon'
7715          lt_prog_compiler_wl='-Wl,'
7716          ;;
7717        esac
7718        ;;
7719
7720     mingw* | pw32* | os2*)
7721       # This hack is so that the source file can tell whether it is being
7722       # built for inclusion in a dll (and should export symbols for example).
7723       lt_prog_compiler_pic='-DDLL_EXPORT'
7724       ;;
7725
7726     hpux9* | hpux10* | hpux11*)
7727       lt_prog_compiler_wl='-Wl,'
7728       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7729       # not for PA HP-UX.
7730       case $host_cpu in
7731       hppa*64*|ia64*)
7732         # +Z the default
7733         ;;
7734       *)
7735         lt_prog_compiler_pic='+Z'
7736         ;;
7737       esac
7738       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7739       lt_prog_compiler_static='${wl}-a ${wl}archive'
7740       ;;
7741
7742     irix5* | irix6* | nonstopux*)
7743       lt_prog_compiler_wl='-Wl,'
7744       # PIC (with -KPIC) is the default.
7745       lt_prog_compiler_static='-non_shared'
7746       ;;
7747
7748     newsos6)
7749       lt_prog_compiler_pic='-KPIC'
7750       lt_prog_compiler_static='-Bstatic'
7751       ;;
7752
7753     linux*)
7754       case $cc_basename in
7755       icc* | ecc*)
7756         lt_prog_compiler_wl='-Wl,'
7757         lt_prog_compiler_pic='-KPIC'
7758         lt_prog_compiler_static='-static'
7759         ;;
7760       pgcc* | pgf77* | pgf90* | pgf95*)
7761         # Portland Group compilers (*not* the Pentium gcc compiler,
7762         # which looks to be a dead project)
7763         lt_prog_compiler_wl='-Wl,'
7764         lt_prog_compiler_pic='-fpic'
7765         lt_prog_compiler_static='-Bstatic'
7766         ;;
7767       ccc*)
7768         lt_prog_compiler_wl='-Wl,'
7769         # All Alpha code is PIC.
7770         lt_prog_compiler_static='-non_shared'
7771         ;;
7772       esac
7773       ;;
7774
7775     osf3* | osf4* | osf5*)
7776       lt_prog_compiler_wl='-Wl,'
7777       # All OSF/1 code is PIC.
7778       lt_prog_compiler_static='-non_shared'
7779       ;;
7780
7781     sco3.2v5*)
7782       lt_prog_compiler_pic='-Kpic'
7783       lt_prog_compiler_static='-dn'
7784       ;;
7785
7786     solaris*)
7787       lt_prog_compiler_pic='-KPIC'
7788       lt_prog_compiler_static='-Bstatic'
7789       case $cc_basename in
7790       f77* | f90* | f95*)
7791         lt_prog_compiler_wl='-Qoption ld ';;
7792       *)
7793         lt_prog_compiler_wl='-Wl,';;
7794       esac
7795       ;;
7796
7797     sunos4*)
7798       lt_prog_compiler_wl='-Qoption ld '
7799       lt_prog_compiler_pic='-PIC'
7800       lt_prog_compiler_static='-Bstatic'
7801       ;;
7802
7803     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7804       lt_prog_compiler_wl='-Wl,'
7805       lt_prog_compiler_pic='-KPIC'
7806       lt_prog_compiler_static='-Bstatic'
7807       ;;
7808
7809     sysv4*MP*)
7810       if test -d /usr/nec ;then
7811         lt_prog_compiler_pic='-Kconform_pic'
7812         lt_prog_compiler_static='-Bstatic'
7813       fi
7814       ;;
7815
7816     unicos*)
7817       lt_prog_compiler_wl='-Wl,'
7818       lt_prog_compiler_can_build_shared=no
7819       ;;
7820
7821     uts4*)
7822       lt_prog_compiler_pic='-pic'
7823       lt_prog_compiler_static='-Bstatic'
7824       ;;
7825
7826     *)
7827       lt_prog_compiler_can_build_shared=no
7828       ;;
7829     esac
7830   fi
7831
7832 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7833 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7834
7835 #
7836 # Check to make sure the PIC flag actually works.
7837 #
7838 if test -n "$lt_prog_compiler_pic"; then
7839
7840 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7841 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7842 if test "${lt_prog_compiler_pic_works+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   lt_prog_compiler_pic_works=no
7846   ac_outfile=conftest.$ac_objext
7847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7848    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7849    # Insert the option either (1) after the last *FLAGS variable, or
7850    # (2) before a word containing "conftest.", or (3) at the end.
7851    # Note that $ac_compile itself does not contain backslashes and begins
7852    # with a dollar sign (not a hyphen), so the echo should work correctly.
7853    # The option is referenced via a variable to avoid confusing sed.
7854    lt_compile=`echo "$ac_compile" | $SED \
7855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857    -e 's:$: $lt_compiler_flag:'`
7858    (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859    (eval "$lt_compile" 2>conftest.err)
7860    ac_status=$?
7861    cat conftest.err >&5
7862    echo "$as_me:7862: \$? = $ac_status" >&5
7863    if (exit $ac_status) && test -s "$ac_outfile"; then
7864      # The compiler can only warn and ignore the option if not recognized
7865      # So say no if there are warnings other than the usual output.
7866      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7867      $SED '/^$/d' conftest.err >conftest.er2
7868      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7869        lt_prog_compiler_pic_works=yes
7870      fi
7871    fi
7872    $rm conftest*
7873
7874 fi
7875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7876 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7877
7878 if test x"$lt_prog_compiler_pic_works" = xyes; then
7879     case $lt_prog_compiler_pic in
7880      "" | " "*) ;;
7881      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7882      esac
7883 else
7884     lt_prog_compiler_pic=
7885      lt_prog_compiler_can_build_shared=no
7886 fi
7887
7888 fi
7889 case $host_os in
7890   # For platforms which do not support PIC, -DPIC is meaningless:
7891   *djgpp*)
7892     lt_prog_compiler_pic=
7893     ;;
7894   *)
7895     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7896     ;;
7897 esac
7898
7899 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7900 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7901 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   lt_cv_prog_compiler_c_o=no
7905    $rm -r conftest 2>/dev/null
7906    mkdir conftest
7907    cd conftest
7908    mkdir out
7909    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7910
7911    lt_compiler_flag="-o out/conftest2.$ac_objext"
7912    # Insert the option either (1) after the last *FLAGS variable, or
7913    # (2) before a word containing "conftest.", or (3) at the end.
7914    # Note that $ac_compile itself does not contain backslashes and begins
7915    # with a dollar sign (not a hyphen), so the echo should work correctly.
7916    lt_compile=`echo "$ac_compile" | $SED \
7917    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7918    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7919    -e 's:$: $lt_compiler_flag:'`
7920    (eval echo "\"\$as_me:7920: $lt_compile\"" >&5)
7921    (eval "$lt_compile" 2>out/conftest.err)
7922    ac_status=$?
7923    cat out/conftest.err >&5
7924    echo "$as_me:7924: \$? = $ac_status" >&5
7925    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7926    then
7927      # The compiler can only warn and ignore the option if not recognized
7928      # So say no if there are warnings
7929      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7930      $SED '/^$/d' out/conftest.err >out/conftest.er2
7931      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7932        lt_cv_prog_compiler_c_o=yes
7933      fi
7934    fi
7935    chmod u+w . 2>&5
7936    $rm conftest*
7937    # SGI C++ compiler will create directory out/ii_files/ for
7938    # template instantiation
7939    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7940    $rm out/* && rmdir out
7941    cd ..
7942    rmdir conftest
7943    $rm conftest*
7944
7945 fi
7946 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7947 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7948
7949
7950 hard_links="nottested"
7951 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7952   # do not overwrite the value of need_locks provided by the user
7953   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7955   hard_links=yes
7956   $rm conftest*
7957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7958   touch conftest.a
7959   ln conftest.a conftest.b 2>&5 || hard_links=no
7960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7961   echo "$as_me:$LINENO: result: $hard_links" >&5
7962 echo "${ECHO_T}$hard_links" >&6
7963   if test "$hard_links" = no; then
7964     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7966     need_locks=warn
7967   fi
7968 else
7969   need_locks=no
7970 fi
7971
7972 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7973 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7974
7975   runpath_var=
7976   allow_undefined_flag=
7977   enable_shared_with_static_runtimes=no
7978   archive_cmds=
7979   archive_expsym_cmds=
7980   old_archive_From_new_cmds=
7981   old_archive_from_expsyms_cmds=
7982   export_dynamic_flag_spec=
7983   whole_archive_flag_spec=
7984   thread_safe_flag_spec=
7985   hardcode_libdir_flag_spec=
7986   hardcode_libdir_flag_spec_ld=
7987   hardcode_libdir_separator=
7988   hardcode_direct=no
7989   hardcode_minus_L=no
7990   hardcode_shlibpath_var=unsupported
7991   link_all_deplibs=unknown
7992   hardcode_automatic=no
7993   module_cmds=
7994   module_expsym_cmds=
7995   always_export_symbols=no
7996   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7997   # include_expsyms should be a list of space-separated symbols to be *always*
7998   # included in the symbol list
7999   include_expsyms=
8000   # exclude_expsyms can be an extended regexp of symbols to exclude
8001   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8002   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8003   # as well as any symbol that contains `d'.
8004   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8005   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8006   # platforms (ab)use it in PIC code, but their linkers get confused if
8007   # the symbol is explicitly referenced.  Since portable code cannot
8008   # rely on this symbol name, it's probably fine to never include it in
8009   # preloaded symbol tables.
8010   extract_expsyms_cmds=
8011   # Just being paranoid about ensuring that cc_basename is set.
8012   for cc_temp in $compiler""; do
8013   case $cc_temp in
8014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8016     \-*) ;;
8017     *) break;;
8018   esac
8019 done
8020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8021
8022   case $host_os in
8023   cygwin* | mingw* | pw32*)
8024     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8025     # When not using gcc, we currently assume that we are using
8026     # Microsoft Visual C++.
8027     if test "$GCC" != yes; then
8028       with_gnu_ld=no
8029     fi
8030     ;;
8031   openbsd*)
8032     with_gnu_ld=no
8033     ;;
8034   esac
8035
8036   ld_shlibs=yes
8037   if test "$with_gnu_ld" = yes; then
8038     # If archive_cmds runs LD, not CC, wlarc should be empty
8039     wlarc='${wl}'
8040
8041     # Set some defaults for GNU ld with shared library support. These
8042     # are reset later if shared libraries are not supported. Putting them
8043     # here allows them to be overridden if necessary.
8044     runpath_var=LD_RUN_PATH
8045     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8046     export_dynamic_flag_spec='${wl}--export-dynamic'
8047     # ancient GNU ld didn't support --whole-archive et. al.
8048     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8049         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8050       else
8051         whole_archive_flag_spec=
8052     fi
8053     supports_anon_versioning=no
8054     case `$LD -v 2>/dev/null` in
8055       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8056       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8057       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8058       *\ 2.11.*) ;; # other 2.11 versions
8059       *) supports_anon_versioning=yes ;;
8060     esac
8061
8062     # See if GNU ld supports shared libraries.
8063     case $host_os in
8064     aix3* | aix4* | aix5*)
8065       # On AIX/PPC, the GNU linker is very broken
8066       if test "$host_cpu" != ia64; then
8067         ld_shlibs=no
8068         cat <<EOF 1>&2
8069
8070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8071 *** to be unable to reliably create shared libraries on AIX.
8072 *** Therefore, libtool is disabling shared libraries support.  If you
8073 *** really care for shared libraries, you may want to modify your PATH
8074 *** so that a non-GNU linker is found, and then restart.
8075
8076 EOF
8077       fi
8078       ;;
8079
8080     amigaos*)
8081       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)'
8082       hardcode_libdir_flag_spec='-L$libdir'
8083       hardcode_minus_L=yes
8084
8085       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8086       # that the semantics of dynamic libraries on AmigaOS, at least up
8087       # to version 4, is to share data among multiple programs linked
8088       # with the same dynamic library.  Since this doesn't match the
8089       # behavior of shared libraries on other platforms, we can't use
8090       # them.
8091       ld_shlibs=no
8092       ;;
8093
8094     beos*)
8095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8096         allow_undefined_flag=unsupported
8097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8098         # support --undefined.  This deserves some investigation.  FIXME
8099         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8100       else
8101         ld_shlibs=no
8102       fi
8103       ;;
8104
8105     cygwin* | mingw* | pw32*)
8106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8107       # as there is no search path for DLLs.
8108       hardcode_libdir_flag_spec='-L$libdir'
8109       allow_undefined_flag=unsupported
8110       always_export_symbols=no
8111       enable_shared_with_static_runtimes=yes
8112       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8113
8114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8115         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8116         # If the export-symbols file already is a .def file (1st line
8117         # is EXPORTS), use it as is; otherwise, prepend...
8118         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8119           cp $export_symbols $output_objdir/$soname.def;
8120         else
8121           echo EXPORTS > $output_objdir/$soname.def;
8122           cat $export_symbols >> $output_objdir/$soname.def;
8123         fi~
8124         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8125       else
8126         ld_shlibs=no
8127       fi
8128       ;;
8129
8130     linux*)
8131       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8132         tmp_addflag=
8133         case $cc_basename,$host_cpu in
8134         pgcc*)                          # Portland Group C compiler
8135           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'
8136           tmp_addflag=' $pic_flag'
8137           ;;
8138         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8139           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'
8140           tmp_addflag=' $pic_flag -Mnomain' ;;
8141         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8142           tmp_addflag=' -i_dynamic' ;;
8143         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8144           tmp_addflag=' -i_dynamic -nofor_main' ;;
8145         ifc* | ifort*)                  # Intel Fortran compiler
8146           tmp_addflag=' -nofor_main' ;;
8147         esac
8148         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149
8150         if test $supports_anon_versioning = yes; then
8151           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8152   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8153   $echo "local: *; };" >> $output_objdir/$libname.ver~
8154           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8155         fi
8156       else
8157         ld_shlibs=no
8158       fi
8159       ;;
8160
8161     netbsd*)
8162       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8163         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8164         wlarc=
8165       else
8166         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8168       fi
8169       ;;
8170
8171     solaris* | sysv5*)
8172       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8173         ld_shlibs=no
8174         cat <<EOF 1>&2
8175
8176 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8177 *** create shared libraries on Solaris systems.  Therefore, libtool
8178 *** is disabling shared libraries support.  We urge you to upgrade GNU
8179 *** binutils to release 2.9.1 or newer.  Another option is to modify
8180 *** your PATH or compiler configuration so that the native linker is
8181 *** used, and then restart.
8182
8183 EOF
8184       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8187       else
8188         ld_shlibs=no
8189       fi
8190       ;;
8191
8192     sunos4*)
8193       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8194       wlarc=
8195       hardcode_direct=yes
8196       hardcode_shlibpath_var=no
8197       ;;
8198
8199     *)
8200       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8201         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8202         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8203       else
8204         ld_shlibs=no
8205       fi
8206       ;;
8207     esac
8208
8209     if test "$ld_shlibs" = no; then
8210       runpath_var=
8211       hardcode_libdir_flag_spec=
8212       export_dynamic_flag_spec=
8213       whole_archive_flag_spec=
8214     fi
8215   else
8216     # PORTME fill in a description of your system's linker (not GNU ld)
8217     case $host_os in
8218     aix3*)
8219       allow_undefined_flag=unsupported
8220       always_export_symbols=yes
8221       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'
8222       # Note: this linker hardcodes the directories in LIBPATH if there
8223       # are no directories specified by -L.
8224       hardcode_minus_L=yes
8225       if test "$GCC" = yes && test -z "$link_static_flag"; then
8226         # Neither direct hardcoding nor static linking is supported with a
8227         # broken collect2.
8228         hardcode_direct=unsupported
8229       fi
8230       ;;
8231
8232     aix4* | aix5*)
8233       if test "$host_cpu" = ia64; then
8234         # On IA64, the linker does run time linking by default, so we don't
8235         # have to do anything special.
8236         aix_use_runtimelinking=no
8237         exp_sym_flag='-Bexport'
8238         no_entry_flag=""
8239       else
8240         # If we're using GNU nm, then we don't want the "-C" option.
8241         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8242         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8243           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'
8244         else
8245           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'
8246         fi
8247         aix_use_runtimelinking=no
8248
8249         # Test if we are trying to use run time linking or normal
8250         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8251         # need to do runtime linking.
8252         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8253           for ld_flag in $LDFLAGS; do
8254           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8255             aix_use_runtimelinking=yes
8256             break
8257           fi
8258           done
8259         esac
8260
8261         exp_sym_flag='-bexport'
8262         no_entry_flag='-bnoentry'
8263       fi
8264
8265       # When large executables or shared objects are built, AIX ld can
8266       # have problems creating the table of contents.  If linking a library
8267       # or program results in "error TOC overflow" add -mminimal-toc to
8268       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8269       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8270
8271       archive_cmds=''
8272       hardcode_direct=yes
8273       hardcode_libdir_separator=':'
8274       link_all_deplibs=yes
8275
8276       if test "$GCC" = yes; then
8277         case $host_os in aix4.[012]|aix4.[012].*)
8278         # We only want to do this on AIX 4.2 and lower, the check
8279         # below for broken collect2 doesn't work under 4.3+
8280           collect2name=`${CC} -print-prog-name=collect2`
8281           if test -f "$collect2name" && \
8282            strings "$collect2name" | grep resolve_lib_name >/dev/null
8283           then
8284           # We have reworked collect2
8285           hardcode_direct=yes
8286           else
8287           # We have old collect2
8288           hardcode_direct=unsupported
8289           # It fails to find uninstalled libraries when the uninstalled
8290           # path is not listed in the libpath.  Setting hardcode_minus_L
8291           # to unsupported forces relinking
8292           hardcode_minus_L=yes
8293           hardcode_libdir_flag_spec='-L$libdir'
8294           hardcode_libdir_separator=
8295           fi
8296         esac
8297         shared_flag='-shared'
8298         if test "$aix_use_runtimelinking" = yes; then
8299           shared_flag="$shared_flag "'${wl}-G'
8300         fi
8301       else
8302         # not using gcc
8303         if test "$host_cpu" = ia64; then
8304         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8305         # chokes on -Wl,-G. The following line is correct:
8306           shared_flag='-G'
8307         else
8308         if test "$aix_use_runtimelinking" = yes; then
8309             shared_flag='${wl}-G'
8310           else
8311             shared_flag='${wl}-bM:SRE'
8312         fi
8313         fi
8314       fi
8315
8316       # It seems that -bexpall does not export symbols beginning with
8317       # underscore (_), so it is better to generate a list of symbols to export.
8318       always_export_symbols=yes
8319       if test "$aix_use_runtimelinking" = yes; then
8320         # Warning - without using the other runtime loading flags (-brtl),
8321         # -berok will link without error, but may produce a broken library.
8322         allow_undefined_flag='-berok'
8323        # Determine the default libpath from the value encoded in an empty executable.
8324        cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h.  */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h.  */
8330
8331 int
8332 main ()
8333 {
8334
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341   (eval $ac_link) 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -z "$ac_c_werror_flag"
8349                          || test ! -s conftest.err'
8350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; } &&
8355          { ac_try='test -s conftest$ac_exeext'
8356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357   (eval $ac_try) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); }; }; then
8361
8362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8363 }'`
8364 # Check for a 64-bit object if we didn't find anything.
8365 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; }
8366 }'`; fi
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 fi
8372 rm -f conftest.err conftest.$ac_objext \
8373       conftest$ac_exeext conftest.$ac_ext
8374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8375
8376        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8377         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"
8378        else
8379         if test "$host_cpu" = ia64; then
8380           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8381           allow_undefined_flag="-z nodefs"
8382           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"
8383         else
8384          # Determine the default libpath from the value encoded in an empty executable.
8385          cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h.  */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h.  */
8391
8392 int
8393 main ()
8394 {
8395
8396   ;
8397   return 0;
8398 }
8399 _ACEOF
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402   (eval $ac_link) 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -z "$ac_c_werror_flag"
8410                          || test ! -s conftest.err'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest$ac_exeext'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422
8423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8424 }'`
8425 # Check for a 64-bit object if we didn't find anything.
8426 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; }
8427 }'`; fi
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 fi
8433 rm -f conftest.err conftest.$ac_objext \
8434       conftest$ac_exeext conftest.$ac_ext
8435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8436
8437          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8438           # Warning - without using the other run time loading flags,
8439           # -berok will link without error, but may produce a broken library.
8440           no_undefined_flag=' ${wl}-bernotok'
8441           allow_undefined_flag=' ${wl}-berok'
8442           # -bexpall does not export symbols beginning with underscore (_)
8443           always_export_symbols=yes
8444           # Exported symbols can be pulled into shared objects from archives
8445           whole_archive_flag_spec=' '
8446           archive_cmds_need_lc=yes
8447           # This is similar to how AIX traditionally builds its shared libraries.
8448           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'
8449         fi
8450       fi
8451       ;;
8452
8453     amigaos*)
8454       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)'
8455       hardcode_libdir_flag_spec='-L$libdir'
8456       hardcode_minus_L=yes
8457       # see comment about different semantics on the GNU ld section
8458       ld_shlibs=no
8459       ;;
8460
8461     bsdi[45]*)
8462       export_dynamic_flag_spec=-rdynamic
8463       ;;
8464
8465     cygwin* | mingw* | pw32*)
8466       # When not using gcc, we currently assume that we are using
8467       # Microsoft Visual C++.
8468       # hardcode_libdir_flag_spec is actually meaningless, as there is
8469       # no search path for DLLs.
8470       hardcode_libdir_flag_spec=' '
8471       allow_undefined_flag=unsupported
8472       # Tell ltmain to make .lib files, not .a files.
8473       libext=lib
8474       # Tell ltmain to make .dll files, not .so files.
8475       shrext_cmds=".dll"
8476       # FIXME: Setting linknames here is a bad hack.
8477       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8478       # The linker will automatically build a .lib file if we build a DLL.
8479       old_archive_From_new_cmds='true'
8480       # FIXME: Should let the user specify the lib program.
8481       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8482       fix_srcfile_path='`cygpath -w "$srcfile"`'
8483       enable_shared_with_static_runtimes=yes
8484       ;;
8485
8486     darwin* | rhapsody*)
8487       case $host_os in
8488         rhapsody* | darwin1.[012])
8489          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8490          ;;
8491        *) # Darwin 1.3 on
8492          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8493            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8494          else
8495            case ${MACOSX_DEPLOYMENT_TARGET} in
8496              10.[012])
8497                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8498                ;;
8499              10.*)
8500                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8501                ;;
8502            esac
8503          fi
8504          ;;
8505       esac
8506       archive_cmds_need_lc=no
8507       hardcode_direct=no
8508       hardcode_automatic=yes
8509       hardcode_shlibpath_var=unsupported
8510       whole_archive_flag_spec=''
8511       link_all_deplibs=yes
8512     if test "$GCC" = yes ; then
8513         output_verbose_link_cmd='echo'
8514         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8515       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8516       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8517       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}'
8518       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}'
8519     else
8520       case $cc_basename in
8521         xlc*)
8522          output_verbose_link_cmd='echo'
8523          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8524          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8525           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8526          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}'
8527           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}'
8528           ;;
8529        *)
8530          ld_shlibs=no
8531           ;;
8532       esac
8533     fi
8534       ;;
8535
8536     dgux*)
8537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538       hardcode_libdir_flag_spec='-L$libdir'
8539       hardcode_shlibpath_var=no
8540       ;;
8541
8542     freebsd1*)
8543       ld_shlibs=no
8544       ;;
8545
8546     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8547     # support.  Future versions do this automatically, but an explicit c++rt0.o
8548     # does not break anything, and helps significantly (at the cost of a little
8549     # extra space).
8550     freebsd2.2*)
8551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8552       hardcode_libdir_flag_spec='-R$libdir'
8553       hardcode_direct=yes
8554       hardcode_shlibpath_var=no
8555       ;;
8556
8557     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8558     freebsd2*)
8559       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8560       hardcode_direct=yes
8561       hardcode_minus_L=yes
8562       hardcode_shlibpath_var=no
8563       ;;
8564
8565     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8566     freebsd* | kfreebsd*-gnu | dragonfly*)
8567       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8568       hardcode_libdir_flag_spec='-R$libdir'
8569       hardcode_direct=yes
8570       hardcode_shlibpath_var=no
8571       ;;
8572
8573     hpux9*)
8574       if test "$GCC" = yes; then
8575         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'
8576       else
8577         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'
8578       fi
8579       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580       hardcode_libdir_separator=:
8581       hardcode_direct=yes
8582
8583       # hardcode_minus_L: Not really in the search PATH,
8584       # but as the default location of the library.
8585       hardcode_minus_L=yes
8586       export_dynamic_flag_spec='${wl}-E'
8587       ;;
8588
8589     hpux10* | hpux11*)
8590       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8591         case $host_cpu in
8592         hppa*64*|ia64*)
8593           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594           ;;
8595         *)
8596           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8597           ;;
8598         esac
8599       else
8600         case $host_cpu in
8601         hppa*64*|ia64*)
8602           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8603           ;;
8604         *)
8605           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8606           ;;
8607         esac
8608       fi
8609       if test "$with_gnu_ld" = no; then
8610         case $host_cpu in
8611         hppa*64*)
8612           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8613           hardcode_libdir_flag_spec_ld='+b $libdir'
8614           hardcode_libdir_separator=:
8615           hardcode_direct=no
8616           hardcode_shlibpath_var=no
8617           ;;
8618         ia64*)
8619           hardcode_libdir_flag_spec='-L$libdir'
8620           hardcode_direct=no
8621           hardcode_shlibpath_var=no
8622
8623           # hardcode_minus_L: Not really in the search PATH,
8624           # but as the default location of the library.
8625           hardcode_minus_L=yes
8626           ;;
8627         *)
8628           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8629           hardcode_libdir_separator=:
8630           hardcode_direct=yes
8631           export_dynamic_flag_spec='${wl}-E'
8632
8633           # hardcode_minus_L: Not really in the search PATH,
8634           # but as the default location of the library.
8635           hardcode_minus_L=yes
8636           ;;
8637         esac
8638       fi
8639       ;;
8640
8641     irix5* | irix6* | nonstopux*)
8642       if test "$GCC" = yes; then
8643         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'
8644       else
8645         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'
8646         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8647       fi
8648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649       hardcode_libdir_separator=:
8650       link_all_deplibs=yes
8651       ;;
8652
8653     netbsd*)
8654       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8655         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8656       else
8657         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8658       fi
8659       hardcode_libdir_flag_spec='-R$libdir'
8660       hardcode_direct=yes
8661       hardcode_shlibpath_var=no
8662       ;;
8663
8664     newsos6)
8665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666       hardcode_direct=yes
8667       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668       hardcode_libdir_separator=:
8669       hardcode_shlibpath_var=no
8670       ;;
8671
8672     openbsd*)
8673       hardcode_direct=yes
8674       hardcode_shlibpath_var=no
8675       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8676         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8678         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679         export_dynamic_flag_spec='${wl}-E'
8680       else
8681        case $host_os in
8682          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8683            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684            hardcode_libdir_flag_spec='-R$libdir'
8685            ;;
8686          *)
8687            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8688            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8689            ;;
8690        esac
8691       fi
8692       ;;
8693
8694     os2*)
8695       hardcode_libdir_flag_spec='-L$libdir'
8696       hardcode_minus_L=yes
8697       allow_undefined_flag=unsupported
8698       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'
8699       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8700       ;;
8701
8702     osf3*)
8703       if test "$GCC" = yes; then
8704         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8705         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'
8706       else
8707         allow_undefined_flag=' -expect_unresolved \*'
8708         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'
8709       fi
8710       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711       hardcode_libdir_separator=:
8712       ;;
8713
8714     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8715       if test "$GCC" = yes; then
8716         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8717         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'
8718         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719       else
8720         allow_undefined_flag=' -expect_unresolved \*'
8721         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'
8722         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8723         $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'
8724
8725         # Both c and cxx compiler support -rpath directly
8726         hardcode_libdir_flag_spec='-rpath $libdir'
8727       fi
8728       hardcode_libdir_separator=:
8729       ;;
8730
8731     sco3.2v5*)
8732       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733       hardcode_shlibpath_var=no
8734       export_dynamic_flag_spec='${wl}-Bexport'
8735       runpath_var=LD_RUN_PATH
8736       hardcode_runpath_var=yes
8737       ;;
8738
8739     solaris*)
8740       no_undefined_flag=' -z text'
8741       if test "$GCC" = yes; then
8742         wlarc='${wl}'
8743         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8744         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8745           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8746       else
8747         wlarc=''
8748         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8750         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8751       fi
8752       hardcode_libdir_flag_spec='-R$libdir'
8753       hardcode_shlibpath_var=no
8754       case $host_os in
8755       solaris2.[0-5] | solaris2.[0-5].*) ;;
8756       *)
8757         # The compiler driver will combine linker options so we
8758         # cannot just pass the convience library names through
8759         # without $wl, iff we do not link with $LD.
8760         # Luckily, gcc supports the same syntax we need for Sun Studio.
8761         # Supported since Solaris 2.6 (maybe 2.5.1?)
8762         case $wlarc in
8763         '')
8764           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8765         *)
8766           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' ;;
8767         esac ;;
8768       esac
8769       link_all_deplibs=yes
8770       ;;
8771
8772     sunos4*)
8773       if test "x$host_vendor" = xsequent; then
8774         # Use $CC to link under sequent, because it throws in some extra .o
8775         # files that make .init and .fini sections work.
8776         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8777       else
8778         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8779       fi
8780       hardcode_libdir_flag_spec='-L$libdir'
8781       hardcode_direct=yes
8782       hardcode_minus_L=yes
8783       hardcode_shlibpath_var=no
8784       ;;
8785
8786     sysv4)
8787       case $host_vendor in
8788         sni)
8789           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790           hardcode_direct=yes # is this really true???
8791         ;;
8792         siemens)
8793           ## LD is ld it makes a PLAMLIB
8794           ## CC just makes a GrossModule.
8795           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8796           reload_cmds='$CC -r -o $output$reload_objs'
8797           hardcode_direct=no
8798         ;;
8799         motorola)
8800           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8802         ;;
8803       esac
8804       runpath_var='LD_RUN_PATH'
8805       hardcode_shlibpath_var=no
8806       ;;
8807
8808     sysv4.3*)
8809       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810       hardcode_shlibpath_var=no
8811       export_dynamic_flag_spec='-Bexport'
8812       ;;
8813
8814     sysv4*MP*)
8815       if test -d /usr/nec; then
8816         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817         hardcode_shlibpath_var=no
8818         runpath_var=LD_RUN_PATH
8819         hardcode_runpath_var=yes
8820         ld_shlibs=yes
8821       fi
8822       ;;
8823
8824     sysv4.2uw2*)
8825       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8826       hardcode_direct=yes
8827       hardcode_minus_L=no
8828       hardcode_shlibpath_var=no
8829       hardcode_runpath_var=yes
8830       runpath_var=LD_RUN_PATH
8831       ;;
8832
8833    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8834       no_undefined_flag='${wl}-z ${wl}text'
8835       if test "$GCC" = yes; then
8836         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837       else
8838         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839       fi
8840       runpath_var='LD_RUN_PATH'
8841       hardcode_shlibpath_var=no
8842       ;;
8843
8844     sysv5*)
8845       no_undefined_flag=' -z text'
8846       # $CC -shared without GNU ld will not create a library from C++
8847       # object files and a static libstdc++, better avoid it by now
8848       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8851       hardcode_libdir_flag_spec=
8852       hardcode_shlibpath_var=no
8853       runpath_var='LD_RUN_PATH'
8854       ;;
8855
8856     uts4*)
8857       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858       hardcode_libdir_flag_spec='-L$libdir'
8859       hardcode_shlibpath_var=no
8860       ;;
8861
8862     *)
8863       ld_shlibs=no
8864       ;;
8865     esac
8866   fi
8867
8868 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8869 echo "${ECHO_T}$ld_shlibs" >&6
8870 test "$ld_shlibs" = no && can_build_shared=no
8871
8872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8873 if test "$GCC" = yes; then
8874   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8875 fi
8876
8877 #
8878 # Do we need to explicitly link libc?
8879 #
8880 case "x$archive_cmds_need_lc" in
8881 x|xyes)
8882   # Assume -lc should be added
8883   archive_cmds_need_lc=yes
8884
8885   if test "$enable_shared" = yes && test "$GCC" = yes; then
8886     case $archive_cmds in
8887     *'~'*)
8888       # FIXME: we may have to deal with multi-command sequences.
8889       ;;
8890     '$CC '*)
8891       # Test whether the compiler implicitly links with -lc since on some
8892       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8893       # to ld, don't add -lc before -lgcc.
8894       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8895 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8896       $rm conftest*
8897       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8898
8899       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900   (eval $ac_compile) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } 2>conftest.err; then
8904         soname=conftest
8905         lib=conftest
8906         libobjs=conftest.$ac_objext
8907         deplibs=
8908         wl=$lt_prog_compiler_wl
8909         compiler_flags=-v
8910         linker_flags=-v
8911         verstring=
8912         output_objdir=.
8913         libname=conftest
8914         lt_save_allow_undefined_flag=$allow_undefined_flag
8915         allow_undefined_flag=
8916         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8917   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }
8921         then
8922           archive_cmds_need_lc=no
8923         else
8924           archive_cmds_need_lc=yes
8925         fi
8926         allow_undefined_flag=$lt_save_allow_undefined_flag
8927       else
8928         cat conftest.err 1>&5
8929       fi
8930       $rm conftest*
8931       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8932 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8933       ;;
8934     esac
8935   fi
8936   ;;
8937 esac
8938
8939 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8941 library_names_spec=
8942 libname_spec='lib$name'
8943 soname_spec=
8944 shrext_cmds=".so"
8945 postinstall_cmds=
8946 postuninstall_cmds=
8947 finish_cmds=
8948 finish_eval=
8949 shlibpath_var=
8950 shlibpath_overrides_runpath=unknown
8951 version_type=none
8952 dynamic_linker="$host_os ld.so"
8953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8954 if test "$GCC" = yes; then
8955   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8957     # if the path contains ";" then we assume it to be the separator
8958     # otherwise default to the standard path separator (i.e. ":") - it is
8959     # assumed that no part of a normal pathname contains ";" but that should
8960     # okay in the real world where ";" in dirpaths is itself problematic.
8961     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8962   else
8963     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8964   fi
8965 else
8966   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8967 fi
8968 need_lib_prefix=unknown
8969 hardcode_into_libs=no
8970
8971 # when you set need_version to no, make sure it does not cause -set_version
8972 # flags to be left without arguments
8973 need_version=unknown
8974
8975 case $host_os in
8976 aix3*)
8977   version_type=linux
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8979   shlibpath_var=LIBPATH
8980
8981   # AIX 3 has no versioning support, so we append a major version to the name.
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   ;;
8984
8985 aix4* | aix5*)
8986   version_type=linux
8987   need_lib_prefix=no
8988   need_version=no
8989   hardcode_into_libs=yes
8990   if test "$host_cpu" = ia64; then
8991     # AIX 5 supports IA64
8992     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8993     shlibpath_var=LD_LIBRARY_PATH
8994   else
8995     # With GCC up to 2.95.x, collect2 would create an import file
8996     # for dependence libraries.  The import file would start with
8997     # the line `#! .'.  This would cause the generated library to
8998     # depend on `.', always an invalid library.  This was fixed in
8999     # development snapshots of GCC prior to 3.0.
9000     case $host_os in
9001       aix4 | aix4.[01] | aix4.[01].*)
9002       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9003            echo ' yes '
9004            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9005         :
9006       else
9007         can_build_shared=no
9008       fi
9009       ;;
9010     esac
9011     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9012     # soname into executable. Probably we can add versioning support to
9013     # collect2, so additional links can be useful in future.
9014     if test "$aix_use_runtimelinking" = yes; then
9015       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9016       # instead of lib<name>.a to let people know that these are not
9017       # typical AIX shared libraries.
9018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019     else
9020       # We preserve .a as extension for shared libraries through AIX4.2
9021       # and later when we are not doing run time linking.
9022       library_names_spec='${libname}${release}.a $libname.a'
9023       soname_spec='${libname}${release}${shared_ext}$major'
9024     fi
9025     shlibpath_var=LIBPATH
9026   fi
9027   ;;
9028
9029 amigaos*)
9030   library_names_spec='$libname.ixlibrary $libname.a'
9031   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9032   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'
9033   ;;
9034
9035 beos*)
9036   library_names_spec='${libname}${shared_ext}'
9037   dynamic_linker="$host_os ld.so"
9038   shlibpath_var=LIBRARY_PATH
9039   ;;
9040
9041 bsdi[45]*)
9042   version_type=linux
9043   need_version=no
9044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045   soname_spec='${libname}${release}${shared_ext}$major'
9046   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9047   shlibpath_var=LD_LIBRARY_PATH
9048   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9049   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9050   # the default ld.so.conf also contains /usr/contrib/lib and
9051   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9052   # libtool to hard-code these into programs
9053   ;;
9054
9055 cygwin* | mingw* | pw32*)
9056   version_type=windows
9057   shrext_cmds=".dll"
9058   need_version=no
9059   need_lib_prefix=no
9060
9061   case $GCC,$host_os in
9062   yes,cygwin* | yes,mingw* | yes,pw32*)
9063     library_names_spec='$libname.dll.a'
9064     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9065     postinstall_cmds='base_file=`basename \${file}`~
9066       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9067       dldir=$destdir/`dirname \$dlpath`~
9068       test -d \$dldir || mkdir -p \$dldir~
9069       $install_prog $dir/$dlname \$dldir/$dlname~
9070       chmod a+x \$dldir/$dlname'
9071     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9072       dlpath=$dir/\$dldll~
9073        $rm \$dlpath'
9074     shlibpath_overrides_runpath=yes
9075
9076     case $host_os in
9077     cygwin*)
9078       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9079       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9080       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9081       ;;
9082     mingw*)
9083       # MinGW DLLs use traditional 'lib' prefix
9084       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9085       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9086       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9087         # It is most probably a Windows format PATH printed by
9088         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9089         # path with ; separators, and with drive letters. We can handle the
9090         # drive letters (cygwin fileutils understands them), so leave them,
9091         # especially as we might pass files found there to a mingw objdump,
9092         # which wouldn't understand a cygwinified path. Ahh.
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       ;;
9098     pw32*)
9099       # pw32 DLLs use 'pw' prefix rather than 'lib'
9100       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9101       ;;
9102     esac
9103     ;;
9104
9105   *)
9106     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9107     ;;
9108   esac
9109   dynamic_linker='Win32 ld.exe'
9110   # FIXME: first we should search . and the directory the executable is in
9111   shlibpath_var=PATH
9112   ;;
9113
9114 darwin* | rhapsody*)
9115   dynamic_linker="$host_os dyld"
9116   version_type=darwin
9117   need_lib_prefix=no
9118   need_version=no
9119   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9120   soname_spec='${libname}${release}${major}$shared_ext'
9121   shlibpath_overrides_runpath=yes
9122   shlibpath_var=DYLD_LIBRARY_PATH
9123   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9124   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9125   if test "$GCC" = yes; then
9126     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"`
9127   else
9128     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9129   fi
9130   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9131   ;;
9132
9133 dgux*)
9134   version_type=linux
9135   need_lib_prefix=no
9136   need_version=no
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   shlibpath_var=LD_LIBRARY_PATH
9140   ;;
9141
9142 freebsd1*)
9143   dynamic_linker=no
9144   ;;
9145
9146 kfreebsd*-gnu)
9147   version_type=linux
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   hardcode_into_libs=yes
9155   dynamic_linker='GNU ld.so'
9156   ;;
9157
9158 freebsd* | dragonfly*)
9159   # DragonFly does not have aout.  When/if they implement a new
9160   # versioning mechanism, adjust this.
9161   if test -x /usr/bin/objformat; then
9162     objformat=`/usr/bin/objformat`
9163   else
9164     case $host_os in
9165     freebsd[123]*) objformat=aout ;;
9166     *) objformat=elf ;;
9167     esac
9168   fi
9169   version_type=freebsd-$objformat
9170   case $version_type in
9171     freebsd-elf*)
9172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9173       need_version=no
9174       need_lib_prefix=no
9175       ;;
9176     freebsd-*)
9177       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9178       need_version=yes
9179       ;;
9180   esac
9181   shlibpath_var=LD_LIBRARY_PATH
9182   case $host_os in
9183   freebsd2*)
9184     shlibpath_overrides_runpath=yes
9185     ;;
9186   freebsd3.[01]* | freebsdelf3.[01]*)
9187     shlibpath_overrides_runpath=yes
9188     hardcode_into_libs=yes
9189     ;;
9190   *) # from 3.2 on
9191     shlibpath_overrides_runpath=no
9192     hardcode_into_libs=yes
9193     ;;
9194   esac
9195   ;;
9196
9197 gnu*)
9198   version_type=linux
9199   need_lib_prefix=no
9200   need_version=no
9201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9202   soname_spec='${libname}${release}${shared_ext}$major'
9203   shlibpath_var=LD_LIBRARY_PATH
9204   hardcode_into_libs=yes
9205   ;;
9206
9207 hpux9* | hpux10* | hpux11*)
9208   # Give a soname corresponding to the major version so that dld.sl refuses to
9209   # link against other versions.
9210   version_type=sunos
9211   need_lib_prefix=no
9212   need_version=no
9213   case $host_cpu in
9214   ia64*)
9215     shrext_cmds='.so'
9216     hardcode_into_libs=yes
9217     dynamic_linker="$host_os dld.so"
9218     shlibpath_var=LD_LIBRARY_PATH
9219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221     soname_spec='${libname}${release}${shared_ext}$major'
9222     if test "X$HPUX_IA64_MODE" = X32; then
9223       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9224     else
9225       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9226     fi
9227     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9228     ;;
9229    hppa*64*)
9230      shrext_cmds='.sl'
9231      hardcode_into_libs=yes
9232      dynamic_linker="$host_os dld.sl"
9233      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9234      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236      soname_spec='${libname}${release}${shared_ext}$major'
9237      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9238      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9239      ;;
9240    *)
9241     shrext_cmds='.sl'
9242     dynamic_linker="$host_os dld.sl"
9243     shlibpath_var=SHLIB_PATH
9244     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246     soname_spec='${libname}${release}${shared_ext}$major'
9247     ;;
9248   esac
9249   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9250   postinstall_cmds='chmod 555 $lib'
9251   ;;
9252
9253 irix5* | irix6* | nonstopux*)
9254   case $host_os in
9255     nonstopux*) version_type=nonstopux ;;
9256     *)
9257         if test "$lt_cv_prog_gnu_ld" = yes; then
9258                 version_type=linux
9259         else
9260                 version_type=irix
9261         fi ;;
9262   esac
9263   need_lib_prefix=no
9264   need_version=no
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9267   case $host_os in
9268   irix5* | nonstopux*)
9269     libsuff= shlibsuff=
9270     ;;
9271   *)
9272     case $LD in # libtool.m4 will add one of these switches to LD
9273     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9274       libsuff= shlibsuff= libmagic=32-bit;;
9275     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9276       libsuff=32 shlibsuff=N32 libmagic=N32;;
9277     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9278       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9279     *) libsuff= shlibsuff= libmagic=never-match;;
9280     esac
9281     ;;
9282   esac
9283   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9284   shlibpath_overrides_runpath=no
9285   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9286   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9287   hardcode_into_libs=yes
9288   ;;
9289
9290 # No shared lib support for Linux oldld, aout, or coff.
9291 linux*oldld* | linux*aout* | linux*coff*)
9292   dynamic_linker=no
9293   ;;
9294
9295 # This must be Linux ELF.
9296 linux*)
9297   version_type=linux
9298   need_lib_prefix=no
9299   need_version=no
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301   soname_spec='${libname}${release}${shared_ext}$major'
9302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9303   shlibpath_var=LD_LIBRARY_PATH
9304   shlibpath_overrides_runpath=no
9305   # This implies no fast_install, which is unacceptable.
9306   # Some rework will be needed to allow for fast_install
9307   # before this can be enabled.
9308   hardcode_into_libs=yes
9309
9310   # Append ld.so.conf contents to the search path
9311   if test -f /etc/ld.so.conf; then
9312     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' ' '`
9313     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9314   fi
9315
9316   # We used to test for /lib/ld.so.1 and disable shared libraries on
9317   # powerpc, because MkLinux only supported shared libraries with the
9318   # GNU dynamic linker.  Since this was broken with cross compilers,
9319   # most powerpc-linux boxes support dynamic linking these days and
9320   # people can always --disable-shared, the test was removed, and we
9321   # assume the GNU/Linux dynamic linker is in use.
9322   dynamic_linker='GNU/Linux ld.so'
9323   ;;
9324
9325 knetbsd*-gnu)
9326   version_type=linux
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   shlibpath_overrides_runpath=no
9333   hardcode_into_libs=yes
9334   dynamic_linker='GNU ld.so'
9335   ;;
9336
9337 netbsd*)
9338   version_type=sunos
9339   need_lib_prefix=no
9340   need_version=no
9341   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9343     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9344     dynamic_linker='NetBSD (a.out) ld.so'
9345   else
9346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9347     soname_spec='${libname}${release}${shared_ext}$major'
9348     dynamic_linker='NetBSD ld.elf_so'
9349   fi
9350   shlibpath_var=LD_LIBRARY_PATH
9351   shlibpath_overrides_runpath=yes
9352   hardcode_into_libs=yes
9353   ;;
9354
9355 newsos6)
9356   version_type=linux
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358   shlibpath_var=LD_LIBRARY_PATH
9359   shlibpath_overrides_runpath=yes
9360   ;;
9361
9362 nto-qnx*)
9363   version_type=linux
9364   need_lib_prefix=no
9365   need_version=no
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   shlibpath_overrides_runpath=yes
9370   ;;
9371
9372 openbsd*)
9373   version_type=sunos
9374   need_lib_prefix=no
9375   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9376   case $host_os in
9377     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9378     *)                         need_version=no  ;;
9379   esac
9380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9382   shlibpath_var=LD_LIBRARY_PATH
9383   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9384     case $host_os in
9385       openbsd2.[89] | openbsd2.[89].*)
9386         shlibpath_overrides_runpath=no
9387         ;;
9388       *)
9389         shlibpath_overrides_runpath=yes
9390         ;;
9391       esac
9392   else
9393     shlibpath_overrides_runpath=yes
9394   fi
9395   ;;
9396
9397 os2*)
9398   libname_spec='$name'
9399   shrext_cmds=".dll"
9400   need_lib_prefix=no
9401   library_names_spec='$libname${shared_ext} $libname.a'
9402   dynamic_linker='OS/2 ld.exe'
9403   shlibpath_var=LIBPATH
9404   ;;
9405
9406 osf3* | osf4* | osf5*)
9407   version_type=osf
9408   need_lib_prefix=no
9409   need_version=no
9410   soname_spec='${libname}${release}${shared_ext}$major'
9411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412   shlibpath_var=LD_LIBRARY_PATH
9413   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9414   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9415   ;;
9416
9417 sco3.2v5*)
9418   version_type=osf
9419   soname_spec='${libname}${release}${shared_ext}$major'
9420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421   shlibpath_var=LD_LIBRARY_PATH
9422   ;;
9423
9424 solaris*)
9425   version_type=linux
9426   need_lib_prefix=no
9427   need_version=no
9428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429   soname_spec='${libname}${release}${shared_ext}$major'
9430   shlibpath_var=LD_LIBRARY_PATH
9431   shlibpath_overrides_runpath=yes
9432   hardcode_into_libs=yes
9433   # ldd complains unless libraries are executable
9434   postinstall_cmds='chmod +x $lib'
9435   ;;
9436
9437 sunos4*)
9438   version_type=sunos
9439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9440   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9441   shlibpath_var=LD_LIBRARY_PATH
9442   shlibpath_overrides_runpath=yes
9443   if test "$with_gnu_ld" = yes; then
9444     need_lib_prefix=no
9445   fi
9446   need_version=yes
9447   ;;
9448
9449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9450   version_type=linux
9451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452   soname_spec='${libname}${release}${shared_ext}$major'
9453   shlibpath_var=LD_LIBRARY_PATH
9454   case $host_vendor in
9455     sni)
9456       shlibpath_overrides_runpath=no
9457       need_lib_prefix=no
9458       export_dynamic_flag_spec='${wl}-Blargedynsym'
9459       runpath_var=LD_RUN_PATH
9460       ;;
9461     siemens)
9462       need_lib_prefix=no
9463       ;;
9464     motorola)
9465       need_lib_prefix=no
9466       need_version=no
9467       shlibpath_overrides_runpath=no
9468       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9469       ;;
9470   esac
9471   ;;
9472
9473 sysv4*MP*)
9474   if test -d /usr/nec ;then
9475     version_type=linux
9476     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9477     soname_spec='$libname${shared_ext}.$major'
9478     shlibpath_var=LD_LIBRARY_PATH
9479   fi
9480   ;;
9481
9482 uts4*)
9483   version_type=linux
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   ;;
9488
9489 *)
9490   dynamic_linker=no
9491   ;;
9492 esac
9493 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9494 echo "${ECHO_T}$dynamic_linker" >&6
9495 test "$dynamic_linker" = no && can_build_shared=no
9496
9497 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9498 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9499 hardcode_action=
9500 if test -n "$hardcode_libdir_flag_spec" || \
9501    test -n "$runpath_var" || \
9502    test "X$hardcode_automatic" = "Xyes" ; then
9503
9504   # We can hardcode non-existant directories.
9505   if test "$hardcode_direct" != no &&
9506      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9507      # have to relink, otherwise we might link with an installed library
9508      # when we should be linking with a yet-to-be-installed one
9509      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9510      test "$hardcode_minus_L" != no; then
9511     # Linking always hardcodes the temporary library directory.
9512     hardcode_action=relink
9513   else
9514     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9515     hardcode_action=immediate
9516   fi
9517 else
9518   # We cannot hardcode anything, or else we can only hardcode existing
9519   # directories.
9520   hardcode_action=unsupported
9521 fi
9522 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9523 echo "${ECHO_T}$hardcode_action" >&6
9524
9525 if test "$hardcode_action" = relink; then
9526   # Fast installation is not supported
9527   enable_fast_install=no
9528 elif test "$shlibpath_overrides_runpath" = yes ||
9529      test "$enable_shared" = no; then
9530   # Fast installation is not necessary
9531   enable_fast_install=needless
9532 fi
9533
9534 striplib=
9535 old_striplib=
9536 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9537 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9538 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9539   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9540   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9541   echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9543 else
9544 # FIXME - insert some real tests, host_os isn't really good enough
9545   case $host_os in
9546    darwin*)
9547        if test -n "$STRIP" ; then
9548          striplib="$STRIP -x"
9549          echo "$as_me:$LINENO: result: yes" >&5
9550 echo "${ECHO_T}yes" >&6
9551        else
9552   echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9554 fi
9555        ;;
9556    *)
9557   echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9559     ;;
9560   esac
9561 fi
9562
9563 if test "x$enable_dlopen" != xyes; then
9564   enable_dlopen=unknown
9565   enable_dlopen_self=unknown
9566   enable_dlopen_self_static=unknown
9567 else
9568   lt_cv_dlopen=no
9569   lt_cv_dlopen_libs=
9570
9571   case $host_os in
9572   beos*)
9573     lt_cv_dlopen="load_add_on"
9574     lt_cv_dlopen_libs=
9575     lt_cv_dlopen_self=yes
9576     ;;
9577
9578   mingw* | pw32*)
9579     lt_cv_dlopen="LoadLibrary"
9580     lt_cv_dlopen_libs=
9581    ;;
9582
9583   cygwin*)
9584     lt_cv_dlopen="dlopen"
9585     lt_cv_dlopen_libs=
9586    ;;
9587
9588   darwin*)
9589   # if libdl is installed we need to link against it
9590     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9591 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595   ac_check_lib_save_LIBS=$LIBS
9596 LIBS="-ldl  $LIBS"
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h.  */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h.  */
9603
9604 /* Override any gcc2 internal prototype to avoid an error.  */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609    builtin and then its argument prototype would still apply.  */
9610 char dlopen ();
9611 int
9612 main ()
9613 {
9614 dlopen ();
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621   (eval $ac_link) 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -z "$ac_c_werror_flag"
9629                          || test ! -s conftest.err'
9630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631   (eval $ac_try) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; } &&
9635          { ac_try='test -s conftest$ac_exeext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_cv_lib_dl_dlopen=yes
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ac_cv_lib_dl_dlopen=no
9647 fi
9648 rm -f conftest.err conftest.$ac_objext \
9649       conftest$ac_exeext conftest.$ac_ext
9650 LIBS=$ac_check_lib_save_LIBS
9651 fi
9652 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9653 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9654 if test $ac_cv_lib_dl_dlopen = yes; then
9655   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9656 else
9657
9658     lt_cv_dlopen="dyld"
9659     lt_cv_dlopen_libs=
9660     lt_cv_dlopen_self=yes
9661
9662 fi
9663
9664    ;;
9665
9666   *)
9667     echo "$as_me:$LINENO: checking for shl_load" >&5
9668 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9669 if test "${ac_cv_func_shl_load+set}" = set; then
9670   echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672   cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9680 #define shl_load innocuous_shl_load
9681
9682 /* System header to define __stub macros and hopefully few prototypes,
9683     which can conflict with char shl_load (); below.
9684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9685     <limits.h> exists even on freestanding compilers.  */
9686
9687 #ifdef __STDC__
9688 # include <limits.h>
9689 #else
9690 # include <assert.h>
9691 #endif
9692
9693 #undef shl_load
9694
9695 /* Override any gcc2 internal prototype to avoid an error.  */
9696 #ifdef __cplusplus
9697 extern "C"
9698 {
9699 #endif
9700 /* We use char because int might match the return type of a gcc2
9701    builtin and then its argument prototype would still apply.  */
9702 char shl_load ();
9703 /* The GNU C library defines this for functions which it implements
9704     to always fail with ENOSYS.  Some functions are actually named
9705     something starting with __ and the normal name is an alias.  */
9706 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9707 choke me
9708 #else
9709 char (*f) () = shl_load;
9710 #endif
9711 #ifdef __cplusplus
9712 }
9713 #endif
9714
9715 int
9716 main ()
9717 {
9718 return f != shl_load;
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -z "$ac_c_werror_flag"
9733                          || test ! -s conftest.err'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; } &&
9739          { ac_try='test -s conftest$ac_exeext'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745   ac_cv_func_shl_load=yes
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_cv_func_shl_load=no
9751 fi
9752 rm -f conftest.err conftest.$ac_objext \
9753       conftest$ac_exeext conftest.$ac_ext
9754 fi
9755 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9756 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9757 if test $ac_cv_func_shl_load = yes; then
9758   lt_cv_dlopen="shl_load"
9759 else
9760   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9761 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-ldld  $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773
9774 /* Override any gcc2 internal prototype to avoid an error.  */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 /* We use char because int might match the return type of a gcc2
9779    builtin and then its argument prototype would still apply.  */
9780 char shl_load ();
9781 int
9782 main ()
9783 {
9784 shl_load ();
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791   (eval $ac_link) 2>conftest.er1
9792   ac_status=$?
9793   grep -v '^ *+' conftest.er1 >conftest.err
9794   rm -f conftest.er1
9795   cat conftest.err >&5
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -z "$ac_c_werror_flag"
9799                          || test ! -s conftest.err'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; } &&
9805          { ac_try='test -s conftest$ac_exeext'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811   ac_cv_lib_dld_shl_load=yes
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_cv_lib_dld_shl_load=no
9817 fi
9818 rm -f conftest.err conftest.$ac_objext \
9819       conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9821 fi
9822 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9823 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9824 if test $ac_cv_lib_dld_shl_load = yes; then
9825   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9826 else
9827   echo "$as_me:$LINENO: checking for dlopen" >&5
9828 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9829 if test "${ac_cv_func_dlopen+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9840 #define dlopen innocuous_dlopen
9841
9842 /* System header to define __stub macros and hopefully few prototypes,
9843     which can conflict with char dlopen (); below.
9844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9845     <limits.h> exists even on freestanding compilers.  */
9846
9847 #ifdef __STDC__
9848 # include <limits.h>
9849 #else
9850 # include <assert.h>
9851 #endif
9852
9853 #undef dlopen
9854
9855 /* Override any gcc2 internal prototype to avoid an error.  */
9856 #ifdef __cplusplus
9857 extern "C"
9858 {
9859 #endif
9860 /* We use char because int might match the return type of a gcc2
9861    builtin and then its argument prototype would still apply.  */
9862 char dlopen ();
9863 /* The GNU C library defines this for functions which it implements
9864     to always fail with ENOSYS.  Some functions are actually named
9865     something starting with __ and the normal name is an alias.  */
9866 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9867 choke me
9868 #else
9869 char (*f) () = dlopen;
9870 #endif
9871 #ifdef __cplusplus
9872 }
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 return f != dlopen;
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885   (eval $ac_link) 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } &&
9892          { ac_try='test -z "$ac_c_werror_flag"
9893                          || test ! -s conftest.err'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest$ac_exeext'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_cv_func_dlopen=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 ac_cv_func_dlopen=no
9911 fi
9912 rm -f conftest.err conftest.$ac_objext \
9913       conftest$ac_exeext conftest.$ac_ext
9914 fi
9915 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9916 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9917 if test $ac_cv_func_dlopen = yes; then
9918   lt_cv_dlopen="dlopen"
9919 else
9920   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9921 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9922 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-ldl  $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any gcc2 internal prototype to avoid an error.  */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 /* We use char because int might match the return type of a gcc2
9939    builtin and then its argument prototype would still apply.  */
9940 char dlopen ();
9941 int
9942 main ()
9943 {
9944 dlopen ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951   (eval $ac_link) 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -z "$ac_c_werror_flag"
9959                          || test ! -s conftest.err'
9960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_cv_lib_dl_dlopen=yes
9972 else
9973   echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 ac_cv_lib_dl_dlopen=no
9977 fi
9978 rm -f conftest.err conftest.$ac_objext \
9979       conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9981 fi
9982 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9984 if test $ac_cv_lib_dl_dlopen = yes; then
9985   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9986 else
9987   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9988 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   ac_check_lib_save_LIBS=$LIBS
9993 LIBS="-lsvld  $LIBS"
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000
10001 /* Override any gcc2 internal prototype to avoid an error.  */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006    builtin and then its argument prototype would still apply.  */
10007 char dlopen ();
10008 int
10009 main ()
10010 {
10011 dlopen ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018   (eval $ac_link) 2>conftest.er1
10019   ac_status=$?
10020   grep -v '^ *+' conftest.er1 >conftest.err
10021   rm -f conftest.er1
10022   cat conftest.err >&5
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -z "$ac_c_werror_flag"
10026                          || test ! -s conftest.err'
10027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028   (eval $ac_try) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   ac_cv_lib_svld_dlopen=yes
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 ac_cv_lib_svld_dlopen=no
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046       conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10050 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10051 if test $ac_cv_lib_svld_dlopen = yes; then
10052   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10053 else
10054   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10055 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10056 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059   ac_check_lib_save_LIBS=$LIBS
10060 LIBS="-ldld  $LIBS"
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h.  */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h.  */
10067
10068 /* Override any gcc2 internal prototype to avoid an error.  */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 /* We use char because int might match the return type of a gcc2
10073    builtin and then its argument prototype would still apply.  */
10074 char dld_link ();
10075 int
10076 main ()
10077 {
10078 dld_link ();
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085   (eval $ac_link) 2>conftest.er1
10086   ac_status=$?
10087   grep -v '^ *+' conftest.er1 >conftest.err
10088   rm -f conftest.er1
10089   cat conftest.err >&5
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } &&
10092          { ac_try='test -z "$ac_c_werror_flag"
10093                          || test ! -s conftest.err'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest$ac_exeext'
10100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101   (eval $ac_try) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; }; then
10105   ac_cv_lib_dld_dld_link=yes
10106 else
10107   echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 ac_cv_lib_dld_dld_link=no
10111 fi
10112 rm -f conftest.err conftest.$ac_objext \
10113       conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10117 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10118 if test $ac_cv_lib_dld_dld_link = yes; then
10119   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10120 fi
10121
10122
10123 fi
10124
10125
10126 fi
10127
10128
10129 fi
10130
10131
10132 fi
10133
10134
10135 fi
10136
10137     ;;
10138   esac
10139
10140   if test "x$lt_cv_dlopen" != xno; then
10141     enable_dlopen=yes
10142   else
10143     enable_dlopen=no
10144   fi
10145
10146   case $lt_cv_dlopen in
10147   dlopen)
10148     save_CPPFLAGS="$CPPFLAGS"
10149     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10150
10151     save_LDFLAGS="$LDFLAGS"
10152     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10153
10154     save_LIBS="$LIBS"
10155     LIBS="$lt_cv_dlopen_libs $LIBS"
10156
10157     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10158 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10159 if test "${lt_cv_dlopen_self+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162           if test "$cross_compiling" = yes; then :
10163   lt_cv_dlopen_self=cross
10164 else
10165   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10166   lt_status=$lt_dlunknown
10167   cat > conftest.$ac_ext <<EOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10170
10171 #if HAVE_DLFCN_H
10172 #include <dlfcn.h>
10173 #endif
10174
10175 #include <stdio.h>
10176
10177 #ifdef RTLD_GLOBAL
10178 #  define LT_DLGLOBAL           RTLD_GLOBAL
10179 #else
10180 #  ifdef DL_GLOBAL
10181 #    define LT_DLGLOBAL         DL_GLOBAL
10182 #  else
10183 #    define LT_DLGLOBAL         0
10184 #  endif
10185 #endif
10186
10187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10188    find out it does not work in some platform. */
10189 #ifndef LT_DLLAZY_OR_NOW
10190 #  ifdef RTLD_LAZY
10191 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10192 #  else
10193 #    ifdef DL_LAZY
10194 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10195 #    else
10196 #      ifdef RTLD_NOW
10197 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10198 #      else
10199 #        ifdef DL_NOW
10200 #          define LT_DLLAZY_OR_NOW      DL_NOW
10201 #        else
10202 #          define LT_DLLAZY_OR_NOW      0
10203 #        endif
10204 #      endif
10205 #    endif
10206 #  endif
10207 #endif
10208
10209 #ifdef __cplusplus
10210 extern "C" void exit (int);
10211 #endif
10212
10213 void fnord() { int i=42;}
10214 int main ()
10215 {
10216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10217   int status = $lt_dlunknown;
10218
10219   if (self)
10220     {
10221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10222       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10223       /* dlclose (self); */
10224     }
10225
10226     exit (status);
10227 }
10228 EOF
10229   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230   (eval $ac_link) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10234     (./conftest; exit; ) >&5 2>/dev/null
10235     lt_status=$?
10236     case x$lt_status in
10237       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10238       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10239       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10240     esac
10241   else :
10242     # compilation failed
10243     lt_cv_dlopen_self=no
10244   fi
10245 fi
10246 rm -fr conftest*
10247
10248
10249 fi
10250 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10251 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10252
10253     if test "x$lt_cv_dlopen_self" = xyes; then
10254       LDFLAGS="$LDFLAGS $link_static_flag"
10255       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10256 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10257 if test "${lt_cv_dlopen_self_static+set}" = set; then
10258   echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260           if test "$cross_compiling" = yes; then :
10261   lt_cv_dlopen_self_static=cross
10262 else
10263   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10264   lt_status=$lt_dlunknown
10265   cat > conftest.$ac_ext <<EOF
10266 #line 10266 "configure"
10267 #include "confdefs.h"
10268
10269 #if HAVE_DLFCN_H
10270 #include <dlfcn.h>
10271 #endif
10272
10273 #include <stdio.h>
10274
10275 #ifdef RTLD_GLOBAL
10276 #  define LT_DLGLOBAL           RTLD_GLOBAL
10277 #else
10278 #  ifdef DL_GLOBAL
10279 #    define LT_DLGLOBAL         DL_GLOBAL
10280 #  else
10281 #    define LT_DLGLOBAL         0
10282 #  endif
10283 #endif
10284
10285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10286    find out it does not work in some platform. */
10287 #ifndef LT_DLLAZY_OR_NOW
10288 #  ifdef RTLD_LAZY
10289 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10290 #  else
10291 #    ifdef DL_LAZY
10292 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10293 #    else
10294 #      ifdef RTLD_NOW
10295 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10296 #      else
10297 #        ifdef DL_NOW
10298 #          define LT_DLLAZY_OR_NOW      DL_NOW
10299 #        else
10300 #          define LT_DLLAZY_OR_NOW      0
10301 #        endif
10302 #      endif
10303 #    endif
10304 #  endif
10305 #endif
10306
10307 #ifdef __cplusplus
10308 extern "C" void exit (int);
10309 #endif
10310
10311 void fnord() { int i=42;}
10312 int main ()
10313 {
10314   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10315   int status = $lt_dlunknown;
10316
10317   if (self)
10318     {
10319       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10320       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10321       /* dlclose (self); */
10322     }
10323
10324     exit (status);
10325 }
10326 EOF
10327   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328   (eval $ac_link) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10332     (./conftest; exit; ) >&5 2>/dev/null
10333     lt_status=$?
10334     case x$lt_status in
10335       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10336       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10337       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10338     esac
10339   else :
10340     # compilation failed
10341     lt_cv_dlopen_self_static=no
10342   fi
10343 fi
10344 rm -fr conftest*
10345
10346
10347 fi
10348 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10349 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10350     fi
10351
10352     CPPFLAGS="$save_CPPFLAGS"
10353     LDFLAGS="$save_LDFLAGS"
10354     LIBS="$save_LIBS"
10355     ;;
10356   esac
10357
10358   case $lt_cv_dlopen_self in
10359   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10360   *) enable_dlopen_self=unknown ;;
10361   esac
10362
10363   case $lt_cv_dlopen_self_static in
10364   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10365   *) enable_dlopen_self_static=unknown ;;
10366   esac
10367 fi
10368
10369
10370 # Report which librarie types wil actually be built
10371 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10372 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10373 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10374 echo "${ECHO_T}$can_build_shared" >&6
10375
10376 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10377 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10378 test "$can_build_shared" = "no" && enable_shared=no
10379
10380 # On AIX, shared libraries and static libraries use the same namespace, and
10381 # are all built from PIC.
10382 case $host_os in
10383 aix3*)
10384   test "$enable_shared" = yes && enable_static=no
10385   if test -n "$RANLIB"; then
10386     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387     postinstall_cmds='$RANLIB $lib'
10388   fi
10389   ;;
10390
10391 aix4* | aix5*)
10392   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393     test "$enable_shared" = yes && enable_static=no
10394   fi
10395     ;;
10396 esac
10397 echo "$as_me:$LINENO: result: $enable_shared" >&5
10398 echo "${ECHO_T}$enable_shared" >&6
10399
10400 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10401 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10402 # Make sure either enable_shared or enable_static is yes.
10403 test "$enable_shared" = yes || enable_static=yes
10404 echo "$as_me:$LINENO: result: $enable_static" >&5
10405 echo "${ECHO_T}$enable_static" >&6
10406
10407 # The else clause should only fire when bootstrapping the
10408 # libtool distribution, otherwise you forgot to ship ltmain.sh
10409 # with your package, and you will get complaints that there are
10410 # no rules to generate ltmain.sh.
10411 if test -f "$ltmain"; then
10412   # See if we are running on zsh, and set the options which allow our commands through
10413   # without removal of \ escapes.
10414   if test -n "${ZSH_VERSION+set}" ; then
10415     setopt NO_GLOB_SUBST
10416   fi
10417   # Now quote all the things that may contain metacharacters while being
10418   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10419   # variables and quote the copies for generation of the libtool script.
10420   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10421     SED SHELL STRIP \
10422     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10423     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10424     deplibs_check_method reload_flag reload_cmds need_locks \
10425     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10426     lt_cv_sys_global_symbol_to_c_name_address \
10427     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10428     old_postinstall_cmds old_postuninstall_cmds \
10429     compiler \
10430     CC \
10431     LD \
10432     lt_prog_compiler_wl \
10433     lt_prog_compiler_pic \
10434     lt_prog_compiler_static \
10435     lt_prog_compiler_no_builtin_flag \
10436     export_dynamic_flag_spec \
10437     thread_safe_flag_spec \
10438     whole_archive_flag_spec \
10439     enable_shared_with_static_runtimes \
10440     old_archive_cmds \
10441     old_archive_from_new_cmds \
10442     predep_objects \
10443     postdep_objects \
10444     predeps \
10445     postdeps \
10446     compiler_lib_search_path \
10447     archive_cmds \
10448     archive_expsym_cmds \
10449     postinstall_cmds \
10450     postuninstall_cmds \
10451     old_archive_from_expsyms_cmds \
10452     allow_undefined_flag \
10453     no_undefined_flag \
10454     export_symbols_cmds \
10455     hardcode_libdir_flag_spec \
10456     hardcode_libdir_flag_spec_ld \
10457     hardcode_libdir_separator \
10458     hardcode_automatic \
10459     module_cmds \
10460     module_expsym_cmds \
10461     lt_cv_prog_compiler_c_o \
10462     exclude_expsyms \
10463     include_expsyms; do
10464
10465     case $var in
10466     old_archive_cmds | \
10467     old_archive_from_new_cmds | \
10468     archive_cmds | \
10469     archive_expsym_cmds | \
10470     module_cmds | \
10471     module_expsym_cmds | \
10472     old_archive_from_expsyms_cmds | \
10473     export_symbols_cmds | \
10474     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10475     postinstall_cmds | postuninstall_cmds | \
10476     old_postinstall_cmds | old_postuninstall_cmds | \
10477     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10478       # Double-quote double-evaled strings.
10479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10480       ;;
10481     *)
10482       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10483       ;;
10484     esac
10485   done
10486
10487   case $lt_echo in
10488   *'\$0 --fallback-echo"')
10489     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10490     ;;
10491   esac
10492
10493 cfgfile="${ofile}T"
10494   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10495   $rm -f "$cfgfile"
10496   { echo "$as_me:$LINENO: creating $ofile" >&5
10497 echo "$as_me: creating $ofile" >&6;}
10498
10499   cat <<__EOF__ >> "$cfgfile"
10500 #! $SHELL
10501
10502 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10503 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10504 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10505 #
10506 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10507 # Free Software Foundation, Inc.
10508 #
10509 # This file is part of GNU Libtool:
10510 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10511 #
10512 # This program is free software; you can redistribute it and/or modify
10513 # it under the terms of the GNU General Public License as published by
10514 # the Free Software Foundation; either version 2 of the License, or
10515 # (at your option) any later version.
10516 #
10517 # This program is distributed in the hope that it will be useful, but
10518 # WITHOUT ANY WARRANTY; without even the implied warranty of
10519 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10520 # General Public License for more details.
10521 #
10522 # You should have received a copy of the GNU General Public License
10523 # along with this program; if not, write to the Free Software
10524 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10525 #
10526 # As a special exception to the GNU General Public License, if you
10527 # distribute this file as part of a program that contains a
10528 # configuration script generated by Autoconf, you may include it under
10529 # the same distribution terms that you use for the rest of that program.
10530
10531 # A sed program that does not truncate output.
10532 SED=$lt_SED
10533
10534 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10535 Xsed="$SED -e 1s/^X//"
10536
10537 # The HP-UX ksh and POSIX shell print the target directory to stdout
10538 # if CDPATH is set.
10539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10540
10541 # The names of the tagged configurations supported by this script.
10542 available_tags=
10543
10544 # ### BEGIN LIBTOOL CONFIG
10545
10546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10547
10548 # Shell to use when invoking shell scripts.
10549 SHELL=$lt_SHELL
10550
10551 # Whether or not to build shared libraries.
10552 build_libtool_libs=$enable_shared
10553
10554 # Whether or not to build static libraries.
10555 build_old_libs=$enable_static
10556
10557 # Whether or not to add -lc for building shared libraries.
10558 build_libtool_need_lc=$archive_cmds_need_lc
10559
10560 # Whether or not to disallow shared libs when runtime libs are static
10561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10562
10563 # Whether or not to optimize for fast installation.
10564 fast_install=$enable_fast_install
10565
10566 # The host system.
10567 host_alias=$host_alias
10568 host=$host
10569 host_os=$host_os
10570
10571 # The build system.
10572 build_alias=$build_alias
10573 build=$build
10574 build_os=$build_os
10575
10576 # An echo program that does not interpret backslashes.
10577 echo=$lt_echo
10578
10579 # The archiver.
10580 AR=$lt_AR
10581 AR_FLAGS=$lt_AR_FLAGS
10582
10583 # A C compiler.
10584 LTCC=$lt_LTCC
10585
10586 # A language-specific compiler.
10587 CC=$lt_compiler
10588
10589 # Is the compiler the GNU C compiler?
10590 with_gcc=$GCC
10591
10592 # An ERE matcher.
10593 EGREP=$lt_EGREP
10594
10595 # The linker used to build libraries.
10596 LD=$lt_LD
10597
10598 # Whether we need hard or soft links.
10599 LN_S=$lt_LN_S
10600
10601 # A BSD-compatible nm program.
10602 NM=$lt_NM
10603
10604 # A symbol stripping program
10605 STRIP=$lt_STRIP
10606
10607 # Used to examine libraries when file_magic_cmd begins "file"
10608 MAGIC_CMD=$MAGIC_CMD
10609
10610 # Used on cygwin: DLL creation program.
10611 DLLTOOL="$DLLTOOL"
10612
10613 # Used on cygwin: object dumper.
10614 OBJDUMP="$OBJDUMP"
10615
10616 # Used on cygwin: assembler.
10617 AS="$AS"
10618
10619 # The name of the directory that contains temporary libtool files.
10620 objdir=$objdir
10621
10622 # How to create reloadable object files.
10623 reload_flag=$lt_reload_flag
10624 reload_cmds=$lt_reload_cmds
10625
10626 # How to pass a linker flag through the compiler.
10627 wl=$lt_lt_prog_compiler_wl
10628
10629 # Object file suffix (normally "o").
10630 objext="$ac_objext"
10631
10632 # Old archive suffix (normally "a").
10633 libext="$libext"
10634
10635 # Shared library suffix (normally ".so").
10636 shrext_cmds='$shrext_cmds'
10637
10638 # Executable file suffix (normally "").
10639 exeext="$exeext"
10640
10641 # Additional compiler flags for building library objects.
10642 pic_flag=$lt_lt_prog_compiler_pic
10643 pic_mode=$pic_mode
10644
10645 # What is the maximum length of a command?
10646 max_cmd_len=$lt_cv_sys_max_cmd_len
10647
10648 # Does compiler simultaneously support -c and -o options?
10649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10650
10651 # Must we lock files when doing compilation?
10652 need_locks=$lt_need_locks
10653
10654 # Do we need the lib prefix for modules?
10655 need_lib_prefix=$need_lib_prefix
10656
10657 # Do we need a version for libraries?
10658 need_version=$need_version
10659
10660 # Whether dlopen is supported.
10661 dlopen_support=$enable_dlopen
10662
10663 # Whether dlopen of programs is supported.
10664 dlopen_self=$enable_dlopen_self
10665
10666 # Whether dlopen of statically linked programs is supported.
10667 dlopen_self_static=$enable_dlopen_self_static
10668
10669 # Compiler flag to prevent dynamic linking.
10670 link_static_flag=$lt_lt_prog_compiler_static
10671
10672 # Compiler flag to turn off builtin functions.
10673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10674
10675 # Compiler flag to allow reflexive dlopens.
10676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10677
10678 # Compiler flag to generate shared objects directly from archives.
10679 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10680
10681 # Compiler flag to generate thread-safe objects.
10682 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10683
10684 # Library versioning type.
10685 version_type=$version_type
10686
10687 # Format of library name prefix.
10688 libname_spec=$lt_libname_spec
10689
10690 # List of archive names.  First name is the real one, the rest are links.
10691 # The last name is the one that the linker finds with -lNAME.
10692 library_names_spec=$lt_library_names_spec
10693
10694 # The coded name of the library, if different from the real name.
10695 soname_spec=$lt_soname_spec
10696
10697 # Commands used to build and install an old-style archive.
10698 RANLIB=$lt_RANLIB
10699 old_archive_cmds=$lt_old_archive_cmds
10700 old_postinstall_cmds=$lt_old_postinstall_cmds
10701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10702
10703 # Create an old-style archive from a shared archive.
10704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10705
10706 # Create a temporary old-style archive to link instead of a shared archive.
10707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10708
10709 # Commands used to build and install a shared archive.
10710 archive_cmds=$lt_archive_cmds
10711 archive_expsym_cmds=$lt_archive_expsym_cmds
10712 postinstall_cmds=$lt_postinstall_cmds
10713 postuninstall_cmds=$lt_postuninstall_cmds
10714
10715 # Commands used to build a loadable module (assumed same as above if empty)
10716 module_cmds=$lt_module_cmds
10717 module_expsym_cmds=$lt_module_expsym_cmds
10718
10719 # Commands to strip libraries.
10720 old_striplib=$lt_old_striplib
10721 striplib=$lt_striplib
10722
10723 # Dependencies to place before the objects being linked to create a
10724 # shared library.
10725 predep_objects=$lt_predep_objects
10726
10727 # Dependencies to place after the objects being linked to create a
10728 # shared library.
10729 postdep_objects=$lt_postdep_objects
10730
10731 # Dependencies to place before the objects being linked to create a
10732 # shared library.
10733 predeps=$lt_predeps
10734
10735 # Dependencies to place after the objects being linked to create a
10736 # shared library.
10737 postdeps=$lt_postdeps
10738
10739 # The library search path used internally by the compiler when linking
10740 # a shared library.
10741 compiler_lib_search_path=$lt_compiler_lib_search_path
10742
10743 # Method to check whether dependent libraries are shared objects.
10744 deplibs_check_method=$lt_deplibs_check_method
10745
10746 # Command to use when deplibs_check_method == file_magic.
10747 file_magic_cmd=$lt_file_magic_cmd
10748
10749 # Flag that allows shared libraries with undefined symbols to be built.
10750 allow_undefined_flag=$lt_allow_undefined_flag
10751
10752 # Flag that forces no undefined symbols.
10753 no_undefined_flag=$lt_no_undefined_flag
10754
10755 # Commands used to finish a libtool library installation in a directory.
10756 finish_cmds=$lt_finish_cmds
10757
10758 # Same as above, but a single script fragment to be evaled but not shown.
10759 finish_eval=$lt_finish_eval
10760
10761 # Take the output of nm and produce a listing of raw symbols and C names.
10762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10763
10764 # Transform the output of nm in a proper C declaration
10765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10766
10767 # Transform the output of nm in a C name address pair
10768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10769
10770 # This is the shared library runtime path variable.
10771 runpath_var=$runpath_var
10772
10773 # This is the shared library path variable.
10774 shlibpath_var=$shlibpath_var
10775
10776 # Is shlibpath searched before the hard-coded library search path?
10777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10778
10779 # How to hardcode a shared library path into an executable.
10780 hardcode_action=$hardcode_action
10781
10782 # Whether we should hardcode library paths into libraries.
10783 hardcode_into_libs=$hardcode_into_libs
10784
10785 # Flag to hardcode \$libdir into a binary during linking.
10786 # This must work even if \$libdir does not exist.
10787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10788
10789 # If ld is used when linking, flag to hardcode \$libdir into
10790 # a binary during linking. This must work even if \$libdir does
10791 # not exist.
10792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10793
10794 # Whether we need a single -rpath flag with a separated argument.
10795 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10796
10797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10798 # resulting binary.
10799 hardcode_direct=$hardcode_direct
10800
10801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10802 # resulting binary.
10803 hardcode_minus_L=$hardcode_minus_L
10804
10805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10806 # the resulting binary.
10807 hardcode_shlibpath_var=$hardcode_shlibpath_var
10808
10809 # Set to yes if building a shared library automatically hardcodes DIR into the library
10810 # and all subsequent libraries and executables linked against it.
10811 hardcode_automatic=$hardcode_automatic
10812
10813 # Variables whose values should be saved in libtool wrapper scripts and
10814 # restored at relink time.
10815 variables_saved_for_relink="$variables_saved_for_relink"
10816
10817 # Whether libtool must link a program against all its dependency libraries.
10818 link_all_deplibs=$link_all_deplibs
10819
10820 # Compile-time system search path for libraries
10821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10822
10823 # Run-time system search path for libraries
10824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10825
10826 # Fix the shell variable \$srcfile for the compiler.
10827 fix_srcfile_path="$fix_srcfile_path"
10828
10829 # Set to yes if exported symbols are required.
10830 always_export_symbols=$always_export_symbols
10831
10832 # The commands to list exported symbols.
10833 export_symbols_cmds=$lt_export_symbols_cmds
10834
10835 # The commands to extract the exported symbol list from a shared archive.
10836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10837
10838 # Symbols that should not be listed in the preloaded symbols.
10839 exclude_expsyms=$lt_exclude_expsyms
10840
10841 # Symbols that must always be exported.
10842 include_expsyms=$lt_include_expsyms
10843
10844 # ### END LIBTOOL CONFIG
10845
10846 __EOF__
10847
10848
10849   case $host_os in
10850   aix3*)
10851     cat <<\EOF >> "$cfgfile"
10852
10853 # AIX sometimes has problems with the GCC collect2 program.  For some
10854 # reason, if we set the COLLECT_NAMES environment variable, the problems
10855 # vanish in a puff of smoke.
10856 if test "X${COLLECT_NAMES+set}" != Xset; then
10857   COLLECT_NAMES=
10858   export COLLECT_NAMES
10859 fi
10860 EOF
10861     ;;
10862   esac
10863
10864   # We use sed instead of cat because bash on DJGPP gets confused if
10865   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10866   # text mode, it properly converts lines to CR/LF.  This bash problem
10867   # is reportedly fixed, but why not run on old versions too?
10868   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10869
10870   mv -f "$cfgfile" "$ofile" || \
10871     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10872   chmod +x "$ofile"
10873
10874 else
10875   # If there is no Makefile yet, we rely on a make rule to execute
10876   # `config.status --recheck' to rerun these tests and create the
10877   # libtool script then.
10878   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10879   if test -f "$ltmain_in"; then
10880     test -f Makefile && make "$ltmain"
10881   fi
10882 fi
10883
10884
10885 ac_ext=c
10886 ac_cpp='$CPP $CPPFLAGS'
10887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890
10891 CC="$lt_save_CC"
10892
10893
10894 # Check whether --with-tags or --without-tags was given.
10895 if test "${with_tags+set}" = set; then
10896   withval="$with_tags"
10897   tagnames="$withval"
10898 fi;
10899
10900 if test -f "$ltmain" && test -n "$tagnames"; then
10901   if test ! -f "${ofile}"; then
10902     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10903 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10904   fi
10905
10906   if test -z "$LTCC"; then
10907     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10908     if test -z "$LTCC"; then
10909       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10910 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10911     else
10912       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10913 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10914     fi
10915   fi
10916
10917   # Extract list of available tagged configurations in $ofile.
10918   # Note that this assumes the entire list is on one line.
10919   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10920
10921   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10922   for tagname in $tagnames; do
10923     IFS="$lt_save_ifs"
10924     # Check whether tagname contains only valid characters
10925     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10926     "") ;;
10927     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10928 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10929    { (exit 1); exit 1; }; }
10930         ;;
10931     esac
10932
10933     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10934     then
10935       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10936 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10937    { (exit 1); exit 1; }; }
10938     fi
10939
10940     # Update the list of available tags.
10941     if test -n "$tagname"; then
10942       echo appending configuration tag \"$tagname\" to $ofile
10943
10944       case $tagname in
10945       CXX)
10946         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10947             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10948             (test "X$CXX" != "Xg++"))) ; then
10949           :
10950         else
10951           tagname=""
10952         fi
10953         ;;
10954
10955       F77)
10956         if test -n "$F77" && test "X$F77" != "Xno"; then
10957           :
10958         else
10959           tagname=""
10960         fi
10961         ;;
10962
10963       GCJ)
10964         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10965           :
10966         else
10967           tagname=""
10968         fi
10969         ;;
10970
10971       RC)
10972
10973
10974
10975 # Source file extension for RC test sources.
10976 ac_ext=rc
10977
10978 # Object file extension for compiled RC test sources.
10979 objext=o
10980 objext_RC=$objext
10981
10982 # Code to be used in simple compile tests
10983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10984
10985 # Code to be used in simple link tests
10986 lt_simple_link_test_code="$lt_simple_compile_test_code"
10987
10988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10989
10990 # If no C compiler was specified, use CC.
10991 LTCC=${LTCC-"$CC"}
10992
10993 # Allow CC to be a program name with arguments.
10994 compiler=$CC
10995
10996
10997 # save warnings/boilerplate of simple test code
10998 ac_outfile=conftest.$ac_objext
10999 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11001 _lt_compiler_boilerplate=`cat conftest.err`
11002 $rm conftest*
11003
11004 ac_outfile=conftest.$ac_objext
11005 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11007 _lt_linker_boilerplate=`cat conftest.err`
11008 $rm conftest*
11009
11010
11011 # Allow CC to be a program name with arguments.
11012 lt_save_CC="$CC"
11013 CC=${RC-"windres"}
11014 compiler=$CC
11015 compiler_RC=$CC
11016 for cc_temp in $compiler""; do
11017   case $cc_temp in
11018     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11019     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11020     \-*) ;;
11021     *) break;;
11022   esac
11023 done
11024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11025
11026 lt_cv_prog_compiler_c_o_RC=yes
11027
11028 # The else clause should only fire when bootstrapping the
11029 # libtool distribution, otherwise you forgot to ship ltmain.sh
11030 # with your package, and you will get complaints that there are
11031 # no rules to generate ltmain.sh.
11032 if test -f "$ltmain"; then
11033   # See if we are running on zsh, and set the options which allow our commands through
11034   # without removal of \ escapes.
11035   if test -n "${ZSH_VERSION+set}" ; then
11036     setopt NO_GLOB_SUBST
11037   fi
11038   # Now quote all the things that may contain metacharacters while being
11039   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11040   # variables and quote the copies for generation of the libtool script.
11041   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11042     SED SHELL STRIP \
11043     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11044     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11045     deplibs_check_method reload_flag reload_cmds need_locks \
11046     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11047     lt_cv_sys_global_symbol_to_c_name_address \
11048     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11049     old_postinstall_cmds old_postuninstall_cmds \
11050     compiler_RC \
11051     CC_RC \
11052     LD_RC \
11053     lt_prog_compiler_wl_RC \
11054     lt_prog_compiler_pic_RC \
11055     lt_prog_compiler_static_RC \
11056     lt_prog_compiler_no_builtin_flag_RC \
11057     export_dynamic_flag_spec_RC \
11058     thread_safe_flag_spec_RC \
11059     whole_archive_flag_spec_RC \
11060     enable_shared_with_static_runtimes_RC \
11061     old_archive_cmds_RC \
11062     old_archive_from_new_cmds_RC \
11063     predep_objects_RC \
11064     postdep_objects_RC \
11065     predeps_RC \
11066     postdeps_RC \
11067     compiler_lib_search_path_RC \
11068     archive_cmds_RC \
11069     archive_expsym_cmds_RC \
11070     postinstall_cmds_RC \
11071     postuninstall_cmds_RC \
11072     old_archive_from_expsyms_cmds_RC \
11073     allow_undefined_flag_RC \
11074     no_undefined_flag_RC \
11075     export_symbols_cmds_RC \
11076     hardcode_libdir_flag_spec_RC \
11077     hardcode_libdir_flag_spec_ld_RC \
11078     hardcode_libdir_separator_RC \
11079     hardcode_automatic_RC \
11080     module_cmds_RC \
11081     module_expsym_cmds_RC \
11082     lt_cv_prog_compiler_c_o_RC \
11083     exclude_expsyms_RC \
11084     include_expsyms_RC; do
11085
11086     case $var in
11087     old_archive_cmds_RC | \
11088     old_archive_from_new_cmds_RC | \
11089     archive_cmds_RC | \
11090     archive_expsym_cmds_RC | \
11091     module_cmds_RC | \
11092     module_expsym_cmds_RC | \
11093     old_archive_from_expsyms_cmds_RC | \
11094     export_symbols_cmds_RC | \
11095     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11096     postinstall_cmds | postuninstall_cmds | \
11097     old_postinstall_cmds | old_postuninstall_cmds | \
11098     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11099       # Double-quote double-evaled strings.
11100       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11101       ;;
11102     *)
11103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11104       ;;
11105     esac
11106   done
11107
11108   case $lt_echo in
11109   *'\$0 --fallback-echo"')
11110     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11111     ;;
11112   esac
11113
11114 cfgfile="$ofile"
11115
11116   cat <<__EOF__ >> "$cfgfile"
11117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11118
11119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11120
11121 # Shell to use when invoking shell scripts.
11122 SHELL=$lt_SHELL
11123
11124 # Whether or not to build shared libraries.
11125 build_libtool_libs=$enable_shared
11126
11127 # Whether or not to build static libraries.
11128 build_old_libs=$enable_static
11129
11130 # Whether or not to add -lc for building shared libraries.
11131 build_libtool_need_lc=$archive_cmds_need_lc_RC
11132
11133 # Whether or not to disallow shared libs when runtime libs are static
11134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11135
11136 # Whether or not to optimize for fast installation.
11137 fast_install=$enable_fast_install
11138
11139 # The host system.
11140 host_alias=$host_alias
11141 host=$host
11142 host_os=$host_os
11143
11144 # The build system.
11145 build_alias=$build_alias
11146 build=$build
11147 build_os=$build_os
11148
11149 # An echo program that does not interpret backslashes.
11150 echo=$lt_echo
11151
11152 # The archiver.
11153 AR=$lt_AR
11154 AR_FLAGS=$lt_AR_FLAGS
11155
11156 # A C compiler.
11157 LTCC=$lt_LTCC
11158
11159 # A language-specific compiler.
11160 CC=$lt_compiler_RC
11161
11162 # Is the compiler the GNU C compiler?
11163 with_gcc=$GCC_RC
11164
11165 # An ERE matcher.
11166 EGREP=$lt_EGREP
11167
11168 # The linker used to build libraries.
11169 LD=$lt_LD_RC
11170
11171 # Whether we need hard or soft links.
11172 LN_S=$lt_LN_S
11173
11174 # A BSD-compatible nm program.
11175 NM=$lt_NM
11176
11177 # A symbol stripping program
11178 STRIP=$lt_STRIP
11179
11180 # Used to examine libraries when file_magic_cmd begins "file"
11181 MAGIC_CMD=$MAGIC_CMD
11182
11183 # Used on cygwin: DLL creation program.
11184 DLLTOOL="$DLLTOOL"
11185
11186 # Used on cygwin: object dumper.
11187 OBJDUMP="$OBJDUMP"
11188
11189 # Used on cygwin: assembler.
11190 AS="$AS"
11191
11192 # The name of the directory that contains temporary libtool files.
11193 objdir=$objdir
11194
11195 # How to create reloadable object files.
11196 reload_flag=$lt_reload_flag
11197 reload_cmds=$lt_reload_cmds
11198
11199 # How to pass a linker flag through the compiler.
11200 wl=$lt_lt_prog_compiler_wl_RC
11201
11202 # Object file suffix (normally "o").
11203 objext="$ac_objext"
11204
11205 # Old archive suffix (normally "a").
11206 libext="$libext"
11207
11208 # Shared library suffix (normally ".so").
11209 shrext_cmds='$shrext_cmds'
11210
11211 # Executable file suffix (normally "").
11212 exeext="$exeext"
11213
11214 # Additional compiler flags for building library objects.
11215 pic_flag=$lt_lt_prog_compiler_pic_RC
11216 pic_mode=$pic_mode
11217
11218 # What is the maximum length of a command?
11219 max_cmd_len=$lt_cv_sys_max_cmd_len
11220
11221 # Does compiler simultaneously support -c and -o options?
11222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11223
11224 # Must we lock files when doing compilation?
11225 need_locks=$lt_need_locks
11226
11227 # Do we need the lib prefix for modules?
11228 need_lib_prefix=$need_lib_prefix
11229
11230 # Do we need a version for libraries?
11231 need_version=$need_version
11232
11233 # Whether dlopen is supported.
11234 dlopen_support=$enable_dlopen
11235
11236 # Whether dlopen of programs is supported.
11237 dlopen_self=$enable_dlopen_self
11238
11239 # Whether dlopen of statically linked programs is supported.
11240 dlopen_self_static=$enable_dlopen_self_static
11241
11242 # Compiler flag to prevent dynamic linking.
11243 link_static_flag=$lt_lt_prog_compiler_static_RC
11244
11245 # Compiler flag to turn off builtin functions.
11246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11247
11248 # Compiler flag to allow reflexive dlopens.
11249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11250
11251 # Compiler flag to generate shared objects directly from archives.
11252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11253
11254 # Compiler flag to generate thread-safe objects.
11255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11256
11257 # Library versioning type.
11258 version_type=$version_type
11259
11260 # Format of library name prefix.
11261 libname_spec=$lt_libname_spec
11262
11263 # List of archive names.  First name is the real one, the rest are links.
11264 # The last name is the one that the linker finds with -lNAME.
11265 library_names_spec=$lt_library_names_spec
11266
11267 # The coded name of the library, if different from the real name.
11268 soname_spec=$lt_soname_spec
11269
11270 # Commands used to build and install an old-style archive.
11271 RANLIB=$lt_RANLIB
11272 old_archive_cmds=$lt_old_archive_cmds_RC
11273 old_postinstall_cmds=$lt_old_postinstall_cmds
11274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11275
11276 # Create an old-style archive from a shared archive.
11277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11278
11279 # Create a temporary old-style archive to link instead of a shared archive.
11280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11281
11282 # Commands used to build and install a shared archive.
11283 archive_cmds=$lt_archive_cmds_RC
11284 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11285 postinstall_cmds=$lt_postinstall_cmds
11286 postuninstall_cmds=$lt_postuninstall_cmds
11287
11288 # Commands used to build a loadable module (assumed same as above if empty)
11289 module_cmds=$lt_module_cmds_RC
11290 module_expsym_cmds=$lt_module_expsym_cmds_RC
11291
11292 # Commands to strip libraries.
11293 old_striplib=$lt_old_striplib
11294 striplib=$lt_striplib
11295
11296 # Dependencies to place before the objects being linked to create a
11297 # shared library.
11298 predep_objects=$lt_predep_objects_RC
11299
11300 # Dependencies to place after the objects being linked to create a
11301 # shared library.
11302 postdep_objects=$lt_postdep_objects_RC
11303
11304 # Dependencies to place before the objects being linked to create a
11305 # shared library.
11306 predeps=$lt_predeps_RC
11307
11308 # Dependencies to place after the objects being linked to create a
11309 # shared library.
11310 postdeps=$lt_postdeps_RC
11311
11312 # The library search path used internally by the compiler when linking
11313 # a shared library.
11314 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11315
11316 # Method to check whether dependent libraries are shared objects.
11317 deplibs_check_method=$lt_deplibs_check_method
11318
11319 # Command to use when deplibs_check_method == file_magic.
11320 file_magic_cmd=$lt_file_magic_cmd
11321
11322 # Flag that allows shared libraries with undefined symbols to be built.
11323 allow_undefined_flag=$lt_allow_undefined_flag_RC
11324
11325 # Flag that forces no undefined symbols.
11326 no_undefined_flag=$lt_no_undefined_flag_RC
11327
11328 # Commands used to finish a libtool library installation in a directory.
11329 finish_cmds=$lt_finish_cmds
11330
11331 # Same as above, but a single script fragment to be evaled but not shown.
11332 finish_eval=$lt_finish_eval
11333
11334 # Take the output of nm and produce a listing of raw symbols and C names.
11335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11336
11337 # Transform the output of nm in a proper C declaration
11338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11339
11340 # Transform the output of nm in a C name address pair
11341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11342
11343 # This is the shared library runtime path variable.
11344 runpath_var=$runpath_var
11345
11346 # This is the shared library path variable.
11347 shlibpath_var=$shlibpath_var
11348
11349 # Is shlibpath searched before the hard-coded library search path?
11350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11351
11352 # How to hardcode a shared library path into an executable.
11353 hardcode_action=$hardcode_action_RC
11354
11355 # Whether we should hardcode library paths into libraries.
11356 hardcode_into_libs=$hardcode_into_libs
11357
11358 # Flag to hardcode \$libdir into a binary during linking.
11359 # This must work even if \$libdir does not exist.
11360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11361
11362 # If ld is used when linking, flag to hardcode \$libdir into
11363 # a binary during linking. This must work even if \$libdir does
11364 # not exist.
11365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11366
11367 # Whether we need a single -rpath flag with a separated argument.
11368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11369
11370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11371 # resulting binary.
11372 hardcode_direct=$hardcode_direct_RC
11373
11374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11375 # resulting binary.
11376 hardcode_minus_L=$hardcode_minus_L_RC
11377
11378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11379 # the resulting binary.
11380 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11381
11382 # Set to yes if building a shared library automatically hardcodes DIR into the library
11383 # and all subsequent libraries and executables linked against it.
11384 hardcode_automatic=$hardcode_automatic_RC
11385
11386 # Variables whose values should be saved in libtool wrapper scripts and
11387 # restored at relink time.
11388 variables_saved_for_relink="$variables_saved_for_relink"
11389
11390 # Whether libtool must link a program against all its dependency libraries.
11391 link_all_deplibs=$link_all_deplibs_RC
11392
11393 # Compile-time system search path for libraries
11394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11395
11396 # Run-time system search path for libraries
11397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11398
11399 # Fix the shell variable \$srcfile for the compiler.
11400 fix_srcfile_path="$fix_srcfile_path_RC"
11401
11402 # Set to yes if exported symbols are required.
11403 always_export_symbols=$always_export_symbols_RC
11404
11405 # The commands to list exported symbols.
11406 export_symbols_cmds=$lt_export_symbols_cmds_RC
11407
11408 # The commands to extract the exported symbol list from a shared archive.
11409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11410
11411 # Symbols that should not be listed in the preloaded symbols.
11412 exclude_expsyms=$lt_exclude_expsyms_RC
11413
11414 # Symbols that must always be exported.
11415 include_expsyms=$lt_include_expsyms_RC
11416
11417 # ### END LIBTOOL TAG CONFIG: $tagname
11418
11419 __EOF__
11420
11421
11422 else
11423   # If there is no Makefile yet, we rely on a make rule to execute
11424   # `config.status --recheck' to rerun these tests and create the
11425   # libtool script then.
11426   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11427   if test -f "$ltmain_in"; then
11428     test -f Makefile && make "$ltmain"
11429   fi
11430 fi
11431
11432
11433 ac_ext=c
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438
11439 CC="$lt_save_CC"
11440
11441         ;;
11442
11443       *)
11444         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11445 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11446    { (exit 1); exit 1; }; }
11447         ;;
11448       esac
11449
11450       # Append the new tag name to the list of available tags.
11451       if test -n "$tagname" ; then
11452       available_tags="$available_tags $tagname"
11453     fi
11454     fi
11455   done
11456   IFS="$lt_save_ifs"
11457
11458   # Now substitute the updated list of available tags.
11459   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11460     mv "${ofile}T" "$ofile"
11461     chmod +x "$ofile"
11462   else
11463     rm -f "${ofile}T"
11464     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11465 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11466    { (exit 1); exit 1; }; }
11467   fi
11468 fi
11469
11470
11471
11472 # This can be used to rebuild libtool when needed
11473 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11474
11475 # Always use our own libtool.
11476 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11477
11478 # Prevent multiple expansion
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489 ol_link_perl=no
11490 if test $ol_enable_perl != no ; then
11491         # Extract the first word of "perl", so it can be a program name with args.
11492 set dummy perl; ac_word=$2
11493 echo "$as_me:$LINENO: checking for $ac_word" >&5
11494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11495 if test "${ac_cv_path_PERLBIN+set}" = set; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   case $PERLBIN in
11499   [\\/]* | ?:[\\/]*)
11500   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11501   ;;
11502   *)
11503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506   IFS=$as_save_IFS
11507   test -z "$as_dir" && as_dir=.
11508   for ac_exec_ext in '' $ac_executable_extensions; do
11509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512     break 2
11513   fi
11514 done
11515 done
11516
11517   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11518   ;;
11519 esac
11520 fi
11521 PERLBIN=$ac_cv_path_PERLBIN
11522
11523 if test -n "$PERLBIN"; then
11524   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11525 echo "${ECHO_T}$PERLBIN" >&6
11526 else
11527   echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11529 fi
11530
11531
11532         if test "no$PERLBIN" = "no" ; then
11533                 if test $ol_enable_perl = yes ; then
11534                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11535 echo "$as_me: error: could not locate perl" >&2;}
11536    { (exit 1); exit 1; }; }
11537                 fi
11538
11539         else
11540                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11541                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11542
11543                 if test x"$ol_enable_perl" = "xyes" ; then
11544                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11545                 else
11546                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11547                 fi
11548                                 ol_link_perl=yes
11549         fi
11550 fi
11551
11552 ac_ext=c
11553 ac_cpp='$CPP $CPPFLAGS'
11554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11557 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11558 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11559 # On Suns, sometimes $CPP names a directory.
11560 if test -n "$CPP" && test -d "$CPP"; then
11561   CPP=
11562 fi
11563 if test -z "$CPP"; then
11564   if test "${ac_cv_prog_CPP+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567       # Double quotes because CPP needs to be expanded
11568     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11569     do
11570       ac_preproc_ok=false
11571 for ac_c_preproc_warn_flag in '' yes
11572 do
11573   # Use a header file that comes with gcc, so configuring glibc
11574   # with a fresh cross-compiler works.
11575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576   # <limits.h> exists even on freestanding compilers.
11577   # On the NeXT, cc -E runs the code through the compiler's parser,
11578   # not just through cpp. "Syntax error" is here to catch this case.
11579   cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h.  */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h.  */
11585 #ifdef __STDC__
11586 # include <limits.h>
11587 #else
11588 # include <assert.h>
11589 #endif
11590                      Syntax error
11591 _ACEOF
11592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } >/dev/null; then
11600   if test -s conftest.err; then
11601     ac_cpp_err=$ac_c_preproc_warn_flag
11602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11603   else
11604     ac_cpp_err=
11605   fi
11606 else
11607   ac_cpp_err=yes
11608 fi
11609 if test -z "$ac_cpp_err"; then
11610   :
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615   # Broken: fails on valid input.
11616 continue
11617 fi
11618 rm -f conftest.err conftest.$ac_ext
11619
11620   # OK, works on sane cases.  Now check whether non-existent headers
11621   # can be detected and how.
11622   cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628 #include <ac_nonexistent.h>
11629 _ACEOF
11630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } >/dev/null; then
11638   if test -s conftest.err; then
11639     ac_cpp_err=$ac_c_preproc_warn_flag
11640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11641   else
11642     ac_cpp_err=
11643   fi
11644 else
11645   ac_cpp_err=yes
11646 fi
11647 if test -z "$ac_cpp_err"; then
11648   # Broken: success on invalid input.
11649 continue
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654   # Passes both tests.
11655 ac_preproc_ok=:
11656 break
11657 fi
11658 rm -f conftest.err conftest.$ac_ext
11659
11660 done
11661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11662 rm -f conftest.err conftest.$ac_ext
11663 if $ac_preproc_ok; then
11664   break
11665 fi
11666
11667     done
11668     ac_cv_prog_CPP=$CPP
11669
11670 fi
11671   CPP=$ac_cv_prog_CPP
11672 else
11673   ac_cv_prog_CPP=$CPP
11674 fi
11675 echo "$as_me:$LINENO: result: $CPP" >&5
11676 echo "${ECHO_T}$CPP" >&6
11677 ac_preproc_ok=false
11678 for ac_c_preproc_warn_flag in '' yes
11679 do
11680   # Use a header file that comes with gcc, so configuring glibc
11681   # with a fresh cross-compiler works.
11682   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11683   # <limits.h> exists even on freestanding compilers.
11684   # On the NeXT, cc -E runs the code through the compiler's parser,
11685   # not just through cpp. "Syntax error" is here to catch this case.
11686   cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 #ifdef __STDC__
11693 # include <limits.h>
11694 #else
11695 # include <assert.h>
11696 #endif
11697                      Syntax error
11698 _ACEOF
11699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } >/dev/null; then
11707   if test -s conftest.err; then
11708     ac_cpp_err=$ac_c_preproc_warn_flag
11709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11710   else
11711     ac_cpp_err=
11712   fi
11713 else
11714   ac_cpp_err=yes
11715 fi
11716 if test -z "$ac_cpp_err"; then
11717   :
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722   # Broken: fails on valid input.
11723 continue
11724 fi
11725 rm -f conftest.err conftest.$ac_ext
11726
11727   # OK, works on sane cases.  Now check whether non-existent headers
11728   # can be detected and how.
11729   cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 #include <ac_nonexistent.h>
11736 _ACEOF
11737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11739   ac_status=$?
11740   grep -v '^ *+' conftest.er1 >conftest.err
11741   rm -f conftest.er1
11742   cat conftest.err >&5
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } >/dev/null; then
11745   if test -s conftest.err; then
11746     ac_cpp_err=$ac_c_preproc_warn_flag
11747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11748   else
11749     ac_cpp_err=
11750   fi
11751 else
11752   ac_cpp_err=yes
11753 fi
11754 if test -z "$ac_cpp_err"; then
11755   # Broken: success on invalid input.
11756 continue
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761   # Passes both tests.
11762 ac_preproc_ok=:
11763 break
11764 fi
11765 rm -f conftest.err conftest.$ac_ext
11766
11767 done
11768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11769 rm -f conftest.err conftest.$ac_ext
11770 if $ac_preproc_ok; then
11771   :
11772 else
11773   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11774 See \`config.log' for more details." >&5
11775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11776 See \`config.log' for more details." >&2;}
11777    { (exit 1); exit 1; }; }
11778 fi
11779
11780 ac_ext=c
11781 ac_cpp='$CPP $CPPFLAGS'
11782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11785
11786
11787 case $host_os in
11788   *mingw32* ) ac_cv_mingw32=yes ;;
11789   *cygwin* ) ac_cv_cygwin=yes ;;
11790 esac
11791
11792
11793
11794
11795 cat >>confdefs.h <<_ACEOF
11796 #define EXEEXT "${EXEEXT}"
11797 _ACEOF
11798
11799
11800 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11801 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11802 if test "${ac_cv_lib_be_be_app+set}" = set; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805   ac_check_lib_save_LIBS=$LIBS
11806 LIBS="-lbe -lroot -lnet $LIBS"
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813
11814 /* Override any gcc2 internal prototype to avoid an error.  */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 /* We use char because int might match the return type of a gcc2
11819    builtin and then its argument prototype would still apply.  */
11820 char be_app ();
11821 int
11822 main ()
11823 {
11824 be_app ();
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 rm -f conftest.$ac_objext conftest$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831   (eval $ac_link) 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } &&
11838          { ac_try='test -z "$ac_c_werror_flag"
11839                          || test ! -s conftest.err'
11840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841   (eval $ac_try) 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; } &&
11845          { ac_try='test -s conftest$ac_exeext'
11846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847   (eval $ac_try) 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; }; then
11851   ac_cv_lib_be_be_app=yes
11852 else
11853   echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856 ac_cv_lib_be_be_app=no
11857 fi
11858 rm -f conftest.err conftest.$ac_objext \
11859       conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11863 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11864 if test $ac_cv_lib_be_be_app = yes; then
11865   LIBS="$LIBS -lbe -lroot -lnet"
11866 else
11867   :
11868 fi
11869
11870
11871 ac_ext=c
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876 if test -n "$ac_tool_prefix"; then
11877   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11879 echo "$as_me:$LINENO: checking for $ac_word" >&5
11880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11881 if test "${ac_cv_prog_CC+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   if test -n "$CC"; then
11885   ac_cv_prog_CC="$CC" # Let the user override the test.
11886 else
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11889 do
11890   IFS=$as_save_IFS
11891   test -z "$as_dir" && as_dir=.
11892   for ac_exec_ext in '' $ac_executable_extensions; do
11893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11896     break 2
11897   fi
11898 done
11899 done
11900
11901 fi
11902 fi
11903 CC=$ac_cv_prog_CC
11904 if test -n "$CC"; then
11905   echo "$as_me:$LINENO: result: $CC" >&5
11906 echo "${ECHO_T}$CC" >&6
11907 else
11908   echo "$as_me:$LINENO: result: no" >&5
11909 echo "${ECHO_T}no" >&6
11910 fi
11911
11912 fi
11913 if test -z "$ac_cv_prog_CC"; then
11914   ac_ct_CC=$CC
11915   # Extract the first word of "gcc", so it can be a program name with args.
11916 set dummy gcc; ac_word=$2
11917 echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   if test -n "$ac_ct_CC"; then
11923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930   for ac_exec_ext in '' $ac_executable_extensions; do
11931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932     ac_cv_prog_ac_ct_CC="gcc"
11933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937 done
11938
11939 fi
11940 fi
11941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11942 if test -n "$ac_ct_CC"; then
11943   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11944 echo "${ECHO_T}$ac_ct_CC" >&6
11945 else
11946   echo "$as_me:$LINENO: result: no" >&5
11947 echo "${ECHO_T}no" >&6
11948 fi
11949
11950   CC=$ac_ct_CC
11951 else
11952   CC="$ac_cv_prog_CC"
11953 fi
11954
11955 if test -z "$CC"; then
11956   if test -n "$ac_tool_prefix"; then
11957   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11958 set dummy ${ac_tool_prefix}cc; ac_word=$2
11959 echo "$as_me:$LINENO: checking for $ac_word" >&5
11960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11961 if test "${ac_cv_prog_CC+set}" = set; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   if test -n "$CC"; then
11965   ac_cv_prog_CC="$CC" # Let the user override the test.
11966 else
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11969 do
11970   IFS=$as_save_IFS
11971   test -z "$as_dir" && as_dir=.
11972   for ac_exec_ext in '' $ac_executable_extensions; do
11973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974     ac_cv_prog_CC="${ac_tool_prefix}cc"
11975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11976     break 2
11977   fi
11978 done
11979 done
11980
11981 fi
11982 fi
11983 CC=$ac_cv_prog_CC
11984 if test -n "$CC"; then
11985   echo "$as_me:$LINENO: result: $CC" >&5
11986 echo "${ECHO_T}$CC" >&6
11987 else
11988   echo "$as_me:$LINENO: result: no" >&5
11989 echo "${ECHO_T}no" >&6
11990 fi
11991
11992 fi
11993 if test -z "$ac_cv_prog_CC"; then
11994   ac_ct_CC=$CC
11995   # Extract the first word of "cc", so it can be a program name with args.
11996 set dummy cc; ac_word=$2
11997 echo "$as_me:$LINENO: checking for $ac_word" >&5
11998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   if test -n "$ac_ct_CC"; then
12003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12004 else
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12007 do
12008   IFS=$as_save_IFS
12009   test -z "$as_dir" && as_dir=.
12010   for ac_exec_ext in '' $ac_executable_extensions; do
12011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12012     ac_cv_prog_ac_ct_CC="cc"
12013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014     break 2
12015   fi
12016 done
12017 done
12018
12019 fi
12020 fi
12021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12022 if test -n "$ac_ct_CC"; then
12023   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12024 echo "${ECHO_T}$ac_ct_CC" >&6
12025 else
12026   echo "$as_me:$LINENO: result: no" >&5
12027 echo "${ECHO_T}no" >&6
12028 fi
12029
12030   CC=$ac_ct_CC
12031 else
12032   CC="$ac_cv_prog_CC"
12033 fi
12034
12035 fi
12036 if test -z "$CC"; then
12037   # Extract the first word of "cc", so it can be a program name with args.
12038 set dummy cc; ac_word=$2
12039 echo "$as_me:$LINENO: checking for $ac_word" >&5
12040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12041 if test "${ac_cv_prog_CC+set}" = set; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   if test -n "$CC"; then
12045   ac_cv_prog_CC="$CC" # Let the user override the test.
12046 else
12047   ac_prog_rejected=no
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12050 do
12051   IFS=$as_save_IFS
12052   test -z "$as_dir" && as_dir=.
12053   for ac_exec_ext in '' $ac_executable_extensions; do
12054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12056        ac_prog_rejected=yes
12057        continue
12058      fi
12059     ac_cv_prog_CC="cc"
12060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12061     break 2
12062   fi
12063 done
12064 done
12065
12066 if test $ac_prog_rejected = yes; then
12067   # We found a bogon in the path, so make sure we never use it.
12068   set dummy $ac_cv_prog_CC
12069   shift
12070   if test $# != 0; then
12071     # We chose a different compiler from the bogus one.
12072     # However, it has the same basename, so the bogon will be chosen
12073     # first if we set CC to just the basename; use the full file name.
12074     shift
12075     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12076   fi
12077 fi
12078 fi
12079 fi
12080 CC=$ac_cv_prog_CC
12081 if test -n "$CC"; then
12082   echo "$as_me:$LINENO: result: $CC" >&5
12083 echo "${ECHO_T}$CC" >&6
12084 else
12085   echo "$as_me:$LINENO: result: no" >&5
12086 echo "${ECHO_T}no" >&6
12087 fi
12088
12089 fi
12090 if test -z "$CC"; then
12091   if test -n "$ac_tool_prefix"; then
12092   for ac_prog in cl
12093   do
12094     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12096 echo "$as_me:$LINENO: checking for $ac_word" >&5
12097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12098 if test "${ac_cv_prog_CC+set}" = set; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101   if test -n "$CC"; then
12102   ac_cv_prog_CC="$CC" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107   IFS=$as_save_IFS
12108   test -z "$as_dir" && as_dir=.
12109   for ac_exec_ext in '' $ac_executable_extensions; do
12110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113     break 2
12114   fi
12115 done
12116 done
12117
12118 fi
12119 fi
12120 CC=$ac_cv_prog_CC
12121 if test -n "$CC"; then
12122   echo "$as_me:$LINENO: result: $CC" >&5
12123 echo "${ECHO_T}$CC" >&6
12124 else
12125   echo "$as_me:$LINENO: result: no" >&5
12126 echo "${ECHO_T}no" >&6
12127 fi
12128
12129     test -n "$CC" && break
12130   done
12131 fi
12132 if test -z "$CC"; then
12133   ac_ct_CC=$CC
12134   for ac_prog in cl
12135 do
12136   # Extract the first word of "$ac_prog", so it can be a program name with args.
12137 set dummy $ac_prog; ac_word=$2
12138 echo "$as_me:$LINENO: checking for $ac_word" >&5
12139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   if test -n "$ac_ct_CC"; then
12144   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12145 else
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12148 do
12149   IFS=$as_save_IFS
12150   test -z "$as_dir" && as_dir=.
12151   for ac_exec_ext in '' $ac_executable_extensions; do
12152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153     ac_cv_prog_ac_ct_CC="$ac_prog"
12154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12155     break 2
12156   fi
12157 done
12158 done
12159
12160 fi
12161 fi
12162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12163 if test -n "$ac_ct_CC"; then
12164   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12165 echo "${ECHO_T}$ac_ct_CC" >&6
12166 else
12167   echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6
12169 fi
12170
12171   test -n "$ac_ct_CC" && break
12172 done
12173
12174   CC=$ac_ct_CC
12175 fi
12176
12177 fi
12178
12179
12180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12181 See \`config.log' for more details." >&5
12182 echo "$as_me: error: no acceptable C compiler found in \$PATH
12183 See \`config.log' for more details." >&2;}
12184    { (exit 1); exit 1; }; }
12185
12186 # Provide some information about the compiler.
12187 echo "$as_me:$LINENO:" \
12188      "checking for C compiler version" >&5
12189 ac_compiler=`set X $ac_compile; echo $2`
12190 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12191   (eval $ac_compiler --version </dev/null >&5) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }
12195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12196   (eval $ac_compiler -v </dev/null >&5) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }
12200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12201   (eval $ac_compiler -V </dev/null >&5) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }
12205
12206 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12207 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12208 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217
12218 int
12219 main ()
12220 {
12221 #ifndef __GNUC__
12222        choke me
12223 #endif
12224
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231   (eval $ac_compile) 2>conftest.er1
12232   ac_status=$?
12233   grep -v '^ *+' conftest.er1 >conftest.err
12234   rm -f conftest.er1
12235   cat conftest.err >&5
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } &&
12238          { ac_try='test -z "$ac_c_werror_flag"
12239                          || test ! -s conftest.err'
12240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241   (eval $ac_try) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; } &&
12245          { ac_try='test -s conftest.$ac_objext'
12246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247   (eval $ac_try) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; }; then
12251   ac_compiler_gnu=yes
12252 else
12253   echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_compiler_gnu=no
12257 fi
12258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12260
12261 fi
12262 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12264 GCC=`test $ac_compiler_gnu = yes && echo yes`
12265 ac_test_CFLAGS=${CFLAGS+set}
12266 ac_save_CFLAGS=$CFLAGS
12267 CFLAGS="-g"
12268 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12270 if test "${ac_cv_prog_cc_g+set}" = set; then
12271   echo $ECHO_N "(cached) $ECHO_C" >&6
12272 else
12273   cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h.  */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h.  */
12279
12280 int
12281 main ()
12282 {
12283
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290   (eval $ac_compile) 2>conftest.er1
12291   ac_status=$?
12292   grep -v '^ *+' conftest.er1 >conftest.err
12293   rm -f conftest.er1
12294   cat conftest.err >&5
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } &&
12297          { ac_try='test -z "$ac_c_werror_flag"
12298                          || test ! -s conftest.err'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; } &&
12304          { ac_try='test -s conftest.$ac_objext'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310   ac_cv_prog_cc_g=yes
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_prog_cc_g=no
12316 fi
12317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12318 fi
12319 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12320 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12321 if test "$ac_test_CFLAGS" = set; then
12322   CFLAGS=$ac_save_CFLAGS
12323 elif test $ac_cv_prog_cc_g = yes; then
12324   if test "$GCC" = yes; then
12325     CFLAGS="-g -O2"
12326   else
12327     CFLAGS="-g"
12328   fi
12329 else
12330   if test "$GCC" = yes; then
12331     CFLAGS="-O2"
12332   else
12333     CFLAGS=
12334   fi
12335 fi
12336 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12337 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12338 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   ac_cv_prog_cc_stdc=no
12342 ac_save_CC=$CC
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 #include <stdarg.h>
12350 #include <stdio.h>
12351 #include <sys/types.h>
12352 #include <sys/stat.h>
12353 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12354 struct buf { int x; };
12355 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12356 static char *e (p, i)
12357      char **p;
12358      int i;
12359 {
12360   return p[i];
12361 }
12362 static char *f (char * (*g) (char **, int), char **p, ...)
12363 {
12364   char *s;
12365   va_list v;
12366   va_start (v,p);
12367   s = g (p, va_arg (v,int));
12368   va_end (v);
12369   return s;
12370 }
12371
12372 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12373    function prototypes and stuff, but not '\xHH' hex character constants.
12374    These don't provoke an error unfortunately, instead are silently treated
12375    as 'x'.  The following induces an error, until -std1 is added to get
12376    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12377    array size at least.  It's necessary to write '\x00'==0 to get something
12378    that's true only with -std1.  */
12379 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12380
12381 int test (int i, double x);
12382 struct s1 {int (*f) (int a);};
12383 struct s2 {int (*f) (double a);};
12384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12385 int argc;
12386 char **argv;
12387 int
12388 main ()
12389 {
12390 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 # Don't try gcc -ansi; that turns off useful extensions and
12396 # breaks some systems' header files.
12397 # AIX                   -qlanglvl=ansi
12398 # Ultrix and OSF/1      -std1
12399 # HP-UX 10.20 and later -Ae
12400 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12401 # SVR4                  -Xc -D__EXTENSIONS__
12402 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12403 do
12404   CC="$ac_save_CC $ac_arg"
12405   rm -f conftest.$ac_objext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407   (eval $ac_compile) 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } &&
12414          { ac_try='test -z "$ac_c_werror_flag"
12415                          || test ! -s conftest.err'
12416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417   (eval $ac_try) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; } &&
12421          { ac_try='test -s conftest.$ac_objext'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; }; then
12427   ac_cv_prog_cc_stdc=$ac_arg
12428 break
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 fi
12434 rm -f conftest.err conftest.$ac_objext
12435 done
12436 rm -f conftest.$ac_ext conftest.$ac_objext
12437 CC=$ac_save_CC
12438
12439 fi
12440
12441 case "x$ac_cv_prog_cc_stdc" in
12442   x|xno)
12443     echo "$as_me:$LINENO: result: none needed" >&5
12444 echo "${ECHO_T}none needed" >&6 ;;
12445   *)
12446     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12447 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12448     CC="$CC $ac_cv_prog_cc_stdc" ;;
12449 esac
12450
12451 # Some people use a C++ compiler to compile C.  Since we use `exit',
12452 # in C++ we need to declare it.  In case someone uses the same compiler
12453 # for both compiling C and C++ we need to have the C++ compiler decide
12454 # the declaration of exit, since it's the most demanding environment.
12455 cat >conftest.$ac_ext <<_ACEOF
12456 #ifndef __cplusplus
12457   choke me
12458 #endif
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462   (eval $ac_compile) 2>conftest.er1
12463   ac_status=$?
12464   grep -v '^ *+' conftest.er1 >conftest.err
12465   rm -f conftest.er1
12466   cat conftest.err >&5
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -z "$ac_c_werror_flag"
12470                          || test ! -s conftest.err'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; } &&
12476          { ac_try='test -s conftest.$ac_objext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   for ac_declaration in \
12483    '' \
12484    'extern "C" void std::exit (int) throw (); using std::exit;' \
12485    'extern "C" void std::exit (int); using std::exit;' \
12486    'extern "C" void exit (int) throw ();' \
12487    'extern "C" void exit (int);' \
12488    'void exit (int);'
12489 do
12490   cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496 $ac_declaration
12497 #include <stdlib.h>
12498 int
12499 main ()
12500 {
12501 exit (42);
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508   (eval $ac_compile) 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -z "$ac_c_werror_flag"
12516                          || test ! -s conftest.err'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; } &&
12522          { ac_try='test -s conftest.$ac_objext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   :
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 continue
12534 fi
12535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12536   cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542 $ac_declaration
12543 int
12544 main ()
12545 {
12546 exit (42);
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553   (eval $ac_compile) 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_c_werror_flag"
12561                          || test ! -s conftest.err'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest.$ac_objext'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573   break
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 fi
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 done
12581 rm -f conftest*
12582 if test -n "$ac_declaration"; then
12583   echo '#ifdef __cplusplus' >>confdefs.h
12584   echo $ac_declaration      >>confdefs.h
12585   echo '#endif'             >>confdefs.h
12586 fi
12587
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 fi
12593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12594 ac_ext=c
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12599
12600 depcc="$CC"   am_compiler_list=
12601
12602 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12603 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12604 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12608   # We make a subdir and do the tests there.  Otherwise we can end up
12609   # making bogus files that we don't know about and never remove.  For
12610   # instance it was reported that on HP-UX the gcc test will end up
12611   # making a dummy file named `D' -- because `-MD' means `put the output
12612   # in D'.
12613   mkdir conftest.dir
12614   # Copy depcomp to subdir because otherwise we won't find it if we're
12615   # using a relative directory.
12616   cp "$am_depcomp" conftest.dir
12617   cd conftest.dir
12618   # We will build objects and dependencies in a subdirectory because
12619   # it helps to detect inapplicable dependency modes.  For instance
12620   # both Tru64's cc and ICC support -MD to output dependencies as a
12621   # side effect of compilation, but ICC will put the dependencies in
12622   # the current directory while Tru64 will put them in the object
12623   # directory.
12624   mkdir sub
12625
12626   am_cv_CC_dependencies_compiler_type=none
12627   if test "$am_compiler_list" = ""; then
12628      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12629   fi
12630   for depmode in $am_compiler_list; do
12631     # Setup a source with many dependencies, because some compilers
12632     # like to wrap large dependency lists on column 80 (with \), and
12633     # we should not choose a depcomp mode which is confused by this.
12634     #
12635     # We need to recreate these files for each test, as the compiler may
12636     # overwrite some of them when testing with obscure command lines.
12637     # This happens at least with the AIX C compiler.
12638     : > sub/conftest.c
12639     for i in 1 2 3 4 5 6; do
12640       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12641       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12642       # Solaris 8's {/usr,}/bin/sh.
12643       touch sub/conftst$i.h
12644     done
12645     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12646
12647     case $depmode in
12648     nosideeffect)
12649       # after this tag, mechanisms are not by side-effect, so they'll
12650       # only be used when explicitly requested
12651       if test "x$enable_dependency_tracking" = xyes; then
12652         continue
12653       else
12654         break
12655       fi
12656       ;;
12657     none) break ;;
12658     esac
12659     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12660     # mode.  It turns out that the SunPro C++ compiler does not properly
12661     # handle `-M -o', and we need to detect this.
12662     if depmode=$depmode \
12663        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12664        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12665        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12666          >/dev/null 2>conftest.err &&
12667        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12668        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12669        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12670       # icc doesn't choke on unknown options, it will just issue warnings
12671       # or remarks (even with -Werror).  So we grep stderr for any message
12672       # that says an option was ignored or not supported.
12673       # When given -MP, icc 7.0 and 7.1 complain thusly:
12674       #   icc: Command line warning: ignoring option '-M'; no argument required
12675       # The diagnosis changed in icc 8.0:
12676       #   icc: Command line remark: option '-MP' not supported
12677       if (grep 'ignoring option' conftest.err ||
12678           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12679         am_cv_CC_dependencies_compiler_type=$depmode
12680         break
12681       fi
12682     fi
12683   done
12684
12685   cd ..
12686   rm -rf conftest.dir
12687 else
12688   am_cv_CC_dependencies_compiler_type=none
12689 fi
12690
12691 fi
12692 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12693 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12694 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12695
12696
12697
12698 if
12699   test "x$enable_dependency_tracking" != xno \
12700   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12701   am__fastdepCC_TRUE=
12702   am__fastdepCC_FALSE='#'
12703 else
12704   am__fastdepCC_TRUE='#'
12705   am__fastdepCC_FALSE=
12706 fi
12707
12708
12709 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12710         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12711 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12712    { (exit 1); exit 1; }; }
12713 fi
12714
12715 # test for make depend flag
12716 OL_MKDEP=
12717 OL_MKDEP_FLAGS=
12718 if test -z "${MKDEP}"; then
12719         OL_MKDEP="${CC-cc}"
12720         if test -z "${MKDEP_FLAGS}"; then
12721                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12722 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12723 if test "${ol_cv_mkdep+set}" = set; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726
12727                         ol_cv_mkdep=no
12728                         for flag in "-M" "-xM"; do
12729                                 cat > conftest.c <<EOF
12730  noCode;
12731 EOF
12732                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734   (eval $ac_try) 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; } \
12738                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12739                                 then
12740                                         if test ! -f conftest."${ac_object}" ; then
12741                                                 ol_cv_mkdep=$flag
12742                                                 OL_MKDEP_FLAGS="$flag"
12743                                                 break
12744                                         fi
12745                                 fi
12746                         done
12747                         rm -f conftest*
12748
12749 fi
12750 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12751 echo "${ECHO_T}$ol_cv_mkdep" >&6
12752         else
12753                 cc_cv_mkdep=yes
12754                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12755         fi
12756 else
12757         cc_cv_mkdep=yes
12758         OL_MKDEP="${MKDEP}"
12759         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12760 fi
12761
12762
12763
12764 if test "${ol_cv_mkdep}" = no ; then
12765         # this will soon become an error
12766         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12767 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12768 fi
12769
12770 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12771 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12772 if test "${ac_cv_lib_s_afopen+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-ls  $LIBS"
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783
12784 /* Override any gcc2 internal prototype to avoid an error.  */
12785 #ifdef __cplusplus
12786 extern "C"
12787 #endif
12788 /* We use char because int might match the return type of a gcc2
12789    builtin and then its argument prototype would still apply.  */
12790 char afopen ();
12791 int
12792 main ()
12793 {
12794 afopen ();
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext conftest$ac_exeext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12801   (eval $ac_link) 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -z "$ac_c_werror_flag"
12809                          || test ! -s conftest.err'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; } &&
12815          { ac_try='test -s conftest$ac_exeext'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; }; then
12821   ac_cv_lib_s_afopen=yes
12822 else
12823   echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_cv_lib_s_afopen=no
12827 fi
12828 rm -f conftest.err conftest.$ac_objext \
12829       conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12831 fi
12832 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12833 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12834 if test $ac_cv_lib_s_afopen = yes; then
12835
12836         AUTH_LIBS=-ls
12837
12838 cat >>confdefs.h <<\_ACEOF
12839 #define HAVE_AIX_SECURITY 1
12840 _ACEOF
12841
12842
12843 fi
12844
12845
12846 case "$target" in
12847 *-ibm-openedition)
12848         ac_cv_func_getopt=no
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define BOTH_STRINGS_H 1
12852 _ACEOF
12853
12854         ;;
12855 esac
12856
12857 ol_link_modules=no
12858 WITH_MODULES_ENABLED=no
12859 if test $ol_enable_modules != no ; then
12860
12861 for ac_header in ltdl.h
12862 do
12863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12865   echo "$as_me:$LINENO: checking for $ac_header" >&5
12866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 fi
12870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12872 else
12873   # Is the header compilable?
12874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882 $ac_includes_default
12883 #include <$ac_header>
12884 _ACEOF
12885 rm -f conftest.$ac_objext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887   (eval $ac_compile) 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag"
12895                          || test ! -s conftest.err'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } &&
12901          { ac_try='test -s conftest.$ac_objext'
12902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903   (eval $ac_try) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; }; then
12907   ac_header_compiler=yes
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912 ac_header_compiler=no
12913 fi
12914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12916 echo "${ECHO_T}$ac_header_compiler" >&6
12917
12918 # Is the header present?
12919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927 #include <$ac_header>
12928 _ACEOF
12929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12931   ac_status=$?
12932   grep -v '^ *+' conftest.er1 >conftest.err
12933   rm -f conftest.er1
12934   cat conftest.err >&5
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); } >/dev/null; then
12937   if test -s conftest.err; then
12938     ac_cpp_err=$ac_c_preproc_warn_flag
12939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12940   else
12941     ac_cpp_err=
12942   fi
12943 else
12944   ac_cpp_err=yes
12945 fi
12946 if test -z "$ac_cpp_err"; then
12947   ac_header_preproc=yes
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952   ac_header_preproc=no
12953 fi
12954 rm -f conftest.err conftest.$ac_ext
12955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12956 echo "${ECHO_T}$ac_header_preproc" >&6
12957
12958 # So?  What about this header?
12959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12960   yes:no: )
12961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12965     ac_header_preproc=yes
12966     ;;
12967   no:yes:* )
12968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12980     (
12981       cat <<\_ASBOX
12982 ## --------------------------------------------- ##
12983 ## Report this to <http://www.openldap.org/its/> ##
12984 ## --------------------------------------------- ##
12985 _ASBOX
12986     ) |
12987       sed "s/^/$as_me: WARNING:     /" >&2
12988     ;;
12989 esac
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993   echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995   eval "$as_ac_Header=\$ac_header_preproc"
12996 fi
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12999
13000 fi
13001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13002   cat >>confdefs.h <<_ACEOF
13003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13004 _ACEOF
13005
13006 fi
13007
13008 done
13009
13010
13011         if test $ac_cv_header_ltdl_h = no ; then
13012                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13013 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13014    { (exit 1); exit 1; }; }
13015         fi
13016
13017         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13018 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13019 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-lltdl  $LIBS"
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h.  */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h.  */
13030
13031 /* Override any gcc2 internal prototype to avoid an error.  */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 /* We use char because int might match the return type of a gcc2
13036    builtin and then its argument prototype would still apply.  */
13037 char lt_dlinit ();
13038 int
13039 main ()
13040 {
13041 lt_dlinit ();
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13048   (eval $ac_link) 2>conftest.er1
13049   ac_status=$?
13050   grep -v '^ *+' conftest.er1 >conftest.err
13051   rm -f conftest.er1
13052   cat conftest.err >&5
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } &&
13055          { ac_try='test -z "$ac_c_werror_flag"
13056                          || test ! -s conftest.err'
13057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058   (eval $ac_try) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; } &&
13062          { ac_try='test -s conftest$ac_exeext'
13063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064   (eval $ac_try) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); }; }; then
13068   ac_cv_lib_ltdl_lt_dlinit=yes
13069 else
13070   echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ac_cv_lib_ltdl_lt_dlinit=no
13074 fi
13075 rm -f conftest.err conftest.$ac_objext \
13076       conftest$ac_exeext conftest.$ac_ext
13077 LIBS=$ac_check_lib_save_LIBS
13078 fi
13079 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13080 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13081 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13082
13083                 MODULES_LIBS=-lltdl
13084
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_LIBLTDL 1
13087 _ACEOF
13088
13089
13090 fi
13091
13092
13093         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13094                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13095 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13096    { (exit 1); exit 1; }; }
13097         fi
13098         ol_link_modules=yes
13099         WITH_MODULES_ENABLED=yes
13100
13101 else
13102         for i in $Backends; do
13103                 eval "ol_tmp=\$ol_enable_$i"
13104                 if test $ol_tmp = mod ; then
13105                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13106 echo "$as_me: WARNING: building static $i backend" >&2;}
13107                         eval "ol_enable_$i=yes"
13108                 fi
13109         done
13110         for i in $Overlays; do
13111                 eval "ol_tmp=\$ol_enable_$i"
13112                 if test $ol_tmp = mod ; then
13113                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13114 echo "$as_me: WARNING: building static $i overlay" >&2;}
13115                         eval "ol_enable_$i=yes"
13116                 fi
13117         done
13118 fi
13119
13120 # test for EBCDIC
13121 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13122 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13123 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126
13127         cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133
13134 #if !('M' == 0xd4)
13135 #include <__ASCII__/generate_error.h>
13136 #endif
13137
13138 _ACEOF
13139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } >/dev/null; then
13147   if test -s conftest.err; then
13148     ac_cpp_err=$ac_c_preproc_warn_flag
13149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13150   else
13151     ac_cpp_err=
13152   fi
13153 else
13154   ac_cpp_err=yes
13155 fi
13156 if test -z "$ac_cpp_err"; then
13157   ol_cv_cpp_ebcdic=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162   ol_cv_cpp_ebcdic=no
13163 fi
13164 rm -f conftest.err conftest.$ac_ext
13165 fi
13166 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13167 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13168 if test $ol_cv_cpp_ebcdic = yes ; then
13169
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAVE_EBCDIC 1
13172 _ACEOF
13173
13174 fi
13175
13176 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13178 if test "${ol_cv_header_stdc+set}" = set; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187 #include <stdlib.h>
13188 #include <stdarg.h>
13189 #include <string.h>
13190 #include <float.h>
13191 _ACEOF
13192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13194   ac_status=$?
13195   grep -v '^ *+' conftest.er1 >conftest.err
13196   rm -f conftest.er1
13197   cat conftest.err >&5
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } >/dev/null; then
13200   if test -s conftest.err; then
13201     ac_cpp_err=$ac_c_preproc_warn_flag
13202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13203   else
13204     ac_cpp_err=
13205   fi
13206 else
13207   ac_cpp_err=yes
13208 fi
13209 if test -z "$ac_cpp_err"; then
13210   ol_cv_header_stdc=yes
13211 else
13212   echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215   ol_cv_header_stdc=no
13216 fi
13217 rm -f conftest.err conftest.$ac_ext
13218
13219 if test $ol_cv_header_stdc = yes; then
13220   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 #include <string.h>
13228
13229 _ACEOF
13230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13231   $EGREP "memchr" >/dev/null 2>&1; then
13232   :
13233 else
13234   ol_cv_header_stdc=no
13235 fi
13236 rm -f conftest*
13237
13238 fi
13239
13240 if test $ol_cv_header_stdc = yes; then
13241   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 #include <stdlib.h>
13249
13250 _ACEOF
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252   $EGREP "free" >/dev/null 2>&1; then
13253   :
13254 else
13255   ol_cv_header_stdc=no
13256 fi
13257 rm -f conftest*
13258
13259 fi
13260
13261 if test $ol_cv_header_stdc = yes; then
13262   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13263 if test "$cross_compiling" = yes; then
13264   :
13265 else
13266   cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 #include <ctype.h>
13273 #ifndef HAVE_EBCDIC
13274 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13275 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13276 #else
13277 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13278                 || ('j' <= (c) && (c) <= 'r') \
13279                 || ('s' <= (c) && (c) <= 'z'))
13280 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13281 #endif
13282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13283 int main () { int i; for (i = 0; i < 256; i++)
13284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13285 exit (0); }
13286
13287 _ACEOF
13288 rm -f conftest$ac_exeext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13290   (eval $ac_link) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295   (eval $ac_try) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; }; then
13299   :
13300 else
13301   echo "$as_me: program exited with status $ac_status" >&5
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 ( exit $ac_status )
13306 ol_cv_header_stdc=no
13307 fi
13308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13309 fi
13310 fi
13311 fi
13312 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13313 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13314 if test $ol_cv_header_stdc = yes; then
13315   cat >>confdefs.h <<\_ACEOF
13316 #define STDC_HEADERS 1
13317 _ACEOF
13318
13319 fi
13320 ac_cv_header_stdc=disable
13321
13322
13323 if test $ol_cv_header_stdc != yes; then
13324         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13325 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13326 fi
13327
13328
13329
13330
13331
13332
13333 ac_header_dirent=no
13334 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13335   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13336 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13337 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 #include <sys/types.h>
13348 #include <$ac_hdr>
13349
13350 int
13351 main ()
13352 {
13353 if ((DIR *) 0)
13354 return 0;
13355   ;
13356   return 0;
13357 }
13358 _ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361   (eval $ac_compile) 2>conftest.er1
13362   ac_status=$?
13363   grep -v '^ *+' conftest.er1 >conftest.err
13364   rm -f conftest.er1
13365   cat conftest.err >&5
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } &&
13368          { ac_try='test -z "$ac_c_werror_flag"
13369                          || test ! -s conftest.err'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; } &&
13375          { ac_try='test -s conftest.$ac_objext'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   eval "$as_ac_Header=yes"
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386 eval "$as_ac_Header=no"
13387 fi
13388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389 fi
13390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13393   cat >>confdefs.h <<_ACEOF
13394 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13395 _ACEOF
13396
13397 ac_header_dirent=$ac_hdr; break
13398 fi
13399
13400 done
13401 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13402 if test $ac_header_dirent = dirent.h; then
13403   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13404 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13405 if test "${ac_cv_search_opendir+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   ac_func_search_save_LIBS=$LIBS
13409 ac_cv_search_opendir=no
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416
13417 /* Override any gcc2 internal prototype to avoid an error.  */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 /* We use char because int might match the return type of a gcc2
13422    builtin and then its argument prototype would still apply.  */
13423 char opendir ();
13424 int
13425 main ()
13426 {
13427 opendir ();
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434   (eval $ac_link) 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -z "$ac_c_werror_flag"
13442                          || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   ac_cv_search_opendir="none required"
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 fi
13460 rm -f conftest.err conftest.$ac_objext \
13461       conftest$ac_exeext conftest.$ac_ext
13462 if test "$ac_cv_search_opendir" = no; then
13463   for ac_lib in dir; do
13464     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13465     cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471
13472 /* Override any gcc2 internal prototype to avoid an error.  */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 /* We use char because int might match the return type of a gcc2
13477    builtin and then its argument prototype would still apply.  */
13478 char opendir ();
13479 int
13480 main ()
13481 {
13482 opendir ();
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489   (eval $ac_link) 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag"
13497                          || test ! -s conftest.err'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; } &&
13503          { ac_try='test -s conftest$ac_exeext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_search_opendir="-l$ac_lib"
13510 break
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 fi
13516 rm -f conftest.err conftest.$ac_objext \
13517       conftest$ac_exeext conftest.$ac_ext
13518   done
13519 fi
13520 LIBS=$ac_func_search_save_LIBS
13521 fi
13522 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13523 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13524 if test "$ac_cv_search_opendir" != no; then
13525   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13526
13527 fi
13528
13529 else
13530   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13531 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13532 if test "${ac_cv_search_opendir+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   ac_func_search_save_LIBS=$LIBS
13536 ac_cv_search_opendir=no
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543
13544 /* Override any gcc2 internal prototype to avoid an error.  */
13545 #ifdef __cplusplus
13546 extern "C"
13547 #endif
13548 /* We use char because int might match the return type of a gcc2
13549    builtin and then its argument prototype would still apply.  */
13550 char opendir ();
13551 int
13552 main ()
13553 {
13554 opendir ();
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561   (eval $ac_link) 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } &&
13568          { ac_try='test -z "$ac_c_werror_flag"
13569                          || test ! -s conftest.err'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; } &&
13575          { ac_try='test -s conftest$ac_exeext'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   ac_cv_search_opendir="none required"
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 fi
13587 rm -f conftest.err conftest.$ac_objext \
13588       conftest$ac_exeext conftest.$ac_ext
13589 if test "$ac_cv_search_opendir" = no; then
13590   for ac_lib in x; do
13591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13592     cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598
13599 /* Override any gcc2 internal prototype to avoid an error.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 /* We use char because int might match the return type of a gcc2
13604    builtin and then its argument prototype would still apply.  */
13605 char opendir ();
13606 int
13607 main ()
13608 {
13609 opendir ();
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616   (eval $ac_link) 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } &&
13623          { ac_try='test -z "$ac_c_werror_flag"
13624                          || test ! -s conftest.err'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; } &&
13630          { ac_try='test -s conftest$ac_exeext'
13631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632   (eval $ac_try) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_cv_search_opendir="-l$ac_lib"
13637 break
13638 else
13639   echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642 fi
13643 rm -f conftest.err conftest.$ac_objext \
13644       conftest$ac_exeext conftest.$ac_ext
13645   done
13646 fi
13647 LIBS=$ac_func_search_save_LIBS
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13650 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13651 if test "$ac_cv_search_opendir" != no; then
13652   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13653
13654 fi
13655
13656 fi
13657
13658 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13659 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13660 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 #include <sys/types.h>
13670 #include <sys/wait.h>
13671 #ifndef WEXITSTATUS
13672 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13673 #endif
13674 #ifndef WIFEXITED
13675 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13676 #endif
13677
13678 int
13679 main ()
13680 {
13681   int s;
13682   wait (&s);
13683   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690   (eval $ac_compile) 2>conftest.er1
13691   ac_status=$?
13692   grep -v '^ *+' conftest.er1 >conftest.err
13693   rm -f conftest.er1
13694   cat conftest.err >&5
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -z "$ac_c_werror_flag"
13698                          || test ! -s conftest.err'
13699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700   (eval $ac_try) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; } &&
13704          { ac_try='test -s conftest.$ac_objext'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710   ac_cv_header_sys_wait_h=yes
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ac_cv_header_sys_wait_h=no
13716 fi
13717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13718 fi
13719 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13720 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13721 if test $ac_cv_header_sys_wait_h = yes; then
13722
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_SYS_WAIT_H 1
13725 _ACEOF
13726
13727 fi
13728
13729 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13730 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13731 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h.  */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h.  */
13740 #include <sys/types.h>
13741 #include <termios.h>
13742 #ifdef TIOCGWINSZ
13743   yes
13744 #endif
13745
13746 _ACEOF
13747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13748   $EGREP "yes" >/dev/null 2>&1; then
13749   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13750 else
13751   ac_cv_sys_tiocgwinsz_in_termios_h=no
13752 fi
13753 rm -f conftest*
13754
13755 fi
13756 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13757 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13758
13759 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13760   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13761 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13762 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771 #include <sys/types.h>
13772 #include <sys/ioctl.h>
13773 #ifdef TIOCGWINSZ
13774   yes
13775 #endif
13776
13777 _ACEOF
13778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779   $EGREP "yes" >/dev/null 2>&1; then
13780   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13781 else
13782   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13783 fi
13784 rm -f conftest*
13785
13786 fi
13787 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13788 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13789
13790   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13791
13792 cat >>confdefs.h <<\_ACEOF
13793 #define GWINSZ_IN_SYS_IOCTL 1
13794 _ACEOF
13795
13796   fi
13797 fi
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844 for ac_header in \
13845         arpa/inet.h             \
13846         arpa/nameser.h  \
13847         assert.h                \
13848         bits/types.h    \
13849         conio.h                 \
13850         crypt.h                 \
13851         direct.h                \
13852         errno.h                 \
13853         fcntl.h                 \
13854         filio.h                 \
13855         getopt.h                \
13856         grp.h                   \
13857         io.h                    \
13858         libutil.h               \
13859         limits.h                \
13860         locale.h                \
13861         malloc.h                \
13862         memory.h                \
13863         psap.h                  \
13864         pwd.h                   \
13865         process.h               \
13866         sgtty.h                 \
13867         shadow.h                \
13868         stddef.h                \
13869         string.h                \
13870         strings.h               \
13871         sysexits.h              \
13872         sys/file.h              \
13873         sys/filio.h             \
13874         sys/errno.h             \
13875         sys/ioctl.h             \
13876         sys/param.h             \
13877         sys/resource.h  \
13878         sys/select.h    \
13879         sys/socket.h    \
13880         sys/stat.h              \
13881         sys/syslog.h    \
13882         sys/time.h              \
13883         sys/types.h             \
13884         sys/uio.h               \
13885         syslog.h                \
13886         termios.h               \
13887         unistd.h                \
13888         utime.h                 \
13889
13890 do
13891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13893   echo "$as_me:$LINENO: checking for $ac_header" >&5
13894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 fi
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13900 else
13901   # Is the header compilable?
13902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910 $ac_includes_default
13911 #include <$ac_header>
13912 _ACEOF
13913 rm -f conftest.$ac_objext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915   (eval $ac_compile) 2>conftest.er1
13916   ac_status=$?
13917   grep -v '^ *+' conftest.er1 >conftest.err
13918   rm -f conftest.er1
13919   cat conftest.err >&5
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } &&
13922          { ac_try='test -z "$ac_c_werror_flag"
13923                          || test ! -s conftest.err'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; } &&
13929          { ac_try='test -s conftest.$ac_objext'
13930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; }; then
13935   ac_header_compiler=yes
13936 else
13937   echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 ac_header_compiler=no
13941 fi
13942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13944 echo "${ECHO_T}$ac_header_compiler" >&6
13945
13946 # Is the header present?
13947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h.  */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h.  */
13955 #include <$ac_header>
13956 _ACEOF
13957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } >/dev/null; then
13965   if test -s conftest.err; then
13966     ac_cpp_err=$ac_c_preproc_warn_flag
13967     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13968   else
13969     ac_cpp_err=
13970   fi
13971 else
13972   ac_cpp_err=yes
13973 fi
13974 if test -z "$ac_cpp_err"; then
13975   ac_header_preproc=yes
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980   ac_header_preproc=no
13981 fi
13982 rm -f conftest.err conftest.$ac_ext
13983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 echo "${ECHO_T}$ac_header_preproc" >&6
13985
13986 # So?  What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13988   yes:no: )
13989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13993     ac_header_preproc=yes
13994     ;;
13995   no:yes:* )
13996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14008     (
14009       cat <<\_ASBOX
14010 ## --------------------------------------------- ##
14011 ## Report this to <http://www.openldap.org/its/> ##
14012 ## --------------------------------------------- ##
14013 _ASBOX
14014     ) |
14015       sed "s/^/$as_me: WARNING:     /" >&2
14016     ;;
14017 esac
14018 echo "$as_me:$LINENO: checking for $ac_header" >&5
14019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   eval "$as_ac_Header=\$ac_header_preproc"
14024 fi
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14027
14028 fi
14029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14030   cat >>confdefs.h <<_ACEOF
14031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14032 _ACEOF
14033
14034 fi
14035
14036 done
14037
14038
14039 if test "$ac_cv_mingw32" = yes ; then
14040
14041
14042 for ac_header in winsock.h winsock2.h
14043 do
14044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046   echo "$as_me:$LINENO: checking for $ac_header" >&5
14047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 fi
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14053 else
14054   # Is the header compilable?
14055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 $ac_includes_default
14064 #include <$ac_header>
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068   (eval $ac_compile) 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } &&
14075          { ac_try='test -z "$ac_c_werror_flag"
14076                          || test ! -s conftest.err'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; } &&
14082          { ac_try='test -s conftest.$ac_objext'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; }; then
14088   ac_header_compiler=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093 ac_header_compiler=no
14094 fi
14095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14097 echo "${ECHO_T}$ac_header_compiler" >&6
14098
14099 # Is the header present?
14100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108 #include <$ac_header>
14109 _ACEOF
14110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } >/dev/null; then
14118   if test -s conftest.err; then
14119     ac_cpp_err=$ac_c_preproc_warn_flag
14120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14121   else
14122     ac_cpp_err=
14123   fi
14124 else
14125   ac_cpp_err=yes
14126 fi
14127 if test -z "$ac_cpp_err"; then
14128   ac_header_preproc=yes
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133   ac_header_preproc=no
14134 fi
14135 rm -f conftest.err conftest.$ac_ext
14136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14137 echo "${ECHO_T}$ac_header_preproc" >&6
14138
14139 # So?  What about this header?
14140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14141   yes:no: )
14142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14146     ac_header_preproc=yes
14147     ;;
14148   no:yes:* )
14149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14161     (
14162       cat <<\_ASBOX
14163 ## --------------------------------------------- ##
14164 ## Report this to <http://www.openldap.org/its/> ##
14165 ## --------------------------------------------- ##
14166 _ASBOX
14167     ) |
14168       sed "s/^/$as_me: WARNING:     /" >&2
14169     ;;
14170 esac
14171 echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   eval "$as_ac_Header=\$ac_header_preproc"
14177 fi
14178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14180
14181 fi
14182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14183   cat >>confdefs.h <<_ACEOF
14184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14185 _ACEOF
14186
14187 fi
14188
14189 done
14190
14191 fi
14192
14193
14194 for ac_header in resolv.h
14195 do
14196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14197 echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208 $ac_includes_default
14209 #include <netinet/in.h>
14210
14211
14212 #include <$ac_header>
14213 _ACEOF
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216   (eval $ac_compile) 2>conftest.er1
14217   ac_status=$?
14218   grep -v '^ *+' conftest.er1 >conftest.err
14219   rm -f conftest.er1
14220   cat conftest.err >&5
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } &&
14223          { ac_try='test -z "$ac_c_werror_flag"
14224                          || test ! -s conftest.err'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest.$ac_objext'
14231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232   (eval $ac_try) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; }; then
14236   eval "$as_ac_Header=yes"
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 eval "$as_ac_Header=no"
14242 fi
14243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14248   cat >>confdefs.h <<_ACEOF
14249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14250 _ACEOF
14251
14252 fi
14253
14254 done
14255
14256
14257
14258 for ac_header in netinet/tcp.h
14259 do
14260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261 echo "$as_me:$LINENO: checking for $ac_header" >&5
14262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264   echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266   cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 $ac_includes_default
14273 #include <netinet/in.h>
14274
14275
14276 #include <$ac_header>
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280   (eval $ac_compile) 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } &&
14287          { ac_try='test -z "$ac_c_werror_flag"
14288                          || test ! -s conftest.err'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; } &&
14294          { ac_try='test -s conftest.$ac_objext'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300   eval "$as_ac_Header=yes"
14301 else
14302   echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 eval "$as_ac_Header=no"
14306 fi
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14308 fi
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14312   cat >>confdefs.h <<_ACEOF
14313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14314 _ACEOF
14315
14316 fi
14317
14318 done
14319
14320
14321
14322 for ac_header in sys/ucred.h
14323 do
14324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14325 echo "$as_me:$LINENO: checking for $ac_header" >&5
14326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 $ac_includes_default
14337 #ifdef HAVE_SYS_PARAM_H
14338 #include <sys/param.h>
14339 #endif
14340
14341
14342 #include <$ac_header>
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346   (eval $ac_compile) 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } &&
14353          { ac_try='test -z "$ac_c_werror_flag"
14354                          || test ! -s conftest.err'
14355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356   (eval $ac_try) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); }; } &&
14360          { ac_try='test -s conftest.$ac_objext'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; }; then
14366   eval "$as_ac_Header=yes"
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371 eval "$as_ac_Header=no"
14372 fi
14373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14374 fi
14375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14378   cat >>confdefs.h <<_ACEOF
14379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14380 _ACEOF
14381
14382 fi
14383
14384 done
14385
14386
14387
14388
14389
14390 for ac_func in sigaction sigset
14391 do
14392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396   echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398   cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14406 #define $ac_func innocuous_$ac_func
14407
14408 /* System header to define __stub macros and hopefully few prototypes,
14409     which can conflict with char $ac_func (); below.
14410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411     <limits.h> exists even on freestanding compilers.  */
14412
14413 #ifdef __STDC__
14414 # include <limits.h>
14415 #else
14416 # include <assert.h>
14417 #endif
14418
14419 #undef $ac_func
14420
14421 /* Override any gcc2 internal prototype to avoid an error.  */
14422 #ifdef __cplusplus
14423 extern "C"
14424 {
14425 #endif
14426 /* We use char because int might match the return type of a gcc2
14427    builtin and then its argument prototype would still apply.  */
14428 char $ac_func ();
14429 /* The GNU C library defines this for functions which it implements
14430     to always fail with ENOSYS.  Some functions are actually named
14431     something starting with __ and the normal name is an alias.  */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 char (*f) () = $ac_func;
14436 #endif
14437 #ifdef __cplusplus
14438 }
14439 #endif
14440
14441 int
14442 main ()
14443 {
14444 return f != $ac_func;
14445   ;
14446   return 0;
14447 }
14448 _ACEOF
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451   (eval $ac_link) 2>conftest.er1
14452   ac_status=$?
14453   grep -v '^ *+' conftest.er1 >conftest.err
14454   rm -f conftest.er1
14455   cat conftest.err >&5
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } &&
14458          { ac_try='test -z "$ac_c_werror_flag"
14459                          || test ! -s conftest.err'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; } &&
14465          { ac_try='test -s conftest$ac_exeext'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471   eval "$as_ac_var=yes"
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 eval "$as_ac_var=no"
14477 fi
14478 rm -f conftest.err conftest.$ac_objext \
14479       conftest$ac_exeext conftest.$ac_ext
14480 fi
14481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14483 if test `eval echo '${'$as_ac_var'}'` = yes; then
14484   cat >>confdefs.h <<_ACEOF
14485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14486 _ACEOF
14487
14488 fi
14489 done
14490
14491
14492 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14493
14494 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14495 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14496 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499   ac_check_lib_save_LIBS=$LIBS
14500 LIBS="-lV3  $LIBS"
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507
14508 /* Override any gcc2 internal prototype to avoid an error.  */
14509 #ifdef __cplusplus
14510 extern "C"
14511 #endif
14512 /* We use char because int might match the return type of a gcc2
14513    builtin and then its argument prototype would still apply.  */
14514 char sigset ();
14515 int
14516 main ()
14517 {
14518 sigset ();
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525   (eval $ac_link) 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -z "$ac_c_werror_flag"
14533                          || test ! -s conftest.err'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; } &&
14539          { ac_try='test -s conftest$ac_exeext'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; }; then
14545   ac_cv_lib_V3_sigset=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_cv_lib_V3_sigset=no
14551 fi
14552 rm -f conftest.err conftest.$ac_objext \
14553       conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14555 fi
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14557 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14558 if test $ac_cv_lib_V3_sigset = yes; then
14559   cat >>confdefs.h <<_ACEOF
14560 #define HAVE_LIBV3 1
14561 _ACEOF
14562
14563   LIBS="-lV3 $LIBS"
14564
14565 fi
14566
14567 fi
14568
14569 if test "$ac_cv_header_winsock_h" = yes; then
14570 echo "$as_me:$LINENO: checking for winsock" >&5
14571 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14572 if test "${ol_cv_winsock+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   save_LIBS="$LIBS"
14576 for curlib in ws2_32 wsock32; do
14577         LIBS="$LIBS -l$curlib"
14578         cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h.  */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h.  */
14584 #include <winsock.h>
14585
14586 int
14587 main ()
14588 {
14589
14590                         socket(0,0,0);
14591                         select(0,NULL,NULL,NULL,NULL);
14592                         closesocket(0);
14593                         gethostname(NULL,0);
14594
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext conftest$ac_exeext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14601   (eval $ac_link) 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -z "$ac_c_werror_flag"
14609                          || test ! -s conftest.err'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; } &&
14615          { ac_try='test -s conftest$ac_exeext'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; }; then
14621   ol_cv_winsock=yes
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 ol_cv_winsock=no
14627 fi
14628 rm -f conftest.err conftest.$ac_objext \
14629       conftest$ac_exeext conftest.$ac_ext
14630
14631         if test $ol_cv_winsock = yes; then
14632
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_WINSOCK 1
14635 _ACEOF
14636
14637                 ac_cv_func_socket=yes
14638                 ac_cv_func_select=yes
14639                 ac_cv_func_closesocket=yes
14640                 ac_cv_func_gethostname=yes
14641                 if test $curlib = ws2_32; then
14642                         ol_cv_winsock=winsock2
14643
14644 cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_WINSOCK2 1
14646 _ACEOF
14647
14648                 fi
14649                 break
14650         fi
14651         LIBS="$save_LIBS"
14652 done
14653 fi
14654 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14655 echo "${ECHO_T}$ol_cv_winsock" >&6
14656 fi
14657
14658
14659 echo "$as_me:$LINENO: checking for socket" >&5
14660 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14661 if test "${ac_cv_func_socket+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14672 #define socket innocuous_socket
14673
14674 /* System header to define __stub macros and hopefully few prototypes,
14675     which can conflict with char socket (); below.
14676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14677     <limits.h> exists even on freestanding compilers.  */
14678
14679 #ifdef __STDC__
14680 # include <limits.h>
14681 #else
14682 # include <assert.h>
14683 #endif
14684
14685 #undef socket
14686
14687 /* Override any gcc2 internal prototype to avoid an error.  */
14688 #ifdef __cplusplus
14689 extern "C"
14690 {
14691 #endif
14692 /* We use char because int might match the return type of a gcc2
14693    builtin and then its argument prototype would still apply.  */
14694 char socket ();
14695 /* The GNU C library defines this for functions which it implements
14696     to always fail with ENOSYS.  Some functions are actually named
14697     something starting with __ and the normal name is an alias.  */
14698 #if defined (__stub_socket) || defined (__stub___socket)
14699 choke me
14700 #else
14701 char (*f) () = socket;
14702 #endif
14703 #ifdef __cplusplus
14704 }
14705 #endif
14706
14707 int
14708 main ()
14709 {
14710 return f != socket;
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717   (eval $ac_link) 2>conftest.er1
14718   ac_status=$?
14719   grep -v '^ *+' conftest.er1 >conftest.err
14720   rm -f conftest.er1
14721   cat conftest.err >&5
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); } &&
14724          { ac_try='test -z "$ac_c_werror_flag"
14725                          || test ! -s conftest.err'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; } &&
14731          { ac_try='test -s conftest$ac_exeext'
14732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733   (eval $ac_try) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; }; then
14737   ac_cv_func_socket=yes
14738 else
14739   echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742 ac_cv_func_socket=no
14743 fi
14744 rm -f conftest.err conftest.$ac_objext \
14745       conftest$ac_exeext conftest.$ac_ext
14746 fi
14747 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14748 echo "${ECHO_T}$ac_cv_func_socket" >&6
14749 if test $ac_cv_func_socket = yes; then
14750   :
14751 else
14752
14753
14754 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14755 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14756 if test "${ac_cv_lib_socket_main+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lsocket  $LIBS"
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767
14768
14769 int
14770 main ()
14771 {
14772 main ();
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest.$ac_objext conftest$ac_exeext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779   (eval $ac_link) 2>conftest.er1
14780   ac_status=$?
14781   grep -v '^ *+' conftest.er1 >conftest.err
14782   rm -f conftest.er1
14783   cat conftest.err >&5
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); } &&
14786          { ac_try='test -z "$ac_c_werror_flag"
14787                          || test ! -s conftest.err'
14788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789   (eval $ac_try) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; } &&
14793          { ac_try='test -s conftest$ac_exeext'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; }; then
14799   ac_cv_lib_socket_main=yes
14800 else
14801   echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14803
14804 ac_cv_lib_socket_main=no
14805 fi
14806 rm -f conftest.err conftest.$ac_objext \
14807       conftest$ac_exeext conftest.$ac_ext
14808 LIBS=$ac_check_lib_save_LIBS
14809 fi
14810 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14811 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14812 if test $ac_cv_lib_socket_main = yes; then
14813   cat >>confdefs.h <<_ACEOF
14814 #define HAVE_LIBSOCKET 1
14815 _ACEOF
14816
14817   LIBS="-lsocket $LIBS"
14818
14819 fi
14820
14821
14822 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14823 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14824 if test "${ac_cv_lib_net_main+set}" = set; then
14825   echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827   ac_check_lib_save_LIBS=$LIBS
14828 LIBS="-lnet  $LIBS"
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835
14836
14837 int
14838 main ()
14839 {
14840 main ();
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847   (eval $ac_link) 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -z "$ac_c_werror_flag"
14855                          || test ! -s conftest.err'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; } &&
14861          { ac_try='test -s conftest$ac_exeext'
14862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863   (eval $ac_try) 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   ac_cv_lib_net_main=yes
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 ac_cv_lib_net_main=no
14873 fi
14874 rm -f conftest.err conftest.$ac_objext \
14875       conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14877 fi
14878 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14879 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14880 if test $ac_cv_lib_net_main = yes; then
14881   cat >>confdefs.h <<_ACEOF
14882 #define HAVE_LIBNET 1
14883 _ACEOF
14884
14885   LIBS="-lnet $LIBS"
14886
14887 fi
14888
14889
14890 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14891 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14892 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-lnsl_s  $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903
14904
14905 int
14906 main ()
14907 {
14908 main ();
14909   ;
14910   return 0;
14911 }
14912 _ACEOF
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915   (eval $ac_link) 2>conftest.er1
14916   ac_status=$?
14917   grep -v '^ *+' conftest.er1 >conftest.err
14918   rm -f conftest.er1
14919   cat conftest.err >&5
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -z "$ac_c_werror_flag"
14923                          || test ! -s conftest.err'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; } &&
14929          { ac_try='test -s conftest$ac_exeext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_cv_lib_nsl_s_main=yes
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940 ac_cv_lib_nsl_s_main=no
14941 fi
14942 rm -f conftest.err conftest.$ac_objext \
14943       conftest$ac_exeext conftest.$ac_ext
14944 LIBS=$ac_check_lib_save_LIBS
14945 fi
14946 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14947 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14948 if test $ac_cv_lib_nsl_s_main = yes; then
14949   cat >>confdefs.h <<_ACEOF
14950 #define HAVE_LIBNSL_S 1
14951 _ACEOF
14952
14953   LIBS="-lnsl_s $LIBS"
14954
14955 fi
14956
14957
14958 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14959 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14960 if test "${ac_cv_lib_nsl_main+set}" = set; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963   ac_check_lib_save_LIBS=$LIBS
14964 LIBS="-lnsl  $LIBS"
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971
14972
14973 int
14974 main ()
14975 {
14976 main ();
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14983   (eval $ac_link) 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -z "$ac_c_werror_flag"
14991                          || test ! -s conftest.err'
14992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993   (eval $ac_try) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; } &&
14997          { ac_try='test -s conftest$ac_exeext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   ac_cv_lib_nsl_main=yes
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 ac_cv_lib_nsl_main=no
15009 fi
15010 rm -f conftest.err conftest.$ac_objext \
15011       conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_check_lib_save_LIBS
15013 fi
15014 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15015 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15016 if test $ac_cv_lib_nsl_main = yes; then
15017   cat >>confdefs.h <<_ACEOF
15018 #define HAVE_LIBNSL 1
15019 _ACEOF
15020
15021   LIBS="-lnsl $LIBS"
15022
15023 fi
15024
15025
15026 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15027 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15028 if test "${ac_cv_lib_inet_socket+set}" = set; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031   ac_check_lib_save_LIBS=$LIBS
15032 LIBS="-linet  $LIBS"
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039
15040 /* Override any gcc2 internal prototype to avoid an error.  */
15041 #ifdef __cplusplus
15042 extern "C"
15043 #endif
15044 /* We use char because int might match the return type of a gcc2
15045    builtin and then its argument prototype would still apply.  */
15046 char socket ();
15047 int
15048 main ()
15049 {
15050 socket ();
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057   (eval $ac_link) 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_c_werror_flag"
15065                          || test ! -s conftest.err'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; } &&
15071          { ac_try='test -s conftest$ac_exeext'
15072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073   (eval $ac_try) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }; }; then
15077   ac_cv_lib_inet_socket=yes
15078 else
15079   echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 ac_cv_lib_inet_socket=no
15083 fi
15084 rm -f conftest.err conftest.$ac_objext \
15085       conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_check_lib_save_LIBS
15087 fi
15088 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15089 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15090 if test $ac_cv_lib_inet_socket = yes; then
15091   cat >>confdefs.h <<_ACEOF
15092 #define HAVE_LIBINET 1
15093 _ACEOF
15094
15095   LIBS="-linet $LIBS"
15096
15097 fi
15098
15099
15100 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15101 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15102 if test "${ac_cv_lib_gen_main+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   ac_check_lib_save_LIBS=$LIBS
15106 LIBS="-lgen  $LIBS"
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113
15114
15115 int
15116 main ()
15117 {
15118 main ();
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125   (eval $ac_link) 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } &&
15132          { ac_try='test -z "$ac_c_werror_flag"
15133                          || test ! -s conftest.err'
15134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135   (eval $ac_try) 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); }; } &&
15139          { ac_try='test -s conftest$ac_exeext'
15140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141   (eval $ac_try) 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   ac_cv_lib_gen_main=yes
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150 ac_cv_lib_gen_main=no
15151 fi
15152 rm -f conftest.err conftest.$ac_objext \
15153       conftest$ac_exeext conftest.$ac_ext
15154 LIBS=$ac_check_lib_save_LIBS
15155 fi
15156 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15157 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15158 if test $ac_cv_lib_gen_main = yes; then
15159   cat >>confdefs.h <<_ACEOF
15160 #define HAVE_LIBGEN 1
15161 _ACEOF
15162
15163   LIBS="-lgen $LIBS"
15164
15165 fi
15166
15167
15168 fi
15169
15170
15171 echo "$as_me:$LINENO: checking for select" >&5
15172 echo $ECHO_N "checking for select... $ECHO_C" >&6
15173 if test "${ac_cv_func_select+set}" = set; then
15174   echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176   cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 /* Define select to an innocuous variant, in case <limits.h> declares select.
15183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15184 #define select innocuous_select
15185
15186 /* System header to define __stub macros and hopefully few prototypes,
15187     which can conflict with char select (); below.
15188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15189     <limits.h> exists even on freestanding compilers.  */
15190
15191 #ifdef __STDC__
15192 # include <limits.h>
15193 #else
15194 # include <assert.h>
15195 #endif
15196
15197 #undef select
15198
15199 /* Override any gcc2 internal prototype to avoid an error.  */
15200 #ifdef __cplusplus
15201 extern "C"
15202 {
15203 #endif
15204 /* We use char because int might match the return type of a gcc2
15205    builtin and then its argument prototype would still apply.  */
15206 char select ();
15207 /* The GNU C library defines this for functions which it implements
15208     to always fail with ENOSYS.  Some functions are actually named
15209     something starting with __ and the normal name is an alias.  */
15210 #if defined (__stub_select) || defined (__stub___select)
15211 choke me
15212 #else
15213 char (*f) () = select;
15214 #endif
15215 #ifdef __cplusplus
15216 }
15217 #endif
15218
15219 int
15220 main ()
15221 {
15222 return f != select;
15223   ;
15224   return 0;
15225 }
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15229   (eval $ac_link) 2>conftest.er1
15230   ac_status=$?
15231   grep -v '^ *+' conftest.er1 >conftest.err
15232   rm -f conftest.er1
15233   cat conftest.err >&5
15234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235   (exit $ac_status); } &&
15236          { ac_try='test -z "$ac_c_werror_flag"
15237                          || test ! -s conftest.err'
15238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239   (eval $ac_try) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; } &&
15243          { ac_try='test -s conftest$ac_exeext'
15244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245   (eval $ac_try) 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; }; then
15249   ac_cv_func_select=yes
15250 else
15251   echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 ac_cv_func_select=no
15255 fi
15256 rm -f conftest.err conftest.$ac_objext \
15257       conftest$ac_exeext conftest.$ac_ext
15258 fi
15259 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15260 echo "${ECHO_T}$ac_cv_func_select" >&6
15261 if test $ac_cv_func_select = yes; then
15262   :
15263 else
15264   { { echo "$as_me:$LINENO: error: select() required." >&5
15265 echo "$as_me: error: select() required." >&2;}
15266    { (exit 1); exit 1; }; }
15267 fi
15268
15269
15270 if test "${ac_cv_header_winsock_h}" != yes; then
15271
15272
15273 for ac_header in sys/select.h sys/socket.h
15274 do
15275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15277   echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15280   echo $ECHO_N "(cached) $ECHO_C" >&6
15281 fi
15282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15284 else
15285   # Is the header compilable?
15286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h.  */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h.  */
15294 $ac_includes_default
15295 #include <$ac_header>
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299   (eval $ac_compile) 2>conftest.er1
15300   ac_status=$?
15301   grep -v '^ *+' conftest.er1 >conftest.err
15302   rm -f conftest.er1
15303   cat conftest.err >&5
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } &&
15306          { ac_try='test -z "$ac_c_werror_flag"
15307                          || test ! -s conftest.err'
15308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309   (eval $ac_try) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; } &&
15313          { ac_try='test -s conftest.$ac_objext'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; }; then
15319   ac_header_compiler=yes
15320 else
15321   echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 ac_header_compiler=no
15325 fi
15326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15328 echo "${ECHO_T}$ac_header_compiler" >&6
15329
15330 # Is the header present?
15331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 #include <$ac_header>
15340 _ACEOF
15341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } >/dev/null; then
15349   if test -s conftest.err; then
15350     ac_cpp_err=$ac_c_preproc_warn_flag
15351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15352   else
15353     ac_cpp_err=
15354   fi
15355 else
15356   ac_cpp_err=yes
15357 fi
15358 if test -z "$ac_cpp_err"; then
15359   ac_header_preproc=yes
15360 else
15361   echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364   ac_header_preproc=no
15365 fi
15366 rm -f conftest.err conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15368 echo "${ECHO_T}$ac_header_preproc" >&6
15369
15370 # So?  What about this header?
15371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15372   yes:no: )
15373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15377     ac_header_preproc=yes
15378     ;;
15379   no:yes:* )
15380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15392     (
15393       cat <<\_ASBOX
15394 ## --------------------------------------------- ##
15395 ## Report this to <http://www.openldap.org/its/> ##
15396 ## --------------------------------------------- ##
15397 _ASBOX
15398     ) |
15399       sed "s/^/$as_me: WARNING:     /" >&2
15400     ;;
15401 esac
15402 echo "$as_me:$LINENO: checking for $ac_header" >&5
15403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   eval "$as_ac_Header=\$ac_header_preproc"
15408 fi
15409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15411
15412 fi
15413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15414   cat >>confdefs.h <<_ACEOF
15415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416 _ACEOF
15417
15418 fi
15419
15420 done
15421
15422 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15423 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15424 if test "${ac_cv_func_select_args+set}" = set; then
15425   echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15428  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15429   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15430    cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 $ac_includes_default
15437 #if HAVE_SYS_SELECT_H
15438 # include <sys/select.h>
15439 #endif
15440 #if HAVE_SYS_SOCKET_H
15441 # include <sys/socket.h>
15442 #endif
15443
15444 int
15445 main ()
15446 {
15447 extern int select ($ac_arg1,
15448                                             $ac_arg234, $ac_arg234, $ac_arg234,
15449                                             $ac_arg5);
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456   (eval $ac_compile) 2>conftest.er1
15457   ac_status=$?
15458   grep -v '^ *+' conftest.er1 >conftest.err
15459   rm -f conftest.er1
15460   cat conftest.err >&5
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); } &&
15463          { ac_try='test -z "$ac_c_werror_flag"
15464                          || test ! -s conftest.err'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; } &&
15470          { ac_try='test -s conftest.$ac_objext'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; }; then
15476   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15477 else
15478   echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 fi
15482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15483   done
15484  done
15485 done
15486 # Provide a safe default value.
15487 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15488
15489 fi
15490 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15491 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15492 ac_save_IFS=$IFS; IFS=','
15493 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15494 IFS=$ac_save_IFS
15495 shift
15496
15497 cat >>confdefs.h <<_ACEOF
15498 #define SELECT_TYPE_ARG1 $1
15499 _ACEOF
15500
15501
15502 cat >>confdefs.h <<_ACEOF
15503 #define SELECT_TYPE_ARG234 ($2)
15504 _ACEOF
15505
15506
15507 cat >>confdefs.h <<_ACEOF
15508 #define SELECT_TYPE_ARG5 ($3)
15509 _ACEOF
15510
15511 rm -f conftest*
15512
15513 fi
15514
15515
15516
15517 for ac_func in poll
15518 do
15519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15520 echo "$as_me:$LINENO: checking for $ac_func" >&5
15521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15522 if eval "test \"\${$as_ac_var+set}\" = set"; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525   cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15533 #define $ac_func innocuous_$ac_func
15534
15535 /* System header to define __stub macros and hopefully few prototypes,
15536     which can conflict with char $ac_func (); below.
15537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15538     <limits.h> exists even on freestanding compilers.  */
15539
15540 #ifdef __STDC__
15541 # include <limits.h>
15542 #else
15543 # include <assert.h>
15544 #endif
15545
15546 #undef $ac_func
15547
15548 /* Override any gcc2 internal prototype to avoid an error.  */
15549 #ifdef __cplusplus
15550 extern "C"
15551 {
15552 #endif
15553 /* We use char because int might match the return type of a gcc2
15554    builtin and then its argument prototype would still apply.  */
15555 char $ac_func ();
15556 /* The GNU C library defines this for functions which it implements
15557     to always fail with ENOSYS.  Some functions are actually named
15558     something starting with __ and the normal name is an alias.  */
15559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15560 choke me
15561 #else
15562 char (*f) () = $ac_func;
15563 #endif
15564 #ifdef __cplusplus
15565 }
15566 #endif
15567
15568 int
15569 main ()
15570 {
15571 return f != $ac_func;
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578   (eval $ac_link) 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -z "$ac_c_werror_flag"
15586                          || test ! -s conftest.err'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; } &&
15592          { ac_try='test -s conftest$ac_exeext'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   eval "$as_ac_var=yes"
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 eval "$as_ac_var=no"
15604 fi
15605 rm -f conftest.err conftest.$ac_objext \
15606       conftest$ac_exeext conftest.$ac_ext
15607 fi
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15610 if test `eval echo '${'$as_ac_var'}'` = yes; then
15611   cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15613 _ACEOF
15614
15615 fi
15616 done
15617
15618 if test $ac_cv_func_poll = yes; then
15619
15620
15621 for ac_header in poll.h sys/poll.h
15622 do
15623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15625   echo "$as_me:$LINENO: checking for $ac_header" >&5
15626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 fi
15630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15632 else
15633   # Is the header compilable?
15634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 $ac_includes_default
15643 #include <$ac_header>
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647   (eval $ac_compile) 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag"
15655                          || test ! -s conftest.err'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; } &&
15661          { ac_try='test -s conftest.$ac_objext'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667   ac_header_compiler=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 ac_header_compiler=no
15673 fi
15674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15676 echo "${ECHO_T}$ac_header_compiler" >&6
15677
15678 # Is the header present?
15679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h.  */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h.  */
15687 #include <$ac_header>
15688 _ACEOF
15689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15691   ac_status=$?
15692   grep -v '^ *+' conftest.er1 >conftest.err
15693   rm -f conftest.er1
15694   cat conftest.err >&5
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } >/dev/null; then
15697   if test -s conftest.err; then
15698     ac_cpp_err=$ac_c_preproc_warn_flag
15699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15700   else
15701     ac_cpp_err=
15702   fi
15703 else
15704   ac_cpp_err=yes
15705 fi
15706 if test -z "$ac_cpp_err"; then
15707   ac_header_preproc=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712   ac_header_preproc=no
15713 fi
15714 rm -f conftest.err conftest.$ac_ext
15715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15716 echo "${ECHO_T}$ac_header_preproc" >&6
15717
15718 # So?  What about this header?
15719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15720   yes:no: )
15721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15725     ac_header_preproc=yes
15726     ;;
15727   no:yes:* )
15728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15740     (
15741       cat <<\_ASBOX
15742 ## --------------------------------------------- ##
15743 ## Report this to <http://www.openldap.org/its/> ##
15744 ## --------------------------------------------- ##
15745 _ASBOX
15746     ) |
15747       sed "s/^/$as_me: WARNING:     /" >&2
15748     ;;
15749 esac
15750 echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755   eval "$as_ac_Header=\$ac_header_preproc"
15756 fi
15757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15759
15760 fi
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762   cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15764 _ACEOF
15765
15766 fi
15767
15768 done
15769
15770 fi
15771
15772
15773 for ac_header in sys/epoll.h
15774 do
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15777   echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 fi
15782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15784 else
15785   # Is the header compilable?
15786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h.  */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h.  */
15794 $ac_includes_default
15795 #include <$ac_header>
15796 _ACEOF
15797 rm -f conftest.$ac_objext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799   (eval $ac_compile) 2>conftest.er1
15800   ac_status=$?
15801   grep -v '^ *+' conftest.er1 >conftest.err
15802   rm -f conftest.er1
15803   cat conftest.err >&5
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } &&
15806          { ac_try='test -z "$ac_c_werror_flag"
15807                          || test ! -s conftest.err'
15808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809   (eval $ac_try) 2>&5
15810   ac_status=$?
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   (exit $ac_status); }; } &&
15813          { ac_try='test -s conftest.$ac_objext'
15814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815   (eval $ac_try) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); }; }; then
15819   ac_header_compiler=yes
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ac_header_compiler=no
15825 fi
15826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15828 echo "${ECHO_T}$ac_header_compiler" >&6
15829
15830 # Is the header present?
15831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15833 cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839 #include <$ac_header>
15840 _ACEOF
15841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } >/dev/null; then
15849   if test -s conftest.err; then
15850     ac_cpp_err=$ac_c_preproc_warn_flag
15851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15852   else
15853     ac_cpp_err=
15854   fi
15855 else
15856   ac_cpp_err=yes
15857 fi
15858 if test -z "$ac_cpp_err"; then
15859   ac_header_preproc=yes
15860 else
15861   echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864   ac_header_preproc=no
15865 fi
15866 rm -f conftest.err conftest.$ac_ext
15867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868 echo "${ECHO_T}$ac_header_preproc" >&6
15869
15870 # So?  What about this header?
15871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15872   yes:no: )
15873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15877     ac_header_preproc=yes
15878     ;;
15879   no:yes:* )
15880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15892     (
15893       cat <<\_ASBOX
15894 ## --------------------------------------------- ##
15895 ## Report this to <http://www.openldap.org/its/> ##
15896 ## --------------------------------------------- ##
15897 _ASBOX
15898     ) |
15899       sed "s/^/$as_me: WARNING:     /" >&2
15900     ;;
15901 esac
15902 echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907   eval "$as_ac_Header=\$ac_header_preproc"
15908 fi
15909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15911
15912 fi
15913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15914   cat >>confdefs.h <<_ACEOF
15915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15916 _ACEOF
15917
15918 fi
15919
15920 done
15921
15922 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15923         echo "$as_me:$LINENO: checking for epoll system call" >&5
15924 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15925         if test "$cross_compiling" = yes; then
15926   echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15928 else
15929   cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 int main(int argc, char **argv)
15936 {
15937         int epfd = epoll_create(256);
15938         exit (epfd == -1 ? 1 : 0);
15939 }
15940 _ACEOF
15941 rm -f conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943   (eval $ac_link) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948   (eval $ac_try) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; }; then
15952   echo "$as_me:$LINENO: result: yes" >&5
15953 echo "${ECHO_T}yes" >&6
15954
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_EPOLL 1
15957 _ACEOF
15958
15959 else
15960   echo "$as_me: program exited with status $ac_status" >&5
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964 ( exit $ac_status )
15965 echo "$as_me:$LINENO: result: no" >&5
15966 echo "${ECHO_T}no" >&6
15967 fi
15968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15969 fi
15970 fi
15971
15972
15973 for ac_header in sys/devpoll.h
15974 do
15975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15977   echo "$as_me:$LINENO: checking for $ac_header" >&5
15978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 fi
15982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15984 else
15985   # Is the header compilable?
15986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994 $ac_includes_default
15995 #include <$ac_header>
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999   (eval $ac_compile) 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } &&
16006          { ac_try='test -z "$ac_c_werror_flag"
16007                          || test ! -s conftest.err'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; } &&
16013          { ac_try='test -s conftest.$ac_objext'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; }; then
16019   ac_header_compiler=yes
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 ac_header_compiler=no
16025 fi
16026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6
16029
16030 # Is the header present?
16031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 #include <$ac_header>
16040 _ACEOF
16041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16043   ac_status=$?
16044   grep -v '^ *+' conftest.er1 >conftest.err
16045   rm -f conftest.er1
16046   cat conftest.err >&5
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); } >/dev/null; then
16049   if test -s conftest.err; then
16050     ac_cpp_err=$ac_c_preproc_warn_flag
16051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16052   else
16053     ac_cpp_err=
16054   fi
16055 else
16056   ac_cpp_err=yes
16057 fi
16058 if test -z "$ac_cpp_err"; then
16059   ac_header_preproc=yes
16060 else
16061   echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064   ac_header_preproc=no
16065 fi
16066 rm -f conftest.err conftest.$ac_ext
16067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16068 echo "${ECHO_T}$ac_header_preproc" >&6
16069
16070 # So?  What about this header?
16071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16072   yes:no: )
16073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16077     ac_header_preproc=yes
16078     ;;
16079   no:yes:* )
16080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16092     (
16093       cat <<\_ASBOX
16094 ## --------------------------------------------- ##
16095 ## Report this to <http://www.openldap.org/its/> ##
16096 ## --------------------------------------------- ##
16097 _ASBOX
16098     ) |
16099       sed "s/^/$as_me: WARNING:     /" >&2
16100     ;;
16101 esac
16102 echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   eval "$as_ac_Header=\$ac_header_preproc"
16108 fi
16109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16111
16112 fi
16113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16114   cat >>confdefs.h <<_ACEOF
16115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16116 _ACEOF
16117
16118 fi
16119
16120 done
16121
16122 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16123                 -a "${ac_cv_header_poll_h}" = yes ; \
16124 then
16125         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16126 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16127         if test "$cross_compiling" = yes; then
16128   echo "$as_me:$LINENO: result: no" >&5
16129 echo "${ECHO_T}no" >&6
16130 else
16131   cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 int main(int argc, char **argv)
16138 {
16139         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16140         exit (devpollfd == -1 ? 1 : 0);
16141 }
16142 _ACEOF
16143 rm -f conftest$ac_exeext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145   (eval $ac_link) 2>&5
16146   ac_status=$?
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   echo "$as_me:$LINENO: result: yes" >&5
16155 echo "${ECHO_T}yes" >&6
16156
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_DEVPOLL 1
16159 _ACEOF
16160
16161 else
16162   echo "$as_me: program exited with status $ac_status" >&5
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166 ( exit $ac_status )
16167 echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6
16169 fi
16170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16171 fi
16172 fi
16173
16174 # strerror checks
16175 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16176 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16177 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180
16181         cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187
16188 #include <stdio.h>
16189 #include <sys/types.h>
16190 #include <errno.h>
16191 #ifdef _WIN32
16192 #include <stdlib.h>
16193 #endif
16194 int
16195 main ()
16196 {
16197 char *c = (char *) *sys_errlist
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204   (eval $ac_compile) 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -z "$ac_c_werror_flag"
16212                          || test ! -s conftest.err'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; } &&
16218          { ac_try='test -s conftest.$ac_objext'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224   ol_cv_dcl_sys_errlist=yes
16225         ol_cv_have_sys_errlist=yes
16226 else
16227   echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16229
16230 ol_cv_dcl_sys_errlist=no
16231 fi
16232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16235 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16236 #
16237 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16238 if test $ol_cv_dcl_sys_errlist = no ; then
16239
16240 cat >>confdefs.h <<\_ACEOF
16241 #define DECL_SYS_ERRLIST 1
16242 _ACEOF
16243
16244
16245         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16246 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16247 if test "${ol_cv_have_sys_errlist+set}" = set; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250
16251                 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h.  */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h.  */
16257 #include <errno.h>
16258 int
16259 main ()
16260 {
16261 char *c = (char *) *sys_errlist
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268   (eval $ac_link) 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } &&
16275          { ac_try='test -z "$ac_c_werror_flag"
16276                          || test ! -s conftest.err'
16277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278   (eval $ac_try) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; } &&
16282          { ac_try='test -s conftest$ac_exeext'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ol_cv_have_sys_errlist=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ol_cv_have_sys_errlist=no
16294 fi
16295 rm -f conftest.err conftest.$ac_objext \
16296       conftest$ac_exeext conftest.$ac_ext
16297 fi
16298 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16299 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16300 fi
16301 if test $ol_cv_have_sys_errlist = yes ; then
16302
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE_SYS_ERRLIST 1
16305 _ACEOF
16306
16307 fi
16308
16309
16310 for ac_func in strerror strerror_r
16311 do
16312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16313 echo "$as_me:$LINENO: checking for $ac_func" >&5
16314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16315 if eval "test \"\${$as_ac_var+set}\" = set"; then
16316   echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318   cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16326 #define $ac_func innocuous_$ac_func
16327
16328 /* System header to define __stub macros and hopefully few prototypes,
16329     which can conflict with char $ac_func (); below.
16330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16331     <limits.h> exists even on freestanding compilers.  */
16332
16333 #ifdef __STDC__
16334 # include <limits.h>
16335 #else
16336 # include <assert.h>
16337 #endif
16338
16339 #undef $ac_func
16340
16341 /* Override any gcc2 internal prototype to avoid an error.  */
16342 #ifdef __cplusplus
16343 extern "C"
16344 {
16345 #endif
16346 /* We use char because int might match the return type of a gcc2
16347    builtin and then its argument prototype would still apply.  */
16348 char $ac_func ();
16349 /* The GNU C library defines this for functions which it implements
16350     to always fail with ENOSYS.  Some functions are actually named
16351     something starting with __ and the normal name is an alias.  */
16352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16353 choke me
16354 #else
16355 char (*f) () = $ac_func;
16356 #endif
16357 #ifdef __cplusplus
16358 }
16359 #endif
16360
16361 int
16362 main ()
16363 {
16364 return f != $ac_func;
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371   (eval $ac_link) 2>conftest.er1
16372   ac_status=$?
16373   grep -v '^ *+' conftest.er1 >conftest.err
16374   rm -f conftest.er1
16375   cat conftest.err >&5
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); } &&
16378          { ac_try='test -z "$ac_c_werror_flag"
16379                          || test ! -s conftest.err'
16380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381   (eval $ac_try) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; } &&
16385          { ac_try='test -s conftest$ac_exeext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   eval "$as_ac_var=yes"
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 eval "$as_ac_var=no"
16397 fi
16398 rm -f conftest.err conftest.$ac_objext \
16399       conftest$ac_exeext conftest.$ac_ext
16400 fi
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16403 if test `eval echo '${'$as_ac_var'}'` = yes; then
16404   cat >>confdefs.h <<_ACEOF
16405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16406 _ACEOF
16407
16408 fi
16409 done
16410
16411 ol_cv_func_strerror_r=no
16412 if test "${ac_cv_func_strerror_r}" = yes ; then
16413         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16414 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16415 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16416   echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418
16419         cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 #include <string.h>
16426 _ACEOF
16427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428   $EGREP "strerror_r" >/dev/null 2>&1; then
16429   ol_decl_strerror_r=yes
16430 else
16431   ol_decl_strerror_r=no
16432 fi
16433 rm -f conftest*
16434
16435         if test $ol_decl_strerror_r = yes ; then
16436                 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 #include <string.h>
16443 int
16444 main ()
16445 {
16446    /* from autoconf 2.59 */
16447                                 char buf[100];
16448                                 char x = *strerror_r (0, buf, sizeof buf);
16449                                 char *p = strerror_r (0, buf, sizeof buf);
16450
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 rm -f conftest.$ac_objext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16457   (eval $ac_compile) 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } &&
16464          { ac_try='test -z "$ac_c_werror_flag"
16465                          || test ! -s conftest.err'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; } &&
16471          { ac_try='test -s conftest.$ac_objext'
16472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473   (eval $ac_try) 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; }; then
16477   ol_cv_nonposix_strerror_r=yes
16478 else
16479   echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16481
16482 ol_cv_nonposix_strerror_r=no
16483 fi
16484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16485         else
16486                 if test "$cross_compiling" = yes; then
16487   ol_cv_nonposix_strerror=no
16488 else
16489   cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495
16496                         main() {
16497                                 char buf[100];
16498                                 buf[0] = 0;
16499                                 strerror_r( 1, buf, sizeof buf );
16500                                 exit( buf[0] == 0 );
16501                         }
16502
16503 _ACEOF
16504 rm -f conftest$ac_exeext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506   (eval $ac_link) 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511   (eval $ac_try) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; }; then
16515   ol_cv_nonposix_strerror_r=yes
16516 else
16517   echo "$as_me: program exited with status $ac_status" >&5
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ( exit $ac_status )
16522 ol_cv_nonposix_strerror=no
16523 fi
16524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16525 fi
16526         fi
16527
16528 fi
16529 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16530 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16531 if test $ol_cv_nonposix_strerror_r = yes ; then
16532
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_NONPOSIX_STRERROR_R 1
16535 _ACEOF
16536
16537 fi
16538
16539 elif test "${ac_cv_func_strerror}" = no ; then
16540         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16541 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16542 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16543   echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545
16546         cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h.  */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h.  */
16552
16553 #include <stdio.h>
16554 #include <sys/types.h>
16555 #include <errno.h>
16556 #ifdef _WIN32
16557 #include <stdlib.h>
16558 #endif
16559 int
16560 main ()
16561 {
16562 char *c = (char *) *sys_errlist
16563   ;
16564   return 0;
16565 }
16566 _ACEOF
16567 rm -f conftest.$ac_objext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16569   (eval $ac_compile) 2>conftest.er1
16570   ac_status=$?
16571   grep -v '^ *+' conftest.er1 >conftest.err
16572   rm -f conftest.er1
16573   cat conftest.err >&5
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); } &&
16576          { ac_try='test -z "$ac_c_werror_flag"
16577                          || test ! -s conftest.err'
16578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579   (eval $ac_try) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; } &&
16583          { ac_try='test -s conftest.$ac_objext'
16584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585   (eval $ac_try) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; }; then
16589   ol_cv_dcl_sys_errlist=yes
16590         ol_cv_have_sys_errlist=yes
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ol_cv_dcl_sys_errlist=no
16596 fi
16597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16600 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16601 #
16602 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16603 if test $ol_cv_dcl_sys_errlist = no ; then
16604
16605 cat >>confdefs.h <<\_ACEOF
16606 #define DECL_SYS_ERRLIST 1
16607 _ACEOF
16608
16609
16610         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16611 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16612 if test "${ol_cv_have_sys_errlist+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615
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 #include <errno.h>
16623 int
16624 main ()
16625 {
16626 char *c = (char *) *sys_errlist
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16633   (eval $ac_link) 2>conftest.er1
16634   ac_status=$?
16635   grep -v '^ *+' conftest.er1 >conftest.err
16636   rm -f conftest.er1
16637   cat conftest.err >&5
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); } &&
16640          { ac_try='test -z "$ac_c_werror_flag"
16641                          || test ! -s conftest.err'
16642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643   (eval $ac_try) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; } &&
16647          { ac_try='test -s conftest$ac_exeext'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   ol_cv_have_sys_errlist=yes
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ol_cv_have_sys_errlist=no
16659 fi
16660 rm -f conftest.err conftest.$ac_objext \
16661       conftest$ac_exeext conftest.$ac_ext
16662 fi
16663 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16664 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16665 fi
16666 if test $ol_cv_have_sys_errlist = yes ; then
16667
16668 cat >>confdefs.h <<\_ACEOF
16669 #define HAVE_SYS_ERRLIST 1
16670 _ACEOF
16671
16672 fi
16673
16674 fi
16675
16676
16677
16678 for ac_header in regex.h
16679 do
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 echo "$as_me:$LINENO: checking for $ac_header" >&5
16682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 $ac_includes_default
16693 #ifdef HAVE_SYS_TYPES_H
16694 #include <sys/types.h>
16695 #endif
16696
16697
16698 #include <$ac_header>
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702   (eval $ac_compile) 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag"
16710                          || test ! -s conftest.err'
16711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712   (eval $ac_try) 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; } &&
16716          { ac_try='test -s conftest.$ac_objext'
16717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718   (eval $ac_try) 2>&5
16719   ac_status=$?
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }; }; then
16722   eval "$as_ac_Header=yes"
16723 else
16724   echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16726
16727 eval "$as_ac_Header=no"
16728 fi
16729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16730 fi
16731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16734   cat >>confdefs.h <<_ACEOF
16735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16736 _ACEOF
16737
16738 fi
16739
16740 done
16741
16742
16743 if test "$ac_cv_header_regex_h" != yes ; then
16744         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16745 echo "$as_me: error: POSIX regex.h required." >&2;}
16746    { (exit 1); exit 1; }; }
16747 fi
16748 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16749 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16750 if test "${ac_cv_search_regfree+set}" = set; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   ac_func_search_save_LIBS=$LIBS
16754 ac_cv_search_regfree=no
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761
16762 /* Override any gcc2 internal prototype to avoid an error.  */
16763 #ifdef __cplusplus
16764 extern "C"
16765 #endif
16766 /* We use char because int might match the return type of a gcc2
16767    builtin and then its argument prototype would still apply.  */
16768 char regfree ();
16769 int
16770 main ()
16771 {
16772 regfree ();
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779   (eval $ac_link) 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } &&
16786          { ac_try='test -z "$ac_c_werror_flag"
16787                          || test ! -s conftest.err'
16788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789   (eval $ac_try) 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; } &&
16793          { ac_try='test -s conftest$ac_exeext'
16794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795   (eval $ac_try) 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; }; then
16799   ac_cv_search_regfree="none required"
16800 else
16801   echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 fi
16805 rm -f conftest.err conftest.$ac_objext \
16806       conftest$ac_exeext conftest.$ac_ext
16807 if test "$ac_cv_search_regfree" = no; then
16808   for ac_lib in regex gnuregex; do
16809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16810     cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h.  */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h.  */
16816
16817 /* Override any gcc2 internal prototype to avoid an error.  */
16818 #ifdef __cplusplus
16819 extern "C"
16820 #endif
16821 /* We use char because int might match the return type of a gcc2
16822    builtin and then its argument prototype would still apply.  */
16823 char regfree ();
16824 int
16825 main ()
16826 {
16827 regfree ();
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 rm -f conftest.$ac_objext conftest$ac_exeext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834   (eval $ac_link) 2>conftest.er1
16835   ac_status=$?
16836   grep -v '^ *+' conftest.er1 >conftest.err
16837   rm -f conftest.er1
16838   cat conftest.err >&5
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -z "$ac_c_werror_flag"
16842                          || test ! -s conftest.err'
16843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844   (eval $ac_try) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; } &&
16848          { ac_try='test -s conftest$ac_exeext'
16849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850   (eval $ac_try) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); }; }; then
16854   ac_cv_search_regfree="-l$ac_lib"
16855 break
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 fi
16861 rm -f conftest.err conftest.$ac_objext \
16862       conftest$ac_exeext conftest.$ac_ext
16863   done
16864 fi
16865 LIBS=$ac_func_search_save_LIBS
16866 fi
16867 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16868 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16869 if test "$ac_cv_search_regfree" != no; then
16870   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16871   :
16872 else
16873   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16874 echo "$as_me: error: POSIX regex required." >&2;}
16875    { (exit 1); exit 1; }; }
16876 fi
16877
16878
16879
16880 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16881 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16882 if test "${ol_cv_c_posix_regex+set}" = set; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885
16886         if test "$cross_compiling" = yes; then
16887   ol_cv_c_posix_regex=cross
16888 else
16889   cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895
16896 #include <sys/types.h>
16897 #include <regex.h>
16898 static char *pattern, *string;
16899 main()
16900 {
16901         int rc;
16902         regex_t re;
16903
16904         pattern = "^A";
16905
16906         if(regcomp(&re, pattern, 0)) {
16907                 return -1;
16908         }
16909
16910         string = "ALL MATCH";
16911
16912         rc = regexec(&re, string, 0, (void*)0, 0);
16913
16914         regfree(&re);
16915
16916         return rc;
16917 }
16918 _ACEOF
16919 rm -f conftest$ac_exeext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16921   (eval $ac_link) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926   (eval $ac_try) 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; }; then
16930   ol_cv_c_posix_regex=yes
16931 else
16932   echo "$as_me: program exited with status $ac_status" >&5
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ( exit $ac_status )
16937 ol_cv_c_posix_regex=no
16938 fi
16939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16940 fi
16941 fi
16942 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16943 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16944
16945 if test "$ol_cv_c_posix_regex" = no ; then
16946         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16947 echo "$as_me: error: broken POSIX regex!" >&2;}
16948    { (exit 1); exit 1; }; }
16949 fi
16950
16951
16952 have_uuid=no
16953
16954 for ac_header in sys/uuid.h
16955 do
16956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958   echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 fi
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16965 else
16966   # Is the header compilable?
16967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975 $ac_includes_default
16976 #include <$ac_header>
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980   (eval $ac_compile) 2>conftest.er1
16981   ac_status=$?
16982   grep -v '^ *+' conftest.er1 >conftest.err
16983   rm -f conftest.er1
16984   cat conftest.err >&5
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } &&
16987          { ac_try='test -z "$ac_c_werror_flag"
16988                          || test ! -s conftest.err'
16989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990   (eval $ac_try) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; } &&
16994          { ac_try='test -s conftest.$ac_objext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000   ac_header_compiler=yes
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_header_compiler=no
17006 fi
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17009 echo "${ECHO_T}$ac_header_compiler" >&6
17010
17011 # Is the header present?
17012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020 #include <$ac_header>
17021 _ACEOF
17022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } >/dev/null; then
17030   if test -s conftest.err; then
17031     ac_cpp_err=$ac_c_preproc_warn_flag
17032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17033   else
17034     ac_cpp_err=
17035   fi
17036 else
17037   ac_cpp_err=yes
17038 fi
17039 if test -z "$ac_cpp_err"; then
17040   ac_header_preproc=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045   ac_header_preproc=no
17046 fi
17047 rm -f conftest.err conftest.$ac_ext
17048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17049 echo "${ECHO_T}$ac_header_preproc" >&6
17050
17051 # So?  What about this header?
17052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17053   yes:no: )
17054     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17058     ac_header_preproc=yes
17059     ;;
17060   no:yes:* )
17061     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17063     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17064 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17065     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17067     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17068 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17071     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17073     (
17074       cat <<\_ASBOX
17075 ## --------------------------------------------- ##
17076 ## Report this to <http://www.openldap.org/its/> ##
17077 ## --------------------------------------------- ##
17078 _ASBOX
17079     ) |
17080       sed "s/^/$as_me: WARNING:     /" >&2
17081     ;;
17082 esac
17083 echo "$as_me:$LINENO: checking for $ac_header" >&5
17084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   eval "$as_ac_Header=\$ac_header_preproc"
17089 fi
17090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17092
17093 fi
17094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17095   cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17097 _ACEOF
17098
17099 fi
17100
17101 done
17102
17103 if test $ac_cv_header_sys_uuid_h = yes ; then
17104         save_LIBS="$LIBS"
17105         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17106 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17107 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   ac_func_search_save_LIBS=$LIBS
17111 ac_cv_search_uuid_to_str=no
17112 cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118
17119 /* Override any gcc2 internal prototype to avoid an error.  */
17120 #ifdef __cplusplus
17121 extern "C"
17122 #endif
17123 /* We use char because int might match the return type of a gcc2
17124    builtin and then its argument prototype would still apply.  */
17125 char uuid_to_str ();
17126 int
17127 main ()
17128 {
17129 uuid_to_str ();
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   ac_cv_search_uuid_to_str="none required"
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161 fi
17162 rm -f conftest.err conftest.$ac_objext \
17163       conftest$ac_exeext conftest.$ac_ext
17164 if test "$ac_cv_search_uuid_to_str" = no; then
17165   for ac_lib in uuid; do
17166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17167     cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173
17174 /* Override any gcc2 internal prototype to avoid an error.  */
17175 #ifdef __cplusplus
17176 extern "C"
17177 #endif
17178 /* We use char because int might match the return type of a gcc2
17179    builtin and then its argument prototype would still apply.  */
17180 char uuid_to_str ();
17181 int
17182 main ()
17183 {
17184 uuid_to_str ();
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191   (eval $ac_link) 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } &&
17198          { ac_try='test -z "$ac_c_werror_flag"
17199                          || test ! -s conftest.err'
17200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201   (eval $ac_try) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; } &&
17205          { ac_try='test -s conftest$ac_exeext'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211   ac_cv_search_uuid_to_str="-l$ac_lib"
17212 break
17213 else
17214   echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 fi
17218 rm -f conftest.err conftest.$ac_objext \
17219       conftest$ac_exeext conftest.$ac_ext
17220   done
17221 fi
17222 LIBS=$ac_func_search_save_LIBS
17223 fi
17224 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17225 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17226 if test "$ac_cv_search_uuid_to_str" != no; then
17227   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17228   have_uuid=yes
17229 else
17230   :
17231 fi
17232
17233         LIBS="$save_LIBS"
17234
17235         if test have_uuid = yes ; then
17236
17237 cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_UUID_TO_STR 1
17239 _ACEOF
17240
17241
17242                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17243                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17244         fi
17245 fi
17246
17247 if test $have_uuid = no ; then
17248
17249 for ac_header in uuid/uuid.h
17250 do
17251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17253   echo "$as_me:$LINENO: checking for $ac_header" >&5
17254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 fi
17258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17260 else
17261   # Is the header compilable?
17262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270 $ac_includes_default
17271 #include <$ac_header>
17272 _ACEOF
17273 rm -f conftest.$ac_objext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17275   (eval $ac_compile) 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } &&
17282          { ac_try='test -z "$ac_c_werror_flag"
17283                          || test ! -s conftest.err'
17284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285   (eval $ac_try) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; } &&
17289          { ac_try='test -s conftest.$ac_objext'
17290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291   (eval $ac_try) 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; }; then
17295   ac_header_compiler=yes
17296 else
17297   echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300 ac_header_compiler=no
17301 fi
17302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17304 echo "${ECHO_T}$ac_header_compiler" >&6
17305
17306 # Is the header present?
17307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 #include <$ac_header>
17316 _ACEOF
17317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17319   ac_status=$?
17320   grep -v '^ *+' conftest.er1 >conftest.err
17321   rm -f conftest.er1
17322   cat conftest.err >&5
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); } >/dev/null; then
17325   if test -s conftest.err; then
17326     ac_cpp_err=$ac_c_preproc_warn_flag
17327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17328   else
17329     ac_cpp_err=
17330   fi
17331 else
17332   ac_cpp_err=yes
17333 fi
17334 if test -z "$ac_cpp_err"; then
17335   ac_header_preproc=yes
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340   ac_header_preproc=no
17341 fi
17342 rm -f conftest.err conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6
17345
17346 # So?  What about this header?
17347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17348   yes:no: )
17349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17353     ac_header_preproc=yes
17354     ;;
17355   no:yes:* )
17356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17368     (
17369       cat <<\_ASBOX
17370 ## --------------------------------------------- ##
17371 ## Report this to <http://www.openldap.org/its/> ##
17372 ## --------------------------------------------- ##
17373 _ASBOX
17374     ) |
17375       sed "s/^/$as_me: WARNING:     /" >&2
17376     ;;
17377 esac
17378 echo "$as_me:$LINENO: checking for $ac_header" >&5
17379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17381   echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383   eval "$as_ac_Header=\$ac_header_preproc"
17384 fi
17385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17387
17388 fi
17389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17390   cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17392 _ACEOF
17393
17394 fi
17395
17396 done
17397
17398         if test $ac_cv_header_uuid_uuid_h = yes ; then
17399
17400 for ac_func in uuid_generate
17401 do
17402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17403 echo "$as_me:$LINENO: checking for $ac_func" >&5
17404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17405 if eval "test \"\${$as_ac_var+set}\" = set"; then
17406   echo $ECHO_N "(cached) $ECHO_C" >&6
17407 else
17408   cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17416 #define $ac_func innocuous_$ac_func
17417
17418 /* System header to define __stub macros and hopefully few prototypes,
17419     which can conflict with char $ac_func (); below.
17420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17421     <limits.h> exists even on freestanding compilers.  */
17422
17423 #ifdef __STDC__
17424 # include <limits.h>
17425 #else
17426 # include <assert.h>
17427 #endif
17428
17429 #undef $ac_func
17430
17431 /* Override any gcc2 internal prototype to avoid an error.  */
17432 #ifdef __cplusplus
17433 extern "C"
17434 {
17435 #endif
17436 /* We use char because int might match the return type of a gcc2
17437    builtin and then its argument prototype would still apply.  */
17438 char $ac_func ();
17439 /* The GNU C library defines this for functions which it implements
17440     to always fail with ENOSYS.  Some functions are actually named
17441     something starting with __ and the normal name is an alias.  */
17442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17443 choke me
17444 #else
17445 char (*f) () = $ac_func;
17446 #endif
17447 #ifdef __cplusplus
17448 }
17449 #endif
17450
17451 int
17452 main ()
17453 {
17454 return f != $ac_func;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17461   (eval $ac_link) 2>conftest.er1
17462   ac_status=$?
17463   grep -v '^ *+' conftest.er1 >conftest.err
17464   rm -f conftest.er1
17465   cat conftest.err >&5
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } &&
17468          { ac_try='test -z "$ac_c_werror_flag"
17469                          || test ! -s conftest.err'
17470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471   (eval $ac_try) 2>&5
17472   ac_status=$?
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); }; } &&
17475          { ac_try='test -s conftest$ac_exeext'
17476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477   (eval $ac_try) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; }; then
17481   eval "$as_ac_var=yes"
17482 else
17483   echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 eval "$as_ac_var=no"
17487 fi
17488 rm -f conftest.err conftest.$ac_objext \
17489       conftest$ac_exeext conftest.$ac_ext
17490 fi
17491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17493 if test `eval echo '${'$as_ac_var'}'` = yes; then
17494   cat >>confdefs.h <<_ACEOF
17495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17496 _ACEOF
17497
17498 fi
17499 done
17500
17501                 have_uuid=$ac_cv_func_uuid_generate
17502         fi
17503 fi
17504
17505 if test $have_uuid = no ; then
17506         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17507 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17508         save_LIBS="$LIBS"
17509         LIBS="$LIBS -lrpcrt4"
17510         cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516
17517                 int __stdcall UuidCreate(void *);
17518                 int __stdcall UuidToStringA(void *,void **);
17519
17520 int
17521 main ()
17522 {
17523
17524                 UuidCreate(0);
17525                 UuidToStringA(0,0);
17526
17527   ;
17528   return 0;
17529 }
17530 _ACEOF
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17533   (eval $ac_link) 2>conftest.er1
17534   ac_status=$?
17535   grep -v '^ *+' conftest.er1 >conftest.err
17536   rm -f conftest.er1
17537   cat conftest.err >&5
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } &&
17540          { ac_try='test -z "$ac_c_werror_flag"
17541                          || test ! -s conftest.err'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; } &&
17547          { ac_try='test -s conftest$ac_exeext'
17548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549   (eval $ac_try) 2>&5
17550   ac_status=$?
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); }; }; then
17553   need_rpcrt=yes
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558 need_rpcrt=no
17559 fi
17560 rm -f conftest.err conftest.$ac_objext \
17561       conftest$ac_exeext conftest.$ac_ext
17562         if test $need_rpcrt = yes; then
17563                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17564         fi
17565         LIBS="$save_LIBS"
17566         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17567 echo "${ECHO_T}$need_rpcrt" >&6
17568 fi
17569
17570 ol_cv_lib_resolver=no
17571 if test $ol_cv_lib_resolver = no ; then
17572         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17573 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17574 if test "${ol_cv_resolver_none+set}" = set; then
17575   echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577
17578         ol_RESOLVER_LIB=
17579         ol_LIBS=$LIBS
17580         LIBS="$ol_RESOLVER_LIB $LIBS"
17581
17582         cat >conftest.$ac_ext <<_ACEOF
17583 /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588
17589 #ifdef HAVE_SYS_TYPES_H
17590 #       include <sys/types.h>
17591 #endif
17592 #include <netinet/in.h>
17593 #ifdef HAVE_ARPA_NAMESER_H
17594 #       include <arpa/nameser.h>
17595 #endif
17596 #ifdef HAVE_RESOLV_H
17597 #       include <resolv.h>
17598 #endif
17599
17600 int
17601 main ()
17602 {
17603 {
17604         int len, status;
17605         char *request = NULL;
17606         unsigned char reply[64*1024];
17607         unsigned char host[64*1024];
17608         unsigned char *p;
17609
17610 #ifdef NS_HFIXEDSZ
17611         /* Bind 8/9 interface */
17612         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17613 #else
17614         /* Bind 4 interface */
17615 # ifndef T_SRV
17616 #  define T_SRV 33
17617 # endif
17618         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17619 #endif
17620         p = reply;
17621 #ifdef NS_HFIXEDSZ
17622         /* Bind 8/9 interface */
17623         p += NS_HFIXEDSZ;
17624 #elif defined(HFIXEDSZ)
17625         /* Bind 4 interface w/ HFIXEDSZ */
17626         p += HFIXEDSZ;
17627 #else
17628         /* Bind 4 interface w/o HFIXEDSZ */
17629         p += sizeof(HEADER);
17630 #endif
17631         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17632 }
17633   ;
17634   return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639   (eval $ac_link) 2>conftest.er1
17640   ac_status=$?
17641   grep -v '^ *+' conftest.er1 >conftest.err
17642   rm -f conftest.er1
17643   cat conftest.err >&5
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } &&
17646          { ac_try='test -z "$ac_c_werror_flag"
17647                          || test ! -s conftest.err'
17648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649   (eval $ac_try) 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; } &&
17653          { ac_try='test -s conftest$ac_exeext'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; }; then
17659   ol_cv_resolver_none=yes
17660 else
17661   echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664 ol_cv_resolver_none=no
17665 fi
17666 rm -f conftest.err conftest.$ac_objext \
17667       conftest$ac_exeext conftest.$ac_ext
17668
17669         LIBS="$ol_LIBS"
17670
17671 fi
17672 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17673 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17674
17675         if test $ol_cv_resolver_none = yes ; then
17676                 ol_cv_lib_resolver=yes
17677         fi
17678 fi
17679
17680 if test $ol_cv_lib_resolver = no ; then
17681         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17682 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17683 if test "${ol_cv_resolver_resolv+set}" = set; then
17684   echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686
17687         ol_RESOLVER_LIB=-lresolv
17688         ol_LIBS=$LIBS
17689         LIBS="$ol_RESOLVER_LIB $LIBS"
17690
17691         cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697
17698 #ifdef HAVE_SYS_TYPES_H
17699 #       include <sys/types.h>
17700 #endif
17701 #include <netinet/in.h>
17702 #ifdef HAVE_ARPA_NAMESER_H
17703 #       include <arpa/nameser.h>
17704 #endif
17705 #ifdef HAVE_RESOLV_H
17706 #       include <resolv.h>
17707 #endif
17708
17709 int
17710 main ()
17711 {
17712 {
17713         int len, status;
17714         char *request = NULL;
17715         unsigned char reply[64*1024];
17716         unsigned char host[64*1024];
17717         unsigned char *p;
17718
17719 #ifdef NS_HFIXEDSZ
17720         /* Bind 8/9 interface */
17721         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17722 #else
17723         /* Bind 4 interface */
17724 # ifndef T_SRV
17725 #  define T_SRV 33
17726 # endif
17727         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17728 #endif
17729         p = reply;
17730 #ifdef NS_HFIXEDSZ
17731         /* Bind 8/9 interface */
17732         p += NS_HFIXEDSZ;
17733 #elif defined(HFIXEDSZ)
17734         /* Bind 4 interface w/ HFIXEDSZ */
17735         p += HFIXEDSZ;
17736 #else
17737         /* Bind 4 interface w/o HFIXEDSZ */
17738         p += sizeof(HEADER);
17739 #endif
17740         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17741 }
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748   (eval $ac_link) 2>conftest.er1
17749   ac_status=$?
17750   grep -v '^ *+' conftest.er1 >conftest.err
17751   rm -f conftest.er1
17752   cat conftest.err >&5
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); } &&
17755          { ac_try='test -z "$ac_c_werror_flag"
17756                          || test ! -s conftest.err'
17757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758   (eval $ac_try) 2>&5
17759   ac_status=$?
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); }; } &&
17762          { ac_try='test -s conftest$ac_exeext'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; }; then
17768   ol_cv_resolver_resolv=yes
17769 else
17770   echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773 ol_cv_resolver_resolv=no
17774 fi
17775 rm -f conftest.err conftest.$ac_objext \
17776       conftest$ac_exeext conftest.$ac_ext
17777
17778         LIBS="$ol_LIBS"
17779
17780 fi
17781 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17782 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17783
17784         if test $ol_cv_resolver_resolv = yes ; then
17785                 ol_cv_lib_resolver=-lresolv
17786         fi
17787 fi
17788
17789 if test $ol_cv_lib_resolver = no ; then
17790         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17791 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17792 if test "${ol_cv_resolver_bind+set}" = set; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795
17796         ol_RESOLVER_LIB=-lbind
17797         ol_LIBS=$LIBS
17798         LIBS="$ol_RESOLVER_LIB $LIBS"
17799
17800         cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h.  */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h.  */
17806
17807 #ifdef HAVE_SYS_TYPES_H
17808 #       include <sys/types.h>
17809 #endif
17810 #include <netinet/in.h>
17811 #ifdef HAVE_ARPA_NAMESER_H
17812 #       include <arpa/nameser.h>
17813 #endif
17814 #ifdef HAVE_RESOLV_H
17815 #       include <resolv.h>
17816 #endif
17817
17818 int
17819 main ()
17820 {
17821 {
17822         int len, status;
17823         char *request = NULL;
17824         unsigned char reply[64*1024];
17825         unsigned char host[64*1024];
17826         unsigned char *p;
17827
17828 #ifdef NS_HFIXEDSZ
17829         /* Bind 8/9 interface */
17830         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17831 #else
17832         /* Bind 4 interface */
17833 # ifndef T_SRV
17834 #  define T_SRV 33
17835 # endif
17836         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17837 #endif
17838         p = reply;
17839 #ifdef NS_HFIXEDSZ
17840         /* Bind 8/9 interface */
17841         p += NS_HFIXEDSZ;
17842 #elif defined(HFIXEDSZ)
17843         /* Bind 4 interface w/ HFIXEDSZ */
17844         p += HFIXEDSZ;
17845 #else
17846         /* Bind 4 interface w/o HFIXEDSZ */
17847         p += sizeof(HEADER);
17848 #endif
17849         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17850 }
17851   ;
17852   return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17857   (eval $ac_link) 2>conftest.er1
17858   ac_status=$?
17859   grep -v '^ *+' conftest.er1 >conftest.err
17860   rm -f conftest.er1
17861   cat conftest.err >&5
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); } &&
17864          { ac_try='test -z "$ac_c_werror_flag"
17865                          || test ! -s conftest.err'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; } &&
17871          { ac_try='test -s conftest$ac_exeext'
17872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873   (eval $ac_try) 2>&5
17874   ac_status=$?
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); }; }; then
17877   ol_cv_resolver_bind=yes
17878 else
17879   echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 ol_cv_resolver_bind=no
17883 fi
17884 rm -f conftest.err conftest.$ac_objext \
17885       conftest$ac_exeext conftest.$ac_ext
17886
17887         LIBS="$ol_LIBS"
17888
17889 fi
17890 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17891 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17892
17893         if test $ol_cv_resolver_bind = yes ; then
17894                 ol_cv_lib_resolver=-lbind
17895         fi
17896 fi
17897
17898
17899
17900 ol_link_dnssrv=no
17901 if test "$ol_cv_lib_resolver" != no ; then
17902
17903 cat >>confdefs.h <<\_ACEOF
17904 #define HAVE_RES_QUERY 1
17905 _ACEOF
17906
17907
17908         if test "$ol_enable_dnssrv" != no ; then
17909                 ol_link_dnssrv=yes
17910         fi
17911
17912         if test "$ol_cv_lib_resolver" != yes ; then
17913                 LIBS="$ol_cv_lib_resolver $LIBS"
17914         fi
17915 fi
17916
17917 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17918         if test "$ol_link_dnssrv" = no ; then
17919                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17920 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17921    { (exit 1); exit 1; }; }
17922         fi
17923 else
17924         ol_enable_dnssrv=no
17925 fi
17926
17927
17928 for ac_func in hstrerror
17929 do
17930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17931 echo "$as_me:$LINENO: checking for $ac_func" >&5
17932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17933 if eval "test \"\${$as_ac_var+set}\" = set"; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 else
17936   cat >conftest.$ac_ext <<_ACEOF
17937 /* confdefs.h.  */
17938 _ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h.  */
17942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17944 #define $ac_func innocuous_$ac_func
17945
17946 /* System header to define __stub macros and hopefully few prototypes,
17947     which can conflict with char $ac_func (); below.
17948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17949     <limits.h> exists even on freestanding compilers.  */
17950
17951 #ifdef __STDC__
17952 # include <limits.h>
17953 #else
17954 # include <assert.h>
17955 #endif
17956
17957 #undef $ac_func
17958
17959 /* Override any gcc2 internal prototype to avoid an error.  */
17960 #ifdef __cplusplus
17961 extern "C"
17962 {
17963 #endif
17964 /* We use char because int might match the return type of a gcc2
17965    builtin and then its argument prototype would still apply.  */
17966 char $ac_func ();
17967 /* The GNU C library defines this for functions which it implements
17968     to always fail with ENOSYS.  Some functions are actually named
17969     something starting with __ and the normal name is an alias.  */
17970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17971 choke me
17972 #else
17973 char (*f) () = $ac_func;
17974 #endif
17975 #ifdef __cplusplus
17976 }
17977 #endif
17978
17979 int
17980 main ()
17981 {
17982 return f != $ac_func;
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17989   (eval $ac_link) 2>conftest.er1
17990   ac_status=$?
17991   grep -v '^ *+' conftest.er1 >conftest.err
17992   rm -f conftest.er1
17993   cat conftest.err >&5
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); } &&
17996          { ac_try='test -z "$ac_c_werror_flag"
17997                          || test ! -s conftest.err'
17998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999   (eval $ac_try) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; } &&
18003          { ac_try='test -s conftest$ac_exeext'
18004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005   (eval $ac_try) 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   eval "$as_ac_var=yes"
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 eval "$as_ac_var=no"
18015 fi
18016 rm -f conftest.err conftest.$ac_objext \
18017       conftest$ac_exeext conftest.$ac_ext
18018 fi
18019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18021 if test `eval echo '${'$as_ac_var'}'` = yes; then
18022   cat >>confdefs.h <<_ACEOF
18023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18024 _ACEOF
18025
18026 fi
18027 done
18028
18029
18030
18031
18032
18033
18034 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18035 do
18036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18037 echo "$as_me:$LINENO: checking for $ac_func" >&5
18038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18039 if eval "test \"\${$as_ac_var+set}\" = set"; then
18040   echo $ECHO_N "(cached) $ECHO_C" >&6
18041 else
18042   cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18050 #define $ac_func innocuous_$ac_func
18051
18052 /* System header to define __stub macros and hopefully few prototypes,
18053     which can conflict with char $ac_func (); below.
18054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18055     <limits.h> exists even on freestanding compilers.  */
18056
18057 #ifdef __STDC__
18058 # include <limits.h>
18059 #else
18060 # include <assert.h>
18061 #endif
18062
18063 #undef $ac_func
18064
18065 /* Override any gcc2 internal prototype to avoid an error.  */
18066 #ifdef __cplusplus
18067 extern "C"
18068 {
18069 #endif
18070 /* We use char because int might match the return type of a gcc2
18071    builtin and then its argument prototype would still apply.  */
18072 char $ac_func ();
18073 /* The GNU C library defines this for functions which it implements
18074     to always fail with ENOSYS.  Some functions are actually named
18075     something starting with __ and the normal name is an alias.  */
18076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18077 choke me
18078 #else
18079 char (*f) () = $ac_func;
18080 #endif
18081 #ifdef __cplusplus
18082 }
18083 #endif
18084
18085 int
18086 main ()
18087 {
18088 return f != $ac_func;
18089   ;
18090   return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest.$ac_objext conftest$ac_exeext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18095   (eval $ac_link) 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } &&
18102          { ac_try='test -z "$ac_c_werror_flag"
18103                          || test ! -s conftest.err'
18104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105   (eval $ac_try) 2>&5
18106   ac_status=$?
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); }; } &&
18109          { ac_try='test -s conftest$ac_exeext'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; }; then
18115   eval "$as_ac_var=yes"
18116 else
18117   echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120 eval "$as_ac_var=no"
18121 fi
18122 rm -f conftest.err conftest.$ac_objext \
18123       conftest$ac_exeext conftest.$ac_ext
18124 fi
18125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18127 if test `eval echo '${'$as_ac_var'}'` = yes; then
18128   cat >>confdefs.h <<_ACEOF
18129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18130 _ACEOF
18131
18132 fi
18133 done
18134
18135
18136 ol_link_ipv6=no
18137 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18138         if test $ol_enable_ipv6 = yes ; then
18139                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18140 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18141    { (exit 1); exit 1; }; }
18142         fi
18143 elif test $ol_enable_ipv6 != no ; then
18144         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18145 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18146 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18147   echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149
18150                 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156
18157 #                       include <netinet/in.h>
18158 #                       ifdef INET6_ADDRSTRLEN
18159                                 __has_inet6_addrstrlen__;
18160 #                       endif
18161
18162 _ACEOF
18163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18164   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18165   ol_cv_inet6_addrstrlen=yes
18166 else
18167   ol_cv_inet6_addrstrlen=no
18168 fi
18169 rm -f conftest*
18170
18171 fi
18172 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18173 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18174
18175
18176         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18177 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18178 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18179   echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181
18182                 cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h.  */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h.  */
18188
18189 #include <sys/types.h>
18190 #include <sys/socket.h>
18191
18192 int
18193 main ()
18194 {
18195
18196                         struct sockaddr_storage ss;
18197
18198   ;
18199   return 0;
18200 }
18201 _ACEOF
18202 rm -f conftest.$ac_objext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204   (eval $ac_compile) 2>conftest.er1
18205   ac_status=$?
18206   grep -v '^ *+' conftest.er1 >conftest.err
18207   rm -f conftest.er1
18208   cat conftest.err >&5
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -z "$ac_c_werror_flag"
18212                          || test ! -s conftest.err'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; } &&
18218          { ac_try='test -s conftest.$ac_objext'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ol_cv_struct_sockaddr_storage=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ol_cv_struct_sockaddr_storage=no
18230 fi
18231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18232 fi
18233 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18234 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18235
18236         if test $ol_cv_inet6_addrstrlen = yes &&
18237            test $ol_cv_struct_sockaddr_storage = yes ; then
18238                 ol_link_ipv6=yes
18239         elif test $ol_enable_ipv6 = yes &&
18240              test $ol_cv_inet6_addrstrlen = no ; then
18241                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18242 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18243    { (exit 1); exit 1; }; }
18244         elif test $ol_enable_ipv6 = yes &&
18245              test $ol_cv_struct_sockaddr_storage = no ; then
18246                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18247 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18248    { (exit 1); exit 1; }; }
18249         fi
18250 fi
18251
18252 if test $ol_enable_local != no ; then
18253
18254 for ac_header in sys/un.h
18255 do
18256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18258   echo "$as_me:$LINENO: checking for $ac_header" >&5
18259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18261   echo $ECHO_N "(cached) $ECHO_C" >&6
18262 fi
18263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18265 else
18266   # Is the header compilable?
18267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18269 cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h.  */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h.  */
18275 $ac_includes_default
18276 #include <$ac_header>
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280   (eval $ac_compile) 2>conftest.er1
18281   ac_status=$?
18282   grep -v '^ *+' conftest.er1 >conftest.err
18283   rm -f conftest.er1
18284   cat conftest.err >&5
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); } &&
18287          { ac_try='test -z "$ac_c_werror_flag"
18288                          || test ! -s conftest.err'
18289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290   (eval $ac_try) 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; } &&
18294          { ac_try='test -s conftest.$ac_objext'
18295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296   (eval $ac_try) 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); }; }; then
18300   ac_header_compiler=yes
18301 else
18302   echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18304
18305 ac_header_compiler=no
18306 fi
18307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18309 echo "${ECHO_T}$ac_header_compiler" >&6
18310
18311 # Is the header present?
18312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h.  */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h.  */
18320 #include <$ac_header>
18321 _ACEOF
18322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18324   ac_status=$?
18325   grep -v '^ *+' conftest.er1 >conftest.err
18326   rm -f conftest.er1
18327   cat conftest.err >&5
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } >/dev/null; then
18330   if test -s conftest.err; then
18331     ac_cpp_err=$ac_c_preproc_warn_flag
18332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18333   else
18334     ac_cpp_err=
18335   fi
18336 else
18337   ac_cpp_err=yes
18338 fi
18339 if test -z "$ac_cpp_err"; then
18340   ac_header_preproc=yes
18341 else
18342   echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345   ac_header_preproc=no
18346 fi
18347 rm -f conftest.err conftest.$ac_ext
18348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18349 echo "${ECHO_T}$ac_header_preproc" >&6
18350
18351 # So?  What about this header?
18352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18353   yes:no: )
18354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18358     ac_header_preproc=yes
18359     ;;
18360   no:yes:* )
18361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18373     (
18374       cat <<\_ASBOX
18375 ## --------------------------------------------- ##
18376 ## Report this to <http://www.openldap.org/its/> ##
18377 ## --------------------------------------------- ##
18378 _ASBOX
18379     ) |
18380       sed "s/^/$as_me: WARNING:     /" >&2
18381     ;;
18382 esac
18383 echo "$as_me:$LINENO: checking for $ac_header" >&5
18384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18386   echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388   eval "$as_ac_Header=\$ac_header_preproc"
18389 fi
18390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18392
18393 fi
18394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18395   cat >>confdefs.h <<_ACEOF
18396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18397 _ACEOF
18398
18399 fi
18400
18401 done
18402
18403
18404         if test $ol_enable_local = auto ; then
18405                 ol_enable_local=$ac_cv_header_sys_un_h
18406         elif test $ac_cv_header_sys_un_h = no ; then
18407                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18408 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18409    { (exit 1); exit 1; }; }
18410         fi
18411 fi
18412
18413
18414 if test $ol_with_tls = yes ; then
18415         ol_with_tls=auto
18416 fi
18417
18418 ol_link_tls=no
18419 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18420
18421 for ac_header in openssl/ssl.h
18422 do
18423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18425   echo "$as_me:$LINENO: checking for $ac_header" >&5
18426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 fi
18430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18432 else
18433   # Is the header compilable?
18434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442 $ac_includes_default
18443 #include <$ac_header>
18444 _ACEOF
18445 rm -f conftest.$ac_objext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18447   (eval $ac_compile) 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } &&
18454          { ac_try='test -z "$ac_c_werror_flag"
18455                          || test ! -s conftest.err'
18456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457   (eval $ac_try) 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; } &&
18461          { ac_try='test -s conftest.$ac_objext'
18462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463   (eval $ac_try) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467   ac_header_compiler=yes
18468 else
18469   echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 ac_header_compiler=no
18473 fi
18474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18476 echo "${ECHO_T}$ac_header_compiler" >&6
18477
18478 # Is the header present?
18479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487 #include <$ac_header>
18488 _ACEOF
18489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18491   ac_status=$?
18492   grep -v '^ *+' conftest.er1 >conftest.err
18493   rm -f conftest.er1
18494   cat conftest.err >&5
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); } >/dev/null; then
18497   if test -s conftest.err; then
18498     ac_cpp_err=$ac_c_preproc_warn_flag
18499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18500   else
18501     ac_cpp_err=
18502   fi
18503 else
18504   ac_cpp_err=yes
18505 fi
18506 if test -z "$ac_cpp_err"; then
18507   ac_header_preproc=yes
18508 else
18509   echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18511
18512   ac_header_preproc=no
18513 fi
18514 rm -f conftest.err conftest.$ac_ext
18515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18516 echo "${ECHO_T}$ac_header_preproc" >&6
18517
18518 # So?  What about this header?
18519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18520   yes:no: )
18521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18525     ac_header_preproc=yes
18526     ;;
18527   no:yes:* )
18528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18540     (
18541       cat <<\_ASBOX
18542 ## --------------------------------------------- ##
18543 ## Report this to <http://www.openldap.org/its/> ##
18544 ## --------------------------------------------- ##
18545 _ASBOX
18546     ) |
18547       sed "s/^/$as_me: WARNING:     /" >&2
18548     ;;
18549 esac
18550 echo "$as_me:$LINENO: checking for $ac_header" >&5
18551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   eval "$as_ac_Header=\$ac_header_preproc"
18556 fi
18557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18559
18560 fi
18561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18562   cat >>confdefs.h <<_ACEOF
18563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18564 _ACEOF
18565
18566 fi
18567
18568 done
18569
18570
18571         if test $ac_cv_header_openssl_ssl_h = yes ; then
18572                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18573 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18574 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577   ac_check_lib_save_LIBS=$LIBS
18578 LIBS="-lssl -lcrypto $LIBS"
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586 /* Override any gcc2 internal prototype to avoid an error.  */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 /* We use char because int might match the return type of a gcc2
18591    builtin and then its argument prototype would still apply.  */
18592 char SSL_library_init ();
18593 int
18594 main ()
18595 {
18596 SSL_library_init ();
18597   ;
18598   return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603   (eval $ac_link) 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } &&
18610          { ac_try='test -z "$ac_c_werror_flag"
18611                          || test ! -s conftest.err'
18612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613   (eval $ac_try) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; } &&
18617          { ac_try='test -s conftest$ac_exeext'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; }; then
18623   ac_cv_lib_ssl_SSL_library_init=yes
18624 else
18625   echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 ac_cv_lib_ssl_SSL_library_init=no
18629 fi
18630 rm -f conftest.err conftest.$ac_objext \
18631       conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18633 fi
18634 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18635 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18636 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18637   have_openssl=yes
18638                         need_rsaref=no
18639 else
18640   have_openssl=no
18641 fi
18642
18643
18644                 if test $have_openssl = no ; then
18645                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18646 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18647 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18648   echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650   ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h.  */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h.  */
18658
18659 /* Override any gcc2 internal prototype to avoid an error.  */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 /* We use char because int might match the return type of a gcc2
18664    builtin and then its argument prototype would still apply.  */
18665 char ssl3_accept ();
18666 int
18667 main ()
18668 {
18669 ssl3_accept ();
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676   (eval $ac_link) 2>conftest.er1
18677   ac_status=$?
18678   grep -v '^ *+' conftest.er1 >conftest.err
18679   rm -f conftest.er1
18680   cat conftest.err >&5
18681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); } &&
18683          { ac_try='test -z "$ac_c_werror_flag"
18684                          || test ! -s conftest.err'
18685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686   (eval $ac_try) 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); }; } &&
18690          { ac_try='test -s conftest$ac_exeext'
18691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692   (eval $ac_try) 2>&5
18693   ac_status=$?
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; }; then
18696   ac_cv_lib_ssl_ssl3_accept=yes
18697 else
18698   echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 ac_cv_lib_ssl_ssl3_accept=no
18702 fi
18703 rm -f conftest.err conftest.$ac_objext \
18704       conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18706 fi
18707 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18708 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18709 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18710   have_openssl=yes
18711                                 need_rsaref=yes
18712 else
18713   have_openssl=no
18714 fi
18715
18716                 fi
18717
18718                 if test $have_openssl = yes ; then
18719                         ol_with_tls=openssl
18720                         ol_link_tls=yes
18721
18722
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_OPENSSL 1
18725 _ACEOF
18726
18727
18728                         if test $need_rsaref = yes; then
18729
18730 cat >>confdefs.h <<\_ACEOF
18731 #define HAVE_RSAREF 1
18732 _ACEOF
18733
18734
18735                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18736                         else
18737                                 TLS_LIBS="-lssl -lcrypto"
18738                         fi
18739
18740                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18741 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18742 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745
18746                 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752
18753 #ifdef HAVE_OPENSSL_SSL_H
18754 #include <openssl/ssl.h>
18755 #endif
18756
18757 /* Require 0.9.7d+ */
18758 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18759         char *__ssl_compat = "0.9.7d";
18760 #endif
18761
18762 _ACEOF
18763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18764   $EGREP "__ssl_compat" >/dev/null 2>&1; then
18765   ol_cv_ssl_crl_compat=yes
18766 else
18767   ol_cv_ssl_crl_compat=no
18768 fi
18769 rm -f conftest*
18770
18771 fi
18772 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18773 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18774
18775                         if test $ol_cv_ssl_crl_compat = yes ; then
18776
18777 cat >>confdefs.h <<\_ACEOF
18778 #define HAVE_OPENSSL_CRL 1
18779 _ACEOF
18780
18781                         fi
18782                 fi
18783         fi
18784 fi
18785
18786 WITH_TLS=no
18787 if test $ol_link_tls = yes ; then
18788
18789 cat >>confdefs.h <<\_ACEOF
18790 #define HAVE_TLS 1
18791 _ACEOF
18792
18793         WITH_TLS=yes
18794 elif test $ol_with_tls = auto ; then
18795         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
18796 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
18797         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18798 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18799 elif test $ol_with_tls != no ; then
18800         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
18801 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
18802    { (exit 1); exit 1; }; }
18803 else
18804         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18805 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18806 fi
18807
18808 if test $ol_enable_lmpasswd != no; then
18809         if test $ol_link_tls != yes ; then
18810                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
18811 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
18812    { (exit 1); exit 1; }; }
18813         fi
18814
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define SLAPD_LMHASH 1
18818 _ACEOF
18819
18820 fi
18821
18822 ol_link_threads=no
18823
18824 case $ol_with_threads in auto | yes | nt)
18825
18826
18827         echo "$as_me:$LINENO: checking for _beginthread" >&5
18828 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
18829 if test "${ac_cv_func__beginthread+set}" = set; then
18830   echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832   cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
18839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18840 #define _beginthread innocuous__beginthread
18841
18842 /* System header to define __stub macros and hopefully few prototypes,
18843     which can conflict with char _beginthread (); below.
18844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18845     <limits.h> exists even on freestanding compilers.  */
18846
18847 #ifdef __STDC__
18848 # include <limits.h>
18849 #else
18850 # include <assert.h>
18851 #endif
18852
18853 #undef _beginthread
18854
18855 /* Override any gcc2 internal prototype to avoid an error.  */
18856 #ifdef __cplusplus
18857 extern "C"
18858 {
18859 #endif
18860 /* We use char because int might match the return type of a gcc2
18861    builtin and then its argument prototype would still apply.  */
18862 char _beginthread ();
18863 /* The GNU C library defines this for functions which it implements
18864     to always fail with ENOSYS.  Some functions are actually named
18865     something starting with __ and the normal name is an alias.  */
18866 #if defined (__stub__beginthread) || defined (__stub____beginthread)
18867 choke me
18868 #else
18869 char (*f) () = _beginthread;
18870 #endif
18871 #ifdef __cplusplus
18872 }
18873 #endif
18874
18875 int
18876 main ()
18877 {
18878 return f != _beginthread;
18879   ;
18880   return 0;
18881 }
18882 _ACEOF
18883 rm -f conftest.$ac_objext conftest$ac_exeext
18884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18885   (eval $ac_link) 2>conftest.er1
18886   ac_status=$?
18887   grep -v '^ *+' conftest.er1 >conftest.err
18888   rm -f conftest.er1
18889   cat conftest.err >&5
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } &&
18892          { ac_try='test -z "$ac_c_werror_flag"
18893                          || test ! -s conftest.err'
18894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895   (eval $ac_try) 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; } &&
18899          { ac_try='test -s conftest$ac_exeext'
18900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901   (eval $ac_try) 2>&5
18902   ac_status=$?
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); }; }; then
18905   ac_cv_func__beginthread=yes
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_cv_func__beginthread=no
18911 fi
18912 rm -f conftest.err conftest.$ac_objext \
18913       conftest$ac_exeext conftest.$ac_ext
18914 fi
18915 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
18916 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
18917
18918
18919         if test $ac_cv_func__beginthread = yes ; then
18920
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_NT_THREADS 1
18923 _ACEOF
18924
18925                 ol_cv_nt_threads=yes
18926         fi
18927
18928
18929         if test "$ol_cv_nt_threads" = yes ; then
18930                 ol_link_threads=nt
18931                 ol_with_threads=found
18932                 ol_with_yielding_select=yes
18933
18934
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE_NT_SERVICE_MANAGER 1
18937 _ACEOF
18938
18939
18940 cat >>confdefs.h <<\_ACEOF
18941 #define HAVE_NT_EVENT_LOG 1
18942 _ACEOF
18943
18944         fi
18945
18946         if test $ol_with_threads = nt ; then
18947                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
18948 echo "$as_me: error: could not locate NT Threads" >&2;}
18949    { (exit 1); exit 1; }; }
18950         fi
18951         ;;
18952 esac
18953
18954 case $ol_with_threads in auto | yes | posix)
18955
18956
18957 for ac_header in pthread.h
18958 do
18959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18961   echo "$as_me:$LINENO: checking for $ac_header" >&5
18962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 fi
18966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18968 else
18969   # Is the header compilable?
18970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h.  */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h.  */
18978 $ac_includes_default
18979 #include <$ac_header>
18980 _ACEOF
18981 rm -f conftest.$ac_objext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18983   (eval $ac_compile) 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } &&
18990          { ac_try='test -z "$ac_c_werror_flag"
18991                          || test ! -s conftest.err'
18992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993   (eval $ac_try) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; } &&
18997          { ac_try='test -s conftest.$ac_objext'
18998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999   (eval $ac_try) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; }; then
19003   ac_header_compiler=yes
19004 else
19005   echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 ac_header_compiler=no
19009 fi
19010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19012 echo "${ECHO_T}$ac_header_compiler" >&6
19013
19014 # Is the header present?
19015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 #include <$ac_header>
19024 _ACEOF
19025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19026   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } >/dev/null; then
19033   if test -s conftest.err; then
19034     ac_cpp_err=$ac_c_preproc_warn_flag
19035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19036   else
19037     ac_cpp_err=
19038   fi
19039 else
19040   ac_cpp_err=yes
19041 fi
19042 if test -z "$ac_cpp_err"; then
19043   ac_header_preproc=yes
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048   ac_header_preproc=no
19049 fi
19050 rm -f conftest.err conftest.$ac_ext
19051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19052 echo "${ECHO_T}$ac_header_preproc" >&6
19053
19054 # So?  What about this header?
19055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19056   yes:no: )
19057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19061     ac_header_preproc=yes
19062     ;;
19063   no:yes:* )
19064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19076     (
19077       cat <<\_ASBOX
19078 ## --------------------------------------------- ##
19079 ## Report this to <http://www.openldap.org/its/> ##
19080 ## --------------------------------------------- ##
19081 _ASBOX
19082     ) |
19083       sed "s/^/$as_me: WARNING:     /" >&2
19084     ;;
19085 esac
19086 echo "$as_me:$LINENO: checking for $ac_header" >&5
19087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   eval "$as_ac_Header=\$ac_header_preproc"
19092 fi
19093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19095
19096 fi
19097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19098   cat >>confdefs.h <<_ACEOF
19099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19100 _ACEOF
19101
19102 fi
19103
19104 done
19105
19106
19107         if test $ac_cv_header_pthread_h = yes ; then
19108                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19109 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19110 if test "${ol_cv_pthread_version+set}" = set; then
19111   echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113
19114         cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120
19121 #               include <pthread.h>
19122
19123 int
19124 main ()
19125 {
19126
19127                 int i = PTHREAD_CREATE_JOINABLE;
19128
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135   (eval $ac_compile) 2>conftest.er1
19136   ac_status=$?
19137   grep -v '^ *+' conftest.er1 >conftest.err
19138   rm -f conftest.er1
19139   cat conftest.err >&5
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); } &&
19142          { ac_try='test -z "$ac_c_werror_flag"
19143                          || test ! -s conftest.err'
19144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145   (eval $ac_try) 2>&5
19146   ac_status=$?
19147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148   (exit $ac_status); }; } &&
19149          { ac_try='test -s conftest.$ac_objext'
19150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151   (eval $ac_try) 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); }; }; then
19155
19156         cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162 #include <pthread.h>
19163
19164 _ACEOF
19165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19166   $EGREP "pthread_detach" >/dev/null 2>&1; then
19167   ol_cv_pthread_version=10
19168 else
19169   ol_cv_pthread_version=8
19170 fi
19171 rm -f conftest*
19172
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177
19178         cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h.  */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h.  */
19184
19185 #               include <pthread.h>
19186 #               ifdef PTHREAD_CREATE_UNDETACHED
19187                 draft7
19188 #               endif
19189
19190 _ACEOF
19191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19192   $EGREP "draft7" >/dev/null 2>&1; then
19193   ol_cv_pthread_version=7
19194 else
19195
19196         cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h.  */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h.  */
19202 #include <pthread.h>
19203
19204 _ACEOF
19205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19206   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19207   ol_cv_pthread_version=6
19208 else
19209
19210         cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h.  */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h.  */
19216
19217 #               include <pthread.h>
19218 #ifdef          PTHREAD_MUTEX_INITIALIZER
19219                 draft5
19220 #endif
19221
19222 _ACEOF
19223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19224   $EGREP "draft5" >/dev/null 2>&1; then
19225   ol_cv_pthread_version=5
19226 else
19227   ol_cv_pthread_version=4
19228 fi
19229 rm -f conftest*
19230
19231 fi
19232 rm -f conftest*
19233
19234 fi
19235 rm -f conftest*
19236
19237 fi
19238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19239
19240 fi
19241 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19242 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19243
19244
19245                 if test $ol_cv_pthread_version != 0 ; then
19246
19247 cat >>confdefs.h <<_ACEOF
19248 #define HAVE_PTHREADS $ol_cv_pthread_version
19249 _ACEOF
19250
19251                 else
19252                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19253 echo "$as_me: error: unknown pthread version" >&2;}
19254    { (exit 1); exit 1; }; }
19255                 fi
19256
19257                 # consider threads found
19258                 ol_with_threads=found
19259
19260
19261         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19262 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19263 if test "${ol_cv_header_linux_threads+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272 #include <pthread.h>
19273 _ACEOF
19274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19275   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19276   ol_cv_header_linux_threads=yes
19277 else
19278   ol_cv_header_linux_threads=no
19279 fi
19280 rm -f conftest*
19281
19282
19283 fi
19284 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19285 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19286         if test $ol_cv_header_linux_threads = yes; then
19287
19288 cat >>confdefs.h <<\_ACEOF
19289 #define HAVE_LINUX_THREADS 1
19290 _ACEOF
19291
19292         fi
19293
19294
19295         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19296 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19297 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300   cat >conftest.$ac_ext <<_ACEOF
19301 /* confdefs.h.  */
19302 _ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h.  */
19306 #include <pthread.h>
19307 #ifdef _POSIX_THREAD_IS_GNU_PTH
19308         __gnu_pth__;
19309 #endif
19310
19311 _ACEOF
19312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19313   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19314   ol_cv_header_gnu_pth_pthread_h=yes
19315 else
19316   ol_cv_header_gnu_pth_pthread_h=no
19317 fi
19318 rm -f conftest*
19319
19320
19321 fi
19322 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19323 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19324
19325
19326                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19327
19328 for ac_header in sched.h
19329 do
19330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19332   echo "$as_me:$LINENO: checking for $ac_header" >&5
19333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 fi
19337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19339 else
19340   # Is the header compilable?
19341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 $ac_includes_default
19350 #include <$ac_header>
19351 _ACEOF
19352 rm -f conftest.$ac_objext
19353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19354   (eval $ac_compile) 2>conftest.er1
19355   ac_status=$?
19356   grep -v '^ *+' conftest.er1 >conftest.err
19357   rm -f conftest.er1
19358   cat conftest.err >&5
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); } &&
19361          { ac_try='test -z "$ac_c_werror_flag"
19362                          || test ! -s conftest.err'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; } &&
19368          { ac_try='test -s conftest.$ac_objext'
19369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370   (eval $ac_try) 2>&5
19371   ac_status=$?
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); }; }; then
19374   ac_header_compiler=yes
19375 else
19376   echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ac_header_compiler=no
19380 fi
19381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19383 echo "${ECHO_T}$ac_header_compiler" >&6
19384
19385 # Is the header present?
19386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19388 cat >conftest.$ac_ext <<_ACEOF
19389 /* confdefs.h.  */
19390 _ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h.  */
19394 #include <$ac_header>
19395 _ACEOF
19396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19398   ac_status=$?
19399   grep -v '^ *+' conftest.er1 >conftest.err
19400   rm -f conftest.er1
19401   cat conftest.err >&5
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); } >/dev/null; then
19404   if test -s conftest.err; then
19405     ac_cpp_err=$ac_c_preproc_warn_flag
19406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19407   else
19408     ac_cpp_err=
19409   fi
19410 else
19411   ac_cpp_err=yes
19412 fi
19413 if test -z "$ac_cpp_err"; then
19414   ac_header_preproc=yes
19415 else
19416   echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19418
19419   ac_header_preproc=no
19420 fi
19421 rm -f conftest.err conftest.$ac_ext
19422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19423 echo "${ECHO_T}$ac_header_preproc" >&6
19424
19425 # So?  What about this header?
19426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19427   yes:no: )
19428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19432     ac_header_preproc=yes
19433     ;;
19434   no:yes:* )
19435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19447     (
19448       cat <<\_ASBOX
19449 ## --------------------------------------------- ##
19450 ## Report this to <http://www.openldap.org/its/> ##
19451 ## --------------------------------------------- ##
19452 _ASBOX
19453     ) |
19454       sed "s/^/$as_me: WARNING:     /" >&2
19455     ;;
19456 esac
19457 echo "$as_me:$LINENO: checking for $ac_header" >&5
19458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   eval "$as_ac_Header=\$ac_header_preproc"
19463 fi
19464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19466
19467 fi
19468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19469   cat >>confdefs.h <<_ACEOF
19470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19471 _ACEOF
19472
19473 fi
19474
19475 done
19476
19477                 fi
19478
19479
19480                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19481 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19482 if test "${ol_cv_pthread_create+set}" = set; then
19483   echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485
19486                         if test "$cross_compiling" = yes; then
19487   cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493
19494 /* pthread test headers */
19495 #include <pthread.h>
19496 #if HAVE_PTHREADS < 7
19497 #include <errno.h>
19498 #endif
19499 #ifndef NULL
19500 #define NULL (void*)0
19501 #endif
19502
19503 static void *task(p)
19504         void *p;
19505 {
19506         return (void *) (p == NULL);
19507 }
19508
19509 int
19510 main ()
19511 {
19512
19513         /* pthread test function */
19514 #ifndef PTHREAD_CREATE_DETACHED
19515 #define PTHREAD_CREATE_DETACHED 1
19516 #endif
19517         pthread_t t;
19518         int status;
19519         int detach = PTHREAD_CREATE_DETACHED;
19520
19521 #if HAVE_PTHREADS > 4
19522         /* Final pthreads */
19523         pthread_attr_t attr;
19524
19525         status = pthread_attr_init(&attr);
19526         if( status ) return status;
19527
19528 #if HAVE_PTHREADS < 7
19529         status = pthread_attr_setdetachstate(&attr, &detach);
19530         if( status < 0 ) status = errno;
19531 #else
19532         status = pthread_attr_setdetachstate(&attr, detach);
19533 #endif
19534         if( status ) return status;
19535         status = pthread_create( &t, &attr, task, NULL );
19536 #if HAVE_PTHREADS < 7
19537         if( status < 0 ) status = errno;
19538 #endif
19539         if( status ) return status;
19540 #else
19541         /* Draft 4 pthreads */
19542         status = pthread_create( &t, pthread_attr_default, task, NULL );
19543         if( status ) return errno;
19544
19545         /* give thread a chance to complete */
19546         /* it should remain joinable and hence detachable */
19547         sleep( 1 );
19548
19549         status = pthread_detach( &t );
19550         if( status ) return errno;
19551 #endif
19552
19553 #ifdef HAVE_LINUX_THREADS
19554         pthread_kill_other_threads_np();
19555 #endif
19556
19557         return 0;
19558
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19565   (eval $ac_link) 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } &&
19572          { ac_try='test -z "$ac_c_werror_flag"
19573                          || test ! -s conftest.err'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; } &&
19579          { ac_try='test -s conftest$ac_exeext'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; }; then
19585   ol_cv_pthread_create=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590 ol_cv_pthread_create=no
19591 fi
19592 rm -f conftest.err conftest.$ac_objext \
19593       conftest$ac_exeext conftest.$ac_ext
19594 else
19595   cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h.  */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h.  */
19601
19602 /* pthread test headers */
19603 #include <pthread.h>
19604 #if HAVE_PTHREADS < 7
19605 #include <errno.h>
19606 #endif
19607 #ifndef NULL
19608 #define NULL (void*)0
19609 #endif
19610
19611 static void *task(p)
19612         void *p;
19613 {
19614         return (void *) (p == NULL);
19615 }
19616
19617
19618 int main(argc, argv)
19619         int argc;
19620         char **argv;
19621 {
19622
19623         /* pthread test function */
19624 #ifndef PTHREAD_CREATE_DETACHED
19625 #define PTHREAD_CREATE_DETACHED 1
19626 #endif
19627         pthread_t t;
19628         int status;
19629         int detach = PTHREAD_CREATE_DETACHED;
19630
19631 #if HAVE_PTHREADS > 4
19632         /* Final pthreads */
19633         pthread_attr_t attr;
19634
19635         status = pthread_attr_init(&attr);
19636         if( status ) return status;
19637
19638 #if HAVE_PTHREADS < 7
19639         status = pthread_attr_setdetachstate(&attr, &detach);
19640         if( status < 0 ) status = errno;
19641 #else
19642         status = pthread_attr_setdetachstate(&attr, detach);
19643 #endif
19644         if( status ) return status;
19645         status = pthread_create( &t, &attr, task, NULL );
19646 #if HAVE_PTHREADS < 7
19647         if( status < 0 ) status = errno;
19648 #endif
19649         if( status ) return status;
19650 #else
19651         /* Draft 4 pthreads */
19652         status = pthread_create( &t, pthread_attr_default, task, NULL );
19653         if( status ) return errno;
19654
19655         /* give thread a chance to complete */
19656         /* it should remain joinable and hence detachable */
19657         sleep( 1 );
19658
19659         status = pthread_detach( &t );
19660         if( status ) return errno;
19661 #endif
19662
19663 #ifdef HAVE_LINUX_THREADS
19664         pthread_kill_other_threads_np();
19665 #endif
19666
19667         return 0;
19668
19669 }
19670
19671 _ACEOF
19672 rm -f conftest$ac_exeext
19673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19674   (eval $ac_link) 2>&5
19675   ac_status=$?
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679   (eval $ac_try) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; }; then
19683   ol_cv_pthread_create=yes
19684 else
19685   echo "$as_me: program exited with status $ac_status" >&5
19686 echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 ( exit $ac_status )
19690 ol_cv_pthread_create=no
19691 fi
19692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19693 fi
19694 fi
19695 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19696 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19697
19698                 if test $ol_cv_pthread_create != no ; then
19699                         ol_link_threads=posix
19700                         ol_link_pthreads=""
19701                 fi
19702
19703                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19704 if test "$ol_link_threads" = no ; then
19705         # try -kthread
19706         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19707 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19708 if test "${ol_cv_pthread_kthread+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711
19712                 # save the flags
19713                 ol_LIBS="$LIBS"
19714                 LIBS="-kthread $LIBS"
19715
19716                 if test "$cross_compiling" = yes; then
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723
19724 /* pthread test headers */
19725 #include <pthread.h>
19726 #if HAVE_PTHREADS < 7
19727 #include <errno.h>
19728 #endif
19729 #ifndef NULL
19730 #define NULL (void*)0
19731 #endif
19732
19733 static void *task(p)
19734         void *p;
19735 {
19736         return (void *) (p == NULL);
19737 }
19738
19739 int
19740 main ()
19741 {
19742
19743         /* pthread test function */
19744 #ifndef PTHREAD_CREATE_DETACHED
19745 #define PTHREAD_CREATE_DETACHED 1
19746 #endif
19747         pthread_t t;
19748         int status;
19749         int detach = PTHREAD_CREATE_DETACHED;
19750
19751 #if HAVE_PTHREADS > 4
19752         /* Final pthreads */
19753         pthread_attr_t attr;
19754
19755         status = pthread_attr_init(&attr);
19756         if( status ) return status;
19757
19758 #if HAVE_PTHREADS < 7
19759         status = pthread_attr_setdetachstate(&attr, &detach);
19760         if( status < 0 ) status = errno;
19761 #else
19762         status = pthread_attr_setdetachstate(&attr, detach);
19763 #endif
19764         if( status ) return status;
19765         status = pthread_create( &t, &attr, task, NULL );
19766 #if HAVE_PTHREADS < 7
19767         if( status < 0 ) status = errno;
19768 #endif
19769         if( status ) return status;
19770 #else
19771         /* Draft 4 pthreads */
19772         status = pthread_create( &t, pthread_attr_default, task, NULL );
19773         if( status ) return errno;
19774
19775         /* give thread a chance to complete */
19776         /* it should remain joinable and hence detachable */
19777         sleep( 1 );
19778
19779         status = pthread_detach( &t );
19780         if( status ) return errno;
19781 #endif
19782
19783 #ifdef HAVE_LINUX_THREADS
19784         pthread_kill_other_threads_np();
19785 #endif
19786
19787         return 0;
19788
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19795   (eval $ac_link) 2>conftest.er1
19796   ac_status=$?
19797   grep -v '^ *+' conftest.er1 >conftest.err
19798   rm -f conftest.er1
19799   cat conftest.err >&5
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); } &&
19802          { ac_try='test -z "$ac_c_werror_flag"
19803                          || test ! -s conftest.err'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; } &&
19809          { ac_try='test -s conftest$ac_exeext'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815   ol_cv_pthread_kthread=yes
19816 else
19817   echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ol_cv_pthread_kthread=no
19821 fi
19822 rm -f conftest.err conftest.$ac_objext \
19823       conftest$ac_exeext conftest.$ac_ext
19824 else
19825   cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831
19832 /* pthread test headers */
19833 #include <pthread.h>
19834 #if HAVE_PTHREADS < 7
19835 #include <errno.h>
19836 #endif
19837 #ifndef NULL
19838 #define NULL (void*)0
19839 #endif
19840
19841 static void *task(p)
19842         void *p;
19843 {
19844         return (void *) (p == NULL);
19845 }
19846
19847
19848 int main(argc, argv)
19849         int argc;
19850         char **argv;
19851 {
19852
19853         /* pthread test function */
19854 #ifndef PTHREAD_CREATE_DETACHED
19855 #define PTHREAD_CREATE_DETACHED 1
19856 #endif
19857         pthread_t t;
19858         int status;
19859         int detach = PTHREAD_CREATE_DETACHED;
19860
19861 #if HAVE_PTHREADS > 4
19862         /* Final pthreads */
19863         pthread_attr_t attr;
19864
19865         status = pthread_attr_init(&attr);
19866         if( status ) return status;
19867
19868 #if HAVE_PTHREADS < 7
19869         status = pthread_attr_setdetachstate(&attr, &detach);
19870         if( status < 0 ) status = errno;
19871 #else
19872         status = pthread_attr_setdetachstate(&attr, detach);
19873 #endif
19874         if( status ) return status;
19875         status = pthread_create( &t, &attr, task, NULL );
19876 #if HAVE_PTHREADS < 7
19877         if( status < 0 ) status = errno;
19878 #endif
19879         if( status ) return status;
19880 #else
19881         /* Draft 4 pthreads */
19882         status = pthread_create( &t, pthread_attr_default, task, NULL );
19883         if( status ) return errno;
19884
19885         /* give thread a chance to complete */
19886         /* it should remain joinable and hence detachable */
19887         sleep( 1 );
19888
19889         status = pthread_detach( &t );
19890         if( status ) return errno;
19891 #endif
19892
19893 #ifdef HAVE_LINUX_THREADS
19894         pthread_kill_other_threads_np();
19895 #endif
19896
19897         return 0;
19898
19899 }
19900
19901 _ACEOF
19902 rm -f conftest$ac_exeext
19903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19904   (eval $ac_link) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909   (eval $ac_try) 2>&5
19910   ac_status=$?
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); }; }; then
19913   ol_cv_pthread_kthread=yes
19914 else
19915   echo "$as_me: program exited with status $ac_status" >&5
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 ( exit $ac_status )
19920 ol_cv_pthread_kthread=no
19921 fi
19922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19923 fi
19924
19925                 # restore the LIBS
19926                 LIBS="$ol_LIBS"
19927
19928 fi
19929 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
19930 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
19931
19932         if test $ol_cv_pthread_kthread = yes ; then
19933                 ol_link_pthreads="-kthread"
19934                 ol_link_threads=posix
19935         fi
19936 fi
19937
19938                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19939 if test "$ol_link_threads" = no ; then
19940         # try -pthread
19941         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
19942 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
19943 if test "${ol_cv_pthread_pthread+set}" = set; then
19944   echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946
19947                 # save the flags
19948                 ol_LIBS="$LIBS"
19949                 LIBS="-pthread $LIBS"
19950
19951                 if test "$cross_compiling" = yes; then
19952   cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h.  */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h.  */
19958
19959 /* pthread test headers */
19960 #include <pthread.h>
19961 #if HAVE_PTHREADS < 7
19962 #include <errno.h>
19963 #endif
19964 #ifndef NULL
19965 #define NULL (void*)0
19966 #endif
19967
19968 static void *task(p)
19969         void *p;
19970 {
19971         return (void *) (p == NULL);
19972 }
19973
19974 int
19975 main ()
19976 {
19977
19978         /* pthread test function */
19979 #ifndef PTHREAD_CREATE_DETACHED
19980 #define PTHREAD_CREATE_DETACHED 1
19981 #endif
19982         pthread_t t;
19983         int status;
19984         int detach = PTHREAD_CREATE_DETACHED;
19985
19986 #if HAVE_PTHREADS > 4
19987         /* Final pthreads */
19988         pthread_attr_t attr;
19989
19990         status = pthread_attr_init(&attr);
19991         if( status ) return status;
19992
19993 #if HAVE_PTHREADS < 7
19994         status = pthread_attr_setdetachstate(&attr, &detach);
19995         if( status < 0 ) status = errno;
19996 #else
19997         status = pthread_attr_setdetachstate(&attr, detach);
19998 #endif
19999         if( status ) return status;
20000         status = pthread_create( &t, &attr, task, NULL );
20001 #if HAVE_PTHREADS < 7
20002         if( status < 0 ) status = errno;
20003 #endif
20004         if( status ) return status;
20005 #else
20006         /* Draft 4 pthreads */
20007         status = pthread_create( &t, pthread_attr_default, task, NULL );
20008         if( status ) return errno;
20009
20010         /* give thread a chance to complete */
20011         /* it should remain joinable and hence detachable */
20012         sleep( 1 );
20013
20014         status = pthread_detach( &t );
20015         if( status ) return errno;
20016 #endif
20017
20018 #ifdef HAVE_LINUX_THREADS
20019         pthread_kill_other_threads_np();
20020 #endif
20021
20022         return 0;
20023
20024   ;
20025   return 0;
20026 }
20027 _ACEOF
20028 rm -f conftest.$ac_objext conftest$ac_exeext
20029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20030   (eval $ac_link) 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } &&
20037          { ac_try='test -z "$ac_c_werror_flag"
20038                          || test ! -s conftest.err'
20039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040   (eval $ac_try) 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; } &&
20044          { ac_try='test -s conftest$ac_exeext'
20045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046   (eval $ac_try) 2>&5
20047   ac_status=$?
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); }; }; then
20050   ol_cv_pthread_pthread=yes
20051 else
20052   echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20054
20055 ol_cv_pthread_pthread=no
20056 fi
20057 rm -f conftest.err conftest.$ac_objext \
20058       conftest$ac_exeext conftest.$ac_ext
20059 else
20060   cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066
20067 /* pthread test headers */
20068 #include <pthread.h>
20069 #if HAVE_PTHREADS < 7
20070 #include <errno.h>
20071 #endif
20072 #ifndef NULL
20073 #define NULL (void*)0
20074 #endif
20075
20076 static void *task(p)
20077         void *p;
20078 {
20079         return (void *) (p == NULL);
20080 }
20081
20082
20083 int main(argc, argv)
20084         int argc;
20085         char **argv;
20086 {
20087
20088         /* pthread test function */
20089 #ifndef PTHREAD_CREATE_DETACHED
20090 #define PTHREAD_CREATE_DETACHED 1
20091 #endif
20092         pthread_t t;
20093         int status;
20094         int detach = PTHREAD_CREATE_DETACHED;
20095
20096 #if HAVE_PTHREADS > 4
20097         /* Final pthreads */
20098         pthread_attr_t attr;
20099
20100         status = pthread_attr_init(&attr);
20101         if( status ) return status;
20102
20103 #if HAVE_PTHREADS < 7
20104         status = pthread_attr_setdetachstate(&attr, &detach);
20105         if( status < 0 ) status = errno;
20106 #else
20107         status = pthread_attr_setdetachstate(&attr, detach);
20108 #endif
20109         if( status ) return status;
20110         status = pthread_create( &t, &attr, task, NULL );
20111 #if HAVE_PTHREADS < 7
20112         if( status < 0 ) status = errno;
20113 #endif
20114         if( status ) return status;
20115 #else
20116         /* Draft 4 pthreads */
20117         status = pthread_create( &t, pthread_attr_default, task, NULL );
20118         if( status ) return errno;
20119
20120         /* give thread a chance to complete */
20121         /* it should remain joinable and hence detachable */
20122         sleep( 1 );
20123
20124         status = pthread_detach( &t );
20125         if( status ) return errno;
20126 #endif
20127
20128 #ifdef HAVE_LINUX_THREADS
20129         pthread_kill_other_threads_np();
20130 #endif
20131
20132         return 0;
20133
20134 }
20135
20136 _ACEOF
20137 rm -f conftest$ac_exeext
20138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20139   (eval $ac_link) 2>&5
20140   ac_status=$?
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144   (eval $ac_try) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; }; then
20148   ol_cv_pthread_pthread=yes
20149 else
20150   echo "$as_me: program exited with status $ac_status" >&5
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ( exit $ac_status )
20155 ol_cv_pthread_pthread=no
20156 fi
20157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20158 fi
20159
20160                 # restore the LIBS
20161                 LIBS="$ol_LIBS"
20162
20163 fi
20164 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20165 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20166
20167         if test $ol_cv_pthread_pthread = yes ; then
20168                 ol_link_pthreads="-pthread"
20169                 ol_link_threads=posix
20170         fi
20171 fi
20172
20173                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20174 if test "$ol_link_threads" = no ; then
20175         # try -pthreads
20176         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20177 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20178 if test "${ol_cv_pthread_pthreads+set}" = set; then
20179   echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181
20182                 # save the flags
20183                 ol_LIBS="$LIBS"
20184                 LIBS="-pthreads $LIBS"
20185
20186                 if test "$cross_compiling" = yes; then
20187   cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193
20194 /* pthread test headers */
20195 #include <pthread.h>
20196 #if HAVE_PTHREADS < 7
20197 #include <errno.h>
20198 #endif
20199 #ifndef NULL
20200 #define NULL (void*)0
20201 #endif
20202
20203 static void *task(p)
20204         void *p;
20205 {
20206         return (void *) (p == NULL);
20207 }
20208
20209 int
20210 main ()
20211 {
20212
20213         /* pthread test function */
20214 #ifndef PTHREAD_CREATE_DETACHED
20215 #define PTHREAD_CREATE_DETACHED 1
20216 #endif
20217         pthread_t t;
20218         int status;
20219         int detach = PTHREAD_CREATE_DETACHED;
20220
20221 #if HAVE_PTHREADS > 4
20222         /* Final pthreads */
20223         pthread_attr_t attr;
20224
20225         status = pthread_attr_init(&attr);
20226         if( status ) return status;
20227
20228 #if HAVE_PTHREADS < 7
20229         status = pthread_attr_setdetachstate(&attr, &detach);
20230         if( status < 0 ) status = errno;
20231 #else
20232         status = pthread_attr_setdetachstate(&attr, detach);
20233 #endif
20234         if( status ) return status;
20235         status = pthread_create( &t, &attr, task, NULL );
20236 #if HAVE_PTHREADS < 7
20237         if( status < 0 ) status = errno;
20238 #endif
20239         if( status ) return status;
20240 #else
20241         /* Draft 4 pthreads */
20242         status = pthread_create( &t, pthread_attr_default, task, NULL );
20243         if( status ) return errno;
20244
20245         /* give thread a chance to complete */
20246         /* it should remain joinable and hence detachable */
20247         sleep( 1 );
20248
20249         status = pthread_detach( &t );
20250         if( status ) return errno;
20251 #endif
20252
20253 #ifdef HAVE_LINUX_THREADS
20254         pthread_kill_other_threads_np();
20255 #endif
20256
20257         return 0;
20258
20259   ;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20265   (eval $ac_link) 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } &&
20272          { ac_try='test -z "$ac_c_werror_flag"
20273                          || test ! -s conftest.err'
20274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275   (eval $ac_try) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; } &&
20279          { ac_try='test -s conftest$ac_exeext'
20280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281   (eval $ac_try) 2>&5
20282   ac_status=$?
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); }; }; then
20285   ol_cv_pthread_pthreads=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 ol_cv_pthread_pthreads=no
20291 fi
20292 rm -f conftest.err conftest.$ac_objext \
20293       conftest$ac_exeext conftest.$ac_ext
20294 else
20295   cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301
20302 /* pthread test headers */
20303 #include <pthread.h>
20304 #if HAVE_PTHREADS < 7
20305 #include <errno.h>
20306 #endif
20307 #ifndef NULL
20308 #define NULL (void*)0
20309 #endif
20310
20311 static void *task(p)
20312         void *p;
20313 {
20314         return (void *) (p == NULL);
20315 }
20316
20317
20318 int main(argc, argv)
20319         int argc;
20320         char **argv;
20321 {
20322
20323         /* pthread test function */
20324 #ifndef PTHREAD_CREATE_DETACHED
20325 #define PTHREAD_CREATE_DETACHED 1
20326 #endif
20327         pthread_t t;
20328         int status;
20329         int detach = PTHREAD_CREATE_DETACHED;
20330
20331 #if HAVE_PTHREADS > 4
20332         /* Final pthreads */
20333         pthread_attr_t attr;
20334
20335         status = pthread_attr_init(&attr);
20336         if( status ) return status;
20337
20338 #if HAVE_PTHREADS < 7
20339         status = pthread_attr_setdetachstate(&attr, &detach);
20340         if( status < 0 ) status = errno;
20341 #else
20342         status = pthread_attr_setdetachstate(&attr, detach);
20343 #endif
20344         if( status ) return status;
20345         status = pthread_create( &t, &attr, task, NULL );
20346 #if HAVE_PTHREADS < 7
20347         if( status < 0 ) status = errno;
20348 #endif
20349         if( status ) return status;
20350 #else
20351         /* Draft 4 pthreads */
20352         status = pthread_create( &t, pthread_attr_default, task, NULL );
20353         if( status ) return errno;
20354
20355         /* give thread a chance to complete */
20356         /* it should remain joinable and hence detachable */
20357         sleep( 1 );
20358
20359         status = pthread_detach( &t );
20360         if( status ) return errno;
20361 #endif
20362
20363 #ifdef HAVE_LINUX_THREADS
20364         pthread_kill_other_threads_np();
20365 #endif
20366
20367         return 0;
20368
20369 }
20370
20371 _ACEOF
20372 rm -f conftest$ac_exeext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20374   (eval $ac_link) 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ol_cv_pthread_pthreads=yes
20384 else
20385   echo "$as_me: program exited with status $ac_status" >&5
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 ( exit $ac_status )
20390 ol_cv_pthread_pthreads=no
20391 fi
20392 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20393 fi
20394
20395                 # restore the LIBS
20396                 LIBS="$ol_LIBS"
20397
20398 fi
20399 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20400 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20401
20402         if test $ol_cv_pthread_pthreads = yes ; then
20403                 ol_link_pthreads="-pthreads"
20404                 ol_link_threads=posix
20405         fi
20406 fi
20407
20408                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20409 if test "$ol_link_threads" = no ; then
20410         # try -mthreads
20411         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20412 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20413 if test "${ol_cv_pthread_mthreads+set}" = set; then
20414   echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416
20417                 # save the flags
20418                 ol_LIBS="$LIBS"
20419                 LIBS="-mthreads $LIBS"
20420
20421                 if test "$cross_compiling" = yes; then
20422   cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h.  */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h.  */
20428
20429 /* pthread test headers */
20430 #include <pthread.h>
20431 #if HAVE_PTHREADS < 7
20432 #include <errno.h>
20433 #endif
20434 #ifndef NULL
20435 #define NULL (void*)0
20436 #endif
20437
20438 static void *task(p)
20439         void *p;
20440 {
20441         return (void *) (p == NULL);
20442 }
20443
20444 int
20445 main ()
20446 {
20447
20448         /* pthread test function */
20449 #ifndef PTHREAD_CREATE_DETACHED
20450 #define PTHREAD_CREATE_DETACHED 1
20451 #endif
20452         pthread_t t;
20453         int status;
20454         int detach = PTHREAD_CREATE_DETACHED;
20455
20456 #if HAVE_PTHREADS > 4
20457         /* Final pthreads */
20458         pthread_attr_t attr;
20459
20460         status = pthread_attr_init(&attr);
20461         if( status ) return status;
20462
20463 #if HAVE_PTHREADS < 7
20464         status = pthread_attr_setdetachstate(&attr, &detach);
20465         if( status < 0 ) status = errno;
20466 #else
20467         status = pthread_attr_setdetachstate(&attr, detach);
20468 #endif
20469         if( status ) return status;
20470         status = pthread_create( &t, &attr, task, NULL );
20471 #if HAVE_PTHREADS < 7
20472         if( status < 0 ) status = errno;
20473 #endif
20474         if( status ) return status;
20475 #else
20476         /* Draft 4 pthreads */
20477         status = pthread_create( &t, pthread_attr_default, task, NULL );
20478         if( status ) return errno;
20479
20480         /* give thread a chance to complete */
20481         /* it should remain joinable and hence detachable */
20482         sleep( 1 );
20483
20484         status = pthread_detach( &t );
20485         if( status ) return errno;
20486 #endif
20487
20488 #ifdef HAVE_LINUX_THREADS
20489         pthread_kill_other_threads_np();
20490 #endif
20491
20492         return 0;
20493
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20500   (eval $ac_link) 2>conftest.er1
20501   ac_status=$?
20502   grep -v '^ *+' conftest.er1 >conftest.err
20503   rm -f conftest.er1
20504   cat conftest.err >&5
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); } &&
20507          { ac_try='test -z "$ac_c_werror_flag"
20508                          || test ! -s conftest.err'
20509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510   (eval $ac_try) 2>&5
20511   ac_status=$?
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); }; } &&
20514          { ac_try='test -s conftest$ac_exeext'
20515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516   (eval $ac_try) 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ol_cv_pthread_mthreads=yes
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 ol_cv_pthread_mthreads=no
20526 fi
20527 rm -f conftest.err conftest.$ac_objext \
20528       conftest$ac_exeext conftest.$ac_ext
20529 else
20530   cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536
20537 /* pthread test headers */
20538 #include <pthread.h>
20539 #if HAVE_PTHREADS < 7
20540 #include <errno.h>
20541 #endif
20542 #ifndef NULL
20543 #define NULL (void*)0
20544 #endif
20545
20546 static void *task(p)
20547         void *p;
20548 {
20549         return (void *) (p == NULL);
20550 }
20551
20552
20553 int main(argc, argv)
20554         int argc;
20555         char **argv;
20556 {
20557
20558         /* pthread test function */
20559 #ifndef PTHREAD_CREATE_DETACHED
20560 #define PTHREAD_CREATE_DETACHED 1
20561 #endif
20562         pthread_t t;
20563         int status;
20564         int detach = PTHREAD_CREATE_DETACHED;
20565
20566 #if HAVE_PTHREADS > 4
20567         /* Final pthreads */
20568         pthread_attr_t attr;
20569
20570         status = pthread_attr_init(&attr);
20571         if( status ) return status;
20572
20573 #if HAVE_PTHREADS < 7
20574         status = pthread_attr_setdetachstate(&attr, &detach);
20575         if( status < 0 ) status = errno;
20576 #else
20577         status = pthread_attr_setdetachstate(&attr, detach);
20578 #endif
20579         if( status ) return status;
20580         status = pthread_create( &t, &attr, task, NULL );
20581 #if HAVE_PTHREADS < 7
20582         if( status < 0 ) status = errno;
20583 #endif
20584         if( status ) return status;
20585 #else
20586         /* Draft 4 pthreads */
20587         status = pthread_create( &t, pthread_attr_default, task, NULL );
20588         if( status ) return errno;
20589
20590         /* give thread a chance to complete */
20591         /* it should remain joinable and hence detachable */
20592         sleep( 1 );
20593
20594         status = pthread_detach( &t );
20595         if( status ) return errno;
20596 #endif
20597
20598 #ifdef HAVE_LINUX_THREADS
20599         pthread_kill_other_threads_np();
20600 #endif
20601
20602         return 0;
20603
20604 }
20605
20606 _ACEOF
20607 rm -f conftest$ac_exeext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609   (eval $ac_link) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ol_cv_pthread_mthreads=yes
20619 else
20620   echo "$as_me: program exited with status $ac_status" >&5
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 ( exit $ac_status )
20625 ol_cv_pthread_mthreads=no
20626 fi
20627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20628 fi
20629
20630                 # restore the LIBS
20631                 LIBS="$ol_LIBS"
20632
20633 fi
20634 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20635 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20636
20637         if test $ol_cv_pthread_mthreads = yes ; then
20638                 ol_link_pthreads="-mthreads"
20639                 ol_link_threads=posix
20640         fi
20641 fi
20642
20643                 # Pthread try link: -thread (ol_cv_pthread_thread)
20644 if test "$ol_link_threads" = no ; then
20645         # try -thread
20646         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20647 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20648 if test "${ol_cv_pthread_thread+set}" = set; then
20649   echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651
20652                 # save the flags
20653                 ol_LIBS="$LIBS"
20654                 LIBS="-thread $LIBS"
20655
20656                 if test "$cross_compiling" = yes; then
20657   cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663
20664 /* pthread test headers */
20665 #include <pthread.h>
20666 #if HAVE_PTHREADS < 7
20667 #include <errno.h>
20668 #endif
20669 #ifndef NULL
20670 #define NULL (void*)0
20671 #endif
20672
20673 static void *task(p)
20674         void *p;
20675 {
20676         return (void *) (p == NULL);
20677 }
20678
20679 int
20680 main ()
20681 {
20682
20683         /* pthread test function */
20684 #ifndef PTHREAD_CREATE_DETACHED
20685 #define PTHREAD_CREATE_DETACHED 1
20686 #endif
20687         pthread_t t;
20688         int status;
20689         int detach = PTHREAD_CREATE_DETACHED;
20690
20691 #if HAVE_PTHREADS > 4
20692         /* Final pthreads */
20693         pthread_attr_t attr;
20694
20695         status = pthread_attr_init(&attr);
20696         if( status ) return status;
20697
20698 #if HAVE_PTHREADS < 7
20699         status = pthread_attr_setdetachstate(&attr, &detach);
20700         if( status < 0 ) status = errno;
20701 #else
20702         status = pthread_attr_setdetachstate(&attr, detach);
20703 #endif
20704         if( status ) return status;
20705         status = pthread_create( &t, &attr, task, NULL );
20706 #if HAVE_PTHREADS < 7
20707         if( status < 0 ) status = errno;
20708 #endif
20709         if( status ) return status;
20710 #else
20711         /* Draft 4 pthreads */
20712         status = pthread_create( &t, pthread_attr_default, task, NULL );
20713         if( status ) return errno;
20714
20715         /* give thread a chance to complete */
20716         /* it should remain joinable and hence detachable */
20717         sleep( 1 );
20718
20719         status = pthread_detach( &t );
20720         if( status ) return errno;
20721 #endif
20722
20723 #ifdef HAVE_LINUX_THREADS
20724         pthread_kill_other_threads_np();
20725 #endif
20726
20727         return 0;
20728
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20735   (eval $ac_link) 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } &&
20742          { ac_try='test -z "$ac_c_werror_flag"
20743                          || test ! -s conftest.err'
20744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745   (eval $ac_try) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; } &&
20749          { ac_try='test -s conftest$ac_exeext'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; }; then
20755   ol_cv_pthread_thread=yes
20756 else
20757   echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ol_cv_pthread_thread=no
20761 fi
20762 rm -f conftest.err conftest.$ac_objext \
20763       conftest$ac_exeext conftest.$ac_ext
20764 else
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771
20772 /* pthread test headers */
20773 #include <pthread.h>
20774 #if HAVE_PTHREADS < 7
20775 #include <errno.h>
20776 #endif
20777 #ifndef NULL
20778 #define NULL (void*)0
20779 #endif
20780
20781 static void *task(p)
20782         void *p;
20783 {
20784         return (void *) (p == NULL);
20785 }
20786
20787
20788 int main(argc, argv)
20789         int argc;
20790         char **argv;
20791 {
20792
20793         /* pthread test function */
20794 #ifndef PTHREAD_CREATE_DETACHED
20795 #define PTHREAD_CREATE_DETACHED 1
20796 #endif
20797         pthread_t t;
20798         int status;
20799         int detach = PTHREAD_CREATE_DETACHED;
20800
20801 #if HAVE_PTHREADS > 4
20802         /* Final pthreads */
20803         pthread_attr_t attr;
20804
20805         status = pthread_attr_init(&attr);
20806         if( status ) return status;
20807
20808 #if HAVE_PTHREADS < 7
20809         status = pthread_attr_setdetachstate(&attr, &detach);
20810         if( status < 0 ) status = errno;
20811 #else
20812         status = pthread_attr_setdetachstate(&attr, detach);
20813 #endif
20814         if( status ) return status;
20815         status = pthread_create( &t, &attr, task, NULL );
20816 #if HAVE_PTHREADS < 7
20817         if( status < 0 ) status = errno;
20818 #endif
20819         if( status ) return status;
20820 #else
20821         /* Draft 4 pthreads */
20822         status = pthread_create( &t, pthread_attr_default, task, NULL );
20823         if( status ) return errno;
20824
20825         /* give thread a chance to complete */
20826         /* it should remain joinable and hence detachable */
20827         sleep( 1 );
20828
20829         status = pthread_detach( &t );
20830         if( status ) return errno;
20831 #endif
20832
20833 #ifdef HAVE_LINUX_THREADS
20834         pthread_kill_other_threads_np();
20835 #endif
20836
20837         return 0;
20838
20839 }
20840
20841 _ACEOF
20842 rm -f conftest$ac_exeext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20844   (eval $ac_link) 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849   (eval $ac_try) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   ol_cv_pthread_thread=yes
20854 else
20855   echo "$as_me: program exited with status $ac_status" >&5
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ( exit $ac_status )
20860 ol_cv_pthread_thread=no
20861 fi
20862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20863 fi
20864
20865                 # restore the LIBS
20866                 LIBS="$ol_LIBS"
20867
20868 fi
20869 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
20870 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
20871
20872         if test $ol_cv_pthread_thread = yes ; then
20873                 ol_link_pthreads="-thread"
20874                 ol_link_threads=posix
20875         fi
20876 fi
20877
20878
20879                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20880 if test "$ol_link_threads" = no ; then
20881         # try -lpthread -lmach -lexc -lc_r
20882         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20883 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
20884 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
20885   echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887
20888                 # save the flags
20889                 ol_LIBS="$LIBS"
20890                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20891
20892                 if test "$cross_compiling" = yes; then
20893   cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899
20900 /* pthread test headers */
20901 #include <pthread.h>
20902 #if HAVE_PTHREADS < 7
20903 #include <errno.h>
20904 #endif
20905 #ifndef NULL
20906 #define NULL (void*)0
20907 #endif
20908
20909 static void *task(p)
20910         void *p;
20911 {
20912         return (void *) (p == NULL);
20913 }
20914
20915 int
20916 main ()
20917 {
20918
20919         /* pthread test function */
20920 #ifndef PTHREAD_CREATE_DETACHED
20921 #define PTHREAD_CREATE_DETACHED 1
20922 #endif
20923         pthread_t t;
20924         int status;
20925         int detach = PTHREAD_CREATE_DETACHED;
20926
20927 #if HAVE_PTHREADS > 4
20928         /* Final pthreads */
20929         pthread_attr_t attr;
20930
20931         status = pthread_attr_init(&attr);
20932         if( status ) return status;
20933
20934 #if HAVE_PTHREADS < 7
20935         status = pthread_attr_setdetachstate(&attr, &detach);
20936         if( status < 0 ) status = errno;
20937 #else
20938         status = pthread_attr_setdetachstate(&attr, detach);
20939 #endif
20940         if( status ) return status;
20941         status = pthread_create( &t, &attr, task, NULL );
20942 #if HAVE_PTHREADS < 7
20943         if( status < 0 ) status = errno;
20944 #endif
20945         if( status ) return status;
20946 #else
20947         /* Draft 4 pthreads */
20948         status = pthread_create( &t, pthread_attr_default, task, NULL );
20949         if( status ) return errno;
20950
20951         /* give thread a chance to complete */
20952         /* it should remain joinable and hence detachable */
20953         sleep( 1 );
20954
20955         status = pthread_detach( &t );
20956         if( status ) return errno;
20957 #endif
20958
20959 #ifdef HAVE_LINUX_THREADS
20960         pthread_kill_other_threads_np();
20961 #endif
20962
20963         return 0;
20964
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971   (eval $ac_link) 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } &&
20978          { ac_try='test -z "$ac_c_werror_flag"
20979                          || test ! -s conftest.err'
20980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981   (eval $ac_try) 2>&5
20982   ac_status=$?
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); }; } &&
20985          { ac_try='test -s conftest$ac_exeext'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20992 else
20993   echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20997 fi
20998 rm -f conftest.err conftest.$ac_objext \
20999       conftest$ac_exeext conftest.$ac_ext
21000 else
21001   cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007
21008 /* pthread test headers */
21009 #include <pthread.h>
21010 #if HAVE_PTHREADS < 7
21011 #include <errno.h>
21012 #endif
21013 #ifndef NULL
21014 #define NULL (void*)0
21015 #endif
21016
21017 static void *task(p)
21018         void *p;
21019 {
21020         return (void *) (p == NULL);
21021 }
21022
21023
21024 int main(argc, argv)
21025         int argc;
21026         char **argv;
21027 {
21028
21029         /* pthread test function */
21030 #ifndef PTHREAD_CREATE_DETACHED
21031 #define PTHREAD_CREATE_DETACHED 1
21032 #endif
21033         pthread_t t;
21034         int status;
21035         int detach = PTHREAD_CREATE_DETACHED;
21036
21037 #if HAVE_PTHREADS > 4
21038         /* Final pthreads */
21039         pthread_attr_t attr;
21040
21041         status = pthread_attr_init(&attr);
21042         if( status ) return status;
21043
21044 #if HAVE_PTHREADS < 7
21045         status = pthread_attr_setdetachstate(&attr, &detach);
21046         if( status < 0 ) status = errno;
21047 #else
21048         status = pthread_attr_setdetachstate(&attr, detach);
21049 #endif
21050         if( status ) return status;
21051         status = pthread_create( &t, &attr, task, NULL );
21052 #if HAVE_PTHREADS < 7
21053         if( status < 0 ) status = errno;
21054 #endif
21055         if( status ) return status;
21056 #else
21057         /* Draft 4 pthreads */
21058         status = pthread_create( &t, pthread_attr_default, task, NULL );
21059         if( status ) return errno;
21060
21061         /* give thread a chance to complete */
21062         /* it should remain joinable and hence detachable */
21063         sleep( 1 );
21064
21065         status = pthread_detach( &t );
21066         if( status ) return errno;
21067 #endif
21068
21069 #ifdef HAVE_LINUX_THREADS
21070         pthread_kill_other_threads_np();
21071 #endif
21072
21073         return 0;
21074
21075 }
21076
21077 _ACEOF
21078 rm -f conftest$ac_exeext
21079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21080   (eval $ac_link) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085   (eval $ac_try) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21090 else
21091   echo "$as_me: program exited with status $ac_status" >&5
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095 ( exit $ac_status )
21096 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21097 fi
21098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21099 fi
21100
21101                 # restore the LIBS
21102                 LIBS="$ol_LIBS"
21103
21104 fi
21105 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21106 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21107
21108         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21109                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21110                 ol_link_threads=posix
21111         fi
21112 fi
21113
21114                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21115 if test "$ol_link_threads" = no ; then
21116         # try -lpthread -lmach -lexc
21117         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21118 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21119 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21120   echo $ECHO_N "(cached) $ECHO_C" >&6
21121 else
21122
21123                 # save the flags
21124                 ol_LIBS="$LIBS"
21125                 LIBS="-lpthread -lmach -lexc $LIBS"
21126
21127                 if test "$cross_compiling" = yes; then
21128   cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h.  */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h.  */
21134
21135 /* pthread test headers */
21136 #include <pthread.h>
21137 #if HAVE_PTHREADS < 7
21138 #include <errno.h>
21139 #endif
21140 #ifndef NULL
21141 #define NULL (void*)0
21142 #endif
21143
21144 static void *task(p)
21145         void *p;
21146 {
21147         return (void *) (p == NULL);
21148 }
21149
21150 int
21151 main ()
21152 {
21153
21154         /* pthread test function */
21155 #ifndef PTHREAD_CREATE_DETACHED
21156 #define PTHREAD_CREATE_DETACHED 1
21157 #endif
21158         pthread_t t;
21159         int status;
21160         int detach = PTHREAD_CREATE_DETACHED;
21161
21162 #if HAVE_PTHREADS > 4
21163         /* Final pthreads */
21164         pthread_attr_t attr;
21165
21166         status = pthread_attr_init(&attr);
21167         if( status ) return status;
21168
21169 #if HAVE_PTHREADS < 7
21170         status = pthread_attr_setdetachstate(&attr, &detach);
21171         if( status < 0 ) status = errno;
21172 #else
21173         status = pthread_attr_setdetachstate(&attr, detach);
21174 #endif
21175         if( status ) return status;
21176         status = pthread_create( &t, &attr, task, NULL );
21177 #if HAVE_PTHREADS < 7
21178         if( status < 0 ) status = errno;
21179 #endif
21180         if( status ) return status;
21181 #else
21182         /* Draft 4 pthreads */
21183         status = pthread_create( &t, pthread_attr_default, task, NULL );
21184         if( status ) return errno;
21185
21186         /* give thread a chance to complete */
21187         /* it should remain joinable and hence detachable */
21188         sleep( 1 );
21189
21190         status = pthread_detach( &t );
21191         if( status ) return errno;
21192 #endif
21193
21194 #ifdef HAVE_LINUX_THREADS
21195         pthread_kill_other_threads_np();
21196 #endif
21197
21198         return 0;
21199
21200   ;
21201   return 0;
21202 }
21203 _ACEOF
21204 rm -f conftest.$ac_objext conftest$ac_exeext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21206   (eval $ac_link) 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } &&
21213          { ac_try='test -z "$ac_c_werror_flag"
21214                          || test ! -s conftest.err'
21215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216   (eval $ac_try) 2>&5
21217   ac_status=$?
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); }; } &&
21220          { ac_try='test -s conftest$ac_exeext'
21221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222   (eval $ac_try) 2>&5
21223   ac_status=$?
21224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); }; }; then
21226   ol_cv_pthread_lpthread_lmach_lexc=yes
21227 else
21228   echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 ol_cv_pthread_lpthread_lmach_lexc=no
21232 fi
21233 rm -f conftest.err conftest.$ac_objext \
21234       conftest$ac_exeext conftest.$ac_ext
21235 else
21236   cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242
21243 /* pthread test headers */
21244 #include <pthread.h>
21245 #if HAVE_PTHREADS < 7
21246 #include <errno.h>
21247 #endif
21248 #ifndef NULL
21249 #define NULL (void*)0
21250 #endif
21251
21252 static void *task(p)
21253         void *p;
21254 {
21255         return (void *) (p == NULL);
21256 }
21257
21258
21259 int main(argc, argv)
21260         int argc;
21261         char **argv;
21262 {
21263
21264         /* pthread test function */
21265 #ifndef PTHREAD_CREATE_DETACHED
21266 #define PTHREAD_CREATE_DETACHED 1
21267 #endif
21268         pthread_t t;
21269         int status;
21270         int detach = PTHREAD_CREATE_DETACHED;
21271
21272 #if HAVE_PTHREADS > 4
21273         /* Final pthreads */
21274         pthread_attr_t attr;
21275
21276         status = pthread_attr_init(&attr);
21277         if( status ) return status;
21278
21279 #if HAVE_PTHREADS < 7
21280         status = pthread_attr_setdetachstate(&attr, &detach);
21281         if( status < 0 ) status = errno;
21282 #else
21283         status = pthread_attr_setdetachstate(&attr, detach);
21284 #endif
21285         if( status ) return status;
21286         status = pthread_create( &t, &attr, task, NULL );
21287 #if HAVE_PTHREADS < 7
21288         if( status < 0 ) status = errno;
21289 #endif
21290         if( status ) return status;
21291 #else
21292         /* Draft 4 pthreads */
21293         status = pthread_create( &t, pthread_attr_default, task, NULL );
21294         if( status ) return errno;
21295
21296         /* give thread a chance to complete */
21297         /* it should remain joinable and hence detachable */
21298         sleep( 1 );
21299
21300         status = pthread_detach( &t );
21301         if( status ) return errno;
21302 #endif
21303
21304 #ifdef HAVE_LINUX_THREADS
21305         pthread_kill_other_threads_np();
21306 #endif
21307
21308         return 0;
21309
21310 }
21311
21312 _ACEOF
21313 rm -f conftest$ac_exeext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315   (eval $ac_link) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320   (eval $ac_try) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); }; }; then
21324   ol_cv_pthread_lpthread_lmach_lexc=yes
21325 else
21326   echo "$as_me: program exited with status $ac_status" >&5
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ( exit $ac_status )
21331 ol_cv_pthread_lpthread_lmach_lexc=no
21332 fi
21333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21334 fi
21335
21336                 # restore the LIBS
21337                 LIBS="$ol_LIBS"
21338
21339 fi
21340 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21341 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21342
21343         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21344                 ol_link_pthreads="-lpthread -lmach -lexc"
21345                 ol_link_threads=posix
21346         fi
21347 fi
21348
21349
21350                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21351 if test "$ol_link_threads" = no ; then
21352         # try -lpthread -Wl,-woff,85
21353         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21354 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21355 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21356   echo $ECHO_N "(cached) $ECHO_C" >&6
21357 else
21358
21359                 # save the flags
21360                 ol_LIBS="$LIBS"
21361                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21362
21363                 if test "$cross_compiling" = yes; then
21364   cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370
21371 /* pthread test headers */
21372 #include <pthread.h>
21373 #if HAVE_PTHREADS < 7
21374 #include <errno.h>
21375 #endif
21376 #ifndef NULL
21377 #define NULL (void*)0
21378 #endif
21379
21380 static void *task(p)
21381         void *p;
21382 {
21383         return (void *) (p == NULL);
21384 }
21385
21386 int
21387 main ()
21388 {
21389
21390         /* pthread test function */
21391 #ifndef PTHREAD_CREATE_DETACHED
21392 #define PTHREAD_CREATE_DETACHED 1
21393 #endif
21394         pthread_t t;
21395         int status;
21396         int detach = PTHREAD_CREATE_DETACHED;
21397
21398 #if HAVE_PTHREADS > 4
21399         /* Final pthreads */
21400         pthread_attr_t attr;
21401
21402         status = pthread_attr_init(&attr);
21403         if( status ) return status;
21404
21405 #if HAVE_PTHREADS < 7
21406         status = pthread_attr_setdetachstate(&attr, &detach);
21407         if( status < 0 ) status = errno;
21408 #else
21409         status = pthread_attr_setdetachstate(&attr, detach);
21410 #endif
21411         if( status ) return status;
21412         status = pthread_create( &t, &attr, task, NULL );
21413 #if HAVE_PTHREADS < 7
21414         if( status < 0 ) status = errno;
21415 #endif
21416         if( status ) return status;
21417 #else
21418         /* Draft 4 pthreads */
21419         status = pthread_create( &t, pthread_attr_default, task, NULL );
21420         if( status ) return errno;
21421
21422         /* give thread a chance to complete */
21423         /* it should remain joinable and hence detachable */
21424         sleep( 1 );
21425
21426         status = pthread_detach( &t );
21427         if( status ) return errno;
21428 #endif
21429
21430 #ifdef HAVE_LINUX_THREADS
21431         pthread_kill_other_threads_np();
21432 #endif
21433
21434         return 0;
21435
21436   ;
21437   return 0;
21438 }
21439 _ACEOF
21440 rm -f conftest.$ac_objext conftest$ac_exeext
21441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21442   (eval $ac_link) 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } &&
21449          { ac_try='test -z "$ac_c_werror_flag"
21450                          || test ! -s conftest.err'
21451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452   (eval $ac_try) 2>&5
21453   ac_status=$?
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); }; } &&
21456          { ac_try='test -s conftest$ac_exeext'
21457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458   (eval $ac_try) 2>&5
21459   ac_status=$?
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); }; }; then
21462   ol_cv_pthread_lib_lpthread_woff=yes
21463 else
21464   echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 ol_cv_pthread_lib_lpthread_woff=no
21468 fi
21469 rm -f conftest.err conftest.$ac_objext \
21470       conftest$ac_exeext conftest.$ac_ext
21471 else
21472   cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478
21479 /* pthread test headers */
21480 #include <pthread.h>
21481 #if HAVE_PTHREADS < 7
21482 #include <errno.h>
21483 #endif
21484 #ifndef NULL
21485 #define NULL (void*)0
21486 #endif
21487
21488 static void *task(p)
21489         void *p;
21490 {
21491         return (void *) (p == NULL);
21492 }
21493
21494
21495 int main(argc, argv)
21496         int argc;
21497         char **argv;
21498 {
21499
21500         /* pthread test function */
21501 #ifndef PTHREAD_CREATE_DETACHED
21502 #define PTHREAD_CREATE_DETACHED 1
21503 #endif
21504         pthread_t t;
21505         int status;
21506         int detach = PTHREAD_CREATE_DETACHED;
21507
21508 #if HAVE_PTHREADS > 4
21509         /* Final pthreads */
21510         pthread_attr_t attr;
21511
21512         status = pthread_attr_init(&attr);
21513         if( status ) return status;
21514
21515 #if HAVE_PTHREADS < 7
21516         status = pthread_attr_setdetachstate(&attr, &detach);
21517         if( status < 0 ) status = errno;
21518 #else
21519         status = pthread_attr_setdetachstate(&attr, detach);
21520 #endif
21521         if( status ) return status;
21522         status = pthread_create( &t, &attr, task, NULL );
21523 #if HAVE_PTHREADS < 7
21524         if( status < 0 ) status = errno;
21525 #endif
21526         if( status ) return status;
21527 #else
21528         /* Draft 4 pthreads */
21529         status = pthread_create( &t, pthread_attr_default, task, NULL );
21530         if( status ) return errno;
21531
21532         /* give thread a chance to complete */
21533         /* it should remain joinable and hence detachable */
21534         sleep( 1 );
21535
21536         status = pthread_detach( &t );
21537         if( status ) return errno;
21538 #endif
21539
21540 #ifdef HAVE_LINUX_THREADS
21541         pthread_kill_other_threads_np();
21542 #endif
21543
21544         return 0;
21545
21546 }
21547
21548 _ACEOF
21549 rm -f conftest$ac_exeext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21551   (eval $ac_link) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556   (eval $ac_try) 2>&5
21557   ac_status=$?
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); }; }; then
21560   ol_cv_pthread_lib_lpthread_woff=yes
21561 else
21562   echo "$as_me: program exited with status $ac_status" >&5
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566 ( exit $ac_status )
21567 ol_cv_pthread_lib_lpthread_woff=no
21568 fi
21569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21570 fi
21571
21572                 # restore the LIBS
21573                 LIBS="$ol_LIBS"
21574
21575 fi
21576 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21577 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21578
21579         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21580                 ol_link_pthreads="-lpthread -Wl,-woff,85"
21581                 ol_link_threads=posix
21582         fi
21583 fi
21584
21585
21586                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21587 if test "$ol_link_threads" = no ; then
21588         # try -lpthread
21589         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21590 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21591 if test "${ol_cv_pthread_lpthread+set}" = set; then
21592   echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594
21595                 # save the flags
21596                 ol_LIBS="$LIBS"
21597                 LIBS="-lpthread $LIBS"
21598
21599                 if test "$cross_compiling" = yes; then
21600   cat >conftest.$ac_ext <<_ACEOF
21601 /* confdefs.h.  */
21602 _ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h.  */
21606
21607 /* pthread test headers */
21608 #include <pthread.h>
21609 #if HAVE_PTHREADS < 7
21610 #include <errno.h>
21611 #endif
21612 #ifndef NULL
21613 #define NULL (void*)0
21614 #endif
21615
21616 static void *task(p)
21617         void *p;
21618 {
21619         return (void *) (p == NULL);
21620 }
21621
21622 int
21623 main ()
21624 {
21625
21626         /* pthread test function */
21627 #ifndef PTHREAD_CREATE_DETACHED
21628 #define PTHREAD_CREATE_DETACHED 1
21629 #endif
21630         pthread_t t;
21631         int status;
21632         int detach = PTHREAD_CREATE_DETACHED;
21633
21634 #if HAVE_PTHREADS > 4
21635         /* Final pthreads */
21636         pthread_attr_t attr;
21637
21638         status = pthread_attr_init(&attr);
21639         if( status ) return status;
21640
21641 #if HAVE_PTHREADS < 7
21642         status = pthread_attr_setdetachstate(&attr, &detach);
21643         if( status < 0 ) status = errno;
21644 #else
21645         status = pthread_attr_setdetachstate(&attr, detach);
21646 #endif
21647         if( status ) return status;
21648         status = pthread_create( &t, &attr, task, NULL );
21649 #if HAVE_PTHREADS < 7
21650         if( status < 0 ) status = errno;
21651 #endif
21652         if( status ) return status;
21653 #else
21654         /* Draft 4 pthreads */
21655         status = pthread_create( &t, pthread_attr_default, task, NULL );
21656         if( status ) return errno;
21657
21658         /* give thread a chance to complete */
21659         /* it should remain joinable and hence detachable */
21660         sleep( 1 );
21661
21662         status = pthread_detach( &t );
21663         if( status ) return errno;
21664 #endif
21665
21666 #ifdef HAVE_LINUX_THREADS
21667         pthread_kill_other_threads_np();
21668 #endif
21669
21670         return 0;
21671
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext conftest$ac_exeext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21678   (eval $ac_link) 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } &&
21685          { ac_try='test -z "$ac_c_werror_flag"
21686                          || test ! -s conftest.err'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; } &&
21692          { ac_try='test -s conftest$ac_exeext'
21693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694   (eval $ac_try) 2>&5
21695   ac_status=$?
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); }; }; then
21698   ol_cv_pthread_lpthread=yes
21699 else
21700   echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ol_cv_pthread_lpthread=no
21704 fi
21705 rm -f conftest.err conftest.$ac_objext \
21706       conftest$ac_exeext conftest.$ac_ext
21707 else
21708   cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h.  */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h.  */
21714
21715 /* pthread test headers */
21716 #include <pthread.h>
21717 #if HAVE_PTHREADS < 7
21718 #include <errno.h>
21719 #endif
21720 #ifndef NULL
21721 #define NULL (void*)0
21722 #endif
21723
21724 static void *task(p)
21725         void *p;
21726 {
21727         return (void *) (p == NULL);
21728 }
21729
21730
21731 int main(argc, argv)
21732         int argc;
21733         char **argv;
21734 {
21735
21736         /* pthread test function */
21737 #ifndef PTHREAD_CREATE_DETACHED
21738 #define PTHREAD_CREATE_DETACHED 1
21739 #endif
21740         pthread_t t;
21741         int status;
21742         int detach = PTHREAD_CREATE_DETACHED;
21743
21744 #if HAVE_PTHREADS > 4
21745         /* Final pthreads */
21746         pthread_attr_t attr;
21747
21748         status = pthread_attr_init(&attr);
21749         if( status ) return status;
21750
21751 #if HAVE_PTHREADS < 7
21752         status = pthread_attr_setdetachstate(&attr, &detach);
21753         if( status < 0 ) status = errno;
21754 #else
21755         status = pthread_attr_setdetachstate(&attr, detach);
21756 #endif
21757         if( status ) return status;
21758         status = pthread_create( &t, &attr, task, NULL );
21759 #if HAVE_PTHREADS < 7
21760         if( status < 0 ) status = errno;
21761 #endif
21762         if( status ) return status;
21763 #else
21764         /* Draft 4 pthreads */
21765         status = pthread_create( &t, pthread_attr_default, task, NULL );
21766         if( status ) return errno;
21767
21768         /* give thread a chance to complete */
21769         /* it should remain joinable and hence detachable */
21770         sleep( 1 );
21771
21772         status = pthread_detach( &t );
21773         if( status ) return errno;
21774 #endif
21775
21776 #ifdef HAVE_LINUX_THREADS
21777         pthread_kill_other_threads_np();
21778 #endif
21779
21780         return 0;
21781
21782 }
21783
21784 _ACEOF
21785 rm -f conftest$ac_exeext
21786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21787   (eval $ac_link) 2>&5
21788   ac_status=$?
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792   (eval $ac_try) 2>&5
21793   ac_status=$?
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); }; }; then
21796   ol_cv_pthread_lpthread=yes
21797 else
21798   echo "$as_me: program exited with status $ac_status" >&5
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21801
21802 ( exit $ac_status )
21803 ol_cv_pthread_lpthread=no
21804 fi
21805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 fi
21807
21808                 # restore the LIBS
21809                 LIBS="$ol_LIBS"
21810
21811 fi
21812 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
21813 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
21814
21815         if test $ol_cv_pthread_lpthread = yes ; then
21816                 ol_link_pthreads="-lpthread"
21817                 ol_link_threads=posix
21818         fi
21819 fi
21820
21821                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21822 if test "$ol_link_threads" = no ; then
21823         # try -lc_r
21824         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
21825 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
21826 if test "${ol_cv_pthread_lc_r+set}" = set; then
21827   echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829
21830                 # save the flags
21831                 ol_LIBS="$LIBS"
21832                 LIBS="-lc_r $LIBS"
21833
21834                 if test "$cross_compiling" = yes; then
21835   cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h.  */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h.  */
21841
21842 /* pthread test headers */
21843 #include <pthread.h>
21844 #if HAVE_PTHREADS < 7
21845 #include <errno.h>
21846 #endif
21847 #ifndef NULL
21848 #define NULL (void*)0
21849 #endif
21850
21851 static void *task(p)
21852         void *p;
21853 {
21854         return (void *) (p == NULL);
21855 }
21856
21857 int
21858 main ()
21859 {
21860
21861         /* pthread test function */
21862 #ifndef PTHREAD_CREATE_DETACHED
21863 #define PTHREAD_CREATE_DETACHED 1
21864 #endif
21865         pthread_t t;
21866         int status;
21867         int detach = PTHREAD_CREATE_DETACHED;
21868
21869 #if HAVE_PTHREADS > 4
21870         /* Final pthreads */
21871         pthread_attr_t attr;
21872
21873         status = pthread_attr_init(&attr);
21874         if( status ) return status;
21875
21876 #if HAVE_PTHREADS < 7
21877         status = pthread_attr_setdetachstate(&attr, &detach);
21878         if( status < 0 ) status = errno;
21879 #else
21880         status = pthread_attr_setdetachstate(&attr, detach);
21881 #endif
21882         if( status ) return status;
21883         status = pthread_create( &t, &attr, task, NULL );
21884 #if HAVE_PTHREADS < 7
21885         if( status < 0 ) status = errno;
21886 #endif
21887         if( status ) return status;
21888 #else
21889         /* Draft 4 pthreads */
21890         status = pthread_create( &t, pthread_attr_default, task, NULL );
21891         if( status ) return errno;
21892
21893         /* give thread a chance to complete */
21894         /* it should remain joinable and hence detachable */
21895         sleep( 1 );
21896
21897         status = pthread_detach( &t );
21898         if( status ) return errno;
21899 #endif
21900
21901 #ifdef HAVE_LINUX_THREADS
21902         pthread_kill_other_threads_np();
21903 #endif
21904
21905         return 0;
21906
21907   ;
21908   return 0;
21909 }
21910 _ACEOF
21911 rm -f conftest.$ac_objext conftest$ac_exeext
21912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21913   (eval $ac_link) 2>conftest.er1
21914   ac_status=$?
21915   grep -v '^ *+' conftest.er1 >conftest.err
21916   rm -f conftest.er1
21917   cat conftest.err >&5
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); } &&
21920          { ac_try='test -z "$ac_c_werror_flag"
21921                          || test ! -s conftest.err'
21922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923   (eval $ac_try) 2>&5
21924   ac_status=$?
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); }; } &&
21927          { ac_try='test -s conftest$ac_exeext'
21928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929   (eval $ac_try) 2>&5
21930   ac_status=$?
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); }; }; then
21933   ol_cv_pthread_lc_r=yes
21934 else
21935   echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938 ol_cv_pthread_lc_r=no
21939 fi
21940 rm -f conftest.err conftest.$ac_objext \
21941       conftest$ac_exeext conftest.$ac_ext
21942 else
21943   cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949
21950 /* pthread test headers */
21951 #include <pthread.h>
21952 #if HAVE_PTHREADS < 7
21953 #include <errno.h>
21954 #endif
21955 #ifndef NULL
21956 #define NULL (void*)0
21957 #endif
21958
21959 static void *task(p)
21960         void *p;
21961 {
21962         return (void *) (p == NULL);
21963 }
21964
21965
21966 int main(argc, argv)
21967         int argc;
21968         char **argv;
21969 {
21970
21971         /* pthread test function */
21972 #ifndef PTHREAD_CREATE_DETACHED
21973 #define PTHREAD_CREATE_DETACHED 1
21974 #endif
21975         pthread_t t;
21976         int status;
21977         int detach = PTHREAD_CREATE_DETACHED;
21978
21979 #if HAVE_PTHREADS > 4
21980         /* Final pthreads */
21981         pthread_attr_t attr;
21982
21983         status = pthread_attr_init(&attr);
21984         if( status ) return status;
21985
21986 #if HAVE_PTHREADS < 7
21987         status = pthread_attr_setdetachstate(&attr, &detach);
21988         if( status < 0 ) status = errno;
21989 #else
21990         status = pthread_attr_setdetachstate(&attr, detach);
21991 #endif
21992         if( status ) return status;
21993         status = pthread_create( &t, &attr, task, NULL );
21994 #if HAVE_PTHREADS < 7
21995         if( status < 0 ) status = errno;
21996 #endif
21997         if( status ) return status;
21998 #else
21999         /* Draft 4 pthreads */
22000         status = pthread_create( &t, pthread_attr_default, task, NULL );
22001         if( status ) return errno;
22002
22003         /* give thread a chance to complete */
22004         /* it should remain joinable and hence detachable */
22005         sleep( 1 );
22006
22007         status = pthread_detach( &t );
22008         if( status ) return errno;
22009 #endif
22010
22011 #ifdef HAVE_LINUX_THREADS
22012         pthread_kill_other_threads_np();
22013 #endif
22014
22015         return 0;
22016
22017 }
22018
22019 _ACEOF
22020 rm -f conftest$ac_exeext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022   (eval $ac_link) 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; }; then
22031   ol_cv_pthread_lc_r=yes
22032 else
22033   echo "$as_me: program exited with status $ac_status" >&5
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037 ( exit $ac_status )
22038 ol_cv_pthread_lc_r=no
22039 fi
22040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22041 fi
22042
22043                 # restore the LIBS
22044                 LIBS="$ol_LIBS"
22045
22046 fi
22047 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22048 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22049
22050         if test $ol_cv_pthread_lc_r = yes ; then
22051                 ol_link_pthreads="-lc_r"
22052                 ol_link_threads=posix
22053         fi
22054 fi
22055
22056
22057                 # Pthread try link: -threads (ol_cv_pthread_threads)
22058 if test "$ol_link_threads" = no ; then
22059         # try -threads
22060         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22061 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22062 if test "${ol_cv_pthread_threads+set}" = set; then
22063   echo $ECHO_N "(cached) $ECHO_C" >&6
22064 else
22065
22066                 # save the flags
22067                 ol_LIBS="$LIBS"
22068                 LIBS="-threads $LIBS"
22069
22070                 if test "$cross_compiling" = yes; then
22071   cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077
22078 /* pthread test headers */
22079 #include <pthread.h>
22080 #if HAVE_PTHREADS < 7
22081 #include <errno.h>
22082 #endif
22083 #ifndef NULL
22084 #define NULL (void*)0
22085 #endif
22086
22087 static void *task(p)
22088         void *p;
22089 {
22090         return (void *) (p == NULL);
22091 }
22092
22093 int
22094 main ()
22095 {
22096
22097         /* pthread test function */
22098 #ifndef PTHREAD_CREATE_DETACHED
22099 #define PTHREAD_CREATE_DETACHED 1
22100 #endif
22101         pthread_t t;
22102         int status;
22103         int detach = PTHREAD_CREATE_DETACHED;
22104
22105 #if HAVE_PTHREADS > 4
22106         /* Final pthreads */
22107         pthread_attr_t attr;
22108
22109         status = pthread_attr_init(&attr);
22110         if( status ) return status;
22111
22112 #if HAVE_PTHREADS < 7
22113         status = pthread_attr_setdetachstate(&attr, &detach);
22114         if( status < 0 ) status = errno;
22115 #else
22116         status = pthread_attr_setdetachstate(&attr, detach);
22117 #endif
22118         if( status ) return status;
22119         status = pthread_create( &t, &attr, task, NULL );
22120 #if HAVE_PTHREADS < 7
22121         if( status < 0 ) status = errno;
22122 #endif
22123         if( status ) return status;
22124 #else
22125         /* Draft 4 pthreads */
22126         status = pthread_create( &t, pthread_attr_default, task, NULL );
22127         if( status ) return errno;
22128
22129         /* give thread a chance to complete */
22130         /* it should remain joinable and hence detachable */
22131         sleep( 1 );
22132
22133         status = pthread_detach( &t );
22134         if( status ) return errno;
22135 #endif
22136
22137 #ifdef HAVE_LINUX_THREADS
22138         pthread_kill_other_threads_np();
22139 #endif
22140
22141         return 0;
22142
22143   ;
22144   return 0;
22145 }
22146 _ACEOF
22147 rm -f conftest.$ac_objext conftest$ac_exeext
22148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22149   (eval $ac_link) 2>conftest.er1
22150   ac_status=$?
22151   grep -v '^ *+' conftest.er1 >conftest.err
22152   rm -f conftest.er1
22153   cat conftest.err >&5
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); } &&
22156          { ac_try='test -z "$ac_c_werror_flag"
22157                          || test ! -s conftest.err'
22158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159   (eval $ac_try) 2>&5
22160   ac_status=$?
22161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); }; } &&
22163          { ac_try='test -s conftest$ac_exeext'
22164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165   (eval $ac_try) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); }; }; then
22169   ol_cv_pthread_threads=yes
22170 else
22171   echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174 ol_cv_pthread_threads=no
22175 fi
22176 rm -f conftest.err conftest.$ac_objext \
22177       conftest$ac_exeext conftest.$ac_ext
22178 else
22179   cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185
22186 /* pthread test headers */
22187 #include <pthread.h>
22188 #if HAVE_PTHREADS < 7
22189 #include <errno.h>
22190 #endif
22191 #ifndef NULL
22192 #define NULL (void*)0
22193 #endif
22194
22195 static void *task(p)
22196         void *p;
22197 {
22198         return (void *) (p == NULL);
22199 }
22200
22201
22202 int main(argc, argv)
22203         int argc;
22204         char **argv;
22205 {
22206
22207         /* pthread test function */
22208 #ifndef PTHREAD_CREATE_DETACHED
22209 #define PTHREAD_CREATE_DETACHED 1
22210 #endif
22211         pthread_t t;
22212         int status;
22213         int detach = PTHREAD_CREATE_DETACHED;
22214
22215 #if HAVE_PTHREADS > 4
22216         /* Final pthreads */
22217         pthread_attr_t attr;
22218
22219         status = pthread_attr_init(&attr);
22220         if( status ) return status;
22221
22222 #if HAVE_PTHREADS < 7
22223         status = pthread_attr_setdetachstate(&attr, &detach);
22224         if( status < 0 ) status = errno;
22225 #else
22226         status = pthread_attr_setdetachstate(&attr, detach);
22227 #endif
22228         if( status ) return status;
22229         status = pthread_create( &t, &attr, task, NULL );
22230 #if HAVE_PTHREADS < 7
22231         if( status < 0 ) status = errno;
22232 #endif
22233         if( status ) return status;
22234 #else
22235         /* Draft 4 pthreads */
22236         status = pthread_create( &t, pthread_attr_default, task, NULL );
22237         if( status ) return errno;
22238
22239         /* give thread a chance to complete */
22240         /* it should remain joinable and hence detachable */
22241         sleep( 1 );
22242
22243         status = pthread_detach( &t );
22244         if( status ) return errno;
22245 #endif
22246
22247 #ifdef HAVE_LINUX_THREADS
22248         pthread_kill_other_threads_np();
22249 #endif
22250
22251         return 0;
22252
22253 }
22254
22255 _ACEOF
22256 rm -f conftest$ac_exeext
22257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22258   (eval $ac_link) 2>&5
22259   ac_status=$?
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263   (eval $ac_try) 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }; }; then
22267   ol_cv_pthread_threads=yes
22268 else
22269   echo "$as_me: program exited with status $ac_status" >&5
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22272
22273 ( exit $ac_status )
22274 ol_cv_pthread_threads=no
22275 fi
22276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22277 fi
22278
22279                 # restore the LIBS
22280                 LIBS="$ol_LIBS"
22281
22282 fi
22283 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22284 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22285
22286         if test $ol_cv_pthread_threads = yes ; then
22287                 ol_link_pthreads="-threads"
22288                 ol_link_threads=posix
22289         fi
22290 fi
22291
22292
22293                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22294 if test "$ol_link_threads" = no ; then
22295         # try -lpthreads -lmach -lexc -lc_r
22296         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22297 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22298 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22299   echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301
22302                 # save the flags
22303                 ol_LIBS="$LIBS"
22304                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22305
22306                 if test "$cross_compiling" = yes; then
22307   cat >conftest.$ac_ext <<_ACEOF
22308 /* confdefs.h.  */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h.  */
22313
22314 /* pthread test headers */
22315 #include <pthread.h>
22316 #if HAVE_PTHREADS < 7
22317 #include <errno.h>
22318 #endif
22319 #ifndef NULL
22320 #define NULL (void*)0
22321 #endif
22322
22323 static void *task(p)
22324         void *p;
22325 {
22326         return (void *) (p == NULL);
22327 }
22328
22329 int
22330 main ()
22331 {
22332
22333         /* pthread test function */
22334 #ifndef PTHREAD_CREATE_DETACHED
22335 #define PTHREAD_CREATE_DETACHED 1
22336 #endif
22337         pthread_t t;
22338         int status;
22339         int detach = PTHREAD_CREATE_DETACHED;
22340
22341 #if HAVE_PTHREADS > 4
22342         /* Final pthreads */
22343         pthread_attr_t attr;
22344
22345         status = pthread_attr_init(&attr);
22346         if( status ) return status;
22347
22348 #if HAVE_PTHREADS < 7
22349         status = pthread_attr_setdetachstate(&attr, &detach);
22350         if( status < 0 ) status = errno;
22351 #else
22352         status = pthread_attr_setdetachstate(&attr, detach);
22353 #endif
22354         if( status ) return status;
22355         status = pthread_create( &t, &attr, task, NULL );
22356 #if HAVE_PTHREADS < 7
22357         if( status < 0 ) status = errno;
22358 #endif
22359         if( status ) return status;
22360 #else
22361         /* Draft 4 pthreads */
22362         status = pthread_create( &t, pthread_attr_default, task, NULL );
22363         if( status ) return errno;
22364
22365         /* give thread a chance to complete */
22366         /* it should remain joinable and hence detachable */
22367         sleep( 1 );
22368
22369         status = pthread_detach( &t );
22370         if( status ) return errno;
22371 #endif
22372
22373 #ifdef HAVE_LINUX_THREADS
22374         pthread_kill_other_threads_np();
22375 #endif
22376
22377         return 0;
22378
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 rm -f conftest.$ac_objext conftest$ac_exeext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22385   (eval $ac_link) 2>conftest.er1
22386   ac_status=$?
22387   grep -v '^ *+' conftest.er1 >conftest.err
22388   rm -f conftest.er1
22389   cat conftest.err >&5
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); } &&
22392          { ac_try='test -z "$ac_c_werror_flag"
22393                          || test ! -s conftest.err'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; } &&
22399          { ac_try='test -s conftest$ac_exeext'
22400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401   (eval $ac_try) 2>&5
22402   ac_status=$?
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); }; }; then
22405   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22406 else
22407   echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22411 fi
22412 rm -f conftest.err conftest.$ac_objext \
22413       conftest$ac_exeext conftest.$ac_ext
22414 else
22415   cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h.  */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h.  */
22421
22422 /* pthread test headers */
22423 #include <pthread.h>
22424 #if HAVE_PTHREADS < 7
22425 #include <errno.h>
22426 #endif
22427 #ifndef NULL
22428 #define NULL (void*)0
22429 #endif
22430
22431 static void *task(p)
22432         void *p;
22433 {
22434         return (void *) (p == NULL);
22435 }
22436
22437
22438 int main(argc, argv)
22439         int argc;
22440         char **argv;
22441 {
22442
22443         /* pthread test function */
22444 #ifndef PTHREAD_CREATE_DETACHED
22445 #define PTHREAD_CREATE_DETACHED 1
22446 #endif
22447         pthread_t t;
22448         int status;
22449         int detach = PTHREAD_CREATE_DETACHED;
22450
22451 #if HAVE_PTHREADS > 4
22452         /* Final pthreads */
22453         pthread_attr_t attr;
22454
22455         status = pthread_attr_init(&attr);
22456         if( status ) return status;
22457
22458 #if HAVE_PTHREADS < 7
22459         status = pthread_attr_setdetachstate(&attr, &detach);
22460         if( status < 0 ) status = errno;
22461 #else
22462         status = pthread_attr_setdetachstate(&attr, detach);
22463 #endif
22464         if( status ) return status;
22465         status = pthread_create( &t, &attr, task, NULL );
22466 #if HAVE_PTHREADS < 7
22467         if( status < 0 ) status = errno;
22468 #endif
22469         if( status ) return status;
22470 #else
22471         /* Draft 4 pthreads */
22472         status = pthread_create( &t, pthread_attr_default, task, NULL );
22473         if( status ) return errno;
22474
22475         /* give thread a chance to complete */
22476         /* it should remain joinable and hence detachable */
22477         sleep( 1 );
22478
22479         status = pthread_detach( &t );
22480         if( status ) return errno;
22481 #endif
22482
22483 #ifdef HAVE_LINUX_THREADS
22484         pthread_kill_other_threads_np();
22485 #endif
22486
22487         return 0;
22488
22489 }
22490
22491 _ACEOF
22492 rm -f conftest$ac_exeext
22493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22494   (eval $ac_link) 2>&5
22495   ac_status=$?
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499   (eval $ac_try) 2>&5
22500   ac_status=$?
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); }; }; then
22503   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22504 else
22505   echo "$as_me: program exited with status $ac_status" >&5
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509 ( exit $ac_status )
22510 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22511 fi
22512 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22513 fi
22514
22515                 # restore the LIBS
22516                 LIBS="$ol_LIBS"
22517
22518 fi
22519 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22520 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22521
22522         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22523                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22524                 ol_link_threads=posix
22525         fi
22526 fi
22527
22528                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22529 if test "$ol_link_threads" = no ; then
22530         # try -lpthreads -lmach -lexc
22531         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22532 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22533 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22534   echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22536
22537                 # save the flags
22538                 ol_LIBS="$LIBS"
22539                 LIBS="-lpthreads -lmach -lexc $LIBS"
22540
22541                 if test "$cross_compiling" = yes; then
22542   cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548
22549 /* pthread test headers */
22550 #include <pthread.h>
22551 #if HAVE_PTHREADS < 7
22552 #include <errno.h>
22553 #endif
22554 #ifndef NULL
22555 #define NULL (void*)0
22556 #endif
22557
22558 static void *task(p)
22559         void *p;
22560 {
22561         return (void *) (p == NULL);
22562 }
22563
22564 int
22565 main ()
22566 {
22567
22568         /* pthread test function */
22569 #ifndef PTHREAD_CREATE_DETACHED
22570 #define PTHREAD_CREATE_DETACHED 1
22571 #endif
22572         pthread_t t;
22573         int status;
22574         int detach = PTHREAD_CREATE_DETACHED;
22575
22576 #if HAVE_PTHREADS > 4
22577         /* Final pthreads */
22578         pthread_attr_t attr;
22579
22580         status = pthread_attr_init(&attr);
22581         if( status ) return status;
22582
22583 #if HAVE_PTHREADS < 7
22584         status = pthread_attr_setdetachstate(&attr, &detach);
22585         if( status < 0 ) status = errno;
22586 #else
22587         status = pthread_attr_setdetachstate(&attr, detach);
22588 #endif
22589         if( status ) return status;
22590         status = pthread_create( &t, &attr, task, NULL );
22591 #if HAVE_PTHREADS < 7
22592         if( status < 0 ) status = errno;
22593 #endif
22594         if( status ) return status;
22595 #else
22596         /* Draft 4 pthreads */
22597         status = pthread_create( &t, pthread_attr_default, task, NULL );
22598         if( status ) return errno;
22599
22600         /* give thread a chance to complete */
22601         /* it should remain joinable and hence detachable */
22602         sleep( 1 );
22603
22604         status = pthread_detach( &t );
22605         if( status ) return errno;
22606 #endif
22607
22608 #ifdef HAVE_LINUX_THREADS
22609         pthread_kill_other_threads_np();
22610 #endif
22611
22612         return 0;
22613
22614   ;
22615   return 0;
22616 }
22617 _ACEOF
22618 rm -f conftest.$ac_objext conftest$ac_exeext
22619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22620   (eval $ac_link) 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } &&
22627          { ac_try='test -z "$ac_c_werror_flag"
22628                          || test ! -s conftest.err'
22629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630   (eval $ac_try) 2>&5
22631   ac_status=$?
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); }; } &&
22634          { ac_try='test -s conftest$ac_exeext'
22635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636   (eval $ac_try) 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); }; }; then
22640   ol_cv_pthread_lpthreads_lmach_lexc=yes
22641 else
22642   echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645 ol_cv_pthread_lpthreads_lmach_lexc=no
22646 fi
22647 rm -f conftest.err conftest.$ac_objext \
22648       conftest$ac_exeext conftest.$ac_ext
22649 else
22650   cat >conftest.$ac_ext <<_ACEOF
22651 /* confdefs.h.  */
22652 _ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h.  */
22656
22657 /* pthread test headers */
22658 #include <pthread.h>
22659 #if HAVE_PTHREADS < 7
22660 #include <errno.h>
22661 #endif
22662 #ifndef NULL
22663 #define NULL (void*)0
22664 #endif
22665
22666 static void *task(p)
22667         void *p;
22668 {
22669         return (void *) (p == NULL);
22670 }
22671
22672
22673 int main(argc, argv)
22674         int argc;
22675         char **argv;
22676 {
22677
22678         /* pthread test function */
22679 #ifndef PTHREAD_CREATE_DETACHED
22680 #define PTHREAD_CREATE_DETACHED 1
22681 #endif
22682         pthread_t t;
22683         int status;
22684         int detach = PTHREAD_CREATE_DETACHED;
22685
22686 #if HAVE_PTHREADS > 4
22687         /* Final pthreads */
22688         pthread_attr_t attr;
22689
22690         status = pthread_attr_init(&attr);
22691         if( status ) return status;
22692
22693 #if HAVE_PTHREADS < 7
22694         status = pthread_attr_setdetachstate(&attr, &detach);
22695         if( status < 0 ) status = errno;
22696 #else
22697         status = pthread_attr_setdetachstate(&attr, detach);
22698 #endif
22699         if( status ) return status;
22700         status = pthread_create( &t, &attr, task, NULL );
22701 #if HAVE_PTHREADS < 7
22702         if( status < 0 ) status = errno;
22703 #endif
22704         if( status ) return status;
22705 #else
22706         /* Draft 4 pthreads */
22707         status = pthread_create( &t, pthread_attr_default, task, NULL );
22708         if( status ) return errno;
22709
22710         /* give thread a chance to complete */
22711         /* it should remain joinable and hence detachable */
22712         sleep( 1 );
22713
22714         status = pthread_detach( &t );
22715         if( status ) return errno;
22716 #endif
22717
22718 #ifdef HAVE_LINUX_THREADS
22719         pthread_kill_other_threads_np();
22720 #endif
22721
22722         return 0;
22723
22724 }
22725
22726 _ACEOF
22727 rm -f conftest$ac_exeext
22728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729   (eval $ac_link) 2>&5
22730   ac_status=$?
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; }; then
22738   ol_cv_pthread_lpthreads_lmach_lexc=yes
22739 else
22740   echo "$as_me: program exited with status $ac_status" >&5
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744 ( exit $ac_status )
22745 ol_cv_pthread_lpthreads_lmach_lexc=no
22746 fi
22747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22748 fi
22749
22750                 # restore the LIBS
22751                 LIBS="$ol_LIBS"
22752
22753 fi
22754 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22755 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22756
22757         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22758                 ol_link_pthreads="-lpthreads -lmach -lexc"
22759                 ol_link_threads=posix
22760         fi
22761 fi
22762
22763                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
22764 if test "$ol_link_threads" = no ; then
22765         # try -lpthreads -lexc
22766         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
22767 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
22768 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
22769   echo $ECHO_N "(cached) $ECHO_C" >&6
22770 else
22771
22772                 # save the flags
22773                 ol_LIBS="$LIBS"
22774                 LIBS="-lpthreads -lexc $LIBS"
22775
22776                 if test "$cross_compiling" = yes; then
22777   cat >conftest.$ac_ext <<_ACEOF
22778 /* confdefs.h.  */
22779 _ACEOF
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h.  */
22783
22784 /* pthread test headers */
22785 #include <pthread.h>
22786 #if HAVE_PTHREADS < 7
22787 #include <errno.h>
22788 #endif
22789 #ifndef NULL
22790 #define NULL (void*)0
22791 #endif
22792
22793 static void *task(p)
22794         void *p;
22795 {
22796         return (void *) (p == NULL);
22797 }
22798
22799 int
22800 main ()
22801 {
22802
22803         /* pthread test function */
22804 #ifndef PTHREAD_CREATE_DETACHED
22805 #define PTHREAD_CREATE_DETACHED 1
22806 #endif
22807         pthread_t t;
22808         int status;
22809         int detach = PTHREAD_CREATE_DETACHED;
22810
22811 #if HAVE_PTHREADS > 4
22812         /* Final pthreads */
22813         pthread_attr_t attr;
22814
22815         status = pthread_attr_init(&attr);
22816         if( status ) return status;
22817
22818 #if HAVE_PTHREADS < 7
22819         status = pthread_attr_setdetachstate(&attr, &detach);
22820         if( status < 0 ) status = errno;
22821 #else
22822         status = pthread_attr_setdetachstate(&attr, detach);
22823 #endif
22824         if( status ) return status;
22825         status = pthread_create( &t, &attr, task, NULL );
22826 #if HAVE_PTHREADS < 7
22827         if( status < 0 ) status = errno;
22828 #endif
22829         if( status ) return status;
22830 #else
22831         /* Draft 4 pthreads */
22832         status = pthread_create( &t, pthread_attr_default, task, NULL );
22833         if( status ) return errno;
22834
22835         /* give thread a chance to complete */
22836         /* it should remain joinable and hence detachable */
22837         sleep( 1 );
22838
22839         status = pthread_detach( &t );
22840         if( status ) return errno;
22841 #endif
22842
22843 #ifdef HAVE_LINUX_THREADS
22844         pthread_kill_other_threads_np();
22845 #endif
22846
22847         return 0;
22848
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22855   (eval $ac_link) 2>conftest.er1
22856   ac_status=$?
22857   grep -v '^ *+' conftest.er1 >conftest.err
22858   rm -f conftest.er1
22859   cat conftest.err >&5
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } &&
22862          { ac_try='test -z "$ac_c_werror_flag"
22863                          || test ! -s conftest.err'
22864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865   (eval $ac_try) 2>&5
22866   ac_status=$?
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); }; } &&
22869          { ac_try='test -s conftest$ac_exeext'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; }; then
22875   ol_cv_pthread_lpthreads_lexc=yes
22876 else
22877   echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22879
22880 ol_cv_pthread_lpthreads_lexc=no
22881 fi
22882 rm -f conftest.err conftest.$ac_objext \
22883       conftest$ac_exeext conftest.$ac_ext
22884 else
22885   cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h.  */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h.  */
22891
22892 /* pthread test headers */
22893 #include <pthread.h>
22894 #if HAVE_PTHREADS < 7
22895 #include <errno.h>
22896 #endif
22897 #ifndef NULL
22898 #define NULL (void*)0
22899 #endif
22900
22901 static void *task(p)
22902         void *p;
22903 {
22904         return (void *) (p == NULL);
22905 }
22906
22907
22908 int main(argc, argv)
22909         int argc;
22910         char **argv;
22911 {
22912
22913         /* pthread test function */
22914 #ifndef PTHREAD_CREATE_DETACHED
22915 #define PTHREAD_CREATE_DETACHED 1
22916 #endif
22917         pthread_t t;
22918         int status;
22919         int detach = PTHREAD_CREATE_DETACHED;
22920
22921 #if HAVE_PTHREADS > 4
22922         /* Final pthreads */
22923         pthread_attr_t attr;
22924
22925         status = pthread_attr_init(&attr);
22926         if( status ) return status;
22927
22928 #if HAVE_PTHREADS < 7
22929         status = pthread_attr_setdetachstate(&attr, &detach);
22930         if( status < 0 ) status = errno;
22931 #else
22932         status = pthread_attr_setdetachstate(&attr, detach);
22933 #endif
22934         if( status ) return status;
22935         status = pthread_create( &t, &attr, task, NULL );
22936 #if HAVE_PTHREADS < 7
22937         if( status < 0 ) status = errno;
22938 #endif
22939         if( status ) return status;
22940 #else
22941         /* Draft 4 pthreads */
22942         status = pthread_create( &t, pthread_attr_default, task, NULL );
22943         if( status ) return errno;
22944
22945         /* give thread a chance to complete */
22946         /* it should remain joinable and hence detachable */
22947         sleep( 1 );
22948
22949         status = pthread_detach( &t );
22950         if( status ) return errno;
22951 #endif
22952
22953 #ifdef HAVE_LINUX_THREADS
22954         pthread_kill_other_threads_np();
22955 #endif
22956
22957         return 0;
22958
22959 }
22960
22961 _ACEOF
22962 rm -f conftest$ac_exeext
22963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22964   (eval $ac_link) 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969   (eval $ac_try) 2>&5
22970   ac_status=$?
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); }; }; then
22973   ol_cv_pthread_lpthreads_lexc=yes
22974 else
22975   echo "$as_me: program exited with status $ac_status" >&5
22976 echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22978
22979 ( exit $ac_status )
22980 ol_cv_pthread_lpthreads_lexc=no
22981 fi
22982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22983 fi
22984
22985                 # restore the LIBS
22986                 LIBS="$ol_LIBS"
22987
22988 fi
22989 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
22990 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
22991
22992         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22993                 ol_link_pthreads="-lpthreads -lexc"
22994                 ol_link_threads=posix
22995         fi
22996 fi
22997
22998
22999                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23000 if test "$ol_link_threads" = no ; then
23001         # try -lpthreads
23002         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23003 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23004 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23005   echo $ECHO_N "(cached) $ECHO_C" >&6
23006 else
23007
23008                 # save the flags
23009                 ol_LIBS="$LIBS"
23010                 LIBS="-lpthreads $LIBS"
23011
23012                 if test "$cross_compiling" = yes; then
23013   cat >conftest.$ac_ext <<_ACEOF
23014 /* confdefs.h.  */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h.  */
23019
23020 /* pthread test headers */
23021 #include <pthread.h>
23022 #if HAVE_PTHREADS < 7
23023 #include <errno.h>
23024 #endif
23025 #ifndef NULL
23026 #define NULL (void*)0
23027 #endif
23028
23029 static void *task(p)
23030         void *p;
23031 {
23032         return (void *) (p == NULL);
23033 }
23034
23035 int
23036 main ()
23037 {
23038
23039         /* pthread test function */
23040 #ifndef PTHREAD_CREATE_DETACHED
23041 #define PTHREAD_CREATE_DETACHED 1
23042 #endif
23043         pthread_t t;
23044         int status;
23045         int detach = PTHREAD_CREATE_DETACHED;
23046
23047 #if HAVE_PTHREADS > 4
23048         /* Final pthreads */
23049         pthread_attr_t attr;
23050
23051         status = pthread_attr_init(&attr);
23052         if( status ) return status;
23053
23054 #if HAVE_PTHREADS < 7
23055         status = pthread_attr_setdetachstate(&attr, &detach);
23056         if( status < 0 ) status = errno;
23057 #else
23058         status = pthread_attr_setdetachstate(&attr, detach);
23059 #endif
23060         if( status ) return status;
23061         status = pthread_create( &t, &attr, task, NULL );
23062 #if HAVE_PTHREADS < 7
23063         if( status < 0 ) status = errno;
23064 #endif
23065         if( status ) return status;
23066 #else
23067         /* Draft 4 pthreads */
23068         status = pthread_create( &t, pthread_attr_default, task, NULL );
23069         if( status ) return errno;
23070
23071         /* give thread a chance to complete */
23072         /* it should remain joinable and hence detachable */
23073         sleep( 1 );
23074
23075         status = pthread_detach( &t );
23076         if( status ) return errno;
23077 #endif
23078
23079 #ifdef HAVE_LINUX_THREADS
23080         pthread_kill_other_threads_np();
23081 #endif
23082
23083         return 0;
23084
23085   ;
23086   return 0;
23087 }
23088 _ACEOF
23089 rm -f conftest.$ac_objext conftest$ac_exeext
23090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23091   (eval $ac_link) 2>conftest.er1
23092   ac_status=$?
23093   grep -v '^ *+' conftest.er1 >conftest.err
23094   rm -f conftest.er1
23095   cat conftest.err >&5
23096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); } &&
23098          { ac_try='test -z "$ac_c_werror_flag"
23099                          || test ! -s conftest.err'
23100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101   (eval $ac_try) 2>&5
23102   ac_status=$?
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); }; } &&
23105          { ac_try='test -s conftest$ac_exeext'
23106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107   (eval $ac_try) 2>&5
23108   ac_status=$?
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); }; }; then
23111   ol_cv_pthread_lib_lpthreads=yes
23112 else
23113   echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23115
23116 ol_cv_pthread_lib_lpthreads=no
23117 fi
23118 rm -f conftest.err conftest.$ac_objext \
23119       conftest$ac_exeext conftest.$ac_ext
23120 else
23121   cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127
23128 /* pthread test headers */
23129 #include <pthread.h>
23130 #if HAVE_PTHREADS < 7
23131 #include <errno.h>
23132 #endif
23133 #ifndef NULL
23134 #define NULL (void*)0
23135 #endif
23136
23137 static void *task(p)
23138         void *p;
23139 {
23140         return (void *) (p == NULL);
23141 }
23142
23143
23144 int main(argc, argv)
23145         int argc;
23146         char **argv;
23147 {
23148
23149         /* pthread test function */
23150 #ifndef PTHREAD_CREATE_DETACHED
23151 #define PTHREAD_CREATE_DETACHED 1
23152 #endif
23153         pthread_t t;
23154         int status;
23155         int detach = PTHREAD_CREATE_DETACHED;
23156
23157 #if HAVE_PTHREADS > 4
23158         /* Final pthreads */
23159         pthread_attr_t attr;
23160
23161         status = pthread_attr_init(&attr);
23162         if( status ) return status;
23163
23164 #if HAVE_PTHREADS < 7
23165         status = pthread_attr_setdetachstate(&attr, &detach);
23166         if( status < 0 ) status = errno;
23167 #else
23168         status = pthread_attr_setdetachstate(&attr, detach);
23169 #endif
23170         if( status ) return status;
23171         status = pthread_create( &t, &attr, task, NULL );
23172 #if HAVE_PTHREADS < 7
23173         if( status < 0 ) status = errno;
23174 #endif
23175         if( status ) return status;
23176 #else
23177         /* Draft 4 pthreads */
23178         status = pthread_create( &t, pthread_attr_default, task, NULL );
23179         if( status ) return errno;
23180
23181         /* give thread a chance to complete */
23182         /* it should remain joinable and hence detachable */
23183         sleep( 1 );
23184
23185         status = pthread_detach( &t );
23186         if( status ) return errno;
23187 #endif
23188
23189 #ifdef HAVE_LINUX_THREADS
23190         pthread_kill_other_threads_np();
23191 #endif
23192
23193         return 0;
23194
23195 }
23196
23197 _ACEOF
23198 rm -f conftest$ac_exeext
23199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200   (eval $ac_link) 2>&5
23201   ac_status=$?
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205   (eval $ac_try) 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; }; then
23209   ol_cv_pthread_lib_lpthreads=yes
23210 else
23211   echo "$as_me: program exited with status $ac_status" >&5
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215 ( exit $ac_status )
23216 ol_cv_pthread_lib_lpthreads=no
23217 fi
23218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23219 fi
23220
23221                 # restore the LIBS
23222                 LIBS="$ol_LIBS"
23223
23224 fi
23225 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23226 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23227
23228         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23229                 ol_link_pthreads="-lpthreads"
23230                 ol_link_threads=posix
23231         fi
23232 fi
23233
23234
23235                 if test $ol_link_threads != no ; then
23236                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23237
23238                                                 save_CPPFLAGS="$CPPFLAGS"
23239                         save_LIBS="$LIBS"
23240                         LIBS="$LTHREAD_LIBS $LIBS"
23241
23242
23243
23244
23245 for ac_func in sched_yield pthread_yield thr_yield
23246 do
23247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23248 echo "$as_me:$LINENO: checking for $ac_func" >&5
23249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23250 if eval "test \"\${$as_ac_var+set}\" = set"; then
23251   echo $ECHO_N "(cached) $ECHO_C" >&6
23252 else
23253   cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23261 #define $ac_func innocuous_$ac_func
23262
23263 /* System header to define __stub macros and hopefully few prototypes,
23264     which can conflict with char $ac_func (); below.
23265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23266     <limits.h> exists even on freestanding compilers.  */
23267
23268 #ifdef __STDC__
23269 # include <limits.h>
23270 #else
23271 # include <assert.h>
23272 #endif
23273
23274 #undef $ac_func
23275
23276 /* Override any gcc2 internal prototype to avoid an error.  */
23277 #ifdef __cplusplus
23278 extern "C"
23279 {
23280 #endif
23281 /* We use char because int might match the return type of a gcc2
23282    builtin and then its argument prototype would still apply.  */
23283 char $ac_func ();
23284 /* The GNU C library defines this for functions which it implements
23285     to always fail with ENOSYS.  Some functions are actually named
23286     something starting with __ and the normal name is an alias.  */
23287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23288 choke me
23289 #else
23290 char (*f) () = $ac_func;
23291 #endif
23292 #ifdef __cplusplus
23293 }
23294 #endif
23295
23296 int
23297 main ()
23298 {
23299 return f != $ac_func;
23300   ;
23301   return 0;
23302 }
23303 _ACEOF
23304 rm -f conftest.$ac_objext conftest$ac_exeext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306   (eval $ac_link) 2>conftest.er1
23307   ac_status=$?
23308   grep -v '^ *+' conftest.er1 >conftest.err
23309   rm -f conftest.er1
23310   cat conftest.err >&5
23311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312   (exit $ac_status); } &&
23313          { ac_try='test -z "$ac_c_werror_flag"
23314                          || test ! -s conftest.err'
23315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316   (eval $ac_try) 2>&5
23317   ac_status=$?
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); }; } &&
23320          { ac_try='test -s conftest$ac_exeext'
23321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322   (eval $ac_try) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; }; then
23326   eval "$as_ac_var=yes"
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 eval "$as_ac_var=no"
23332 fi
23333 rm -f conftest.err conftest.$ac_objext \
23334       conftest$ac_exeext conftest.$ac_ext
23335 fi
23336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23338 if test `eval echo '${'$as_ac_var'}'` = yes; then
23339   cat >>confdefs.h <<_ACEOF
23340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23341 _ACEOF
23342
23343 fi
23344 done
23345
23346
23347                         if test $ac_cv_func_sched_yield = no &&
23348                            test $ac_cv_func_pthread_yield = no &&
23349                            test $ac_cv_func_thr_yield = no ; then
23350                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23351 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23352 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23353   echo $ECHO_N "(cached) $ECHO_C" >&6
23354 else
23355   ac_check_lib_save_LIBS=$LIBS
23356 LIBS="-lrt  $LIBS"
23357 cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h.  */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h.  */
23363
23364 /* Override any gcc2 internal prototype to avoid an error.  */
23365 #ifdef __cplusplus
23366 extern "C"
23367 #endif
23368 /* We use char because int might match the return type of a gcc2
23369    builtin and then its argument prototype would still apply.  */
23370 char sched_yield ();
23371 int
23372 main ()
23373 {
23374 sched_yield ();
23375   ;
23376   return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381   (eval $ac_link) 2>conftest.er1
23382   ac_status=$?
23383   grep -v '^ *+' conftest.er1 >conftest.err
23384   rm -f conftest.er1
23385   cat conftest.err >&5
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); } &&
23388          { ac_try='test -z "$ac_c_werror_flag"
23389                          || test ! -s conftest.err'
23390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391   (eval $ac_try) 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; } &&
23395          { ac_try='test -s conftest$ac_exeext'
23396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397   (eval $ac_try) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; }; then
23401   ac_cv_lib_rt_sched_yield=yes
23402 else
23403   echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 ac_cv_lib_rt_sched_yield=no
23407 fi
23408 rm -f conftest.err conftest.$ac_objext \
23409       conftest$ac_exeext conftest.$ac_ext
23410 LIBS=$ac_check_lib_save_LIBS
23411 fi
23412 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23413 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23414 if test $ac_cv_lib_rt_sched_yield = yes; then
23415   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23416
23417 cat >>confdefs.h <<\_ACEOF
23418 #define HAVE_SCHED_YIELD 1
23419 _ACEOF
23420
23421                                         ac_cv_func_sched_yield=yes
23422 else
23423   ac_cv_func_sched_yield=no
23424 fi
23425
23426                         fi
23427                         if test $ac_cv_func_sched_yield = no &&
23428                            test $ac_cv_func_pthread_yield = no &&
23429                            test "$ac_cv_func_thr_yield" = no ; then
23430                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23431 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23432                         fi
23433
23434
23435 for ac_func in pthread_kill
23436 do
23437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23438 echo "$as_me:$LINENO: checking for $ac_func" >&5
23439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23440 if eval "test \"\${$as_ac_var+set}\" = set"; then
23441   echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443   cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23451 #define $ac_func innocuous_$ac_func
23452
23453 /* System header to define __stub macros and hopefully few prototypes,
23454     which can conflict with char $ac_func (); below.
23455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23456     <limits.h> exists even on freestanding compilers.  */
23457
23458 #ifdef __STDC__
23459 # include <limits.h>
23460 #else
23461 # include <assert.h>
23462 #endif
23463
23464 #undef $ac_func
23465
23466 /* Override any gcc2 internal prototype to avoid an error.  */
23467 #ifdef __cplusplus
23468 extern "C"
23469 {
23470 #endif
23471 /* We use char because int might match the return type of a gcc2
23472    builtin and then its argument prototype would still apply.  */
23473 char $ac_func ();
23474 /* The GNU C library defines this for functions which it implements
23475     to always fail with ENOSYS.  Some functions are actually named
23476     something starting with __ and the normal name is an alias.  */
23477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23478 choke me
23479 #else
23480 char (*f) () = $ac_func;
23481 #endif
23482 #ifdef __cplusplus
23483 }
23484 #endif
23485
23486 int
23487 main ()
23488 {
23489 return f != $ac_func;
23490   ;
23491   return 0;
23492 }
23493 _ACEOF
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496   (eval $ac_link) 2>conftest.er1
23497   ac_status=$?
23498   grep -v '^ *+' conftest.er1 >conftest.err
23499   rm -f conftest.er1
23500   cat conftest.err >&5
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); } &&
23503          { ac_try='test -z "$ac_c_werror_flag"
23504                          || test ! -s conftest.err'
23505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; } &&
23510          { ac_try='test -s conftest$ac_exeext'
23511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512   (eval $ac_try) 2>&5
23513   ac_status=$?
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); }; }; then
23516   eval "$as_ac_var=yes"
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 eval "$as_ac_var=no"
23522 fi
23523 rm -f conftest.err conftest.$ac_objext \
23524       conftest$ac_exeext conftest.$ac_ext
23525 fi
23526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23528 if test `eval echo '${'$as_ac_var'}'` = yes; then
23529   cat >>confdefs.h <<_ACEOF
23530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23531 _ACEOF
23532
23533 fi
23534 done
23535
23536
23537                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23538 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23539 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23540   echo $ECHO_N "(cached) $ECHO_C" >&6
23541 else
23542
23543                                                                 cat >conftest.$ac_ext <<_ACEOF
23544 /* confdefs.h.  */
23545 _ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h.  */
23549
23550 #include <pthread.h>
23551 pthread_rwlock_t rwlock;
23552
23553 int
23554 main ()
23555 {
23556 pthread_rwlock_destroy(&rwlock);
23557   ;
23558   return 0;
23559 }
23560 _ACEOF
23561 rm -f conftest.$ac_objext conftest$ac_exeext
23562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23563   (eval $ac_link) 2>conftest.er1
23564   ac_status=$?
23565   grep -v '^ *+' conftest.er1 >conftest.err
23566   rm -f conftest.er1
23567   cat conftest.err >&5
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); } &&
23570          { ac_try='test -z "$ac_c_werror_flag"
23571                          || test ! -s conftest.err'
23572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23573   (eval $ac_try) 2>&5
23574   ac_status=$?
23575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576   (exit $ac_status); }; } &&
23577          { ac_try='test -s conftest$ac_exeext'
23578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579   (eval $ac_try) 2>&5
23580   ac_status=$?
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); }; }; then
23583   ol_cv_func_pthread_rwlock_destroy=yes
23584 else
23585   echo "$as_me: failed program was:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23587
23588 ol_cv_func_pthread_rwlock_destroy=no
23589 fi
23590 rm -f conftest.err conftest.$ac_objext \
23591       conftest$ac_exeext conftest.$ac_ext
23592
23593 fi
23594 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23595 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23596                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23597
23598 cat >>confdefs.h <<\_ACEOF
23599 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23600 _ACEOF
23601
23602                         fi
23603
23604                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23605 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23606 if test "${ol_cv_func_pthread_detach+set}" = set; then
23607   echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609
23610                                                                 cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616
23617 #include <pthread.h>
23618 #ifndef NULL
23619 #define NULL (void*)0
23620 #endif
23621
23622 int
23623 main ()
23624 {
23625 pthread_detach(NULL);
23626   ;
23627   return 0;
23628 }
23629 _ACEOF
23630 rm -f conftest.$ac_objext conftest$ac_exeext
23631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23632   (eval $ac_link) 2>conftest.er1
23633   ac_status=$?
23634   grep -v '^ *+' conftest.er1 >conftest.err
23635   rm -f conftest.er1
23636   cat conftest.err >&5
23637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638   (exit $ac_status); } &&
23639          { ac_try='test -z "$ac_c_werror_flag"
23640                          || test ! -s conftest.err'
23641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642   (eval $ac_try) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; } &&
23646          { ac_try='test -s conftest$ac_exeext'
23647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648   (eval $ac_try) 2>&5
23649   ac_status=$?
23650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651   (exit $ac_status); }; }; then
23652   ol_cv_func_pthread_detach=yes
23653 else
23654   echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657 ol_cv_func_pthread_detach=no
23658 fi
23659 rm -f conftest.err conftest.$ac_objext \
23660       conftest$ac_exeext conftest.$ac_ext
23661
23662 fi
23663 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23664 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23665
23666                         if test $ol_cv_func_pthread_detach = no ; then
23667                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23668 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23669    { (exit 1); exit 1; }; }
23670                         fi
23671
23672
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_PTHREAD_DETACH 1
23675 _ACEOF
23676
23677
23678
23679
23680
23681
23682 for ac_func in \
23683                                 pthread_setconcurrency \
23684                                 pthread_getconcurrency \
23685                                 thr_setconcurrency \
23686                                 thr_getconcurrency \
23687
23688 do
23689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23690 echo "$as_me:$LINENO: checking for $ac_func" >&5
23691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23692 if eval "test \"\${$as_ac_var+set}\" = set"; then
23693   echo $ECHO_N "(cached) $ECHO_C" >&6
23694 else
23695   cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h.  */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h.  */
23701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23703 #define $ac_func innocuous_$ac_func
23704
23705 /* System header to define __stub macros and hopefully few prototypes,
23706     which can conflict with char $ac_func (); below.
23707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23708     <limits.h> exists even on freestanding compilers.  */
23709
23710 #ifdef __STDC__
23711 # include <limits.h>
23712 #else
23713 # include <assert.h>
23714 #endif
23715
23716 #undef $ac_func
23717
23718 /* Override any gcc2 internal prototype to avoid an error.  */
23719 #ifdef __cplusplus
23720 extern "C"
23721 {
23722 #endif
23723 /* We use char because int might match the return type of a gcc2
23724    builtin and then its argument prototype would still apply.  */
23725 char $ac_func ();
23726 /* The GNU C library defines this for functions which it implements
23727     to always fail with ENOSYS.  Some functions are actually named
23728     something starting with __ and the normal name is an alias.  */
23729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23730 choke me
23731 #else
23732 char (*f) () = $ac_func;
23733 #endif
23734 #ifdef __cplusplus
23735 }
23736 #endif
23737
23738 int
23739 main ()
23740 {
23741 return f != $ac_func;
23742   ;
23743   return 0;
23744 }
23745 _ACEOF
23746 rm -f conftest.$ac_objext conftest$ac_exeext
23747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23748   (eval $ac_link) 2>conftest.er1
23749   ac_status=$?
23750   grep -v '^ *+' conftest.er1 >conftest.err
23751   rm -f conftest.er1
23752   cat conftest.err >&5
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); } &&
23755          { ac_try='test -z "$ac_c_werror_flag"
23756                          || test ! -s conftest.err'
23757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758   (eval $ac_try) 2>&5
23759   ac_status=$?
23760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); }; } &&
23762          { ac_try='test -s conftest$ac_exeext'
23763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764   (eval $ac_try) 2>&5
23765   ac_status=$?
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); }; }; then
23768   eval "$as_ac_var=yes"
23769 else
23770   echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23772
23773 eval "$as_ac_var=no"
23774 fi
23775 rm -f conftest.err conftest.$ac_objext \
23776       conftest$ac_exeext conftest.$ac_ext
23777 fi
23778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23780 if test `eval echo '${'$as_ac_var'}'` = yes; then
23781   cat >>confdefs.h <<_ACEOF
23782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23783 _ACEOF
23784
23785 fi
23786 done
23787
23788
23789
23790
23791 for ac_func in pthread_kill_other_threads_np
23792 do
23793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23794 echo "$as_me:$LINENO: checking for $ac_func" >&5
23795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23796 if eval "test \"\${$as_ac_var+set}\" = set"; then
23797   echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799   cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h.  */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h.  */
23805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23807 #define $ac_func innocuous_$ac_func
23808
23809 /* System header to define __stub macros and hopefully few prototypes,
23810     which can conflict with char $ac_func (); below.
23811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23812     <limits.h> exists even on freestanding compilers.  */
23813
23814 #ifdef __STDC__
23815 # include <limits.h>
23816 #else
23817 # include <assert.h>
23818 #endif
23819
23820 #undef $ac_func
23821
23822 /* Override any gcc2 internal prototype to avoid an error.  */
23823 #ifdef __cplusplus
23824 extern "C"
23825 {
23826 #endif
23827 /* We use char because int might match the return type of a gcc2
23828    builtin and then its argument prototype would still apply.  */
23829 char $ac_func ();
23830 /* The GNU C library defines this for functions which it implements
23831     to always fail with ENOSYS.  Some functions are actually named
23832     something starting with __ and the normal name is an alias.  */
23833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23834 choke me
23835 #else
23836 char (*f) () = $ac_func;
23837 #endif
23838 #ifdef __cplusplus
23839 }
23840 #endif
23841
23842 int
23843 main ()
23844 {
23845 return f != $ac_func;
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext conftest$ac_exeext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23852   (eval $ac_link) 2>conftest.er1
23853   ac_status=$?
23854   grep -v '^ *+' conftest.er1 >conftest.err
23855   rm -f conftest.er1
23856   cat conftest.err >&5
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); } &&
23859          { ac_try='test -z "$ac_c_werror_flag"
23860                          || test ! -s conftest.err'
23861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862   (eval $ac_try) 2>&5
23863   ac_status=$?
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); }; } &&
23866          { ac_try='test -s conftest$ac_exeext'
23867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); }; }; then
23872   eval "$as_ac_var=yes"
23873 else
23874   echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877 eval "$as_ac_var=no"
23878 fi
23879 rm -f conftest.err conftest.$ac_objext \
23880       conftest$ac_exeext conftest.$ac_ext
23881 fi
23882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23884 if test `eval echo '${'$as_ac_var'}'` = yes; then
23885   cat >>confdefs.h <<_ACEOF
23886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23887 _ACEOF
23888
23889 fi
23890 done
23891
23892         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
23893 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
23894 if test "${ol_cv_sys_linux_threads+set}" = set; then
23895   echo $ECHO_N "(cached) $ECHO_C" >&6
23896 else
23897   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
23898 fi
23899 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
23900 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
23901
23902
23903
23904
23905         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
23906 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
23907 if test "${ol_cv_linux_threads+set}" = set; then
23908   echo $ECHO_N "(cached) $ECHO_C" >&6
23909 else
23910
23911                 if test $ol_cv_header_linux_threads = yes &&
23912                    test $ol_cv_sys_linux_threads = yes; then
23913                         ol_cv_linux_threads=yes
23914                 elif test $ol_cv_header_linux_threads = no &&
23915                      test $ol_cv_sys_linux_threads = no; then
23916                         ol_cv_linux_threads=no
23917                 else
23918                         ol_cv_linux_threads=error
23919                 fi
23920
23921 fi
23922 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
23923 echo "${ECHO_T}$ol_cv_linux_threads" >&6
23924
23925
23926                         if test $ol_cv_linux_threads = error; then
23927                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
23928 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
23929    { (exit 1); exit 1; }; };
23930                         fi
23931
23932                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
23933 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
23934 if test "${ol_cv_pthread_create_works+set}" = set; then
23935   echo $ECHO_N "(cached) $ECHO_C" >&6
23936 else
23937
23938                         if test "$cross_compiling" = yes; then
23939                                 ol_cv_pthread_create_works=yes
23940 else
23941   cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947
23948 /* pthread test headers */
23949 #include <pthread.h>
23950 #if HAVE_PTHREADS < 7
23951 #include <errno.h>
23952 #endif
23953 #ifndef NULL
23954 #define NULL (void*)0
23955 #endif
23956
23957 static void *task(p)
23958         void *p;
23959 {
23960         return (void *) (p == NULL);
23961 }
23962
23963
23964 int main(argc, argv)
23965         int argc;
23966         char **argv;
23967 {
23968
23969         /* pthread test function */
23970 #ifndef PTHREAD_CREATE_DETACHED
23971 #define PTHREAD_CREATE_DETACHED 1
23972 #endif
23973         pthread_t t;
23974         int status;
23975         int detach = PTHREAD_CREATE_DETACHED;
23976
23977 #if HAVE_PTHREADS > 4
23978         /* Final pthreads */
23979         pthread_attr_t attr;
23980
23981         status = pthread_attr_init(&attr);
23982         if( status ) return status;
23983
23984 #if HAVE_PTHREADS < 7
23985         status = pthread_attr_setdetachstate(&attr, &detach);
23986         if( status < 0 ) status = errno;
23987 #else
23988         status = pthread_attr_setdetachstate(&attr, detach);
23989 #endif
23990         if( status ) return status;
23991         status = pthread_create( &t, &attr, task, NULL );
23992 #if HAVE_PTHREADS < 7
23993         if( status < 0 ) status = errno;
23994 #endif
23995         if( status ) return status;
23996 #else
23997         /* Draft 4 pthreads */
23998         status = pthread_create( &t, pthread_attr_default, task, NULL );
23999         if( status ) return errno;
24000
24001         /* give thread a chance to complete */
24002         /* it should remain joinable and hence detachable */
24003         sleep( 1 );
24004
24005         status = pthread_detach( &t );
24006         if( status ) return errno;
24007 #endif
24008
24009 #ifdef HAVE_LINUX_THREADS
24010         pthread_kill_other_threads_np();
24011 #endif
24012
24013         return 0;
24014
24015 }
24016
24017 _ACEOF
24018 rm -f conftest$ac_exeext
24019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24020   (eval $ac_link) 2>&5
24021   ac_status=$?
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025   (eval $ac_try) 2>&5
24026   ac_status=$?
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); }; }; then
24029   ol_cv_pthread_create_works=yes
24030 else
24031   echo "$as_me: program exited with status $ac_status" >&5
24032 echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24034
24035 ( exit $ac_status )
24036 ol_cv_pthread_create_works=no
24037 fi
24038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24039 fi
24040 fi
24041 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24042 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24043
24044                         if test $ol_cv_pthread_create_works = no ; then
24045                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24046 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24047    { (exit 1); exit 1; }; }
24048                         fi
24049
24050                         ol_replace_broken_yield=no
24051
24052                         if test $ol_replace_broken_yield = yes ; then
24053
24054 cat >>confdefs.h <<\_ACEOF
24055 #define REPLACE_BROKEN_YIELD 1
24056 _ACEOF
24057
24058                         fi
24059
24060                                                 if test $ol_with_yielding_select = auto ; then
24061                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24062 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24063 if test "${ol_cv_pthread_select_yields+set}" = set; then
24064   echo $ECHO_N "(cached) $ECHO_C" >&6
24065 else
24066
24067                                 if test "$cross_compiling" = yes; then
24068   ol_cv_pthread_select_yields=cross
24069 else
24070   cat >conftest.$ac_ext <<_ACEOF
24071 /* confdefs.h.  */
24072 _ACEOF
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h.  */
24076
24077 #include <sys/types.h>
24078 #include <sys/time.h>
24079 #include <unistd.h>
24080 #include <pthread.h>
24081 #ifndef NULL
24082 #define NULL (void*) 0
24083 #endif
24084
24085 static int fildes[2];
24086
24087 static void *task(p)
24088         void *p;
24089 {
24090         int i;
24091         struct timeval tv;
24092
24093         fd_set rfds;
24094
24095         tv.tv_sec=10;
24096         tv.tv_usec=0;
24097
24098         FD_ZERO(&rfds);
24099         FD_SET(fildes[0], &rfds);
24100
24101         /* we're not interested in any fds */
24102         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24103
24104         if(i < 0) {
24105                 perror("select");
24106                 exit(10);
24107         }
24108
24109         exit(0); /* if we exit here, the select blocked the whole process */
24110 }
24111
24112 int main(argc, argv)
24113         int argc;
24114         char **argv;
24115 {
24116         pthread_t t;
24117
24118         /* create a pipe to select */
24119         if(pipe(&fildes[0])) {
24120                 perror("select");
24121                 exit(1);
24122         }
24123
24124 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24125         (void) pthread_setconcurrency(2);
24126 #else
24127 #ifdef HAVE_THR_SETCONCURRENCY
24128         /* Set Solaris LWP concurrency to 2 */
24129         thr_setconcurrency(2);
24130 #endif
24131 #endif
24132
24133 #if HAVE_PTHREADS < 6
24134         pthread_create(&t, pthread_attr_default, task, NULL);
24135 #else
24136         pthread_create(&t, NULL, task, NULL);
24137 #endif
24138
24139         /* make sure task runs first */
24140 #if HAVE_THR_YIELD
24141         thr_yield();
24142 #elif defined( HAVE_SCHED_YIELD )
24143         sched_yield();
24144 #elif defined( HAVE_PTHREAD_YIELD )
24145         pthread_yield();
24146 #endif
24147
24148         exit(2);
24149 }
24150 _ACEOF
24151 rm -f conftest$ac_exeext
24152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24153   (eval $ac_link) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158   (eval $ac_try) 2>&5
24159   ac_status=$?
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); }; }; then
24162   ol_cv_pthread_select_yields=no
24163 else
24164   echo "$as_me: program exited with status $ac_status" >&5
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168 ( exit $ac_status )
24169 ol_cv_pthread_select_yields=yes
24170 fi
24171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24172 fi
24173 fi
24174 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24175 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24176
24177                                 if test $ol_cv_pthread_select_yields = cross ; then
24178                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24179 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24180    { (exit 1); exit 1; }; }
24181                                 fi
24182
24183                                 if test $ol_cv_pthread_select_yields = yes ; then
24184                                         ol_with_yielding_select=yes
24185                                 fi
24186                         fi
24187
24188                                                 CPPFLAGS="$save_CPPFLAGS"
24189                         LIBS="$save_LIBS"
24190                 else
24191                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24192 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24193    { (exit 1); exit 1; }; }
24194                 fi
24195         fi
24196
24197         if test $ol_with_threads = posix ; then
24198                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24199 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24200    { (exit 1); exit 1; }; }
24201         fi
24202         ;;
24203 esac
24204
24205 case $ol_with_threads in auto | yes | mach)
24206
24207
24208
24209 for ac_header in mach/cthreads.h cthreads.h
24210 do
24211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24213   echo "$as_me:$LINENO: checking for $ac_header" >&5
24214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24216   echo $ECHO_N "(cached) $ECHO_C" >&6
24217 fi
24218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24220 else
24221   # Is the header compilable?
24222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24224 cat >conftest.$ac_ext <<_ACEOF
24225 /* confdefs.h.  */
24226 _ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h.  */
24230 $ac_includes_default
24231 #include <$ac_header>
24232 _ACEOF
24233 rm -f conftest.$ac_objext
24234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24235   (eval $ac_compile) 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } &&
24242          { ac_try='test -z "$ac_c_werror_flag"
24243                          || test ! -s conftest.err'
24244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245   (eval $ac_try) 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); }; } &&
24249          { ac_try='test -s conftest.$ac_objext'
24250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251   (eval $ac_try) 2>&5
24252   ac_status=$?
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); }; }; then
24255   ac_header_compiler=yes
24256 else
24257   echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24259
24260 ac_header_compiler=no
24261 fi
24262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24264 echo "${ECHO_T}$ac_header_compiler" >&6
24265
24266 # Is the header present?
24267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h.  */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h.  */
24275 #include <$ac_header>
24276 _ACEOF
24277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24279   ac_status=$?
24280   grep -v '^ *+' conftest.er1 >conftest.err
24281   rm -f conftest.er1
24282   cat conftest.err >&5
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); } >/dev/null; then
24285   if test -s conftest.err; then
24286     ac_cpp_err=$ac_c_preproc_warn_flag
24287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24288   else
24289     ac_cpp_err=
24290   fi
24291 else
24292   ac_cpp_err=yes
24293 fi
24294 if test -z "$ac_cpp_err"; then
24295   ac_header_preproc=yes
24296 else
24297   echo "$as_me: failed program was:" >&5
24298 sed 's/^/| /' conftest.$ac_ext >&5
24299
24300   ac_header_preproc=no
24301 fi
24302 rm -f conftest.err conftest.$ac_ext
24303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24304 echo "${ECHO_T}$ac_header_preproc" >&6
24305
24306 # So?  What about this header?
24307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24308   yes:no: )
24309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24313     ac_header_preproc=yes
24314     ;;
24315   no:yes:* )
24316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24328     (
24329       cat <<\_ASBOX
24330 ## --------------------------------------------- ##
24331 ## Report this to <http://www.openldap.org/its/> ##
24332 ## --------------------------------------------- ##
24333 _ASBOX
24334     ) |
24335       sed "s/^/$as_me: WARNING:     /" >&2
24336     ;;
24337 esac
24338 echo "$as_me:$LINENO: checking for $ac_header" >&5
24339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24341   echo $ECHO_N "(cached) $ECHO_C" >&6
24342 else
24343   eval "$as_ac_Header=\$ac_header_preproc"
24344 fi
24345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24347
24348 fi
24349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24350   cat >>confdefs.h <<_ACEOF
24351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24352 _ACEOF
24353
24354 fi
24355
24356 done
24357
24358         if test $ac_cv_header_mach_cthreads_h = yes ; then
24359                 ol_with_threads=found
24360
24361                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24362 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24363 if test "${ac_cv_func_cthread_fork+set}" = set; then
24364   echo $ECHO_N "(cached) $ECHO_C" >&6
24365 else
24366   cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h.  */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h.  */
24372 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24374 #define cthread_fork innocuous_cthread_fork
24375
24376 /* System header to define __stub macros and hopefully few prototypes,
24377     which can conflict with char cthread_fork (); below.
24378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24379     <limits.h> exists even on freestanding compilers.  */
24380
24381 #ifdef __STDC__
24382 # include <limits.h>
24383 #else
24384 # include <assert.h>
24385 #endif
24386
24387 #undef cthread_fork
24388
24389 /* Override any gcc2 internal prototype to avoid an error.  */
24390 #ifdef __cplusplus
24391 extern "C"
24392 {
24393 #endif
24394 /* We use char because int might match the return type of a gcc2
24395    builtin and then its argument prototype would still apply.  */
24396 char cthread_fork ();
24397 /* The GNU C library defines this for functions which it implements
24398     to always fail with ENOSYS.  Some functions are actually named
24399     something starting with __ and the normal name is an alias.  */
24400 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24401 choke me
24402 #else
24403 char (*f) () = cthread_fork;
24404 #endif
24405 #ifdef __cplusplus
24406 }
24407 #endif
24408
24409 int
24410 main ()
24411 {
24412 return f != cthread_fork;
24413   ;
24414   return 0;
24415 }
24416 _ACEOF
24417 rm -f conftest.$ac_objext conftest$ac_exeext
24418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24419   (eval $ac_link) 2>conftest.er1
24420   ac_status=$?
24421   grep -v '^ *+' conftest.er1 >conftest.err
24422   rm -f conftest.er1
24423   cat conftest.err >&5
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); } &&
24426          { ac_try='test -z "$ac_c_werror_flag"
24427                          || test ! -s conftest.err'
24428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24429   (eval $ac_try) 2>&5
24430   ac_status=$?
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); }; } &&
24433          { ac_try='test -s conftest$ac_exeext'
24434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435   (eval $ac_try) 2>&5
24436   ac_status=$?
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); }; }; then
24439   ac_cv_func_cthread_fork=yes
24440 else
24441   echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444 ac_cv_func_cthread_fork=no
24445 fi
24446 rm -f conftest.err conftest.$ac_objext \
24447       conftest$ac_exeext conftest.$ac_ext
24448 fi
24449 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24450 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24451 if test $ac_cv_func_cthread_fork = yes; then
24452   ol_link_threads=yes
24453 fi
24454
24455
24456                 if test $ol_link_threads = no ; then
24457                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24458 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24459 if test "${ol_cv_cthread_all_load+set}" = set; then
24460   echo $ECHO_N "(cached) $ECHO_C" >&6
24461 else
24462
24463                                                                 save_LIBS="$LIBS"
24464                                 LIBS="-all_load $LIBS"
24465                                 cat >conftest.$ac_ext <<_ACEOF
24466 /* confdefs.h.  */
24467 _ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h.  */
24471 #include <mach/cthreads.h>
24472 int
24473 main ()
24474 {
24475
24476                                         cthread_fork((void *)0, (void *)0);
24477
24478   ;
24479   return 0;
24480 }
24481 _ACEOF
24482 rm -f conftest.$ac_objext conftest$ac_exeext
24483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24484   (eval $ac_link) 2>conftest.er1
24485   ac_status=$?
24486   grep -v '^ *+' conftest.er1 >conftest.err
24487   rm -f conftest.er1
24488   cat conftest.err >&5
24489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490   (exit $ac_status); } &&
24491          { ac_try='test -z "$ac_c_werror_flag"
24492                          || test ! -s conftest.err'
24493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494   (eval $ac_try) 2>&5
24495   ac_status=$?
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); }; } &&
24498          { ac_try='test -s conftest$ac_exeext'
24499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500   (eval $ac_try) 2>&5
24501   ac_status=$?
24502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503   (exit $ac_status); }; }; then
24504   ol_cv_cthread_all_load=yes
24505 else
24506   echo "$as_me: failed program was:" >&5
24507 sed 's/^/| /' conftest.$ac_ext >&5
24508
24509 ol_cv_cthread_all_load=no
24510 fi
24511 rm -f conftest.err conftest.$ac_objext \
24512       conftest$ac_exeext conftest.$ac_ext
24513                                                                 LIBS="$save_LIBS"
24514
24515 fi
24516 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24517 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24518
24519                         if test $ol_cv_cthread_all_load = yes ; then
24520                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24521                                 ol_link_threads=mach
24522                                 ol_with_threads=found
24523                         fi
24524                 fi
24525
24526         elif test $ac_cv_header_cthreads_h = yes ; then
24527
24528                 ol_with_threads=found
24529
24530                                 save_LIBS="$LIBS"
24531                 LIBS="$LIBS -lthreads"
24532                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24533 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24534 if test "${ac_cv_func_cthread_fork+set}" = set; then
24535   echo $ECHO_N "(cached) $ECHO_C" >&6
24536 else
24537   cat >conftest.$ac_ext <<_ACEOF
24538 /* confdefs.h.  */
24539 _ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h.  */
24543 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24545 #define cthread_fork innocuous_cthread_fork
24546
24547 /* System header to define __stub macros and hopefully few prototypes,
24548     which can conflict with char cthread_fork (); below.
24549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24550     <limits.h> exists even on freestanding compilers.  */
24551
24552 #ifdef __STDC__
24553 # include <limits.h>
24554 #else
24555 # include <assert.h>
24556 #endif
24557
24558 #undef cthread_fork
24559
24560 /* Override any gcc2 internal prototype to avoid an error.  */
24561 #ifdef __cplusplus
24562 extern "C"
24563 {
24564 #endif
24565 /* We use char because int might match the return type of a gcc2
24566    builtin and then its argument prototype would still apply.  */
24567 char cthread_fork ();
24568 /* The GNU C library defines this for functions which it implements
24569     to always fail with ENOSYS.  Some functions are actually named
24570     something starting with __ and the normal name is an alias.  */
24571 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24572 choke me
24573 #else
24574 char (*f) () = cthread_fork;
24575 #endif
24576 #ifdef __cplusplus
24577 }
24578 #endif
24579
24580 int
24581 main ()
24582 {
24583 return f != cthread_fork;
24584   ;
24585   return 0;
24586 }
24587 _ACEOF
24588 rm -f conftest.$ac_objext conftest$ac_exeext
24589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24590   (eval $ac_link) 2>conftest.er1
24591   ac_status=$?
24592   grep -v '^ *+' conftest.er1 >conftest.err
24593   rm -f conftest.er1
24594   cat conftest.err >&5
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); } &&
24597          { ac_try='test -z "$ac_c_werror_flag"
24598                          || test ! -s conftest.err'
24599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600   (eval $ac_try) 2>&5
24601   ac_status=$?
24602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603   (exit $ac_status); }; } &&
24604          { ac_try='test -s conftest$ac_exeext'
24605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606   (eval $ac_try) 2>&5
24607   ac_status=$?
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); }; }; then
24610   ac_cv_func_cthread_fork=yes
24611 else
24612   echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615 ac_cv_func_cthread_fork=no
24616 fi
24617 rm -f conftest.err conftest.$ac_objext \
24618       conftest$ac_exeext conftest.$ac_ext
24619 fi
24620 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24621 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24622 if test $ac_cv_func_cthread_fork = yes; then
24623   ol_link_threads=yes
24624 fi
24625
24626                 LIBS="$save_LIBS"
24627
24628                 if test $ol_link_threads = yes ; then
24629                         LTHREAD_LIBS="-lthreads"
24630                         ol_link_threads=mach
24631                         ol_with_threads=found
24632                 else
24633                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24634 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24635    { (exit 1); exit 1; }; }
24636                 fi
24637
24638         elif test $ol_with_threads = mach ; then
24639                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24640 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24641    { (exit 1); exit 1; }; }
24642         fi
24643
24644         if test $ol_link_threads = mach ; then
24645
24646 cat >>confdefs.h <<\_ACEOF
24647 #define HAVE_MACH_CTHREADS 1
24648 _ACEOF
24649
24650         elif test $ol_with_threads = found ; then
24651                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24652 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24653    { (exit 1); exit 1; }; }
24654         fi
24655         ;;
24656 esac
24657
24658 case $ol_with_threads in auto | yes | pth)
24659
24660
24661 for ac_header in pth.h
24662 do
24663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24665   echo "$as_me:$LINENO: checking for $ac_header" >&5
24666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24668   echo $ECHO_N "(cached) $ECHO_C" >&6
24669 fi
24670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24672 else
24673   # Is the header compilable?
24674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24676 cat >conftest.$ac_ext <<_ACEOF
24677 /* confdefs.h.  */
24678 _ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h.  */
24682 $ac_includes_default
24683 #include <$ac_header>
24684 _ACEOF
24685 rm -f conftest.$ac_objext
24686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24687   (eval $ac_compile) 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } &&
24694          { ac_try='test -z "$ac_c_werror_flag"
24695                          || test ! -s conftest.err'
24696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24697   (eval $ac_try) 2>&5
24698   ac_status=$?
24699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700   (exit $ac_status); }; } &&
24701          { ac_try='test -s conftest.$ac_objext'
24702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24703   (eval $ac_try) 2>&5
24704   ac_status=$?
24705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706   (exit $ac_status); }; }; then
24707   ac_header_compiler=yes
24708 else
24709   echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24711
24712 ac_header_compiler=no
24713 fi
24714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24716 echo "${ECHO_T}$ac_header_compiler" >&6
24717
24718 # Is the header present?
24719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24721 cat >conftest.$ac_ext <<_ACEOF
24722 /* confdefs.h.  */
24723 _ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h.  */
24727 #include <$ac_header>
24728 _ACEOF
24729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24730   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24731   ac_status=$?
24732   grep -v '^ *+' conftest.er1 >conftest.err
24733   rm -f conftest.er1
24734   cat conftest.err >&5
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); } >/dev/null; then
24737   if test -s conftest.err; then
24738     ac_cpp_err=$ac_c_preproc_warn_flag
24739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24740   else
24741     ac_cpp_err=
24742   fi
24743 else
24744   ac_cpp_err=yes
24745 fi
24746 if test -z "$ac_cpp_err"; then
24747   ac_header_preproc=yes
24748 else
24749   echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24751
24752   ac_header_preproc=no
24753 fi
24754 rm -f conftest.err conftest.$ac_ext
24755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24756 echo "${ECHO_T}$ac_header_preproc" >&6
24757
24758 # So?  What about this header?
24759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24760   yes:no: )
24761     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24765     ac_header_preproc=yes
24766     ;;
24767   no:yes:* )
24768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24770     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24771 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24772     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24774     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24775 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24778     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24780     (
24781       cat <<\_ASBOX
24782 ## --------------------------------------------- ##
24783 ## Report this to <http://www.openldap.org/its/> ##
24784 ## --------------------------------------------- ##
24785 _ASBOX
24786     ) |
24787       sed "s/^/$as_me: WARNING:     /" >&2
24788     ;;
24789 esac
24790 echo "$as_me:$LINENO: checking for $ac_header" >&5
24791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24793   echo $ECHO_N "(cached) $ECHO_C" >&6
24794 else
24795   eval "$as_ac_Header=\$ac_header_preproc"
24796 fi
24797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24799
24800 fi
24801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24802   cat >>confdefs.h <<_ACEOF
24803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24804 _ACEOF
24805
24806 fi
24807
24808 done
24809
24810
24811         if test $ac_cv_header_pth_h = yes ; then
24812                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
24813 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
24814 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
24815   echo $ECHO_N "(cached) $ECHO_C" >&6
24816 else
24817   ac_check_lib_save_LIBS=$LIBS
24818 LIBS="-lpth  $LIBS"
24819 cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h.  */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h.  */
24825
24826 /* Override any gcc2 internal prototype to avoid an error.  */
24827 #ifdef __cplusplus
24828 extern "C"
24829 #endif
24830 /* We use char because int might match the return type of a gcc2
24831    builtin and then its argument prototype would still apply.  */
24832 char pth_version ();
24833 int
24834 main ()
24835 {
24836 pth_version ();
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext conftest$ac_exeext
24842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24843   (eval $ac_link) 2>conftest.er1
24844   ac_status=$?
24845   grep -v '^ *+' conftest.er1 >conftest.err
24846   rm -f conftest.er1
24847   cat conftest.err >&5
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); } &&
24850          { ac_try='test -z "$ac_c_werror_flag"
24851                          || test ! -s conftest.err'
24852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); }; } &&
24857          { ac_try='test -s conftest$ac_exeext'
24858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859   (eval $ac_try) 2>&5
24860   ac_status=$?
24861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862   (exit $ac_status); }; }; then
24863   ac_cv_lib_pth_pth_version=yes
24864 else
24865   echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868 ac_cv_lib_pth_pth_version=no
24869 fi
24870 rm -f conftest.err conftest.$ac_objext \
24871       conftest$ac_exeext conftest.$ac_ext
24872 LIBS=$ac_check_lib_save_LIBS
24873 fi
24874 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
24875 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
24876 if test $ac_cv_lib_pth_pth_version = yes; then
24877   have_pth=yes
24878 else
24879   have_pth=no
24880 fi
24881
24882
24883                 if test $have_pth = yes ; then
24884
24885 cat >>confdefs.h <<\_ACEOF
24886 #define HAVE_GNU_PTH 1
24887 _ACEOF
24888
24889                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
24890                         ol_link_threads=pth
24891                         ol_with_threads=found
24892
24893                         if test $ol_with_yielding_select = auto ; then
24894                                 ol_with_yielding_select=yes
24895                         fi
24896                 fi
24897         fi
24898         ;;
24899 esac
24900
24901 case $ol_with_threads in auto | yes | lwp)
24902
24903
24904
24905 for ac_header in thread.h synch.h
24906 do
24907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24909   echo "$as_me:$LINENO: checking for $ac_header" >&5
24910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24912   echo $ECHO_N "(cached) $ECHO_C" >&6
24913 fi
24914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24916 else
24917   # Is the header compilable?
24918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24920 cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926 $ac_includes_default
24927 #include <$ac_header>
24928 _ACEOF
24929 rm -f conftest.$ac_objext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24931   (eval $ac_compile) 2>conftest.er1
24932   ac_status=$?
24933   grep -v '^ *+' conftest.er1 >conftest.err
24934   rm -f conftest.er1
24935   cat conftest.err >&5
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); } &&
24938          { ac_try='test -z "$ac_c_werror_flag"
24939                          || test ! -s conftest.err'
24940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941   (eval $ac_try) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; } &&
24945          { ac_try='test -s conftest.$ac_objext'
24946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947   (eval $ac_try) 2>&5
24948   ac_status=$?
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); }; }; then
24951   ac_header_compiler=yes
24952 else
24953   echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24955
24956 ac_header_compiler=no
24957 fi
24958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24960 echo "${ECHO_T}$ac_header_compiler" >&6
24961
24962 # Is the header present?
24963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24965 cat >conftest.$ac_ext <<_ACEOF
24966 /* confdefs.h.  */
24967 _ACEOF
24968 cat confdefs.h >>conftest.$ac_ext
24969 cat >>conftest.$ac_ext <<_ACEOF
24970 /* end confdefs.h.  */
24971 #include <$ac_header>
24972 _ACEOF
24973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24975   ac_status=$?
24976   grep -v '^ *+' conftest.er1 >conftest.err
24977   rm -f conftest.er1
24978   cat conftest.err >&5
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); } >/dev/null; then
24981   if test -s conftest.err; then
24982     ac_cpp_err=$ac_c_preproc_warn_flag
24983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24984   else
24985     ac_cpp_err=
24986   fi
24987 else
24988   ac_cpp_err=yes
24989 fi
24990 if test -z "$ac_cpp_err"; then
24991   ac_header_preproc=yes
24992 else
24993   echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24995
24996   ac_header_preproc=no
24997 fi
24998 rm -f conftest.err conftest.$ac_ext
24999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25000 echo "${ECHO_T}$ac_header_preproc" >&6
25001
25002 # So?  What about this header?
25003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25004   yes:no: )
25005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25009     ac_header_preproc=yes
25010     ;;
25011   no:yes:* )
25012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25024     (
25025       cat <<\_ASBOX
25026 ## --------------------------------------------- ##
25027 ## Report this to <http://www.openldap.org/its/> ##
25028 ## --------------------------------------------- ##
25029 _ASBOX
25030     ) |
25031       sed "s/^/$as_me: WARNING:     /" >&2
25032     ;;
25033 esac
25034 echo "$as_me:$LINENO: checking for $ac_header" >&5
25035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25037   echo $ECHO_N "(cached) $ECHO_C" >&6
25038 else
25039   eval "$as_ac_Header=\$ac_header_preproc"
25040 fi
25041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25043
25044 fi
25045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25046   cat >>confdefs.h <<_ACEOF
25047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25048 _ACEOF
25049
25050 fi
25051
25052 done
25053
25054         if test $ac_cv_header_thread_h = yes &&
25055            test $ac_cv_header_synch_h = yes ; then
25056                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25057 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25058 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25059   echo $ECHO_N "(cached) $ECHO_C" >&6
25060 else
25061   ac_check_lib_save_LIBS=$LIBS
25062 LIBS="-lthread  $LIBS"
25063 cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h.  */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h.  */
25069
25070 /* Override any gcc2 internal prototype to avoid an error.  */
25071 #ifdef __cplusplus
25072 extern "C"
25073 #endif
25074 /* We use char because int might match the return type of a gcc2
25075    builtin and then its argument prototype would still apply.  */
25076 char thr_create ();
25077 int
25078 main ()
25079 {
25080 thr_create ();
25081   ;
25082   return 0;
25083 }
25084 _ACEOF
25085 rm -f conftest.$ac_objext conftest$ac_exeext
25086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25087   (eval $ac_link) 2>conftest.er1
25088   ac_status=$?
25089   grep -v '^ *+' conftest.er1 >conftest.err
25090   rm -f conftest.er1
25091   cat conftest.err >&5
25092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093   (exit $ac_status); } &&
25094          { ac_try='test -z "$ac_c_werror_flag"
25095                          || test ! -s conftest.err'
25096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097   (eval $ac_try) 2>&5
25098   ac_status=$?
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); }; } &&
25101          { ac_try='test -s conftest$ac_exeext'
25102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103   (eval $ac_try) 2>&5
25104   ac_status=$?
25105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106   (exit $ac_status); }; }; then
25107   ac_cv_lib_thread_thr_create=yes
25108 else
25109   echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25111
25112 ac_cv_lib_thread_thr_create=no
25113 fi
25114 rm -f conftest.err conftest.$ac_objext \
25115       conftest$ac_exeext conftest.$ac_ext
25116 LIBS=$ac_check_lib_save_LIBS
25117 fi
25118 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25119 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25120 if test $ac_cv_lib_thread_thr_create = yes; then
25121   have_thr=yes
25122 else
25123   have_thr=no
25124 fi
25125
25126
25127                 if test $have_thr = yes ; then
25128
25129 cat >>confdefs.h <<\_ACEOF
25130 #define HAVE_THR 1
25131 _ACEOF
25132
25133                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25134                         ol_link_threads=thr
25135
25136                         if test $ol_with_yielding_select = auto ; then
25137                                 ol_with_yielding_select=yes
25138                         fi
25139
25140
25141
25142 for ac_func in \
25143                                 thr_setconcurrency \
25144                                 thr_getconcurrency \
25145
25146 do
25147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25148 echo "$as_me:$LINENO: checking for $ac_func" >&5
25149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25150 if eval "test \"\${$as_ac_var+set}\" = set"; then
25151   echo $ECHO_N "(cached) $ECHO_C" >&6
25152 else
25153   cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h.  */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h.  */
25159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25161 #define $ac_func innocuous_$ac_func
25162
25163 /* System header to define __stub macros and hopefully few prototypes,
25164     which can conflict with char $ac_func (); below.
25165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25166     <limits.h> exists even on freestanding compilers.  */
25167
25168 #ifdef __STDC__
25169 # include <limits.h>
25170 #else
25171 # include <assert.h>
25172 #endif
25173
25174 #undef $ac_func
25175
25176 /* Override any gcc2 internal prototype to avoid an error.  */
25177 #ifdef __cplusplus
25178 extern "C"
25179 {
25180 #endif
25181 /* We use char because int might match the return type of a gcc2
25182    builtin and then its argument prototype would still apply.  */
25183 char $ac_func ();
25184 /* The GNU C library defines this for functions which it implements
25185     to always fail with ENOSYS.  Some functions are actually named
25186     something starting with __ and the normal name is an alias.  */
25187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25188 choke me
25189 #else
25190 char (*f) () = $ac_func;
25191 #endif
25192 #ifdef __cplusplus
25193 }
25194 #endif
25195
25196 int
25197 main ()
25198 {
25199 return f != $ac_func;
25200   ;
25201   return 0;
25202 }
25203 _ACEOF
25204 rm -f conftest.$ac_objext conftest$ac_exeext
25205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25206   (eval $ac_link) 2>conftest.er1
25207   ac_status=$?
25208   grep -v '^ *+' conftest.er1 >conftest.err
25209   rm -f conftest.er1
25210   cat conftest.err >&5
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); } &&
25213          { ac_try='test -z "$ac_c_werror_flag"
25214                          || test ! -s conftest.err'
25215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216   (eval $ac_try) 2>&5
25217   ac_status=$?
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); }; } &&
25220          { ac_try='test -s conftest$ac_exeext'
25221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222   (eval $ac_try) 2>&5
25223   ac_status=$?
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); }; }; then
25226   eval "$as_ac_var=yes"
25227 else
25228   echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25230
25231 eval "$as_ac_var=no"
25232 fi
25233 rm -f conftest.err conftest.$ac_objext \
25234       conftest$ac_exeext conftest.$ac_ext
25235 fi
25236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25238 if test `eval echo '${'$as_ac_var'}'` = yes; then
25239   cat >>confdefs.h <<_ACEOF
25240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25241 _ACEOF
25242
25243 fi
25244 done
25245
25246                 fi
25247         fi
25248
25249
25250 for ac_header in lwp/lwp.h
25251 do
25252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25254   echo "$as_me:$LINENO: checking for $ac_header" >&5
25255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25257   echo $ECHO_N "(cached) $ECHO_C" >&6
25258 fi
25259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25261 else
25262   # Is the header compilable?
25263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25265 cat >conftest.$ac_ext <<_ACEOF
25266 /* confdefs.h.  */
25267 _ACEOF
25268 cat confdefs.h >>conftest.$ac_ext
25269 cat >>conftest.$ac_ext <<_ACEOF
25270 /* end confdefs.h.  */
25271 $ac_includes_default
25272 #include <$ac_header>
25273 _ACEOF
25274 rm -f conftest.$ac_objext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25276   (eval $ac_compile) 2>conftest.er1
25277   ac_status=$?
25278   grep -v '^ *+' conftest.er1 >conftest.err
25279   rm -f conftest.er1
25280   cat conftest.err >&5
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); } &&
25283          { ac_try='test -z "$ac_c_werror_flag"
25284                          || test ! -s conftest.err'
25285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286   (eval $ac_try) 2>&5
25287   ac_status=$?
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); }; } &&
25290          { ac_try='test -s conftest.$ac_objext'
25291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292   (eval $ac_try) 2>&5
25293   ac_status=$?
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); }; }; then
25296   ac_header_compiler=yes
25297 else
25298   echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25300
25301 ac_header_compiler=no
25302 fi
25303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25305 echo "${ECHO_T}$ac_header_compiler" >&6
25306
25307 # Is the header present?
25308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25310 cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h.  */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h.  */
25316 #include <$ac_header>
25317 _ACEOF
25318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25320   ac_status=$?
25321   grep -v '^ *+' conftest.er1 >conftest.err
25322   rm -f conftest.er1
25323   cat conftest.err >&5
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); } >/dev/null; then
25326   if test -s conftest.err; then
25327     ac_cpp_err=$ac_c_preproc_warn_flag
25328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25329   else
25330     ac_cpp_err=
25331   fi
25332 else
25333   ac_cpp_err=yes
25334 fi
25335 if test -z "$ac_cpp_err"; then
25336   ac_header_preproc=yes
25337 else
25338   echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341   ac_header_preproc=no
25342 fi
25343 rm -f conftest.err conftest.$ac_ext
25344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25345 echo "${ECHO_T}$ac_header_preproc" >&6
25346
25347 # So?  What about this header?
25348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25349   yes:no: )
25350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25354     ac_header_preproc=yes
25355     ;;
25356   no:yes:* )
25357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25369     (
25370       cat <<\_ASBOX
25371 ## --------------------------------------------- ##
25372 ## Report this to <http://www.openldap.org/its/> ##
25373 ## --------------------------------------------- ##
25374 _ASBOX
25375     ) |
25376       sed "s/^/$as_me: WARNING:     /" >&2
25377     ;;
25378 esac
25379 echo "$as_me:$LINENO: checking for $ac_header" >&5
25380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25382   echo $ECHO_N "(cached) $ECHO_C" >&6
25383 else
25384   eval "$as_ac_Header=\$ac_header_preproc"
25385 fi
25386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25388
25389 fi
25390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25391   cat >>confdefs.h <<_ACEOF
25392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25393 _ACEOF
25394
25395 fi
25396
25397 done
25398
25399         if test $ac_cv_header_lwp_lwp_h = yes ; then
25400                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25401 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25402 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25403   echo $ECHO_N "(cached) $ECHO_C" >&6
25404 else
25405   ac_check_lib_save_LIBS=$LIBS
25406 LIBS="-llwp  $LIBS"
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h.  */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h.  */
25413
25414 /* Override any gcc2 internal prototype to avoid an error.  */
25415 #ifdef __cplusplus
25416 extern "C"
25417 #endif
25418 /* We use char because int might match the return type of a gcc2
25419    builtin and then its argument prototype would still apply.  */
25420 char lwp_create ();
25421 int
25422 main ()
25423 {
25424 lwp_create ();
25425   ;
25426   return 0;
25427 }
25428 _ACEOF
25429 rm -f conftest.$ac_objext conftest$ac_exeext
25430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25431   (eval $ac_link) 2>conftest.er1
25432   ac_status=$?
25433   grep -v '^ *+' conftest.er1 >conftest.err
25434   rm -f conftest.er1
25435   cat conftest.err >&5
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); } &&
25438          { ac_try='test -z "$ac_c_werror_flag"
25439                          || test ! -s conftest.err'
25440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25441   (eval $ac_try) 2>&5
25442   ac_status=$?
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); }; } &&
25445          { ac_try='test -s conftest$ac_exeext'
25446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25447   (eval $ac_try) 2>&5
25448   ac_status=$?
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); }; }; then
25451   ac_cv_lib_lwp_lwp_create=yes
25452 else
25453   echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25455
25456 ac_cv_lib_lwp_lwp_create=no
25457 fi
25458 rm -f conftest.err conftest.$ac_objext \
25459       conftest$ac_exeext conftest.$ac_ext
25460 LIBS=$ac_check_lib_save_LIBS
25461 fi
25462 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25463 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25464 if test $ac_cv_lib_lwp_lwp_create = yes; then
25465   have_lwp=yes
25466 else
25467   have_lwp=no
25468 fi
25469
25470
25471                 if test $have_lwp = yes ; then
25472
25473 cat >>confdefs.h <<\_ACEOF
25474 #define HAVE_LWP 1
25475 _ACEOF
25476
25477                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25478                         ol_link_threads=lwp
25479
25480                         if test $ol_with_yielding_select = auto ; then
25481                                 ol_with_yielding_select=no
25482                         fi
25483                 fi
25484         fi
25485         ;;
25486 esac
25487
25488 if test $ol_with_yielding_select = yes ; then
25489
25490 cat >>confdefs.h <<\_ACEOF
25491 #define HAVE_YIELDING_SELECT 1
25492 _ACEOF
25493
25494 fi
25495
25496 if test $ol_with_threads = manual ; then
25497                 ol_link_threads=yes
25498
25499         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25500 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25501
25502
25503
25504 for ac_header in pthread.h sched.h
25505 do
25506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25508   echo "$as_me:$LINENO: checking for $ac_header" >&5
25509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25511   echo $ECHO_N "(cached) $ECHO_C" >&6
25512 fi
25513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25515 else
25516   # Is the header compilable?
25517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25519 cat >conftest.$ac_ext <<_ACEOF
25520 /* confdefs.h.  */
25521 _ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h.  */
25525 $ac_includes_default
25526 #include <$ac_header>
25527 _ACEOF
25528 rm -f conftest.$ac_objext
25529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25530   (eval $ac_compile) 2>conftest.er1
25531   ac_status=$?
25532   grep -v '^ *+' conftest.er1 >conftest.err
25533   rm -f conftest.er1
25534   cat conftest.err >&5
25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536   (exit $ac_status); } &&
25537          { ac_try='test -z "$ac_c_werror_flag"
25538                          || test ! -s conftest.err'
25539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540   (eval $ac_try) 2>&5
25541   ac_status=$?
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); }; } &&
25544          { ac_try='test -s conftest.$ac_objext'
25545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25546   (eval $ac_try) 2>&5
25547   ac_status=$?
25548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549   (exit $ac_status); }; }; then
25550   ac_header_compiler=yes
25551 else
25552   echo "$as_me: failed program was:" >&5
25553 sed 's/^/| /' conftest.$ac_ext >&5
25554
25555 ac_header_compiler=no
25556 fi
25557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25559 echo "${ECHO_T}$ac_header_compiler" >&6
25560
25561 # Is the header present?
25562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25564 cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h.  */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h.  */
25570 #include <$ac_header>
25571 _ACEOF
25572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25574   ac_status=$?
25575   grep -v '^ *+' conftest.er1 >conftest.err
25576   rm -f conftest.er1
25577   cat conftest.err >&5
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); } >/dev/null; then
25580   if test -s conftest.err; then
25581     ac_cpp_err=$ac_c_preproc_warn_flag
25582     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25583   else
25584     ac_cpp_err=
25585   fi
25586 else
25587   ac_cpp_err=yes
25588 fi
25589 if test -z "$ac_cpp_err"; then
25590   ac_header_preproc=yes
25591 else
25592   echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25594
25595   ac_header_preproc=no
25596 fi
25597 rm -f conftest.err conftest.$ac_ext
25598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25599 echo "${ECHO_T}$ac_header_preproc" >&6
25600
25601 # So?  What about this header?
25602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25603   yes:no: )
25604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25608     ac_header_preproc=yes
25609     ;;
25610   no:yes:* )
25611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25613     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25614 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25615     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25617     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25618 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25621     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25623     (
25624       cat <<\_ASBOX
25625 ## --------------------------------------------- ##
25626 ## Report this to <http://www.openldap.org/its/> ##
25627 ## --------------------------------------------- ##
25628 _ASBOX
25629     ) |
25630       sed "s/^/$as_me: WARNING:     /" >&2
25631     ;;
25632 esac
25633 echo "$as_me:$LINENO: checking for $ac_header" >&5
25634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25636   echo $ECHO_N "(cached) $ECHO_C" >&6
25637 else
25638   eval "$as_ac_Header=\$ac_header_preproc"
25639 fi
25640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25642
25643 fi
25644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25645   cat >>confdefs.h <<_ACEOF
25646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25647 _ACEOF
25648
25649 fi
25650
25651 done
25652
25653
25654
25655 for ac_func in sched_yield pthread_yield
25656 do
25657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25658 echo "$as_me:$LINENO: checking for $ac_func" >&5
25659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25660 if eval "test \"\${$as_ac_var+set}\" = set"; then
25661   echo $ECHO_N "(cached) $ECHO_C" >&6
25662 else
25663   cat >conftest.$ac_ext <<_ACEOF
25664 /* confdefs.h.  */
25665 _ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h.  */
25669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25671 #define $ac_func innocuous_$ac_func
25672
25673 /* System header to define __stub macros and hopefully few prototypes,
25674     which can conflict with char $ac_func (); below.
25675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25676     <limits.h> exists even on freestanding compilers.  */
25677
25678 #ifdef __STDC__
25679 # include <limits.h>
25680 #else
25681 # include <assert.h>
25682 #endif
25683
25684 #undef $ac_func
25685
25686 /* Override any gcc2 internal prototype to avoid an error.  */
25687 #ifdef __cplusplus
25688 extern "C"
25689 {
25690 #endif
25691 /* We use char because int might match the return type of a gcc2
25692    builtin and then its argument prototype would still apply.  */
25693 char $ac_func ();
25694 /* The GNU C library defines this for functions which it implements
25695     to always fail with ENOSYS.  Some functions are actually named
25696     something starting with __ and the normal name is an alias.  */
25697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25698 choke me
25699 #else
25700 char (*f) () = $ac_func;
25701 #endif
25702 #ifdef __cplusplus
25703 }
25704 #endif
25705
25706 int
25707 main ()
25708 {
25709 return f != $ac_func;
25710   ;
25711   return 0;
25712 }
25713 _ACEOF
25714 rm -f conftest.$ac_objext conftest$ac_exeext
25715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25716   (eval $ac_link) 2>conftest.er1
25717   ac_status=$?
25718   grep -v '^ *+' conftest.er1 >conftest.err
25719   rm -f conftest.er1
25720   cat conftest.err >&5
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); } &&
25723          { ac_try='test -z "$ac_c_werror_flag"
25724                          || test ! -s conftest.err'
25725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726   (eval $ac_try) 2>&5
25727   ac_status=$?
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); }; } &&
25730          { ac_try='test -s conftest$ac_exeext'
25731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25732   (eval $ac_try) 2>&5
25733   ac_status=$?
25734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); }; }; then
25736   eval "$as_ac_var=yes"
25737 else
25738   echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25740
25741 eval "$as_ac_var=no"
25742 fi
25743 rm -f conftest.err conftest.$ac_objext \
25744       conftest$ac_exeext conftest.$ac_ext
25745 fi
25746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25748 if test `eval echo '${'$as_ac_var'}'` = yes; then
25749   cat >>confdefs.h <<_ACEOF
25750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25751 _ACEOF
25752
25753 fi
25754 done
25755
25756
25757         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25758 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25759 if test "${ol_cv_header_linux_threads+set}" = set; then
25760   echo $ECHO_N "(cached) $ECHO_C" >&6
25761 else
25762   cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h.  */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h.  */
25768 #include <pthread.h>
25769 _ACEOF
25770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25771   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
25772   ol_cv_header_linux_threads=yes
25773 else
25774   ol_cv_header_linux_threads=no
25775 fi
25776 rm -f conftest*
25777
25778
25779 fi
25780 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
25781 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
25782         if test $ol_cv_header_linux_threads = yes; then
25783
25784 cat >>confdefs.h <<\_ACEOF
25785 #define HAVE_LINUX_THREADS 1
25786 _ACEOF
25787
25788         fi
25789
25790
25791
25792 for ac_header in mach/cthreads.h
25793 do
25794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25796   echo "$as_me:$LINENO: checking for $ac_header" >&5
25797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25799   echo $ECHO_N "(cached) $ECHO_C" >&6
25800 fi
25801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25803 else
25804   # Is the header compilable?
25805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813 $ac_includes_default
25814 #include <$ac_header>
25815 _ACEOF
25816 rm -f conftest.$ac_objext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818   (eval $ac_compile) 2>conftest.er1
25819   ac_status=$?
25820   grep -v '^ *+' conftest.er1 >conftest.err
25821   rm -f conftest.er1
25822   cat conftest.err >&5
25823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824   (exit $ac_status); } &&
25825          { ac_try='test -z "$ac_c_werror_flag"
25826                          || test ! -s conftest.err'
25827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828   (eval $ac_try) 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); }; } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; }; then
25838   ac_header_compiler=yes
25839 else
25840   echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_header_compiler=no
25844 fi
25845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25847 echo "${ECHO_T}$ac_header_compiler" >&6
25848
25849 # Is the header present?
25850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25852 cat >conftest.$ac_ext <<_ACEOF
25853 /* confdefs.h.  */
25854 _ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h.  */
25858 #include <$ac_header>
25859 _ACEOF
25860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
25865   cat conftest.err >&5
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); } >/dev/null; then
25868   if test -s conftest.err; then
25869     ac_cpp_err=$ac_c_preproc_warn_flag
25870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25871   else
25872     ac_cpp_err=
25873   fi
25874 else
25875   ac_cpp_err=yes
25876 fi
25877 if test -z "$ac_cpp_err"; then
25878   ac_header_preproc=yes
25879 else
25880   echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25882
25883   ac_header_preproc=no
25884 fi
25885 rm -f conftest.err conftest.$ac_ext
25886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25887 echo "${ECHO_T}$ac_header_preproc" >&6
25888
25889 # So?  What about this header?
25890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25891   yes:no: )
25892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25896     ac_header_preproc=yes
25897     ;;
25898   no:yes:* )
25899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25911     (
25912       cat <<\_ASBOX
25913 ## --------------------------------------------- ##
25914 ## Report this to <http://www.openldap.org/its/> ##
25915 ## --------------------------------------------- ##
25916 _ASBOX
25917     ) |
25918       sed "s/^/$as_me: WARNING:     /" >&2
25919     ;;
25920 esac
25921 echo "$as_me:$LINENO: checking for $ac_header" >&5
25922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25924   echo $ECHO_N "(cached) $ECHO_C" >&6
25925 else
25926   eval "$as_ac_Header=\$ac_header_preproc"
25927 fi
25928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25930
25931 fi
25932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25933   cat >>confdefs.h <<_ACEOF
25934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25935 _ACEOF
25936
25937 fi
25938
25939 done
25940
25941
25942 for ac_header in lwp/lwp.h
25943 do
25944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25946   echo "$as_me:$LINENO: checking for $ac_header" >&5
25947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25949   echo $ECHO_N "(cached) $ECHO_C" >&6
25950 fi
25951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25953 else
25954   # Is the header compilable?
25955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25957 cat >conftest.$ac_ext <<_ACEOF
25958 /* confdefs.h.  */
25959 _ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h.  */
25963 $ac_includes_default
25964 #include <$ac_header>
25965 _ACEOF
25966 rm -f conftest.$ac_objext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25968   (eval $ac_compile) 2>conftest.er1
25969   ac_status=$?
25970   grep -v '^ *+' conftest.er1 >conftest.err
25971   rm -f conftest.er1
25972   cat conftest.err >&5
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); } &&
25975          { ac_try='test -z "$ac_c_werror_flag"
25976                          || test ! -s conftest.err'
25977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978   (eval $ac_try) 2>&5
25979   ac_status=$?
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); }; } &&
25982          { ac_try='test -s conftest.$ac_objext'
25983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25984   (eval $ac_try) 2>&5
25985   ac_status=$?
25986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987   (exit $ac_status); }; }; then
25988   ac_header_compiler=yes
25989 else
25990   echo "$as_me: failed program was:" >&5
25991 sed 's/^/| /' conftest.$ac_ext >&5
25992
25993 ac_header_compiler=no
25994 fi
25995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25997 echo "${ECHO_T}$ac_header_compiler" >&6
25998
25999 # Is the header present?
26000 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26002 cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h.  */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h.  */
26008 #include <$ac_header>
26009 _ACEOF
26010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26012   ac_status=$?
26013   grep -v '^ *+' conftest.er1 >conftest.err
26014   rm -f conftest.er1
26015   cat conftest.err >&5
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); } >/dev/null; then
26018   if test -s conftest.err; then
26019     ac_cpp_err=$ac_c_preproc_warn_flag
26020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26021   else
26022     ac_cpp_err=
26023   fi
26024 else
26025   ac_cpp_err=yes
26026 fi
26027 if test -z "$ac_cpp_err"; then
26028   ac_header_preproc=yes
26029 else
26030   echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26032
26033   ac_header_preproc=no
26034 fi
26035 rm -f conftest.err conftest.$ac_ext
26036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26037 echo "${ECHO_T}$ac_header_preproc" >&6
26038
26039 # So?  What about this header?
26040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26041   yes:no: )
26042     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26046     ac_header_preproc=yes
26047     ;;
26048   no:yes:* )
26049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26051     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26052 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26053     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26055     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26056 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26059     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26061     (
26062       cat <<\_ASBOX
26063 ## --------------------------------------------- ##
26064 ## Report this to <http://www.openldap.org/its/> ##
26065 ## --------------------------------------------- ##
26066 _ASBOX
26067     ) |
26068       sed "s/^/$as_me: WARNING:     /" >&2
26069     ;;
26070 esac
26071 echo "$as_me:$LINENO: checking for $ac_header" >&5
26072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26074   echo $ECHO_N "(cached) $ECHO_C" >&6
26075 else
26076   eval "$as_ac_Header=\$ac_header_preproc"
26077 fi
26078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26080
26081 fi
26082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26083   cat >>confdefs.h <<_ACEOF
26084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26085 _ACEOF
26086
26087 fi
26088
26089 done
26090
26091
26092
26093 for ac_header in thread.h synch.h
26094 do
26095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26097   echo "$as_me:$LINENO: checking for $ac_header" >&5
26098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26100   echo $ECHO_N "(cached) $ECHO_C" >&6
26101 fi
26102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26104 else
26105   # Is the header compilable?
26106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26108 cat >conftest.$ac_ext <<_ACEOF
26109 /* confdefs.h.  */
26110 _ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h.  */
26114 $ac_includes_default
26115 #include <$ac_header>
26116 _ACEOF
26117 rm -f conftest.$ac_objext
26118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26119   (eval $ac_compile) 2>conftest.er1
26120   ac_status=$?
26121   grep -v '^ *+' conftest.er1 >conftest.err
26122   rm -f conftest.er1
26123   cat conftest.err >&5
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); } &&
26126          { ac_try='test -z "$ac_c_werror_flag"
26127                          || test ! -s conftest.err'
26128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26129   (eval $ac_try) 2>&5
26130   ac_status=$?
26131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132   (exit $ac_status); }; } &&
26133          { ac_try='test -s conftest.$ac_objext'
26134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135   (eval $ac_try) 2>&5
26136   ac_status=$?
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); }; }; then
26139   ac_header_compiler=yes
26140 else
26141   echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26143
26144 ac_header_compiler=no
26145 fi
26146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26148 echo "${ECHO_T}$ac_header_compiler" >&6
26149
26150 # Is the header present?
26151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26153 cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h.  */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h.  */
26159 #include <$ac_header>
26160 _ACEOF
26161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26163   ac_status=$?
26164   grep -v '^ *+' conftest.er1 >conftest.err
26165   rm -f conftest.er1
26166   cat conftest.err >&5
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); } >/dev/null; then
26169   if test -s conftest.err; then
26170     ac_cpp_err=$ac_c_preproc_warn_flag
26171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26172   else
26173     ac_cpp_err=
26174   fi
26175 else
26176   ac_cpp_err=yes
26177 fi
26178 if test -z "$ac_cpp_err"; then
26179   ac_header_preproc=yes
26180 else
26181   echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26183
26184   ac_header_preproc=no
26185 fi
26186 rm -f conftest.err conftest.$ac_ext
26187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26188 echo "${ECHO_T}$ac_header_preproc" >&6
26189
26190 # So?  What about this header?
26191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26192   yes:no: )
26193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26197     ac_header_preproc=yes
26198     ;;
26199   no:yes:* )
26200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26212     (
26213       cat <<\_ASBOX
26214 ## --------------------------------------------- ##
26215 ## Report this to <http://www.openldap.org/its/> ##
26216 ## --------------------------------------------- ##
26217 _ASBOX
26218     ) |
26219       sed "s/^/$as_me: WARNING:     /" >&2
26220     ;;
26221 esac
26222 echo "$as_me:$LINENO: checking for $ac_header" >&5
26223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26225   echo $ECHO_N "(cached) $ECHO_C" >&6
26226 else
26227   eval "$as_ac_Header=\$ac_header_preproc"
26228 fi
26229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26231
26232 fi
26233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26234   cat >>confdefs.h <<_ACEOF
26235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26236 _ACEOF
26237
26238 fi
26239
26240 done
26241
26242 fi
26243
26244 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26245                         cat >>confdefs.h <<\_ACEOF
26246 #define REENTRANT 1
26247 _ACEOF
26248
26249         cat >>confdefs.h <<\_ACEOF
26250 #define _REENTRANT 1
26251 _ACEOF
26252
26253         cat >>confdefs.h <<\_ACEOF
26254 #define THREAD_SAFE 1
26255 _ACEOF
26256
26257         cat >>confdefs.h <<\_ACEOF
26258 #define _THREAD_SAFE 1
26259 _ACEOF
26260
26261         cat >>confdefs.h <<\_ACEOF
26262 #define THREADSAFE 1
26263 _ACEOF
26264
26265         cat >>confdefs.h <<\_ACEOF
26266 #define _THREADSAFE 1
26267 _ACEOF
26268
26269         cat >>confdefs.h <<\_ACEOF
26270 #define _SGI_MP_SOURCE 1
26271 _ACEOF
26272
26273
26274                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26275 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26276 if test "${ol_cv_errno_thread_specific+set}" = set; then
26277   echo $ECHO_N "(cached) $ECHO_C" >&6
26278 else
26279
26280                 cat >conftest.$ac_ext <<_ACEOF
26281 /* confdefs.h.  */
26282 _ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h.  */
26286 #include <errno.h>
26287 int
26288 main ()
26289 {
26290 errno = 0;
26291   ;
26292   return 0;
26293 }
26294 _ACEOF
26295 rm -f conftest.$ac_objext conftest$ac_exeext
26296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26297   (eval $ac_link) 2>conftest.er1
26298   ac_status=$?
26299   grep -v '^ *+' conftest.er1 >conftest.err
26300   rm -f conftest.er1
26301   cat conftest.err >&5
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); } &&
26304          { ac_try='test -z "$ac_c_werror_flag"
26305                          || test ! -s conftest.err'
26306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307   (eval $ac_try) 2>&5
26308   ac_status=$?
26309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310   (exit $ac_status); }; } &&
26311          { ac_try='test -s conftest$ac_exeext'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; }; then
26317   ol_cv_errno_thread_specific=yes
26318 else
26319   echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322 ol_cv_errno_thread_specific=no
26323 fi
26324 rm -f conftest.err conftest.$ac_objext \
26325       conftest$ac_exeext conftest.$ac_ext
26326
26327 fi
26328 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26329 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26330
26331                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26332 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26333 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26334   echo $ECHO_N "(cached) $ECHO_C" >&6
26335 else
26336
26337                 cat >conftest.$ac_ext <<_ACEOF
26338 /* confdefs.h.  */
26339 _ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h.  */
26343 #include <netdb.h>
26344 int
26345 main ()
26346 {
26347 h_errno = 0;
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext conftest$ac_exeext
26353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26354   (eval $ac_link) 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } &&
26361          { ac_try='test -z "$ac_c_werror_flag"
26362                          || test ! -s conftest.err'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; } &&
26368          { ac_try='test -s conftest$ac_exeext'
26369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370   (eval $ac_try) 2>&5
26371   ac_status=$?
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); }; }; then
26374   ol_cv_h_errno_thread_specific=yes
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 ol_cv_h_errno_thread_specific=no
26380 fi
26381 rm -f conftest.err conftest.$ac_objext \
26382       conftest$ac_exeext conftest.$ac_ext
26383
26384 fi
26385 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26386 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26387
26388         if test $ol_cv_errno_thread_specific != yes ||
26389            test $ol_cv_h_errno_thread_specific != yes ; then
26390                 LIBS="$LTHREAD_LIBS $LIBS"
26391                 LTHREAD_LIBS=""
26392         fi
26393
26394 fi
26395
26396 if test $ol_link_threads = no ; then
26397         if test $ol_with_threads = yes ; then
26398                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26399 echo "$as_me: error: no suitable thread support" >&2;}
26400    { (exit 1); exit 1; }; }
26401         fi
26402
26403         if test $ol_with_threads = auto ; then
26404                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26405 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26406                 ol_with_threads=no
26407         fi
26408
26409
26410 cat >>confdefs.h <<\_ACEOF
26411 #define NO_THREADS 1
26412 _ACEOF
26413
26414         LTHREAD_LIBS=""
26415         BUILD_THREAD=no
26416 else
26417         BUILD_THREAD=yes
26418 fi
26419
26420 if test $ol_link_threads != no ; then
26421
26422 cat >>confdefs.h <<\_ACEOF
26423 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26424 _ACEOF
26425
26426 fi
26427
26428
26429
26430
26431 for ac_func in \
26432         ctime_r                 \
26433         gethostbyname_r gethostbyaddr_r \
26434
26435 do
26436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26437 echo "$as_me:$LINENO: checking for $ac_func" >&5
26438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26439 if eval "test \"\${$as_ac_var+set}\" = set"; then
26440   echo $ECHO_N "(cached) $ECHO_C" >&6
26441 else
26442   cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h.  */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h.  */
26448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26450 #define $ac_func innocuous_$ac_func
26451
26452 /* System header to define __stub macros and hopefully few prototypes,
26453     which can conflict with char $ac_func (); below.
26454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26455     <limits.h> exists even on freestanding compilers.  */
26456
26457 #ifdef __STDC__
26458 # include <limits.h>
26459 #else
26460 # include <assert.h>
26461 #endif
26462
26463 #undef $ac_func
26464
26465 /* Override any gcc2 internal prototype to avoid an error.  */
26466 #ifdef __cplusplus
26467 extern "C"
26468 {
26469 #endif
26470 /* We use char because int might match the return type of a gcc2
26471    builtin and then its argument prototype would still apply.  */
26472 char $ac_func ();
26473 /* The GNU C library defines this for functions which it implements
26474     to always fail with ENOSYS.  Some functions are actually named
26475     something starting with __ and the normal name is an alias.  */
26476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26477 choke me
26478 #else
26479 char (*f) () = $ac_func;
26480 #endif
26481 #ifdef __cplusplus
26482 }
26483 #endif
26484
26485 int
26486 main ()
26487 {
26488 return f != $ac_func;
26489   ;
26490   return 0;
26491 }
26492 _ACEOF
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26495   (eval $ac_link) 2>conftest.er1
26496   ac_status=$?
26497   grep -v '^ *+' conftest.er1 >conftest.err
26498   rm -f conftest.er1
26499   cat conftest.err >&5
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); } &&
26502          { ac_try='test -z "$ac_c_werror_flag"
26503                          || test ! -s conftest.err'
26504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505   (eval $ac_try) 2>&5
26506   ac_status=$?
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); }; } &&
26509          { ac_try='test -s conftest$ac_exeext'
26510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26511   (eval $ac_try) 2>&5
26512   ac_status=$?
26513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514   (exit $ac_status); }; }; then
26515   eval "$as_ac_var=yes"
26516 else
26517   echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26519
26520 eval "$as_ac_var=no"
26521 fi
26522 rm -f conftest.err conftest.$ac_objext \
26523       conftest$ac_exeext conftest.$ac_ext
26524 fi
26525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26527 if test `eval echo '${'$as_ac_var'}'` = yes; then
26528   cat >>confdefs.h <<_ACEOF
26529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26530 _ACEOF
26531
26532 fi
26533 done
26534
26535
26536 if test "$ac_cv_func_ctime_r" = no ; then
26537         ol_cv_func_ctime_r_nargs=0
26538 else
26539         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26540 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26541 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26542   echo $ECHO_N "(cached) $ECHO_C" >&6
26543 else
26544   cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h.  */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h.  */
26550 #include <time.h>
26551 int
26552 main ()
26553 {
26554 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext
26560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26561   (eval $ac_compile) 2>conftest.er1
26562   ac_status=$?
26563   grep -v '^ *+' conftest.er1 >conftest.err
26564   rm -f conftest.er1
26565   cat conftest.err >&5
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); } &&
26568          { ac_try='test -z "$ac_c_werror_flag"
26569                          || test ! -s conftest.err'
26570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571   (eval $ac_try) 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); }; } &&
26575          { ac_try='test -s conftest.$ac_objext'
26576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577   (eval $ac_try) 2>&5
26578   ac_status=$?
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); }; }; then
26581   ol_cv_func_ctime_r_nargs3=yes
26582 else
26583   echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26585
26586 ol_cv_func_ctime_r_nargs3=no
26587 fi
26588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26589
26590         cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596 #include <time.h>
26597 int
26598 main ()
26599 {
26600 time_t ti; char *buffer; ctime_r(&ti,buffer);
26601   ;
26602   return 0;
26603 }
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26607   (eval $ac_compile) 2>conftest.er1
26608   ac_status=$?
26609   grep -v '^ *+' conftest.er1 >conftest.err
26610   rm -f conftest.er1
26611   cat conftest.err >&5
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); } &&
26614          { ac_try='test -z "$ac_c_werror_flag"
26615                          || test ! -s conftest.err'
26616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617   (eval $ac_try) 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); }; } &&
26621          { ac_try='test -s conftest.$ac_objext'
26622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623   (eval $ac_try) 2>&5
26624   ac_status=$?
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); }; }; then
26627   ol_cv_func_ctime_r_nargs2=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632 ol_cv_func_ctime_r_nargs2=no
26633 fi
26634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635
26636         if test $ol_cv_func_ctime_r_nargs3 = yes &&
26637            test $ol_cv_func_ctime_r_nargs2 = no ; then
26638
26639                 ol_cv_func_ctime_r_nargs=3
26640
26641         elif test $ol_cv_func_ctime_r_nargs3 = no &&
26642              test $ol_cv_func_ctime_r_nargs2 = yes ; then
26643
26644                 ol_cv_func_ctime_r_nargs=2
26645
26646         else
26647                 ol_cv_func_ctime_r_nargs=0
26648         fi
26649
26650 fi
26651 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26652 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26653
26654   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26655
26656 cat >>confdefs.h <<_ACEOF
26657 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26658 _ACEOF
26659
26660   fi
26661
26662 fi
26663
26664 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26665         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26666 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26667 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26668   echo $ECHO_N "(cached) $ECHO_C" >&6
26669 else
26670   cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h.  */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h.  */
26676 #include <sys/types.h>
26677 #include <sys/socket.h>
26678 #include <netinet/in.h>
26679 #include <netdb.h>
26680 #define BUFSIZE (sizeof(struct hostent)+10)
26681 int
26682 main ()
26683 {
26684 struct hostent hent; char buffer[BUFSIZE];
26685                 int bufsize=BUFSIZE;int h_errno;
26686                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26687                         buffer, bufsize, &h_errno);
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 rm -f conftest.$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694   (eval $ac_compile) 2>conftest.er1
26695   ac_status=$?
26696   grep -v '^ *+' conftest.er1 >conftest.err
26697   rm -f conftest.er1
26698   cat conftest.err >&5
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } &&
26701          { ac_try='test -z "$ac_c_werror_flag"
26702                          || test ! -s conftest.err'
26703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704   (eval $ac_try) 2>&5
26705   ac_status=$?
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); }; } &&
26708          { ac_try='test -s conftest.$ac_objext'
26709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710   (eval $ac_try) 2>&5
26711   ac_status=$?
26712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713   (exit $ac_status); }; }; then
26714   ol_cv_func_gethostbyname_r_nargs5=yes
26715 else
26716   echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719 ol_cv_func_gethostbyname_r_nargs5=no
26720 fi
26721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26722
26723         cat >conftest.$ac_ext <<_ACEOF
26724 /* confdefs.h.  */
26725 _ACEOF
26726 cat confdefs.h >>conftest.$ac_ext
26727 cat >>conftest.$ac_ext <<_ACEOF
26728 /* end confdefs.h.  */
26729 #include <sys/types.h>
26730 #include <sys/socket.h>
26731 #include <netinet/in.h>
26732 #include <netdb.h>
26733 #define BUFSIZE (sizeof(struct hostent)+10)
26734 int
26735 main ()
26736 {
26737 struct hostent hent;struct hostent *rhent;
26738                 char buffer[BUFSIZE];
26739                 int bufsize=BUFSIZE;int h_errno;
26740                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26741                         &rhent, &h_errno);
26742   ;
26743   return 0;
26744 }
26745 _ACEOF
26746 rm -f conftest.$ac_objext
26747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26748   (eval $ac_compile) 2>conftest.er1
26749   ac_status=$?
26750   grep -v '^ *+' conftest.er1 >conftest.err
26751   rm -f conftest.er1
26752   cat conftest.err >&5
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); } &&
26755          { ac_try='test -z "$ac_c_werror_flag"
26756                          || test ! -s conftest.err'
26757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758   (eval $ac_try) 2>&5
26759   ac_status=$?
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); }; } &&
26762          { ac_try='test -s conftest.$ac_objext'
26763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764   (eval $ac_try) 2>&5
26765   ac_status=$?
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); }; }; then
26768   ol_cv_func_gethostbyname_r_nargs6=yes
26769 else
26770   echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773 ol_cv_func_gethostbyname_r_nargs6=no
26774 fi
26775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26776
26777         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
26778            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
26779
26780                 ol_cv_func_gethostbyname_r_nargs=5
26781
26782         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
26783              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
26784
26785                 ol_cv_func_gethostbyname_r_nargs=6
26786
26787         else
26788                 ol_cv_func_gethostbyname_r_nargs=0
26789         fi
26790
26791 fi
26792 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
26793 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
26794   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
26795
26796 cat >>confdefs.h <<_ACEOF
26797 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
26798 _ACEOF
26799
26800   fi
26801
26802 else
26803         ol_cv_func_gethostbyname_r_nargs=0
26804 fi
26805
26806 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
26807         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
26808 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
26809 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
26810   echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812   cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 #include <sys/types.h>
26819 #include <sys/socket.h>
26820 #include <netinet/in.h>
26821 #include <netdb.h>
26822 #define BUFSIZE (sizeof(struct hostent)+10)
26823 int
26824 main ()
26825 {
26826 struct hostent hent; char buffer[BUFSIZE];
26827             struct in_addr add;
26828             size_t alen=sizeof(struct in_addr);
26829             int bufsize=BUFSIZE;int h_errno;
26830                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26831                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 rm -f conftest.$ac_objext
26837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26838   (eval $ac_compile) 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } &&
26845          { ac_try='test -z "$ac_c_werror_flag"
26846                          || test ! -s conftest.err'
26847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848   (eval $ac_try) 2>&5
26849   ac_status=$?
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); }; } &&
26852          { ac_try='test -s conftest.$ac_objext'
26853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854   (eval $ac_try) 2>&5
26855   ac_status=$?
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); }; }; then
26858   ol_cv_func_gethostbyaddr_r_nargs7=yes
26859 else
26860   echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26862
26863 ol_cv_func_gethostbyaddr_r_nargs7=no
26864 fi
26865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26866
26867         cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h.  */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h.  */
26873 #include <sys/types.h>
26874 #include <sys/socket.h>
26875 #include <netinet/in.h>
26876 #include <netdb.h>
26877 #define BUFSIZE (sizeof(struct hostent)+10)
26878 int
26879 main ()
26880 {
26881 struct hostent hent;
26882                 struct hostent *rhent; char buffer[BUFSIZE];
26883                 struct in_addr add;
26884                 size_t alen=sizeof(struct in_addr);
26885                 int bufsize=BUFSIZE;int h_errno;
26886                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26887                         alen, AF_INET, &hent, buffer, bufsize,
26888                         &rhent, &h_errno);
26889   ;
26890   return 0;
26891 }
26892 _ACEOF
26893 rm -f conftest.$ac_objext
26894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26895   (eval $ac_compile) 2>conftest.er1
26896   ac_status=$?
26897   grep -v '^ *+' conftest.er1 >conftest.err
26898   rm -f conftest.er1
26899   cat conftest.err >&5
26900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901   (exit $ac_status); } &&
26902          { ac_try='test -z "$ac_c_werror_flag"
26903                          || test ! -s conftest.err'
26904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905   (eval $ac_try) 2>&5
26906   ac_status=$?
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); }; } &&
26909          { ac_try='test -s conftest.$ac_objext'
26910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911   (eval $ac_try) 2>&5
26912   ac_status=$?
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); }; }; then
26915   ol_cv_func_gethostbyaddr_r_nargs8=yes
26916 else
26917   echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26919
26920 ol_cv_func_gethostbyaddr_r_nargs8=no
26921 fi
26922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26923
26924         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
26925            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
26926
26927                 ol_cv_func_gethostbyaddr_r_nargs=7
26928
26929         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
26930              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
26931
26932                 ol_cv_func_gethostbyaddr_r_nargs=8
26933
26934         else
26935                 ol_cv_func_gethostbyaddr_r_nargs=0
26936         fi
26937
26938 fi
26939 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
26940 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
26941   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
26942
26943 cat >>confdefs.h <<_ACEOF
26944 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
26945 _ACEOF
26946
26947   fi
26948
26949 else
26950         ol_cv_func_gethostbyaddr_r_nargs=0
26951 fi
26952
26953 ol_link_bdb=no
26954
26955 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
26956         ol_cv_berkeley_db=no
26957
26958 for ac_header in db.h
26959 do
26960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26962   echo "$as_me:$LINENO: checking for $ac_header" >&5
26963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26965   echo $ECHO_N "(cached) $ECHO_C" >&6
26966 fi
26967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26969 else
26970   # Is the header compilable?
26971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26973 cat >conftest.$ac_ext <<_ACEOF
26974 /* confdefs.h.  */
26975 _ACEOF
26976 cat confdefs.h >>conftest.$ac_ext
26977 cat >>conftest.$ac_ext <<_ACEOF
26978 /* end confdefs.h.  */
26979 $ac_includes_default
26980 #include <$ac_header>
26981 _ACEOF
26982 rm -f conftest.$ac_objext
26983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26984   (eval $ac_compile) 2>conftest.er1
26985   ac_status=$?
26986   grep -v '^ *+' conftest.er1 >conftest.err
26987   rm -f conftest.er1
26988   cat conftest.err >&5
26989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990   (exit $ac_status); } &&
26991          { ac_try='test -z "$ac_c_werror_flag"
26992                          || test ! -s conftest.err'
26993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26994   (eval $ac_try) 2>&5
26995   ac_status=$?
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); }; } &&
26998          { ac_try='test -s conftest.$ac_objext'
26999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000   (eval $ac_try) 2>&5
27001   ac_status=$?
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); }; }; then
27004   ac_header_compiler=yes
27005 else
27006   echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27008
27009 ac_header_compiler=no
27010 fi
27011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27013 echo "${ECHO_T}$ac_header_compiler" >&6
27014
27015 # Is the header present?
27016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27018 cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024 #include <$ac_header>
27025 _ACEOF
27026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27028   ac_status=$?
27029   grep -v '^ *+' conftest.er1 >conftest.err
27030   rm -f conftest.er1
27031   cat conftest.err >&5
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } >/dev/null; then
27034   if test -s conftest.err; then
27035     ac_cpp_err=$ac_c_preproc_warn_flag
27036     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27037   else
27038     ac_cpp_err=
27039   fi
27040 else
27041   ac_cpp_err=yes
27042 fi
27043 if test -z "$ac_cpp_err"; then
27044   ac_header_preproc=yes
27045 else
27046   echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049   ac_header_preproc=no
27050 fi
27051 rm -f conftest.err conftest.$ac_ext
27052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27053 echo "${ECHO_T}$ac_header_preproc" >&6
27054
27055 # So?  What about this header?
27056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27057   yes:no: )
27058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27062     ac_header_preproc=yes
27063     ;;
27064   no:yes:* )
27065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27077     (
27078       cat <<\_ASBOX
27079 ## --------------------------------------------- ##
27080 ## Report this to <http://www.openldap.org/its/> ##
27081 ## --------------------------------------------- ##
27082 _ASBOX
27083     ) |
27084       sed "s/^/$as_me: WARNING:     /" >&2
27085     ;;
27086 esac
27087 echo "$as_me:$LINENO: checking for $ac_header" >&5
27088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27090   echo $ECHO_N "(cached) $ECHO_C" >&6
27091 else
27092   eval "$as_ac_Header=\$ac_header_preproc"
27093 fi
27094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27096
27097 fi
27098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27099   cat >>confdefs.h <<_ACEOF
27100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27101 _ACEOF
27102
27103 fi
27104
27105 done
27106
27107 if test $ac_cv_header_db_h = yes; then
27108         ol_cv_lib_db=no
27109
27110 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27111 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27112 if test "${ol_cv_bdb_major+set}" = set; then
27113   echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115
27116         ol_cv_bdb_major=0
27117         if test $ol_cv_bdb_major = 0 ; then
27118                 cat >conftest.$ac_ext <<_ACEOF
27119 /* confdefs.h.  */
27120 _ACEOF
27121 cat confdefs.h >>conftest.$ac_ext
27122 cat >>conftest.$ac_ext <<_ACEOF
27123 /* end confdefs.h.  */
27124
27125 #include <db.h>
27126 #ifndef DB_VERSION_MAJOR
27127 #       define DB_VERSION_MAJOR 1
27128 #endif
27129 #if DB_VERSION_MAJOR == 4
27130 __db_version
27131 #endif
27132
27133 _ACEOF
27134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27135   $EGREP "__db_version" >/dev/null 2>&1; then
27136   ol_cv_bdb_major=4
27137 else
27138   :
27139 fi
27140 rm -f conftest*
27141
27142         fi
27143         if test $ol_cv_bdb_major = 0 ; then
27144                 cat >conftest.$ac_ext <<_ACEOF
27145 /* confdefs.h.  */
27146 _ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h.  */
27150
27151 #include <db.h>
27152 #ifndef DB_VERSION_MAJOR
27153 #       define DB_VERSION_MAJOR 1
27154 #endif
27155 #if DB_VERSION_MAJOR == 3
27156 __db_version
27157 #endif
27158
27159 _ACEOF
27160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27161   $EGREP "__db_version" >/dev/null 2>&1; then
27162   ol_cv_bdb_major=3
27163 else
27164   :
27165 fi
27166 rm -f conftest*
27167
27168         fi
27169         if test $ol_cv_bdb_major = 0 ; then
27170                 cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h.  */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h.  */
27176
27177 #include <db.h>
27178 #ifndef DB_VERSION_MAJOR
27179 #       define DB_VERSION_MAJOR 1
27180 #endif
27181 #if DB_VERSION_MAJOR == 2
27182 __db_version
27183 #endif
27184
27185 _ACEOF
27186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27187   $EGREP "__db_version" >/dev/null 2>&1; then
27188   ol_cv_bdb_major=2
27189 else
27190   :
27191 fi
27192 rm -f conftest*
27193
27194         fi
27195         if test $ol_cv_bdb_major = 0 ; then
27196                 cat >conftest.$ac_ext <<_ACEOF
27197 /* confdefs.h.  */
27198 _ACEOF
27199 cat confdefs.h >>conftest.$ac_ext
27200 cat >>conftest.$ac_ext <<_ACEOF
27201 /* end confdefs.h.  */
27202
27203 #include <db.h>
27204 #ifndef DB_VERSION_MAJOR
27205 #       define DB_VERSION_MAJOR 1
27206 #endif
27207 #if DB_VERSION_MAJOR == 1
27208 __db_version
27209 #endif
27210
27211 _ACEOF
27212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27213   $EGREP "__db_version" >/dev/null 2>&1; then
27214   ol_cv_bdb_major=1
27215 else
27216   :
27217 fi
27218 rm -f conftest*
27219
27220         fi
27221
27222         if test $ol_cv_bdb_major = 0 ; then
27223                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27224 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27225    { (exit 1); exit 1; }; }
27226         fi
27227
27228 fi
27229 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27230 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27231
27232 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27233 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27234 if test "${ol_cv_bdb_minor+set}" = set; then
27235   echo $ECHO_N "(cached) $ECHO_C" >&6
27236 else
27237
27238         ol_cv_bdb_minor=0
27239         if test $ol_cv_bdb_minor = 0 ; then
27240                 cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246
27247 #include <db.h>
27248 #ifndef DB_VERSION_MINOR
27249 #       define DB_VERSION_MINOR 0
27250 #endif
27251 #if DB_VERSION_MINOR == 9
27252 __db_version
27253 #endif
27254
27255 _ACEOF
27256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27257   $EGREP "__db_version" >/dev/null 2>&1; then
27258   ol_cv_bdb_minor=9
27259 else
27260   :
27261 fi
27262 rm -f conftest*
27263
27264         fi
27265         if test $ol_cv_bdb_minor = 0 ; then
27266                 cat >conftest.$ac_ext <<_ACEOF
27267 /* confdefs.h.  */
27268 _ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h.  */
27272
27273 #include <db.h>
27274 #ifndef DB_VERSION_MINOR
27275 #       define DB_VERSION_MINOR 0
27276 #endif
27277 #if DB_VERSION_MINOR == 8
27278 __db_version
27279 #endif
27280
27281 _ACEOF
27282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27283   $EGREP "__db_version" >/dev/null 2>&1; then
27284   ol_cv_bdb_minor=8
27285 else
27286   :
27287 fi
27288 rm -f conftest*
27289
27290         fi
27291         if test $ol_cv_bdb_minor = 0 ; then
27292                 cat >conftest.$ac_ext <<_ACEOF
27293 /* confdefs.h.  */
27294 _ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h.  */
27298
27299 #include <db.h>
27300 #ifndef DB_VERSION_MINOR
27301 #       define DB_VERSION_MINOR 0
27302 #endif
27303 #if DB_VERSION_MINOR == 7
27304 __db_version
27305 #endif
27306
27307 _ACEOF
27308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27309   $EGREP "__db_version" >/dev/null 2>&1; then
27310   ol_cv_bdb_minor=7
27311 else
27312   :
27313 fi
27314 rm -f conftest*
27315
27316         fi
27317         if test $ol_cv_bdb_minor = 0 ; then
27318                 cat >conftest.$ac_ext <<_ACEOF
27319 /* confdefs.h.  */
27320 _ACEOF
27321 cat confdefs.h >>conftest.$ac_ext
27322 cat >>conftest.$ac_ext <<_ACEOF
27323 /* end confdefs.h.  */
27324
27325 #include <db.h>
27326 #ifndef DB_VERSION_MINOR
27327 #       define DB_VERSION_MINOR 0
27328 #endif
27329 #if DB_VERSION_MINOR == 6
27330 __db_version
27331 #endif
27332
27333 _ACEOF
27334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27335   $EGREP "__db_version" >/dev/null 2>&1; then
27336   ol_cv_bdb_minor=6
27337 else
27338   :
27339 fi
27340 rm -f conftest*
27341
27342         fi
27343         if test $ol_cv_bdb_minor = 0 ; then
27344                 cat >conftest.$ac_ext <<_ACEOF
27345 /* confdefs.h.  */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h.  */
27350
27351 #include <db.h>
27352 #ifndef DB_VERSION_MINOR
27353 #       define DB_VERSION_MINOR 0
27354 #endif
27355 #if DB_VERSION_MINOR == 5
27356 __db_version
27357 #endif
27358
27359 _ACEOF
27360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27361   $EGREP "__db_version" >/dev/null 2>&1; then
27362   ol_cv_bdb_minor=5
27363 else
27364   :
27365 fi
27366 rm -f conftest*
27367
27368         fi
27369         if test $ol_cv_bdb_minor = 0 ; then
27370                 cat >conftest.$ac_ext <<_ACEOF
27371 /* confdefs.h.  */
27372 _ACEOF
27373 cat confdefs.h >>conftest.$ac_ext
27374 cat >>conftest.$ac_ext <<_ACEOF
27375 /* end confdefs.h.  */
27376
27377 #include <db.h>
27378 #ifndef DB_VERSION_MINOR
27379 #       define DB_VERSION_MINOR 0
27380 #endif
27381 #if DB_VERSION_MINOR == 4
27382 __db_version
27383 #endif
27384
27385 _ACEOF
27386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27387   $EGREP "__db_version" >/dev/null 2>&1; then
27388   ol_cv_bdb_minor=4
27389 else
27390   :
27391 fi
27392 rm -f conftest*
27393
27394         fi
27395         if test $ol_cv_bdb_minor = 0 ; then
27396                 cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402
27403 #include <db.h>
27404 #ifndef DB_VERSION_MINOR
27405 #       define DB_VERSION_MINOR 0
27406 #endif
27407 #if DB_VERSION_MINOR == 3
27408 __db_version
27409 #endif
27410
27411 _ACEOF
27412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27413   $EGREP "__db_version" >/dev/null 2>&1; then
27414   ol_cv_bdb_minor=3
27415 else
27416   :
27417 fi
27418 rm -f conftest*
27419
27420         fi
27421         if test $ol_cv_bdb_minor = 0 ; then
27422                 cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h.  */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h.  */
27428
27429 #include <db.h>
27430 #ifndef DB_VERSION_MINOR
27431 #       define DB_VERSION_MINOR 0
27432 #endif
27433 #if DB_VERSION_MINOR == 2
27434 __db_version
27435 #endif
27436
27437 _ACEOF
27438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27439   $EGREP "__db_version" >/dev/null 2>&1; then
27440   ol_cv_bdb_minor=2
27441 else
27442   :
27443 fi
27444 rm -f conftest*
27445
27446         fi
27447         if test $ol_cv_bdb_minor = 0 ; then
27448                 cat >conftest.$ac_ext <<_ACEOF
27449 /* confdefs.h.  */
27450 _ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h.  */
27454
27455 #include <db.h>
27456 #ifndef DB_VERSION_MINOR
27457 #       define DB_VERSION_MINOR 0
27458 #endif
27459 #if DB_VERSION_MINOR == 1
27460 __db_version
27461 #endif
27462
27463 _ACEOF
27464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27465   $EGREP "__db_version" >/dev/null 2>&1; then
27466   ol_cv_bdb_minor=1
27467 else
27468   :
27469 fi
27470 rm -f conftest*
27471
27472         fi
27473
27474 fi
27475 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27476 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27477
27478 if test $ol_cv_bdb_major = 4 ; then
27479         if test $ol_cv_bdb_minor = 5 ; then
27480                 if test $ol_cv_lib_db = no ; then
27481         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27482 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27483 if test "${ol_cv_db_db45+set}" = set; then
27484   echo $ECHO_N "(cached) $ECHO_C" >&6
27485 else
27486
27487         ol_DB_LIB=-ldb45
27488         ol_LIBS=$LIBS
27489         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27490
27491         cat >conftest.$ac_ext <<_ACEOF
27492 /* confdefs.h.  */
27493 _ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h.  */
27497
27498 #ifdef HAVE_DB_185_H
27499 # include <db_185.h>
27500 #else
27501 # include <db.h>
27502 #endif
27503
27504 #ifndef DB_VERSION_MAJOR
27505 # define DB_VERSION_MAJOR 1
27506 #endif
27507
27508 #ifndef NULL
27509 #define NULL ((void*)0)
27510 #endif
27511
27512 int
27513 main ()
27514 {
27515
27516 #if DB_VERSION_MAJOR > 1
27517         {
27518                 char *version;
27519                 int major, minor, patch;
27520
27521                 version = db_version( &major, &minor, &patch );
27522
27523                 if( major != DB_VERSION_MAJOR ||
27524                         minor < DB_VERSION_MINOR )
27525                 {
27526                         printf("Berkeley DB version mismatch\n"
27527                                 "\theader: %s\n\tlibrary: %s\n",
27528                                 DB_VERSION_STRING, version);
27529                         return 1;
27530                 }
27531         }
27532 #endif
27533
27534 #if DB_VERSION_MAJOR > 2
27535         db_env_create( NULL, 0 );
27536 #elif DB_VERSION_MAJOR > 1
27537         db_appexit( NULL );
27538 #else
27539         (void) dbopen( NULL, 0, 0, 0, NULL);
27540 #endif
27541
27542   ;
27543   return 0;
27544 }
27545 _ACEOF
27546 rm -f conftest.$ac_objext conftest$ac_exeext
27547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27548   (eval $ac_link) 2>conftest.er1
27549   ac_status=$?
27550   grep -v '^ *+' conftest.er1 >conftest.err
27551   rm -f conftest.er1
27552   cat conftest.err >&5
27553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554   (exit $ac_status); } &&
27555          { ac_try='test -z "$ac_c_werror_flag"
27556                          || test ! -s conftest.err'
27557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27558   (eval $ac_try) 2>&5
27559   ac_status=$?
27560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561   (exit $ac_status); }; } &&
27562          { ac_try='test -s conftest$ac_exeext'
27563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27564   (eval $ac_try) 2>&5
27565   ac_status=$?
27566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567   (exit $ac_status); }; }; then
27568   ol_cv_db_db45=yes
27569 else
27570   echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27572
27573 ol_cv_db_db45=no
27574 fi
27575 rm -f conftest.err conftest.$ac_objext \
27576       conftest$ac_exeext conftest.$ac_ext
27577
27578         LIBS="$ol_LIBS"
27579
27580 fi
27581 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27582 echo "${ECHO_T}$ol_cv_db_db45" >&6
27583
27584         if test $ol_cv_db_db45 = yes ; then
27585                 ol_cv_lib_db=-ldb45
27586         fi
27587 fi
27588
27589                 if test $ol_cv_lib_db = no ; then
27590         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27591 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27592 if test "${ol_cv_db_db_45+set}" = set; then
27593   echo $ECHO_N "(cached) $ECHO_C" >&6
27594 else
27595
27596         ol_DB_LIB=-ldb-45
27597         ol_LIBS=$LIBS
27598         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27599
27600         cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606
27607 #ifdef HAVE_DB_185_H
27608 # include <db_185.h>
27609 #else
27610 # include <db.h>
27611 #endif
27612
27613 #ifndef DB_VERSION_MAJOR
27614 # define DB_VERSION_MAJOR 1
27615 #endif
27616
27617 #ifndef NULL
27618 #define NULL ((void*)0)
27619 #endif
27620
27621 int
27622 main ()
27623 {
27624
27625 #if DB_VERSION_MAJOR > 1
27626         {
27627                 char *version;
27628                 int major, minor, patch;
27629
27630                 version = db_version( &major, &minor, &patch );
27631
27632                 if( major != DB_VERSION_MAJOR ||
27633                         minor < DB_VERSION_MINOR )
27634                 {
27635                         printf("Berkeley DB version mismatch\n"
27636                                 "\theader: %s\n\tlibrary: %s\n",
27637                                 DB_VERSION_STRING, version);
27638                         return 1;
27639                 }
27640         }
27641 #endif
27642
27643 #if DB_VERSION_MAJOR > 2
27644         db_env_create( NULL, 0 );
27645 #elif DB_VERSION_MAJOR > 1
27646         db_appexit( NULL );
27647 #else
27648         (void) dbopen( NULL, 0, 0, 0, NULL);
27649 #endif
27650
27651   ;
27652   return 0;
27653 }
27654 _ACEOF
27655 rm -f conftest.$ac_objext conftest$ac_exeext
27656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27657   (eval $ac_link) 2>conftest.er1
27658   ac_status=$?
27659   grep -v '^ *+' conftest.er1 >conftest.err
27660   rm -f conftest.er1
27661   cat conftest.err >&5
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); } &&
27664          { ac_try='test -z "$ac_c_werror_flag"
27665                          || test ! -s conftest.err'
27666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667   (eval $ac_try) 2>&5
27668   ac_status=$?
27669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670   (exit $ac_status); }; } &&
27671          { ac_try='test -s conftest$ac_exeext'
27672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27673   (eval $ac_try) 2>&5
27674   ac_status=$?
27675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676   (exit $ac_status); }; }; then
27677   ol_cv_db_db_45=yes
27678 else
27679   echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27681
27682 ol_cv_db_db_45=no
27683 fi
27684 rm -f conftest.err conftest.$ac_objext \
27685       conftest$ac_exeext conftest.$ac_ext
27686
27687         LIBS="$ol_LIBS"
27688
27689 fi
27690 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27691 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27692
27693         if test $ol_cv_db_db_45 = yes ; then
27694                 ol_cv_lib_db=-ldb-45
27695         fi
27696 fi
27697
27698                 if test $ol_cv_lib_db = no ; then
27699         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27700 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27701 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27702   echo $ECHO_N "(cached) $ECHO_C" >&6
27703 else
27704
27705         ol_DB_LIB=-ldb-4.5
27706         ol_LIBS=$LIBS
27707         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27708
27709         cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h.  */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h.  */
27715
27716 #ifdef HAVE_DB_185_H
27717 # include <db_185.h>
27718 #else
27719 # include <db.h>
27720 #endif
27721
27722 #ifndef DB_VERSION_MAJOR
27723 # define DB_VERSION_MAJOR 1
27724 #endif
27725
27726 #ifndef NULL
27727 #define NULL ((void*)0)
27728 #endif
27729
27730 int
27731 main ()
27732 {
27733
27734 #if DB_VERSION_MAJOR > 1
27735         {
27736                 char *version;
27737                 int major, minor, patch;
27738
27739                 version = db_version( &major, &minor, &patch );
27740
27741                 if( major != DB_VERSION_MAJOR ||
27742                         minor < DB_VERSION_MINOR )
27743                 {
27744                         printf("Berkeley DB version mismatch\n"
27745                                 "\theader: %s\n\tlibrary: %s\n",
27746                                 DB_VERSION_STRING, version);
27747                         return 1;
27748                 }
27749         }
27750 #endif
27751
27752 #if DB_VERSION_MAJOR > 2
27753         db_env_create( NULL, 0 );
27754 #elif DB_VERSION_MAJOR > 1
27755         db_appexit( NULL );
27756 #else
27757         (void) dbopen( NULL, 0, 0, 0, NULL);
27758 #endif
27759
27760   ;
27761   return 0;
27762 }
27763 _ACEOF
27764 rm -f conftest.$ac_objext conftest$ac_exeext
27765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27766   (eval $ac_link) 2>conftest.er1
27767   ac_status=$?
27768   grep -v '^ *+' conftest.er1 >conftest.err
27769   rm -f conftest.er1
27770   cat conftest.err >&5
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); } &&
27773          { ac_try='test -z "$ac_c_werror_flag"
27774                          || test ! -s conftest.err'
27775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776   (eval $ac_try) 2>&5
27777   ac_status=$?
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); }; } &&
27780          { ac_try='test -s conftest$ac_exeext'
27781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27782   (eval $ac_try) 2>&5
27783   ac_status=$?
27784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785   (exit $ac_status); }; }; then
27786   ol_cv_db_db_4_dot_5=yes
27787 else
27788   echo "$as_me: failed program was:" >&5
27789 sed 's/^/| /' conftest.$ac_ext >&5
27790
27791 ol_cv_db_db_4_dot_5=no
27792 fi
27793 rm -f conftest.err conftest.$ac_objext \
27794       conftest$ac_exeext conftest.$ac_ext
27795
27796         LIBS="$ol_LIBS"
27797
27798 fi
27799 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
27800 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
27801
27802         if test $ol_cv_db_db_4_dot_5 = yes ; then
27803                 ol_cv_lib_db=-ldb-4.5
27804         fi
27805 fi
27806
27807                 if test $ol_cv_lib_db = no ; then
27808         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
27809 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
27810 if test "${ol_cv_db_db_4_5+set}" = set; then
27811   echo $ECHO_N "(cached) $ECHO_C" >&6
27812 else
27813
27814         ol_DB_LIB=-ldb-4-5
27815         ol_LIBS=$LIBS
27816         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27817
27818         cat >conftest.$ac_ext <<_ACEOF
27819 /* confdefs.h.  */
27820 _ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h.  */
27824
27825 #ifdef HAVE_DB_185_H
27826 # include <db_185.h>
27827 #else
27828 # include <db.h>
27829 #endif
27830
27831 #ifndef DB_VERSION_MAJOR
27832 # define DB_VERSION_MAJOR 1
27833 #endif
27834
27835 #ifndef NULL
27836 #define NULL ((void*)0)
27837 #endif
27838
27839 int
27840 main ()
27841 {
27842
27843 #if DB_VERSION_MAJOR > 1
27844         {
27845                 char *version;
27846                 int major, minor, patch;
27847
27848                 version = db_version( &major, &minor, &patch );
27849
27850                 if( major != DB_VERSION_MAJOR ||
27851                         minor < DB_VERSION_MINOR )
27852                 {
27853                         printf("Berkeley DB version mismatch\n"
27854                                 "\theader: %s\n\tlibrary: %s\n",
27855                                 DB_VERSION_STRING, version);
27856                         return 1;
27857                 }
27858         }
27859 #endif
27860
27861 #if DB_VERSION_MAJOR > 2
27862         db_env_create( NULL, 0 );
27863 #elif DB_VERSION_MAJOR > 1
27864         db_appexit( NULL );
27865 #else
27866         (void) dbopen( NULL, 0, 0, 0, NULL);
27867 #endif
27868
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27875   (eval $ac_link) 2>conftest.er1
27876   ac_status=$?
27877   grep -v '^ *+' conftest.er1 >conftest.err
27878   rm -f conftest.er1
27879   cat conftest.err >&5
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); } &&
27882          { ac_try='test -z "$ac_c_werror_flag"
27883                          || test ! -s conftest.err'
27884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885   (eval $ac_try) 2>&5
27886   ac_status=$?
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); }; } &&
27889          { ac_try='test -s conftest$ac_exeext'
27890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891   (eval $ac_try) 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); }; }; then
27895   ol_cv_db_db_4_5=yes
27896 else
27897   echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27899
27900 ol_cv_db_db_4_5=no
27901 fi
27902 rm -f conftest.err conftest.$ac_objext \
27903       conftest$ac_exeext conftest.$ac_ext
27904
27905         LIBS="$ol_LIBS"
27906
27907 fi
27908 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
27909 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
27910
27911         if test $ol_cv_db_db_4_5 = yes ; then
27912                 ol_cv_lib_db=-ldb-4-5
27913         fi
27914 fi
27915
27916         elif test $ol_cv_bdb_minor = 4 ; then
27917                 if test $ol_cv_lib_db = no ; then
27918         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
27919 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
27920 if test "${ol_cv_db_db44+set}" = set; then
27921   echo $ECHO_N "(cached) $ECHO_C" >&6
27922 else
27923
27924         ol_DB_LIB=-ldb44
27925         ol_LIBS=$LIBS
27926         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27927
27928         cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934
27935 #ifdef HAVE_DB_185_H
27936 # include <db_185.h>
27937 #else
27938 # include <db.h>
27939 #endif
27940
27941 #ifndef DB_VERSION_MAJOR
27942 # define DB_VERSION_MAJOR 1
27943 #endif
27944
27945 #ifndef NULL
27946 #define NULL ((void*)0)
27947 #endif
27948
27949 int
27950 main ()
27951 {
27952
27953 #if DB_VERSION_MAJOR > 1
27954         {
27955                 char *version;
27956                 int major, minor, patch;
27957
27958                 version = db_version( &major, &minor, &patch );
27959
27960                 if( major != DB_VERSION_MAJOR ||
27961                         minor < DB_VERSION_MINOR )
27962                 {
27963                         printf("Berkeley DB version mismatch\n"
27964                                 "\theader: %s\n\tlibrary: %s\n",
27965                                 DB_VERSION_STRING, version);
27966                         return 1;
27967                 }
27968         }
27969 #endif
27970
27971 #if DB_VERSION_MAJOR > 2
27972         db_env_create( NULL, 0 );
27973 #elif DB_VERSION_MAJOR > 1
27974         db_appexit( NULL );
27975 #else
27976         (void) dbopen( NULL, 0, 0, 0, NULL);
27977 #endif
27978
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext conftest$ac_exeext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27985   (eval $ac_link) 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } &&
27992          { ac_try='test -z "$ac_c_werror_flag"
27993                          || test ! -s conftest.err'
27994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995   (eval $ac_try) 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; } &&
27999          { ac_try='test -s conftest$ac_exeext'
28000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001   (eval $ac_try) 2>&5
28002   ac_status=$?
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); }; }; then
28005   ol_cv_db_db44=yes
28006 else
28007   echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28009
28010 ol_cv_db_db44=no
28011 fi
28012 rm -f conftest.err conftest.$ac_objext \
28013       conftest$ac_exeext conftest.$ac_ext
28014
28015         LIBS="$ol_LIBS"
28016
28017 fi
28018 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28019 echo "${ECHO_T}$ol_cv_db_db44" >&6
28020
28021         if test $ol_cv_db_db44 = yes ; then
28022                 ol_cv_lib_db=-ldb44
28023         fi
28024 fi
28025
28026                 if test $ol_cv_lib_db = no ; then
28027         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28028 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28029 if test "${ol_cv_db_db_44+set}" = set; then
28030   echo $ECHO_N "(cached) $ECHO_C" >&6
28031 else
28032
28033         ol_DB_LIB=-ldb-44
28034         ol_LIBS=$LIBS
28035         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28036
28037         cat >conftest.$ac_ext <<_ACEOF
28038 /* confdefs.h.  */
28039 _ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h.  */
28043
28044 #ifdef HAVE_DB_185_H
28045 # include <db_185.h>
28046 #else
28047 # include <db.h>
28048 #endif
28049
28050 #ifndef DB_VERSION_MAJOR
28051 # define DB_VERSION_MAJOR 1
28052 #endif
28053
28054 #ifndef NULL
28055 #define NULL ((void*)0)
28056 #endif
28057
28058 int
28059 main ()
28060 {
28061
28062 #if DB_VERSION_MAJOR > 1
28063         {
28064                 char *version;
28065                 int major, minor, patch;
28066
28067                 version = db_version( &major, &minor, &patch );
28068
28069                 if( major != DB_VERSION_MAJOR ||
28070                         minor < DB_VERSION_MINOR )
28071                 {
28072                         printf("Berkeley DB version mismatch\n"
28073                                 "\theader: %s\n\tlibrary: %s\n",
28074                                 DB_VERSION_STRING, version);
28075                         return 1;
28076                 }
28077         }
28078 #endif
28079
28080 #if DB_VERSION_MAJOR > 2
28081         db_env_create( NULL, 0 );
28082 #elif DB_VERSION_MAJOR > 1
28083         db_appexit( NULL );
28084 #else
28085         (void) dbopen( NULL, 0, 0, 0, NULL);
28086 #endif
28087
28088   ;
28089   return 0;
28090 }
28091 _ACEOF
28092 rm -f conftest.$ac_objext conftest$ac_exeext
28093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28094   (eval $ac_link) 2>conftest.er1
28095   ac_status=$?
28096   grep -v '^ *+' conftest.er1 >conftest.err
28097   rm -f conftest.er1
28098   cat conftest.err >&5
28099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100   (exit $ac_status); } &&
28101          { ac_try='test -z "$ac_c_werror_flag"
28102                          || test ! -s conftest.err'
28103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104   (eval $ac_try) 2>&5
28105   ac_status=$?
28106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); }; } &&
28108          { ac_try='test -s conftest$ac_exeext'
28109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28110   (eval $ac_try) 2>&5
28111   ac_status=$?
28112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113   (exit $ac_status); }; }; then
28114   ol_cv_db_db_44=yes
28115 else
28116   echo "$as_me: failed program was:" >&5
28117 sed 's/^/| /' conftest.$ac_ext >&5
28118
28119 ol_cv_db_db_44=no
28120 fi
28121 rm -f conftest.err conftest.$ac_objext \
28122       conftest$ac_exeext conftest.$ac_ext
28123
28124         LIBS="$ol_LIBS"
28125
28126 fi
28127 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28128 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28129
28130         if test $ol_cv_db_db_44 = yes ; then
28131                 ol_cv_lib_db=-ldb-44
28132         fi
28133 fi
28134
28135                 if test $ol_cv_lib_db = no ; then
28136         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28137 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28138 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28139   echo $ECHO_N "(cached) $ECHO_C" >&6
28140 else
28141
28142         ol_DB_LIB=-ldb-4.4
28143         ol_LIBS=$LIBS
28144         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28145
28146         cat >conftest.$ac_ext <<_ACEOF
28147 /* confdefs.h.  */
28148 _ACEOF
28149 cat confdefs.h >>conftest.$ac_ext
28150 cat >>conftest.$ac_ext <<_ACEOF
28151 /* end confdefs.h.  */
28152
28153 #ifdef HAVE_DB_185_H
28154 # include <db_185.h>
28155 #else
28156 # include <db.h>
28157 #endif
28158
28159 #ifndef DB_VERSION_MAJOR
28160 # define DB_VERSION_MAJOR 1
28161 #endif
28162
28163 #ifndef NULL
28164 #define NULL ((void*)0)
28165 #endif
28166
28167 int
28168 main ()
28169 {
28170
28171 #if DB_VERSION_MAJOR > 1
28172         {
28173                 char *version;
28174                 int major, minor, patch;
28175
28176                 version = db_version( &major, &minor, &patch );
28177
28178                 if( major != DB_VERSION_MAJOR ||
28179                         minor < DB_VERSION_MINOR )
28180                 {
28181                         printf("Berkeley DB version mismatch\n"
28182                                 "\theader: %s\n\tlibrary: %s\n",
28183                                 DB_VERSION_STRING, version);
28184                         return 1;
28185                 }
28186         }
28187 #endif
28188
28189 #if DB_VERSION_MAJOR > 2
28190         db_env_create( NULL, 0 );
28191 #elif DB_VERSION_MAJOR > 1
28192         db_appexit( NULL );
28193 #else
28194         (void) dbopen( NULL, 0, 0, 0, NULL);
28195 #endif
28196
28197   ;
28198   return 0;
28199 }
28200 _ACEOF
28201 rm -f conftest.$ac_objext conftest$ac_exeext
28202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28203   (eval $ac_link) 2>conftest.er1
28204   ac_status=$?
28205   grep -v '^ *+' conftest.er1 >conftest.err
28206   rm -f conftest.er1
28207   cat conftest.err >&5
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); } &&
28210          { ac_try='test -z "$ac_c_werror_flag"
28211                          || test ! -s conftest.err'
28212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213   (eval $ac_try) 2>&5
28214   ac_status=$?
28215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216   (exit $ac_status); }; } &&
28217          { ac_try='test -s conftest$ac_exeext'
28218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28219   (eval $ac_try) 2>&5
28220   ac_status=$?
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); }; }; then
28223   ol_cv_db_db_4_dot_4=yes
28224 else
28225   echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28227
28228 ol_cv_db_db_4_dot_4=no
28229 fi
28230 rm -f conftest.err conftest.$ac_objext \
28231       conftest$ac_exeext conftest.$ac_ext
28232
28233         LIBS="$ol_LIBS"
28234
28235 fi
28236 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28237 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28238
28239         if test $ol_cv_db_db_4_dot_4 = yes ; then
28240                 ol_cv_lib_db=-ldb-4.4
28241         fi
28242 fi
28243
28244                 if test $ol_cv_lib_db = no ; then
28245         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28246 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28247 if test "${ol_cv_db_db_4_4+set}" = set; then
28248   echo $ECHO_N "(cached) $ECHO_C" >&6
28249 else
28250
28251         ol_DB_LIB=-ldb-4-4
28252         ol_LIBS=$LIBS
28253         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28254
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 #ifdef HAVE_DB_185_H
28263 # include <db_185.h>
28264 #else
28265 # include <db.h>
28266 #endif
28267
28268 #ifndef DB_VERSION_MAJOR
28269 # define DB_VERSION_MAJOR 1
28270 #endif
28271
28272 #ifndef NULL
28273 #define NULL ((void*)0)
28274 #endif
28275
28276 int
28277 main ()
28278 {
28279
28280 #if DB_VERSION_MAJOR > 1
28281         {
28282                 char *version;
28283                 int major, minor, patch;
28284
28285                 version = db_version( &major, &minor, &patch );
28286
28287                 if( major != DB_VERSION_MAJOR ||
28288                         minor < DB_VERSION_MINOR )
28289                 {
28290                         printf("Berkeley DB version mismatch\n"
28291                                 "\theader: %s\n\tlibrary: %s\n",
28292                                 DB_VERSION_STRING, version);
28293                         return 1;
28294                 }
28295         }
28296 #endif
28297
28298 #if DB_VERSION_MAJOR > 2
28299         db_env_create( NULL, 0 );
28300 #elif DB_VERSION_MAJOR > 1
28301         db_appexit( NULL );
28302 #else
28303         (void) dbopen( NULL, 0, 0, 0, NULL);
28304 #endif
28305
28306   ;
28307   return 0;
28308 }
28309 _ACEOF
28310 rm -f conftest.$ac_objext conftest$ac_exeext
28311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28312   (eval $ac_link) 2>conftest.er1
28313   ac_status=$?
28314   grep -v '^ *+' conftest.er1 >conftest.err
28315   rm -f conftest.er1
28316   cat conftest.err >&5
28317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318   (exit $ac_status); } &&
28319          { ac_try='test -z "$ac_c_werror_flag"
28320                          || test ! -s conftest.err'
28321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28322   (eval $ac_try) 2>&5
28323   ac_status=$?
28324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325   (exit $ac_status); }; } &&
28326          { ac_try='test -s conftest$ac_exeext'
28327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328   (eval $ac_try) 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); }; }; then
28332   ol_cv_db_db_4_4=yes
28333 else
28334   echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28336
28337 ol_cv_db_db_4_4=no
28338 fi
28339 rm -f conftest.err conftest.$ac_objext \
28340       conftest$ac_exeext conftest.$ac_ext
28341
28342         LIBS="$ol_LIBS"
28343
28344 fi
28345 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28346 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28347
28348         if test $ol_cv_db_db_4_4 = yes ; then
28349                 ol_cv_lib_db=-ldb-4-4
28350         fi
28351 fi
28352
28353         elif test $ol_cv_bdb_minor = 3 ; then
28354                 if test $ol_cv_lib_db = no ; then
28355         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28356 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28357 if test "${ol_cv_db_db43+set}" = set; then
28358   echo $ECHO_N "(cached) $ECHO_C" >&6
28359 else
28360
28361         ol_DB_LIB=-ldb43
28362         ol_LIBS=$LIBS
28363         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28364
28365         cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371
28372 #ifdef HAVE_DB_185_H
28373 # include <db_185.h>
28374 #else
28375 # include <db.h>
28376 #endif
28377
28378 #ifndef DB_VERSION_MAJOR
28379 # define DB_VERSION_MAJOR 1
28380 #endif
28381
28382 #ifndef NULL
28383 #define NULL ((void*)0)
28384 #endif
28385
28386 int
28387 main ()
28388 {
28389
28390 #if DB_VERSION_MAJOR > 1
28391         {
28392                 char *version;
28393                 int major, minor, patch;
28394
28395                 version = db_version( &major, &minor, &patch );
28396
28397                 if( major != DB_VERSION_MAJOR ||
28398                         minor < DB_VERSION_MINOR )
28399                 {
28400                         printf("Berkeley DB version mismatch\n"
28401                                 "\theader: %s\n\tlibrary: %s\n",
28402                                 DB_VERSION_STRING, version);
28403                         return 1;
28404                 }
28405         }
28406 #endif
28407
28408 #if DB_VERSION_MAJOR > 2
28409         db_env_create( NULL, 0 );
28410 #elif DB_VERSION_MAJOR > 1
28411         db_appexit( NULL );
28412 #else
28413         (void) dbopen( NULL, 0, 0, 0, NULL);
28414 #endif
28415
28416   ;
28417   return 0;
28418 }
28419 _ACEOF
28420 rm -f conftest.$ac_objext conftest$ac_exeext
28421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28422   (eval $ac_link) 2>conftest.er1
28423   ac_status=$?
28424   grep -v '^ *+' conftest.er1 >conftest.err
28425   rm -f conftest.er1
28426   cat conftest.err >&5
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); } &&
28429          { ac_try='test -z "$ac_c_werror_flag"
28430                          || test ! -s conftest.err'
28431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432   (eval $ac_try) 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; } &&
28436          { ac_try='test -s conftest$ac_exeext'
28437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438   (eval $ac_try) 2>&5
28439   ac_status=$?
28440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441   (exit $ac_status); }; }; then
28442   ol_cv_db_db43=yes
28443 else
28444   echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.$ac_ext >&5
28446
28447 ol_cv_db_db43=no
28448 fi
28449 rm -f conftest.err conftest.$ac_objext \
28450       conftest$ac_exeext conftest.$ac_ext
28451
28452         LIBS="$ol_LIBS"
28453
28454 fi
28455 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28456 echo "${ECHO_T}$ol_cv_db_db43" >&6
28457
28458         if test $ol_cv_db_db43 = yes ; then
28459                 ol_cv_lib_db=-ldb43
28460         fi
28461 fi
28462
28463                 if test $ol_cv_lib_db = no ; then
28464         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28465 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28466 if test "${ol_cv_db_db_43+set}" = set; then
28467   echo $ECHO_N "(cached) $ECHO_C" >&6
28468 else
28469
28470         ol_DB_LIB=-ldb-43
28471         ol_LIBS=$LIBS
28472         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28473
28474         cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480
28481 #ifdef HAVE_DB_185_H
28482 # include <db_185.h>
28483 #else
28484 # include <db.h>
28485 #endif
28486
28487 #ifndef DB_VERSION_MAJOR
28488 # define DB_VERSION_MAJOR 1
28489 #endif
28490
28491 #ifndef NULL
28492 #define NULL ((void*)0)
28493 #endif
28494
28495 int
28496 main ()
28497 {
28498
28499 #if DB_VERSION_MAJOR > 1
28500         {
28501                 char *version;
28502                 int major, minor, patch;
28503
28504                 version = db_version( &major, &minor, &patch );
28505
28506                 if( major != DB_VERSION_MAJOR ||
28507                         minor < DB_VERSION_MINOR )
28508                 {
28509                         printf("Berkeley DB version mismatch\n"
28510                                 "\theader: %s\n\tlibrary: %s\n",
28511                                 DB_VERSION_STRING, version);
28512                         return 1;
28513                 }
28514         }
28515 #endif
28516
28517 #if DB_VERSION_MAJOR > 2
28518         db_env_create( NULL, 0 );
28519 #elif DB_VERSION_MAJOR > 1
28520         db_appexit( NULL );
28521 #else
28522         (void) dbopen( NULL, 0, 0, 0, NULL);
28523 #endif
28524
28525   ;
28526   return 0;
28527 }
28528 _ACEOF
28529 rm -f conftest.$ac_objext conftest$ac_exeext
28530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28531   (eval $ac_link) 2>conftest.er1
28532   ac_status=$?
28533   grep -v '^ *+' conftest.er1 >conftest.err
28534   rm -f conftest.er1
28535   cat conftest.err >&5
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); } &&
28538          { ac_try='test -z "$ac_c_werror_flag"
28539                          || test ! -s conftest.err'
28540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28541   (eval $ac_try) 2>&5
28542   ac_status=$?
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); }; } &&
28545          { ac_try='test -s conftest$ac_exeext'
28546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547   (eval $ac_try) 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; }; then
28551   ol_cv_db_db_43=yes
28552 else
28553   echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28555
28556 ol_cv_db_db_43=no
28557 fi
28558 rm -f conftest.err conftest.$ac_objext \
28559       conftest$ac_exeext conftest.$ac_ext
28560
28561         LIBS="$ol_LIBS"
28562
28563 fi
28564 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28565 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28566
28567         if test $ol_cv_db_db_43 = yes ; then
28568                 ol_cv_lib_db=-ldb-43
28569         fi
28570 fi
28571
28572                 if test $ol_cv_lib_db = no ; then
28573         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28574 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28575 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28576   echo $ECHO_N "(cached) $ECHO_C" >&6
28577 else
28578
28579         ol_DB_LIB=-ldb-4.3
28580         ol_LIBS=$LIBS
28581         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28582
28583         cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h.  */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h.  */
28589
28590 #ifdef HAVE_DB_185_H
28591 # include <db_185.h>
28592 #else
28593 # include <db.h>
28594 #endif
28595
28596 #ifndef DB_VERSION_MAJOR
28597 # define DB_VERSION_MAJOR 1
28598 #endif
28599
28600 #ifndef NULL
28601 #define NULL ((void*)0)
28602 #endif
28603
28604 int
28605 main ()
28606 {
28607
28608 #if DB_VERSION_MAJOR > 1
28609         {
28610                 char *version;
28611                 int major, minor, patch;
28612
28613                 version = db_version( &major, &minor, &patch );
28614
28615                 if( major != DB_VERSION_MAJOR ||
28616                         minor < DB_VERSION_MINOR )
28617                 {
28618                         printf("Berkeley DB version mismatch\n"
28619                                 "\theader: %s\n\tlibrary: %s\n",
28620                                 DB_VERSION_STRING, version);
28621                         return 1;
28622                 }
28623         }
28624 #endif
28625
28626 #if DB_VERSION_MAJOR > 2
28627         db_env_create( NULL, 0 );
28628 #elif DB_VERSION_MAJOR > 1
28629         db_appexit( NULL );
28630 #else
28631         (void) dbopen( NULL, 0, 0, 0, NULL);
28632 #endif
28633
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest.$ac_objext conftest$ac_exeext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28640   (eval $ac_link) 2>conftest.er1
28641   ac_status=$?
28642   grep -v '^ *+' conftest.er1 >conftest.err
28643   rm -f conftest.er1
28644   cat conftest.err >&5
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); } &&
28647          { ac_try='test -z "$ac_c_werror_flag"
28648                          || test ! -s conftest.err'
28649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650   (eval $ac_try) 2>&5
28651   ac_status=$?
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); }; } &&
28654          { ac_try='test -s conftest$ac_exeext'
28655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656   (eval $ac_try) 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; }; then
28660   ol_cv_db_db_4_dot_3=yes
28661 else
28662   echo "$as_me: failed program was:" >&5
28663 sed 's/^/| /' conftest.$ac_ext >&5
28664
28665 ol_cv_db_db_4_dot_3=no
28666 fi
28667 rm -f conftest.err conftest.$ac_objext \
28668       conftest$ac_exeext conftest.$ac_ext
28669
28670         LIBS="$ol_LIBS"
28671
28672 fi
28673 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28674 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28675
28676         if test $ol_cv_db_db_4_dot_3 = yes ; then
28677                 ol_cv_lib_db=-ldb-4.3
28678         fi
28679 fi
28680
28681                 if test $ol_cv_lib_db = no ; then
28682         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28683 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28684 if test "${ol_cv_db_db_4_3+set}" = set; then
28685   echo $ECHO_N "(cached) $ECHO_C" >&6
28686 else
28687
28688         ol_DB_LIB=-ldb-4-3
28689         ol_LIBS=$LIBS
28690         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28691
28692         cat >conftest.$ac_ext <<_ACEOF
28693 /* confdefs.h.  */
28694 _ACEOF
28695 cat confdefs.h >>conftest.$ac_ext
28696 cat >>conftest.$ac_ext <<_ACEOF
28697 /* end confdefs.h.  */
28698
28699 #ifdef HAVE_DB_185_H
28700 # include <db_185.h>
28701 #else
28702 # include <db.h>
28703 #endif
28704
28705 #ifndef DB_VERSION_MAJOR
28706 # define DB_VERSION_MAJOR 1
28707 #endif
28708
28709 #ifndef NULL
28710 #define NULL ((void*)0)
28711 #endif
28712
28713 int
28714 main ()
28715 {
28716
28717 #if DB_VERSION_MAJOR > 1
28718         {
28719                 char *version;
28720                 int major, minor, patch;
28721
28722                 version = db_version( &major, &minor, &patch );
28723
28724                 if( major != DB_VERSION_MAJOR ||
28725                         minor < DB_VERSION_MINOR )
28726                 {
28727                         printf("Berkeley DB version mismatch\n"
28728                                 "\theader: %s\n\tlibrary: %s\n",
28729                                 DB_VERSION_STRING, version);
28730                         return 1;
28731                 }
28732         }
28733 #endif
28734
28735 #if DB_VERSION_MAJOR > 2
28736         db_env_create( NULL, 0 );
28737 #elif DB_VERSION_MAJOR > 1
28738         db_appexit( NULL );
28739 #else
28740         (void) dbopen( NULL, 0, 0, 0, NULL);
28741 #endif
28742
28743   ;
28744   return 0;
28745 }
28746 _ACEOF
28747 rm -f conftest.$ac_objext conftest$ac_exeext
28748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28749   (eval $ac_link) 2>conftest.er1
28750   ac_status=$?
28751   grep -v '^ *+' conftest.er1 >conftest.err
28752   rm -f conftest.er1
28753   cat conftest.err >&5
28754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755   (exit $ac_status); } &&
28756          { ac_try='test -z "$ac_c_werror_flag"
28757                          || test ! -s conftest.err'
28758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759   (eval $ac_try) 2>&5
28760   ac_status=$?
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); }; } &&
28763          { ac_try='test -s conftest$ac_exeext'
28764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765   (eval $ac_try) 2>&5
28766   ac_status=$?
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); }; }; then
28769   ol_cv_db_db_4_3=yes
28770 else
28771   echo "$as_me: failed program was:" >&5
28772 sed 's/^/| /' conftest.$ac_ext >&5
28773
28774 ol_cv_db_db_4_3=no
28775 fi
28776 rm -f conftest.err conftest.$ac_objext \
28777       conftest$ac_exeext conftest.$ac_ext
28778
28779         LIBS="$ol_LIBS"
28780
28781 fi
28782 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28783 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28784
28785         if test $ol_cv_db_db_4_3 = yes ; then
28786                 ol_cv_lib_db=-ldb-4-3
28787         fi
28788 fi
28789
28790         elif test $ol_cv_bdb_minor = 2 ; then
28791                 if test $ol_cv_lib_db = no ; then
28792         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28793 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28794 if test "${ol_cv_db_db42+set}" = set; then
28795   echo $ECHO_N "(cached) $ECHO_C" >&6
28796 else
28797
28798         ol_DB_LIB=-ldb42
28799         ol_LIBS=$LIBS
28800         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28801
28802         cat >conftest.$ac_ext <<_ACEOF
28803 /* confdefs.h.  */
28804 _ACEOF
28805 cat confdefs.h >>conftest.$ac_ext
28806 cat >>conftest.$ac_ext <<_ACEOF
28807 /* end confdefs.h.  */
28808
28809 #ifdef HAVE_DB_185_H
28810 # include <db_185.h>
28811 #else
28812 # include <db.h>
28813 #endif
28814
28815 #ifndef DB_VERSION_MAJOR
28816 # define DB_VERSION_MAJOR 1
28817 #endif
28818
28819 #ifndef NULL
28820 #define NULL ((void*)0)
28821 #endif
28822
28823 int
28824 main ()
28825 {
28826
28827 #if DB_VERSION_MAJOR > 1
28828         {
28829                 char *version;
28830                 int major, minor, patch;
28831
28832                 version = db_version( &major, &minor, &patch );
28833
28834                 if( major != DB_VERSION_MAJOR ||
28835                         minor < DB_VERSION_MINOR )
28836                 {
28837                         printf("Berkeley DB version mismatch\n"
28838                                 "\theader: %s\n\tlibrary: %s\n",
28839                                 DB_VERSION_STRING, version);
28840                         return 1;
28841                 }
28842         }
28843 #endif
28844
28845 #if DB_VERSION_MAJOR > 2
28846         db_env_create( NULL, 0 );
28847 #elif DB_VERSION_MAJOR > 1
28848         db_appexit( NULL );
28849 #else
28850         (void) dbopen( NULL, 0, 0, 0, NULL);
28851 #endif
28852
28853   ;
28854   return 0;
28855 }
28856 _ACEOF
28857 rm -f conftest.$ac_objext conftest$ac_exeext
28858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28859   (eval $ac_link) 2>conftest.er1
28860   ac_status=$?
28861   grep -v '^ *+' conftest.er1 >conftest.err
28862   rm -f conftest.er1
28863   cat conftest.err >&5
28864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865   (exit $ac_status); } &&
28866          { ac_try='test -z "$ac_c_werror_flag"
28867                          || test ! -s conftest.err'
28868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28869   (eval $ac_try) 2>&5
28870   ac_status=$?
28871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872   (exit $ac_status); }; } &&
28873          { ac_try='test -s conftest$ac_exeext'
28874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875   (eval $ac_try) 2>&5
28876   ac_status=$?
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); }; }; then
28879   ol_cv_db_db42=yes
28880 else
28881   echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28883
28884 ol_cv_db_db42=no
28885 fi
28886 rm -f conftest.err conftest.$ac_objext \
28887       conftest$ac_exeext conftest.$ac_ext
28888
28889         LIBS="$ol_LIBS"
28890
28891 fi
28892 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28893 echo "${ECHO_T}$ol_cv_db_db42" >&6
28894
28895         if test $ol_cv_db_db42 = yes ; then
28896                 ol_cv_lib_db=-ldb42
28897         fi
28898 fi
28899
28900                 if test $ol_cv_lib_db = no ; then
28901         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28902 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28903 if test "${ol_cv_db_db_42+set}" = set; then
28904   echo $ECHO_N "(cached) $ECHO_C" >&6
28905 else
28906
28907         ol_DB_LIB=-ldb-42
28908         ol_LIBS=$LIBS
28909         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28910
28911         cat >conftest.$ac_ext <<_ACEOF
28912 /* confdefs.h.  */
28913 _ACEOF
28914 cat confdefs.h >>conftest.$ac_ext
28915 cat >>conftest.$ac_ext <<_ACEOF
28916 /* end confdefs.h.  */
28917
28918 #ifdef HAVE_DB_185_H
28919 # include <db_185.h>
28920 #else
28921 # include <db.h>
28922 #endif
28923
28924 #ifndef DB_VERSION_MAJOR
28925 # define DB_VERSION_MAJOR 1
28926 #endif
28927
28928 #ifndef NULL
28929 #define NULL ((void*)0)
28930 #endif
28931
28932 int
28933 main ()
28934 {
28935
28936 #if DB_VERSION_MAJOR > 1
28937         {
28938                 char *version;
28939                 int major, minor, patch;
28940
28941                 version = db_version( &major, &minor, &patch );
28942
28943                 if( major != DB_VERSION_MAJOR ||
28944                         minor < DB_VERSION_MINOR )
28945                 {
28946                         printf("Berkeley DB version mismatch\n"
28947                                 "\theader: %s\n\tlibrary: %s\n",
28948                                 DB_VERSION_STRING, version);
28949                         return 1;
28950                 }
28951         }
28952 #endif
28953
28954 #if DB_VERSION_MAJOR > 2
28955         db_env_create( NULL, 0 );
28956 #elif DB_VERSION_MAJOR > 1
28957         db_appexit( NULL );
28958 #else
28959         (void) dbopen( NULL, 0, 0, 0, NULL);
28960 #endif
28961
28962   ;
28963   return 0;
28964 }
28965 _ACEOF
28966 rm -f conftest.$ac_objext conftest$ac_exeext
28967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28968   (eval $ac_link) 2>conftest.er1
28969   ac_status=$?
28970   grep -v '^ *+' conftest.er1 >conftest.err
28971   rm -f conftest.er1
28972   cat conftest.err >&5
28973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974   (exit $ac_status); } &&
28975          { ac_try='test -z "$ac_c_werror_flag"
28976                          || test ! -s conftest.err'
28977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28978   (eval $ac_try) 2>&5
28979   ac_status=$?
28980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981   (exit $ac_status); }; } &&
28982          { ac_try='test -s conftest$ac_exeext'
28983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28984   (eval $ac_try) 2>&5
28985   ac_status=$?
28986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987   (exit $ac_status); }; }; then
28988   ol_cv_db_db_42=yes
28989 else
28990   echo "$as_me: failed program was:" >&5
28991 sed 's/^/| /' conftest.$ac_ext >&5
28992
28993 ol_cv_db_db_42=no
28994 fi
28995 rm -f conftest.err conftest.$ac_objext \
28996       conftest$ac_exeext conftest.$ac_ext
28997
28998         LIBS="$ol_LIBS"
28999
29000 fi
29001 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29002 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29003
29004         if test $ol_cv_db_db_42 = yes ; then
29005                 ol_cv_lib_db=-ldb-42
29006         fi
29007 fi
29008
29009                 if test $ol_cv_lib_db = no ; then
29010         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29011 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29012 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29013   echo $ECHO_N "(cached) $ECHO_C" >&6
29014 else
29015
29016         ol_DB_LIB=-ldb-4.2
29017         ol_LIBS=$LIBS
29018         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29019
29020         cat >conftest.$ac_ext <<_ACEOF
29021 /* confdefs.h.  */
29022 _ACEOF
29023 cat confdefs.h >>conftest.$ac_ext
29024 cat >>conftest.$ac_ext <<_ACEOF
29025 /* end confdefs.h.  */
29026
29027 #ifdef HAVE_DB_185_H
29028 # include <db_185.h>
29029 #else
29030 # include <db.h>
29031 #endif
29032
29033 #ifndef DB_VERSION_MAJOR
29034 # define DB_VERSION_MAJOR 1
29035 #endif
29036
29037 #ifndef NULL
29038 #define NULL ((void*)0)
29039 #endif
29040
29041 int
29042 main ()
29043 {
29044
29045 #if DB_VERSION_MAJOR > 1
29046         {
29047                 char *version;
29048                 int major, minor, patch;
29049
29050                 version = db_version( &major, &minor, &patch );
29051
29052                 if( major != DB_VERSION_MAJOR ||
29053                         minor < DB_VERSION_MINOR )
29054                 {
29055                         printf("Berkeley DB version mismatch\n"
29056                                 "\theader: %s\n\tlibrary: %s\n",
29057                                 DB_VERSION_STRING, version);
29058                         return 1;
29059                 }
29060         }
29061 #endif
29062
29063 #if DB_VERSION_MAJOR > 2
29064         db_env_create( NULL, 0 );
29065 #elif DB_VERSION_MAJOR > 1
29066         db_appexit( NULL );
29067 #else
29068         (void) dbopen( NULL, 0, 0, 0, NULL);
29069 #endif
29070
29071   ;
29072   return 0;
29073 }
29074 _ACEOF
29075 rm -f conftest.$ac_objext conftest$ac_exeext
29076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29077   (eval $ac_link) 2>conftest.er1
29078   ac_status=$?
29079   grep -v '^ *+' conftest.er1 >conftest.err
29080   rm -f conftest.er1
29081   cat conftest.err >&5
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); } &&
29084          { ac_try='test -z "$ac_c_werror_flag"
29085                          || test ! -s conftest.err'
29086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087   (eval $ac_try) 2>&5
29088   ac_status=$?
29089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090   (exit $ac_status); }; } &&
29091          { ac_try='test -s conftest$ac_exeext'
29092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093   (eval $ac_try) 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); }; }; then
29097   ol_cv_db_db_4_dot_2=yes
29098 else
29099   echo "$as_me: failed program was:" >&5
29100 sed 's/^/| /' conftest.$ac_ext >&5
29101
29102 ol_cv_db_db_4_dot_2=no
29103 fi
29104 rm -f conftest.err conftest.$ac_objext \
29105       conftest$ac_exeext conftest.$ac_ext
29106
29107         LIBS="$ol_LIBS"
29108
29109 fi
29110 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29111 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29112
29113         if test $ol_cv_db_db_4_dot_2 = yes ; then
29114                 ol_cv_lib_db=-ldb-4.2
29115         fi
29116 fi
29117
29118                 if test $ol_cv_lib_db = no ; then
29119         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29120 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29121 if test "${ol_cv_db_db_4_2+set}" = set; then
29122   echo $ECHO_N "(cached) $ECHO_C" >&6
29123 else
29124
29125         ol_DB_LIB=-ldb-4-2
29126         ol_LIBS=$LIBS
29127         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29128
29129         cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135
29136 #ifdef HAVE_DB_185_H
29137 # include <db_185.h>
29138 #else
29139 # include <db.h>
29140 #endif
29141
29142 #ifndef DB_VERSION_MAJOR
29143 # define DB_VERSION_MAJOR 1
29144 #endif
29145
29146 #ifndef NULL
29147 #define NULL ((void*)0)
29148 #endif
29149
29150 int
29151 main ()
29152 {
29153
29154 #if DB_VERSION_MAJOR > 1
29155         {
29156                 char *version;
29157                 int major, minor, patch;
29158
29159                 version = db_version( &major, &minor, &patch );
29160
29161                 if( major != DB_VERSION_MAJOR ||
29162                         minor < DB_VERSION_MINOR )
29163                 {
29164                         printf("Berkeley DB version mismatch\n"
29165                                 "\theader: %s\n\tlibrary: %s\n",
29166                                 DB_VERSION_STRING, version);
29167                         return 1;
29168                 }
29169         }
29170 #endif
29171
29172 #if DB_VERSION_MAJOR > 2
29173         db_env_create( NULL, 0 );
29174 #elif DB_VERSION_MAJOR > 1
29175         db_appexit( NULL );
29176 #else
29177         (void) dbopen( NULL, 0, 0, 0, NULL);
29178 #endif
29179
29180   ;
29181   return 0;
29182 }
29183 _ACEOF
29184 rm -f conftest.$ac_objext conftest$ac_exeext
29185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29186   (eval $ac_link) 2>conftest.er1
29187   ac_status=$?
29188   grep -v '^ *+' conftest.er1 >conftest.err
29189   rm -f conftest.er1
29190   cat conftest.err >&5
29191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192   (exit $ac_status); } &&
29193          { ac_try='test -z "$ac_c_werror_flag"
29194                          || test ! -s conftest.err'
29195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29196   (eval $ac_try) 2>&5
29197   ac_status=$?
29198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199   (exit $ac_status); }; } &&
29200          { ac_try='test -s conftest$ac_exeext'
29201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202   (eval $ac_try) 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; }; then
29206   ol_cv_db_db_4_2=yes
29207 else
29208   echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.$ac_ext >&5
29210
29211 ol_cv_db_db_4_2=no
29212 fi
29213 rm -f conftest.err conftest.$ac_objext \
29214       conftest$ac_exeext conftest.$ac_ext
29215
29216         LIBS="$ol_LIBS"
29217
29218 fi
29219 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29220 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29221
29222         if test $ol_cv_db_db_4_2 = yes ; then
29223                 ol_cv_lib_db=-ldb-4-2
29224         fi
29225 fi
29226
29227         elif test $ol_cv_bdb_minor = 1 ; then
29228                 if test $ol_cv_lib_db = no ; then
29229         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29230 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29231 if test "${ol_cv_db_db41+set}" = set; then
29232   echo $ECHO_N "(cached) $ECHO_C" >&6
29233 else
29234
29235         ol_DB_LIB=-ldb41
29236         ol_LIBS=$LIBS
29237         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29238
29239         cat >conftest.$ac_ext <<_ACEOF
29240 /* confdefs.h.  */
29241 _ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h.  */
29245
29246 #ifdef HAVE_DB_185_H
29247 # include <db_185.h>
29248 #else
29249 # include <db.h>
29250 #endif
29251
29252 #ifndef DB_VERSION_MAJOR
29253 # define DB_VERSION_MAJOR 1
29254 #endif
29255
29256 #ifndef NULL
29257 #define NULL ((void*)0)
29258 #endif
29259
29260 int
29261 main ()
29262 {
29263
29264 #if DB_VERSION_MAJOR > 1
29265         {
29266                 char *version;
29267                 int major, minor, patch;
29268
29269                 version = db_version( &major, &minor, &patch );
29270
29271                 if( major != DB_VERSION_MAJOR ||
29272                         minor < DB_VERSION_MINOR )
29273                 {
29274                         printf("Berkeley DB version mismatch\n"
29275                                 "\theader: %s\n\tlibrary: %s\n",
29276                                 DB_VERSION_STRING, version);
29277                         return 1;
29278                 }
29279         }
29280 #endif
29281
29282 #if DB_VERSION_MAJOR > 2
29283         db_env_create( NULL, 0 );
29284 #elif DB_VERSION_MAJOR > 1
29285         db_appexit( NULL );
29286 #else
29287         (void) dbopen( NULL, 0, 0, 0, NULL);
29288 #endif
29289
29290   ;
29291   return 0;
29292 }
29293 _ACEOF
29294 rm -f conftest.$ac_objext conftest$ac_exeext
29295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29296   (eval $ac_link) 2>conftest.er1
29297   ac_status=$?
29298   grep -v '^ *+' conftest.er1 >conftest.err
29299   rm -f conftest.er1
29300   cat conftest.err >&5
29301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302   (exit $ac_status); } &&
29303          { ac_try='test -z "$ac_c_werror_flag"
29304                          || test ! -s conftest.err'
29305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29306   (eval $ac_try) 2>&5
29307   ac_status=$?
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); }; } &&
29310          { ac_try='test -s conftest$ac_exeext'
29311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312   (eval $ac_try) 2>&5
29313   ac_status=$?
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); }; }; then
29316   ol_cv_db_db41=yes
29317 else
29318   echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29320
29321 ol_cv_db_db41=no
29322 fi
29323 rm -f conftest.err conftest.$ac_objext \
29324       conftest$ac_exeext conftest.$ac_ext
29325
29326         LIBS="$ol_LIBS"
29327
29328 fi
29329 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29330 echo "${ECHO_T}$ol_cv_db_db41" >&6
29331
29332         if test $ol_cv_db_db41 = yes ; then
29333                 ol_cv_lib_db=-ldb41
29334         fi
29335 fi
29336
29337                 if test $ol_cv_lib_db = no ; then
29338         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29339 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29340 if test "${ol_cv_db_db_41+set}" = set; then
29341   echo $ECHO_N "(cached) $ECHO_C" >&6
29342 else
29343
29344         ol_DB_LIB=-ldb-41
29345         ol_LIBS=$LIBS
29346         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29347
29348         cat >conftest.$ac_ext <<_ACEOF
29349 /* confdefs.h.  */
29350 _ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h.  */
29354
29355 #ifdef HAVE_DB_185_H
29356 # include <db_185.h>
29357 #else
29358 # include <db.h>
29359 #endif
29360
29361 #ifndef DB_VERSION_MAJOR
29362 # define DB_VERSION_MAJOR 1
29363 #endif
29364
29365 #ifndef NULL
29366 #define NULL ((void*)0)
29367 #endif
29368
29369 int
29370 main ()
29371 {
29372
29373 #if DB_VERSION_MAJOR > 1
29374         {
29375                 char *version;
29376                 int major, minor, patch;
29377
29378                 version = db_version( &major, &minor, &patch );
29379
29380                 if( major != DB_VERSION_MAJOR ||
29381                         minor < DB_VERSION_MINOR )
29382                 {
29383                         printf("Berkeley DB version mismatch\n"
29384                                 "\theader: %s\n\tlibrary: %s\n",
29385                                 DB_VERSION_STRING, version);
29386                         return 1;
29387                 }
29388         }
29389 #endif
29390
29391 #if DB_VERSION_MAJOR > 2
29392         db_env_create( NULL, 0 );
29393 #elif DB_VERSION_MAJOR > 1
29394         db_appexit( NULL );
29395 #else
29396         (void) dbopen( NULL, 0, 0, 0, NULL);
29397 #endif
29398
29399   ;
29400   return 0;
29401 }
29402 _ACEOF
29403 rm -f conftest.$ac_objext conftest$ac_exeext
29404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29405   (eval $ac_link) 2>conftest.er1
29406   ac_status=$?
29407   grep -v '^ *+' conftest.er1 >conftest.err
29408   rm -f conftest.er1
29409   cat conftest.err >&5
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); } &&
29412          { ac_try='test -z "$ac_c_werror_flag"
29413                          || test ! -s conftest.err'
29414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415   (eval $ac_try) 2>&5
29416   ac_status=$?
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); }; } &&
29419          { ac_try='test -s conftest$ac_exeext'
29420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421   (eval $ac_try) 2>&5
29422   ac_status=$?
29423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424   (exit $ac_status); }; }; then
29425   ol_cv_db_db_41=yes
29426 else
29427   echo "$as_me: failed program was:" >&5
29428 sed 's/^/| /' conftest.$ac_ext >&5
29429
29430 ol_cv_db_db_41=no
29431 fi
29432 rm -f conftest.err conftest.$ac_objext \
29433       conftest$ac_exeext conftest.$ac_ext
29434
29435         LIBS="$ol_LIBS"
29436
29437 fi
29438 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29439 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29440
29441         if test $ol_cv_db_db_41 = yes ; then
29442                 ol_cv_lib_db=-ldb-41
29443         fi
29444 fi
29445
29446                 if test $ol_cv_lib_db = no ; then
29447         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29448 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29449 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29450   echo $ECHO_N "(cached) $ECHO_C" >&6
29451 else
29452
29453         ol_DB_LIB=-ldb-4.1
29454         ol_LIBS=$LIBS
29455         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29456
29457         cat >conftest.$ac_ext <<_ACEOF
29458 /* confdefs.h.  */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h.  */
29463
29464 #ifdef HAVE_DB_185_H
29465 # include <db_185.h>
29466 #else
29467 # include <db.h>
29468 #endif
29469
29470 #ifndef DB_VERSION_MAJOR
29471 # define DB_VERSION_MAJOR 1
29472 #endif
29473
29474 #ifndef NULL
29475 #define NULL ((void*)0)
29476 #endif
29477
29478 int
29479 main ()
29480 {
29481
29482 #if DB_VERSION_MAJOR > 1
29483         {
29484                 char *version;
29485                 int major, minor, patch;
29486
29487                 version = db_version( &major, &minor, &patch );
29488
29489                 if( major != DB_VERSION_MAJOR ||
29490                         minor < DB_VERSION_MINOR )
29491                 {
29492                         printf("Berkeley DB version mismatch\n"
29493                                 "\theader: %s\n\tlibrary: %s\n",
29494                                 DB_VERSION_STRING, version);
29495                         return 1;
29496                 }
29497         }
29498 #endif
29499
29500 #if DB_VERSION_MAJOR > 2
29501         db_env_create( NULL, 0 );
29502 #elif DB_VERSION_MAJOR > 1
29503         db_appexit( NULL );
29504 #else
29505         (void) dbopen( NULL, 0, 0, 0, NULL);
29506 #endif
29507
29508   ;
29509   return 0;
29510 }
29511 _ACEOF
29512 rm -f conftest.$ac_objext conftest$ac_exeext
29513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29514   (eval $ac_link) 2>conftest.er1
29515   ac_status=$?
29516   grep -v '^ *+' conftest.er1 >conftest.err
29517   rm -f conftest.er1
29518   cat conftest.err >&5
29519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520   (exit $ac_status); } &&
29521          { ac_try='test -z "$ac_c_werror_flag"
29522                          || test ! -s conftest.err'
29523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524   (eval $ac_try) 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; } &&
29528          { ac_try='test -s conftest$ac_exeext'
29529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530   (eval $ac_try) 2>&5
29531   ac_status=$?
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); }; }; then
29534   ol_cv_db_db_4_dot_1=yes
29535 else
29536   echo "$as_me: failed program was:" >&5
29537 sed 's/^/| /' conftest.$ac_ext >&5
29538
29539 ol_cv_db_db_4_dot_1=no
29540 fi
29541 rm -f conftest.err conftest.$ac_objext \
29542       conftest$ac_exeext conftest.$ac_ext
29543
29544         LIBS="$ol_LIBS"
29545
29546 fi
29547 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29548 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29549
29550         if test $ol_cv_db_db_4_dot_1 = yes ; then
29551                 ol_cv_lib_db=-ldb-4.1
29552         fi
29553 fi
29554
29555                 if test $ol_cv_lib_db = no ; then
29556         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29557 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29558 if test "${ol_cv_db_db_4_1+set}" = set; then
29559   echo $ECHO_N "(cached) $ECHO_C" >&6
29560 else
29561
29562         ol_DB_LIB=-ldb-4-1
29563         ol_LIBS=$LIBS
29564         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29565
29566         cat >conftest.$ac_ext <<_ACEOF
29567 /* confdefs.h.  */
29568 _ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h.  */
29572
29573 #ifdef HAVE_DB_185_H
29574 # include <db_185.h>
29575 #else
29576 # include <db.h>
29577 #endif
29578
29579 #ifndef DB_VERSION_MAJOR
29580 # define DB_VERSION_MAJOR 1
29581 #endif
29582
29583 #ifndef NULL
29584 #define NULL ((void*)0)
29585 #endif
29586
29587 int
29588 main ()
29589 {
29590
29591 #if DB_VERSION_MAJOR > 1
29592         {
29593                 char *version;
29594                 int major, minor, patch;
29595
29596                 version = db_version( &major, &minor, &patch );
29597
29598                 if( major != DB_VERSION_MAJOR ||
29599                         minor < DB_VERSION_MINOR )
29600                 {
29601                         printf("Berkeley DB version mismatch\n"
29602                                 "\theader: %s\n\tlibrary: %s\n",
29603                                 DB_VERSION_STRING, version);
29604                         return 1;
29605                 }
29606         }
29607 #endif
29608
29609 #if DB_VERSION_MAJOR > 2
29610         db_env_create( NULL, 0 );
29611 #elif DB_VERSION_MAJOR > 1
29612         db_appexit( NULL );
29613 #else
29614         (void) dbopen( NULL, 0, 0, 0, NULL);
29615 #endif
29616
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29623   (eval $ac_link) 2>conftest.er1
29624   ac_status=$?
29625   grep -v '^ *+' conftest.er1 >conftest.err
29626   rm -f conftest.er1
29627   cat conftest.err >&5
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); } &&
29630          { ac_try='test -z "$ac_c_werror_flag"
29631                          || test ! -s conftest.err'
29632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633   (eval $ac_try) 2>&5
29634   ac_status=$?
29635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636   (exit $ac_status); }; } &&
29637          { ac_try='test -s conftest$ac_exeext'
29638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639   (eval $ac_try) 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; }; then
29643   ol_cv_db_db_4_1=yes
29644 else
29645   echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 ol_cv_db_db_4_1=no
29649 fi
29650 rm -f conftest.err conftest.$ac_objext \
29651       conftest$ac_exeext conftest.$ac_ext
29652
29653         LIBS="$ol_LIBS"
29654
29655 fi
29656 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29657 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29658
29659         if test $ol_cv_db_db_4_1 = yes ; then
29660                 ol_cv_lib_db=-ldb-4-1
29661         fi
29662 fi
29663
29664         fi
29665         if test $ol_cv_lib_db = no ; then
29666         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29667 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29668 if test "${ol_cv_db_db_4+set}" = set; then
29669   echo $ECHO_N "(cached) $ECHO_C" >&6
29670 else
29671
29672         ol_DB_LIB=-ldb-4
29673         ol_LIBS=$LIBS
29674         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29675
29676         cat >conftest.$ac_ext <<_ACEOF
29677 /* confdefs.h.  */
29678 _ACEOF
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h.  */
29682
29683 #ifdef HAVE_DB_185_H
29684 # include <db_185.h>
29685 #else
29686 # include <db.h>
29687 #endif
29688
29689 #ifndef DB_VERSION_MAJOR
29690 # define DB_VERSION_MAJOR 1
29691 #endif
29692
29693 #ifndef NULL
29694 #define NULL ((void*)0)
29695 #endif
29696
29697 int
29698 main ()
29699 {
29700
29701 #if DB_VERSION_MAJOR > 1
29702         {
29703                 char *version;
29704                 int major, minor, patch;
29705
29706                 version = db_version( &major, &minor, &patch );
29707
29708                 if( major != DB_VERSION_MAJOR ||
29709                         minor < DB_VERSION_MINOR )
29710                 {
29711                         printf("Berkeley DB version mismatch\n"
29712                                 "\theader: %s\n\tlibrary: %s\n",
29713                                 DB_VERSION_STRING, version);
29714                         return 1;
29715                 }
29716         }
29717 #endif
29718
29719 #if DB_VERSION_MAJOR > 2
29720         db_env_create( NULL, 0 );
29721 #elif DB_VERSION_MAJOR > 1
29722         db_appexit( NULL );
29723 #else
29724         (void) dbopen( NULL, 0, 0, 0, NULL);
29725 #endif
29726
29727   ;
29728   return 0;
29729 }
29730 _ACEOF
29731 rm -f conftest.$ac_objext conftest$ac_exeext
29732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29733   (eval $ac_link) 2>conftest.er1
29734   ac_status=$?
29735   grep -v '^ *+' conftest.er1 >conftest.err
29736   rm -f conftest.er1
29737   cat conftest.err >&5
29738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739   (exit $ac_status); } &&
29740          { ac_try='test -z "$ac_c_werror_flag"
29741                          || test ! -s conftest.err'
29742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743   (eval $ac_try) 2>&5
29744   ac_status=$?
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); }; } &&
29747          { ac_try='test -s conftest$ac_exeext'
29748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749   (eval $ac_try) 2>&5
29750   ac_status=$?
29751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752   (exit $ac_status); }; }; then
29753   ol_cv_db_db_4=yes
29754 else
29755   echo "$as_me: failed program was:" >&5
29756 sed 's/^/| /' conftest.$ac_ext >&5
29757
29758 ol_cv_db_db_4=no
29759 fi
29760 rm -f conftest.err conftest.$ac_objext \
29761       conftest$ac_exeext conftest.$ac_ext
29762
29763         LIBS="$ol_LIBS"
29764
29765 fi
29766 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29767 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29768
29769         if test $ol_cv_db_db_4 = yes ; then
29770                 ol_cv_lib_db=-ldb-4
29771         fi
29772 fi
29773
29774         if test $ol_cv_lib_db = no ; then
29775         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29776 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29777 if test "${ol_cv_db_db4+set}" = set; then
29778   echo $ECHO_N "(cached) $ECHO_C" >&6
29779 else
29780
29781         ol_DB_LIB=-ldb4
29782         ol_LIBS=$LIBS
29783         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29784
29785         cat >conftest.$ac_ext <<_ACEOF
29786 /* confdefs.h.  */
29787 _ACEOF
29788 cat confdefs.h >>conftest.$ac_ext
29789 cat >>conftest.$ac_ext <<_ACEOF
29790 /* end confdefs.h.  */
29791
29792 #ifdef HAVE_DB_185_H
29793 # include <db_185.h>
29794 #else
29795 # include <db.h>
29796 #endif
29797
29798 #ifndef DB_VERSION_MAJOR
29799 # define DB_VERSION_MAJOR 1
29800 #endif
29801
29802 #ifndef NULL
29803 #define NULL ((void*)0)
29804 #endif
29805
29806 int
29807 main ()
29808 {
29809
29810 #if DB_VERSION_MAJOR > 1
29811         {
29812                 char *version;
29813                 int major, minor, patch;
29814
29815                 version = db_version( &major, &minor, &patch );
29816
29817                 if( major != DB_VERSION_MAJOR ||
29818                         minor < DB_VERSION_MINOR )
29819                 {
29820                         printf("Berkeley DB version mismatch\n"
29821                                 "\theader: %s\n\tlibrary: %s\n",
29822                                 DB_VERSION_STRING, version);
29823                         return 1;
29824                 }
29825         }
29826 #endif
29827
29828 #if DB_VERSION_MAJOR > 2
29829         db_env_create( NULL, 0 );
29830 #elif DB_VERSION_MAJOR > 1
29831         db_appexit( NULL );
29832 #else
29833         (void) dbopen( NULL, 0, 0, 0, NULL);
29834 #endif
29835
29836   ;
29837   return 0;
29838 }
29839 _ACEOF
29840 rm -f conftest.$ac_objext conftest$ac_exeext
29841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29842   (eval $ac_link) 2>conftest.er1
29843   ac_status=$?
29844   grep -v '^ *+' conftest.er1 >conftest.err
29845   rm -f conftest.er1
29846   cat conftest.err >&5
29847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848   (exit $ac_status); } &&
29849          { ac_try='test -z "$ac_c_werror_flag"
29850                          || test ! -s conftest.err'
29851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852   (eval $ac_try) 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); }; } &&
29856          { ac_try='test -s conftest$ac_exeext'
29857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858   (eval $ac_try) 2>&5
29859   ac_status=$?
29860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861   (exit $ac_status); }; }; then
29862   ol_cv_db_db4=yes
29863 else
29864   echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29866
29867 ol_cv_db_db4=no
29868 fi
29869 rm -f conftest.err conftest.$ac_objext \
29870       conftest$ac_exeext conftest.$ac_ext
29871
29872         LIBS="$ol_LIBS"
29873
29874 fi
29875 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29876 echo "${ECHO_T}$ol_cv_db_db4" >&6
29877
29878         if test $ol_cv_db_db4 = yes ; then
29879                 ol_cv_lib_db=-ldb4
29880         fi
29881 fi
29882
29883         if test $ol_cv_lib_db = no ; then
29884         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29885 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29886 if test "${ol_cv_db_db+set}" = set; then
29887   echo $ECHO_N "(cached) $ECHO_C" >&6
29888 else
29889
29890         ol_DB_LIB=-ldb
29891         ol_LIBS=$LIBS
29892         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29893
29894         cat >conftest.$ac_ext <<_ACEOF
29895 /* confdefs.h.  */
29896 _ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h.  */
29900
29901 #ifdef HAVE_DB_185_H
29902 # include <db_185.h>
29903 #else
29904 # include <db.h>
29905 #endif
29906
29907 #ifndef DB_VERSION_MAJOR
29908 # define DB_VERSION_MAJOR 1
29909 #endif
29910
29911 #ifndef NULL
29912 #define NULL ((void*)0)
29913 #endif
29914
29915 int
29916 main ()
29917 {
29918
29919 #if DB_VERSION_MAJOR > 1
29920         {
29921                 char *version;
29922                 int major, minor, patch;
29923
29924                 version = db_version( &major, &minor, &patch );
29925
29926                 if( major != DB_VERSION_MAJOR ||
29927                         minor < DB_VERSION_MINOR )
29928                 {
29929                         printf("Berkeley DB version mismatch\n"
29930                                 "\theader: %s\n\tlibrary: %s\n",
29931                                 DB_VERSION_STRING, version);
29932                         return 1;
29933                 }
29934         }
29935 #endif
29936
29937 #if DB_VERSION_MAJOR > 2
29938         db_env_create( NULL, 0 );
29939 #elif DB_VERSION_MAJOR > 1
29940         db_appexit( NULL );
29941 #else
29942         (void) dbopen( NULL, 0, 0, 0, NULL);
29943 #endif
29944
29945   ;
29946   return 0;
29947 }
29948 _ACEOF
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29951   (eval $ac_link) 2>conftest.er1
29952   ac_status=$?
29953   grep -v '^ *+' conftest.er1 >conftest.err
29954   rm -f conftest.er1
29955   cat conftest.err >&5
29956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957   (exit $ac_status); } &&
29958          { ac_try='test -z "$ac_c_werror_flag"
29959                          || test ! -s conftest.err'
29960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961   (eval $ac_try) 2>&5
29962   ac_status=$?
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); }; } &&
29965          { ac_try='test -s conftest$ac_exeext'
29966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967   (eval $ac_try) 2>&5
29968   ac_status=$?
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); }; }; then
29971   ol_cv_db_db=yes
29972 else
29973   echo "$as_me: failed program was:" >&5
29974 sed 's/^/| /' conftest.$ac_ext >&5
29975
29976 ol_cv_db_db=no
29977 fi
29978 rm -f conftest.err conftest.$ac_objext \
29979       conftest$ac_exeext conftest.$ac_ext
29980
29981         LIBS="$ol_LIBS"
29982
29983 fi
29984 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29985 echo "${ECHO_T}$ol_cv_db_db" >&6
29986
29987         if test $ol_cv_db_db = yes ; then
29988                 ol_cv_lib_db=-ldb
29989         fi
29990 fi
29991
29992
29993 elif test $ol_cv_bdb_major = 3 ; then
29994         if test $ol_cv_lib_db = no ; then
29995         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29996 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29997 if test "${ol_cv_db_db3+set}" = set; then
29998   echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000
30001         ol_DB_LIB=-ldb3
30002         ol_LIBS=$LIBS
30003         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30004
30005         cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h.  */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h.  */
30011
30012 #ifdef HAVE_DB_185_H
30013 # include <db_185.h>
30014 #else
30015 # include <db.h>
30016 #endif
30017
30018 #ifndef DB_VERSION_MAJOR
30019 # define DB_VERSION_MAJOR 1
30020 #endif
30021
30022 #ifndef NULL
30023 #define NULL ((void*)0)
30024 #endif
30025
30026 int
30027 main ()
30028 {
30029
30030 #if DB_VERSION_MAJOR > 1
30031         {
30032                 char *version;
30033                 int major, minor, patch;
30034
30035                 version = db_version( &major, &minor, &patch );
30036
30037                 if( major != DB_VERSION_MAJOR ||
30038                         minor < DB_VERSION_MINOR )
30039                 {
30040                         printf("Berkeley DB version mismatch\n"
30041                                 "\theader: %s\n\tlibrary: %s\n",
30042                                 DB_VERSION_STRING, version);
30043                         return 1;
30044                 }
30045         }
30046 #endif
30047
30048 #if DB_VERSION_MAJOR > 2
30049         db_env_create( NULL, 0 );
30050 #elif DB_VERSION_MAJOR > 1
30051         db_appexit( NULL );
30052 #else
30053         (void) dbopen( NULL, 0, 0, 0, NULL);
30054 #endif
30055
30056   ;
30057   return 0;
30058 }
30059 _ACEOF
30060 rm -f conftest.$ac_objext conftest$ac_exeext
30061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30062   (eval $ac_link) 2>conftest.er1
30063   ac_status=$?
30064   grep -v '^ *+' conftest.er1 >conftest.err
30065   rm -f conftest.er1
30066   cat conftest.err >&5
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); } &&
30069          { ac_try='test -z "$ac_c_werror_flag"
30070                          || test ! -s conftest.err'
30071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072   (eval $ac_try) 2>&5
30073   ac_status=$?
30074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075   (exit $ac_status); }; } &&
30076          { ac_try='test -s conftest$ac_exeext'
30077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30078   (eval $ac_try) 2>&5
30079   ac_status=$?
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); }; }; then
30082   ol_cv_db_db3=yes
30083 else
30084   echo "$as_me: failed program was:" >&5
30085 sed 's/^/| /' conftest.$ac_ext >&5
30086
30087 ol_cv_db_db3=no
30088 fi
30089 rm -f conftest.err conftest.$ac_objext \
30090       conftest$ac_exeext conftest.$ac_ext
30091
30092         LIBS="$ol_LIBS"
30093
30094 fi
30095 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30096 echo "${ECHO_T}$ol_cv_db_db3" >&6
30097
30098         if test $ol_cv_db_db3 = yes ; then
30099                 ol_cv_lib_db=-ldb3
30100         fi
30101 fi
30102
30103         if test $ol_cv_lib_db = no ; then
30104         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30105 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30106 if test "${ol_cv_db_db_3+set}" = set; then
30107   echo $ECHO_N "(cached) $ECHO_C" >&6
30108 else
30109
30110         ol_DB_LIB=-ldb-3
30111         ol_LIBS=$LIBS
30112         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30113
30114         cat >conftest.$ac_ext <<_ACEOF
30115 /* confdefs.h.  */
30116 _ACEOF
30117 cat confdefs.h >>conftest.$ac_ext
30118 cat >>conftest.$ac_ext <<_ACEOF
30119 /* end confdefs.h.  */
30120
30121 #ifdef HAVE_DB_185_H
30122 # include <db_185.h>
30123 #else
30124 # include <db.h>
30125 #endif
30126
30127 #ifndef DB_VERSION_MAJOR
30128 # define DB_VERSION_MAJOR 1
30129 #endif
30130
30131 #ifndef NULL
30132 #define NULL ((void*)0)
30133 #endif
30134
30135 int
30136 main ()
30137 {
30138
30139 #if DB_VERSION_MAJOR > 1
30140         {
30141                 char *version;
30142                 int major, minor, patch;
30143
30144                 version = db_version( &major, &minor, &patch );
30145
30146                 if( major != DB_VERSION_MAJOR ||
30147                         minor < DB_VERSION_MINOR )
30148                 {
30149                         printf("Berkeley DB version mismatch\n"
30150                                 "\theader: %s\n\tlibrary: %s\n",
30151                                 DB_VERSION_STRING, version);
30152                         return 1;
30153                 }
30154         }
30155 #endif
30156
30157 #if DB_VERSION_MAJOR > 2
30158         db_env_create( NULL, 0 );
30159 #elif DB_VERSION_MAJOR > 1
30160         db_appexit( NULL );
30161 #else
30162         (void) dbopen( NULL, 0, 0, 0, NULL);
30163 #endif
30164
30165   ;
30166   return 0;
30167 }
30168 _ACEOF
30169 rm -f conftest.$ac_objext conftest$ac_exeext
30170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30171   (eval $ac_link) 2>conftest.er1
30172   ac_status=$?
30173   grep -v '^ *+' conftest.er1 >conftest.err
30174   rm -f conftest.er1
30175   cat conftest.err >&5
30176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); } &&
30178          { ac_try='test -z "$ac_c_werror_flag"
30179                          || test ! -s conftest.err'
30180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30181   (eval $ac_try) 2>&5
30182   ac_status=$?
30183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184   (exit $ac_status); }; } &&
30185          { ac_try='test -s conftest$ac_exeext'
30186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30187   (eval $ac_try) 2>&5
30188   ac_status=$?
30189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190   (exit $ac_status); }; }; then
30191   ol_cv_db_db_3=yes
30192 else
30193   echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30195
30196 ol_cv_db_db_3=no
30197 fi
30198 rm -f conftest.err conftest.$ac_objext \
30199       conftest$ac_exeext conftest.$ac_ext
30200
30201         LIBS="$ol_LIBS"
30202
30203 fi
30204 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30205 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30206
30207         if test $ol_cv_db_db_3 = yes ; then
30208                 ol_cv_lib_db=-ldb-3
30209         fi
30210 fi
30211
30212
30213 elif test $ol_cv_bdb_major = 2 ; then
30214         if test $ol_cv_lib_db = no ; then
30215         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30216 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30217 if test "${ol_cv_db_db2+set}" = set; then
30218   echo $ECHO_N "(cached) $ECHO_C" >&6
30219 else
30220
30221         ol_DB_LIB=-ldb2
30222         ol_LIBS=$LIBS
30223         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30224
30225         cat >conftest.$ac_ext <<_ACEOF
30226 /* confdefs.h.  */
30227 _ACEOF
30228 cat confdefs.h >>conftest.$ac_ext
30229 cat >>conftest.$ac_ext <<_ACEOF
30230 /* end confdefs.h.  */
30231
30232 #ifdef HAVE_DB_185_H
30233 # include <db_185.h>
30234 #else
30235 # include <db.h>
30236 #endif
30237
30238 #ifndef DB_VERSION_MAJOR
30239 # define DB_VERSION_MAJOR 1
30240 #endif
30241
30242 #ifndef NULL
30243 #define NULL ((void*)0)
30244 #endif
30245
30246 int
30247 main ()
30248 {
30249
30250 #if DB_VERSION_MAJOR > 1
30251         {
30252                 char *version;
30253                 int major, minor, patch;
30254
30255                 version = db_version( &major, &minor, &patch );
30256
30257                 if( major != DB_VERSION_MAJOR ||
30258                         minor < DB_VERSION_MINOR )
30259                 {
30260                         printf("Berkeley DB version mismatch\n"
30261                                 "\theader: %s\n\tlibrary: %s\n",
30262                                 DB_VERSION_STRING, version);
30263                         return 1;
30264                 }
30265         }
30266 #endif
30267
30268 #if DB_VERSION_MAJOR > 2
30269         db_env_create( NULL, 0 );
30270 #elif DB_VERSION_MAJOR > 1
30271         db_appexit( NULL );
30272 #else
30273         (void) dbopen( NULL, 0, 0, 0, NULL);
30274 #endif
30275
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30282   (eval $ac_link) 2>conftest.er1
30283   ac_status=$?
30284   grep -v '^ *+' conftest.er1 >conftest.err
30285   rm -f conftest.er1
30286   cat conftest.err >&5
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); } &&
30289          { ac_try='test -z "$ac_c_werror_flag"
30290                          || test ! -s conftest.err'
30291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292   (eval $ac_try) 2>&5
30293   ac_status=$?
30294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295   (exit $ac_status); }; } &&
30296          { ac_try='test -s conftest$ac_exeext'
30297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298   (eval $ac_try) 2>&5
30299   ac_status=$?
30300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301   (exit $ac_status); }; }; then
30302   ol_cv_db_db2=yes
30303 else
30304   echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30306
30307 ol_cv_db_db2=no
30308 fi
30309 rm -f conftest.err conftest.$ac_objext \
30310       conftest$ac_exeext conftest.$ac_ext
30311
30312         LIBS="$ol_LIBS"
30313
30314 fi
30315 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30316 echo "${ECHO_T}$ol_cv_db_db2" >&6
30317
30318         if test $ol_cv_db_db2 = yes ; then
30319                 ol_cv_lib_db=-ldb2
30320         fi
30321 fi
30322
30323         if test $ol_cv_lib_db = no ; then
30324         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30325 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30326 if test "${ol_cv_db_db_2+set}" = set; then
30327   echo $ECHO_N "(cached) $ECHO_C" >&6
30328 else
30329
30330         ol_DB_LIB=-ldb-2
30331         ol_LIBS=$LIBS
30332         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30333
30334         cat >conftest.$ac_ext <<_ACEOF
30335 /* confdefs.h.  */
30336 _ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h.  */
30340
30341 #ifdef HAVE_DB_185_H
30342 # include <db_185.h>
30343 #else
30344 # include <db.h>
30345 #endif
30346
30347 #ifndef DB_VERSION_MAJOR
30348 # define DB_VERSION_MAJOR 1
30349 #endif
30350
30351 #ifndef NULL
30352 #define NULL ((void*)0)
30353 #endif
30354
30355 int
30356 main ()
30357 {
30358
30359 #if DB_VERSION_MAJOR > 1
30360         {
30361                 char *version;
30362                 int major, minor, patch;
30363
30364                 version = db_version( &major, &minor, &patch );
30365
30366                 if( major != DB_VERSION_MAJOR ||
30367                         minor < DB_VERSION_MINOR )
30368                 {
30369                         printf("Berkeley DB version mismatch\n"
30370                                 "\theader: %s\n\tlibrary: %s\n",
30371                                 DB_VERSION_STRING, version);
30372                         return 1;
30373                 }
30374         }
30375 #endif
30376
30377 #if DB_VERSION_MAJOR > 2
30378         db_env_create( NULL, 0 );
30379 #elif DB_VERSION_MAJOR > 1
30380         db_appexit( NULL );
30381 #else
30382         (void) dbopen( NULL, 0, 0, 0, NULL);
30383 #endif
30384
30385   ;
30386   return 0;
30387 }
30388 _ACEOF
30389 rm -f conftest.$ac_objext conftest$ac_exeext
30390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30391   (eval $ac_link) 2>conftest.er1
30392   ac_status=$?
30393   grep -v '^ *+' conftest.er1 >conftest.err
30394   rm -f conftest.er1
30395   cat conftest.err >&5
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); } &&
30398          { ac_try='test -z "$ac_c_werror_flag"
30399                          || test ! -s conftest.err'
30400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30401   (eval $ac_try) 2>&5
30402   ac_status=$?
30403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404   (exit $ac_status); }; } &&
30405          { ac_try='test -s conftest$ac_exeext'
30406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30407   (eval $ac_try) 2>&5
30408   ac_status=$?
30409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); }; }; then
30411   ol_cv_db_db_2=yes
30412 else
30413   echo "$as_me: failed program was:" >&5
30414 sed 's/^/| /' conftest.$ac_ext >&5
30415
30416 ol_cv_db_db_2=no
30417 fi
30418 rm -f conftest.err conftest.$ac_objext \
30419       conftest$ac_exeext conftest.$ac_ext
30420
30421         LIBS="$ol_LIBS"
30422
30423 fi
30424 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30425 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30426
30427         if test $ol_cv_db_db_2 = yes ; then
30428                 ol_cv_lib_db=-ldb-2
30429         fi
30430 fi
30431
30432
30433 elif test $ol_cv_bdb_major = 1 ; then
30434         if test $ol_cv_lib_db = no ; then
30435         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30436 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30437 if test "${ol_cv_db_db1+set}" = set; then
30438   echo $ECHO_N "(cached) $ECHO_C" >&6
30439 else
30440
30441         ol_DB_LIB=-ldb1
30442         ol_LIBS=$LIBS
30443         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30444
30445         cat >conftest.$ac_ext <<_ACEOF
30446 /* confdefs.h.  */
30447 _ACEOF
30448 cat confdefs.h >>conftest.$ac_ext
30449 cat >>conftest.$ac_ext <<_ACEOF
30450 /* end confdefs.h.  */
30451
30452 #ifdef HAVE_DB_185_H
30453 # include <db_185.h>
30454 #else
30455 # include <db.h>
30456 #endif
30457
30458 #ifndef DB_VERSION_MAJOR
30459 # define DB_VERSION_MAJOR 1
30460 #endif
30461
30462 #ifndef NULL
30463 #define NULL ((void*)0)
30464 #endif
30465
30466 int
30467 main ()
30468 {
30469
30470 #if DB_VERSION_MAJOR > 1
30471         {
30472                 char *version;
30473                 int major, minor, patch;
30474
30475                 version = db_version( &major, &minor, &patch );
30476
30477                 if( major != DB_VERSION_MAJOR ||
30478                         minor < DB_VERSION_MINOR )
30479                 {
30480                         printf("Berkeley DB version mismatch\n"
30481                                 "\theader: %s\n\tlibrary: %s\n",
30482                                 DB_VERSION_STRING, version);
30483                         return 1;
30484                 }
30485         }
30486 #endif
30487
30488 #if DB_VERSION_MAJOR > 2
30489         db_env_create( NULL, 0 );
30490 #elif DB_VERSION_MAJOR > 1
30491         db_appexit( NULL );
30492 #else
30493         (void) dbopen( NULL, 0, 0, 0, NULL);
30494 #endif
30495
30496   ;
30497   return 0;
30498 }
30499 _ACEOF
30500 rm -f conftest.$ac_objext conftest$ac_exeext
30501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30502   (eval $ac_link) 2>conftest.er1
30503   ac_status=$?
30504   grep -v '^ *+' conftest.er1 >conftest.err
30505   rm -f conftest.er1
30506   cat conftest.err >&5
30507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508   (exit $ac_status); } &&
30509          { ac_try='test -z "$ac_c_werror_flag"
30510                          || test ! -s conftest.err'
30511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30512   (eval $ac_try) 2>&5
30513   ac_status=$?
30514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515   (exit $ac_status); }; } &&
30516          { ac_try='test -s conftest$ac_exeext'
30517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30518   (eval $ac_try) 2>&5
30519   ac_status=$?
30520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521   (exit $ac_status); }; }; then
30522   ol_cv_db_db1=yes
30523 else
30524   echo "$as_me: failed program was:" >&5
30525 sed 's/^/| /' conftest.$ac_ext >&5
30526
30527 ol_cv_db_db1=no
30528 fi
30529 rm -f conftest.err conftest.$ac_objext \
30530       conftest$ac_exeext conftest.$ac_ext
30531
30532         LIBS="$ol_LIBS"
30533
30534 fi
30535 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30536 echo "${ECHO_T}$ol_cv_db_db1" >&6
30537
30538         if test $ol_cv_db_db1 = yes ; then
30539                 ol_cv_lib_db=-ldb1
30540         fi
30541 fi
30542
30543         if test $ol_cv_lib_db = no ; then
30544         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30545 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30546 if test "${ol_cv_db_db_1+set}" = set; then
30547   echo $ECHO_N "(cached) $ECHO_C" >&6
30548 else
30549
30550         ol_DB_LIB=-ldb-1
30551         ol_LIBS=$LIBS
30552         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30553
30554         cat >conftest.$ac_ext <<_ACEOF
30555 /* confdefs.h.  */
30556 _ACEOF
30557 cat confdefs.h >>conftest.$ac_ext
30558 cat >>conftest.$ac_ext <<_ACEOF
30559 /* end confdefs.h.  */
30560
30561 #ifdef HAVE_DB_185_H
30562 # include <db_185.h>
30563 #else
30564 # include <db.h>
30565 #endif
30566
30567 #ifndef DB_VERSION_MAJOR
30568 # define DB_VERSION_MAJOR 1
30569 #endif
30570
30571 #ifndef NULL
30572 #define NULL ((void*)0)
30573 #endif
30574
30575 int
30576 main ()
30577 {
30578
30579 #if DB_VERSION_MAJOR > 1
30580         {
30581                 char *version;
30582                 int major, minor, patch;
30583
30584                 version = db_version( &major, &minor, &patch );
30585
30586                 if( major != DB_VERSION_MAJOR ||
30587                         minor < DB_VERSION_MINOR )
30588                 {
30589                         printf("Berkeley DB version mismatch\n"
30590                                 "\theader: %s\n\tlibrary: %s\n",
30591                                 DB_VERSION_STRING, version);
30592                         return 1;
30593                 }
30594         }
30595 #endif
30596
30597 #if DB_VERSION_MAJOR > 2
30598         db_env_create( NULL, 0 );
30599 #elif DB_VERSION_MAJOR > 1
30600         db_appexit( NULL );
30601 #else
30602         (void) dbopen( NULL, 0, 0, 0, NULL);
30603 #endif
30604
30605   ;
30606   return 0;
30607 }
30608 _ACEOF
30609 rm -f conftest.$ac_objext conftest$ac_exeext
30610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30611   (eval $ac_link) 2>conftest.er1
30612   ac_status=$?
30613   grep -v '^ *+' conftest.er1 >conftest.err
30614   rm -f conftest.er1
30615   cat conftest.err >&5
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); } &&
30618          { ac_try='test -z "$ac_c_werror_flag"
30619                          || test ! -s conftest.err'
30620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621   (eval $ac_try) 2>&5
30622   ac_status=$?
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); }; } &&
30625          { ac_try='test -s conftest$ac_exeext'
30626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30627   (eval $ac_try) 2>&5
30628   ac_status=$?
30629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630   (exit $ac_status); }; }; then
30631   ol_cv_db_db_1=yes
30632 else
30633   echo "$as_me: failed program was:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30635
30636 ol_cv_db_db_1=no
30637 fi
30638 rm -f conftest.err conftest.$ac_objext \
30639       conftest$ac_exeext conftest.$ac_ext
30640
30641         LIBS="$ol_LIBS"
30642
30643 fi
30644 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30645 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30646
30647         if test $ol_cv_db_db_1 = yes ; then
30648                 ol_cv_lib_db=-ldb-1
30649         fi
30650 fi
30651
30652 fi
30653 if test $ol_cv_lib_db = no ; then
30654         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30655 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30656 if test "${ol_cv_db_none+set}" = set; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659
30660         ol_DB_LIB=
30661         ol_LIBS=$LIBS
30662         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30663
30664         cat >conftest.$ac_ext <<_ACEOF
30665 /* confdefs.h.  */
30666 _ACEOF
30667 cat confdefs.h >>conftest.$ac_ext
30668 cat >>conftest.$ac_ext <<_ACEOF
30669 /* end confdefs.h.  */
30670
30671 #ifdef HAVE_DB_185_H
30672 # include <db_185.h>
30673 #else
30674 # include <db.h>
30675 #endif
30676
30677 #ifndef DB_VERSION_MAJOR
30678 # define DB_VERSION_MAJOR 1
30679 #endif
30680
30681 #ifndef NULL
30682 #define NULL ((void*)0)
30683 #endif
30684
30685 int
30686 main ()
30687 {
30688
30689 #if DB_VERSION_MAJOR > 1
30690         {
30691                 char *version;
30692                 int major, minor, patch;
30693
30694                 version = db_version( &major, &minor, &patch );
30695
30696                 if( major != DB_VERSION_MAJOR ||
30697                         minor < DB_VERSION_MINOR )
30698                 {
30699                         printf("Berkeley DB version mismatch\n"
30700                                 "\theader: %s\n\tlibrary: %s\n",
30701                                 DB_VERSION_STRING, version);
30702                         return 1;
30703                 }
30704         }
30705 #endif
30706
30707 #if DB_VERSION_MAJOR > 2
30708         db_env_create( NULL, 0 );
30709 #elif DB_VERSION_MAJOR > 1
30710         db_appexit( NULL );
30711 #else
30712         (void) dbopen( NULL, 0, 0, 0, NULL);
30713 #endif
30714
30715   ;
30716   return 0;
30717 }
30718 _ACEOF
30719 rm -f conftest.$ac_objext conftest$ac_exeext
30720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30721   (eval $ac_link) 2>conftest.er1
30722   ac_status=$?
30723   grep -v '^ *+' conftest.er1 >conftest.err
30724   rm -f conftest.er1
30725   cat conftest.err >&5
30726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727   (exit $ac_status); } &&
30728          { ac_try='test -z "$ac_c_werror_flag"
30729                          || test ! -s conftest.err'
30730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731   (eval $ac_try) 2>&5
30732   ac_status=$?
30733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734   (exit $ac_status); }; } &&
30735          { ac_try='test -s conftest$ac_exeext'
30736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30737   (eval $ac_try) 2>&5
30738   ac_status=$?
30739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740   (exit $ac_status); }; }; then
30741   ol_cv_db_none=yes
30742 else
30743   echo "$as_me: failed program was:" >&5
30744 sed 's/^/| /' conftest.$ac_ext >&5
30745
30746 ol_cv_db_none=no
30747 fi
30748 rm -f conftest.err conftest.$ac_objext \
30749       conftest$ac_exeext conftest.$ac_ext
30750
30751         LIBS="$ol_LIBS"
30752
30753 fi
30754 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30755 echo "${ECHO_T}$ol_cv_db_none" >&6
30756
30757         if test $ol_cv_db_none = yes ; then
30758                 ol_cv_lib_db=yes
30759         fi
30760 fi
30761
30762
30763         if test "$ol_cv_lib_db" != no ; then
30764                 ol_cv_berkeley_db=yes
30765                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
30766 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
30767 if test "${ol_cv_berkeley_db_version+set}" = set; then
30768   echo $ECHO_N "(cached) $ECHO_C" >&6
30769 else
30770
30771         ol_LIBS="$LIBS"
30772         LIBS="$LTHREAD_LIBS $LIBS"
30773         if test $ol_cv_lib_db != yes ; then
30774                 LIBS="$ol_cv_lib_db $LIBS"
30775         fi
30776
30777         if test "$cross_compiling" = yes; then
30778   ol_cv_berkeley_db_version=cross
30779 else
30780   cat >conftest.$ac_ext <<_ACEOF
30781 /* confdefs.h.  */
30782 _ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h.  */
30786
30787 #ifdef HAVE_DB_185_H
30788         choke me;
30789 #else
30790 #include <db.h>
30791 #endif
30792 #ifndef DB_VERSION_MAJOR
30793 # define DB_VERSION_MAJOR 1
30794 #endif
30795 #ifndef NULL
30796 #define NULL ((void *)0)
30797 #endif
30798 main()
30799 {
30800 #if DB_VERSION_MAJOR > 1
30801         char *version;
30802         int major, minor, patch;
30803
30804         version = db_version( &major, &minor, &patch );
30805
30806         if( major != DB_VERSION_MAJOR ||
30807                 minor != DB_VERSION_MINOR ||
30808                 patch != DB_VERSION_PATCH )
30809         {
30810                 printf("Berkeley DB version mismatch\n"
30811                         "\theader: %s\n\tlibrary: %s\n",
30812                         DB_VERSION_STRING, version);
30813                 return 1;
30814         }
30815 #endif
30816
30817         return 0;
30818 }
30819 _ACEOF
30820 rm -f conftest$ac_exeext
30821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30822   (eval $ac_link) 2>&5
30823   ac_status=$?
30824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827   (eval $ac_try) 2>&5
30828   ac_status=$?
30829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830   (exit $ac_status); }; }; then
30831   ol_cv_berkeley_db_version=yes
30832 else
30833   echo "$as_me: program exited with status $ac_status" >&5
30834 echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30836
30837 ( exit $ac_status )
30838 ol_cv_berkeley_db_version=no
30839 fi
30840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30841 fi
30842
30843         LIBS="$ol_LIBS"
30844
30845 fi
30846 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
30847 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
30848
30849         if test $ol_cv_berkeley_db_version = no ; then
30850                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
30851 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
30852    { (exit 1); exit 1; }; }
30853         fi
30854
30855                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
30856 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
30857 if test "${ol_cv_berkeley_db_thread+set}" = set; then
30858   echo $ECHO_N "(cached) $ECHO_C" >&6
30859 else
30860
30861         ol_LIBS="$LIBS"
30862         LIBS="$LTHREAD_LIBS $LIBS"
30863         if test $ol_cv_lib_db != yes ; then
30864                 LIBS="$ol_cv_lib_db $LIBS"
30865         fi
30866
30867         if test "$cross_compiling" = yes; then
30868   ol_cv_berkeley_db_thread=cross
30869 else
30870   cat >conftest.$ac_ext <<_ACEOF
30871 /* confdefs.h.  */
30872 _ACEOF
30873 cat confdefs.h >>conftest.$ac_ext
30874 cat >>conftest.$ac_ext <<_ACEOF
30875 /* end confdefs.h.  */
30876
30877 #ifdef HAVE_DB_185_H
30878         choke me;
30879 #else
30880 #include <db.h>
30881 #endif
30882 #ifndef NULL
30883 #define NULL ((void *)0)
30884 #endif
30885 main()
30886 {
30887         int rc;
30888         u_int32_t flags = DB_CREATE |
30889 #ifdef DB_PRIVATE
30890                 DB_PRIVATE |
30891 #endif
30892                 DB_THREAD;
30893
30894 #if DB_VERSION_MAJOR > 2
30895         DB_ENV *env = NULL;
30896
30897         rc = db_env_create( &env, 0 );
30898
30899         flags |= DB_INIT_MPOOL;
30900 #ifdef DB_MPOOL_PRIVATE
30901         flags |= DB_MPOOL_PRIVATE;
30902 #endif
30903
30904         if( rc ) {
30905                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30906                 return rc;
30907         }
30908
30909 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
30910         rc = env->open( env, NULL, flags, 0 );
30911 #else
30912         rc = env->open( env, NULL, NULL, flags, 0 );
30913 #endif
30914
30915         if ( rc == 0 ) {
30916                 rc = env->close( env, 0 );
30917         }
30918
30919         if( rc ) {
30920                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30921                 return rc;
30922         }
30923
30924 #else
30925         DB_ENV env;
30926         memset( &env, '\0', sizeof(env) );
30927
30928         rc = db_appinit( NULL, NULL, &env, flags );
30929
30930         if( rc == 0 ) {
30931                 db_appexit( &env );
30932         }
30933
30934         unlink("__db_mpool.share");
30935         unlink("__db_lock.share");
30936 #endif
30937
30938         return rc;
30939 }
30940 _ACEOF
30941 rm -f conftest$ac_exeext
30942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30943   (eval $ac_link) 2>&5
30944   ac_status=$?
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948   (eval $ac_try) 2>&5
30949   ac_status=$?
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); }; }; then
30952   ol_cv_berkeley_db_thread=yes
30953 else
30954   echo "$as_me: program exited with status $ac_status" >&5
30955 echo "$as_me: failed program was:" >&5
30956 sed 's/^/| /' conftest.$ac_ext >&5
30957
30958 ( exit $ac_status )
30959 ol_cv_berkeley_db_thread=no
30960 fi
30961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30962 fi
30963
30964         LIBS="$ol_LIBS"
30965
30966 fi
30967 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
30968 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
30969
30970         if test $ol_cv_berkeley_db_thread != no ; then
30971
30972 cat >>confdefs.h <<\_ACEOF
30973 #define HAVE_BERKELEY_DB_THREAD 1
30974 _ACEOF
30975
30976         fi
30977
30978         fi
30979 fi
30980
30981
30982         if test $ol_cv_berkeley_db = no ; then
30983                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
30984 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
30985    { (exit 1); exit 1; }; }
30986         fi
30987
30988
30989 cat >>confdefs.h <<\_ACEOF
30990 #define HAVE_BERKELEY_DB 1
30991 _ACEOF
30992
30993
30994                         if test $ol_cv_lib_db != yes ; then
30995                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
30996         fi
30997
30998         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
30999 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31000 if test "${ol_cv_bdb_compat+set}" = set; then
31001   echo $ECHO_N "(cached) $ECHO_C" >&6
31002 else
31003
31004         cat >conftest.$ac_ext <<_ACEOF
31005 /* confdefs.h.  */
31006 _ACEOF
31007 cat confdefs.h >>conftest.$ac_ext
31008 cat >>conftest.$ac_ext <<_ACEOF
31009 /* end confdefs.h.  */
31010
31011 #include <db.h>
31012
31013  /* this check could be improved */
31014 #ifndef DB_VERSION_MAJOR
31015 #       define DB_VERSION_MAJOR 1
31016 #endif
31017 #ifndef DB_VERSION_MINOR
31018 #       define DB_VERSION_MINOR 0
31019 #endif
31020
31021 /* require 4.2 or later, but exclude 4.3 */
31022 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31023         __db_version_compat
31024 #endif
31025
31026 _ACEOF
31027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31028   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31029   ol_cv_bdb_compat=yes
31030 else
31031   ol_cv_bdb_compat=no
31032 fi
31033 rm -f conftest*
31034
31035 fi
31036 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31037 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31038
31039
31040         if test $ol_cv_bdb_compat != yes ; then
31041                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31042 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31043    { (exit 1); exit 1; }; }
31044         fi
31045
31046         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31047
31048         ol_link_bdb=yes
31049 fi
31050
31051
31052 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31053         BUILD_LIBS_DYNAMIC=shared
31054
31055 cat >>confdefs.h <<\_ACEOF
31056 #define LDAP_LIBS_DYNAMIC 1
31057 _ACEOF
31058
31059         LTSTATIC=""
31060 else
31061         BUILD_LIBS_DYNAMIC=static
31062         LTSTATIC="-static"
31063 fi
31064
31065 if test $ol_enable_wrappers != no ; then
31066
31067 for ac_header in tcpd.h
31068 do
31069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31071   echo "$as_me:$LINENO: checking for $ac_header" >&5
31072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31074   echo $ECHO_N "(cached) $ECHO_C" >&6
31075 fi
31076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31078 else
31079   # Is the header compilable?
31080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31082 cat >conftest.$ac_ext <<_ACEOF
31083 /* confdefs.h.  */
31084 _ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h.  */
31088 $ac_includes_default
31089 #include <$ac_header>
31090 _ACEOF
31091 rm -f conftest.$ac_objext
31092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31093   (eval $ac_compile) 2>conftest.er1
31094   ac_status=$?
31095   grep -v '^ *+' conftest.er1 >conftest.err
31096   rm -f conftest.er1
31097   cat conftest.err >&5
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); } &&
31100          { ac_try='test -z "$ac_c_werror_flag"
31101                          || test ! -s conftest.err'
31102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103   (eval $ac_try) 2>&5
31104   ac_status=$?
31105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106   (exit $ac_status); }; } &&
31107          { ac_try='test -s conftest.$ac_objext'
31108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31109   (eval $ac_try) 2>&5
31110   ac_status=$?
31111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112   (exit $ac_status); }; }; then
31113   ac_header_compiler=yes
31114 else
31115   echo "$as_me: failed program was:" >&5
31116 sed 's/^/| /' conftest.$ac_ext >&5
31117
31118 ac_header_compiler=no
31119 fi
31120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31122 echo "${ECHO_T}$ac_header_compiler" >&6
31123
31124 # Is the header present?
31125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31127 cat >conftest.$ac_ext <<_ACEOF
31128 /* confdefs.h.  */
31129 _ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h.  */
31133 #include <$ac_header>
31134 _ACEOF
31135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31137   ac_status=$?
31138   grep -v '^ *+' conftest.er1 >conftest.err
31139   rm -f conftest.er1
31140   cat conftest.err >&5
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); } >/dev/null; then
31143   if test -s conftest.err; then
31144     ac_cpp_err=$ac_c_preproc_warn_flag
31145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31146   else
31147     ac_cpp_err=
31148   fi
31149 else
31150   ac_cpp_err=yes
31151 fi
31152 if test -z "$ac_cpp_err"; then
31153   ac_header_preproc=yes
31154 else
31155   echo "$as_me: failed program was:" >&5
31156 sed 's/^/| /' conftest.$ac_ext >&5
31157
31158   ac_header_preproc=no
31159 fi
31160 rm -f conftest.err conftest.$ac_ext
31161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31162 echo "${ECHO_T}$ac_header_preproc" >&6
31163
31164 # So?  What about this header?
31165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31166   yes:no: )
31167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31171     ac_header_preproc=yes
31172     ;;
31173   no:yes:* )
31174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31176     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31177 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31178     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31180     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31181 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31184     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31186     (
31187       cat <<\_ASBOX
31188 ## --------------------------------------------- ##
31189 ## Report this to <http://www.openldap.org/its/> ##
31190 ## --------------------------------------------- ##
31191 _ASBOX
31192     ) |
31193       sed "s/^/$as_me: WARNING:     /" >&2
31194     ;;
31195 esac
31196 echo "$as_me:$LINENO: checking for $ac_header" >&5
31197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31199   echo $ECHO_N "(cached) $ECHO_C" >&6
31200 else
31201   eval "$as_ac_Header=\$ac_header_preproc"
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
31206 fi
31207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31208   cat >>confdefs.h <<_ACEOF
31209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31210 _ACEOF
31211
31212                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31213 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31214                 save_LIBS="$LIBS"
31215                 LIBS="$LIBS -lwrap"
31216                 cat >conftest.$ac_ext <<_ACEOF
31217 /* confdefs.h.  */
31218 _ACEOF
31219 cat confdefs.h >>conftest.$ac_ext
31220 cat >>conftest.$ac_ext <<_ACEOF
31221 /* end confdefs.h.  */
31222
31223 #include <tcpd.h>
31224 int allow_severity = 0;
31225 int deny_severity  = 0;
31226
31227 struct request_info *req;
31228
31229 int
31230 main ()
31231 {
31232
31233 hosts_access(req)
31234
31235   ;
31236   return 0;
31237 }
31238 _ACEOF
31239 rm -f conftest.$ac_objext conftest$ac_exeext
31240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31241   (eval $ac_link) 2>conftest.er1
31242   ac_status=$?
31243   grep -v '^ *+' conftest.er1 >conftest.err
31244   rm -f conftest.er1
31245   cat conftest.err >&5
31246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247   (exit $ac_status); } &&
31248          { ac_try='test -z "$ac_c_werror_flag"
31249                          || test ! -s conftest.err'
31250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31251   (eval $ac_try) 2>&5
31252   ac_status=$?
31253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254   (exit $ac_status); }; } &&
31255          { ac_try='test -s conftest$ac_exeext'
31256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31257   (eval $ac_try) 2>&5
31258   ac_status=$?
31259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260   (exit $ac_status); }; }; then
31261   echo "$as_me:$LINENO: result: -lwrap" >&5
31262 echo "${ECHO_T}-lwrap" >&6
31263                 have_wrappers=yes
31264                 LIBS="$save_LIBS"
31265 else
31266   echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31268
31269
31270                                 LIBS="$LIBS -lnsl"
31271                 cat >conftest.$ac_ext <<_ACEOF
31272 /* confdefs.h.  */
31273 _ACEOF
31274 cat confdefs.h >>conftest.$ac_ext
31275 cat >>conftest.$ac_ext <<_ACEOF
31276 /* end confdefs.h.  */
31277
31278 #include <tcpd.h>
31279 int allow_severity = 0;
31280 int deny_severity  = 0;
31281
31282 struct request_info *req;
31283
31284 int
31285 main ()
31286 {
31287
31288 hosts_access(req)
31289
31290   ;
31291   return 0;
31292 }
31293 _ACEOF
31294 rm -f conftest.$ac_objext conftest$ac_exeext
31295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31296   (eval $ac_link) 2>conftest.er1
31297   ac_status=$?
31298   grep -v '^ *+' conftest.er1 >conftest.err
31299   rm -f conftest.er1
31300   cat conftest.err >&5
31301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302   (exit $ac_status); } &&
31303          { ac_try='test -z "$ac_c_werror_flag"
31304                          || test ! -s conftest.err'
31305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31306   (eval $ac_try) 2>&5
31307   ac_status=$?
31308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309   (exit $ac_status); }; } &&
31310          { ac_try='test -s conftest$ac_exeext'
31311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312   (eval $ac_try) 2>&5
31313   ac_status=$?
31314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315   (exit $ac_status); }; }; then
31316   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31317 echo "${ECHO_T}-lwrap -lnsl" >&6
31318                 have_wrappers=yes
31319                 LIBS="$save_LIBS -lnsl"
31320 else
31321   echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31323
31324
31325                 echo "$as_me:$LINENO: result: no" >&5
31326 echo "${ECHO_T}no" >&6
31327                 have_wrappers=no
31328                 LIBS=$save_LIBS
31329 fi
31330 rm -f conftest.err conftest.$ac_objext \
31331       conftest$ac_exeext conftest.$ac_ext
31332 fi
31333 rm -f conftest.err conftest.$ac_objext \
31334       conftest$ac_exeext conftest.$ac_ext
31335 else
31336   have_wrappers=no
31337 fi
31338
31339 done
31340
31341
31342         if test $have_wrappers = yes ; then
31343
31344 cat >>confdefs.h <<\_ACEOF
31345 #define HAVE_TCPD 1
31346 _ACEOF
31347
31348                 WRAP_LIBS="-lwrap"
31349         elif test $ol_enable_wrappers = yes ; then
31350                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31351 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31352    { (exit 1); exit 1; }; }
31353         else
31354                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31355 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31356                 WRAP_LIBS=""
31357         fi
31358 fi
31359
31360 if test $ol_enable_syslog != no ; then
31361         echo "$as_me:$LINENO: checking for openlog" >&5
31362 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31363 if test "${ac_cv_func_openlog+set}" = set; then
31364   echo $ECHO_N "(cached) $ECHO_C" >&6
31365 else
31366   cat >conftest.$ac_ext <<_ACEOF
31367 /* confdefs.h.  */
31368 _ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h.  */
31372 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31374 #define openlog innocuous_openlog
31375
31376 /* System header to define __stub macros and hopefully few prototypes,
31377     which can conflict with char openlog (); below.
31378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31379     <limits.h> exists even on freestanding compilers.  */
31380
31381 #ifdef __STDC__
31382 # include <limits.h>
31383 #else
31384 # include <assert.h>
31385 #endif
31386
31387 #undef openlog
31388
31389 /* Override any gcc2 internal prototype to avoid an error.  */
31390 #ifdef __cplusplus
31391 extern "C"
31392 {
31393 #endif
31394 /* We use char because int might match the return type of a gcc2
31395    builtin and then its argument prototype would still apply.  */
31396 char openlog ();
31397 /* The GNU C library defines this for functions which it implements
31398     to always fail with ENOSYS.  Some functions are actually named
31399     something starting with __ and the normal name is an alias.  */
31400 #if defined (__stub_openlog) || defined (__stub___openlog)
31401 choke me
31402 #else
31403 char (*f) () = openlog;
31404 #endif
31405 #ifdef __cplusplus
31406 }
31407 #endif
31408
31409 int
31410 main ()
31411 {
31412 return f != openlog;
31413   ;
31414   return 0;
31415 }
31416 _ACEOF
31417 rm -f conftest.$ac_objext conftest$ac_exeext
31418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31419   (eval $ac_link) 2>conftest.er1
31420   ac_status=$?
31421   grep -v '^ *+' conftest.er1 >conftest.err
31422   rm -f conftest.er1
31423   cat conftest.err >&5
31424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425   (exit $ac_status); } &&
31426          { ac_try='test -z "$ac_c_werror_flag"
31427                          || test ! -s conftest.err'
31428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31429   (eval $ac_try) 2>&5
31430   ac_status=$?
31431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432   (exit $ac_status); }; } &&
31433          { ac_try='test -s conftest$ac_exeext'
31434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31435   (eval $ac_try) 2>&5
31436   ac_status=$?
31437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438   (exit $ac_status); }; }; then
31439   ac_cv_func_openlog=yes
31440 else
31441   echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31443
31444 ac_cv_func_openlog=no
31445 fi
31446 rm -f conftest.err conftest.$ac_objext \
31447       conftest$ac_exeext conftest.$ac_ext
31448 fi
31449 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31450 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31451
31452         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31453                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31454 echo "$as_me: error: could not find syslog" >&2;}
31455    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31456         fi
31457         ol_enable_syslog=$ac_cv_func_openlog
31458 fi
31459
31460 ol_link_sql=no
31461 if test $ol_enable_sql != no ; then
31462
31463
31464 for ac_header in sql.h sqlext.h
31465 do
31466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31468   echo "$as_me:$LINENO: checking for $ac_header" >&5
31469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31471   echo $ECHO_N "(cached) $ECHO_C" >&6
31472 fi
31473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31475 else
31476   # Is the header compilable?
31477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31479 cat >conftest.$ac_ext <<_ACEOF
31480 /* confdefs.h.  */
31481 _ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h.  */
31485 $ac_includes_default
31486 #include <$ac_header>
31487 _ACEOF
31488 rm -f conftest.$ac_objext
31489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31490   (eval $ac_compile) 2>conftest.er1
31491   ac_status=$?
31492   grep -v '^ *+' conftest.er1 >conftest.err
31493   rm -f conftest.er1
31494   cat conftest.err >&5
31495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496   (exit $ac_status); } &&
31497          { ac_try='test -z "$ac_c_werror_flag"
31498                          || test ! -s conftest.err'
31499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31500   (eval $ac_try) 2>&5
31501   ac_status=$?
31502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503   (exit $ac_status); }; } &&
31504          { ac_try='test -s conftest.$ac_objext'
31505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31506   (eval $ac_try) 2>&5
31507   ac_status=$?
31508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509   (exit $ac_status); }; }; then
31510   ac_header_compiler=yes
31511 else
31512   echo "$as_me: failed program was:" >&5
31513 sed 's/^/| /' conftest.$ac_ext >&5
31514
31515 ac_header_compiler=no
31516 fi
31517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31519 echo "${ECHO_T}$ac_header_compiler" >&6
31520
31521 # Is the header present?
31522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31524 cat >conftest.$ac_ext <<_ACEOF
31525 /* confdefs.h.  */
31526 _ACEOF
31527 cat confdefs.h >>conftest.$ac_ext
31528 cat >>conftest.$ac_ext <<_ACEOF
31529 /* end confdefs.h.  */
31530 #include <$ac_header>
31531 _ACEOF
31532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31534   ac_status=$?
31535   grep -v '^ *+' conftest.er1 >conftest.err
31536   rm -f conftest.er1
31537   cat conftest.err >&5
31538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); } >/dev/null; then
31540   if test -s conftest.err; then
31541     ac_cpp_err=$ac_c_preproc_warn_flag
31542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31543   else
31544     ac_cpp_err=
31545   fi
31546 else
31547   ac_cpp_err=yes
31548 fi
31549 if test -z "$ac_cpp_err"; then
31550   ac_header_preproc=yes
31551 else
31552   echo "$as_me: failed program was:" >&5
31553 sed 's/^/| /' conftest.$ac_ext >&5
31554
31555   ac_header_preproc=no
31556 fi
31557 rm -f conftest.err conftest.$ac_ext
31558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31559 echo "${ECHO_T}$ac_header_preproc" >&6
31560
31561 # So?  What about this header?
31562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31563   yes:no: )
31564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31568     ac_header_preproc=yes
31569     ;;
31570   no:yes:* )
31571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31583     (
31584       cat <<\_ASBOX
31585 ## --------------------------------------------- ##
31586 ## Report this to <http://www.openldap.org/its/> ##
31587 ## --------------------------------------------- ##
31588 _ASBOX
31589     ) |
31590       sed "s/^/$as_me: WARNING:     /" >&2
31591     ;;
31592 esac
31593 echo "$as_me:$LINENO: checking for $ac_header" >&5
31594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31596   echo $ECHO_N "(cached) $ECHO_C" >&6
31597 else
31598   eval "$as_ac_Header=\$ac_header_preproc"
31599 fi
31600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31602
31603 fi
31604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31605   cat >>confdefs.h <<_ACEOF
31606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31607 _ACEOF
31608
31609 else
31610
31611                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31612 echo "$as_me: error: could not locate SQL headers" >&2;}
31613    { (exit 1); exit 1; }; }
31614
31615 fi
31616
31617 done
31618
31619
31620         sql_LIBS="$LIBS"
31621         LIBS="$LTHREAD_LIBS"
31622
31623         if test $ol_with_odbc = auto ; then
31624                 ol_with_odbc="iodbc unixodbc"
31625         fi
31626
31627         for odbc in $ol_with_odbc ; do
31628                 if test $ol_link_sql = no ; then
31629                         case $odbc in
31630                         iodbc)
31631                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31632 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31633 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31634   echo $ECHO_N "(cached) $ECHO_C" >&6
31635 else
31636   ac_check_lib_save_LIBS=$LIBS
31637 LIBS="-liodbc  $LIBS"
31638 cat >conftest.$ac_ext <<_ACEOF
31639 /* confdefs.h.  */
31640 _ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h.  */
31644
31645 /* Override any gcc2 internal prototype to avoid an error.  */
31646 #ifdef __cplusplus
31647 extern "C"
31648 #endif
31649 /* We use char because int might match the return type of a gcc2
31650    builtin and then its argument prototype would still apply.  */
31651 char SQLDriverConnect ();
31652 int
31653 main ()
31654 {
31655 SQLDriverConnect ();
31656   ;
31657   return 0;
31658 }
31659 _ACEOF
31660 rm -f conftest.$ac_objext conftest$ac_exeext
31661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31662   (eval $ac_link) 2>conftest.er1
31663   ac_status=$?
31664   grep -v '^ *+' conftest.er1 >conftest.err
31665   rm -f conftest.er1
31666   cat conftest.err >&5
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); } &&
31669          { ac_try='test -z "$ac_c_werror_flag"
31670                          || test ! -s conftest.err'
31671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31672   (eval $ac_try) 2>&5
31673   ac_status=$?
31674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31675   (exit $ac_status); }; } &&
31676          { ac_try='test -s conftest$ac_exeext'
31677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31678   (eval $ac_try) 2>&5
31679   ac_status=$?
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); }; }; then
31682   ac_cv_lib_iodbc_SQLDriverConnect=yes
31683 else
31684   echo "$as_me: failed program was:" >&5
31685 sed 's/^/| /' conftest.$ac_ext >&5
31686
31687 ac_cv_lib_iodbc_SQLDriverConnect=no
31688 fi
31689 rm -f conftest.err conftest.$ac_objext \
31690       conftest$ac_exeext conftest.$ac_ext
31691 LIBS=$ac_check_lib_save_LIBS
31692 fi
31693 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31694 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31695 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31696   have_iodbc=yes
31697 else
31698   have_iodbc=no
31699 fi
31700
31701                                 if test $have_iodbc = yes ; then
31702                                         ol_link_sql="-liodbc"
31703                                 fi
31704                                 ;;
31705
31706                         unixodbc)
31707                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31708 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31709 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31710   echo $ECHO_N "(cached) $ECHO_C" >&6
31711 else
31712   ac_check_lib_save_LIBS=$LIBS
31713 LIBS="-lodbc  $LIBS"
31714 cat >conftest.$ac_ext <<_ACEOF
31715 /* confdefs.h.  */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h.  */
31720
31721 /* Override any gcc2 internal prototype to avoid an error.  */
31722 #ifdef __cplusplus
31723 extern "C"
31724 #endif
31725 /* We use char because int might match the return type of a gcc2
31726    builtin and then its argument prototype would still apply.  */
31727 char SQLDriverConnect ();
31728 int
31729 main ()
31730 {
31731 SQLDriverConnect ();
31732   ;
31733   return 0;
31734 }
31735 _ACEOF
31736 rm -f conftest.$ac_objext conftest$ac_exeext
31737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31738   (eval $ac_link) 2>conftest.er1
31739   ac_status=$?
31740   grep -v '^ *+' conftest.er1 >conftest.err
31741   rm -f conftest.er1
31742   cat conftest.err >&5
31743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744   (exit $ac_status); } &&
31745          { ac_try='test -z "$ac_c_werror_flag"
31746                          || test ! -s conftest.err'
31747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748   (eval $ac_try) 2>&5
31749   ac_status=$?
31750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751   (exit $ac_status); }; } &&
31752          { ac_try='test -s conftest$ac_exeext'
31753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31754   (eval $ac_try) 2>&5
31755   ac_status=$?
31756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757   (exit $ac_status); }; }; then
31758   ac_cv_lib_odbc_SQLDriverConnect=yes
31759 else
31760   echo "$as_me: failed program was:" >&5
31761 sed 's/^/| /' conftest.$ac_ext >&5
31762
31763 ac_cv_lib_odbc_SQLDriverConnect=no
31764 fi
31765 rm -f conftest.err conftest.$ac_objext \
31766       conftest$ac_exeext conftest.$ac_ext
31767 LIBS=$ac_check_lib_save_LIBS
31768 fi
31769 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
31770 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
31771 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
31772   have_odbc=yes
31773 else
31774   have_odbc=no
31775 fi
31776
31777                                 if test $have_odbc = yes ; then
31778                                         ol_link_sql="-lodbc"
31779                                 fi
31780                                 ;;
31781
31782                         *)
31783                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
31784 echo "$as_me: error: unknown ODBC library" >&2;}
31785    { (exit 1); exit 1; }; }
31786                                 ;;
31787                         esac
31788                 fi
31789         done
31790
31791         LIBS="$sql_LIBS"
31792
31793         if test $ol_link_sql != no ; then
31794                 SLAPD_SQL_LIBS="$ol_link_sql"
31795
31796         elif test $ol_enable_sql != auto ; then
31797                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
31798 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
31799    { (exit 1); exit 1; }; }
31800         fi
31801 fi
31802
31803 ol_icu=no
31804
31805 for ac_header in unicode/utypes.h
31806 do
31807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31809   echo "$as_me:$LINENO: checking for $ac_header" >&5
31810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31812   echo $ECHO_N "(cached) $ECHO_C" >&6
31813 fi
31814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31816 else
31817   # Is the header compilable?
31818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31820 cat >conftest.$ac_ext <<_ACEOF
31821 /* confdefs.h.  */
31822 _ACEOF
31823 cat confdefs.h >>conftest.$ac_ext
31824 cat >>conftest.$ac_ext <<_ACEOF
31825 /* end confdefs.h.  */
31826 $ac_includes_default
31827 #include <$ac_header>
31828 _ACEOF
31829 rm -f conftest.$ac_objext
31830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31831   (eval $ac_compile) 2>conftest.er1
31832   ac_status=$?
31833   grep -v '^ *+' conftest.er1 >conftest.err
31834   rm -f conftest.er1
31835   cat conftest.err >&5
31836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837   (exit $ac_status); } &&
31838          { ac_try='test -z "$ac_c_werror_flag"
31839                          || test ! -s conftest.err'
31840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841   (eval $ac_try) 2>&5
31842   ac_status=$?
31843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844   (exit $ac_status); }; } &&
31845          { ac_try='test -s conftest.$ac_objext'
31846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847   (eval $ac_try) 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; }; then
31851   ac_header_compiler=yes
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856 ac_header_compiler=no
31857 fi
31858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31860 echo "${ECHO_T}$ac_header_compiler" >&6
31861
31862 # Is the header present?
31863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31865 cat >conftest.$ac_ext <<_ACEOF
31866 /* confdefs.h.  */
31867 _ACEOF
31868 cat confdefs.h >>conftest.$ac_ext
31869 cat >>conftest.$ac_ext <<_ACEOF
31870 /* end confdefs.h.  */
31871 #include <$ac_header>
31872 _ACEOF
31873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31875   ac_status=$?
31876   grep -v '^ *+' conftest.er1 >conftest.err
31877   rm -f conftest.er1
31878   cat conftest.err >&5
31879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880   (exit $ac_status); } >/dev/null; then
31881   if test -s conftest.err; then
31882     ac_cpp_err=$ac_c_preproc_warn_flag
31883     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31884   else
31885     ac_cpp_err=
31886   fi
31887 else
31888   ac_cpp_err=yes
31889 fi
31890 if test -z "$ac_cpp_err"; then
31891   ac_header_preproc=yes
31892 else
31893   echo "$as_me: failed program was:" >&5
31894 sed 's/^/| /' conftest.$ac_ext >&5
31895
31896   ac_header_preproc=no
31897 fi
31898 rm -f conftest.err conftest.$ac_ext
31899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31900 echo "${ECHO_T}$ac_header_preproc" >&6
31901
31902 # So?  What about this header?
31903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31904   yes:no: )
31905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31909     ac_header_preproc=yes
31910     ;;
31911   no:yes:* )
31912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31924     (
31925       cat <<\_ASBOX
31926 ## --------------------------------------------- ##
31927 ## Report this to <http://www.openldap.org/its/> ##
31928 ## --------------------------------------------- ##
31929 _ASBOX
31930     ) |
31931       sed "s/^/$as_me: WARNING:     /" >&2
31932     ;;
31933 esac
31934 echo "$as_me:$LINENO: checking for $ac_header" >&5
31935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31937   echo $ECHO_N "(cached) $ECHO_C" >&6
31938 else
31939   eval "$as_ac_Header=\$ac_header_preproc"
31940 fi
31941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31943
31944 fi
31945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31946   cat >>confdefs.h <<_ACEOF
31947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31948 _ACEOF
31949
31950 fi
31951
31952 done
31953
31954 if test $ac_cv_header_unicode_utypes_h = yes ; then
31955                 OL_ICULIBS="-licuuc -licudata"
31956
31957         echo "$as_me:$LINENO: checking for ICU libraries" >&5
31958 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
31959 if test "${ol_cv_lib_icu+set}" = set; then
31960   echo $ECHO_N "(cached) $ECHO_C" >&6
31961 else
31962
31963                 ol_LIBS="$LIBS"
31964                 LIBS="$OL_ICULIBS $LIBS"
31965                 cat >conftest.$ac_ext <<_ACEOF
31966 /* confdefs.h.  */
31967 _ACEOF
31968 cat confdefs.h >>conftest.$ac_ext
31969 cat >>conftest.$ac_ext <<_ACEOF
31970 /* end confdefs.h.  */
31971
31972 #include <unicode/utypes.h>
31973
31974 int
31975 main ()
31976 {
31977
31978 (void) u_errorName(0);
31979
31980   ;
31981   return 0;
31982 }
31983 _ACEOF
31984 rm -f conftest.$ac_objext conftest$ac_exeext
31985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31986   (eval $ac_link) 2>conftest.er1
31987   ac_status=$?
31988   grep -v '^ *+' conftest.er1 >conftest.err
31989   rm -f conftest.er1
31990   cat conftest.err >&5
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); } &&
31993          { ac_try='test -z "$ac_c_werror_flag"
31994                          || test ! -s conftest.err'
31995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996   (eval $ac_try) 2>&5
31997   ac_status=$?
31998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999   (exit $ac_status); }; } &&
32000          { ac_try='test -s conftest$ac_exeext'
32001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32002   (eval $ac_try) 2>&5
32003   ac_status=$?
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); }; }; then
32006   ol_cv_lib_icu=yes
32007 else
32008   echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32010
32011 ol_cv_lib_icu=no
32012 fi
32013 rm -f conftest.err conftest.$ac_objext \
32014       conftest$ac_exeext conftest.$ac_ext
32015                 LIBS="$ol_LIBS"
32016
32017 fi
32018 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32019 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32020
32021         if test $ol_cv_lib_icu != no ; then
32022                 ol_icu="$OL_ICULIBS"
32023
32024 cat >>confdefs.h <<\_ACEOF
32025 #define HAVE_ICU 1
32026 _ACEOF
32027
32028         fi
32029 fi
32030
32031 if test "$ol_icu" = no ; then
32032         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32033 echo "$as_me: WARNING: ICU not available" >&2;}
32034 else
32035         ICU_LIBS="$ol_icu"
32036 fi
32037 WITH_SASL=no
32038 ol_link_sasl=no
32039 ol_link_spasswd=no
32040 if test $ol_with_cyrus_sasl != no ; then
32041
32042
32043 for ac_header in sasl/sasl.h sasl.h
32044 do
32045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32047   echo "$as_me:$LINENO: checking for $ac_header" >&5
32048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32050   echo $ECHO_N "(cached) $ECHO_C" >&6
32051 fi
32052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32054 else
32055   # Is the header compilable?
32056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32058 cat >conftest.$ac_ext <<_ACEOF
32059 /* confdefs.h.  */
32060 _ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h.  */
32064 $ac_includes_default
32065 #include <$ac_header>
32066 _ACEOF
32067 rm -f conftest.$ac_objext
32068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32069   (eval $ac_compile) 2>conftest.er1
32070   ac_status=$?
32071   grep -v '^ *+' conftest.er1 >conftest.err
32072   rm -f conftest.er1
32073   cat conftest.err >&5
32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075   (exit $ac_status); } &&
32076          { ac_try='test -z "$ac_c_werror_flag"
32077                          || test ! -s conftest.err'
32078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32079   (eval $ac_try) 2>&5
32080   ac_status=$?
32081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082   (exit $ac_status); }; } &&
32083          { ac_try='test -s conftest.$ac_objext'
32084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32085   (eval $ac_try) 2>&5
32086   ac_status=$?
32087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088   (exit $ac_status); }; }; then
32089   ac_header_compiler=yes
32090 else
32091   echo "$as_me: failed program was:" >&5
32092 sed 's/^/| /' conftest.$ac_ext >&5
32093
32094 ac_header_compiler=no
32095 fi
32096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32098 echo "${ECHO_T}$ac_header_compiler" >&6
32099
32100 # Is the header present?
32101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32103 cat >conftest.$ac_ext <<_ACEOF
32104 /* confdefs.h.  */
32105 _ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h.  */
32109 #include <$ac_header>
32110 _ACEOF
32111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32113   ac_status=$?
32114   grep -v '^ *+' conftest.er1 >conftest.err
32115   rm -f conftest.er1
32116   cat conftest.err >&5
32117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118   (exit $ac_status); } >/dev/null; then
32119   if test -s conftest.err; then
32120     ac_cpp_err=$ac_c_preproc_warn_flag
32121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32122   else
32123     ac_cpp_err=
32124   fi
32125 else
32126   ac_cpp_err=yes
32127 fi
32128 if test -z "$ac_cpp_err"; then
32129   ac_header_preproc=yes
32130 else
32131   echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32133
32134   ac_header_preproc=no
32135 fi
32136 rm -f conftest.err conftest.$ac_ext
32137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32138 echo "${ECHO_T}$ac_header_preproc" >&6
32139
32140 # So?  What about this header?
32141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32142   yes:no: )
32143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32147     ac_header_preproc=yes
32148     ;;
32149   no:yes:* )
32150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32152     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32153 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32154     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32156     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32157 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32160     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32162     (
32163       cat <<\_ASBOX
32164 ## --------------------------------------------- ##
32165 ## Report this to <http://www.openldap.org/its/> ##
32166 ## --------------------------------------------- ##
32167 _ASBOX
32168     ) |
32169       sed "s/^/$as_me: WARNING:     /" >&2
32170     ;;
32171 esac
32172 echo "$as_me:$LINENO: checking for $ac_header" >&5
32173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32175   echo $ECHO_N "(cached) $ECHO_C" >&6
32176 else
32177   eval "$as_ac_Header=\$ac_header_preproc"
32178 fi
32179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32181
32182 fi
32183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32184   cat >>confdefs.h <<_ACEOF
32185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32186 _ACEOF
32187
32188 fi
32189
32190 done
32191
32192
32193         if test $ac_cv_header_sasl_sasl_h = yes ||
32194            test $ac_cv_header_sasl_h = yes; then
32195                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32196 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32197 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32198   echo $ECHO_N "(cached) $ECHO_C" >&6
32199 else
32200   ac_check_lib_save_LIBS=$LIBS
32201 LIBS="-lsasl2  $LIBS"
32202 cat >conftest.$ac_ext <<_ACEOF
32203 /* confdefs.h.  */
32204 _ACEOF
32205 cat confdefs.h >>conftest.$ac_ext
32206 cat >>conftest.$ac_ext <<_ACEOF
32207 /* end confdefs.h.  */
32208
32209 /* Override any gcc2 internal prototype to avoid an error.  */
32210 #ifdef __cplusplus
32211 extern "C"
32212 #endif
32213 /* We use char because int might match the return type of a gcc2
32214    builtin and then its argument prototype would still apply.  */
32215 char sasl_client_init ();
32216 int
32217 main ()
32218 {
32219 sasl_client_init ();
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32226   (eval $ac_link) 2>conftest.er1
32227   ac_status=$?
32228   grep -v '^ *+' conftest.er1 >conftest.err
32229   rm -f conftest.er1
32230   cat conftest.err >&5
32231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232   (exit $ac_status); } &&
32233          { ac_try='test -z "$ac_c_werror_flag"
32234                          || test ! -s conftest.err'
32235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32236   (eval $ac_try) 2>&5
32237   ac_status=$?
32238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239   (exit $ac_status); }; } &&
32240          { ac_try='test -s conftest$ac_exeext'
32241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242   (eval $ac_try) 2>&5
32243   ac_status=$?
32244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245   (exit $ac_status); }; }; then
32246   ac_cv_lib_sasl2_sasl_client_init=yes
32247 else
32248   echo "$as_me: failed program was:" >&5
32249 sed 's/^/| /' conftest.$ac_ext >&5
32250
32251 ac_cv_lib_sasl2_sasl_client_init=no
32252 fi
32253 rm -f conftest.err conftest.$ac_objext \
32254       conftest$ac_exeext conftest.$ac_ext
32255 LIBS=$ac_check_lib_save_LIBS
32256 fi
32257 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32258 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32259 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32260   ol_link_sasl="-lsasl2"
32261 else
32262   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32263 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32264 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32265   echo $ECHO_N "(cached) $ECHO_C" >&6
32266 else
32267   ac_check_lib_save_LIBS=$LIBS
32268 LIBS="-lsasl  $LIBS"
32269 cat >conftest.$ac_ext <<_ACEOF
32270 /* confdefs.h.  */
32271 _ACEOF
32272 cat confdefs.h >>conftest.$ac_ext
32273 cat >>conftest.$ac_ext <<_ACEOF
32274 /* end confdefs.h.  */
32275
32276 /* Override any gcc2 internal prototype to avoid an error.  */
32277 #ifdef __cplusplus
32278 extern "C"
32279 #endif
32280 /* We use char because int might match the return type of a gcc2
32281    builtin and then its argument prototype would still apply.  */
32282 char sasl_client_init ();
32283 int
32284 main ()
32285 {
32286 sasl_client_init ();
32287   ;
32288   return 0;
32289 }
32290 _ACEOF
32291 rm -f conftest.$ac_objext conftest$ac_exeext
32292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32293   (eval $ac_link) 2>conftest.er1
32294   ac_status=$?
32295   grep -v '^ *+' conftest.er1 >conftest.err
32296   rm -f conftest.er1
32297   cat conftest.err >&5
32298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299   (exit $ac_status); } &&
32300          { ac_try='test -z "$ac_c_werror_flag"
32301                          || test ! -s conftest.err'
32302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303   (eval $ac_try) 2>&5
32304   ac_status=$?
32305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306   (exit $ac_status); }; } &&
32307          { ac_try='test -s conftest$ac_exeext'
32308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309   (eval $ac_try) 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; }; then
32313   ac_cv_lib_sasl_sasl_client_init=yes
32314 else
32315   echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32317
32318 ac_cv_lib_sasl_sasl_client_init=no
32319 fi
32320 rm -f conftest.err conftest.$ac_objext \
32321       conftest$ac_exeext conftest.$ac_ext
32322 LIBS=$ac_check_lib_save_LIBS
32323 fi
32324 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32325 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32326 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32327   ol_link_sasl="-lsasl"
32328 fi
32329
32330 fi
32331
32332         fi
32333
32334         if test $ol_link_sasl = no ; then
32335                 if test $ol_with_cyrus_sasl != auto ; then
32336                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32337 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32338    { (exit 1); exit 1; }; }
32339                 else
32340                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32341 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32342                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32343 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32344                         if test $ol_link_tls = no ; then
32345                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32346 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32347                         fi
32348                 fi
32349         else
32350                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32351 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32352 if test "${ol_cv_sasl_compat+set}" = set; then
32353   echo $ECHO_N "(cached) $ECHO_C" >&6
32354 else
32355
32356         cat >conftest.$ac_ext <<_ACEOF
32357 /* confdefs.h.  */
32358 _ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h.  */
32362
32363 #ifdef HAVE_SASL_SASL_H
32364 #include <sasl/sasl.h>
32365 #else
32366 #include <sasl.h>
32367 #endif
32368
32369 /* Require 2.1.15+ */
32370 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32371         char *__sasl_compat = "2.2+ or better okay (we guess)";
32372 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32373         && SASL_VERSION_STEP >=15
32374         char *__sasl_compat = "2.1.15+ or better okay";
32375 #endif
32376
32377 _ACEOF
32378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32379   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32380   ol_cv_sasl_compat=yes
32381 else
32382   ol_cv_sasl_compat=no
32383 fi
32384 rm -f conftest*
32385
32386 fi
32387 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32388 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32389
32390                 if test $ol_cv_sasl_compat = no ; then
32391                         ol_link_sasl=no
32392                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32393 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32394    { (exit 1); exit 1; }; }
32395                 fi
32396
32397
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_CYRUS_SASL 1
32400 _ACEOF
32401
32402                 SASL_LIBS="$ol_link_sasl"
32403                 if test $ol_enable_spasswd != no ; then
32404                         ol_link_spasswd=yes
32405                 fi
32406
32407                 ac_save_LIBS="$LIBS"
32408                 LIBS="$LIBS $ol_link_sasl"
32409                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32410 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32411 if test "${ac_cv_func_sasl_version+set}" = set; then
32412   echo $ECHO_N "(cached) $ECHO_C" >&6
32413 else
32414   cat >conftest.$ac_ext <<_ACEOF
32415 /* confdefs.h.  */
32416 _ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h.  */
32420 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32422 #define sasl_version innocuous_sasl_version
32423
32424 /* System header to define __stub macros and hopefully few prototypes,
32425     which can conflict with char sasl_version (); below.
32426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32427     <limits.h> exists even on freestanding compilers.  */
32428
32429 #ifdef __STDC__
32430 # include <limits.h>
32431 #else
32432 # include <assert.h>
32433 #endif
32434
32435 #undef sasl_version
32436
32437 /* Override any gcc2 internal prototype to avoid an error.  */
32438 #ifdef __cplusplus
32439 extern "C"
32440 {
32441 #endif
32442 /* We use char because int might match the return type of a gcc2
32443    builtin and then its argument prototype would still apply.  */
32444 char sasl_version ();
32445 /* The GNU C library defines this for functions which it implements
32446     to always fail with ENOSYS.  Some functions are actually named
32447     something starting with __ and the normal name is an alias.  */
32448 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32449 choke me
32450 #else
32451 char (*f) () = sasl_version;
32452 #endif
32453 #ifdef __cplusplus
32454 }
32455 #endif
32456
32457 int
32458 main ()
32459 {
32460 return f != sasl_version;
32461   ;
32462   return 0;
32463 }
32464 _ACEOF
32465 rm -f conftest.$ac_objext conftest$ac_exeext
32466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32467   (eval $ac_link) 2>conftest.er1
32468   ac_status=$?
32469   grep -v '^ *+' conftest.er1 >conftest.err
32470   rm -f conftest.er1
32471   cat conftest.err >&5
32472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473   (exit $ac_status); } &&
32474          { ac_try='test -z "$ac_c_werror_flag"
32475                          || test ! -s conftest.err'
32476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32477   (eval $ac_try) 2>&5
32478   ac_status=$?
32479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480   (exit $ac_status); }; } &&
32481          { ac_try='test -s conftest$ac_exeext'
32482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32483   (eval $ac_try) 2>&5
32484   ac_status=$?
32485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486   (exit $ac_status); }; }; then
32487   ac_cv_func_sasl_version=yes
32488 else
32489   echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32491
32492 ac_cv_func_sasl_version=no
32493 fi
32494 rm -f conftest.err conftest.$ac_objext \
32495       conftest$ac_exeext conftest.$ac_ext
32496 fi
32497 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32498 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32499 if test $ac_cv_func_sasl_version = yes; then
32500
32501 cat >>confdefs.h <<\_ACEOF
32502 #define HAVE_SASL_VERSION 1
32503 _ACEOF
32504
32505 fi
32506
32507                 LIBS="$ac_save_LIBS"
32508
32509                 WITH_SASL=yes
32510         fi
32511
32512 else
32513         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32514 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32515         if test $ol_link_tls = no ; then
32516                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32517 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32518         fi
32519 fi
32520
32521 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32522         dev=no
32523         if test -r /dev/urandom ; then
32524                 dev="/dev/urandom";
32525         elif test -r /idev/urandom ; then
32526                 dev="/idev/urandom";
32527         elif test -r /dev/srandom ; then
32528                 dev="/dev/srandom";
32529         elif test -r /dev/random ; then
32530                 dev="/dev/random";
32531         elif test -r /idev/random ; then
32532                 dev="/idev/random";
32533         fi
32534
32535         if test $dev != no ; then
32536
32537 cat >>confdefs.h <<_ACEOF
32538 #define URANDOM_DEVICE "$dev"
32539 _ACEOF
32540
32541         fi
32542 fi
32543
32544 ol_link_fetch=no
32545 if test $ol_with_fetch != no ; then
32546         ol_LIBS=$LIBS
32547 LIBS="-lfetch -lcom_err $LIBS"
32548 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32549 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32550 if test "${ol_cv_lib_fetch+set}" = set; then
32551   echo $ECHO_N "(cached) $ECHO_C" >&6
32552 else
32553
32554         cat >conftest.$ac_ext <<_ACEOF
32555 /* confdefs.h.  */
32556 _ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h.  */
32560
32561 #include <sys/param.h>
32562 #include <stdio.h>
32563 #include <fetch.h>
32564 int
32565 main ()
32566 {
32567 struct url *u = fetchParseURL("file:///");
32568   ;
32569   return 0;
32570 }
32571 _ACEOF
32572 rm -f conftest.$ac_objext conftest$ac_exeext
32573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32574   (eval $ac_link) 2>conftest.er1
32575   ac_status=$?
32576   grep -v '^ *+' conftest.er1 >conftest.err
32577   rm -f conftest.er1
32578   cat conftest.err >&5
32579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580   (exit $ac_status); } &&
32581          { ac_try='test -z "$ac_c_werror_flag"
32582                          || test ! -s conftest.err'
32583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32584   (eval $ac_try) 2>&5
32585   ac_status=$?
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); }; } &&
32588          { ac_try='test -s conftest$ac_exeext'
32589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590   (eval $ac_try) 2>&5
32591   ac_status=$?
32592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593   (exit $ac_status); }; }; then
32594   ol_cv_lib_fetch=yes
32595 else
32596   echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32598
32599 ol_cv_lib_fetch=no
32600 fi
32601 rm -f conftest.err conftest.$ac_objext \
32602       conftest$ac_exeext conftest.$ac_ext
32603 fi
32604 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32605 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32606 LIBS=$ol_LIBS
32607 if test $ol_cv_lib_fetch != no ; then
32608         ol_link_fetch="-lfetch -lcom_err"
32609
32610 cat >>confdefs.h <<\_ACEOF
32611 #define HAVE_FETCH 1
32612 _ACEOF
32613
32614 fi
32615
32616
32617         if test $ol_cv_lib_fetch != no ; then
32618                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32619                 ol_link_fetch=freebsd
32620
32621         elif test $ol_with_fetch != auto ; then
32622                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32623 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32624    { (exit 1); exit 1; }; }
32625         fi
32626 fi
32627
32628 if test $ol_enable_crypt != no ; then
32629         save_LIBS="$LIBS"
32630         LIBS="$TLS_LIBS $LIBS"
32631
32632         echo "$as_me:$LINENO: checking for crypt" >&5
32633 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32634 if test "${ac_cv_func_crypt+set}" = set; then
32635   echo $ECHO_N "(cached) $ECHO_C" >&6
32636 else
32637   cat >conftest.$ac_ext <<_ACEOF
32638 /* confdefs.h.  */
32639 _ACEOF
32640 cat confdefs.h >>conftest.$ac_ext
32641 cat >>conftest.$ac_ext <<_ACEOF
32642 /* end confdefs.h.  */
32643 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32645 #define crypt innocuous_crypt
32646
32647 /* System header to define __stub macros and hopefully few prototypes,
32648     which can conflict with char crypt (); below.
32649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32650     <limits.h> exists even on freestanding compilers.  */
32651
32652 #ifdef __STDC__
32653 # include <limits.h>
32654 #else
32655 # include <assert.h>
32656 #endif
32657
32658 #undef crypt
32659
32660 /* Override any gcc2 internal prototype to avoid an error.  */
32661 #ifdef __cplusplus
32662 extern "C"
32663 {
32664 #endif
32665 /* We use char because int might match the return type of a gcc2
32666    builtin and then its argument prototype would still apply.  */
32667 char crypt ();
32668 /* The GNU C library defines this for functions which it implements
32669     to always fail with ENOSYS.  Some functions are actually named
32670     something starting with __ and the normal name is an alias.  */
32671 #if defined (__stub_crypt) || defined (__stub___crypt)
32672 choke me
32673 #else
32674 char (*f) () = crypt;
32675 #endif
32676 #ifdef __cplusplus
32677 }
32678 #endif
32679
32680 int
32681 main ()
32682 {
32683 return f != crypt;
32684   ;
32685   return 0;
32686 }
32687 _ACEOF
32688 rm -f conftest.$ac_objext conftest$ac_exeext
32689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32690   (eval $ac_link) 2>conftest.er1
32691   ac_status=$?
32692   grep -v '^ *+' conftest.er1 >conftest.err
32693   rm -f conftest.er1
32694   cat conftest.err >&5
32695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696   (exit $ac_status); } &&
32697          { ac_try='test -z "$ac_c_werror_flag"
32698                          || test ! -s conftest.err'
32699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700   (eval $ac_try) 2>&5
32701   ac_status=$?
32702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703   (exit $ac_status); }; } &&
32704          { ac_try='test -s conftest$ac_exeext'
32705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32706   (eval $ac_try) 2>&5
32707   ac_status=$?
32708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709   (exit $ac_status); }; }; then
32710   ac_cv_func_crypt=yes
32711 else
32712   echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.$ac_ext >&5
32714
32715 ac_cv_func_crypt=no
32716 fi
32717 rm -f conftest.err conftest.$ac_objext \
32718       conftest$ac_exeext conftest.$ac_ext
32719 fi
32720 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32721 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32722 if test $ac_cv_func_crypt = yes; then
32723   have_crypt=yes
32724 else
32725
32726                 LIBS="$save_LIBS"
32727                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32728 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32729 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32730   echo $ECHO_N "(cached) $ECHO_C" >&6
32731 else
32732   ac_check_lib_save_LIBS=$LIBS
32733 LIBS="-lcrypt  $LIBS"
32734 cat >conftest.$ac_ext <<_ACEOF
32735 /* confdefs.h.  */
32736 _ACEOF
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h.  */
32740
32741 /* Override any gcc2 internal prototype to avoid an error.  */
32742 #ifdef __cplusplus
32743 extern "C"
32744 #endif
32745 /* We use char because int might match the return type of a gcc2
32746    builtin and then its argument prototype would still apply.  */
32747 char crypt ();
32748 int
32749 main ()
32750 {
32751 crypt ();
32752   ;
32753   return 0;
32754 }
32755 _ACEOF
32756 rm -f conftest.$ac_objext conftest$ac_exeext
32757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32758   (eval $ac_link) 2>conftest.er1
32759   ac_status=$?
32760   grep -v '^ *+' conftest.er1 >conftest.err
32761   rm -f conftest.er1
32762   cat conftest.err >&5
32763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764   (exit $ac_status); } &&
32765          { ac_try='test -z "$ac_c_werror_flag"
32766                          || test ! -s conftest.err'
32767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32768   (eval $ac_try) 2>&5
32769   ac_status=$?
32770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771   (exit $ac_status); }; } &&
32772          { ac_try='test -s conftest$ac_exeext'
32773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774   (eval $ac_try) 2>&5
32775   ac_status=$?
32776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777   (exit $ac_status); }; }; then
32778   ac_cv_lib_crypt_crypt=yes
32779 else
32780   echo "$as_me: failed program was:" >&5
32781 sed 's/^/| /' conftest.$ac_ext >&5
32782
32783 ac_cv_lib_crypt_crypt=no
32784 fi
32785 rm -f conftest.err conftest.$ac_objext \
32786       conftest$ac_exeext conftest.$ac_ext
32787 LIBS=$ac_check_lib_save_LIBS
32788 fi
32789 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
32790 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
32791 if test $ac_cv_lib_crypt_crypt = yes; then
32792   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
32793                         have_crypt=yes
32794 else
32795   have_crypt=no
32796 fi
32797
32798 fi
32799
32800
32801         LIBS="$save_LIBS"
32802
32803         if test $have_crypt = yes ; then
32804
32805 cat >>confdefs.h <<\_ACEOF
32806 #define HAVE_CRYPT 1
32807 _ACEOF
32808
32809         else
32810                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
32811 echo "$as_me: WARNING: could not find crypt" >&2;}
32812                 if test $ol_enable_crypt = yes ; then
32813                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
32814 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
32815    { (exit 1); exit 1; }; }
32816                 fi
32817
32818                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
32819 echo "$as_me: WARNING: disabling crypt support" >&2;}
32820                 ol_enable_crypt=no
32821         fi
32822 fi
32823
32824 if test $ol_enable_proctitle != no ; then
32825         echo "$as_me:$LINENO: checking for setproctitle" >&5
32826 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
32827 if test "${ac_cv_func_setproctitle+set}" = set; then
32828   echo $ECHO_N "(cached) $ECHO_C" >&6
32829 else
32830   cat >conftest.$ac_ext <<_ACEOF
32831 /* confdefs.h.  */
32832 _ACEOF
32833 cat confdefs.h >>conftest.$ac_ext
32834 cat >>conftest.$ac_ext <<_ACEOF
32835 /* end confdefs.h.  */
32836 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
32837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32838 #define setproctitle innocuous_setproctitle
32839
32840 /* System header to define __stub macros and hopefully few prototypes,
32841     which can conflict with char setproctitle (); below.
32842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32843     <limits.h> exists even on freestanding compilers.  */
32844
32845 #ifdef __STDC__
32846 # include <limits.h>
32847 #else
32848 # include <assert.h>
32849 #endif
32850
32851 #undef setproctitle
32852
32853 /* Override any gcc2 internal prototype to avoid an error.  */
32854 #ifdef __cplusplus
32855 extern "C"
32856 {
32857 #endif
32858 /* We use char because int might match the return type of a gcc2
32859    builtin and then its argument prototype would still apply.  */
32860 char setproctitle ();
32861 /* The GNU C library defines this for functions which it implements
32862     to always fail with ENOSYS.  Some functions are actually named
32863     something starting with __ and the normal name is an alias.  */
32864 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
32865 choke me
32866 #else
32867 char (*f) () = setproctitle;
32868 #endif
32869 #ifdef __cplusplus
32870 }
32871 #endif
32872
32873 int
32874 main ()
32875 {
32876 return f != setproctitle;
32877   ;
32878   return 0;
32879 }
32880 _ACEOF
32881 rm -f conftest.$ac_objext conftest$ac_exeext
32882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32883   (eval $ac_link) 2>conftest.er1
32884   ac_status=$?
32885   grep -v '^ *+' conftest.er1 >conftest.err
32886   rm -f conftest.er1
32887   cat conftest.err >&5
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); } &&
32890          { ac_try='test -z "$ac_c_werror_flag"
32891                          || test ! -s conftest.err'
32892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893   (eval $ac_try) 2>&5
32894   ac_status=$?
32895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896   (exit $ac_status); }; } &&
32897          { ac_try='test -s conftest$ac_exeext'
32898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32899   (eval $ac_try) 2>&5
32900   ac_status=$?
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); }; }; then
32903   ac_cv_func_setproctitle=yes
32904 else
32905   echo "$as_me: failed program was:" >&5
32906 sed 's/^/| /' conftest.$ac_ext >&5
32907
32908 ac_cv_func_setproctitle=no
32909 fi
32910 rm -f conftest.err conftest.$ac_objext \
32911       conftest$ac_exeext conftest.$ac_ext
32912 fi
32913 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
32914 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
32915 if test $ac_cv_func_setproctitle = yes; then
32916   have_setproctitle=yes
32917 else
32918
32919                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
32920 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
32921 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
32922   echo $ECHO_N "(cached) $ECHO_C" >&6
32923 else
32924   ac_check_lib_save_LIBS=$LIBS
32925 LIBS="-lutil  $LIBS"
32926 cat >conftest.$ac_ext <<_ACEOF
32927 /* confdefs.h.  */
32928 _ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h.  */
32932
32933 /* Override any gcc2 internal prototype to avoid an error.  */
32934 #ifdef __cplusplus
32935 extern "C"
32936 #endif
32937 /* We use char because int might match the return type of a gcc2
32938    builtin and then its argument prototype would still apply.  */
32939 char setproctitle ();
32940 int
32941 main ()
32942 {
32943 setproctitle ();
32944   ;
32945   return 0;
32946 }
32947 _ACEOF
32948 rm -f conftest.$ac_objext conftest$ac_exeext
32949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32950   (eval $ac_link) 2>conftest.er1
32951   ac_status=$?
32952   grep -v '^ *+' conftest.er1 >conftest.err
32953   rm -f conftest.er1
32954   cat conftest.err >&5
32955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956   (exit $ac_status); } &&
32957          { ac_try='test -z "$ac_c_werror_flag"
32958                          || test ! -s conftest.err'
32959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960   (eval $ac_try) 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; } &&
32964          { ac_try='test -s conftest$ac_exeext'
32965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966   (eval $ac_try) 2>&5
32967   ac_status=$?
32968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969   (exit $ac_status); }; }; then
32970   ac_cv_lib_util_setproctitle=yes
32971 else
32972   echo "$as_me: failed program was:" >&5
32973 sed 's/^/| /' conftest.$ac_ext >&5
32974
32975 ac_cv_lib_util_setproctitle=no
32976 fi
32977 rm -f conftest.err conftest.$ac_objext \
32978       conftest$ac_exeext conftest.$ac_ext
32979 LIBS=$ac_check_lib_save_LIBS
32980 fi
32981 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
32982 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
32983 if test $ac_cv_lib_util_setproctitle = yes; then
32984   have_setproctitle=yes
32985                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
32986 else
32987   have_setproctitle=no
32988                         case $LIBOBJS in
32989     "setproctitle.$ac_objext"   | \
32990   *" setproctitle.$ac_objext"   | \
32991     "setproctitle.$ac_objext "* | \
32992   *" setproctitle.$ac_objext "* ) ;;
32993   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
32994 esac
32995
32996                         LIBSRCS="$LIBSRCS setproctitle.c"
32997 fi
32998
32999 fi
33000
33001
33002         if test $have_setproctitle = yes ; then
33003
33004 cat >>confdefs.h <<\_ACEOF
33005 #define HAVE_SETPROCTITLE 1
33006 _ACEOF
33007
33008         fi
33009 fi
33010
33011 if test $ol_enable_slp != no ; then
33012
33013 for ac_header in slp.h
33014 do
33015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33017   echo "$as_me:$LINENO: checking for $ac_header" >&5
33018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33020   echo $ECHO_N "(cached) $ECHO_C" >&6
33021 fi
33022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33024 else
33025   # Is the header compilable?
33026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33028 cat >conftest.$ac_ext <<_ACEOF
33029 /* confdefs.h.  */
33030 _ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h.  */
33034 $ac_includes_default
33035 #include <$ac_header>
33036 _ACEOF
33037 rm -f conftest.$ac_objext
33038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33039   (eval $ac_compile) 2>conftest.er1
33040   ac_status=$?
33041   grep -v '^ *+' conftest.er1 >conftest.err
33042   rm -f conftest.er1
33043   cat conftest.err >&5
33044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045   (exit $ac_status); } &&
33046          { ac_try='test -z "$ac_c_werror_flag"
33047                          || test ! -s conftest.err'
33048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33049   (eval $ac_try) 2>&5
33050   ac_status=$?
33051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052   (exit $ac_status); }; } &&
33053          { ac_try='test -s conftest.$ac_objext'
33054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33055   (eval $ac_try) 2>&5
33056   ac_status=$?
33057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058   (exit $ac_status); }; }; then
33059   ac_header_compiler=yes
33060 else
33061   echo "$as_me: failed program was:" >&5
33062 sed 's/^/| /' conftest.$ac_ext >&5
33063
33064 ac_header_compiler=no
33065 fi
33066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33068 echo "${ECHO_T}$ac_header_compiler" >&6
33069
33070 # Is the header present?
33071 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33073 cat >conftest.$ac_ext <<_ACEOF
33074 /* confdefs.h.  */
33075 _ACEOF
33076 cat confdefs.h >>conftest.$ac_ext
33077 cat >>conftest.$ac_ext <<_ACEOF
33078 /* end confdefs.h.  */
33079 #include <$ac_header>
33080 _ACEOF
33081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33083   ac_status=$?
33084   grep -v '^ *+' conftest.er1 >conftest.err
33085   rm -f conftest.er1
33086   cat conftest.err >&5
33087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088   (exit $ac_status); } >/dev/null; then
33089   if test -s conftest.err; then
33090     ac_cpp_err=$ac_c_preproc_warn_flag
33091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33092   else
33093     ac_cpp_err=
33094   fi
33095 else
33096   ac_cpp_err=yes
33097 fi
33098 if test -z "$ac_cpp_err"; then
33099   ac_header_preproc=yes
33100 else
33101   echo "$as_me: failed program was:" >&5
33102 sed 's/^/| /' conftest.$ac_ext >&5
33103
33104   ac_header_preproc=no
33105 fi
33106 rm -f conftest.err conftest.$ac_ext
33107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33108 echo "${ECHO_T}$ac_header_preproc" >&6
33109
33110 # So?  What about this header?
33111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33112   yes:no: )
33113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33117     ac_header_preproc=yes
33118     ;;
33119   no:yes:* )
33120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33132     (
33133       cat <<\_ASBOX
33134 ## --------------------------------------------- ##
33135 ## Report this to <http://www.openldap.org/its/> ##
33136 ## --------------------------------------------- ##
33137 _ASBOX
33138     ) |
33139       sed "s/^/$as_me: WARNING:     /" >&2
33140     ;;
33141 esac
33142 echo "$as_me:$LINENO: checking for $ac_header" >&5
33143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33145   echo $ECHO_N "(cached) $ECHO_C" >&6
33146 else
33147   eval "$as_ac_Header=\$ac_header_preproc"
33148 fi
33149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33151
33152 fi
33153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33154   cat >>confdefs.h <<_ACEOF
33155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33156 _ACEOF
33157
33158 fi
33159
33160 done
33161
33162
33163         if test $ac_cv_header_slp_h = yes ; then
33164                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33165 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33166 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33167   echo $ECHO_N "(cached) $ECHO_C" >&6
33168 else
33169   ac_check_lib_save_LIBS=$LIBS
33170 LIBS="-lslp  $LIBS"
33171 cat >conftest.$ac_ext <<_ACEOF
33172 /* confdefs.h.  */
33173 _ACEOF
33174 cat confdefs.h >>conftest.$ac_ext
33175 cat >>conftest.$ac_ext <<_ACEOF
33176 /* end confdefs.h.  */
33177
33178 /* Override any gcc2 internal prototype to avoid an error.  */
33179 #ifdef __cplusplus
33180 extern "C"
33181 #endif
33182 /* We use char because int might match the return type of a gcc2
33183    builtin and then its argument prototype would still apply.  */
33184 char SLPOpen ();
33185 int
33186 main ()
33187 {
33188 SLPOpen ();
33189   ;
33190   return 0;
33191 }
33192 _ACEOF
33193 rm -f conftest.$ac_objext conftest$ac_exeext
33194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33195   (eval $ac_link) 2>conftest.er1
33196   ac_status=$?
33197   grep -v '^ *+' conftest.er1 >conftest.err
33198   rm -f conftest.er1
33199   cat conftest.err >&5
33200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201   (exit $ac_status); } &&
33202          { ac_try='test -z "$ac_c_werror_flag"
33203                          || test ! -s conftest.err'
33204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33205   (eval $ac_try) 2>&5
33206   ac_status=$?
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); }; } &&
33209          { ac_try='test -s conftest$ac_exeext'
33210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211   (eval $ac_try) 2>&5
33212   ac_status=$?
33213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214   (exit $ac_status); }; }; then
33215   ac_cv_lib_slp_SLPOpen=yes
33216 else
33217   echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33219
33220 ac_cv_lib_slp_SLPOpen=no
33221 fi
33222 rm -f conftest.err conftest.$ac_objext \
33223       conftest$ac_exeext conftest.$ac_ext
33224 LIBS=$ac_check_lib_save_LIBS
33225 fi
33226 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33227 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33228 if test $ac_cv_lib_slp_SLPOpen = yes; then
33229   have_slp=yes
33230 else
33231   have_slp=no
33232 fi
33233
33234                 if test $have_slp = yes ; then
33235
33236 cat >>confdefs.h <<\_ACEOF
33237 #define HAVE_SLP 1
33238 _ACEOF
33239
33240                         SLAPD_SLP_LIBS=-lslp
33241                 fi
33242
33243         elif test $ol_enable_slp = yes ; then
33244                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33245 echo "$as_me: error: SLP not found" >&2;}
33246    { (exit 1); exit 1; }; }
33247         fi
33248 fi
33249
33250
33251 echo "$as_me:$LINENO: checking for mode_t" >&5
33252 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33253 if test "${ac_cv_type_mode_t+set}" = set; then
33254   echo $ECHO_N "(cached) $ECHO_C" >&6
33255 else
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 $ac_includes_default
33263 int
33264 main ()
33265 {
33266 if ((mode_t *) 0)
33267   return 0;
33268 if (sizeof (mode_t))
33269   return 0;
33270   ;
33271   return 0;
33272 }
33273 _ACEOF
33274 rm -f conftest.$ac_objext
33275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33276   (eval $ac_compile) 2>conftest.er1
33277   ac_status=$?
33278   grep -v '^ *+' conftest.er1 >conftest.err
33279   rm -f conftest.er1
33280   cat conftest.err >&5
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); } &&
33283          { ac_try='test -z "$ac_c_werror_flag"
33284                          || test ! -s conftest.err'
33285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286   (eval $ac_try) 2>&5
33287   ac_status=$?
33288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289   (exit $ac_status); }; } &&
33290          { ac_try='test -s conftest.$ac_objext'
33291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292   (eval $ac_try) 2>&5
33293   ac_status=$?
33294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295   (exit $ac_status); }; }; then
33296   ac_cv_type_mode_t=yes
33297 else
33298   echo "$as_me: failed program was:" >&5
33299 sed 's/^/| /' conftest.$ac_ext >&5
33300
33301 ac_cv_type_mode_t=no
33302 fi
33303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33304 fi
33305 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33306 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33307 if test $ac_cv_type_mode_t = yes; then
33308   :
33309 else
33310
33311 cat >>confdefs.h <<_ACEOF
33312 #define mode_t int
33313 _ACEOF
33314
33315 fi
33316
33317 echo "$as_me:$LINENO: checking for off_t" >&5
33318 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33319 if test "${ac_cv_type_off_t+set}" = set; then
33320   echo $ECHO_N "(cached) $ECHO_C" >&6
33321 else
33322   cat >conftest.$ac_ext <<_ACEOF
33323 /* confdefs.h.  */
33324 _ACEOF
33325 cat confdefs.h >>conftest.$ac_ext
33326 cat >>conftest.$ac_ext <<_ACEOF
33327 /* end confdefs.h.  */
33328 $ac_includes_default
33329 int
33330 main ()
33331 {
33332 if ((off_t *) 0)
33333   return 0;
33334 if (sizeof (off_t))
33335   return 0;
33336   ;
33337   return 0;
33338 }
33339 _ACEOF
33340 rm -f conftest.$ac_objext
33341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33342   (eval $ac_compile) 2>conftest.er1
33343   ac_status=$?
33344   grep -v '^ *+' conftest.er1 >conftest.err
33345   rm -f conftest.er1
33346   cat conftest.err >&5
33347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348   (exit $ac_status); } &&
33349          { ac_try='test -z "$ac_c_werror_flag"
33350                          || test ! -s conftest.err'
33351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33352   (eval $ac_try) 2>&5
33353   ac_status=$?
33354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355   (exit $ac_status); }; } &&
33356          { ac_try='test -s conftest.$ac_objext'
33357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33358   (eval $ac_try) 2>&5
33359   ac_status=$?
33360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361   (exit $ac_status); }; }; then
33362   ac_cv_type_off_t=yes
33363 else
33364   echo "$as_me: failed program was:" >&5
33365 sed 's/^/| /' conftest.$ac_ext >&5
33366
33367 ac_cv_type_off_t=no
33368 fi
33369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33370 fi
33371 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33372 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33373 if test $ac_cv_type_off_t = yes; then
33374   :
33375 else
33376
33377 cat >>confdefs.h <<_ACEOF
33378 #define off_t long
33379 _ACEOF
33380
33381 fi
33382
33383 echo "$as_me:$LINENO: checking for pid_t" >&5
33384 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33385 if test "${ac_cv_type_pid_t+set}" = set; then
33386   echo $ECHO_N "(cached) $ECHO_C" >&6
33387 else
33388   cat >conftest.$ac_ext <<_ACEOF
33389 /* confdefs.h.  */
33390 _ACEOF
33391 cat confdefs.h >>conftest.$ac_ext
33392 cat >>conftest.$ac_ext <<_ACEOF
33393 /* end confdefs.h.  */
33394 $ac_includes_default
33395 int
33396 main ()
33397 {
33398 if ((pid_t *) 0)
33399   return 0;
33400 if (sizeof (pid_t))
33401   return 0;
33402   ;
33403   return 0;
33404 }
33405 _ACEOF
33406 rm -f conftest.$ac_objext
33407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33408   (eval $ac_compile) 2>conftest.er1
33409   ac_status=$?
33410   grep -v '^ *+' conftest.er1 >conftest.err
33411   rm -f conftest.er1
33412   cat conftest.err >&5
33413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414   (exit $ac_status); } &&
33415          { ac_try='test -z "$ac_c_werror_flag"
33416                          || test ! -s conftest.err'
33417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418   (eval $ac_try) 2>&5
33419   ac_status=$?
33420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421   (exit $ac_status); }; } &&
33422          { ac_try='test -s conftest.$ac_objext'
33423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33424   (eval $ac_try) 2>&5
33425   ac_status=$?
33426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427   (exit $ac_status); }; }; then
33428   ac_cv_type_pid_t=yes
33429 else
33430   echo "$as_me: failed program was:" >&5
33431 sed 's/^/| /' conftest.$ac_ext >&5
33432
33433 ac_cv_type_pid_t=no
33434 fi
33435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33436 fi
33437 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33438 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33439 if test $ac_cv_type_pid_t = yes; then
33440   :
33441 else
33442
33443 cat >>confdefs.h <<_ACEOF
33444 #define pid_t int
33445 _ACEOF
33446
33447 fi
33448
33449 echo "$as_me:$LINENO: checking for ssize_t" >&5
33450 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33451 if test "${ac_cv_type_ssize_t+set}" = set; then
33452   echo $ECHO_N "(cached) $ECHO_C" >&6
33453 else
33454   cat >conftest.$ac_ext <<_ACEOF
33455 /* confdefs.h.  */
33456 _ACEOF
33457 cat confdefs.h >>conftest.$ac_ext
33458 cat >>conftest.$ac_ext <<_ACEOF
33459 /* end confdefs.h.  */
33460 $ac_includes_default
33461 int
33462 main ()
33463 {
33464 if ((ssize_t *) 0)
33465   return 0;
33466 if (sizeof (ssize_t))
33467   return 0;
33468   ;
33469   return 0;
33470 }
33471 _ACEOF
33472 rm -f conftest.$ac_objext
33473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33474   (eval $ac_compile) 2>conftest.er1
33475   ac_status=$?
33476   grep -v '^ *+' conftest.er1 >conftest.err
33477   rm -f conftest.er1
33478   cat conftest.err >&5
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); } &&
33481          { ac_try='test -z "$ac_c_werror_flag"
33482                          || test ! -s conftest.err'
33483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484   (eval $ac_try) 2>&5
33485   ac_status=$?
33486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487   (exit $ac_status); }; } &&
33488          { ac_try='test -s conftest.$ac_objext'
33489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33490   (eval $ac_try) 2>&5
33491   ac_status=$?
33492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493   (exit $ac_status); }; }; then
33494   ac_cv_type_ssize_t=yes
33495 else
33496   echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33498
33499 ac_cv_type_ssize_t=no
33500 fi
33501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33502 fi
33503 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33504 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33505 if test $ac_cv_type_ssize_t = yes; then
33506   :
33507 else
33508
33509 cat >>confdefs.h <<_ACEOF
33510 #define ssize_t signed int
33511 _ACEOF
33512
33513 fi
33514
33515 echo "$as_me:$LINENO: checking for caddr_t" >&5
33516 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33517 if test "${ac_cv_type_caddr_t+set}" = set; then
33518   echo $ECHO_N "(cached) $ECHO_C" >&6
33519 else
33520   cat >conftest.$ac_ext <<_ACEOF
33521 /* confdefs.h.  */
33522 _ACEOF
33523 cat confdefs.h >>conftest.$ac_ext
33524 cat >>conftest.$ac_ext <<_ACEOF
33525 /* end confdefs.h.  */
33526 $ac_includes_default
33527 int
33528 main ()
33529 {
33530 if ((caddr_t *) 0)
33531   return 0;
33532 if (sizeof (caddr_t))
33533   return 0;
33534   ;
33535   return 0;
33536 }
33537 _ACEOF
33538 rm -f conftest.$ac_objext
33539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33540   (eval $ac_compile) 2>conftest.er1
33541   ac_status=$?
33542   grep -v '^ *+' conftest.er1 >conftest.err
33543   rm -f conftest.er1
33544   cat conftest.err >&5
33545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); } &&
33547          { ac_try='test -z "$ac_c_werror_flag"
33548                          || test ! -s conftest.err'
33549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550   (eval $ac_try) 2>&5
33551   ac_status=$?
33552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553   (exit $ac_status); }; } &&
33554          { ac_try='test -s conftest.$ac_objext'
33555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33556   (eval $ac_try) 2>&5
33557   ac_status=$?
33558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559   (exit $ac_status); }; }; then
33560   ac_cv_type_caddr_t=yes
33561 else
33562   echo "$as_me: failed program was:" >&5
33563 sed 's/^/| /' conftest.$ac_ext >&5
33564
33565 ac_cv_type_caddr_t=no
33566 fi
33567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33568 fi
33569 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33570 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33571 if test $ac_cv_type_caddr_t = yes; then
33572   :
33573 else
33574
33575 cat >>confdefs.h <<_ACEOF
33576 #define caddr_t char *
33577 _ACEOF
33578
33579 fi
33580
33581 echo "$as_me:$LINENO: checking for size_t" >&5
33582 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33583 if test "${ac_cv_type_size_t+set}" = set; then
33584   echo $ECHO_N "(cached) $ECHO_C" >&6
33585 else
33586   cat >conftest.$ac_ext <<_ACEOF
33587 /* confdefs.h.  */
33588 _ACEOF
33589 cat confdefs.h >>conftest.$ac_ext
33590 cat >>conftest.$ac_ext <<_ACEOF
33591 /* end confdefs.h.  */
33592 $ac_includes_default
33593 int
33594 main ()
33595 {
33596 if ((size_t *) 0)
33597   return 0;
33598 if (sizeof (size_t))
33599   return 0;
33600   ;
33601   return 0;
33602 }
33603 _ACEOF
33604 rm -f conftest.$ac_objext
33605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33606   (eval $ac_compile) 2>conftest.er1
33607   ac_status=$?
33608   grep -v '^ *+' conftest.er1 >conftest.err
33609   rm -f conftest.er1
33610   cat conftest.err >&5
33611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612   (exit $ac_status); } &&
33613          { ac_try='test -z "$ac_c_werror_flag"
33614                          || test ! -s conftest.err'
33615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33616   (eval $ac_try) 2>&5
33617   ac_status=$?
33618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619   (exit $ac_status); }; } &&
33620          { ac_try='test -s conftest.$ac_objext'
33621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33622   (eval $ac_try) 2>&5
33623   ac_status=$?
33624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625   (exit $ac_status); }; }; then
33626   ac_cv_type_size_t=yes
33627 else
33628   echo "$as_me: failed program was:" >&5
33629 sed 's/^/| /' conftest.$ac_ext >&5
33630
33631 ac_cv_type_size_t=no
33632 fi
33633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33634 fi
33635 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33636 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33637 if test $ac_cv_type_size_t = yes; then
33638   :
33639 else
33640
33641 cat >>confdefs.h <<_ACEOF
33642 #define size_t unsigned
33643 _ACEOF
33644
33645 fi
33646
33647
33648 echo "$as_me:$LINENO: checking for long long" >&5
33649 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33650 if test "${ac_cv_type_long_long+set}" = set; then
33651   echo $ECHO_N "(cached) $ECHO_C" >&6
33652 else
33653   cat >conftest.$ac_ext <<_ACEOF
33654 /* confdefs.h.  */
33655 _ACEOF
33656 cat confdefs.h >>conftest.$ac_ext
33657 cat >>conftest.$ac_ext <<_ACEOF
33658 /* end confdefs.h.  */
33659 $ac_includes_default
33660 int
33661 main ()
33662 {
33663 if ((long long *) 0)
33664   return 0;
33665 if (sizeof (long long))
33666   return 0;
33667   ;
33668   return 0;
33669 }
33670 _ACEOF
33671 rm -f conftest.$ac_objext
33672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33673   (eval $ac_compile) 2>conftest.er1
33674   ac_status=$?
33675   grep -v '^ *+' conftest.er1 >conftest.err
33676   rm -f conftest.er1
33677   cat conftest.err >&5
33678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679   (exit $ac_status); } &&
33680          { ac_try='test -z "$ac_c_werror_flag"
33681                          || test ! -s conftest.err'
33682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33683   (eval $ac_try) 2>&5
33684   ac_status=$?
33685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686   (exit $ac_status); }; } &&
33687          { ac_try='test -s conftest.$ac_objext'
33688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33689   (eval $ac_try) 2>&5
33690   ac_status=$?
33691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33692   (exit $ac_status); }; }; then
33693   ac_cv_type_long_long=yes
33694 else
33695   echo "$as_me: failed program was:" >&5
33696 sed 's/^/| /' conftest.$ac_ext >&5
33697
33698 ac_cv_type_long_long=no
33699 fi
33700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33701 fi
33702 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33703 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33704 if test $ac_cv_type_long_long = yes; then
33705
33706 cat >>confdefs.h <<_ACEOF
33707 #define HAVE_LONG_LONG 1
33708 _ACEOF
33709
33710
33711 fi
33712
33713 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33714 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33715 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33716   echo $ECHO_N "(cached) $ECHO_C" >&6
33717 else
33718   cat >conftest.$ac_ext <<_ACEOF
33719 /* confdefs.h.  */
33720 _ACEOF
33721 cat confdefs.h >>conftest.$ac_ext
33722 cat >>conftest.$ac_ext <<_ACEOF
33723 /* end confdefs.h.  */
33724 $ac_includes_default
33725 int
33726 main ()
33727 {
33728 if ((ptrdiff_t *) 0)
33729   return 0;
33730 if (sizeof (ptrdiff_t))
33731   return 0;
33732   ;
33733   return 0;
33734 }
33735 _ACEOF
33736 rm -f conftest.$ac_objext
33737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33738   (eval $ac_compile) 2>conftest.er1
33739   ac_status=$?
33740   grep -v '^ *+' conftest.er1 >conftest.err
33741   rm -f conftest.er1
33742   cat conftest.err >&5
33743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744   (exit $ac_status); } &&
33745          { ac_try='test -z "$ac_c_werror_flag"
33746                          || test ! -s conftest.err'
33747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748   (eval $ac_try) 2>&5
33749   ac_status=$?
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); }; } &&
33752          { ac_try='test -s conftest.$ac_objext'
33753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33754   (eval $ac_try) 2>&5
33755   ac_status=$?
33756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757   (exit $ac_status); }; }; then
33758   ac_cv_type_ptrdiff_t=yes
33759 else
33760   echo "$as_me: failed program was:" >&5
33761 sed 's/^/| /' conftest.$ac_ext >&5
33762
33763 ac_cv_type_ptrdiff_t=no
33764 fi
33765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33766 fi
33767 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
33768 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
33769 if test $ac_cv_type_ptrdiff_t = yes; then
33770
33771 cat >>confdefs.h <<_ACEOF
33772 #define HAVE_PTRDIFF_T 1
33773 _ACEOF
33774
33775
33776 fi
33777
33778
33779 echo "$as_me:$LINENO: checking for socklen_t" >&5
33780 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
33781 if test "${ac_cv_type_socklen_t+set}" = set; then
33782   echo $ECHO_N "(cached) $ECHO_C" >&6
33783 else
33784   cat >conftest.$ac_ext <<_ACEOF
33785 /* confdefs.h.  */
33786 _ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h.  */
33790 $ac_includes_default
33791 #ifdef HAVE_SYS_SOCKET_H
33792 #include <sys/socket.h>
33793 #endif
33794
33795
33796 int
33797 main ()
33798 {
33799 if ((socklen_t *) 0)
33800   return 0;
33801 if (sizeof (socklen_t))
33802   return 0;
33803   ;
33804   return 0;
33805 }
33806 _ACEOF
33807 rm -f conftest.$ac_objext
33808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33809   (eval $ac_compile) 2>conftest.er1
33810   ac_status=$?
33811   grep -v '^ *+' conftest.er1 >conftest.err
33812   rm -f conftest.er1
33813   cat conftest.err >&5
33814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815   (exit $ac_status); } &&
33816          { ac_try='test -z "$ac_c_werror_flag"
33817                          || test ! -s conftest.err'
33818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819   (eval $ac_try) 2>&5
33820   ac_status=$?
33821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822   (exit $ac_status); }; } &&
33823          { ac_try='test -s conftest.$ac_objext'
33824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33825   (eval $ac_try) 2>&5
33826   ac_status=$?
33827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828   (exit $ac_status); }; }; then
33829   ac_cv_type_socklen_t=yes
33830 else
33831   echo "$as_me: failed program was:" >&5
33832 sed 's/^/| /' conftest.$ac_ext >&5
33833
33834 ac_cv_type_socklen_t=no
33835 fi
33836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33837 fi
33838 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
33839 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
33840 if test $ac_cv_type_socklen_t = yes; then
33841   :
33842 else
33843
33844 cat >>confdefs.h <<_ACEOF
33845 #define socklen_t int
33846 _ACEOF
33847
33848 fi
33849
33850
33851 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33852 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
33853 if test "${ac_cv_type_signal+set}" = set; then
33854   echo $ECHO_N "(cached) $ECHO_C" >&6
33855 else
33856   cat >conftest.$ac_ext <<_ACEOF
33857 /* confdefs.h.  */
33858 _ACEOF
33859 cat confdefs.h >>conftest.$ac_ext
33860 cat >>conftest.$ac_ext <<_ACEOF
33861 /* end confdefs.h.  */
33862 #include <sys/types.h>
33863 #include <signal.h>
33864 #ifdef signal
33865 # undef signal
33866 #endif
33867 #ifdef __cplusplus
33868 extern "C" void (*signal (int, void (*)(int)))(int);
33869 #else
33870 void (*signal ()) ();
33871 #endif
33872
33873 int
33874 main ()
33875 {
33876 int i;
33877   ;
33878   return 0;
33879 }
33880 _ACEOF
33881 rm -f conftest.$ac_objext
33882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33883   (eval $ac_compile) 2>conftest.er1
33884   ac_status=$?
33885   grep -v '^ *+' conftest.er1 >conftest.err
33886   rm -f conftest.er1
33887   cat conftest.err >&5
33888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889   (exit $ac_status); } &&
33890          { ac_try='test -z "$ac_c_werror_flag"
33891                          || test ! -s conftest.err'
33892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33893   (eval $ac_try) 2>&5
33894   ac_status=$?
33895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896   (exit $ac_status); }; } &&
33897          { ac_try='test -s conftest.$ac_objext'
33898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899   (eval $ac_try) 2>&5
33900   ac_status=$?
33901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902   (exit $ac_status); }; }; then
33903   ac_cv_type_signal=void
33904 else
33905   echo "$as_me: failed program was:" >&5
33906 sed 's/^/| /' conftest.$ac_ext >&5
33907
33908 ac_cv_type_signal=int
33909 fi
33910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33911 fi
33912 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33913 echo "${ECHO_T}$ac_cv_type_signal" >&6
33914
33915 cat >>confdefs.h <<_ACEOF
33916 #define RETSIGTYPE $ac_cv_type_signal
33917 _ACEOF
33918
33919
33920
33921 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
33922 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
33923 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
33924   echo $ECHO_N "(cached) $ECHO_C" >&6
33925 else
33926   cat >conftest.$ac_ext <<_ACEOF
33927 /* confdefs.h.  */
33928 _ACEOF
33929 cat confdefs.h >>conftest.$ac_ext
33930 cat >>conftest.$ac_ext <<_ACEOF
33931 /* end confdefs.h.  */
33932 $ac_includes_default
33933 #include <signal.h>
33934
33935
33936 int
33937 main ()
33938 {
33939 if ((sig_atomic_t *) 0)
33940   return 0;
33941 if (sizeof (sig_atomic_t))
33942   return 0;
33943   ;
33944   return 0;
33945 }
33946 _ACEOF
33947 rm -f conftest.$ac_objext
33948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33949   (eval $ac_compile) 2>conftest.er1
33950   ac_status=$?
33951   grep -v '^ *+' conftest.er1 >conftest.err
33952   rm -f conftest.er1
33953   cat conftest.err >&5
33954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33955   (exit $ac_status); } &&
33956          { ac_try='test -z "$ac_c_werror_flag"
33957                          || test ! -s conftest.err'
33958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33959   (eval $ac_try) 2>&5
33960   ac_status=$?
33961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962   (exit $ac_status); }; } &&
33963          { ac_try='test -s conftest.$ac_objext'
33964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33965   (eval $ac_try) 2>&5
33966   ac_status=$?
33967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33968   (exit $ac_status); }; }; then
33969   ac_cv_type_sig_atomic_t=yes
33970 else
33971   echo "$as_me: failed program was:" >&5
33972 sed 's/^/| /' conftest.$ac_ext >&5
33973
33974 ac_cv_type_sig_atomic_t=no
33975 fi
33976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33977 fi
33978 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
33979 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
33980 if test $ac_cv_type_sig_atomic_t = yes; then
33981   :
33982 else
33983
33984 cat >>confdefs.h <<_ACEOF
33985 #define sig_atomic_t int
33986 _ACEOF
33987
33988 fi
33989
33990
33991 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33992 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33993 if test "${ac_cv_type_uid_t+set}" = set; then
33994   echo $ECHO_N "(cached) $ECHO_C" >&6
33995 else
33996   cat >conftest.$ac_ext <<_ACEOF
33997 /* confdefs.h.  */
33998 _ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h.  */
34002 #include <sys/types.h>
34003
34004 _ACEOF
34005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34006   $EGREP "uid_t" >/dev/null 2>&1; then
34007   ac_cv_type_uid_t=yes
34008 else
34009   ac_cv_type_uid_t=no
34010 fi
34011 rm -f conftest*
34012
34013 fi
34014 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34015 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34016 if test $ac_cv_type_uid_t = no; then
34017
34018 cat >>confdefs.h <<\_ACEOF
34019 #define uid_t int
34020 _ACEOF
34021
34022
34023 cat >>confdefs.h <<\_ACEOF
34024 #define gid_t int
34025 _ACEOF
34026
34027 fi
34028
34029
34030 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34031 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34032 if test "${ac_cv_header_time+set}" = set; then
34033   echo $ECHO_N "(cached) $ECHO_C" >&6
34034 else
34035   cat >conftest.$ac_ext <<_ACEOF
34036 /* confdefs.h.  */
34037 _ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h.  */
34041 #include <sys/types.h>
34042 #include <sys/time.h>
34043 #include <time.h>
34044
34045 int
34046 main ()
34047 {
34048 if ((struct tm *) 0)
34049 return 0;
34050   ;
34051   return 0;
34052 }
34053 _ACEOF
34054 rm -f conftest.$ac_objext
34055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34056   (eval $ac_compile) 2>conftest.er1
34057   ac_status=$?
34058   grep -v '^ *+' conftest.er1 >conftest.err
34059   rm -f conftest.er1
34060   cat conftest.err >&5
34061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062   (exit $ac_status); } &&
34063          { ac_try='test -z "$ac_c_werror_flag"
34064                          || test ! -s conftest.err'
34065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066   (eval $ac_try) 2>&5
34067   ac_status=$?
34068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069   (exit $ac_status); }; } &&
34070          { ac_try='test -s conftest.$ac_objext'
34071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072   (eval $ac_try) 2>&5
34073   ac_status=$?
34074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075   (exit $ac_status); }; }; then
34076   ac_cv_header_time=yes
34077 else
34078   echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34080
34081 ac_cv_header_time=no
34082 fi
34083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34084 fi
34085 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34086 echo "${ECHO_T}$ac_cv_header_time" >&6
34087 if test $ac_cv_header_time = yes; then
34088
34089 cat >>confdefs.h <<\_ACEOF
34090 #define TIME_WITH_SYS_TIME 1
34091 _ACEOF
34092
34093 fi
34094
34095 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34096 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34097 if test "${ac_cv_struct_tm+set}" = set; then
34098   echo $ECHO_N "(cached) $ECHO_C" >&6
34099 else
34100   cat >conftest.$ac_ext <<_ACEOF
34101 /* confdefs.h.  */
34102 _ACEOF
34103 cat confdefs.h >>conftest.$ac_ext
34104 cat >>conftest.$ac_ext <<_ACEOF
34105 /* end confdefs.h.  */
34106 #include <sys/types.h>
34107 #include <time.h>
34108
34109 int
34110 main ()
34111 {
34112 struct tm *tp; tp->tm_sec;
34113   ;
34114   return 0;
34115 }
34116 _ACEOF
34117 rm -f conftest.$ac_objext
34118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34119   (eval $ac_compile) 2>conftest.er1
34120   ac_status=$?
34121   grep -v '^ *+' conftest.er1 >conftest.err
34122   rm -f conftest.er1
34123   cat conftest.err >&5
34124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125   (exit $ac_status); } &&
34126          { ac_try='test -z "$ac_c_werror_flag"
34127                          || test ! -s conftest.err'
34128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34129   (eval $ac_try) 2>&5
34130   ac_status=$?
34131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132   (exit $ac_status); }; } &&
34133          { ac_try='test -s conftest.$ac_objext'
34134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34135   (eval $ac_try) 2>&5
34136   ac_status=$?
34137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34138   (exit $ac_status); }; }; then
34139   ac_cv_struct_tm=time.h
34140 else
34141   echo "$as_me: failed program was:" >&5
34142 sed 's/^/| /' conftest.$ac_ext >&5
34143
34144 ac_cv_struct_tm=sys/time.h
34145 fi
34146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34147 fi
34148 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34149 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34150 if test $ac_cv_struct_tm = sys/time.h; then
34151
34152 cat >>confdefs.h <<\_ACEOF
34153 #define TM_IN_SYS_TIME 1
34154 _ACEOF
34155
34156 fi
34157
34158 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34159 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34160 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34161   echo $ECHO_N "(cached) $ECHO_C" >&6
34162 else
34163   cat >conftest.$ac_ext <<_ACEOF
34164 /* confdefs.h.  */
34165 _ACEOF
34166 cat confdefs.h >>conftest.$ac_ext
34167 cat >>conftest.$ac_ext <<_ACEOF
34168 /* end confdefs.h.  */
34169 $ac_includes_default
34170 int
34171 main ()
34172 {
34173 static struct stat ac_aggr;
34174 if (ac_aggr.st_blksize)
34175 return 0;
34176   ;
34177   return 0;
34178 }
34179 _ACEOF
34180 rm -f conftest.$ac_objext
34181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34182   (eval $ac_compile) 2>conftest.er1
34183   ac_status=$?
34184   grep -v '^ *+' conftest.er1 >conftest.err
34185   rm -f conftest.er1
34186   cat conftest.err >&5
34187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188   (exit $ac_status); } &&
34189          { ac_try='test -z "$ac_c_werror_flag"
34190                          || test ! -s conftest.err'
34191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192   (eval $ac_try) 2>&5
34193   ac_status=$?
34194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195   (exit $ac_status); }; } &&
34196          { ac_try='test -s conftest.$ac_objext'
34197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34198   (eval $ac_try) 2>&5
34199   ac_status=$?
34200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201   (exit $ac_status); }; }; then
34202   ac_cv_member_struct_stat_st_blksize=yes
34203 else
34204   echo "$as_me: failed program was:" >&5
34205 sed 's/^/| /' conftest.$ac_ext >&5
34206
34207 cat >conftest.$ac_ext <<_ACEOF
34208 /* confdefs.h.  */
34209 _ACEOF
34210 cat confdefs.h >>conftest.$ac_ext
34211 cat >>conftest.$ac_ext <<_ACEOF
34212 /* end confdefs.h.  */
34213 $ac_includes_default
34214 int
34215 main ()
34216 {
34217 static struct stat ac_aggr;
34218 if (sizeof ac_aggr.st_blksize)
34219 return 0;
34220   ;
34221   return 0;
34222 }
34223 _ACEOF
34224 rm -f conftest.$ac_objext
34225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34226   (eval $ac_compile) 2>conftest.er1
34227   ac_status=$?
34228   grep -v '^ *+' conftest.er1 >conftest.err
34229   rm -f conftest.er1
34230   cat conftest.err >&5
34231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232   (exit $ac_status); } &&
34233          { ac_try='test -z "$ac_c_werror_flag"
34234                          || test ! -s conftest.err'
34235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34236   (eval $ac_try) 2>&5
34237   ac_status=$?
34238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239   (exit $ac_status); }; } &&
34240          { ac_try='test -s conftest.$ac_objext'
34241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34242   (eval $ac_try) 2>&5
34243   ac_status=$?
34244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245   (exit $ac_status); }; }; then
34246   ac_cv_member_struct_stat_st_blksize=yes
34247 else
34248   echo "$as_me: failed program was:" >&5
34249 sed 's/^/| /' conftest.$ac_ext >&5
34250
34251 ac_cv_member_struct_stat_st_blksize=no
34252 fi
34253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34254 fi
34255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34256 fi
34257 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34258 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34259 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34260
34261 cat >>confdefs.h <<_ACEOF
34262 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34263 _ACEOF
34264
34265
34266 fi
34267
34268 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34269 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34270 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34271   echo $ECHO_N "(cached) $ECHO_C" >&6
34272 else
34273   cat >conftest.$ac_ext <<_ACEOF
34274 /* confdefs.h.  */
34275 _ACEOF
34276 cat confdefs.h >>conftest.$ac_ext
34277 cat >>conftest.$ac_ext <<_ACEOF
34278 /* end confdefs.h.  */
34279 $ac_includes_default
34280 #include <pwd.h>
34281
34282 int
34283 main ()
34284 {
34285 static struct passwd ac_aggr;
34286 if (ac_aggr.pw_gecos)
34287 return 0;
34288   ;
34289   return 0;
34290 }
34291 _ACEOF
34292 rm -f conftest.$ac_objext
34293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34294   (eval $ac_compile) 2>conftest.er1
34295   ac_status=$?
34296   grep -v '^ *+' conftest.er1 >conftest.err
34297   rm -f conftest.er1
34298   cat conftest.err >&5
34299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300   (exit $ac_status); } &&
34301          { ac_try='test -z "$ac_c_werror_flag"
34302                          || test ! -s conftest.err'
34303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34304   (eval $ac_try) 2>&5
34305   ac_status=$?
34306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307   (exit $ac_status); }; } &&
34308          { ac_try='test -s conftest.$ac_objext'
34309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34310   (eval $ac_try) 2>&5
34311   ac_status=$?
34312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313   (exit $ac_status); }; }; then
34314   ac_cv_member_struct_passwd_pw_gecos=yes
34315 else
34316   echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34318
34319 cat >conftest.$ac_ext <<_ACEOF
34320 /* confdefs.h.  */
34321 _ACEOF
34322 cat confdefs.h >>conftest.$ac_ext
34323 cat >>conftest.$ac_ext <<_ACEOF
34324 /* end confdefs.h.  */
34325 $ac_includes_default
34326 #include <pwd.h>
34327
34328 int
34329 main ()
34330 {
34331 static struct passwd ac_aggr;
34332 if (sizeof ac_aggr.pw_gecos)
34333 return 0;
34334   ;
34335   return 0;
34336 }
34337 _ACEOF
34338 rm -f conftest.$ac_objext
34339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34340   (eval $ac_compile) 2>conftest.er1
34341   ac_status=$?
34342   grep -v '^ *+' conftest.er1 >conftest.err
34343   rm -f conftest.er1
34344   cat conftest.err >&5
34345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346   (exit $ac_status); } &&
34347          { ac_try='test -z "$ac_c_werror_flag"
34348                          || test ! -s conftest.err'
34349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34350   (eval $ac_try) 2>&5
34351   ac_status=$?
34352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353   (exit $ac_status); }; } &&
34354          { ac_try='test -s conftest.$ac_objext'
34355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34356   (eval $ac_try) 2>&5
34357   ac_status=$?
34358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359   (exit $ac_status); }; }; then
34360   ac_cv_member_struct_passwd_pw_gecos=yes
34361 else
34362   echo "$as_me: failed program was:" >&5
34363 sed 's/^/| /' conftest.$ac_ext >&5
34364
34365 ac_cv_member_struct_passwd_pw_gecos=no
34366 fi
34367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34368 fi
34369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34370 fi
34371 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34372 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34373 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34374
34375 cat >>confdefs.h <<_ACEOF
34376 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34377 _ACEOF
34378
34379
34380 fi
34381
34382 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34383 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34384 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34385   echo $ECHO_N "(cached) $ECHO_C" >&6
34386 else
34387   cat >conftest.$ac_ext <<_ACEOF
34388 /* confdefs.h.  */
34389 _ACEOF
34390 cat confdefs.h >>conftest.$ac_ext
34391 cat >>conftest.$ac_ext <<_ACEOF
34392 /* end confdefs.h.  */
34393 $ac_includes_default
34394 #include <pwd.h>
34395
34396 int
34397 main ()
34398 {
34399 static struct passwd ac_aggr;
34400 if (ac_aggr.pw_passwd)
34401 return 0;
34402   ;
34403   return 0;
34404 }
34405 _ACEOF
34406 rm -f conftest.$ac_objext
34407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34408   (eval $ac_compile) 2>conftest.er1
34409   ac_status=$?
34410   grep -v '^ *+' conftest.er1 >conftest.err
34411   rm -f conftest.er1
34412   cat conftest.err >&5
34413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414   (exit $ac_status); } &&
34415          { ac_try='test -z "$ac_c_werror_flag"
34416                          || test ! -s conftest.err'
34417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418   (eval $ac_try) 2>&5
34419   ac_status=$?
34420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421   (exit $ac_status); }; } &&
34422          { ac_try='test -s conftest.$ac_objext'
34423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34424   (eval $ac_try) 2>&5
34425   ac_status=$?
34426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427   (exit $ac_status); }; }; then
34428   ac_cv_member_struct_passwd_pw_passwd=yes
34429 else
34430   echo "$as_me: failed program was:" >&5
34431 sed 's/^/| /' conftest.$ac_ext >&5
34432
34433 cat >conftest.$ac_ext <<_ACEOF
34434 /* confdefs.h.  */
34435 _ACEOF
34436 cat confdefs.h >>conftest.$ac_ext
34437 cat >>conftest.$ac_ext <<_ACEOF
34438 /* end confdefs.h.  */
34439 $ac_includes_default
34440 #include <pwd.h>
34441
34442 int
34443 main ()
34444 {
34445 static struct passwd ac_aggr;
34446 if (sizeof ac_aggr.pw_passwd)
34447 return 0;
34448   ;
34449   return 0;
34450 }
34451 _ACEOF
34452 rm -f conftest.$ac_objext
34453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34454   (eval $ac_compile) 2>conftest.er1
34455   ac_status=$?
34456   grep -v '^ *+' conftest.er1 >conftest.err
34457   rm -f conftest.er1
34458   cat conftest.err >&5
34459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460   (exit $ac_status); } &&
34461          { ac_try='test -z "$ac_c_werror_flag"
34462                          || test ! -s conftest.err'
34463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34464   (eval $ac_try) 2>&5
34465   ac_status=$?
34466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467   (exit $ac_status); }; } &&
34468          { ac_try='test -s conftest.$ac_objext'
34469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470   (eval $ac_try) 2>&5
34471   ac_status=$?
34472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473   (exit $ac_status); }; }; then
34474   ac_cv_member_struct_passwd_pw_passwd=yes
34475 else
34476   echo "$as_me: failed program was:" >&5
34477 sed 's/^/| /' conftest.$ac_ext >&5
34478
34479 ac_cv_member_struct_passwd_pw_passwd=no
34480 fi
34481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34482 fi
34483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34484 fi
34485 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34486 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34487 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34488
34489 cat >>confdefs.h <<_ACEOF
34490 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34491 _ACEOF
34492
34493
34494 fi
34495
34496
34497 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34498 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34499 if test "${ol_cv_c_upper_lower+set}" = set; then
34500   echo $ECHO_N "(cached) $ECHO_C" >&6
34501 else
34502
34503         if test "$cross_compiling" = yes; then
34504   ol_cv_c_upper_lower=safe
34505 else
34506   cat >conftest.$ac_ext <<_ACEOF
34507 /* confdefs.h.  */
34508 _ACEOF
34509 cat confdefs.h >>conftest.$ac_ext
34510 cat >>conftest.$ac_ext <<_ACEOF
34511 /* end confdefs.h.  */
34512
34513 #include <ctype.h>
34514 main()
34515 {
34516         if ('C' == toupper('C'))
34517                 exit(0);
34518         else
34519                 exit(1);
34520 }
34521 _ACEOF
34522 rm -f conftest$ac_exeext
34523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34524   (eval $ac_link) 2>&5
34525   ac_status=$?
34526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34529   (eval $ac_try) 2>&5
34530   ac_status=$?
34531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532   (exit $ac_status); }; }; then
34533   ol_cv_c_upper_lower=no
34534 else
34535   echo "$as_me: program exited with status $ac_status" >&5
34536 echo "$as_me: failed program was:" >&5
34537 sed 's/^/| /' conftest.$ac_ext >&5
34538
34539 ( exit $ac_status )
34540 ol_cv_c_upper_lower=yes
34541 fi
34542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34543 fi
34544 fi
34545 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34546 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34547 if test $ol_cv_c_upper_lower != no ; then
34548
34549 cat >>confdefs.h <<\_ACEOF
34550 #define C_UPPER_LOWER 1
34551 _ACEOF
34552
34553 fi
34554
34555 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34556 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34557 if test "${ac_cv_c_const+set}" = set; then
34558   echo $ECHO_N "(cached) $ECHO_C" >&6
34559 else
34560   cat >conftest.$ac_ext <<_ACEOF
34561 /* confdefs.h.  */
34562 _ACEOF
34563 cat confdefs.h >>conftest.$ac_ext
34564 cat >>conftest.$ac_ext <<_ACEOF
34565 /* end confdefs.h.  */
34566
34567 int
34568 main ()
34569 {
34570 /* FIXME: Include the comments suggested by Paul. */
34571 #ifndef __cplusplus
34572   /* Ultrix mips cc rejects this.  */
34573   typedef int charset[2];
34574   const charset x;
34575   /* SunOS 4.1.1 cc rejects this.  */
34576   char const *const *ccp;
34577   char **p;
34578   /* NEC SVR4.0.2 mips cc rejects this.  */
34579   struct point {int x, y;};
34580   static struct point const zero = {0,0};
34581   /* AIX XL C 1.02.0.0 rejects this.
34582      It does not let you subtract one const X* pointer from another in
34583      an arm of an if-expression whose if-part is not a constant
34584      expression */
34585   const char *g = "string";
34586   ccp = &g + (g ? g-g : 0);
34587   /* HPUX 7.0 cc rejects these. */
34588   ++ccp;
34589   p = (char**) ccp;
34590   ccp = (char const *const *) p;
34591   { /* SCO 3.2v4 cc rejects this.  */
34592     char *t;
34593     char const *s = 0 ? (char *) 0 : (char const *) 0;
34594
34595     *t++ = 0;
34596   }
34597   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34598     int x[] = {25, 17};
34599     const int *foo = &x[0];
34600     ++foo;
34601   }
34602   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34603     typedef const int *iptr;
34604     iptr p = 0;
34605     ++p;
34606   }
34607   { /* AIX XL C 1.02.0.0 rejects this saying
34608        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34609     struct s { int j; const int *ap[3]; };
34610     struct s *b; b->j = 5;
34611   }
34612   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34613     const int foo = 10;
34614   }
34615 #endif
34616
34617   ;
34618   return 0;
34619 }
34620 _ACEOF
34621 rm -f conftest.$ac_objext
34622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34623   (eval $ac_compile) 2>conftest.er1
34624   ac_status=$?
34625   grep -v '^ *+' conftest.er1 >conftest.err
34626   rm -f conftest.er1
34627   cat conftest.err >&5
34628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629   (exit $ac_status); } &&
34630          { ac_try='test -z "$ac_c_werror_flag"
34631                          || test ! -s conftest.err'
34632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633   (eval $ac_try) 2>&5
34634   ac_status=$?
34635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636   (exit $ac_status); }; } &&
34637          { ac_try='test -s conftest.$ac_objext'
34638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34639   (eval $ac_try) 2>&5
34640   ac_status=$?
34641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642   (exit $ac_status); }; }; then
34643   ac_cv_c_const=yes
34644 else
34645   echo "$as_me: failed program was:" >&5
34646 sed 's/^/| /' conftest.$ac_ext >&5
34647
34648 ac_cv_c_const=no
34649 fi
34650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34651 fi
34652 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34653 echo "${ECHO_T}$ac_cv_c_const" >&6
34654 if test $ac_cv_c_const = no; then
34655
34656 cat >>confdefs.h <<\_ACEOF
34657 #define const
34658 _ACEOF
34659
34660 fi
34661
34662 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34663 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34664 if test "${ol_cv_c_volatile+set}" = set; then
34665   echo $ECHO_N "(cached) $ECHO_C" >&6
34666 else
34667   cat >conftest.$ac_ext <<_ACEOF
34668 /* confdefs.h.  */
34669 _ACEOF
34670 cat confdefs.h >>conftest.$ac_ext
34671 cat >>conftest.$ac_ext <<_ACEOF
34672 /* end confdefs.h.  */
34673 int x, y, z;
34674 int
34675 main ()
34676 {
34677 volatile int a; int * volatile b = x ? &y : &z;
34678       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34679       *b = 0;
34680   ;
34681   return 0;
34682 }
34683 _ACEOF
34684 rm -f conftest.$ac_objext
34685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34686   (eval $ac_compile) 2>conftest.er1
34687   ac_status=$?
34688   grep -v '^ *+' conftest.er1 >conftest.err
34689   rm -f conftest.er1
34690   cat conftest.err >&5
34691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692   (exit $ac_status); } &&
34693          { ac_try='test -z "$ac_c_werror_flag"
34694                          || test ! -s conftest.err'
34695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34696   (eval $ac_try) 2>&5
34697   ac_status=$?
34698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699   (exit $ac_status); }; } &&
34700          { ac_try='test -s conftest.$ac_objext'
34701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34702   (eval $ac_try) 2>&5
34703   ac_status=$?
34704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705   (exit $ac_status); }; }; then
34706   ol_cv_c_volatile=yes
34707 else
34708   echo "$as_me: failed program was:" >&5
34709 sed 's/^/| /' conftest.$ac_ext >&5
34710
34711 ol_cv_c_volatile=no
34712 fi
34713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34714 fi
34715 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
34716 echo "${ECHO_T}$ol_cv_c_volatile" >&6
34717   if test $ol_cv_c_volatile = yes; then
34718     :
34719   else
34720
34721 cat >>confdefs.h <<\_ACEOF
34722 #define volatile
34723 _ACEOF
34724
34725   fi
34726
34727
34728 if test $cross_compiling = yes ; then
34729         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
34730 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
34731
34732 cat >>confdefs.h <<\_ACEOF
34733 #define CROSS_COMPILING 1
34734 _ACEOF
34735
34736 else
34737         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34738 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
34739 if test "${ac_cv_c_bigendian+set}" = set; then
34740   echo $ECHO_N "(cached) $ECHO_C" >&6
34741 else
34742   # See if sys/param.h defines the BYTE_ORDER macro.
34743 cat >conftest.$ac_ext <<_ACEOF
34744 /* confdefs.h.  */
34745 _ACEOF
34746 cat confdefs.h >>conftest.$ac_ext
34747 cat >>conftest.$ac_ext <<_ACEOF
34748 /* end confdefs.h.  */
34749 #include <sys/types.h>
34750 #include <sys/param.h>
34751
34752 int
34753 main ()
34754 {
34755 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
34756  bogus endian macros
34757 #endif
34758
34759   ;
34760   return 0;
34761 }
34762 _ACEOF
34763 rm -f conftest.$ac_objext
34764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34765   (eval $ac_compile) 2>conftest.er1
34766   ac_status=$?
34767   grep -v '^ *+' conftest.er1 >conftest.err
34768   rm -f conftest.er1
34769   cat conftest.err >&5
34770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771   (exit $ac_status); } &&
34772          { ac_try='test -z "$ac_c_werror_flag"
34773                          || test ! -s conftest.err'
34774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34775   (eval $ac_try) 2>&5
34776   ac_status=$?
34777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778   (exit $ac_status); }; } &&
34779          { ac_try='test -s conftest.$ac_objext'
34780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34781   (eval $ac_try) 2>&5
34782   ac_status=$?
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); }; }; then
34785   # It does; now see whether it defined to BIG_ENDIAN or not.
34786 cat >conftest.$ac_ext <<_ACEOF
34787 /* confdefs.h.  */
34788 _ACEOF
34789 cat confdefs.h >>conftest.$ac_ext
34790 cat >>conftest.$ac_ext <<_ACEOF
34791 /* end confdefs.h.  */
34792 #include <sys/types.h>
34793 #include <sys/param.h>
34794
34795 int
34796 main ()
34797 {
34798 #if BYTE_ORDER != BIG_ENDIAN
34799  not big endian
34800 #endif
34801
34802   ;
34803   return 0;
34804 }
34805 _ACEOF
34806 rm -f conftest.$ac_objext
34807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34808   (eval $ac_compile) 2>conftest.er1
34809   ac_status=$?
34810   grep -v '^ *+' conftest.er1 >conftest.err
34811   rm -f conftest.er1
34812   cat conftest.err >&5
34813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814   (exit $ac_status); } &&
34815          { ac_try='test -z "$ac_c_werror_flag"
34816                          || test ! -s conftest.err'
34817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34818   (eval $ac_try) 2>&5
34819   ac_status=$?
34820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821   (exit $ac_status); }; } &&
34822          { ac_try='test -s conftest.$ac_objext'
34823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824   (eval $ac_try) 2>&5
34825   ac_status=$?
34826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827   (exit $ac_status); }; }; then
34828   ac_cv_c_bigendian=yes
34829 else
34830   echo "$as_me: failed program was:" >&5
34831 sed 's/^/| /' conftest.$ac_ext >&5
34832
34833 ac_cv_c_bigendian=no
34834 fi
34835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34836 else
34837   echo "$as_me: failed program was:" >&5
34838 sed 's/^/| /' conftest.$ac_ext >&5
34839
34840 # It does not; compile a test program.
34841 if test "$cross_compiling" = yes; then
34842   # try to guess the endianness by grepping values into an object file
34843   ac_cv_c_bigendian=unknown
34844   cat >conftest.$ac_ext <<_ACEOF
34845 /* confdefs.h.  */
34846 _ACEOF
34847 cat confdefs.h >>conftest.$ac_ext
34848 cat >>conftest.$ac_ext <<_ACEOF
34849 /* end confdefs.h.  */
34850 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34851 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34852 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
34853 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34854 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34855 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
34856 int
34857 main ()
34858 {
34859  _ascii (); _ebcdic ();
34860   ;
34861   return 0;
34862 }
34863 _ACEOF
34864 rm -f conftest.$ac_objext
34865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34866   (eval $ac_compile) 2>conftest.er1
34867   ac_status=$?
34868   grep -v '^ *+' conftest.er1 >conftest.err
34869   rm -f conftest.er1
34870   cat conftest.err >&5
34871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34872   (exit $ac_status); } &&
34873          { ac_try='test -z "$ac_c_werror_flag"
34874                          || test ! -s conftest.err'
34875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34876   (eval $ac_try) 2>&5
34877   ac_status=$?
34878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34879   (exit $ac_status); }; } &&
34880          { ac_try='test -s conftest.$ac_objext'
34881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34882   (eval $ac_try) 2>&5
34883   ac_status=$?
34884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885   (exit $ac_status); }; }; then
34886   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
34887   ac_cv_c_bigendian=yes
34888 fi
34889 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34890   if test "$ac_cv_c_bigendian" = unknown; then
34891     ac_cv_c_bigendian=no
34892   else
34893     # finding both strings is unlikely to happen, but who knows?
34894     ac_cv_c_bigendian=unknown
34895   fi
34896 fi
34897 else
34898   echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34900
34901 fi
34902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34903 else
34904   cat >conftest.$ac_ext <<_ACEOF
34905 /* confdefs.h.  */
34906 _ACEOF
34907 cat confdefs.h >>conftest.$ac_ext
34908 cat >>conftest.$ac_ext <<_ACEOF
34909 /* end confdefs.h.  */
34910 int
34911 main ()
34912 {
34913   /* Are we little or big endian?  From Harbison&Steele.  */
34914   union
34915   {
34916     long l;
34917     char c[sizeof (long)];
34918   } u;
34919   u.l = 1;
34920   exit (u.c[sizeof (long) - 1] == 1);
34921 }
34922 _ACEOF
34923 rm -f conftest$ac_exeext
34924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34925   (eval $ac_link) 2>&5
34926   ac_status=$?
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930   (eval $ac_try) 2>&5
34931   ac_status=$?
34932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933   (exit $ac_status); }; }; then
34934   ac_cv_c_bigendian=no
34935 else
34936   echo "$as_me: program exited with status $ac_status" >&5
34937 echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34939
34940 ( exit $ac_status )
34941 ac_cv_c_bigendian=yes
34942 fi
34943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34944 fi
34945 fi
34946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34947 fi
34948 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34949 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
34950 case $ac_cv_c_bigendian in
34951   yes)
34952
34953 cat >>confdefs.h <<\_ACEOF
34954 #define WORDS_BIGENDIAN 1
34955 _ACEOF
34956  ;;
34957   no)
34958      ;;
34959   *)
34960     { { echo "$as_me:$LINENO: error: unknown endianness
34961 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34962 echo "$as_me: error: unknown endianness
34963 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34964    { (exit 1); exit 1; }; } ;;
34965 esac
34966
34967 fi
34968
34969 echo "$as_me:$LINENO: checking for short" >&5
34970 echo $ECHO_N "checking for short... $ECHO_C" >&6
34971 if test "${ac_cv_type_short+set}" = set; then
34972   echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974   cat >conftest.$ac_ext <<_ACEOF
34975 /* confdefs.h.  */
34976 _ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h.  */
34980 $ac_includes_default
34981 int
34982 main ()
34983 {
34984 if ((short *) 0)
34985   return 0;
34986 if (sizeof (short))
34987   return 0;
34988   ;
34989   return 0;
34990 }
34991 _ACEOF
34992 rm -f conftest.$ac_objext
34993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34994   (eval $ac_compile) 2>conftest.er1
34995   ac_status=$?
34996   grep -v '^ *+' conftest.er1 >conftest.err
34997   rm -f conftest.er1
34998   cat conftest.err >&5
34999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000   (exit $ac_status); } &&
35001          { ac_try='test -z "$ac_c_werror_flag"
35002                          || test ! -s conftest.err'
35003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004   (eval $ac_try) 2>&5
35005   ac_status=$?
35006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007   (exit $ac_status); }; } &&
35008          { ac_try='test -s conftest.$ac_objext'
35009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35010   (eval $ac_try) 2>&5
35011   ac_status=$?
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); }; }; then
35014   ac_cv_type_short=yes
35015 else
35016   echo "$as_me: failed program was:" >&5
35017 sed 's/^/| /' conftest.$ac_ext >&5
35018
35019 ac_cv_type_short=no
35020 fi
35021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35022 fi
35023 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35024 echo "${ECHO_T}$ac_cv_type_short" >&6
35025
35026 echo "$as_me:$LINENO: checking size of short" >&5
35027 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35028 if test "${ac_cv_sizeof_short+set}" = set; then
35029   echo $ECHO_N "(cached) $ECHO_C" >&6
35030 else
35031   if test "$ac_cv_type_short" = yes; then
35032   # The cast to unsigned long works around a bug in the HP C Compiler
35033   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35034   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35035   # This bug is HP SR number 8606223364.
35036   if test "$cross_compiling" = yes; then
35037   # Depending upon the size, compute the lo and hi bounds.
35038 cat >conftest.$ac_ext <<_ACEOF
35039 /* confdefs.h.  */
35040 _ACEOF
35041 cat confdefs.h >>conftest.$ac_ext
35042 cat >>conftest.$ac_ext <<_ACEOF
35043 /* end confdefs.h.  */
35044 $ac_includes_default
35045 int
35046 main ()
35047 {
35048 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35049 test_array [0] = 0
35050
35051   ;
35052   return 0;
35053 }
35054 _ACEOF
35055 rm -f conftest.$ac_objext
35056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35057   (eval $ac_compile) 2>conftest.er1
35058   ac_status=$?
35059   grep -v '^ *+' conftest.er1 >conftest.err
35060   rm -f conftest.er1
35061   cat conftest.err >&5
35062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063   (exit $ac_status); } &&
35064          { ac_try='test -z "$ac_c_werror_flag"
35065                          || test ! -s conftest.err'
35066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35067   (eval $ac_try) 2>&5
35068   ac_status=$?
35069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070   (exit $ac_status); }; } &&
35071          { ac_try='test -s conftest.$ac_objext'
35072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073   (eval $ac_try) 2>&5
35074   ac_status=$?
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); }; }; then
35077   ac_lo=0 ac_mid=0
35078   while :; do
35079     cat >conftest.$ac_ext <<_ACEOF
35080 /* confdefs.h.  */
35081 _ACEOF
35082 cat confdefs.h >>conftest.$ac_ext
35083 cat >>conftest.$ac_ext <<_ACEOF
35084 /* end confdefs.h.  */
35085 $ac_includes_default
35086 int
35087 main ()
35088 {
35089 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35090 test_array [0] = 0
35091
35092   ;
35093   return 0;
35094 }
35095 _ACEOF
35096 rm -f conftest.$ac_objext
35097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35098   (eval $ac_compile) 2>conftest.er1
35099   ac_status=$?
35100   grep -v '^ *+' conftest.er1 >conftest.err
35101   rm -f conftest.er1
35102   cat conftest.err >&5
35103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104   (exit $ac_status); } &&
35105          { ac_try='test -z "$ac_c_werror_flag"
35106                          || test ! -s conftest.err'
35107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108   (eval $ac_try) 2>&5
35109   ac_status=$?
35110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111   (exit $ac_status); }; } &&
35112          { ac_try='test -s conftest.$ac_objext'
35113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114   (eval $ac_try) 2>&5
35115   ac_status=$?
35116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117   (exit $ac_status); }; }; then
35118   ac_hi=$ac_mid; break
35119 else
35120   echo "$as_me: failed program was:" >&5
35121 sed 's/^/| /' conftest.$ac_ext >&5
35122
35123 ac_lo=`expr $ac_mid + 1`
35124                     if test $ac_lo -le $ac_mid; then
35125                       ac_lo= ac_hi=
35126                       break
35127                     fi
35128                     ac_mid=`expr 2 '*' $ac_mid + 1`
35129 fi
35130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35131   done
35132 else
35133   echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35135
35136 cat >conftest.$ac_ext <<_ACEOF
35137 /* confdefs.h.  */
35138 _ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h.  */
35142 $ac_includes_default
35143 int
35144 main ()
35145 {
35146 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35147 test_array [0] = 0
35148
35149   ;
35150   return 0;
35151 }
35152 _ACEOF
35153 rm -f conftest.$ac_objext
35154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35155   (eval $ac_compile) 2>conftest.er1
35156   ac_status=$?
35157   grep -v '^ *+' conftest.er1 >conftest.err
35158   rm -f conftest.er1
35159   cat conftest.err >&5
35160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161   (exit $ac_status); } &&
35162          { ac_try='test -z "$ac_c_werror_flag"
35163                          || test ! -s conftest.err'
35164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35165   (eval $ac_try) 2>&5
35166   ac_status=$?
35167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168   (exit $ac_status); }; } &&
35169          { ac_try='test -s conftest.$ac_objext'
35170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171   (eval $ac_try) 2>&5
35172   ac_status=$?
35173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174   (exit $ac_status); }; }; then
35175   ac_hi=-1 ac_mid=-1
35176   while :; do
35177     cat >conftest.$ac_ext <<_ACEOF
35178 /* confdefs.h.  */
35179 _ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h.  */
35183 $ac_includes_default
35184 int
35185 main ()
35186 {
35187 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35188 test_array [0] = 0
35189
35190   ;
35191   return 0;
35192 }
35193 _ACEOF
35194 rm -f conftest.$ac_objext
35195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35196   (eval $ac_compile) 2>conftest.er1
35197   ac_status=$?
35198   grep -v '^ *+' conftest.er1 >conftest.err
35199   rm -f conftest.er1
35200   cat conftest.err >&5
35201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202   (exit $ac_status); } &&
35203          { ac_try='test -z "$ac_c_werror_flag"
35204                          || test ! -s conftest.err'
35205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35206   (eval $ac_try) 2>&5
35207   ac_status=$?
35208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209   (exit $ac_status); }; } &&
35210          { ac_try='test -s conftest.$ac_objext'
35211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35212   (eval $ac_try) 2>&5
35213   ac_status=$?
35214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215   (exit $ac_status); }; }; then
35216   ac_lo=$ac_mid; break
35217 else
35218   echo "$as_me: failed program was:" >&5
35219 sed 's/^/| /' conftest.$ac_ext >&5
35220
35221 ac_hi=`expr '(' $ac_mid ')' - 1`
35222                        if test $ac_mid -le $ac_hi; then
35223                          ac_lo= ac_hi=
35224                          break
35225                        fi
35226                        ac_mid=`expr 2 '*' $ac_mid`
35227 fi
35228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35229   done
35230 else
35231   echo "$as_me: failed program was:" >&5
35232 sed 's/^/| /' conftest.$ac_ext >&5
35233
35234 ac_lo= ac_hi=
35235 fi
35236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35237 fi
35238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35239 # Binary search between lo and hi bounds.
35240 while test "x$ac_lo" != "x$ac_hi"; do
35241   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35242   cat >conftest.$ac_ext <<_ACEOF
35243 /* confdefs.h.  */
35244 _ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h.  */
35248 $ac_includes_default
35249 int
35250 main ()
35251 {
35252 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35253 test_array [0] = 0
35254
35255   ;
35256   return 0;
35257 }
35258 _ACEOF
35259 rm -f conftest.$ac_objext
35260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35261   (eval $ac_compile) 2>conftest.er1
35262   ac_status=$?
35263   grep -v '^ *+' conftest.er1 >conftest.err
35264   rm -f conftest.er1
35265   cat conftest.err >&5
35266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); } &&
35268          { ac_try='test -z "$ac_c_werror_flag"
35269                          || test ! -s conftest.err'
35270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271   (eval $ac_try) 2>&5
35272   ac_status=$?
35273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274   (exit $ac_status); }; } &&
35275          { ac_try='test -s conftest.$ac_objext'
35276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277   (eval $ac_try) 2>&5
35278   ac_status=$?
35279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280   (exit $ac_status); }; }; then
35281   ac_hi=$ac_mid
35282 else
35283   echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35285
35286 ac_lo=`expr '(' $ac_mid ')' + 1`
35287 fi
35288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35289 done
35290 case $ac_lo in
35291 ?*) ac_cv_sizeof_short=$ac_lo;;
35292 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35293 See \`config.log' for more details." >&5
35294 echo "$as_me: error: cannot compute sizeof (short), 77
35295 See \`config.log' for more details." >&2;}
35296    { (exit 1); exit 1; }; } ;;
35297 esac
35298 else
35299   if test "$cross_compiling" = yes; then
35300   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35301 See \`config.log' for more details." >&5
35302 echo "$as_me: error: cannot run test program while cross compiling
35303 See \`config.log' for more details." >&2;}
35304    { (exit 1); exit 1; }; }
35305 else
35306   cat >conftest.$ac_ext <<_ACEOF
35307 /* confdefs.h.  */
35308 _ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h.  */
35312 $ac_includes_default
35313 long longval () { return (long) (sizeof (short)); }
35314 unsigned long ulongval () { return (long) (sizeof (short)); }
35315 #include <stdio.h>
35316 #include <stdlib.h>
35317 int
35318 main ()
35319 {
35320
35321   FILE *f = fopen ("conftest.val", "w");
35322   if (! f)
35323     exit (1);
35324   if (((long) (sizeof (short))) < 0)
35325     {
35326       long i = longval ();
35327       if (i != ((long) (sizeof (short))))
35328         exit (1);
35329       fprintf (f, "%ld\n", i);
35330     }
35331   else
35332     {
35333       unsigned long i = ulongval ();
35334       if (i != ((long) (sizeof (short))))
35335         exit (1);
35336       fprintf (f, "%lu\n", i);
35337     }
35338   exit (ferror (f) || fclose (f) != 0);
35339
35340   ;
35341   return 0;
35342 }
35343 _ACEOF
35344 rm -f conftest$ac_exeext
35345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35346   (eval $ac_link) 2>&5
35347   ac_status=$?
35348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35351   (eval $ac_try) 2>&5
35352   ac_status=$?
35353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354   (exit $ac_status); }; }; then
35355   ac_cv_sizeof_short=`cat conftest.val`
35356 else
35357   echo "$as_me: program exited with status $ac_status" >&5
35358 echo "$as_me: failed program was:" >&5
35359 sed 's/^/| /' conftest.$ac_ext >&5
35360
35361 ( exit $ac_status )
35362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35363 See \`config.log' for more details." >&5
35364 echo "$as_me: error: cannot compute sizeof (short), 77
35365 See \`config.log' for more details." >&2;}
35366    { (exit 1); exit 1; }; }
35367 fi
35368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35369 fi
35370 fi
35371 rm -f conftest.val
35372 else
35373   ac_cv_sizeof_short=0
35374 fi
35375 fi
35376 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35377 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35378 cat >>confdefs.h <<_ACEOF
35379 #define SIZEOF_SHORT $ac_cv_sizeof_short
35380 _ACEOF
35381
35382
35383 echo "$as_me:$LINENO: checking for int" >&5
35384 echo $ECHO_N "checking for int... $ECHO_C" >&6
35385 if test "${ac_cv_type_int+set}" = set; then
35386   echo $ECHO_N "(cached) $ECHO_C" >&6
35387 else
35388   cat >conftest.$ac_ext <<_ACEOF
35389 /* confdefs.h.  */
35390 _ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h.  */
35394 $ac_includes_default
35395 int
35396 main ()
35397 {
35398 if ((int *) 0)
35399   return 0;
35400 if (sizeof (int))
35401   return 0;
35402   ;
35403   return 0;
35404 }
35405 _ACEOF
35406 rm -f conftest.$ac_objext
35407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35408   (eval $ac_compile) 2>conftest.er1
35409   ac_status=$?
35410   grep -v '^ *+' conftest.er1 >conftest.err
35411   rm -f conftest.er1
35412   cat conftest.err >&5
35413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414   (exit $ac_status); } &&
35415          { ac_try='test -z "$ac_c_werror_flag"
35416                          || test ! -s conftest.err'
35417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418   (eval $ac_try) 2>&5
35419   ac_status=$?
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); }; } &&
35422          { ac_try='test -s conftest.$ac_objext'
35423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35424   (eval $ac_try) 2>&5
35425   ac_status=$?
35426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427   (exit $ac_status); }; }; then
35428   ac_cv_type_int=yes
35429 else
35430   echo "$as_me: failed program was:" >&5
35431 sed 's/^/| /' conftest.$ac_ext >&5
35432
35433 ac_cv_type_int=no
35434 fi
35435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35436 fi
35437 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35438 echo "${ECHO_T}$ac_cv_type_int" >&6
35439
35440 echo "$as_me:$LINENO: checking size of int" >&5
35441 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35442 if test "${ac_cv_sizeof_int+set}" = set; then
35443   echo $ECHO_N "(cached) $ECHO_C" >&6
35444 else
35445   if test "$ac_cv_type_int" = yes; then
35446   # The cast to unsigned long works around a bug in the HP C Compiler
35447   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35448   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35449   # This bug is HP SR number 8606223364.
35450   if test "$cross_compiling" = yes; then
35451   # Depending upon the size, compute the lo and hi bounds.
35452 cat >conftest.$ac_ext <<_ACEOF
35453 /* confdefs.h.  */
35454 _ACEOF
35455 cat confdefs.h >>conftest.$ac_ext
35456 cat >>conftest.$ac_ext <<_ACEOF
35457 /* end confdefs.h.  */
35458 $ac_includes_default
35459 int
35460 main ()
35461 {
35462 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35463 test_array [0] = 0
35464
35465   ;
35466   return 0;
35467 }
35468 _ACEOF
35469 rm -f conftest.$ac_objext
35470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35471   (eval $ac_compile) 2>conftest.er1
35472   ac_status=$?
35473   grep -v '^ *+' conftest.er1 >conftest.err
35474   rm -f conftest.er1
35475   cat conftest.err >&5
35476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477   (exit $ac_status); } &&
35478          { ac_try='test -z "$ac_c_werror_flag"
35479                          || test ! -s conftest.err'
35480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35481   (eval $ac_try) 2>&5
35482   ac_status=$?
35483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484   (exit $ac_status); }; } &&
35485          { ac_try='test -s conftest.$ac_objext'
35486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35487   (eval $ac_try) 2>&5
35488   ac_status=$?
35489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490   (exit $ac_status); }; }; then
35491   ac_lo=0 ac_mid=0
35492   while :; do
35493     cat >conftest.$ac_ext <<_ACEOF
35494 /* confdefs.h.  */
35495 _ACEOF
35496 cat confdefs.h >>conftest.$ac_ext
35497 cat >>conftest.$ac_ext <<_ACEOF
35498 /* end confdefs.h.  */
35499 $ac_includes_default
35500 int
35501 main ()
35502 {
35503 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35504 test_array [0] = 0
35505
35506   ;
35507   return 0;
35508 }
35509 _ACEOF
35510 rm -f conftest.$ac_objext
35511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35512   (eval $ac_compile) 2>conftest.er1
35513   ac_status=$?
35514   grep -v '^ *+' conftest.er1 >conftest.err
35515   rm -f conftest.er1
35516   cat conftest.err >&5
35517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518   (exit $ac_status); } &&
35519          { ac_try='test -z "$ac_c_werror_flag"
35520                          || test ! -s conftest.err'
35521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35522   (eval $ac_try) 2>&5
35523   ac_status=$?
35524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525   (exit $ac_status); }; } &&
35526          { ac_try='test -s conftest.$ac_objext'
35527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35528   (eval $ac_try) 2>&5
35529   ac_status=$?
35530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531   (exit $ac_status); }; }; then
35532   ac_hi=$ac_mid; break
35533 else
35534   echo "$as_me: failed program was:" >&5
35535 sed 's/^/| /' conftest.$ac_ext >&5
35536
35537 ac_lo=`expr $ac_mid + 1`
35538                     if test $ac_lo -le $ac_mid; then
35539                       ac_lo= ac_hi=
35540                       break
35541                     fi
35542                     ac_mid=`expr 2 '*' $ac_mid + 1`
35543 fi
35544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35545   done
35546 else
35547   echo "$as_me: failed program was:" >&5
35548 sed 's/^/| /' conftest.$ac_ext >&5
35549
35550 cat >conftest.$ac_ext <<_ACEOF
35551 /* confdefs.h.  */
35552 _ACEOF
35553 cat confdefs.h >>conftest.$ac_ext
35554 cat >>conftest.$ac_ext <<_ACEOF
35555 /* end confdefs.h.  */
35556 $ac_includes_default
35557 int
35558 main ()
35559 {
35560 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35561 test_array [0] = 0
35562
35563   ;
35564   return 0;
35565 }
35566 _ACEOF
35567 rm -f conftest.$ac_objext
35568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35569   (eval $ac_compile) 2>conftest.er1
35570   ac_status=$?
35571   grep -v '^ *+' conftest.er1 >conftest.err
35572   rm -f conftest.er1
35573   cat conftest.err >&5
35574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575   (exit $ac_status); } &&
35576          { ac_try='test -z "$ac_c_werror_flag"
35577                          || test ! -s conftest.err'
35578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35579   (eval $ac_try) 2>&5
35580   ac_status=$?
35581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582   (exit $ac_status); }; } &&
35583          { ac_try='test -s conftest.$ac_objext'
35584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585   (eval $ac_try) 2>&5
35586   ac_status=$?
35587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588   (exit $ac_status); }; }; then
35589   ac_hi=-1 ac_mid=-1
35590   while :; do
35591     cat >conftest.$ac_ext <<_ACEOF
35592 /* confdefs.h.  */
35593 _ACEOF
35594 cat confdefs.h >>conftest.$ac_ext
35595 cat >>conftest.$ac_ext <<_ACEOF
35596 /* end confdefs.h.  */
35597 $ac_includes_default
35598 int
35599 main ()
35600 {
35601 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35602 test_array [0] = 0
35603
35604   ;
35605   return 0;
35606 }
35607 _ACEOF
35608 rm -f conftest.$ac_objext
35609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35610   (eval $ac_compile) 2>conftest.er1
35611   ac_status=$?
35612   grep -v '^ *+' conftest.er1 >conftest.err
35613   rm -f conftest.er1
35614   cat conftest.err >&5
35615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616   (exit $ac_status); } &&
35617          { ac_try='test -z "$ac_c_werror_flag"
35618                          || test ! -s conftest.err'
35619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620   (eval $ac_try) 2>&5
35621   ac_status=$?
35622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623   (exit $ac_status); }; } &&
35624          { ac_try='test -s conftest.$ac_objext'
35625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626   (eval $ac_try) 2>&5
35627   ac_status=$?
35628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629   (exit $ac_status); }; }; then
35630   ac_lo=$ac_mid; break
35631 else
35632   echo "$as_me: failed program was:" >&5
35633 sed 's/^/| /' conftest.$ac_ext >&5
35634
35635 ac_hi=`expr '(' $ac_mid ')' - 1`
35636                        if test $ac_mid -le $ac_hi; then
35637                          ac_lo= ac_hi=
35638                          break
35639                        fi
35640                        ac_mid=`expr 2 '*' $ac_mid`
35641 fi
35642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35643   done
35644 else
35645   echo "$as_me: failed program was:" >&5
35646 sed 's/^/| /' conftest.$ac_ext >&5
35647
35648 ac_lo= ac_hi=
35649 fi
35650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35651 fi
35652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35653 # Binary search between lo and hi bounds.
35654 while test "x$ac_lo" != "x$ac_hi"; do
35655   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35656   cat >conftest.$ac_ext <<_ACEOF
35657 /* confdefs.h.  */
35658 _ACEOF
35659 cat confdefs.h >>conftest.$ac_ext
35660 cat >>conftest.$ac_ext <<_ACEOF
35661 /* end confdefs.h.  */
35662 $ac_includes_default
35663 int
35664 main ()
35665 {
35666 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35667 test_array [0] = 0
35668
35669   ;
35670   return 0;
35671 }
35672 _ACEOF
35673 rm -f conftest.$ac_objext
35674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35675   (eval $ac_compile) 2>conftest.er1
35676   ac_status=$?
35677   grep -v '^ *+' conftest.er1 >conftest.err
35678   rm -f conftest.er1
35679   cat conftest.err >&5
35680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681   (exit $ac_status); } &&
35682          { ac_try='test -z "$ac_c_werror_flag"
35683                          || test ! -s conftest.err'
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); }; } &&
35689          { ac_try='test -s conftest.$ac_objext'
35690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35691   (eval $ac_try) 2>&5
35692   ac_status=$?
35693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694   (exit $ac_status); }; }; then
35695   ac_hi=$ac_mid
35696 else
35697   echo "$as_me: failed program was:" >&5
35698 sed 's/^/| /' conftest.$ac_ext >&5
35699
35700 ac_lo=`expr '(' $ac_mid ')' + 1`
35701 fi
35702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35703 done
35704 case $ac_lo in
35705 ?*) ac_cv_sizeof_int=$ac_lo;;
35706 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35707 See \`config.log' for more details." >&5
35708 echo "$as_me: error: cannot compute sizeof (int), 77
35709 See \`config.log' for more details." >&2;}
35710    { (exit 1); exit 1; }; } ;;
35711 esac
35712 else
35713   if test "$cross_compiling" = yes; then
35714   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35715 See \`config.log' for more details." >&5
35716 echo "$as_me: error: cannot run test program while cross compiling
35717 See \`config.log' for more details." >&2;}
35718    { (exit 1); exit 1; }; }
35719 else
35720   cat >conftest.$ac_ext <<_ACEOF
35721 /* confdefs.h.  */
35722 _ACEOF
35723 cat confdefs.h >>conftest.$ac_ext
35724 cat >>conftest.$ac_ext <<_ACEOF
35725 /* end confdefs.h.  */
35726 $ac_includes_default
35727 long longval () { return (long) (sizeof (int)); }
35728 unsigned long ulongval () { return (long) (sizeof (int)); }
35729 #include <stdio.h>
35730 #include <stdlib.h>
35731 int
35732 main ()
35733 {
35734
35735   FILE *f = fopen ("conftest.val", "w");
35736   if (! f)
35737     exit (1);
35738   if (((long) (sizeof (int))) < 0)
35739     {
35740       long i = longval ();
35741       if (i != ((long) (sizeof (int))))
35742         exit (1);
35743       fprintf (f, "%ld\n", i);
35744     }
35745   else
35746     {
35747       unsigned long i = ulongval ();
35748       if (i != ((long) (sizeof (int))))
35749         exit (1);
35750       fprintf (f, "%lu\n", i);
35751     }
35752   exit (ferror (f) || fclose (f) != 0);
35753
35754   ;
35755   return 0;
35756 }
35757 _ACEOF
35758 rm -f conftest$ac_exeext
35759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35760   (eval $ac_link) 2>&5
35761   ac_status=$?
35762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765   (eval $ac_try) 2>&5
35766   ac_status=$?
35767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768   (exit $ac_status); }; }; then
35769   ac_cv_sizeof_int=`cat conftest.val`
35770 else
35771   echo "$as_me: program exited with status $ac_status" >&5
35772 echo "$as_me: failed program was:" >&5
35773 sed 's/^/| /' conftest.$ac_ext >&5
35774
35775 ( exit $ac_status )
35776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35777 See \`config.log' for more details." >&5
35778 echo "$as_me: error: cannot compute sizeof (int), 77
35779 See \`config.log' for more details." >&2;}
35780    { (exit 1); exit 1; }; }
35781 fi
35782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35783 fi
35784 fi
35785 rm -f conftest.val
35786 else
35787   ac_cv_sizeof_int=0
35788 fi
35789 fi
35790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35791 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
35792 cat >>confdefs.h <<_ACEOF
35793 #define SIZEOF_INT $ac_cv_sizeof_int
35794 _ACEOF
35795
35796
35797 echo "$as_me:$LINENO: checking for long" >&5
35798 echo $ECHO_N "checking for long... $ECHO_C" >&6
35799 if test "${ac_cv_type_long+set}" = set; then
35800   echo $ECHO_N "(cached) $ECHO_C" >&6
35801 else
35802   cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h.  */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h.  */
35808 $ac_includes_default
35809 int
35810 main ()
35811 {
35812 if ((long *) 0)
35813   return 0;
35814 if (sizeof (long))
35815   return 0;
35816   ;
35817   return 0;
35818 }
35819 _ACEOF
35820 rm -f conftest.$ac_objext
35821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35822   (eval $ac_compile) 2>conftest.er1
35823   ac_status=$?
35824   grep -v '^ *+' conftest.er1 >conftest.err
35825   rm -f conftest.er1
35826   cat conftest.err >&5
35827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828   (exit $ac_status); } &&
35829          { ac_try='test -z "$ac_c_werror_flag"
35830                          || test ! -s conftest.err'
35831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35832   (eval $ac_try) 2>&5
35833   ac_status=$?
35834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835   (exit $ac_status); }; } &&
35836          { ac_try='test -s conftest.$ac_objext'
35837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838   (eval $ac_try) 2>&5
35839   ac_status=$?
35840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841   (exit $ac_status); }; }; then
35842   ac_cv_type_long=yes
35843 else
35844   echo "$as_me: failed program was:" >&5
35845 sed 's/^/| /' conftest.$ac_ext >&5
35846
35847 ac_cv_type_long=no
35848 fi
35849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35850 fi
35851 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
35852 echo "${ECHO_T}$ac_cv_type_long" >&6
35853
35854 echo "$as_me:$LINENO: checking size of long" >&5
35855 echo $ECHO_N "checking size of long... $ECHO_C" >&6
35856 if test "${ac_cv_sizeof_long+set}" = set; then
35857   echo $ECHO_N "(cached) $ECHO_C" >&6
35858 else
35859   if test "$ac_cv_type_long" = yes; then
35860   # The cast to unsigned long works around a bug in the HP C Compiler
35861   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35862   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35863   # This bug is HP SR number 8606223364.
35864   if test "$cross_compiling" = yes; then
35865   # Depending upon the size, compute the lo and hi bounds.
35866 cat >conftest.$ac_ext <<_ACEOF
35867 /* confdefs.h.  */
35868 _ACEOF
35869 cat confdefs.h >>conftest.$ac_ext
35870 cat >>conftest.$ac_ext <<_ACEOF
35871 /* end confdefs.h.  */
35872 $ac_includes_default
35873 int
35874 main ()
35875 {
35876 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
35877 test_array [0] = 0
35878
35879   ;
35880   return 0;
35881 }
35882 _ACEOF
35883 rm -f conftest.$ac_objext
35884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35885   (eval $ac_compile) 2>conftest.er1
35886   ac_status=$?
35887   grep -v '^ *+' conftest.er1 >conftest.err
35888   rm -f conftest.er1
35889   cat conftest.err >&5
35890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891   (exit $ac_status); } &&
35892          { ac_try='test -z "$ac_c_werror_flag"
35893                          || test ! -s conftest.err'
35894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895   (eval $ac_try) 2>&5
35896   ac_status=$?
35897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898   (exit $ac_status); }; } &&
35899          { ac_try='test -s conftest.$ac_objext'
35900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901   (eval $ac_try) 2>&5
35902   ac_status=$?
35903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904   (exit $ac_status); }; }; then
35905   ac_lo=0 ac_mid=0
35906   while :; do
35907     cat >conftest.$ac_ext <<_ACEOF
35908 /* confdefs.h.  */
35909 _ACEOF
35910 cat confdefs.h >>conftest.$ac_ext
35911 cat >>conftest.$ac_ext <<_ACEOF
35912 /* end confdefs.h.  */
35913 $ac_includes_default
35914 int
35915 main ()
35916 {
35917 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35918 test_array [0] = 0
35919
35920   ;
35921   return 0;
35922 }
35923 _ACEOF
35924 rm -f conftest.$ac_objext
35925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35926   (eval $ac_compile) 2>conftest.er1
35927   ac_status=$?
35928   grep -v '^ *+' conftest.er1 >conftest.err
35929   rm -f conftest.er1
35930   cat conftest.err >&5
35931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932   (exit $ac_status); } &&
35933          { ac_try='test -z "$ac_c_werror_flag"
35934                          || test ! -s conftest.err'
35935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35936   (eval $ac_try) 2>&5
35937   ac_status=$?
35938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939   (exit $ac_status); }; } &&
35940          { ac_try='test -s conftest.$ac_objext'
35941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942   (eval $ac_try) 2>&5
35943   ac_status=$?
35944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945   (exit $ac_status); }; }; then
35946   ac_hi=$ac_mid; break
35947 else
35948   echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35950
35951 ac_lo=`expr $ac_mid + 1`
35952                     if test $ac_lo -le $ac_mid; then
35953                       ac_lo= ac_hi=
35954                       break
35955                     fi
35956                     ac_mid=`expr 2 '*' $ac_mid + 1`
35957 fi
35958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35959   done
35960 else
35961   echo "$as_me: failed program was:" >&5
35962 sed 's/^/| /' conftest.$ac_ext >&5
35963
35964 cat >conftest.$ac_ext <<_ACEOF
35965 /* confdefs.h.  */
35966 _ACEOF
35967 cat confdefs.h >>conftest.$ac_ext
35968 cat >>conftest.$ac_ext <<_ACEOF
35969 /* end confdefs.h.  */
35970 $ac_includes_default
35971 int
35972 main ()
35973 {
35974 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
35975 test_array [0] = 0
35976
35977   ;
35978   return 0;
35979 }
35980 _ACEOF
35981 rm -f conftest.$ac_objext
35982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35983   (eval $ac_compile) 2>conftest.er1
35984   ac_status=$?
35985   grep -v '^ *+' conftest.er1 >conftest.err
35986   rm -f conftest.er1
35987   cat conftest.err >&5
35988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989   (exit $ac_status); } &&
35990          { ac_try='test -z "$ac_c_werror_flag"
35991                          || test ! -s conftest.err'
35992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993   (eval $ac_try) 2>&5
35994   ac_status=$?
35995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996   (exit $ac_status); }; } &&
35997          { ac_try='test -s conftest.$ac_objext'
35998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999   (eval $ac_try) 2>&5
36000   ac_status=$?
36001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002   (exit $ac_status); }; }; then
36003   ac_hi=-1 ac_mid=-1
36004   while :; do
36005     cat >conftest.$ac_ext <<_ACEOF
36006 /* confdefs.h.  */
36007 _ACEOF
36008 cat confdefs.h >>conftest.$ac_ext
36009 cat >>conftest.$ac_ext <<_ACEOF
36010 /* end confdefs.h.  */
36011 $ac_includes_default
36012 int
36013 main ()
36014 {
36015 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36016 test_array [0] = 0
36017
36018   ;
36019   return 0;
36020 }
36021 _ACEOF
36022 rm -f conftest.$ac_objext
36023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36024   (eval $ac_compile) 2>conftest.er1
36025   ac_status=$?
36026   grep -v '^ *+' conftest.er1 >conftest.err
36027   rm -f conftest.er1
36028   cat conftest.err >&5
36029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030   (exit $ac_status); } &&
36031          { ac_try='test -z "$ac_c_werror_flag"
36032                          || test ! -s conftest.err'
36033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36034   (eval $ac_try) 2>&5
36035   ac_status=$?
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); }; } &&
36038          { ac_try='test -s conftest.$ac_objext'
36039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36040   (eval $ac_try) 2>&5
36041   ac_status=$?
36042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043   (exit $ac_status); }; }; then
36044   ac_lo=$ac_mid; break
36045 else
36046   echo "$as_me: failed program was:" >&5
36047 sed 's/^/| /' conftest.$ac_ext >&5
36048
36049 ac_hi=`expr '(' $ac_mid ')' - 1`
36050                        if test $ac_mid -le $ac_hi; then
36051                          ac_lo= ac_hi=
36052                          break
36053                        fi
36054                        ac_mid=`expr 2 '*' $ac_mid`
36055 fi
36056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36057   done
36058 else
36059   echo "$as_me: failed program was:" >&5
36060 sed 's/^/| /' conftest.$ac_ext >&5
36061
36062 ac_lo= ac_hi=
36063 fi
36064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36065 fi
36066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36067 # Binary search between lo and hi bounds.
36068 while test "x$ac_lo" != "x$ac_hi"; do
36069   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36070   cat >conftest.$ac_ext <<_ACEOF
36071 /* confdefs.h.  */
36072 _ACEOF
36073 cat confdefs.h >>conftest.$ac_ext
36074 cat >>conftest.$ac_ext <<_ACEOF
36075 /* end confdefs.h.  */
36076 $ac_includes_default
36077 int
36078 main ()
36079 {
36080 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36081 test_array [0] = 0
36082
36083   ;
36084   return 0;
36085 }
36086 _ACEOF
36087 rm -f conftest.$ac_objext
36088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36089   (eval $ac_compile) 2>conftest.er1
36090   ac_status=$?
36091   grep -v '^ *+' conftest.er1 >conftest.err
36092   rm -f conftest.er1
36093   cat conftest.err >&5
36094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36095   (exit $ac_status); } &&
36096          { ac_try='test -z "$ac_c_werror_flag"
36097                          || test ! -s conftest.err'
36098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36099   (eval $ac_try) 2>&5
36100   ac_status=$?
36101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102   (exit $ac_status); }; } &&
36103          { ac_try='test -s conftest.$ac_objext'
36104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36105   (eval $ac_try) 2>&5
36106   ac_status=$?
36107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36108   (exit $ac_status); }; }; then
36109   ac_hi=$ac_mid
36110 else
36111   echo "$as_me: failed program was:" >&5
36112 sed 's/^/| /' conftest.$ac_ext >&5
36113
36114 ac_lo=`expr '(' $ac_mid ')' + 1`
36115 fi
36116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36117 done
36118 case $ac_lo in
36119 ?*) ac_cv_sizeof_long=$ac_lo;;
36120 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36121 See \`config.log' for more details." >&5
36122 echo "$as_me: error: cannot compute sizeof (long), 77
36123 See \`config.log' for more details." >&2;}
36124    { (exit 1); exit 1; }; } ;;
36125 esac
36126 else
36127   if test "$cross_compiling" = yes; then
36128   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36129 See \`config.log' for more details." >&5
36130 echo "$as_me: error: cannot run test program while cross compiling
36131 See \`config.log' for more details." >&2;}
36132    { (exit 1); exit 1; }; }
36133 else
36134   cat >conftest.$ac_ext <<_ACEOF
36135 /* confdefs.h.  */
36136 _ACEOF
36137 cat confdefs.h >>conftest.$ac_ext
36138 cat >>conftest.$ac_ext <<_ACEOF
36139 /* end confdefs.h.  */
36140 $ac_includes_default
36141 long longval () { return (long) (sizeof (long)); }
36142 unsigned long ulongval () { return (long) (sizeof (long)); }
36143 #include <stdio.h>
36144 #include <stdlib.h>
36145 int
36146 main ()
36147 {
36148
36149   FILE *f = fopen ("conftest.val", "w");
36150   if (! f)
36151     exit (1);
36152   if (((long) (sizeof (long))) < 0)
36153     {
36154       long i = longval ();
36155       if (i != ((long) (sizeof (long))))
36156         exit (1);
36157       fprintf (f, "%ld\n", i);
36158     }
36159   else
36160     {
36161       unsigned long i = ulongval ();
36162       if (i != ((long) (sizeof (long))))
36163         exit (1);
36164       fprintf (f, "%lu\n", i);
36165     }
36166   exit (ferror (f) || fclose (f) != 0);
36167
36168   ;
36169   return 0;
36170 }
36171 _ACEOF
36172 rm -f conftest$ac_exeext
36173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36174   (eval $ac_link) 2>&5
36175   ac_status=$?
36176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36179   (eval $ac_try) 2>&5
36180   ac_status=$?
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); }; }; then
36183   ac_cv_sizeof_long=`cat conftest.val`
36184 else
36185   echo "$as_me: program exited with status $ac_status" >&5
36186 echo "$as_me: failed program was:" >&5
36187 sed 's/^/| /' conftest.$ac_ext >&5
36188
36189 ( exit $ac_status )
36190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36191 See \`config.log' for more details." >&5
36192 echo "$as_me: error: cannot compute sizeof (long), 77
36193 See \`config.log' for more details." >&2;}
36194    { (exit 1); exit 1; }; }
36195 fi
36196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36197 fi
36198 fi
36199 rm -f conftest.val
36200 else
36201   ac_cv_sizeof_long=0
36202 fi
36203 fi
36204 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36205 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36206 cat >>confdefs.h <<_ACEOF
36207 #define SIZEOF_LONG $ac_cv_sizeof_long
36208 _ACEOF
36209
36210
36211 echo "$as_me:$LINENO: checking for long long" >&5
36212 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36213 if test "${ac_cv_type_long_long+set}" = set; then
36214   echo $ECHO_N "(cached) $ECHO_C" >&6
36215 else
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 $ac_includes_default
36223 int
36224 main ()
36225 {
36226 if ((long long *) 0)
36227   return 0;
36228 if (sizeof (long long))
36229   return 0;
36230   ;
36231   return 0;
36232 }
36233 _ACEOF
36234 rm -f conftest.$ac_objext
36235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36236   (eval $ac_compile) 2>conftest.er1
36237   ac_status=$?
36238   grep -v '^ *+' conftest.er1 >conftest.err
36239   rm -f conftest.er1
36240   cat conftest.err >&5
36241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242   (exit $ac_status); } &&
36243          { ac_try='test -z "$ac_c_werror_flag"
36244                          || test ! -s conftest.err'
36245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246   (eval $ac_try) 2>&5
36247   ac_status=$?
36248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249   (exit $ac_status); }; } &&
36250          { ac_try='test -s conftest.$ac_objext'
36251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36252   (eval $ac_try) 2>&5
36253   ac_status=$?
36254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255   (exit $ac_status); }; }; then
36256   ac_cv_type_long_long=yes
36257 else
36258   echo "$as_me: failed program was:" >&5
36259 sed 's/^/| /' conftest.$ac_ext >&5
36260
36261 ac_cv_type_long_long=no
36262 fi
36263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36264 fi
36265 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36266 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36267
36268 echo "$as_me:$LINENO: checking size of long long" >&5
36269 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36270 if test "${ac_cv_sizeof_long_long+set}" = set; then
36271   echo $ECHO_N "(cached) $ECHO_C" >&6
36272 else
36273   if test "$ac_cv_type_long_long" = yes; then
36274   # The cast to unsigned long works around a bug in the HP C Compiler
36275   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36276   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36277   # This bug is HP SR number 8606223364.
36278   if test "$cross_compiling" = yes; then
36279   # Depending upon the size, compute the lo and hi bounds.
36280 cat >conftest.$ac_ext <<_ACEOF
36281 /* confdefs.h.  */
36282 _ACEOF
36283 cat confdefs.h >>conftest.$ac_ext
36284 cat >>conftest.$ac_ext <<_ACEOF
36285 /* end confdefs.h.  */
36286 $ac_includes_default
36287 int
36288 main ()
36289 {
36290 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36291 test_array [0] = 0
36292
36293   ;
36294   return 0;
36295 }
36296 _ACEOF
36297 rm -f conftest.$ac_objext
36298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36299   (eval $ac_compile) 2>conftest.er1
36300   ac_status=$?
36301   grep -v '^ *+' conftest.er1 >conftest.err
36302   rm -f conftest.er1
36303   cat conftest.err >&5
36304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36305   (exit $ac_status); } &&
36306          { ac_try='test -z "$ac_c_werror_flag"
36307                          || test ! -s conftest.err'
36308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309   (eval $ac_try) 2>&5
36310   ac_status=$?
36311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312   (exit $ac_status); }; } &&
36313          { ac_try='test -s conftest.$ac_objext'
36314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315   (eval $ac_try) 2>&5
36316   ac_status=$?
36317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318   (exit $ac_status); }; }; then
36319   ac_lo=0 ac_mid=0
36320   while :; do
36321     cat >conftest.$ac_ext <<_ACEOF
36322 /* confdefs.h.  */
36323 _ACEOF
36324 cat confdefs.h >>conftest.$ac_ext
36325 cat >>conftest.$ac_ext <<_ACEOF
36326 /* end confdefs.h.  */
36327 $ac_includes_default
36328 int
36329 main ()
36330 {
36331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36332 test_array [0] = 0
36333
36334   ;
36335   return 0;
36336 }
36337 _ACEOF
36338 rm -f conftest.$ac_objext
36339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36340   (eval $ac_compile) 2>conftest.er1
36341   ac_status=$?
36342   grep -v '^ *+' conftest.er1 >conftest.err
36343   rm -f conftest.er1
36344   cat conftest.err >&5
36345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346   (exit $ac_status); } &&
36347          { ac_try='test -z "$ac_c_werror_flag"
36348                          || test ! -s conftest.err'
36349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350   (eval $ac_try) 2>&5
36351   ac_status=$?
36352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353   (exit $ac_status); }; } &&
36354          { ac_try='test -s conftest.$ac_objext'
36355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356   (eval $ac_try) 2>&5
36357   ac_status=$?
36358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359   (exit $ac_status); }; }; then
36360   ac_hi=$ac_mid; break
36361 else
36362   echo "$as_me: failed program was:" >&5
36363 sed 's/^/| /' conftest.$ac_ext >&5
36364
36365 ac_lo=`expr $ac_mid + 1`
36366                     if test $ac_lo -le $ac_mid; then
36367                       ac_lo= ac_hi=
36368                       break
36369                     fi
36370                     ac_mid=`expr 2 '*' $ac_mid + 1`
36371 fi
36372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36373   done
36374 else
36375   echo "$as_me: failed program was:" >&5
36376 sed 's/^/| /' conftest.$ac_ext >&5
36377
36378 cat >conftest.$ac_ext <<_ACEOF
36379 /* confdefs.h.  */
36380 _ACEOF
36381 cat confdefs.h >>conftest.$ac_ext
36382 cat >>conftest.$ac_ext <<_ACEOF
36383 /* end confdefs.h.  */
36384 $ac_includes_default
36385 int
36386 main ()
36387 {
36388 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36389 test_array [0] = 0
36390
36391   ;
36392   return 0;
36393 }
36394 _ACEOF
36395 rm -f conftest.$ac_objext
36396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36397   (eval $ac_compile) 2>conftest.er1
36398   ac_status=$?
36399   grep -v '^ *+' conftest.er1 >conftest.err
36400   rm -f conftest.er1
36401   cat conftest.err >&5
36402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36403   (exit $ac_status); } &&
36404          { ac_try='test -z "$ac_c_werror_flag"
36405                          || test ! -s conftest.err'
36406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407   (eval $ac_try) 2>&5
36408   ac_status=$?
36409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410   (exit $ac_status); }; } &&
36411          { ac_try='test -s conftest.$ac_objext'
36412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413   (eval $ac_try) 2>&5
36414   ac_status=$?
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); }; }; then
36417   ac_hi=-1 ac_mid=-1
36418   while :; do
36419     cat >conftest.$ac_ext <<_ACEOF
36420 /* confdefs.h.  */
36421 _ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h.  */
36425 $ac_includes_default
36426 int
36427 main ()
36428 {
36429 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36430 test_array [0] = 0
36431
36432   ;
36433   return 0;
36434 }
36435 _ACEOF
36436 rm -f conftest.$ac_objext
36437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36438   (eval $ac_compile) 2>conftest.er1
36439   ac_status=$?
36440   grep -v '^ *+' conftest.er1 >conftest.err
36441   rm -f conftest.er1
36442   cat conftest.err >&5
36443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444   (exit $ac_status); } &&
36445          { ac_try='test -z "$ac_c_werror_flag"
36446                          || test ! -s conftest.err'
36447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448   (eval $ac_try) 2>&5
36449   ac_status=$?
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); }; } &&
36452          { ac_try='test -s conftest.$ac_objext'
36453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36454   (eval $ac_try) 2>&5
36455   ac_status=$?
36456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457   (exit $ac_status); }; }; then
36458   ac_lo=$ac_mid; break
36459 else
36460   echo "$as_me: failed program was:" >&5
36461 sed 's/^/| /' conftest.$ac_ext >&5
36462
36463 ac_hi=`expr '(' $ac_mid ')' - 1`
36464                        if test $ac_mid -le $ac_hi; then
36465                          ac_lo= ac_hi=
36466                          break
36467                        fi
36468                        ac_mid=`expr 2 '*' $ac_mid`
36469 fi
36470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36471   done
36472 else
36473   echo "$as_me: failed program was:" >&5
36474 sed 's/^/| /' conftest.$ac_ext >&5
36475
36476 ac_lo= ac_hi=
36477 fi
36478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36479 fi
36480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36481 # Binary search between lo and hi bounds.
36482 while test "x$ac_lo" != "x$ac_hi"; do
36483   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36484   cat >conftest.$ac_ext <<_ACEOF
36485 /* confdefs.h.  */
36486 _ACEOF
36487 cat confdefs.h >>conftest.$ac_ext
36488 cat >>conftest.$ac_ext <<_ACEOF
36489 /* end confdefs.h.  */
36490 $ac_includes_default
36491 int
36492 main ()
36493 {
36494 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36495 test_array [0] = 0
36496
36497   ;
36498   return 0;
36499 }
36500 _ACEOF
36501 rm -f conftest.$ac_objext
36502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36503   (eval $ac_compile) 2>conftest.er1
36504   ac_status=$?
36505   grep -v '^ *+' conftest.er1 >conftest.err
36506   rm -f conftest.er1
36507   cat conftest.err >&5
36508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509   (exit $ac_status); } &&
36510          { ac_try='test -z "$ac_c_werror_flag"
36511                          || test ! -s conftest.err'
36512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36513   (eval $ac_try) 2>&5
36514   ac_status=$?
36515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516   (exit $ac_status); }; } &&
36517          { ac_try='test -s conftest.$ac_objext'
36518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36519   (eval $ac_try) 2>&5
36520   ac_status=$?
36521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36522   (exit $ac_status); }; }; then
36523   ac_hi=$ac_mid
36524 else
36525   echo "$as_me: failed program was:" >&5
36526 sed 's/^/| /' conftest.$ac_ext >&5
36527
36528 ac_lo=`expr '(' $ac_mid ')' + 1`
36529 fi
36530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36531 done
36532 case $ac_lo in
36533 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36535 See \`config.log' for more details." >&5
36536 echo "$as_me: error: cannot compute sizeof (long long), 77
36537 See \`config.log' for more details." >&2;}
36538    { (exit 1); exit 1; }; } ;;
36539 esac
36540 else
36541   if test "$cross_compiling" = yes; then
36542   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36543 See \`config.log' for more details." >&5
36544 echo "$as_me: error: cannot run test program while cross compiling
36545 See \`config.log' for more details." >&2;}
36546    { (exit 1); exit 1; }; }
36547 else
36548   cat >conftest.$ac_ext <<_ACEOF
36549 /* confdefs.h.  */
36550 _ACEOF
36551 cat confdefs.h >>conftest.$ac_ext
36552 cat >>conftest.$ac_ext <<_ACEOF
36553 /* end confdefs.h.  */
36554 $ac_includes_default
36555 long longval () { return (long) (sizeof (long long)); }
36556 unsigned long ulongval () { return (long) (sizeof (long long)); }
36557 #include <stdio.h>
36558 #include <stdlib.h>
36559 int
36560 main ()
36561 {
36562
36563   FILE *f = fopen ("conftest.val", "w");
36564   if (! f)
36565     exit (1);
36566   if (((long) (sizeof (long long))) < 0)
36567     {
36568       long i = longval ();
36569       if (i != ((long) (sizeof (long long))))
36570         exit (1);
36571       fprintf (f, "%ld\n", i);
36572     }
36573   else
36574     {
36575       unsigned long i = ulongval ();
36576       if (i != ((long) (sizeof (long long))))
36577         exit (1);
36578       fprintf (f, "%lu\n", i);
36579     }
36580   exit (ferror (f) || fclose (f) != 0);
36581
36582   ;
36583   return 0;
36584 }
36585 _ACEOF
36586 rm -f conftest$ac_exeext
36587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36588   (eval $ac_link) 2>&5
36589   ac_status=$?
36590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36593   (eval $ac_try) 2>&5
36594   ac_status=$?
36595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596   (exit $ac_status); }; }; then
36597   ac_cv_sizeof_long_long=`cat conftest.val`
36598 else
36599   echo "$as_me: program exited with status $ac_status" >&5
36600 echo "$as_me: failed program was:" >&5
36601 sed 's/^/| /' conftest.$ac_ext >&5
36602
36603 ( exit $ac_status )
36604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36605 See \`config.log' for more details." >&5
36606 echo "$as_me: error: cannot compute sizeof (long long), 77
36607 See \`config.log' for more details." >&2;}
36608    { (exit 1); exit 1; }; }
36609 fi
36610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36611 fi
36612 fi
36613 rm -f conftest.val
36614 else
36615   ac_cv_sizeof_long_long=0
36616 fi
36617 fi
36618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36619 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36620 cat >>confdefs.h <<_ACEOF
36621 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36622 _ACEOF
36623
36624
36625 echo "$as_me:$LINENO: checking for wchar_t" >&5
36626 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36627 if test "${ac_cv_type_wchar_t+set}" = set; then
36628   echo $ECHO_N "(cached) $ECHO_C" >&6
36629 else
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 $ac_includes_default
36637 int
36638 main ()
36639 {
36640 if ((wchar_t *) 0)
36641   return 0;
36642 if (sizeof (wchar_t))
36643   return 0;
36644   ;
36645   return 0;
36646 }
36647 _ACEOF
36648 rm -f conftest.$ac_objext
36649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36650   (eval $ac_compile) 2>conftest.er1
36651   ac_status=$?
36652   grep -v '^ *+' conftest.er1 >conftest.err
36653   rm -f conftest.er1
36654   cat conftest.err >&5
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); } &&
36657          { ac_try='test -z "$ac_c_werror_flag"
36658                          || test ! -s conftest.err'
36659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36660   (eval $ac_try) 2>&5
36661   ac_status=$?
36662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663   (exit $ac_status); }; } &&
36664          { ac_try='test -s conftest.$ac_objext'
36665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666   (eval $ac_try) 2>&5
36667   ac_status=$?
36668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669   (exit $ac_status); }; }; then
36670   ac_cv_type_wchar_t=yes
36671 else
36672   echo "$as_me: failed program was:" >&5
36673 sed 's/^/| /' conftest.$ac_ext >&5
36674
36675 ac_cv_type_wchar_t=no
36676 fi
36677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36678 fi
36679 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36680 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36681
36682 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36683 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36684 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36685   echo $ECHO_N "(cached) $ECHO_C" >&6
36686 else
36687   if test "$ac_cv_type_wchar_t" = yes; then
36688   # The cast to unsigned long works around a bug in the HP C Compiler
36689   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36690   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36691   # This bug is HP SR number 8606223364.
36692   if test "$cross_compiling" = yes; then
36693   # Depending upon the size, compute the lo and hi bounds.
36694 cat >conftest.$ac_ext <<_ACEOF
36695 /* confdefs.h.  */
36696 _ACEOF
36697 cat confdefs.h >>conftest.$ac_ext
36698 cat >>conftest.$ac_ext <<_ACEOF
36699 /* end confdefs.h.  */
36700 $ac_includes_default
36701 int
36702 main ()
36703 {
36704 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
36705 test_array [0] = 0
36706
36707   ;
36708   return 0;
36709 }
36710 _ACEOF
36711 rm -f conftest.$ac_objext
36712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36713   (eval $ac_compile) 2>conftest.er1
36714   ac_status=$?
36715   grep -v '^ *+' conftest.er1 >conftest.err
36716   rm -f conftest.er1
36717   cat conftest.err >&5
36718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719   (exit $ac_status); } &&
36720          { ac_try='test -z "$ac_c_werror_flag"
36721                          || test ! -s conftest.err'
36722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36723   (eval $ac_try) 2>&5
36724   ac_status=$?
36725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36726   (exit $ac_status); }; } &&
36727          { ac_try='test -s conftest.$ac_objext'
36728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36729   (eval $ac_try) 2>&5
36730   ac_status=$?
36731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732   (exit $ac_status); }; }; then
36733   ac_lo=0 ac_mid=0
36734   while :; do
36735     cat >conftest.$ac_ext <<_ACEOF
36736 /* confdefs.h.  */
36737 _ACEOF
36738 cat confdefs.h >>conftest.$ac_ext
36739 cat >>conftest.$ac_ext <<_ACEOF
36740 /* end confdefs.h.  */
36741 $ac_includes_default
36742 int
36743 main ()
36744 {
36745 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36746 test_array [0] = 0
36747
36748   ;
36749   return 0;
36750 }
36751 _ACEOF
36752 rm -f conftest.$ac_objext
36753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36754   (eval $ac_compile) 2>conftest.er1
36755   ac_status=$?
36756   grep -v '^ *+' conftest.er1 >conftest.err
36757   rm -f conftest.er1
36758   cat conftest.err >&5
36759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760   (exit $ac_status); } &&
36761          { ac_try='test -z "$ac_c_werror_flag"
36762                          || test ! -s conftest.err'
36763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36764   (eval $ac_try) 2>&5
36765   ac_status=$?
36766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767   (exit $ac_status); }; } &&
36768          { ac_try='test -s conftest.$ac_objext'
36769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36770   (eval $ac_try) 2>&5
36771   ac_status=$?
36772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36773   (exit $ac_status); }; }; then
36774   ac_hi=$ac_mid; break
36775 else
36776   echo "$as_me: failed program was:" >&5
36777 sed 's/^/| /' conftest.$ac_ext >&5
36778
36779 ac_lo=`expr $ac_mid + 1`
36780                     if test $ac_lo -le $ac_mid; then
36781                       ac_lo= ac_hi=
36782                       break
36783                     fi
36784                     ac_mid=`expr 2 '*' $ac_mid + 1`
36785 fi
36786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36787   done
36788 else
36789   echo "$as_me: failed program was:" >&5
36790 sed 's/^/| /' conftest.$ac_ext >&5
36791
36792 cat >conftest.$ac_ext <<_ACEOF
36793 /* confdefs.h.  */
36794 _ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h.  */
36798 $ac_includes_default
36799 int
36800 main ()
36801 {
36802 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
36803 test_array [0] = 0
36804
36805   ;
36806   return 0;
36807 }
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_hi=-1 ac_mid=-1
36832   while :; do
36833     cat >conftest.$ac_ext <<_ACEOF
36834 /* confdefs.h.  */
36835 _ACEOF
36836 cat confdefs.h >>conftest.$ac_ext
36837 cat >>conftest.$ac_ext <<_ACEOF
36838 /* end confdefs.h.  */
36839 $ac_includes_default
36840 int
36841 main ()
36842 {
36843 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
36844 test_array [0] = 0
36845
36846   ;
36847   return 0;
36848 }
36849 _ACEOF
36850 rm -f conftest.$ac_objext
36851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36852   (eval $ac_compile) 2>conftest.er1
36853   ac_status=$?
36854   grep -v '^ *+' conftest.er1 >conftest.err
36855   rm -f conftest.er1
36856   cat conftest.err >&5
36857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36858   (exit $ac_status); } &&
36859          { ac_try='test -z "$ac_c_werror_flag"
36860                          || test ! -s conftest.err'
36861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36862   (eval $ac_try) 2>&5
36863   ac_status=$?
36864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865   (exit $ac_status); }; } &&
36866          { ac_try='test -s conftest.$ac_objext'
36867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868   (eval $ac_try) 2>&5
36869   ac_status=$?
36870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871   (exit $ac_status); }; }; then
36872   ac_lo=$ac_mid; break
36873 else
36874   echo "$as_me: failed program was:" >&5
36875 sed 's/^/| /' conftest.$ac_ext >&5
36876
36877 ac_hi=`expr '(' $ac_mid ')' - 1`
36878                        if test $ac_mid -le $ac_hi; then
36879                          ac_lo= ac_hi=
36880                          break
36881                        fi
36882                        ac_mid=`expr 2 '*' $ac_mid`
36883 fi
36884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36885   done
36886 else
36887   echo "$as_me: failed program was:" >&5
36888 sed 's/^/| /' conftest.$ac_ext >&5
36889
36890 ac_lo= ac_hi=
36891 fi
36892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36893 fi
36894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36895 # Binary search between lo and hi bounds.
36896 while test "x$ac_lo" != "x$ac_hi"; do
36897   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36898   cat >conftest.$ac_ext <<_ACEOF
36899 /* confdefs.h.  */
36900 _ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h.  */
36904 $ac_includes_default
36905 int
36906 main ()
36907 {
36908 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36909 test_array [0] = 0
36910
36911   ;
36912   return 0;
36913 }
36914 _ACEOF
36915 rm -f conftest.$ac_objext
36916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36917   (eval $ac_compile) 2>conftest.er1
36918   ac_status=$?
36919   grep -v '^ *+' conftest.er1 >conftest.err
36920   rm -f conftest.er1
36921   cat conftest.err >&5
36922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923   (exit $ac_status); } &&
36924          { ac_try='test -z "$ac_c_werror_flag"
36925                          || test ! -s conftest.err'
36926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36927   (eval $ac_try) 2>&5
36928   ac_status=$?
36929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930   (exit $ac_status); }; } &&
36931          { ac_try='test -s conftest.$ac_objext'
36932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36933   (eval $ac_try) 2>&5
36934   ac_status=$?
36935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936   (exit $ac_status); }; }; then
36937   ac_hi=$ac_mid
36938 else
36939   echo "$as_me: failed program was:" >&5
36940 sed 's/^/| /' conftest.$ac_ext >&5
36941
36942 ac_lo=`expr '(' $ac_mid ')' + 1`
36943 fi
36944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36945 done
36946 case $ac_lo in
36947 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
36948 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
36949 See \`config.log' for more details." >&5
36950 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
36951 See \`config.log' for more details." >&2;}
36952    { (exit 1); exit 1; }; } ;;
36953 esac
36954 else
36955   if test "$cross_compiling" = yes; then
36956   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36957 See \`config.log' for more details." >&5
36958 echo "$as_me: error: cannot run test program while cross compiling
36959 See \`config.log' for more details." >&2;}
36960    { (exit 1); exit 1; }; }
36961 else
36962   cat >conftest.$ac_ext <<_ACEOF
36963 /* confdefs.h.  */
36964 _ACEOF
36965 cat confdefs.h >>conftest.$ac_ext
36966 cat >>conftest.$ac_ext <<_ACEOF
36967 /* end confdefs.h.  */
36968 $ac_includes_default
36969 long longval () { return (long) (sizeof (wchar_t)); }
36970 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
36971 #include <stdio.h>
36972 #include <stdlib.h>
36973 int
36974 main ()
36975 {
36976
36977   FILE *f = fopen ("conftest.val", "w");
36978   if (! f)
36979     exit (1);
36980   if (((long) (sizeof (wchar_t))) < 0)
36981     {
36982       long i = longval ();
36983       if (i != ((long) (sizeof (wchar_t))))
36984         exit (1);
36985       fprintf (f, "%ld\n", i);
36986     }
36987   else
36988     {
36989       unsigned long i = ulongval ();
36990       if (i != ((long) (sizeof (wchar_t))))
36991         exit (1);
36992       fprintf (f, "%lu\n", i);
36993     }
36994   exit (ferror (f) || fclose (f) != 0);
36995
36996   ;
36997   return 0;
36998 }
36999 _ACEOF
37000 rm -f conftest$ac_exeext
37001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37002   (eval $ac_link) 2>&5
37003   ac_status=$?
37004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37007   (eval $ac_try) 2>&5
37008   ac_status=$?
37009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010   (exit $ac_status); }; }; then
37011   ac_cv_sizeof_wchar_t=`cat conftest.val`
37012 else
37013   echo "$as_me: program exited with status $ac_status" >&5
37014 echo "$as_me: failed program was:" >&5
37015 sed 's/^/| /' conftest.$ac_ext >&5
37016
37017 ( exit $ac_status )
37018 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37019 See \`config.log' for more details." >&5
37020 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37021 See \`config.log' for more details." >&2;}
37022    { (exit 1); exit 1; }; }
37023 fi
37024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37025 fi
37026 fi
37027 rm -f conftest.val
37028 else
37029   ac_cv_sizeof_wchar_t=0
37030 fi
37031 fi
37032 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37033 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37034 cat >>confdefs.h <<_ACEOF
37035 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37036 _ACEOF
37037
37038
37039
37040 if test "$ac_cv_sizeof_int" -lt 4 ; then
37041         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37042 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37043
37044
37045 cat >>confdefs.h <<\_ACEOF
37046 #define LBER_INT_T long
37047 _ACEOF
37048
37049 else
37050
37051 cat >>confdefs.h <<\_ACEOF
37052 #define LBER_INT_T int
37053 _ACEOF
37054
37055 fi
37056
37057
37058 cat >>confdefs.h <<\_ACEOF
37059 #define LBER_LEN_T long
37060 _ACEOF
37061
37062
37063 cat >>confdefs.h <<\_ACEOF
37064 #define LBER_SOCKET_T int
37065 _ACEOF
37066
37067
37068 cat >>confdefs.h <<\_ACEOF
37069 #define LBER_TAG_T long
37070 _ACEOF
37071
37072
37073 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37074         if test $ac_cv_sizeof_long_long -gt 4 ; then
37075                 ol_with_mp=longlong
37076
37077 cat >>confdefs.h <<\_ACEOF
37078 #define USE_MP_LONG_LONG 1
37079 _ACEOF
37080
37081         elif test $ol_with_mp = longlong ; then
37082                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37083 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37084    { (exit 1); exit 1; }; }
37085         fi
37086 fi
37087 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37088         if test $ac_cv_sizeof_long -gt 4 ; then
37089                 ol_with_mp=long
37090
37091 cat >>confdefs.h <<\_ACEOF
37092 #define USE_MP_LONG 1
37093 _ACEOF
37094
37095         elif test $ol_with_mp = long ; then
37096                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37097 echo "$as_me: error: long unusable for multiple precision" >&2;}
37098    { (exit 1); exit 1; }; }
37099         fi
37100 fi
37101 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37102
37103 for ac_header in openssl/bn.h
37104 do
37105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37107   echo "$as_me:$LINENO: checking for $ac_header" >&5
37108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37110   echo $ECHO_N "(cached) $ECHO_C" >&6
37111 fi
37112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37114 else
37115   # Is the header compilable?
37116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37118 cat >conftest.$ac_ext <<_ACEOF
37119 /* confdefs.h.  */
37120 _ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h.  */
37124 $ac_includes_default
37125 #include <$ac_header>
37126 _ACEOF
37127 rm -f conftest.$ac_objext
37128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37129   (eval $ac_compile) 2>conftest.er1
37130   ac_status=$?
37131   grep -v '^ *+' conftest.er1 >conftest.err
37132   rm -f conftest.er1
37133   cat conftest.err >&5
37134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135   (exit $ac_status); } &&
37136          { ac_try='test -z "$ac_c_werror_flag"
37137                          || test ! -s conftest.err'
37138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37139   (eval $ac_try) 2>&5
37140   ac_status=$?
37141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142   (exit $ac_status); }; } &&
37143          { ac_try='test -s conftest.$ac_objext'
37144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37145   (eval $ac_try) 2>&5
37146   ac_status=$?
37147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148   (exit $ac_status); }; }; then
37149   ac_header_compiler=yes
37150 else
37151   echo "$as_me: failed program was:" >&5
37152 sed 's/^/| /' conftest.$ac_ext >&5
37153
37154 ac_header_compiler=no
37155 fi
37156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37158 echo "${ECHO_T}$ac_header_compiler" >&6
37159
37160 # Is the header present?
37161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37163 cat >conftest.$ac_ext <<_ACEOF
37164 /* confdefs.h.  */
37165 _ACEOF
37166 cat confdefs.h >>conftest.$ac_ext
37167 cat >>conftest.$ac_ext <<_ACEOF
37168 /* end confdefs.h.  */
37169 #include <$ac_header>
37170 _ACEOF
37171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37173   ac_status=$?
37174   grep -v '^ *+' conftest.er1 >conftest.err
37175   rm -f conftest.er1
37176   cat conftest.err >&5
37177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37178   (exit $ac_status); } >/dev/null; then
37179   if test -s conftest.err; then
37180     ac_cpp_err=$ac_c_preproc_warn_flag
37181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37182   else
37183     ac_cpp_err=
37184   fi
37185 else
37186   ac_cpp_err=yes
37187 fi
37188 if test -z "$ac_cpp_err"; then
37189   ac_header_preproc=yes
37190 else
37191   echo "$as_me: failed program was:" >&5
37192 sed 's/^/| /' conftest.$ac_ext >&5
37193
37194   ac_header_preproc=no
37195 fi
37196 rm -f conftest.err conftest.$ac_ext
37197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37198 echo "${ECHO_T}$ac_header_preproc" >&6
37199
37200 # So?  What about this header?
37201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37202   yes:no: )
37203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37207     ac_header_preproc=yes
37208     ;;
37209   no:yes:* )
37210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37222     (
37223       cat <<\_ASBOX
37224 ## --------------------------------------------- ##
37225 ## Report this to <http://www.openldap.org/its/> ##
37226 ## --------------------------------------------- ##
37227 _ASBOX
37228     ) |
37229       sed "s/^/$as_me: WARNING:     /" >&2
37230     ;;
37231 esac
37232 echo "$as_me:$LINENO: checking for $ac_header" >&5
37233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37235   echo $ECHO_N "(cached) $ECHO_C" >&6
37236 else
37237   eval "$as_ac_Header=\$ac_header_preproc"
37238 fi
37239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37241
37242 fi
37243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37244   cat >>confdefs.h <<_ACEOF
37245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37246 _ACEOF
37247
37248 fi
37249
37250 done
37251
37252
37253 for ac_header in openssl/crypto.h
37254 do
37255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37257   echo "$as_me:$LINENO: checking for $ac_header" >&5
37258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37260   echo $ECHO_N "(cached) $ECHO_C" >&6
37261 fi
37262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37264 else
37265   # Is the header compilable?
37266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37268 cat >conftest.$ac_ext <<_ACEOF
37269 /* confdefs.h.  */
37270 _ACEOF
37271 cat confdefs.h >>conftest.$ac_ext
37272 cat >>conftest.$ac_ext <<_ACEOF
37273 /* end confdefs.h.  */
37274 $ac_includes_default
37275 #include <$ac_header>
37276 _ACEOF
37277 rm -f conftest.$ac_objext
37278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37279   (eval $ac_compile) 2>conftest.er1
37280   ac_status=$?
37281   grep -v '^ *+' conftest.er1 >conftest.err
37282   rm -f conftest.er1
37283   cat conftest.err >&5
37284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285   (exit $ac_status); } &&
37286          { ac_try='test -z "$ac_c_werror_flag"
37287                          || test ! -s conftest.err'
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); }; } &&
37293          { ac_try='test -s conftest.$ac_objext'
37294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37295   (eval $ac_try) 2>&5
37296   ac_status=$?
37297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37298   (exit $ac_status); }; }; then
37299   ac_header_compiler=yes
37300 else
37301   echo "$as_me: failed program was:" >&5
37302 sed 's/^/| /' conftest.$ac_ext >&5
37303
37304 ac_header_compiler=no
37305 fi
37306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37308 echo "${ECHO_T}$ac_header_compiler" >&6
37309
37310 # Is the header present?
37311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37313 cat >conftest.$ac_ext <<_ACEOF
37314 /* confdefs.h.  */
37315 _ACEOF
37316 cat confdefs.h >>conftest.$ac_ext
37317 cat >>conftest.$ac_ext <<_ACEOF
37318 /* end confdefs.h.  */
37319 #include <$ac_header>
37320 _ACEOF
37321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37323   ac_status=$?
37324   grep -v '^ *+' conftest.er1 >conftest.err
37325   rm -f conftest.er1
37326   cat conftest.err >&5
37327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328   (exit $ac_status); } >/dev/null; then
37329   if test -s conftest.err; then
37330     ac_cpp_err=$ac_c_preproc_warn_flag
37331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37332   else
37333     ac_cpp_err=
37334   fi
37335 else
37336   ac_cpp_err=yes
37337 fi
37338 if test -z "$ac_cpp_err"; then
37339   ac_header_preproc=yes
37340 else
37341   echo "$as_me: failed program was:" >&5
37342 sed 's/^/| /' conftest.$ac_ext >&5
37343
37344   ac_header_preproc=no
37345 fi
37346 rm -f conftest.err conftest.$ac_ext
37347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37348 echo "${ECHO_T}$ac_header_preproc" >&6
37349
37350 # So?  What about this header?
37351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37352   yes:no: )
37353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37357     ac_header_preproc=yes
37358     ;;
37359   no:yes:* )
37360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37372     (
37373       cat <<\_ASBOX
37374 ## --------------------------------------------- ##
37375 ## Report this to <http://www.openldap.org/its/> ##
37376 ## --------------------------------------------- ##
37377 _ASBOX
37378     ) |
37379       sed "s/^/$as_me: WARNING:     /" >&2
37380     ;;
37381 esac
37382 echo "$as_me:$LINENO: checking for $ac_header" >&5
37383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37385   echo $ECHO_N "(cached) $ECHO_C" >&6
37386 else
37387   eval "$as_ac_Header=\$ac_header_preproc"
37388 fi
37389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37391
37392 fi
37393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37394   cat >>confdefs.h <<_ACEOF
37395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37396 _ACEOF
37397
37398 fi
37399
37400 done
37401
37402         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37403                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37404                 test "$ol_with_tls" = "found" ; then
37405                 ol_with_mp=bignum
37406
37407 cat >>confdefs.h <<\_ACEOF
37408 #define USE_MP_BIGNUM 1
37409 _ACEOF
37410
37411         elif test $ol_with_mp = bignum ; then
37412                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37413 echo "$as_me: error: bignum not available" >&2;}
37414    { (exit 1); exit 1; }; }
37415         fi
37416 fi
37417 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37418
37419 for ac_header in gmp.h
37420 do
37421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37423   echo "$as_me:$LINENO: checking for $ac_header" >&5
37424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37426   echo $ECHO_N "(cached) $ECHO_C" >&6
37427 fi
37428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37430 else
37431   # Is the header compilable?
37432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37434 cat >conftest.$ac_ext <<_ACEOF
37435 /* confdefs.h.  */
37436 _ACEOF
37437 cat confdefs.h >>conftest.$ac_ext
37438 cat >>conftest.$ac_ext <<_ACEOF
37439 /* end confdefs.h.  */
37440 $ac_includes_default
37441 #include <$ac_header>
37442 _ACEOF
37443 rm -f conftest.$ac_objext
37444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37445   (eval $ac_compile) 2>conftest.er1
37446   ac_status=$?
37447   grep -v '^ *+' conftest.er1 >conftest.err
37448   rm -f conftest.er1
37449   cat conftest.err >&5
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); } &&
37452          { ac_try='test -z "$ac_c_werror_flag"
37453                          || test ! -s conftest.err'
37454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455   (eval $ac_try) 2>&5
37456   ac_status=$?
37457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458   (exit $ac_status); }; } &&
37459          { ac_try='test -s conftest.$ac_objext'
37460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461   (eval $ac_try) 2>&5
37462   ac_status=$?
37463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464   (exit $ac_status); }; }; then
37465   ac_header_compiler=yes
37466 else
37467   echo "$as_me: failed program was:" >&5
37468 sed 's/^/| /' conftest.$ac_ext >&5
37469
37470 ac_header_compiler=no
37471 fi
37472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37474 echo "${ECHO_T}$ac_header_compiler" >&6
37475
37476 # Is the header present?
37477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37479 cat >conftest.$ac_ext <<_ACEOF
37480 /* confdefs.h.  */
37481 _ACEOF
37482 cat confdefs.h >>conftest.$ac_ext
37483 cat >>conftest.$ac_ext <<_ACEOF
37484 /* end confdefs.h.  */
37485 #include <$ac_header>
37486 _ACEOF
37487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37489   ac_status=$?
37490   grep -v '^ *+' conftest.er1 >conftest.err
37491   rm -f conftest.er1
37492   cat conftest.err >&5
37493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494   (exit $ac_status); } >/dev/null; then
37495   if test -s conftest.err; then
37496     ac_cpp_err=$ac_c_preproc_warn_flag
37497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37498   else
37499     ac_cpp_err=
37500   fi
37501 else
37502   ac_cpp_err=yes
37503 fi
37504 if test -z "$ac_cpp_err"; then
37505   ac_header_preproc=yes
37506 else
37507   echo "$as_me: failed program was:" >&5
37508 sed 's/^/| /' conftest.$ac_ext >&5
37509
37510   ac_header_preproc=no
37511 fi
37512 rm -f conftest.err conftest.$ac_ext
37513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37514 echo "${ECHO_T}$ac_header_preproc" >&6
37515
37516 # So?  What about this header?
37517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37518   yes:no: )
37519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37523     ac_header_preproc=yes
37524     ;;
37525   no:yes:* )
37526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37538     (
37539       cat <<\_ASBOX
37540 ## --------------------------------------------- ##
37541 ## Report this to <http://www.openldap.org/its/> ##
37542 ## --------------------------------------------- ##
37543 _ASBOX
37544     ) |
37545       sed "s/^/$as_me: WARNING:     /" >&2
37546     ;;
37547 esac
37548 echo "$as_me:$LINENO: checking for $ac_header" >&5
37549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37551   echo $ECHO_N "(cached) $ECHO_C" >&6
37552 else
37553   eval "$as_ac_Header=\$ac_header_preproc"
37554 fi
37555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37557
37558 fi
37559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37560   cat >>confdefs.h <<_ACEOF
37561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37562 _ACEOF
37563
37564 fi
37565
37566 done
37567
37568
37569 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37570 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37571 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37572   echo $ECHO_N "(cached) $ECHO_C" >&6
37573 else
37574   ac_check_lib_save_LIBS=$LIBS
37575 LIBS="-lgmp  $LIBS"
37576 cat >conftest.$ac_ext <<_ACEOF
37577 /* confdefs.h.  */
37578 _ACEOF
37579 cat confdefs.h >>conftest.$ac_ext
37580 cat >>conftest.$ac_ext <<_ACEOF
37581 /* end confdefs.h.  */
37582
37583 /* Override any gcc2 internal prototype to avoid an error.  */
37584 #ifdef __cplusplus
37585 extern "C"
37586 #endif
37587 /* We use char because int might match the return type of a gcc2
37588    builtin and then its argument prototype would still apply.  */
37589 char __gmpz_add_ui ();
37590 int
37591 main ()
37592 {
37593 __gmpz_add_ui ();
37594   ;
37595   return 0;
37596 }
37597 _ACEOF
37598 rm -f conftest.$ac_objext conftest$ac_exeext
37599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37600   (eval $ac_link) 2>conftest.er1
37601   ac_status=$?
37602   grep -v '^ *+' conftest.er1 >conftest.err
37603   rm -f conftest.er1
37604   cat conftest.err >&5
37605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606   (exit $ac_status); } &&
37607          { ac_try='test -z "$ac_c_werror_flag"
37608                          || test ! -s conftest.err'
37609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610   (eval $ac_try) 2>&5
37611   ac_status=$?
37612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613   (exit $ac_status); }; } &&
37614          { ac_try='test -s conftest$ac_exeext'
37615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37616   (eval $ac_try) 2>&5
37617   ac_status=$?
37618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619   (exit $ac_status); }; }; then
37620   ac_cv_lib_gmp___gmpz_add_ui=yes
37621 else
37622   echo "$as_me: failed program was:" >&5
37623 sed 's/^/| /' conftest.$ac_ext >&5
37624
37625 ac_cv_lib_gmp___gmpz_add_ui=no
37626 fi
37627 rm -f conftest.err conftest.$ac_objext \
37628       conftest$ac_exeext conftest.$ac_ext
37629 LIBS=$ac_check_lib_save_LIBS
37630 fi
37631 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37632 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37633 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37634   cat >>confdefs.h <<_ACEOF
37635 #define HAVE_LIBGMP 1
37636 _ACEOF
37637
37638   LIBS="-lgmp $LIBS"
37639
37640 fi
37641
37642         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37643
37644 cat >>confdefs.h <<\_ACEOF
37645 #define USE_MP_GMP 1
37646 _ACEOF
37647
37648                 ol_with_mp=gmp
37649         elif test $ol_with_mp = gmp ; then
37650                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37651 echo "$as_me: error: gmp not available" >&2;}
37652    { (exit 1); exit 1; }; }
37653         fi
37654 fi
37655 if test $ol_with_mp = auto ; then
37656         ol_with_mp=no
37657 fi
37658
37659 echo "$as_me:$LINENO: checking for working memcmp" >&5
37660 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37661 if test "${ac_cv_func_memcmp_working+set}" = set; then
37662   echo $ECHO_N "(cached) $ECHO_C" >&6
37663 else
37664   if test "$cross_compiling" = yes; then
37665   ac_cv_func_memcmp_working=no
37666 else
37667   cat >conftest.$ac_ext <<_ACEOF
37668 /* confdefs.h.  */
37669 _ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h.  */
37673 $ac_includes_default
37674 int
37675 main ()
37676 {
37677
37678   /* Some versions of memcmp are not 8-bit clean.  */
37679   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37680   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37681     exit (1);
37682
37683   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37684      or more and with at least one buffer not starting on a 4-byte boundary.
37685      William Lewis provided this test program.   */
37686   {
37687     char foo[21];
37688     char bar[21];
37689     int i;
37690     for (i = 0; i < 4; i++)
37691       {
37692         char *a = foo + i;
37693         char *b = bar + i;
37694         strcpy (a, "--------01111111");
37695         strcpy (b, "--------10000000");
37696         if (memcmp (a, b, 16) >= 0)
37697           exit (1);
37698       }
37699     exit (0);
37700   }
37701
37702   ;
37703   return 0;
37704 }
37705 _ACEOF
37706 rm -f conftest$ac_exeext
37707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37708   (eval $ac_link) 2>&5
37709   ac_status=$?
37710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37713   (eval $ac_try) 2>&5
37714   ac_status=$?
37715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716   (exit $ac_status); }; }; then
37717   ac_cv_func_memcmp_working=yes
37718 else
37719   echo "$as_me: program exited with status $ac_status" >&5
37720 echo "$as_me: failed program was:" >&5
37721 sed 's/^/| /' conftest.$ac_ext >&5
37722
37723 ( exit $ac_status )
37724 ac_cv_func_memcmp_working=no
37725 fi
37726 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37727 fi
37728 fi
37729 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
37730 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
37731 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
37732     "memcmp.$ac_objext"   | \
37733   *" memcmp.$ac_objext"   | \
37734     "memcmp.$ac_objext "* | \
37735   *" memcmp.$ac_objext "* ) ;;
37736   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
37737 esac
37738
37739
37740
37741 if test $ac_cv_func_memcmp_working = no ; then
37742
37743 cat >>confdefs.h <<\_ACEOF
37744 #define NEED_MEMCMP_REPLACEMENT 1
37745 _ACEOF
37746
37747 fi
37748
37749
37750 for ac_func in strftime
37751 do
37752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37753 echo "$as_me:$LINENO: checking for $ac_func" >&5
37754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37755 if eval "test \"\${$as_ac_var+set}\" = set"; then
37756   echo $ECHO_N "(cached) $ECHO_C" >&6
37757 else
37758   cat >conftest.$ac_ext <<_ACEOF
37759 /* confdefs.h.  */
37760 _ACEOF
37761 cat confdefs.h >>conftest.$ac_ext
37762 cat >>conftest.$ac_ext <<_ACEOF
37763 /* end confdefs.h.  */
37764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37766 #define $ac_func innocuous_$ac_func
37767
37768 /* System header to define __stub macros and hopefully few prototypes,
37769     which can conflict with char $ac_func (); below.
37770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37771     <limits.h> exists even on freestanding compilers.  */
37772
37773 #ifdef __STDC__
37774 # include <limits.h>
37775 #else
37776 # include <assert.h>
37777 #endif
37778
37779 #undef $ac_func
37780
37781 /* Override any gcc2 internal prototype to avoid an error.  */
37782 #ifdef __cplusplus
37783 extern "C"
37784 {
37785 #endif
37786 /* We use char because int might match the return type of a gcc2
37787    builtin and then its argument prototype would still apply.  */
37788 char $ac_func ();
37789 /* The GNU C library defines this for functions which it implements
37790     to always fail with ENOSYS.  Some functions are actually named
37791     something starting with __ and the normal name is an alias.  */
37792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37793 choke me
37794 #else
37795 char (*f) () = $ac_func;
37796 #endif
37797 #ifdef __cplusplus
37798 }
37799 #endif
37800
37801 int
37802 main ()
37803 {
37804 return f != $ac_func;
37805   ;
37806   return 0;
37807 }
37808 _ACEOF
37809 rm -f conftest.$ac_objext conftest$ac_exeext
37810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37811   (eval $ac_link) 2>conftest.er1
37812   ac_status=$?
37813   grep -v '^ *+' conftest.er1 >conftest.err
37814   rm -f conftest.er1
37815   cat conftest.err >&5
37816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37817   (exit $ac_status); } &&
37818          { ac_try='test -z "$ac_c_werror_flag"
37819                          || test ! -s conftest.err'
37820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37821   (eval $ac_try) 2>&5
37822   ac_status=$?
37823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824   (exit $ac_status); }; } &&
37825          { ac_try='test -s conftest$ac_exeext'
37826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37827   (eval $ac_try) 2>&5
37828   ac_status=$?
37829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830   (exit $ac_status); }; }; then
37831   eval "$as_ac_var=yes"
37832 else
37833   echo "$as_me: failed program was:" >&5
37834 sed 's/^/| /' conftest.$ac_ext >&5
37835
37836 eval "$as_ac_var=no"
37837 fi
37838 rm -f conftest.err conftest.$ac_objext \
37839       conftest$ac_exeext conftest.$ac_ext
37840 fi
37841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37843 if test `eval echo '${'$as_ac_var'}'` = yes; then
37844   cat >>confdefs.h <<_ACEOF
37845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37846 _ACEOF
37847
37848 else
37849   # strftime is in -lintl on SCO UNIX.
37850 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
37851 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
37852 if test "${ac_cv_lib_intl_strftime+set}" = set; then
37853   echo $ECHO_N "(cached) $ECHO_C" >&6
37854 else
37855   ac_check_lib_save_LIBS=$LIBS
37856 LIBS="-lintl  $LIBS"
37857 cat >conftest.$ac_ext <<_ACEOF
37858 /* confdefs.h.  */
37859 _ACEOF
37860 cat confdefs.h >>conftest.$ac_ext
37861 cat >>conftest.$ac_ext <<_ACEOF
37862 /* end confdefs.h.  */
37863
37864 /* Override any gcc2 internal prototype to avoid an error.  */
37865 #ifdef __cplusplus
37866 extern "C"
37867 #endif
37868 /* We use char because int might match the return type of a gcc2
37869    builtin and then its argument prototype would still apply.  */
37870 char strftime ();
37871 int
37872 main ()
37873 {
37874 strftime ();
37875   ;
37876   return 0;
37877 }
37878 _ACEOF
37879 rm -f conftest.$ac_objext conftest$ac_exeext
37880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37881   (eval $ac_link) 2>conftest.er1
37882   ac_status=$?
37883   grep -v '^ *+' conftest.er1 >conftest.err
37884   rm -f conftest.er1
37885   cat conftest.err >&5
37886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887   (exit $ac_status); } &&
37888          { ac_try='test -z "$ac_c_werror_flag"
37889                          || test ! -s conftest.err'
37890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37891   (eval $ac_try) 2>&5
37892   ac_status=$?
37893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37894   (exit $ac_status); }; } &&
37895          { ac_try='test -s conftest$ac_exeext'
37896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37897   (eval $ac_try) 2>&5
37898   ac_status=$?
37899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900   (exit $ac_status); }; }; then
37901   ac_cv_lib_intl_strftime=yes
37902 else
37903   echo "$as_me: failed program was:" >&5
37904 sed 's/^/| /' conftest.$ac_ext >&5
37905
37906 ac_cv_lib_intl_strftime=no
37907 fi
37908 rm -f conftest.err conftest.$ac_objext \
37909       conftest$ac_exeext conftest.$ac_ext
37910 LIBS=$ac_check_lib_save_LIBS
37911 fi
37912 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
37913 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
37914 if test $ac_cv_lib_intl_strftime = yes; then
37915   cat >>confdefs.h <<\_ACEOF
37916 #define HAVE_STRFTIME 1
37917 _ACEOF
37918
37919 LIBS="-lintl $LIBS"
37920 fi
37921
37922 fi
37923 done
37924
37925
37926 echo "$as_me:$LINENO: checking for inet_aton()" >&5
37927 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
37928 if test "${ol_cv_func_inet_aton+set}" = set; then
37929   echo $ECHO_N "(cached) $ECHO_C" >&6
37930 else
37931   cat >conftest.$ac_ext <<_ACEOF
37932 /* confdefs.h.  */
37933 _ACEOF
37934 cat confdefs.h >>conftest.$ac_ext
37935 cat >>conftest.$ac_ext <<_ACEOF
37936 /* end confdefs.h.  */
37937
37938 #ifdef HAVE_SYS_TYPES_H
37939 #       include <sys/types.h>
37940 #endif
37941 #ifdef HAVE_SYS_SOCKET_H
37942 #       include <sys/socket.h>
37943 #       ifdef HAVE_SYS_SELECT_H
37944 #               include <sys/select.h>
37945 #       endif
37946 #       include <netinet/in.h>
37947 #       ifdef HAVE_ARPA_INET_H
37948 #               include <arpa/inet.h>
37949 #       endif
37950 #endif
37951
37952 int
37953 main ()
37954 {
37955 struct in_addr in;
37956 int rc = inet_aton( "255.255.255.255", &in );
37957   ;
37958   return 0;
37959 }
37960 _ACEOF
37961 rm -f conftest.$ac_objext conftest$ac_exeext
37962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37963   (eval $ac_link) 2>conftest.er1
37964   ac_status=$?
37965   grep -v '^ *+' conftest.er1 >conftest.err
37966   rm -f conftest.er1
37967   cat conftest.err >&5
37968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37969   (exit $ac_status); } &&
37970          { ac_try='test -z "$ac_c_werror_flag"
37971                          || test ! -s conftest.err'
37972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973   (eval $ac_try) 2>&5
37974   ac_status=$?
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); }; } &&
37977          { ac_try='test -s conftest$ac_exeext'
37978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37979   (eval $ac_try) 2>&5
37980   ac_status=$?
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); }; }; then
37983   ol_cv_func_inet_aton=yes
37984 else
37985   echo "$as_me: failed program was:" >&5
37986 sed 's/^/| /' conftest.$ac_ext >&5
37987
37988 ol_cv_func_inet_aton=no
37989 fi
37990 rm -f conftest.err conftest.$ac_objext \
37991       conftest$ac_exeext conftest.$ac_ext
37992 fi
37993 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
37994 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
37995   if test $ol_cv_func_inet_aton != no; then
37996
37997 cat >>confdefs.h <<\_ACEOF
37998 #define HAVE_INET_ATON 1
37999 _ACEOF
38000
38001   fi
38002
38003
38004 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38005 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38006 if test "${ac_cv_func__spawnlp+set}" = set; then
38007   echo $ECHO_N "(cached) $ECHO_C" >&6
38008 else
38009   cat >conftest.$ac_ext <<_ACEOF
38010 /* confdefs.h.  */
38011 _ACEOF
38012 cat confdefs.h >>conftest.$ac_ext
38013 cat >>conftest.$ac_ext <<_ACEOF
38014 /* end confdefs.h.  */
38015 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38017 #define _spawnlp innocuous__spawnlp
38018
38019 /* System header to define __stub macros and hopefully few prototypes,
38020     which can conflict with char _spawnlp (); below.
38021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38022     <limits.h> exists even on freestanding compilers.  */
38023
38024 #ifdef __STDC__
38025 # include <limits.h>
38026 #else
38027 # include <assert.h>
38028 #endif
38029
38030 #undef _spawnlp
38031
38032 /* Override any gcc2 internal prototype to avoid an error.  */
38033 #ifdef __cplusplus
38034 extern "C"
38035 {
38036 #endif
38037 /* We use char because int might match the return type of a gcc2
38038    builtin and then its argument prototype would still apply.  */
38039 char _spawnlp ();
38040 /* The GNU C library defines this for functions which it implements
38041     to always fail with ENOSYS.  Some functions are actually named
38042     something starting with __ and the normal name is an alias.  */
38043 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38044 choke me
38045 #else
38046 char (*f) () = _spawnlp;
38047 #endif
38048 #ifdef __cplusplus
38049 }
38050 #endif
38051
38052 int
38053 main ()
38054 {
38055 return f != _spawnlp;
38056   ;
38057   return 0;
38058 }
38059 _ACEOF
38060 rm -f conftest.$ac_objext conftest$ac_exeext
38061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38062   (eval $ac_link) 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); } &&
38069          { ac_try='test -z "$ac_c_werror_flag"
38070                          || test ! -s conftest.err'
38071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38072   (eval $ac_try) 2>&5
38073   ac_status=$?
38074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38075   (exit $ac_status); }; } &&
38076          { ac_try='test -s conftest$ac_exeext'
38077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38078   (eval $ac_try) 2>&5
38079   ac_status=$?
38080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081   (exit $ac_status); }; }; then
38082   ac_cv_func__spawnlp=yes
38083 else
38084   echo "$as_me: failed program was:" >&5
38085 sed 's/^/| /' conftest.$ac_ext >&5
38086
38087 ac_cv_func__spawnlp=no
38088 fi
38089 rm -f conftest.err conftest.$ac_objext \
38090       conftest$ac_exeext conftest.$ac_ext
38091 fi
38092 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38093 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38094 if test $ac_cv_func__spawnlp = yes; then
38095
38096 cat >>confdefs.h <<\_ACEOF
38097 #define HAVE_SPAWNLP 1
38098 _ACEOF
38099
38100 fi
38101
38102
38103 echo "$as_me:$LINENO: checking for _snprintf" >&5
38104 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38105 if test "${ac_cv_func__snprintf+set}" = set; then
38106   echo $ECHO_N "(cached) $ECHO_C" >&6
38107 else
38108   cat >conftest.$ac_ext <<_ACEOF
38109 /* confdefs.h.  */
38110 _ACEOF
38111 cat confdefs.h >>conftest.$ac_ext
38112 cat >>conftest.$ac_ext <<_ACEOF
38113 /* end confdefs.h.  */
38114 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38116 #define _snprintf innocuous__snprintf
38117
38118 /* System header to define __stub macros and hopefully few prototypes,
38119     which can conflict with char _snprintf (); below.
38120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38121     <limits.h> exists even on freestanding compilers.  */
38122
38123 #ifdef __STDC__
38124 # include <limits.h>
38125 #else
38126 # include <assert.h>
38127 #endif
38128
38129 #undef _snprintf
38130
38131 /* Override any gcc2 internal prototype to avoid an error.  */
38132 #ifdef __cplusplus
38133 extern "C"
38134 {
38135 #endif
38136 /* We use char because int might match the return type of a gcc2
38137    builtin and then its argument prototype would still apply.  */
38138 char _snprintf ();
38139 /* The GNU C library defines this for functions which it implements
38140     to always fail with ENOSYS.  Some functions are actually named
38141     something starting with __ and the normal name is an alias.  */
38142 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38143 choke me
38144 #else
38145 char (*f) () = _snprintf;
38146 #endif
38147 #ifdef __cplusplus
38148 }
38149 #endif
38150
38151 int
38152 main ()
38153 {
38154 return f != _snprintf;
38155   ;
38156   return 0;
38157 }
38158 _ACEOF
38159 rm -f conftest.$ac_objext conftest$ac_exeext
38160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38161   (eval $ac_link) 2>conftest.er1
38162   ac_status=$?
38163   grep -v '^ *+' conftest.er1 >conftest.err
38164   rm -f conftest.er1
38165   cat conftest.err >&5
38166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167   (exit $ac_status); } &&
38168          { ac_try='test -z "$ac_c_werror_flag"
38169                          || test ! -s conftest.err'
38170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38171   (eval $ac_try) 2>&5
38172   ac_status=$?
38173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174   (exit $ac_status); }; } &&
38175          { ac_try='test -s conftest$ac_exeext'
38176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38177   (eval $ac_try) 2>&5
38178   ac_status=$?
38179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180   (exit $ac_status); }; }; then
38181   ac_cv_func__snprintf=yes
38182 else
38183   echo "$as_me: failed program was:" >&5
38184 sed 's/^/| /' conftest.$ac_ext >&5
38185
38186 ac_cv_func__snprintf=no
38187 fi
38188 rm -f conftest.err conftest.$ac_objext \
38189       conftest$ac_exeext conftest.$ac_ext
38190 fi
38191 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38192 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38193 if test $ac_cv_func__snprintf = yes; then
38194   ac_cv_func_snprintf=yes
38195
38196 cat >>confdefs.h <<\_ACEOF
38197 #define snprintf _snprintf
38198 _ACEOF
38199
38200
38201 fi
38202
38203
38204 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38205 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38206 if test "${ac_cv_func__vsnprintf+set}" = set; then
38207   echo $ECHO_N "(cached) $ECHO_C" >&6
38208 else
38209   cat >conftest.$ac_ext <<_ACEOF
38210 /* confdefs.h.  */
38211 _ACEOF
38212 cat confdefs.h >>conftest.$ac_ext
38213 cat >>conftest.$ac_ext <<_ACEOF
38214 /* end confdefs.h.  */
38215 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38217 #define _vsnprintf innocuous__vsnprintf
38218
38219 /* System header to define __stub macros and hopefully few prototypes,
38220     which can conflict with char _vsnprintf (); below.
38221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38222     <limits.h> exists even on freestanding compilers.  */
38223
38224 #ifdef __STDC__
38225 # include <limits.h>
38226 #else
38227 # include <assert.h>
38228 #endif
38229
38230 #undef _vsnprintf
38231
38232 /* Override any gcc2 internal prototype to avoid an error.  */
38233 #ifdef __cplusplus
38234 extern "C"
38235 {
38236 #endif
38237 /* We use char because int might match the return type of a gcc2
38238    builtin and then its argument prototype would still apply.  */
38239 char _vsnprintf ();
38240 /* The GNU C library defines this for functions which it implements
38241     to always fail with ENOSYS.  Some functions are actually named
38242     something starting with __ and the normal name is an alias.  */
38243 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38244 choke me
38245 #else
38246 char (*f) () = _vsnprintf;
38247 #endif
38248 #ifdef __cplusplus
38249 }
38250 #endif
38251
38252 int
38253 main ()
38254 {
38255 return f != _vsnprintf;
38256   ;
38257   return 0;
38258 }
38259 _ACEOF
38260 rm -f conftest.$ac_objext conftest$ac_exeext
38261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38262   (eval $ac_link) 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_exeext'
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_cv_func__vsnprintf=yes
38283 else
38284   echo "$as_me: failed program was:" >&5
38285 sed 's/^/| /' conftest.$ac_ext >&5
38286
38287 ac_cv_func__vsnprintf=no
38288 fi
38289 rm -f conftest.err conftest.$ac_objext \
38290       conftest$ac_exeext conftest.$ac_ext
38291 fi
38292 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38293 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38294 if test $ac_cv_func__vsnprintf = yes; then
38295   ac_cv_func_vsnprintf=yes
38296
38297 cat >>confdefs.h <<\_ACEOF
38298 #define vsnprintf _vsnprintf
38299 _ACEOF
38300
38301
38302 fi
38303
38304
38305
38306 for ac_func in vprintf
38307 do
38308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38309 echo "$as_me:$LINENO: checking for $ac_func" >&5
38310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38311 if eval "test \"\${$as_ac_var+set}\" = set"; then
38312   echo $ECHO_N "(cached) $ECHO_C" >&6
38313 else
38314   cat >conftest.$ac_ext <<_ACEOF
38315 /* confdefs.h.  */
38316 _ACEOF
38317 cat confdefs.h >>conftest.$ac_ext
38318 cat >>conftest.$ac_ext <<_ACEOF
38319 /* end confdefs.h.  */
38320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38322 #define $ac_func innocuous_$ac_func
38323
38324 /* System header to define __stub macros and hopefully few prototypes,
38325     which can conflict with char $ac_func (); below.
38326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38327     <limits.h> exists even on freestanding compilers.  */
38328
38329 #ifdef __STDC__
38330 # include <limits.h>
38331 #else
38332 # include <assert.h>
38333 #endif
38334
38335 #undef $ac_func
38336
38337 /* Override any gcc2 internal prototype to avoid an error.  */
38338 #ifdef __cplusplus
38339 extern "C"
38340 {
38341 #endif
38342 /* We use char because int might match the return type of a gcc2
38343    builtin and then its argument prototype would still apply.  */
38344 char $ac_func ();
38345 /* The GNU C library defines this for functions which it implements
38346     to always fail with ENOSYS.  Some functions are actually named
38347     something starting with __ and the normal name is an alias.  */
38348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38349 choke me
38350 #else
38351 char (*f) () = $ac_func;
38352 #endif
38353 #ifdef __cplusplus
38354 }
38355 #endif
38356
38357 int
38358 main ()
38359 {
38360 return f != $ac_func;
38361   ;
38362   return 0;
38363 }
38364 _ACEOF
38365 rm -f conftest.$ac_objext conftest$ac_exeext
38366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38367   (eval $ac_link) 2>conftest.er1
38368   ac_status=$?
38369   grep -v '^ *+' conftest.er1 >conftest.err
38370   rm -f conftest.er1
38371   cat conftest.err >&5
38372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373   (exit $ac_status); } &&
38374          { ac_try='test -z "$ac_c_werror_flag"
38375                          || test ! -s conftest.err'
38376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377   (eval $ac_try) 2>&5
38378   ac_status=$?
38379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380   (exit $ac_status); }; } &&
38381          { ac_try='test -s conftest$ac_exeext'
38382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383   (eval $ac_try) 2>&5
38384   ac_status=$?
38385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386   (exit $ac_status); }; }; then
38387   eval "$as_ac_var=yes"
38388 else
38389   echo "$as_me: failed program was:" >&5
38390 sed 's/^/| /' conftest.$ac_ext >&5
38391
38392 eval "$as_ac_var=no"
38393 fi
38394 rm -f conftest.err conftest.$ac_objext \
38395       conftest$ac_exeext conftest.$ac_ext
38396 fi
38397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38399 if test `eval echo '${'$as_ac_var'}'` = yes; then
38400   cat >>confdefs.h <<_ACEOF
38401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38402 _ACEOF
38403
38404 echo "$as_me:$LINENO: checking for _doprnt" >&5
38405 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38406 if test "${ac_cv_func__doprnt+set}" = set; then
38407   echo $ECHO_N "(cached) $ECHO_C" >&6
38408 else
38409   cat >conftest.$ac_ext <<_ACEOF
38410 /* confdefs.h.  */
38411 _ACEOF
38412 cat confdefs.h >>conftest.$ac_ext
38413 cat >>conftest.$ac_ext <<_ACEOF
38414 /* end confdefs.h.  */
38415 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38417 #define _doprnt innocuous__doprnt
38418
38419 /* System header to define __stub macros and hopefully few prototypes,
38420     which can conflict with char _doprnt (); below.
38421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38422     <limits.h> exists even on freestanding compilers.  */
38423
38424 #ifdef __STDC__
38425 # include <limits.h>
38426 #else
38427 # include <assert.h>
38428 #endif
38429
38430 #undef _doprnt
38431
38432 /* Override any gcc2 internal prototype to avoid an error.  */
38433 #ifdef __cplusplus
38434 extern "C"
38435 {
38436 #endif
38437 /* We use char because int might match the return type of a gcc2
38438    builtin and then its argument prototype would still apply.  */
38439 char _doprnt ();
38440 /* The GNU C library defines this for functions which it implements
38441     to always fail with ENOSYS.  Some functions are actually named
38442     something starting with __ and the normal name is an alias.  */
38443 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38444 choke me
38445 #else
38446 char (*f) () = _doprnt;
38447 #endif
38448 #ifdef __cplusplus
38449 }
38450 #endif
38451
38452 int
38453 main ()
38454 {
38455 return f != _doprnt;
38456   ;
38457   return 0;
38458 }
38459 _ACEOF
38460 rm -f conftest.$ac_objext conftest$ac_exeext
38461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38462   (eval $ac_link) 2>conftest.er1
38463   ac_status=$?
38464   grep -v '^ *+' conftest.er1 >conftest.err
38465   rm -f conftest.er1
38466   cat conftest.err >&5
38467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38468   (exit $ac_status); } &&
38469          { ac_try='test -z "$ac_c_werror_flag"
38470                          || test ! -s conftest.err'
38471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38472   (eval $ac_try) 2>&5
38473   ac_status=$?
38474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475   (exit $ac_status); }; } &&
38476          { ac_try='test -s conftest$ac_exeext'
38477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478   (eval $ac_try) 2>&5
38479   ac_status=$?
38480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481   (exit $ac_status); }; }; then
38482   ac_cv_func__doprnt=yes
38483 else
38484   echo "$as_me: failed program was:" >&5
38485 sed 's/^/| /' conftest.$ac_ext >&5
38486
38487 ac_cv_func__doprnt=no
38488 fi
38489 rm -f conftest.err conftest.$ac_objext \
38490       conftest$ac_exeext conftest.$ac_ext
38491 fi
38492 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38493 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38494 if test $ac_cv_func__doprnt = yes; then
38495
38496 cat >>confdefs.h <<\_ACEOF
38497 #define HAVE_DOPRNT 1
38498 _ACEOF
38499
38500 fi
38501
38502 fi
38503 done
38504
38505
38506
38507 if test $ac_cv_func_vprintf = yes ; then
38508
38509
38510 for ac_func in snprintf vsnprintf
38511 do
38512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38513 echo "$as_me:$LINENO: checking for $ac_func" >&5
38514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38515 if eval "test \"\${$as_ac_var+set}\" = set"; then
38516   echo $ECHO_N "(cached) $ECHO_C" >&6
38517 else
38518   cat >conftest.$ac_ext <<_ACEOF
38519 /* confdefs.h.  */
38520 _ACEOF
38521 cat confdefs.h >>conftest.$ac_ext
38522 cat >>conftest.$ac_ext <<_ACEOF
38523 /* end confdefs.h.  */
38524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38526 #define $ac_func innocuous_$ac_func
38527
38528 /* System header to define __stub macros and hopefully few prototypes,
38529     which can conflict with char $ac_func (); below.
38530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38531     <limits.h> exists even on freestanding compilers.  */
38532
38533 #ifdef __STDC__
38534 # include <limits.h>
38535 #else
38536 # include <assert.h>
38537 #endif
38538
38539 #undef $ac_func
38540
38541 /* Override any gcc2 internal prototype to avoid an error.  */
38542 #ifdef __cplusplus
38543 extern "C"
38544 {
38545 #endif
38546 /* We use char because int might match the return type of a gcc2
38547    builtin and then its argument prototype would still apply.  */
38548 char $ac_func ();
38549 /* The GNU C library defines this for functions which it implements
38550     to always fail with ENOSYS.  Some functions are actually named
38551     something starting with __ and the normal name is an alias.  */
38552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38553 choke me
38554 #else
38555 char (*f) () = $ac_func;
38556 #endif
38557 #ifdef __cplusplus
38558 }
38559 #endif
38560
38561 int
38562 main ()
38563 {
38564 return f != $ac_func;
38565   ;
38566   return 0;
38567 }
38568 _ACEOF
38569 rm -f conftest.$ac_objext conftest$ac_exeext
38570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38571   (eval $ac_link) 2>conftest.er1
38572   ac_status=$?
38573   grep -v '^ *+' conftest.er1 >conftest.err
38574   rm -f conftest.er1
38575   cat conftest.err >&5
38576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577   (exit $ac_status); } &&
38578          { ac_try='test -z "$ac_c_werror_flag"
38579                          || test ! -s conftest.err'
38580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581   (eval $ac_try) 2>&5
38582   ac_status=$?
38583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584   (exit $ac_status); }; } &&
38585          { ac_try='test -s conftest$ac_exeext'
38586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587   (eval $ac_try) 2>&5
38588   ac_status=$?
38589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590   (exit $ac_status); }; }; then
38591   eval "$as_ac_var=yes"
38592 else
38593   echo "$as_me: failed program was:" >&5
38594 sed 's/^/| /' conftest.$ac_ext >&5
38595
38596 eval "$as_ac_var=no"
38597 fi
38598 rm -f conftest.err conftest.$ac_objext \
38599       conftest$ac_exeext conftest.$ac_ext
38600 fi
38601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38603 if test `eval echo '${'$as_ac_var'}'` = yes; then
38604   cat >>confdefs.h <<_ACEOF
38605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38606 _ACEOF
38607
38608 fi
38609 done
38610
38611 fi
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668 for ac_func in \
38669         bcopy                   \
38670         closesocket             \
38671         chroot                  \
38672         endgrent                \
38673         endpwent                \
38674         fcntl                   \
38675         flock                   \
38676         fstat                   \
38677         getdtablesize           \
38678         getgrgid                \
38679         gethostname             \
38680         getpass                 \
38681         getpassphrase           \
38682         getpwuid                \
38683         getpwnam                \
38684         getspnam                \
38685         gettimeofday            \
38686         initgroups              \
38687         inet_ntoa_b             \
38688         ioctl                   \
38689         lockf                   \
38690         memcpy                  \
38691         memmove                 \
38692         memrchr                 \
38693         mkstemp                 \
38694         mktemp                  \
38695         pipe                    \
38696         read                    \
38697         recv                    \
38698         recvfrom                \
38699         setpwfile               \
38700         setgid                  \
38701         setegid                 \
38702         setsid                  \
38703         setuid                  \
38704         seteuid                 \
38705         signal                  \
38706         strdup                  \
38707         strpbrk                 \
38708         strrchr                 \
38709         strsep                  \
38710         strstr                  \
38711         strtol                  \
38712         strtoul                 \
38713         strtoq                  \
38714         strtouq                 \
38715         strtoll                 \
38716         strspn                  \
38717         sysconf                 \
38718         waitpid                 \
38719         wait4                   \
38720         write                   \
38721         send                    \
38722         sendmsg                 \
38723         sendto                  \
38724
38725 do
38726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38727 echo "$as_me:$LINENO: checking for $ac_func" >&5
38728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38729 if eval "test \"\${$as_ac_var+set}\" = set"; then
38730   echo $ECHO_N "(cached) $ECHO_C" >&6
38731 else
38732   cat >conftest.$ac_ext <<_ACEOF
38733 /* confdefs.h.  */
38734 _ACEOF
38735 cat confdefs.h >>conftest.$ac_ext
38736 cat >>conftest.$ac_ext <<_ACEOF
38737 /* end confdefs.h.  */
38738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38740 #define $ac_func innocuous_$ac_func
38741
38742 /* System header to define __stub macros and hopefully few prototypes,
38743     which can conflict with char $ac_func (); below.
38744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38745     <limits.h> exists even on freestanding compilers.  */
38746
38747 #ifdef __STDC__
38748 # include <limits.h>
38749 #else
38750 # include <assert.h>
38751 #endif
38752
38753 #undef $ac_func
38754
38755 /* Override any gcc2 internal prototype to avoid an error.  */
38756 #ifdef __cplusplus
38757 extern "C"
38758 {
38759 #endif
38760 /* We use char because int might match the return type of a gcc2
38761    builtin and then its argument prototype would still apply.  */
38762 char $ac_func ();
38763 /* The GNU C library defines this for functions which it implements
38764     to always fail with ENOSYS.  Some functions are actually named
38765     something starting with __ and the normal name is an alias.  */
38766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38767 choke me
38768 #else
38769 char (*f) () = $ac_func;
38770 #endif
38771 #ifdef __cplusplus
38772 }
38773 #endif
38774
38775 int
38776 main ()
38777 {
38778 return f != $ac_func;
38779   ;
38780   return 0;
38781 }
38782 _ACEOF
38783 rm -f conftest.$ac_objext conftest$ac_exeext
38784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38785   (eval $ac_link) 2>conftest.er1
38786   ac_status=$?
38787   grep -v '^ *+' conftest.er1 >conftest.err
38788   rm -f conftest.er1
38789   cat conftest.err >&5
38790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791   (exit $ac_status); } &&
38792          { ac_try='test -z "$ac_c_werror_flag"
38793                          || test ! -s conftest.err'
38794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38795   (eval $ac_try) 2>&5
38796   ac_status=$?
38797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798   (exit $ac_status); }; } &&
38799          { ac_try='test -s conftest$ac_exeext'
38800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38801   (eval $ac_try) 2>&5
38802   ac_status=$?
38803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804   (exit $ac_status); }; }; then
38805   eval "$as_ac_var=yes"
38806 else
38807   echo "$as_me: failed program was:" >&5
38808 sed 's/^/| /' conftest.$ac_ext >&5
38809
38810 eval "$as_ac_var=no"
38811 fi
38812 rm -f conftest.err conftest.$ac_objext \
38813       conftest$ac_exeext conftest.$ac_ext
38814 fi
38815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38817 if test `eval echo '${'$as_ac_var'}'` = yes; then
38818   cat >>confdefs.h <<_ACEOF
38819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38820 _ACEOF
38821
38822 fi
38823 done
38824
38825
38826
38827
38828 for ac_func in getopt getpeereid
38829 do
38830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38831 echo "$as_me:$LINENO: checking for $ac_func" >&5
38832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38833 if eval "test \"\${$as_ac_var+set}\" = set"; then
38834   echo $ECHO_N "(cached) $ECHO_C" >&6
38835 else
38836   cat >conftest.$ac_ext <<_ACEOF
38837 /* confdefs.h.  */
38838 _ACEOF
38839 cat confdefs.h >>conftest.$ac_ext
38840 cat >>conftest.$ac_ext <<_ACEOF
38841 /* end confdefs.h.  */
38842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38844 #define $ac_func innocuous_$ac_func
38845
38846 /* System header to define __stub macros and hopefully few prototypes,
38847     which can conflict with char $ac_func (); below.
38848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38849     <limits.h> exists even on freestanding compilers.  */
38850
38851 #ifdef __STDC__
38852 # include <limits.h>
38853 #else
38854 # include <assert.h>
38855 #endif
38856
38857 #undef $ac_func
38858
38859 /* Override any gcc2 internal prototype to avoid an error.  */
38860 #ifdef __cplusplus
38861 extern "C"
38862 {
38863 #endif
38864 /* We use char because int might match the return type of a gcc2
38865    builtin and then its argument prototype would still apply.  */
38866 char $ac_func ();
38867 /* The GNU C library defines this for functions which it implements
38868     to always fail with ENOSYS.  Some functions are actually named
38869     something starting with __ and the normal name is an alias.  */
38870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38871 choke me
38872 #else
38873 char (*f) () = $ac_func;
38874 #endif
38875 #ifdef __cplusplus
38876 }
38877 #endif
38878
38879 int
38880 main ()
38881 {
38882 return f != $ac_func;
38883   ;
38884   return 0;
38885 }
38886 _ACEOF
38887 rm -f conftest.$ac_objext conftest$ac_exeext
38888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38889   (eval $ac_link) 2>conftest.er1
38890   ac_status=$?
38891   grep -v '^ *+' conftest.er1 >conftest.err
38892   rm -f conftest.er1
38893   cat conftest.err >&5
38894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895   (exit $ac_status); } &&
38896          { ac_try='test -z "$ac_c_werror_flag"
38897                          || test ! -s conftest.err'
38898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38899   (eval $ac_try) 2>&5
38900   ac_status=$?
38901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902   (exit $ac_status); }; } &&
38903          { ac_try='test -s conftest$ac_exeext'
38904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38905   (eval $ac_try) 2>&5
38906   ac_status=$?
38907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908   (exit $ac_status); }; }; then
38909   eval "$as_ac_var=yes"
38910 else
38911   echo "$as_me: failed program was:" >&5
38912 sed 's/^/| /' conftest.$ac_ext >&5
38913
38914 eval "$as_ac_var=no"
38915 fi
38916 rm -f conftest.err conftest.$ac_objext \
38917       conftest$ac_exeext conftest.$ac_ext
38918 fi
38919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38921 if test `eval echo '${'$as_ac_var'}'` = yes; then
38922   cat >>confdefs.h <<_ACEOF
38923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38924 _ACEOF
38925
38926 else
38927   case $LIBOBJS in
38928     "$ac_func.$ac_objext"   | \
38929   *" $ac_func.$ac_objext"   | \
38930     "$ac_func.$ac_objext "* | \
38931   *" $ac_func.$ac_objext "* ) ;;
38932   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38933 esac
38934
38935 fi
38936 done
38937
38938
38939
38940 if test "$ac_cv_func_getopt" != yes; then
38941         LIBSRCS="$LIBSRCS getopt.c"
38942 fi
38943
38944 if test "$ac_cv_func_getpeereid" != yes; then
38945
38946 for ac_func in getpeerucred
38947 do
38948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38949 echo "$as_me:$LINENO: checking for $ac_func" >&5
38950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38951 if eval "test \"\${$as_ac_var+set}\" = set"; then
38952   echo $ECHO_N "(cached) $ECHO_C" >&6
38953 else
38954   cat >conftest.$ac_ext <<_ACEOF
38955 /* confdefs.h.  */
38956 _ACEOF
38957 cat confdefs.h >>conftest.$ac_ext
38958 cat >>conftest.$ac_ext <<_ACEOF
38959 /* end confdefs.h.  */
38960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38962 #define $ac_func innocuous_$ac_func
38963
38964 /* System header to define __stub macros and hopefully few prototypes,
38965     which can conflict with char $ac_func (); below.
38966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38967     <limits.h> exists even on freestanding compilers.  */
38968
38969 #ifdef __STDC__
38970 # include <limits.h>
38971 #else
38972 # include <assert.h>
38973 #endif
38974
38975 #undef $ac_func
38976
38977 /* Override any gcc2 internal prototype to avoid an error.  */
38978 #ifdef __cplusplus
38979 extern "C"
38980 {
38981 #endif
38982 /* We use char because int might match the return type of a gcc2
38983    builtin and then its argument prototype would still apply.  */
38984 char $ac_func ();
38985 /* The GNU C library defines this for functions which it implements
38986     to always fail with ENOSYS.  Some functions are actually named
38987     something starting with __ and the normal name is an alias.  */
38988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38989 choke me
38990 #else
38991 char (*f) () = $ac_func;
38992 #endif
38993 #ifdef __cplusplus
38994 }
38995 #endif
38996
38997 int
38998 main ()
38999 {
39000 return f != $ac_func;
39001   ;
39002   return 0;
39003 }
39004 _ACEOF
39005 rm -f conftest.$ac_objext conftest$ac_exeext
39006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39007   (eval $ac_link) 2>conftest.er1
39008   ac_status=$?
39009   grep -v '^ *+' conftest.er1 >conftest.err
39010   rm -f conftest.er1
39011   cat conftest.err >&5
39012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013   (exit $ac_status); } &&
39014          { ac_try='test -z "$ac_c_werror_flag"
39015                          || test ! -s conftest.err'
39016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39017   (eval $ac_try) 2>&5
39018   ac_status=$?
39019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39020   (exit $ac_status); }; } &&
39021          { ac_try='test -s conftest$ac_exeext'
39022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39023   (eval $ac_try) 2>&5
39024   ac_status=$?
39025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39026   (exit $ac_status); }; }; then
39027   eval "$as_ac_var=yes"
39028 else
39029   echo "$as_me: failed program was:" >&5
39030 sed 's/^/| /' conftest.$ac_ext >&5
39031
39032 eval "$as_ac_var=no"
39033 fi
39034 rm -f conftest.err conftest.$ac_objext \
39035       conftest$ac_exeext conftest.$ac_ext
39036 fi
39037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39039 if test `eval echo '${'$as_ac_var'}'` = yes; then
39040   cat >>confdefs.h <<_ACEOF
39041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39042 _ACEOF
39043
39044 fi
39045 done
39046
39047         if test "$ac_cv_func_getpeerucred" != yes ; then
39048                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39049 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39050 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39051   echo $ECHO_N "(cached) $ECHO_C" >&6
39052 else
39053   cat >conftest.$ac_ext <<_ACEOF
39054 /* confdefs.h.  */
39055 _ACEOF
39056 cat confdefs.h >>conftest.$ac_ext
39057 cat >>conftest.$ac_ext <<_ACEOF
39058 /* end confdefs.h.  */
39059 $ac_includes_default
39060 #ifdef HAVE_SYS_SOCKET_H
39061 #include <sys/socket.h>
39062 #endif
39063
39064 int
39065 main ()
39066 {
39067 static struct msghdr ac_aggr;
39068 if (ac_aggr.msg_accrightslen)
39069 return 0;
39070   ;
39071   return 0;
39072 }
39073 _ACEOF
39074 rm -f conftest.$ac_objext
39075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39076   (eval $ac_compile) 2>conftest.er1
39077   ac_status=$?
39078   grep -v '^ *+' conftest.er1 >conftest.err
39079   rm -f conftest.er1
39080   cat conftest.err >&5
39081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082   (exit $ac_status); } &&
39083          { ac_try='test -z "$ac_c_werror_flag"
39084                          || test ! -s conftest.err'
39085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39086   (eval $ac_try) 2>&5
39087   ac_status=$?
39088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39089   (exit $ac_status); }; } &&
39090          { ac_try='test -s conftest.$ac_objext'
39091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39092   (eval $ac_try) 2>&5
39093   ac_status=$?
39094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39095   (exit $ac_status); }; }; then
39096   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39097 else
39098   echo "$as_me: failed program was:" >&5
39099 sed 's/^/| /' conftest.$ac_ext >&5
39100
39101 cat >conftest.$ac_ext <<_ACEOF
39102 /* confdefs.h.  */
39103 _ACEOF
39104 cat confdefs.h >>conftest.$ac_ext
39105 cat >>conftest.$ac_ext <<_ACEOF
39106 /* end confdefs.h.  */
39107 $ac_includes_default
39108 #ifdef HAVE_SYS_SOCKET_H
39109 #include <sys/socket.h>
39110 #endif
39111
39112 int
39113 main ()
39114 {
39115 static struct msghdr ac_aggr;
39116 if (sizeof ac_aggr.msg_accrightslen)
39117 return 0;
39118   ;
39119   return 0;
39120 }
39121 _ACEOF
39122 rm -f conftest.$ac_objext
39123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39124   (eval $ac_compile) 2>conftest.er1
39125   ac_status=$?
39126   grep -v '^ *+' conftest.er1 >conftest.err
39127   rm -f conftest.er1
39128   cat conftest.err >&5
39129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130   (exit $ac_status); } &&
39131          { ac_try='test -z "$ac_c_werror_flag"
39132                          || test ! -s conftest.err'
39133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39134   (eval $ac_try) 2>&5
39135   ac_status=$?
39136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39137   (exit $ac_status); }; } &&
39138          { ac_try='test -s conftest.$ac_objext'
39139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39140   (eval $ac_try) 2>&5
39141   ac_status=$?
39142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143   (exit $ac_status); }; }; then
39144   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39145 else
39146   echo "$as_me: failed program was:" >&5
39147 sed 's/^/| /' conftest.$ac_ext >&5
39148
39149 ac_cv_member_struct_msghdr_msg_accrightslen=no
39150 fi
39151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39152 fi
39153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39154 fi
39155 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39156 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39157 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39158
39159 cat >>confdefs.h <<_ACEOF
39160 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39161 _ACEOF
39162
39163
39164 fi
39165
39166                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39167                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39168 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39169 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39170   echo $ECHO_N "(cached) $ECHO_C" >&6
39171 else
39172   cat >conftest.$ac_ext <<_ACEOF
39173 /* confdefs.h.  */
39174 _ACEOF
39175 cat confdefs.h >>conftest.$ac_ext
39176 cat >>conftest.$ac_ext <<_ACEOF
39177 /* end confdefs.h.  */
39178 $ac_includes_default
39179 #ifdef HAVE_SYS_SOCKET_H
39180 #include <sys/socket.h>
39181 #endif
39182
39183 int
39184 main ()
39185 {
39186 static struct msghdr ac_aggr;
39187 if (ac_aggr.msg_control)
39188 return 0;
39189   ;
39190   return 0;
39191 }
39192 _ACEOF
39193 rm -f conftest.$ac_objext
39194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39195   (eval $ac_compile) 2>conftest.er1
39196   ac_status=$?
39197   grep -v '^ *+' conftest.er1 >conftest.err
39198   rm -f conftest.er1
39199   cat conftest.err >&5
39200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39201   (exit $ac_status); } &&
39202          { ac_try='test -z "$ac_c_werror_flag"
39203                          || test ! -s conftest.err'
39204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39205   (eval $ac_try) 2>&5
39206   ac_status=$?
39207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39208   (exit $ac_status); }; } &&
39209          { ac_try='test -s conftest.$ac_objext'
39210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39211   (eval $ac_try) 2>&5
39212   ac_status=$?
39213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214   (exit $ac_status); }; }; then
39215   ac_cv_member_struct_msghdr_msg_control=yes
39216 else
39217   echo "$as_me: failed program was:" >&5
39218 sed 's/^/| /' conftest.$ac_ext >&5
39219
39220 cat >conftest.$ac_ext <<_ACEOF
39221 /* confdefs.h.  */
39222 _ACEOF
39223 cat confdefs.h >>conftest.$ac_ext
39224 cat >>conftest.$ac_ext <<_ACEOF
39225 /* end confdefs.h.  */
39226 $ac_includes_default
39227 #ifdef HAVE_SYS_SOCKET_H
39228 #include <sys/socket.h>
39229 #endif
39230
39231 int
39232 main ()
39233 {
39234 static struct msghdr ac_aggr;
39235 if (sizeof ac_aggr.msg_control)
39236 return 0;
39237   ;
39238   return 0;
39239 }
39240 _ACEOF
39241 rm -f conftest.$ac_objext
39242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39243   (eval $ac_compile) 2>conftest.er1
39244   ac_status=$?
39245   grep -v '^ *+' conftest.er1 >conftest.err
39246   rm -f conftest.er1
39247   cat conftest.err >&5
39248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249   (exit $ac_status); } &&
39250          { ac_try='test -z "$ac_c_werror_flag"
39251                          || test ! -s conftest.err'
39252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39253   (eval $ac_try) 2>&5
39254   ac_status=$?
39255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256   (exit $ac_status); }; } &&
39257          { ac_try='test -s conftest.$ac_objext'
39258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39259   (eval $ac_try) 2>&5
39260   ac_status=$?
39261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262   (exit $ac_status); }; }; then
39263   ac_cv_member_struct_msghdr_msg_control=yes
39264 else
39265   echo "$as_me: failed program was:" >&5
39266 sed 's/^/| /' conftest.$ac_ext >&5
39267
39268 ac_cv_member_struct_msghdr_msg_control=no
39269 fi
39270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39271 fi
39272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39273 fi
39274 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39275 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39276 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39277
39278 cat >>confdefs.h <<_ACEOF
39279 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39280 _ACEOF
39281
39282
39283 fi
39284
39285                 fi
39286         fi
39287         LIBSRCS="$LIBSRCS getpeereid.c"
39288 fi
39289
39290 if test "$ac_cv_func_snprintf" != yes ||
39291    test "$ac_cv_func_vsnprintf" != yes; then
39292         if test "$ac_cv_func_snprintf" != yes; then
39293
39294 cat >>confdefs.h <<\_ACEOF
39295 #define snprintf ber_pvt_snprintf
39296 _ACEOF
39297
39298         fi
39299         if test "$ac_cv_func_vsnprintf" != yes; then
39300
39301 cat >>confdefs.h <<\_ACEOF
39302 #define vsnprintf ber_pvt_vsnprintf
39303 _ACEOF
39304
39305         fi
39306 fi
39307
39308
39309 if test "$ol_enable_slapi" != no ; then
39310
39311 for ac_header in ltdl.h
39312 do
39313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39315   echo "$as_me:$LINENO: checking for $ac_header" >&5
39316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39318   echo $ECHO_N "(cached) $ECHO_C" >&6
39319 fi
39320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39322 else
39323   # Is the header compilable?
39324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39326 cat >conftest.$ac_ext <<_ACEOF
39327 /* confdefs.h.  */
39328 _ACEOF
39329 cat confdefs.h >>conftest.$ac_ext
39330 cat >>conftest.$ac_ext <<_ACEOF
39331 /* end confdefs.h.  */
39332 $ac_includes_default
39333 #include <$ac_header>
39334 _ACEOF
39335 rm -f conftest.$ac_objext
39336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39337   (eval $ac_compile) 2>conftest.er1
39338   ac_status=$?
39339   grep -v '^ *+' conftest.er1 >conftest.err
39340   rm -f conftest.er1
39341   cat conftest.err >&5
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); } &&
39344          { ac_try='test -z "$ac_c_werror_flag"
39345                          || test ! -s conftest.err'
39346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39347   (eval $ac_try) 2>&5
39348   ac_status=$?
39349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350   (exit $ac_status); }; } &&
39351          { ac_try='test -s conftest.$ac_objext'
39352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353   (eval $ac_try) 2>&5
39354   ac_status=$?
39355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356   (exit $ac_status); }; }; then
39357   ac_header_compiler=yes
39358 else
39359   echo "$as_me: failed program was:" >&5
39360 sed 's/^/| /' conftest.$ac_ext >&5
39361
39362 ac_header_compiler=no
39363 fi
39364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39366 echo "${ECHO_T}$ac_header_compiler" >&6
39367
39368 # Is the header present?
39369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39371 cat >conftest.$ac_ext <<_ACEOF
39372 /* confdefs.h.  */
39373 _ACEOF
39374 cat confdefs.h >>conftest.$ac_ext
39375 cat >>conftest.$ac_ext <<_ACEOF
39376 /* end confdefs.h.  */
39377 #include <$ac_header>
39378 _ACEOF
39379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39381   ac_status=$?
39382   grep -v '^ *+' conftest.er1 >conftest.err
39383   rm -f conftest.er1
39384   cat conftest.err >&5
39385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386   (exit $ac_status); } >/dev/null; then
39387   if test -s conftest.err; then
39388     ac_cpp_err=$ac_c_preproc_warn_flag
39389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39390   else
39391     ac_cpp_err=
39392   fi
39393 else
39394   ac_cpp_err=yes
39395 fi
39396 if test -z "$ac_cpp_err"; then
39397   ac_header_preproc=yes
39398 else
39399   echo "$as_me: failed program was:" >&5
39400 sed 's/^/| /' conftest.$ac_ext >&5
39401
39402   ac_header_preproc=no
39403 fi
39404 rm -f conftest.err conftest.$ac_ext
39405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39406 echo "${ECHO_T}$ac_header_preproc" >&6
39407
39408 # So?  What about this header?
39409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39410   yes:no: )
39411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39415     ac_header_preproc=yes
39416     ;;
39417   no:yes:* )
39418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39430     (
39431       cat <<\_ASBOX
39432 ## --------------------------------------------- ##
39433 ## Report this to <http://www.openldap.org/its/> ##
39434 ## --------------------------------------------- ##
39435 _ASBOX
39436     ) |
39437       sed "s/^/$as_me: WARNING:     /" >&2
39438     ;;
39439 esac
39440 echo "$as_me:$LINENO: checking for $ac_header" >&5
39441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39443   echo $ECHO_N "(cached) $ECHO_C" >&6
39444 else
39445   eval "$as_ac_Header=\$ac_header_preproc"
39446 fi
39447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39449
39450 fi
39451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39452   cat >>confdefs.h <<_ACEOF
39453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39454 _ACEOF
39455
39456 fi
39457
39458 done
39459
39460
39461         if test $ac_cv_header_ltdl_h != yes ; then
39462                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39463 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
39464    { (exit 1); exit 1; }; }
39465         fi
39466         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
39467 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
39468 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
39469   echo $ECHO_N "(cached) $ECHO_C" >&6
39470 else
39471   ac_check_lib_save_LIBS=$LIBS
39472 LIBS="-lltdl  $LIBS"
39473 cat >conftest.$ac_ext <<_ACEOF
39474 /* confdefs.h.  */
39475 _ACEOF
39476 cat confdefs.h >>conftest.$ac_ext
39477 cat >>conftest.$ac_ext <<_ACEOF
39478 /* end confdefs.h.  */
39479
39480 /* Override any gcc2 internal prototype to avoid an error.  */
39481 #ifdef __cplusplus
39482 extern "C"
39483 #endif
39484 /* We use char because int might match the return type of a gcc2
39485    builtin and then its argument prototype would still apply.  */
39486 char lt_dlinit ();
39487 int
39488 main ()
39489 {
39490 lt_dlinit ();
39491   ;
39492   return 0;
39493 }
39494 _ACEOF
39495 rm -f conftest.$ac_objext conftest$ac_exeext
39496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39497   (eval $ac_link) 2>conftest.er1
39498   ac_status=$?
39499   grep -v '^ *+' conftest.er1 >conftest.err
39500   rm -f conftest.er1
39501   cat conftest.err >&5
39502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39503   (exit $ac_status); } &&
39504          { ac_try='test -z "$ac_c_werror_flag"
39505                          || test ! -s conftest.err'
39506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39507   (eval $ac_try) 2>&5
39508   ac_status=$?
39509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510   (exit $ac_status); }; } &&
39511          { ac_try='test -s conftest$ac_exeext'
39512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513   (eval $ac_try) 2>&5
39514   ac_status=$?
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); }; }; then
39517   ac_cv_lib_ltdl_lt_dlinit=yes
39518 else
39519   echo "$as_me: failed program was:" >&5
39520 sed 's/^/| /' conftest.$ac_ext >&5
39521
39522 ac_cv_lib_ltdl_lt_dlinit=no
39523 fi
39524 rm -f conftest.err conftest.$ac_objext \
39525       conftest$ac_exeext conftest.$ac_ext
39526 LIBS=$ac_check_lib_save_LIBS
39527 fi
39528 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
39529 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
39530 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
39531
39532                 SLAPI_LIBS=-lltdl
39533                 LIBSLAPI=libslapi.a
39534                 LIBSLAPITOOLS=../libslapi.a
39535
39536 cat >>confdefs.h <<\_ACEOF
39537 #define HAVE_LIBLTDL 1
39538 _ACEOF
39539
39540
39541 else
39542   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
39543 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
39544    { (exit 1); exit 1; }; }
39545 fi
39546
39547
39548
39549 cat >>confdefs.h <<\_ACEOF
39550 #define LDAP_SLAPI 1
39551 _ACEOF
39552
39553 fi
39554
39555 if test "$ol_enable_debug" != no ; then
39556         if test "$ol_enable_debug" = traditional; then
39557
39558 cat >>confdefs.h <<\_ACEOF
39559 #define OLD_DEBUG 1
39560 _ACEOF
39561
39562         fi
39563
39564 cat >>confdefs.h <<\_ACEOF
39565 #define LDAP_DEBUG 1
39566 _ACEOF
39567
39568 fi
39569 if test "$ol_enable_syslog" = yes ; then
39570
39571 cat >>confdefs.h <<\_ACEOF
39572 #define LDAP_SYSLOG 1
39573 _ACEOF
39574
39575 fi
39576 if test "$ol_enable_proctitle" != no ; then
39577
39578 cat >>confdefs.h <<\_ACEOF
39579 #define LDAP_PROCTITLE 1
39580 _ACEOF
39581
39582 fi
39583 if test "$ol_enable_referrals" != no ; then
39584
39585 cat >>confdefs.h <<\_ACEOF
39586 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
39587 _ACEOF
39588
39589 fi
39590 if test "$ol_enable_local" != no; then
39591
39592 cat >>confdefs.h <<\_ACEOF
39593 #define LDAP_PF_LOCAL 1
39594 _ACEOF
39595
39596 fi
39597 if test "$ol_link_ipv6" != no; then
39598
39599 cat >>confdefs.h <<\_ACEOF
39600 #define LDAP_PF_INET6 1
39601 _ACEOF
39602
39603 fi
39604 if test "$ol_enable_cleartext" != no ; then
39605
39606 cat >>confdefs.h <<\_ACEOF
39607 #define SLAPD_CLEARTEXT 1
39608 _ACEOF
39609
39610 fi
39611 if test "$ol_enable_crypt" != no ; then
39612
39613 cat >>confdefs.h <<\_ACEOF
39614 #define SLAPD_CRYPT 1
39615 _ACEOF
39616
39617 fi
39618 if test "$ol_link_spasswd" != no ; then
39619
39620 cat >>confdefs.h <<\_ACEOF
39621 #define SLAPD_SPASSWD 1
39622 _ACEOF
39623
39624 fi
39625 if test "$ol_enable_rlookups" != no ; then
39626
39627 cat >>confdefs.h <<\_ACEOF
39628 #define SLAPD_RLOOKUPS 1
39629 _ACEOF
39630
39631 fi
39632 if test "$ol_enable_aci" != no ; then
39633         if test $ol_enable_dynacl = no ; then
39634                 ol_enable_dynacl=yes
39635                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
39636 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
39637         fi
39638         if test "$ol_enable_aci" = mod ; then
39639                 MFLAG=SLAPD_MOD_DYNAMIC
39640                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
39641 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
39642    { (exit 1); exit 1; }; }
39643         else
39644                 MFLAG=SLAPD_MOD_STATIC
39645         fi
39646         WITH_ACI_ENABLED=$ol_enable_aci
39647
39648 cat >>confdefs.h <<_ACEOF
39649 #define SLAPD_ACI_ENABLED $MFLAG
39650 _ACEOF
39651
39652 else
39653         WITH_ACI_ENABLED=no
39654 fi
39655 if test "$ol_enable_dynacl" != no ; then
39656
39657 cat >>confdefs.h <<\_ACEOF
39658 #define SLAP_DYNACL 1
39659 _ACEOF
39660
39661 fi
39662
39663 if test "$ol_link_modules" != no ; then
39664
39665 cat >>confdefs.h <<\_ACEOF
39666 #define SLAPD_MODULES 1
39667 _ACEOF
39668
39669         BUILD_SLAPD=yes
39670         SLAPD_MODULES_LDFLAGS="-dlopen self"
39671 fi
39672
39673
39674 cat >>confdefs.h <<\_ACEOF
39675 #define SLAPD_MOD_STATIC 1
39676 _ACEOF
39677
39678
39679 cat >>confdefs.h <<\_ACEOF
39680 #define SLAPD_MOD_DYNAMIC 2
39681 _ACEOF
39682
39683
39684 if test "$ol_enable_monitor" != no ; then
39685         BUILD_SLAPD=yes
39686         BUILD_MONITOR=$ol_enable_monitor
39687         if test "$ol_enable_monitor" = mod ; then
39688                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
39689                 MFLAG=SLAPD_MOD_DYNAMIC
39690         else
39691                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
39692                 MFLAG=SLAPD_MOD_STATIC
39693         fi
39694
39695 cat >>confdefs.h <<_ACEOF
39696 #define SLAPD_MONITOR $MFLAG
39697 _ACEOF
39698
39699 fi
39700
39701 if test "$ol_enable_bdb" != no ; then
39702         BUILD_SLAPD=yes
39703         BUILD_BDB=$ol_enable_bdb
39704         if test "$ol_enable_bdb" = mod ; then
39705                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
39706                 MFLAG=SLAPD_MOD_DYNAMIC
39707         else
39708                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
39709                 MFLAG=SLAPD_MOD_STATIC
39710         fi
39711
39712 cat >>confdefs.h <<_ACEOF
39713 #define SLAPD_BDB $MFLAG
39714 _ACEOF
39715
39716 fi
39717
39718 if test "$ol_enable_dnssrv" != no ; then
39719         BUILD_SLAPD=yes
39720         BUILD_DNSSRV=$ol_enable_dnssrv
39721         if test "$ol_enable_dnssrv" = mod ; then
39722                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
39723                 MFLAG=SLAPD_MOD_DYNAMIC
39724         else
39725                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
39726                 MFLAG=SLAPD_MOD_STATIC
39727         fi
39728
39729 cat >>confdefs.h <<_ACEOF
39730 #define SLAPD_DNSSRV $MFLAG
39731 _ACEOF
39732
39733 fi
39734
39735 if test "$ol_enable_hdb" != no ; then
39736         BUILD_SLAPD=yes
39737         BUILD_HDB=$ol_enable_hdb
39738         if test "$ol_enable_hdb" = mod ; then
39739                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
39740                 MFLAG=SLAPD_MOD_DYNAMIC
39741         else
39742                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
39743                 MFLAG=SLAPD_MOD_STATIC
39744         fi
39745
39746 cat >>confdefs.h <<_ACEOF
39747 #define SLAPD_HDB $MFLAG
39748 _ACEOF
39749
39750 fi
39751
39752 if test "$ol_enable_ldap" != no ; then
39753         BUILD_SLAPD=yes
39754         BUILD_LDAP=$ol_enable_ldap
39755         if test "$ol_enable_ldap" = mod ; then
39756                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
39757                 MFLAG=SLAPD_MOD_DYNAMIC
39758         else
39759                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
39760                 MFLAG=SLAPD_MOD_STATIC
39761         fi
39762
39763 cat >>confdefs.h <<_ACEOF
39764 #define SLAPD_LDAP $MFLAG
39765 _ACEOF
39766
39767 fi
39768
39769 if test "$ol_enable_meta" != no ; then
39770         BUILD_SLAPD=yes
39771         BUILD_META=$ol_enable_meta
39772         BUILD_REWRITE=yes
39773         if test "$ol_enable_meta" = mod ; then
39774                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
39775                 MFLAG=SLAPD_MOD_DYNAMIC
39776         else
39777                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
39778                 MFLAG=SLAPD_MOD_STATIC
39779         fi
39780
39781 cat >>confdefs.h <<_ACEOF
39782 #define SLAPD_META $MFLAG
39783 _ACEOF
39784
39785 fi
39786
39787 if test "$ol_enable_null" != no ; then
39788         BUILD_SLAPD=yes
39789         BUILD_NULL=$ol_enable_null
39790         if test "$ol_enable_null" = mod ; then
39791                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
39792                 MFLAG=SLAPD_MOD_DYNAMIC
39793         else
39794                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
39795                 MFLAG=SLAPD_MOD_STATIC
39796         fi
39797
39798 cat >>confdefs.h <<_ACEOF
39799 #define SLAPD_NULL $MFLAG
39800 _ACEOF
39801
39802 fi
39803
39804 if test "$ol_enable_passwd" != no ; then
39805         BUILD_SLAPD=yes
39806         BUILD_PASSWD=$ol_enable_passwd
39807         if test "$ol_enable_passwd" = mod ; then
39808                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
39809                 MFLAG=SLAPD_MOD_DYNAMIC
39810         else
39811                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
39812                 MFLAG=SLAPD_MOD_STATIC
39813         fi
39814
39815 cat >>confdefs.h <<_ACEOF
39816 #define SLAPD_PASSWD $MFLAG
39817 _ACEOF
39818
39819 fi
39820
39821 if test "$ol_link_perl" != no ; then
39822         BUILD_SLAPD=yes
39823         BUILD_PERL=$ol_enable_perl
39824         if test "$ol_enable_perl" = mod ; then
39825                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
39826                 MFLAG=SLAPD_MOD_DYNAMIC
39827         else
39828                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
39829                 MFLAG=SLAPD_MOD_STATIC
39830         fi
39831
39832 cat >>confdefs.h <<_ACEOF
39833 #define SLAPD_PERL $MFLAG
39834 _ACEOF
39835
39836 fi
39837
39838 if test "$ol_enable_relay" != no ; then
39839         BUILD_SLAPD=yes
39840         BUILD_RELAY=$ol_enable_relay
39841         if test "$ol_enable_relay" = mod ; then
39842                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
39843                 MFLAG=SLAPD_MOD_DYNAMIC
39844         else
39845                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
39846                 MFLAG=SLAPD_MOD_STATIC
39847         fi
39848
39849 cat >>confdefs.h <<_ACEOF
39850 #define SLAPD_RELAY $MFLAG
39851 _ACEOF
39852
39853 fi
39854
39855 if test "$ol_enable_shell" != no ; then
39856         if test "$ol_link_threads" != no ; then
39857                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
39858 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
39859         fi
39860         BUILD_SLAPD=yes
39861         BUILD_SHELL=$ol_enable_shell
39862         if test "$ol_enable_shell" = mod ; then
39863                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
39864                 MFLAG=SLAPD_MOD_DYNAMIC
39865         else
39866                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
39867                 MFLAG=SLAPD_MOD_STATIC
39868         fi
39869
39870 cat >>confdefs.h <<_ACEOF
39871 #define SLAPD_SHELL $MFLAG
39872 _ACEOF
39873
39874 fi
39875
39876 if test "$ol_link_sql" != no ; then
39877         BUILD_SLAPD=yes
39878         BUILD_SQL=$ol_enable_sql
39879         if test "$ol_enable_sql" = mod; then
39880                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
39881                 MFLAG=SLAPD_MOD_DYNAMIC
39882         else
39883                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
39884                 MFLAG=SLAPD_MOD_STATIC
39885         fi
39886
39887 cat >>confdefs.h <<_ACEOF
39888 #define SLAPD_SQL $MFLAG
39889 _ACEOF
39890
39891 fi
39892
39893 if test "$ol_enable_accesslog" != no ; then
39894         BUILD_ACCESSLOG=$ol_enable_accesslog
39895         if test "$ol_enable_accesslog" = mod ; then
39896                 MFLAG=SLAPD_MOD_DYNAMIC
39897                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
39898         else
39899                 MFLAG=SLAPD_MOD_STATIC
39900                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
39901         fi
39902
39903 cat >>confdefs.h <<_ACEOF
39904 #define SLAPD_OVER_ACCESSLOG $MFLAG
39905 _ACEOF
39906
39907 fi
39908
39909 if test "$ol_enable_auditlog" != no ; then
39910         BUILD_AUDITLOG=$ol_enable_auditlog
39911         if test "$ol_enable_auditlog" = mod ; then
39912                 MFLAG=SLAPD_MOD_DYNAMIC
39913                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
39914         else
39915                 MFLAG=SLAPD_MOD_STATIC
39916                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
39917         fi
39918
39919 cat >>confdefs.h <<_ACEOF
39920 #define SLAPD_OVER_AUDITLOG $MFLAG
39921 _ACEOF
39922
39923 fi
39924
39925 if test "$ol_enable_constraint" != no ; then
39926         BUILD_CONSTRAINT=$ol_enable_constraint
39927         if test "$ol_enable_constraint" = mod ; then
39928                 MFLAG=SLAPD_MOD_DYNAMIC
39929                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
39930         else
39931                 MFLAG=SLAPD_MOD_STATIC
39932                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
39933         fi
39934
39935 cat >>confdefs.h <<_ACEOF
39936 #define SLAPD_OVER_CONSTRAINT $MFLAG
39937 _ACEOF
39938
39939 fi
39940
39941 if test "$ol_enable_dds" != no ; then
39942         BUILD_DDS=$ol_enable_dds
39943         if test "$ol_enable_dds" = mod ; then
39944                 MFLAG=SLAPD_MOD_DYNAMIC
39945                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
39946         else
39947                 MFLAG=SLAPD_MOD_STATIC
39948                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
39949         fi
39950
39951 cat >>confdefs.h <<_ACEOF
39952 #define SLAPD_OVER_DDS $MFLAG
39953 _ACEOF
39954
39955 fi
39956
39957 if test "$ol_enable_dyngroup" != no ; then
39958         BUILD_DYNGROUP=$ol_enable_dyngroup
39959         if test "$ol_enable_dyngroup" = mod ; then
39960                 MFLAG=SLAPD_MOD_DYNAMIC
39961                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
39962         else
39963                 MFLAG=SLAPD_MOD_STATIC
39964                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
39965         fi
39966
39967 cat >>confdefs.h <<_ACEOF
39968 #define SLAPD_OVER_DYNGROUP $MFLAG
39969 _ACEOF
39970
39971 fi
39972
39973 if test "$ol_enable_dynlist" != no ; then
39974         BUILD_DYNLIST=$ol_enable_dynlist
39975         if test "$ol_enable_dynlist" = mod ; then
39976                 MFLAG=SLAPD_MOD_DYNAMIC
39977                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
39978         else
39979                 MFLAG=SLAPD_MOD_STATIC
39980                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39981         fi
39982
39983 cat >>confdefs.h <<_ACEOF
39984 #define SLAPD_OVER_DYNLIST $MFLAG
39985 _ACEOF
39986
39987 fi
39988
39989 if test "$ol_enable_ppolicy" != no ; then
39990         BUILD_PPOLICY=$ol_enable_ppolicy
39991         if test "$ol_enable_ppolicy" = mod ; then
39992                 MFLAG=SLAPD_MOD_DYNAMIC
39993                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39994         else
39995                 MFLAG=SLAPD_MOD_STATIC
39996                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39997         fi
39998
39999 cat >>confdefs.h <<_ACEOF
40000 #define SLAPD_OVER_PPOLICY $MFLAG
40001 _ACEOF
40002
40003 fi
40004
40005 if test "$ol_enable_proxycache" != no ; then
40006         BUILD_PROXYCACHE=$ol_enable_proxycache
40007         if test "$ol_enable_proxycache" = mod ; then
40008                 MFLAG=SLAPD_MOD_DYNAMIC
40009                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40010         else
40011                 MFLAG=SLAPD_MOD_STATIC
40012                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40013         fi
40014
40015 cat >>confdefs.h <<_ACEOF
40016 #define SLAPD_OVER_PROXYCACHE $MFLAG
40017 _ACEOF
40018
40019 fi
40020
40021 if test "$ol_enable_refint" != no ; then
40022         BUILD_REFINT=$ol_enable_refint
40023         if test "$ol_enable_refint" = mod ; then
40024                 MFLAG=SLAPD_MOD_DYNAMIC
40025                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40026         else
40027                 MFLAG=SLAPD_MOD_STATIC
40028                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40029         fi
40030
40031 cat >>confdefs.h <<_ACEOF
40032 #define SLAPD_OVER_REFINT $MFLAG
40033 _ACEOF
40034
40035 fi
40036
40037 if test "$ol_enable_retcode" != no ; then
40038         BUILD_RETCODE=$ol_enable_retcode
40039         if test "$ol_enable_retcode" = mod ; then
40040                 MFLAG=SLAPD_MOD_DYNAMIC
40041                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40042         else
40043                 MFLAG=SLAPD_MOD_STATIC
40044                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40045         fi
40046
40047 cat >>confdefs.h <<_ACEOF
40048 #define SLAPD_OVER_RETCODE $MFLAG
40049 _ACEOF
40050
40051 fi
40052
40053 if test "$ol_enable_rwm" != no ; then
40054         BUILD_REWRITE=yes
40055         BUILD_RWM=$ol_enable_rwm
40056         if test "$ol_enable_rwm" = mod ; then
40057                 MFLAG=SLAPD_MOD_DYNAMIC
40058                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40059         else
40060                 MFLAG=SLAPD_MOD_STATIC
40061                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40062         fi
40063
40064 cat >>confdefs.h <<_ACEOF
40065 #define SLAPD_OVER_RWM $MFLAG
40066 _ACEOF
40067
40068 fi
40069
40070 if test "$ol_enable_seqmod" != no ; then
40071         BUILD_SEQMOD=$ol_enable_seqmod
40072         if test "$ol_enable_seqmod" = mod ; then
40073                 MFLAG=SLAPD_MOD_DYNAMIC
40074                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40075         else
40076                 MFLAG=SLAPD_MOD_STATIC
40077                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40078         fi
40079
40080 cat >>confdefs.h <<_ACEOF
40081 #define SLAPD_OVER_SEQMOD $MFLAG
40082 _ACEOF
40083
40084 fi
40085
40086 if test "$ol_enable_syncprov" != no ; then
40087         BUILD_SYNCPROV=$ol_enable_syncprov
40088         if test "$ol_enable_syncprov" = mod ; then
40089                 MFLAG=SLAPD_MOD_DYNAMIC
40090                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40091         else
40092                 MFLAG=SLAPD_MOD_STATIC
40093                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40094         fi
40095
40096 cat >>confdefs.h <<_ACEOF
40097 #define SLAPD_OVER_SYNCPROV $MFLAG
40098 _ACEOF
40099
40100 fi
40101
40102 if test "$ol_enable_translucent" != no ; then
40103         BUILD_TRANSLUCENT=$ol_enable_translucent
40104         if test "$ol_enable_translucent" = mod ; then
40105                 MFLAG=SLAPD_MOD_DYNAMIC
40106                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40107         else
40108                 MFLAG=SLAPD_MOD_STATIC
40109                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40110         fi
40111
40112 cat >>confdefs.h <<_ACEOF
40113 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40114 _ACEOF
40115
40116 fi
40117
40118 if test "$ol_enable_unique" != no ; then
40119         BUILD_UNIQUE=$ol_enable_unique
40120         if test "$ol_enable_unique" = mod ; then
40121                 MFLAG=SLAPD_MOD_DYNAMIC
40122                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40123         else
40124                 MFLAG=SLAPD_MOD_STATIC
40125                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40126         fi
40127
40128 cat >>confdefs.h <<_ACEOF
40129 #define SLAPD_OVER_UNIQUE $MFLAG
40130 _ACEOF
40131
40132 fi
40133
40134 if test "$ol_enable_valsort" != no ; then
40135         BUILD_VALSORT=$ol_enable_valsort
40136         if test "$ol_enable_valsort" = mod ; then
40137                 MFLAG=SLAPD_MOD_DYNAMIC
40138                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40139         else
40140                 MFLAG=SLAPD_MOD_STATIC
40141                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40142         fi
40143
40144 cat >>confdefs.h <<_ACEOF
40145 #define SLAPD_OVER_VALSORT $MFLAG
40146 _ACEOF
40147
40148 fi
40149
40150 if test "$ol_enable_slurpd" != no &&
40151    test "$ol_link_threads" != no &&
40152    test $BUILD_SLAPD = yes ; then
40153         BUILD_SLURPD=yes
40154 fi
40155
40156 if test "$ol_enable_rewrite" != no ; then
40157
40158 cat >>confdefs.h <<\_ACEOF
40159 #define ENABLE_REWRITE 1
40160 _ACEOF
40161
40162         BUILD_REWRITE=yes
40163 fi
40164
40165 if test "$ol_enable_slapi" != no ; then
40166
40167 cat >>confdefs.h <<\_ACEOF
40168 #define ENABLE_SLAPI 1
40169 _ACEOF
40170
40171         BUILD_SLAPI=yes
40172         SLAPD_SLAPI_DEPEND=libslapi.a
40173 fi
40174
40175
40176
40177 if test "$ac_cv_mingw32" = yes ; then
40178         PLAT=NT
40179         SLAPD_MODULES_LDFLAGS=
40180 else
40181         PLAT=UNIX
40182 fi
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231
40232
40233
40234
40235
40236
40237
40238
40239
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249
40250
40251
40252
40253
40254
40255
40256
40257
40258
40259
40260
40261
40262
40263
40264
40265
40266
40267
40268 # Check whether --with-xxinstall or --without-xxinstall was given.
40269 if test "${with_xxinstall+set}" = set; then
40270   withval="$with_xxinstall"
40271
40272 fi;
40273
40274
40275                                                                                                                                                                                                                                                                                                                                                                                                       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-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"
40276
40277
40278           ac_config_commands="$ac_config_commands default"
40279
40280
40281
40282 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40283 # Let make expand exec_prefix.
40284 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40285
40286 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40287 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40288 # trailing colons and then remove the whole line if VPATH becomes empty
40289 # (actually we leave an empty line to preserve line numbers).
40290 if test "x$srcdir" = x.; then
40291   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40292 s/:*\$(srcdir):*/:/;
40293 s/:*\${srcdir}:*/:/;
40294 s/:*@srcdir@:*/:/;
40295 s/^\([^=]*=[     ]*\):*/\1/;
40296 s/:*$//;
40297 s/^[^=]*=[       ]*$//;
40298 }'
40299 fi
40300
40301 DEFS=-DHAVE_CONFIG_H
40302
40303 ac_libobjs=
40304 ac_ltlibobjs=
40305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40306   # 1. Remove the extension, and $U if already installed.
40307   ac_i=`echo "$ac_i" |
40308          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40309   # 2. Add them.
40310   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40311   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40312 done
40313 LIBOBJS=$ac_libobjs
40314
40315 LTLIBOBJS=$ac_ltlibobjs
40316
40317
40318 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40319   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40320 Usually this means the macro was only invoked conditionally." >&5
40321 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40322 Usually this means the macro was only invoked conditionally." >&2;}
40323    { (exit 1); exit 1; }; }
40324 fi
40325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40326   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40327 Usually this means the macro was only invoked conditionally." >&5
40328 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40329 Usually this means the macro was only invoked conditionally." >&2;}
40330    { (exit 1); exit 1; }; }
40331 fi
40332 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40333   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40334 Usually this means the macro was only invoked conditionally." >&5
40335 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40336 Usually this means the macro was only invoked conditionally." >&2;}
40337    { (exit 1); exit 1; }; }
40338 fi
40339
40340 : ${CONFIG_STATUS=./config.status}
40341 ac_clean_files_save=$ac_clean_files
40342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40343 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40344 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40345 cat >$CONFIG_STATUS <<_ACEOF
40346 #! $SHELL
40347 # Generated by $as_me.
40348 # Run this file to recreate the current configuration.
40349 # Compiler output produced by configure, useful for debugging
40350 # configure, is in config.log if it exists.
40351
40352 debug=false
40353 ac_cs_recheck=false
40354 ac_cs_silent=false
40355 SHELL=\${CONFIG_SHELL-$SHELL}
40356 _ACEOF
40357
40358 cat >>$CONFIG_STATUS <<\_ACEOF
40359 ## --------------------- ##
40360 ## M4sh Initialization.  ##
40361 ## --------------------- ##
40362
40363 # Be Bourne compatible
40364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40365   emulate sh
40366   NULLCMD=:
40367   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40368   # is contrary to our usage.  Disable this feature.
40369   alias -g '${1+"$@"}'='"$@"'
40370 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40371   set -o posix
40372 fi
40373 DUALCASE=1; export DUALCASE # for MKS sh
40374
40375 # Support unset when possible.
40376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40377   as_unset=unset
40378 else
40379   as_unset=false
40380 fi
40381
40382
40383 # Work around bugs in pre-3.0 UWIN ksh.
40384 $as_unset ENV MAIL MAILPATH
40385 PS1='$ '
40386 PS2='> '
40387 PS4='+ '
40388
40389 # NLS nuisances.
40390 for as_var in \
40391   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40392   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40393   LC_TELEPHONE LC_TIME
40394 do
40395   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40396     eval $as_var=C; export $as_var
40397   else
40398     $as_unset $as_var
40399   fi
40400 done
40401
40402 # Required to use basename.
40403 if expr a : '\(a\)' >/dev/null 2>&1; then
40404   as_expr=expr
40405 else
40406   as_expr=false
40407 fi
40408
40409 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40410   as_basename=basename
40411 else
40412   as_basename=false
40413 fi
40414
40415
40416 # Name of the executable.
40417 as_me=`$as_basename "$0" ||
40418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40419          X"$0" : 'X\(//\)$' \| \
40420          X"$0" : 'X\(/\)$' \| \
40421          .     : '\(.\)' 2>/dev/null ||
40422 echo X/"$0" |
40423     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40424           /^X\/\(\/\/\)$/{ s//\1/; q; }
40425           /^X\/\(\/\).*/{ s//\1/; q; }
40426           s/.*/./; q'`
40427
40428
40429 # PATH needs CR, and LINENO needs CR and PATH.
40430 # Avoid depending upon Character Ranges.
40431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40434 as_cr_digits='0123456789'
40435 as_cr_alnum=$as_cr_Letters$as_cr_digits
40436
40437 # The user is always right.
40438 if test "${PATH_SEPARATOR+set}" != set; then
40439   echo "#! /bin/sh" >conf$$.sh
40440   echo  "exit 0"   >>conf$$.sh
40441   chmod +x conf$$.sh
40442   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40443     PATH_SEPARATOR=';'
40444   else
40445     PATH_SEPARATOR=:
40446   fi
40447   rm -f conf$$.sh
40448 fi
40449
40450
40451   as_lineno_1=$LINENO
40452   as_lineno_2=$LINENO
40453   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40454   test "x$as_lineno_1" != "x$as_lineno_2" &&
40455   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
40456   # Find who we are.  Look in the path if we contain no path at all
40457   # relative or not.
40458   case $0 in
40459     *[\\/]* ) as_myself=$0 ;;
40460     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40461 for as_dir in $PATH
40462 do
40463   IFS=$as_save_IFS
40464   test -z "$as_dir" && as_dir=.
40465   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40466 done
40467
40468        ;;
40469   esac
40470   # We did not find ourselves, most probably we were run as `sh COMMAND'
40471   # in which case we are not to be found in the path.
40472   if test "x$as_myself" = x; then
40473     as_myself=$0
40474   fi
40475   if test ! -f "$as_myself"; then
40476     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40477 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40478    { (exit 1); exit 1; }; }
40479   fi
40480   case $CONFIG_SHELL in
40481   '')
40482     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40483 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40484 do
40485   IFS=$as_save_IFS
40486   test -z "$as_dir" && as_dir=.
40487   for as_base in sh bash ksh sh5; do
40488          case $as_dir in
40489          /*)
40490            if ("$as_dir/$as_base" -c '
40491   as_lineno_1=$LINENO
40492   as_lineno_2=$LINENO
40493   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40494   test "x$as_lineno_1" != "x$as_lineno_2" &&
40495   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
40496              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40497              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40498              CONFIG_SHELL=$as_dir/$as_base
40499              export CONFIG_SHELL
40500              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40501            fi;;
40502          esac
40503        done
40504 done
40505 ;;
40506   esac
40507
40508   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40509   # uniformly replaced by the line number.  The first 'sed' inserts a
40510   # line-number line before each line; the second 'sed' does the real
40511   # work.  The second script uses 'N' to pair each line-number line
40512   # with the numbered line, and appends trailing '-' during
40513   # substitution so that $LINENO is not a special case at line end.
40514   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40515   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
40516   sed '=' <$as_myself |
40517     sed '
40518       N
40519       s,$,-,
40520       : loop
40521       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40522       t loop
40523       s,-$,,
40524       s,^['$as_cr_digits']*\n,,
40525     ' >$as_me.lineno &&
40526   chmod +x $as_me.lineno ||
40527     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40528 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40529    { (exit 1); exit 1; }; }
40530
40531   # Don't try to exec as it changes $[0], causing all sort of problems
40532   # (the dirname of $[0] is not the place where we might find the
40533   # original and so on.  Autoconf is especially sensible to this).
40534   . ./$as_me.lineno
40535   # Exit status is that of the last command.
40536   exit
40537 }
40538
40539
40540 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40541   *c*,-n*) ECHO_N= ECHO_C='
40542 ' ECHO_T='      ' ;;
40543   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40544   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
40545 esac
40546
40547 if expr a : '\(a\)' >/dev/null 2>&1; then
40548   as_expr=expr
40549 else
40550   as_expr=false
40551 fi
40552
40553 rm -f conf$$ conf$$.exe conf$$.file
40554 echo >conf$$.file
40555 if ln -s conf$$.file conf$$ 2>/dev/null; then
40556   # We could just check for DJGPP; but this test a) works b) is more generic
40557   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40558   if test -f conf$$.exe; then
40559     # Don't use ln at all; we don't have any links
40560     as_ln_s='cp -p'
40561   else
40562     as_ln_s='ln -s'
40563   fi
40564 elif ln conf$$.file conf$$ 2>/dev/null; then
40565   as_ln_s=ln
40566 else
40567   as_ln_s='cp -p'
40568 fi
40569 rm -f conf$$ conf$$.exe conf$$.file
40570
40571 if mkdir -p . 2>/dev/null; then
40572   as_mkdir_p=:
40573 else
40574   test -d ./-p && rmdir ./-p
40575   as_mkdir_p=false
40576 fi
40577
40578 as_executable_p="test -f"
40579
40580 # Sed expression to map a string onto a valid CPP name.
40581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40582
40583 # Sed expression to map a string onto a valid variable name.
40584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40585
40586
40587 # IFS
40588 # We need space, tab and new line, in precisely that order.
40589 as_nl='
40590 '
40591 IFS="   $as_nl"
40592
40593 # CDPATH.
40594 $as_unset CDPATH
40595
40596 exec 6>&1
40597
40598 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40599 # report actual input values of CONFIG_FILES etc. instead of their
40600 # values after options handling.  Logging --version etc. is OK.
40601 exec 5>>config.log
40602 {
40603   echo
40604   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40605 ## Running $as_me. ##
40606 _ASBOX
40607 } >&5
40608 cat >&5 <<_CSEOF
40609
40610 This file was extended by $as_me, which was
40611 generated by GNU Autoconf 2.59.  Invocation command line was
40612
40613   CONFIG_FILES    = $CONFIG_FILES
40614   CONFIG_HEADERS  = $CONFIG_HEADERS
40615   CONFIG_LINKS    = $CONFIG_LINKS
40616   CONFIG_COMMANDS = $CONFIG_COMMANDS
40617   $ $0 $@
40618
40619 _CSEOF
40620 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40621 echo >&5
40622 _ACEOF
40623
40624 # Files that config.status was made for.
40625 if test -n "$ac_config_files"; then
40626   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40627 fi
40628
40629 if test -n "$ac_config_headers"; then
40630   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40631 fi
40632
40633 if test -n "$ac_config_links"; then
40634   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40635 fi
40636
40637 if test -n "$ac_config_commands"; then
40638   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40639 fi
40640
40641 cat >>$CONFIG_STATUS <<\_ACEOF
40642
40643 ac_cs_usage="\
40644 \`$as_me' instantiates files from templates according to the
40645 current configuration.
40646
40647 Usage: $0 [OPTIONS] [FILE]...
40648
40649   -h, --help       print this help, then exit
40650   -V, --version    print version number, then exit
40651   -q, --quiet      do not print progress messages
40652   -d, --debug      don't remove temporary files
40653       --recheck    update $as_me by reconfiguring in the same conditions
40654   --file=FILE[:TEMPLATE]
40655                    instantiate the configuration file FILE
40656   --header=FILE[:TEMPLATE]
40657                    instantiate the configuration header FILE
40658
40659 Configuration files:
40660 $config_files
40661
40662 Configuration headers:
40663 $config_headers
40664
40665 Configuration commands:
40666 $config_commands
40667
40668 Report bugs to <bug-autoconf@gnu.org>."
40669 _ACEOF
40670
40671 cat >>$CONFIG_STATUS <<_ACEOF
40672 ac_cs_version="\\
40673 config.status
40674 configured by $0, generated by GNU Autoconf 2.59,
40675   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40676
40677 Copyright (C) 2003 Free Software Foundation, Inc.
40678 This config.status script is free software; the Free Software Foundation
40679 gives unlimited permission to copy, distribute and modify it."
40680 srcdir=$srcdir
40681 INSTALL="$INSTALL"
40682 _ACEOF
40683
40684 cat >>$CONFIG_STATUS <<\_ACEOF
40685 # If no file are specified by the user, then we need to provide default
40686 # value.  By we need to know if files were specified by the user.
40687 ac_need_defaults=:
40688 while test $# != 0
40689 do
40690   case $1 in
40691   --*=*)
40692     ac_option=`expr "x$1" : 'x\([^=]*\)='`
40693     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40694     ac_shift=:
40695     ;;
40696   -*)
40697     ac_option=$1
40698     ac_optarg=$2
40699     ac_shift=shift
40700     ;;
40701   *) # This is not an option, so the user has probably given explicit
40702      # arguments.
40703      ac_option=$1
40704      ac_need_defaults=false;;
40705   esac
40706
40707   case $ac_option in
40708   # Handling of the options.
40709 _ACEOF
40710 cat >>$CONFIG_STATUS <<\_ACEOF
40711   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40712     ac_cs_recheck=: ;;
40713   --version | --vers* | -V )
40714     echo "$ac_cs_version"; exit 0 ;;
40715   --he | --h)
40716     # Conflict between --help and --header
40717     { { echo "$as_me:$LINENO: error: ambiguous option: $1
40718 Try \`$0 --help' for more information." >&5
40719 echo "$as_me: error: ambiguous option: $1
40720 Try \`$0 --help' for more information." >&2;}
40721    { (exit 1); exit 1; }; };;
40722   --help | --hel | -h )
40723     echo "$ac_cs_usage"; exit 0 ;;
40724   --debug | --d* | -d )
40725     debug=: ;;
40726   --file | --fil | --fi | --f )
40727     $ac_shift
40728     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40729     ac_need_defaults=false;;
40730   --header | --heade | --head | --hea )
40731     $ac_shift
40732     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40733     ac_need_defaults=false;;
40734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40735   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40736     ac_cs_silent=: ;;
40737
40738   # This is an error.
40739   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40740 Try \`$0 --help' for more information." >&5
40741 echo "$as_me: error: unrecognized option: $1
40742 Try \`$0 --help' for more information." >&2;}
40743    { (exit 1); exit 1; }; } ;;
40744
40745   *) ac_config_targets="$ac_config_targets $1" ;;
40746
40747   esac
40748   shift
40749 done
40750
40751 ac_configure_extra_args=
40752
40753 if $ac_cs_silent; then
40754   exec 6>/dev/null
40755   ac_configure_extra_args="$ac_configure_extra_args --silent"
40756 fi
40757
40758 _ACEOF
40759 cat >>$CONFIG_STATUS <<_ACEOF
40760 if \$ac_cs_recheck; then
40761   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40762   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40763 fi
40764
40765 _ACEOF
40766
40767 cat >>$CONFIG_STATUS <<_ACEOF
40768 #
40769 # INIT-COMMANDS section.
40770 #
40771
40772 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40773
40774 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
40775 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
40776
40777
40778 _ACEOF
40779
40780
40781
40782 cat >>$CONFIG_STATUS <<\_ACEOF
40783 for ac_config_target in $ac_config_targets
40784 do
40785   case "$ac_config_target" in
40786   # Handling of arguments.
40787   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
40788   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
40789   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
40790   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
40791   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
40792   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
40793   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
40794   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
40795   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
40796   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
40797   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
40798   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40799   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40800   "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" ;;
40801   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40802   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40803   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40804   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
40805   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
40806   "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" ;;
40807   "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" ;;
40808   "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" ;;
40809   "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" ;;
40810   "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" ;;
40811   "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" ;;
40812   "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" ;;
40813   "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" ;;
40814   "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" ;;
40815   "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" ;;
40816   "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" ;;
40817   "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" ;;
40818   "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" ;;
40819   "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" ;;
40820   "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" ;;
40821   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
40822   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
40823   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
40824   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
40825   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
40826   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40827   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40828   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
40829   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
40830   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
40831   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40833    { (exit 1); exit 1; }; };;
40834   esac
40835 done
40836
40837 # If the user did not use the arguments to specify the items to instantiate,
40838 # then the envvar interface is used.  Set only those that are not.
40839 # We use the long form for the default assignment because of an extremely
40840 # bizarre bug on SunOS 4.1.3.
40841 if $ac_need_defaults; then
40842   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40843   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40844   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40845 fi
40846
40847 # Have a temporary directory for convenience.  Make it in the build tree
40848 # simply because there is no reason to put it here, and in addition,
40849 # creating and moving files from /tmp can sometimes cause problems.
40850 # Create a temporary directory, and hook for its removal unless debugging.
40851 $debug ||
40852 {
40853   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40854   trap '{ (exit 1); exit 1; }' 1 2 13 15
40855 }
40856
40857 # Create a (secure) tmp directory for tmp files.
40858
40859 {
40860   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40861   test -n "$tmp" && test -d "$tmp"
40862 }  ||
40863 {
40864   tmp=./confstat$$-$RANDOM
40865   (umask 077 && mkdir $tmp)
40866 } ||
40867 {
40868    echo "$me: cannot create a temporary directory in ." >&2
40869    { (exit 1); exit 1; }
40870 }
40871
40872 _ACEOF
40873
40874 cat >>$CONFIG_STATUS <<_ACEOF
40875
40876 #
40877 # CONFIG_FILES section.
40878 #
40879
40880 # No need to generate the scripts if there are no CONFIG_FILES.
40881 # This happens for instance when ./config.status config.h
40882 if test -n "\$CONFIG_FILES"; then
40883   # Protect against being on the right side of a sed subst in config.status.
40884   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40885    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40886 s,@SHELL@,$SHELL,;t t
40887 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40888 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40889 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40890 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40891 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40892 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40893 s,@exec_prefix@,$exec_prefix,;t t
40894 s,@prefix@,$prefix,;t t
40895 s,@program_transform_name@,$program_transform_name,;t t
40896 s,@bindir@,$bindir,;t t
40897 s,@sbindir@,$sbindir,;t t
40898 s,@libexecdir@,$libexecdir,;t t
40899 s,@datadir@,$datadir,;t t
40900 s,@sysconfdir@,$sysconfdir,;t t
40901 s,@sharedstatedir@,$sharedstatedir,;t t
40902 s,@localstatedir@,$localstatedir,;t t
40903 s,@libdir@,$libdir,;t t
40904 s,@includedir@,$includedir,;t t
40905 s,@oldincludedir@,$oldincludedir,;t t
40906 s,@infodir@,$infodir,;t t
40907 s,@mandir@,$mandir,;t t
40908 s,@build_alias@,$build_alias,;t t
40909 s,@host_alias@,$host_alias,;t t
40910 s,@target_alias@,$target_alias,;t t
40911 s,@DEFS@,$DEFS,;t t
40912 s,@ECHO_C@,$ECHO_C,;t t
40913 s,@ECHO_N@,$ECHO_N,;t t
40914 s,@ECHO_T@,$ECHO_T,;t t
40915 s,@LIBS@,$LIBS,;t t
40916 s,@build@,$build,;t t
40917 s,@build_cpu@,$build_cpu,;t t
40918 s,@build_vendor@,$build_vendor,;t t
40919 s,@build_os@,$build_os,;t t
40920 s,@host@,$host,;t t
40921 s,@host_cpu@,$host_cpu,;t t
40922 s,@host_vendor@,$host_vendor,;t t
40923 s,@host_os@,$host_os,;t t
40924 s,@target@,$target,;t t
40925 s,@target_cpu@,$target_cpu,;t t
40926 s,@target_vendor@,$target_vendor,;t t
40927 s,@target_os@,$target_os,;t t
40928 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40929 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40930 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40931 s,@CYGPATH_W@,$CYGPATH_W,;t t
40932 s,@PACKAGE@,$PACKAGE,;t t
40933 s,@VERSION@,$VERSION,;t t
40934 s,@ACLOCAL@,$ACLOCAL,;t t
40935 s,@AUTOCONF@,$AUTOCONF,;t t
40936 s,@AUTOMAKE@,$AUTOMAKE,;t t
40937 s,@AUTOHEADER@,$AUTOHEADER,;t t
40938 s,@MAKEINFO@,$MAKEINFO,;t t
40939 s,@install_sh@,$install_sh,;t t
40940 s,@STRIP@,$STRIP,;t t
40941 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40942 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40943 s,@mkdir_p@,$mkdir_p,;t t
40944 s,@AWK@,$AWK,;t t
40945 s,@SET_MAKE@,$SET_MAKE,;t t
40946 s,@am__leading_dot@,$am__leading_dot,;t t
40947 s,@AMTAR@,$AMTAR,;t t
40948 s,@am__tar@,$am__tar,;t t
40949 s,@am__untar@,$am__untar,;t t
40950 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
40951 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
40952 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
40953 s,@top_builddir@,$top_builddir,;t t
40954 s,@ldap_subdir@,$ldap_subdir,;t t
40955 s,@CC@,$CC,;t t
40956 s,@AR@,$AR,;t t
40957 s,@CFLAGS@,$CFLAGS,;t t
40958 s,@LDFLAGS@,$LDFLAGS,;t t
40959 s,@CPPFLAGS@,$CPPFLAGS,;t t
40960 s,@ac_ct_CC@,$ac_ct_CC,;t t
40961 s,@EXEEXT@,$EXEEXT,;t t
40962 s,@OBJEXT@,$OBJEXT,;t t
40963 s,@DEPDIR@,$DEPDIR,;t t
40964 s,@am__include@,$am__include,;t t
40965 s,@am__quote@,$am__quote,;t t
40966 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
40967 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
40968 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
40969 s,@CCDEPMODE@,$CCDEPMODE,;t t
40970 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
40971 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
40972 s,@EGREP@,$EGREP,;t t
40973 s,@LN_S@,$LN_S,;t t
40974 s,@ECHO@,$ECHO,;t t
40975 s,@ac_ct_AR@,$ac_ct_AR,;t t
40976 s,@RANLIB@,$RANLIB,;t t
40977 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40978 s,@DLLTOOL@,$DLLTOOL,;t t
40979 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
40980 s,@AS@,$AS,;t t
40981 s,@ac_ct_AS@,$ac_ct_AS,;t t
40982 s,@OBJDUMP@,$OBJDUMP,;t t
40983 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
40984 s,@CPP@,$CPP,;t t
40985 s,@LIBTOOL@,$LIBTOOL,;t t
40986 s,@PERLBIN@,$PERLBIN,;t t
40987 s,@OL_MKDEP@,$OL_MKDEP,;t t
40988 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
40989 s,@LTSTATIC@,$LTSTATIC,;t t
40990 s,@LIBOBJS@,$LIBOBJS,;t t
40991 s,@LIBSRCS@,$LIBSRCS,;t t
40992 s,@PLAT@,$PLAT,;t t
40993 s,@WITH_SASL@,$WITH_SASL,;t t
40994 s,@WITH_TLS@,$WITH_TLS,;t t
40995 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
40996 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
40997 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
40998 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
40999 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41000 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41001 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41002 s,@BUILD_BDB@,$BUILD_BDB,;t t
41003 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41004 s,@BUILD_HDB@,$BUILD_HDB,;t t
41005 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41006 s,@BUILD_META@,$BUILD_META,;t t
41007 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41008 s,@BUILD_NULL@,$BUILD_NULL,;t t
41009 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41010 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41011 s,@BUILD_PERL@,$BUILD_PERL,;t t
41012 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41013 s,@BUILD_SQL@,$BUILD_SQL,;t t
41014 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41015 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41016 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41017 s,@BUILD_DDS@,$BUILD_DDS,;t t
41018 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41019 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41020 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41021 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41022 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41023 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41024 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41025 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41026 s,@BUILD_RWM@,$BUILD_RWM,;t t
41027 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41028 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41029 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41030 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41031 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41032 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41033 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41034 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41035 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41036 s,@BDB_LIBS@,$BDB_LIBS,;t t
41037 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41038 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41039 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41040 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41041 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41042 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41043 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41044 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41045 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41046 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41047 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41048 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41049 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41050 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41051 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41052 s,@SASL_LIBS@,$SASL_LIBS,;t t
41053 s,@TLS_LIBS@,$TLS_LIBS,;t t
41054 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41055 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41056 s,@LIBSLAPI@,$LIBSLAPI,;t t
41057 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41058 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41059 s,@ICU_LIBS@,$ICU_LIBS,;t t
41060 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41061 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41062 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41063 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41064 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41065 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41066 CEOF
41067
41068 _ACEOF
41069
41070   cat >>$CONFIG_STATUS <<\_ACEOF
41071   # Split the substitutions into bite-sized pieces for seds with
41072   # small command number limits, like on Digital OSF/1 and HP-UX.
41073   ac_max_sed_lines=48
41074   ac_sed_frag=1 # Number of current file.
41075   ac_beg=1 # First line for current file.
41076   ac_end=$ac_max_sed_lines # Line after last line for current file.
41077   ac_more_lines=:
41078   ac_sed_cmds=
41079   while $ac_more_lines; do
41080     if test $ac_beg -gt 1; then
41081       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41082     else
41083       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41084     fi
41085     if test ! -s $tmp/subs.frag; then
41086       ac_more_lines=false
41087     else
41088       # The purpose of the label and of the branching condition is to
41089       # speed up the sed processing (if there are no `@' at all, there
41090       # is no need to browse any of the substitutions).
41091       # These are the two extra sed commands mentioned above.
41092       (echo ':t
41093   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41094       if test -z "$ac_sed_cmds"; then
41095         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41096       else
41097         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41098       fi
41099       ac_sed_frag=`expr $ac_sed_frag + 1`
41100       ac_beg=$ac_end
41101       ac_end=`expr $ac_end + $ac_max_sed_lines`
41102     fi
41103   done
41104   if test -z "$ac_sed_cmds"; then
41105     ac_sed_cmds=cat
41106   fi
41107 fi # test -n "$CONFIG_FILES"
41108
41109 _ACEOF
41110 cat >>$CONFIG_STATUS <<\_ACEOF
41111 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41112   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41113   case $ac_file in
41114   - | *:- | *:-:* ) # input from stdin
41115         cat >$tmp/stdin
41116         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41118   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41120   * )   ac_file_in=$ac_file.in ;;
41121   esac
41122
41123   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41124   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41126          X"$ac_file" : 'X\(//\)[^/]' \| \
41127          X"$ac_file" : 'X\(//\)$' \| \
41128          X"$ac_file" : 'X\(/\)' \| \
41129          .     : '\(.\)' 2>/dev/null ||
41130 echo X"$ac_file" |
41131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41133           /^X\(\/\/\)$/{ s//\1/; q; }
41134           /^X\(\/\).*/{ s//\1/; q; }
41135           s/.*/./; q'`
41136   { if $as_mkdir_p; then
41137     mkdir -p "$ac_dir"
41138   else
41139     as_dir="$ac_dir"
41140     as_dirs=
41141     while test ! -d "$as_dir"; do
41142       as_dirs="$as_dir $as_dirs"
41143       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41145          X"$as_dir" : 'X\(//\)[^/]' \| \
41146          X"$as_dir" : 'X\(//\)$' \| \
41147          X"$as_dir" : 'X\(/\)' \| \
41148          .     : '\(.\)' 2>/dev/null ||
41149 echo X"$as_dir" |
41150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41151           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41152           /^X\(\/\/\)$/{ s//\1/; q; }
41153           /^X\(\/\).*/{ s//\1/; q; }
41154           s/.*/./; q'`
41155     done
41156     test ! -n "$as_dirs" || mkdir $as_dirs
41157   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41158 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41159    { (exit 1); exit 1; }; }; }
41160
41161   ac_builddir=.
41162
41163 if test "$ac_dir" != .; then
41164   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41165   # A "../" for each directory in $ac_dir_suffix.
41166   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41167 else
41168   ac_dir_suffix= ac_top_builddir=
41169 fi
41170
41171 case $srcdir in
41172   .)  # No --srcdir option.  We are building in place.
41173     ac_srcdir=.
41174     if test -z "$ac_top_builddir"; then
41175        ac_top_srcdir=.
41176     else
41177        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41178     fi ;;
41179   [\\/]* | ?:[\\/]* )  # Absolute path.
41180     ac_srcdir=$srcdir$ac_dir_suffix;
41181     ac_top_srcdir=$srcdir ;;
41182   *) # Relative path.
41183     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41184     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41185 esac
41186
41187 # Do not use `cd foo && pwd` to compute absolute paths, because
41188 # the directories may not exist.
41189 case `pwd` in
41190 .) ac_abs_builddir="$ac_dir";;
41191 *)
41192   case "$ac_dir" in
41193   .) ac_abs_builddir=`pwd`;;
41194   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41195   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41196   esac;;
41197 esac
41198 case $ac_abs_builddir in
41199 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41200 *)
41201   case ${ac_top_builddir}. in
41202   .) ac_abs_top_builddir=$ac_abs_builddir;;
41203   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41204   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41205   esac;;
41206 esac
41207 case $ac_abs_builddir in
41208 .) ac_abs_srcdir=$ac_srcdir;;
41209 *)
41210   case $ac_srcdir in
41211   .) ac_abs_srcdir=$ac_abs_builddir;;
41212   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41213   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41214   esac;;
41215 esac
41216 case $ac_abs_builddir in
41217 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41218 *)
41219   case $ac_top_srcdir in
41220   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41221   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41222   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41223   esac;;
41224 esac
41225
41226
41227   case $INSTALL in
41228   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41229   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41230   esac
41231
41232   if test x"$ac_file" != x-; then
41233     { echo "$as_me:$LINENO: creating $ac_file" >&5
41234 echo "$as_me: creating $ac_file" >&6;}
41235     rm -f "$ac_file"
41236   fi
41237   # Let's still pretend it is `configure' which instantiates (i.e., don't
41238   # use $as_me), people would be surprised to read:
41239   #    /* config.h.  Generated by config.status.  */
41240   if test x"$ac_file" = x-; then
41241     configure_input=
41242   else
41243     configure_input="$ac_file.  "
41244   fi
41245   configure_input=$configure_input"Generated from `echo $ac_file_in |
41246                                      sed 's,.*/,,'` by configure."
41247
41248   # First look for the input files in the build tree, otherwise in the
41249   # src tree.
41250   ac_file_inputs=`IFS=:
41251     for f in $ac_file_in; do
41252       case $f in
41253       -) echo $tmp/stdin ;;
41254       [\\/$]*)
41255          # Absolute (can't be DOS-style, as IFS=:)
41256          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41257 echo "$as_me: error: cannot find input file: $f" >&2;}
41258    { (exit 1); exit 1; }; }
41259          echo "$f";;
41260       *) # Relative
41261          if test -f "$f"; then
41262            # Build tree
41263            echo "$f"
41264          elif test -f "$srcdir/$f"; then
41265            # Source tree
41266            echo "$srcdir/$f"
41267          else
41268            # /dev/null tree
41269            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41270 echo "$as_me: error: cannot find input file: $f" >&2;}
41271    { (exit 1); exit 1; }; }
41272          fi;;
41273       esac
41274     done` || { (exit 1); exit 1; }
41275 _ACEOF
41276 cat >>$CONFIG_STATUS <<_ACEOF
41277   sed "$ac_vpsub
41278 $extrasub
41279 _ACEOF
41280 cat >>$CONFIG_STATUS <<\_ACEOF
41281 :t
41282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41283 s,@configure_input@,$configure_input,;t t
41284 s,@srcdir@,$ac_srcdir,;t t
41285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41286 s,@top_srcdir@,$ac_top_srcdir,;t t
41287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41288 s,@builddir@,$ac_builddir,;t t
41289 s,@abs_builddir@,$ac_abs_builddir,;t t
41290 s,@top_builddir@,$ac_top_builddir,;t t
41291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41292 s,@INSTALL@,$ac_INSTALL,;t t
41293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41294   rm -f $tmp/stdin
41295   if test x"$ac_file" != x-; then
41296     mv $tmp/out $ac_file
41297   else
41298     cat $tmp/out
41299     rm -f $tmp/out
41300   fi
41301
41302 done
41303 _ACEOF
41304 cat >>$CONFIG_STATUS <<\_ACEOF
41305
41306 #
41307 # CONFIG_HEADER section.
41308 #
41309
41310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41312 #
41313 # ac_d sets the value in "#define NAME VALUE" lines.
41314 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41315 ac_dB='[         ].*$,\1#\2'
41316 ac_dC=' '
41317 ac_dD=',;t'
41318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41319 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41320 ac_uB='$,\1#\2define\3'
41321 ac_uC=' '
41322 ac_uD=',;t'
41323
41324 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41325   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41326   case $ac_file in
41327   - | *:- | *:-:* ) # input from stdin
41328         cat >$tmp/stdin
41329         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41331   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41332         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41333   * )   ac_file_in=$ac_file.in ;;
41334   esac
41335
41336   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41337 echo "$as_me: creating $ac_file" >&6;}
41338
41339   # First look for the input files in the build tree, otherwise in the
41340   # src tree.
41341   ac_file_inputs=`IFS=:
41342     for f in $ac_file_in; do
41343       case $f in
41344       -) echo $tmp/stdin ;;
41345       [\\/$]*)
41346          # Absolute (can't be DOS-style, as IFS=:)
41347          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41348 echo "$as_me: error: cannot find input file: $f" >&2;}
41349    { (exit 1); exit 1; }; }
41350          # Do quote $f, to prevent DOS paths from being IFS'd.
41351          echo "$f";;
41352       *) # Relative
41353          if test -f "$f"; then
41354            # Build tree
41355            echo "$f"
41356          elif test -f "$srcdir/$f"; then
41357            # Source tree
41358            echo "$srcdir/$f"
41359          else
41360            # /dev/null tree
41361            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41362 echo "$as_me: error: cannot find input file: $f" >&2;}
41363    { (exit 1); exit 1; }; }
41364          fi;;
41365       esac
41366     done` || { (exit 1); exit 1; }
41367   # Remove the trailing spaces.
41368   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41369
41370 _ACEOF
41371
41372 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41373 # `conftest.undefs', that substitutes the proper values into
41374 # config.h.in to produce config.h.  The first handles `#define'
41375 # templates, and the second `#undef' templates.
41376 # And first: Protect against being on the right side of a sed subst in
41377 # config.status.  Protect against being in an unquoted here document
41378 # in config.status.
41379 rm -f conftest.defines conftest.undefs
41380 # Using a here document instead of a string reduces the quoting nightmare.
41381 # Putting comments in sed scripts is not portable.
41382 #
41383 # `end' is used to avoid that the second main sed command (meant for
41384 # 0-ary CPP macros) applies to n-ary macro definitions.
41385 # See the Autoconf documentation for `clear'.
41386 cat >confdef2sed.sed <<\_ACEOF
41387 s/[\\&,]/\\&/g
41388 s,[\\$`],\\&,g
41389 t clear
41390 : clear
41391 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41392 t end
41393 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41394 : end
41395 _ACEOF
41396 # If some macros were called several times there might be several times
41397 # the same #defines, which is useless.  Nevertheless, we may not want to
41398 # sort them, since we want the *last* AC-DEFINE to be honored.
41399 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41400 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41401 rm -f confdef2sed.sed
41402
41403 # This sed command replaces #undef with comments.  This is necessary, for
41404 # example, in the case of _POSIX_SOURCE, which is predefined and required
41405 # on some systems where configure will not decide to define it.
41406 cat >>conftest.undefs <<\_ACEOF
41407 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41408 _ACEOF
41409
41410 # Break up conftest.defines because some shells have a limit on the size
41411 # of here documents, and old seds have small limits too (100 cmds).
41412 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41413 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41414 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41415 echo '  :' >>$CONFIG_STATUS
41416 rm -f conftest.tail
41417 while grep . conftest.defines >/dev/null
41418 do
41419   # Write a limited-size here document to $tmp/defines.sed.
41420   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41421   # Speed up: don't consider the non `#define' lines.
41422   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
41423   # Work around the forget-to-reset-the-flag bug.
41424   echo 't clr' >>$CONFIG_STATUS
41425   echo ': clr' >>$CONFIG_STATUS
41426   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41427   echo 'CEOF
41428   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41429   rm -f $tmp/in
41430   mv $tmp/out $tmp/in
41431 ' >>$CONFIG_STATUS
41432   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41433   rm -f conftest.defines
41434   mv conftest.tail conftest.defines
41435 done
41436 rm -f conftest.defines
41437 echo '  fi # grep' >>$CONFIG_STATUS
41438 echo >>$CONFIG_STATUS
41439
41440 # Break up conftest.undefs because some shells have a limit on the size
41441 # of here documents, and old seds have small limits too (100 cmds).
41442 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41443 rm -f conftest.tail
41444 while grep . conftest.undefs >/dev/null
41445 do
41446   # Write a limited-size here document to $tmp/undefs.sed.
41447   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41448   # Speed up: don't consider the non `#undef'
41449   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41450   # Work around the forget-to-reset-the-flag bug.
41451   echo 't clr' >>$CONFIG_STATUS
41452   echo ': clr' >>$CONFIG_STATUS
41453   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41454   echo 'CEOF
41455   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41456   rm -f $tmp/in
41457   mv $tmp/out $tmp/in
41458 ' >>$CONFIG_STATUS
41459   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41460   rm -f conftest.undefs
41461   mv conftest.tail conftest.undefs
41462 done
41463 rm -f conftest.undefs
41464
41465 cat >>$CONFIG_STATUS <<\_ACEOF
41466   # Let's still pretend it is `configure' which instantiates (i.e., don't
41467   # use $as_me), people would be surprised to read:
41468   #    /* config.h.  Generated by config.status.  */
41469   if test x"$ac_file" = x-; then
41470     echo "/* Generated by configure.  */" >$tmp/config.h
41471   else
41472     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41473   fi
41474   cat $tmp/in >>$tmp/config.h
41475   rm -f $tmp/in
41476   if test x"$ac_file" != x-; then
41477     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41478       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41479 echo "$as_me: $ac_file is unchanged" >&6;}
41480     else
41481       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41483          X"$ac_file" : 'X\(//\)[^/]' \| \
41484          X"$ac_file" : 'X\(//\)$' \| \
41485          X"$ac_file" : 'X\(/\)' \| \
41486          .     : '\(.\)' 2>/dev/null ||
41487 echo X"$ac_file" |
41488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41490           /^X\(\/\/\)$/{ s//\1/; q; }
41491           /^X\(\/\).*/{ s//\1/; q; }
41492           s/.*/./; q'`
41493       { if $as_mkdir_p; then
41494     mkdir -p "$ac_dir"
41495   else
41496     as_dir="$ac_dir"
41497     as_dirs=
41498     while test ! -d "$as_dir"; do
41499       as_dirs="$as_dir $as_dirs"
41500       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41502          X"$as_dir" : 'X\(//\)[^/]' \| \
41503          X"$as_dir" : 'X\(//\)$' \| \
41504          X"$as_dir" : 'X\(/\)' \| \
41505          .     : '\(.\)' 2>/dev/null ||
41506 echo X"$as_dir" |
41507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41509           /^X\(\/\/\)$/{ s//\1/; q; }
41510           /^X\(\/\).*/{ s//\1/; q; }
41511           s/.*/./; q'`
41512     done
41513     test ! -n "$as_dirs" || mkdir $as_dirs
41514   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41516    { (exit 1); exit 1; }; }; }
41517
41518       rm -f $ac_file
41519       mv $tmp/config.h $ac_file
41520     fi
41521   else
41522     cat $tmp/config.h
41523     rm -f $tmp/config.h
41524   fi
41525 # Compute $ac_file's index in $config_headers.
41526 _am_stamp_count=1
41527 for _am_header in $config_headers :; do
41528   case $_am_header in
41529     $ac_file | $ac_file:* )
41530       break ;;
41531     * )
41532       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41533   esac
41534 done
41535 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41536 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41537          X$ac_file : 'X\(//\)[^/]' \| \
41538          X$ac_file : 'X\(//\)$' \| \
41539          X$ac_file : 'X\(/\)' \| \
41540          .     : '\(.\)' 2>/dev/null ||
41541 echo X$ac_file |
41542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41543           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41544           /^X\(\/\/\)$/{ s//\1/; q; }
41545           /^X\(\/\).*/{ s//\1/; q; }
41546           s/.*/./; q'`/stamp-h$_am_stamp_count
41547 done
41548 _ACEOF
41549 cat >>$CONFIG_STATUS <<\_ACEOF
41550
41551 #
41552 # CONFIG_COMMANDS section.
41553 #
41554 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41555   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41556   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41557   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41558 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41559          X"$ac_dest" : 'X\(//\)[^/]' \| \
41560          X"$ac_dest" : 'X\(//\)$' \| \
41561          X"$ac_dest" : 'X\(/\)' \| \
41562          .     : '\(.\)' 2>/dev/null ||
41563 echo X"$ac_dest" |
41564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41565           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41566           /^X\(\/\/\)$/{ s//\1/; q; }
41567           /^X\(\/\).*/{ s//\1/; q; }
41568           s/.*/./; q'`
41569   { if $as_mkdir_p; then
41570     mkdir -p "$ac_dir"
41571   else
41572     as_dir="$ac_dir"
41573     as_dirs=
41574     while test ! -d "$as_dir"; do
41575       as_dirs="$as_dir $as_dirs"
41576       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41578          X"$as_dir" : 'X\(//\)[^/]' \| \
41579          X"$as_dir" : 'X\(//\)$' \| \
41580          X"$as_dir" : 'X\(/\)' \| \
41581          .     : '\(.\)' 2>/dev/null ||
41582 echo X"$as_dir" |
41583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41584           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41585           /^X\(\/\/\)$/{ s//\1/; q; }
41586           /^X\(\/\).*/{ s//\1/; q; }
41587           s/.*/./; q'`
41588     done
41589     test ! -n "$as_dirs" || mkdir $as_dirs
41590   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41591 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41592    { (exit 1); exit 1; }; }; }
41593
41594   ac_builddir=.
41595
41596 if test "$ac_dir" != .; then
41597   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41598   # A "../" for each directory in $ac_dir_suffix.
41599   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41600 else
41601   ac_dir_suffix= ac_top_builddir=
41602 fi
41603
41604 case $srcdir in
41605   .)  # No --srcdir option.  We are building in place.
41606     ac_srcdir=.
41607     if test -z "$ac_top_builddir"; then
41608        ac_top_srcdir=.
41609     else
41610        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41611     fi ;;
41612   [\\/]* | ?:[\\/]* )  # Absolute path.
41613     ac_srcdir=$srcdir$ac_dir_suffix;
41614     ac_top_srcdir=$srcdir ;;
41615   *) # Relative path.
41616     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41617     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41618 esac
41619
41620 # Do not use `cd foo && pwd` to compute absolute paths, because
41621 # the directories may not exist.
41622 case `pwd` in
41623 .) ac_abs_builddir="$ac_dir";;
41624 *)
41625   case "$ac_dir" in
41626   .) ac_abs_builddir=`pwd`;;
41627   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41628   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41629   esac;;
41630 esac
41631 case $ac_abs_builddir in
41632 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41633 *)
41634   case ${ac_top_builddir}. in
41635   .) ac_abs_top_builddir=$ac_abs_builddir;;
41636   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41637   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41638   esac;;
41639 esac
41640 case $ac_abs_builddir in
41641 .) ac_abs_srcdir=$ac_srcdir;;
41642 *)
41643   case $ac_srcdir in
41644   .) ac_abs_srcdir=$ac_abs_builddir;;
41645   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41646   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41647   esac;;
41648 esac
41649 case $ac_abs_builddir in
41650 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41651 *)
41652   case $ac_top_srcdir in
41653   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41654   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41655   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41656   esac;;
41657 esac
41658
41659
41660   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41661 echo "$as_me: executing $ac_dest commands" >&6;}
41662   case $ac_dest in
41663     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
41664   # Strip MF so we end up with the name of the file.
41665   mf=`echo "$mf" | sed -e 's/:.*$//'`
41666   # Check whether this is an Automake generated Makefile or not.
41667   # We used to match only the files named `Makefile.in', but
41668   # some people rename them; so instead we look at the file content.
41669   # Grep'ing the first line is not enough: some people post-process
41670   # each Makefile.in and add a new line on top of each file to say so.
41671   # So let's grep whole file.
41672   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
41673     dirpart=`(dirname "$mf") 2>/dev/null ||
41674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41675          X"$mf" : 'X\(//\)[^/]' \| \
41676          X"$mf" : 'X\(//\)$' \| \
41677          X"$mf" : 'X\(/\)' \| \
41678          .     : '\(.\)' 2>/dev/null ||
41679 echo X"$mf" |
41680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41682           /^X\(\/\/\)$/{ s//\1/; q; }
41683           /^X\(\/\).*/{ s//\1/; q; }
41684           s/.*/./; q'`
41685   else
41686     continue
41687   fi
41688   # Extract the definition of DEPDIR, am__include, and am__quote
41689   # from the Makefile without running `make'.
41690   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41691   test -z "$DEPDIR" && continue
41692   am__include=`sed -n 's/^am__include = //p' < "$mf"`
41693   test -z "am__include" && continue
41694   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41695   # When using ansi2knr, U may be empty or an underscore; expand it
41696   U=`sed -n 's/^U = //p' < "$mf"`
41697   # Find all dependency output files, they are included files with
41698   # $(DEPDIR) in their names.  We invoke sed twice because it is the
41699   # simplest approach to changing $(DEPDIR) to its actual value in the
41700   # expansion.
41701   for file in `sed -n "
41702     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41703        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41704     # Make sure the directory exists.
41705     test -f "$dirpart/$file" && continue
41706     fdir=`(dirname "$file") 2>/dev/null ||
41707 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41708          X"$file" : 'X\(//\)[^/]' \| \
41709          X"$file" : 'X\(//\)$' \| \
41710          X"$file" : 'X\(/\)' \| \
41711          .     : '\(.\)' 2>/dev/null ||
41712 echo X"$file" |
41713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41715           /^X\(\/\/\)$/{ s//\1/; q; }
41716           /^X\(\/\).*/{ s//\1/; q; }
41717           s/.*/./; q'`
41718     { if $as_mkdir_p; then
41719     mkdir -p $dirpart/$fdir
41720   else
41721     as_dir=$dirpart/$fdir
41722     as_dirs=
41723     while test ! -d "$as_dir"; do
41724       as_dirs="$as_dir $as_dirs"
41725       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41727          X"$as_dir" : 'X\(//\)[^/]' \| \
41728          X"$as_dir" : 'X\(//\)$' \| \
41729          X"$as_dir" : 'X\(/\)' \| \
41730          .     : '\(.\)' 2>/dev/null ||
41731 echo X"$as_dir" |
41732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41733           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41734           /^X\(\/\/\)$/{ s//\1/; q; }
41735           /^X\(\/\).*/{ s//\1/; q; }
41736           s/.*/./; q'`
41737     done
41738     test ! -n "$as_dirs" || mkdir $as_dirs
41739   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
41740 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
41741    { (exit 1); exit 1; }; }; }
41742
41743     # echo "creating $dirpart/$file"
41744     echo '# dummy' > "$dirpart/$file"
41745   done
41746 done
41747  ;;
41748     default )
41749 chmod +x tests/run
41750 date > stamp-h
41751 BACKENDSC="servers/slapd/backends.c"
41752 echo "Making $BACKENDSC"
41753 rm -f $BACKENDSC
41754 cat > $BACKENDSC << ENDX
41755 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41756  *
41757  * Copyright 1998-2007 The OpenLDAP Foundation.
41758  * All rights reserved.
41759  *
41760  * Redistribution and use in source and binary forms, with or without
41761  * modification, are permitted only as authorized by the OpenLDAP
41762  * Public License.
41763  *
41764  * A copy of this license is available in the file LICENSE in the
41765  * top-level directory of the distribution or, alternatively, at
41766  * <http://www.OpenLDAP.org/license.html>.
41767  */
41768 /* This file is automatically generated by configure; please do not edit. */
41769
41770 #include "portable.h"
41771 #include "slap.h"
41772
41773 ENDX
41774 if test "${STATIC_BACKENDS}"; then
41775         for b in config ${STATIC_BACKENDS}; do
41776                 bb=`echo "${b}" | sed -e 's/back-//'`
41777                 cat >> $BACKENDSC << ENDX
41778 extern BI_init ${bb}_back_initialize;
41779 ENDX
41780         done
41781
41782         cat >> $BACKENDSC << ENDX
41783
41784 BackendInfo slap_binfo[] = {
41785 ENDX
41786
41787         for b in config ${STATIC_BACKENDS}; do
41788                 bb=`echo "${b}" | sed -e 's/back-//'`
41789                 echo "    Add ${bb} ..."
41790                 cat >> $BACKENDSC << ENDX
41791         { "${bb}", ${bb}_back_initialize },
41792 ENDX
41793         done
41794
41795         cat >> $BACKENDSC << ENDX
41796         { NULL, NULL },
41797 };
41798
41799 /* end of generated file */
41800 ENDX
41801 fi
41802 OVERLAYSC="servers/slapd/overlays/statover.c"
41803 echo "Making $OVERLAYSC"
41804 rm -f $OVERLAYSC
41805 cat > $OVERLAYSC << ENDX
41806 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41807  *
41808  * Copyright 1998-2007 The OpenLDAP Foundation.
41809  * All rights reserved.
41810  *
41811  * Redistribution and use in source and binary forms, with or without
41812  * modification, are permitted only as authorized by the OpenLDAP
41813  * Public License.
41814  *
41815  * A copy of this license is available in the file LICENSE in the
41816  * top-level directory of the distribution or, alternatively, at
41817  * <http://www.OpenLDAP.org/license.html>.
41818  */
41819 /* This file is automatically generated by configure; please do not edit. */
41820
41821 #include "portable.h"
41822 #include "slap.h"
41823
41824 ENDX
41825 if test "${STATIC_OVERLAYS}"; then
41826         for o in ${STATIC_OVERLAYS}; do
41827                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41828                 cat >> $OVERLAYSC << ENDX
41829 extern OV_init ${oo}_initialize;
41830 ENDX
41831         done
41832 fi
41833
41834 cat >> $OVERLAYSC << ENDX
41835
41836 OverlayInit slap_oinfo[] = {
41837 ENDX
41838
41839 if test "${STATIC_OVERLAYS}"; then
41840         for o in ${STATIC_OVERLAYS}; do
41841                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41842                 echo "    Add ${oo} ..."
41843                 cat >> $OVERLAYSC << ENDX
41844         { "${oo}", ${oo}_initialize },
41845 ENDX
41846         done
41847 fi
41848
41849         cat >> $OVERLAYSC << ENDX
41850         { NULL, NULL },
41851 };
41852
41853 /* end of generated file */
41854 ENDX
41855
41856 echo Please run \"make depend\" to build dependencies
41857  ;;
41858   esac
41859 done
41860 _ACEOF
41861
41862 cat >>$CONFIG_STATUS <<\_ACEOF
41863
41864 { (exit 0); exit 0; }
41865 _ACEOF
41866 chmod +x $CONFIG_STATUS
41867 ac_clean_files=$ac_clean_files_save
41868
41869
41870 # configure is writing to config.log, and then calls config.status.
41871 # config.status does its own redirection, appending to config.log.
41872 # Unfortunately, on DOS this fails, as config.log is still kept open
41873 # by configure, so config.status won't be able to write to it; its
41874 # output is simply discarded.  So we exec the FD to /dev/null,
41875 # effectively closing config.log, so it can be properly (re)opened and
41876 # appended to by config.status.  When coming back to configure, we
41877 # need to make the FD available again.
41878 if test "$no_create" != yes; then
41879   ac_cs_success=:
41880   ac_config_status_args=
41881   test "$silent" = yes &&
41882     ac_config_status_args="$ac_config_status_args --quiet"
41883   exec 5>/dev/null
41884   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41885   exec 5>>config.log
41886   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41887   # would make configure fail if this is the last instruction.
41888   $ac_cs_success || { (exit 1); exit 1; }
41889 fi
41890