]> git.sur5r.net Git - openldap/blob - configure
autchId must be a (quoted) id, and can't be a DN; as a consequence, no need for leadi...
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.656 2007/05/23 21:28:11 hyc 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 LDAP_LIBS SLAPD_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 Library Generation & Linking Options
1066   --enable-static[=PKGS]
1067                           build static libraries [default=yes]
1068   --enable-shared[=PKGS]
1069                           build shared libraries [default=yes]
1070   --enable-fast-install[=PKGS]
1071                           optimize for fast installation [default=yes]
1072   --disable-dependency-tracking  speeds up one-time build
1073   --enable-dependency-tracking   do not reject slow dependency extractors
1074   --disable-libtool-lock  avoid locking (might break parallel builds)
1075
1076 Optional Packages:
1077   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1078   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1079   --with-subdir=DIR       change default subdirectory used for installs
1080   --with-cyrus-sasl       with Cyrus SASL support [auto]
1081   --with-fetch            with fetch(3) URL support [auto]
1082   --with-threads          with threads [auto]
1083   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1084   --with-yielding-select  with implicitly yielding select [auto]
1085   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1086   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1087   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1088   --with-pic              try to use only PIC/non-PIC objects [default=use
1089                           both]
1090   --with-tags[=TAGS]
1091                           include additional configurations [automatic]
1092
1093 See INSTALL file for further details.
1094
1095 Some influential environment variables:
1096   CC          C compiler command
1097   CFLAGS      C compiler flags
1098   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1099               nonstandard directory <lib dir>
1100   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1101               headers in a nonstandard directory <include dir>
1102   CPP         C preprocessor
1103
1104 Use these variables to override the choices made by `configure' or to help
1105 it to find libraries and programs with nonstandard names/locations.
1106
1107 _ACEOF
1108 fi
1109
1110 if test "$ac_init_help" = "recursive"; then
1111   # If there are subdirs, report their specific --help.
1112   ac_popdir=`pwd`
1113   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114     test -d $ac_dir || continue
1115     ac_builddir=.
1116
1117 if test "$ac_dir" != .; then
1118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119   # A "../" for each directory in $ac_dir_suffix.
1120   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121 else
1122   ac_dir_suffix= ac_top_builddir=
1123 fi
1124
1125 case $srcdir in
1126   .)  # No --srcdir option.  We are building in place.
1127     ac_srcdir=.
1128     if test -z "$ac_top_builddir"; then
1129        ac_top_srcdir=.
1130     else
1131        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132     fi ;;
1133   [\\/]* | ?:[\\/]* )  # Absolute path.
1134     ac_srcdir=$srcdir$ac_dir_suffix;
1135     ac_top_srcdir=$srcdir ;;
1136   *) # Relative path.
1137     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139 esac
1140
1141 # Do not use `cd foo && pwd` to compute absolute paths, because
1142 # the directories may not exist.
1143 case `pwd` in
1144 .) ac_abs_builddir="$ac_dir";;
1145 *)
1146   case "$ac_dir" in
1147   .) ac_abs_builddir=`pwd`;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150   esac;;
1151 esac
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *)
1155   case ${ac_top_builddir}. in
1156   .) ac_abs_top_builddir=$ac_abs_builddir;;
1157   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159   esac;;
1160 esac
1161 case $ac_abs_builddir in
1162 .) ac_abs_srcdir=$ac_srcdir;;
1163 *)
1164   case $ac_srcdir in
1165   .) ac_abs_srcdir=$ac_abs_builddir;;
1166   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168   esac;;
1169 esac
1170 case $ac_abs_builddir in
1171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *)
1173   case $ac_top_srcdir in
1174   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177   esac;;
1178 esac
1179
1180     cd $ac_dir
1181     # Check for guested configure; otherwise get Cygnus style configure.
1182     if test -f $ac_srcdir/configure.gnu; then
1183       echo
1184       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1185     elif test -f $ac_srcdir/configure; then
1186       echo
1187       $SHELL $ac_srcdir/configure  --help=recursive
1188     elif test -f $ac_srcdir/configure.ac ||
1189            test -f $ac_srcdir/configure.in; then
1190       echo
1191       $ac_configure --help
1192     else
1193       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194     fi
1195     cd $ac_popdir
1196   done
1197 fi
1198
1199 test -n "$ac_init_help" && exit 0
1200 if $ac_init_version; then
1201   cat <<\_ACEOF
1202
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206
1207 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1208 Restrictions apply, see COPYRIGHT and LICENSE files.
1209 _ACEOF
1210   exit 0
1211 fi
1212 exec 5>config.log
1213 cat >&5 <<_ACEOF
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1216
1217 It was created by $as_me, which was
1218 generated by GNU Autoconf 2.59.  Invocation command line was
1219
1220   $ $0 $@
1221
1222 _ACEOF
1223 {
1224 cat <<_ASUNAME
1225 ## --------- ##
1226 ## Platform. ##
1227 ## --------- ##
1228
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1237
1238 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1239 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1242 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1243 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1244 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1245
1246 _ASUNAME
1247
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 for as_dir in $PATH
1250 do
1251   IFS=$as_save_IFS
1252   test -z "$as_dir" && as_dir=.
1253   echo "PATH: $as_dir"
1254 done
1255
1256 } >&5
1257
1258 cat >&5 <<_ACEOF
1259
1260
1261 ## ----------- ##
1262 ## Core tests. ##
1263 ## ----------- ##
1264
1265 _ACEOF
1266
1267
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_configure_args=
1274 ac_configure_args0=
1275 ac_configure_args1=
1276 ac_sep=
1277 ac_must_keep_next=false
1278 for ac_pass in 1 2
1279 do
1280   for ac_arg
1281   do
1282     case $ac_arg in
1283     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285     | -silent | --silent | --silen | --sile | --sil)
1286       continue ;;
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     esac
1290     case $ac_pass in
1291     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292     2)
1293       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294       if test $ac_must_keep_next = true; then
1295         ac_must_keep_next=false # Got value, back to normal.
1296       else
1297         case $ac_arg in
1298           *=* | --config-cache | -C | -disable-* | --disable-* \
1299           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301           | -with-* | --with-* | -without-* | --without-* | --x)
1302             case "$ac_configure_args0 " in
1303               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304             esac
1305             ;;
1306           -* ) ac_must_keep_next=true ;;
1307         esac
1308       fi
1309       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310       # Get rid of the leading space.
1311       ac_sep=" "
1312       ;;
1313     esac
1314   done
1315 done
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log.  We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325   # Save into config.log some information that might help in debugging.
1326   {
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1333 _ASBOX
1334     echo
1335     # The following way of writing the cache mishandles newlines in values,
1336 {
1337   (set) 2>&1 |
1338     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339     *ac_space=\ *)
1340       sed -n \
1341         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343       ;;
1344     *)
1345       sed -n \
1346         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347       ;;
1348     esac;
1349 }
1350     echo
1351
1352     cat <<\_ASBOX
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1356 _ASBOX
1357     echo
1358     for ac_var in $ac_subst_vars
1359     do
1360       eval ac_val=$`echo $ac_var`
1361       echo "$ac_var='"'"'$ac_val'"'"'"
1362     done | sort
1363     echo
1364
1365     if test -n "$ac_subst_files"; then
1366       cat <<\_ASBOX
1367 ## ------------- ##
1368 ## Output files. ##
1369 ## ------------- ##
1370 _ASBOX
1371       echo
1372       for ac_var in $ac_subst_files
1373       do
1374         eval ac_val=$`echo $ac_var`
1375         echo "$ac_var='"'"'$ac_val'"'"'"
1376       done | sort
1377       echo
1378     fi
1379
1380     if test -s confdefs.h; then
1381       cat <<\_ASBOX
1382 ## ----------- ##
1383 ## confdefs.h. ##
1384 ## ----------- ##
1385 _ASBOX
1386       echo
1387       sed "/^$/d" confdefs.h | sort
1388       echo
1389     fi
1390     test "$ac_signal" != 0 &&
1391       echo "$as_me: caught signal $ac_signal"
1392     echo "$as_me: exit $exit_status"
1393   } >&5
1394   rm -f core *.core &&
1395   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396     exit $exit_status
1397      ' 0
1398 for ac_signal in 1 2 13 15; do
1399   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 done
1401 ac_signal=0
1402
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406 echo >confdefs.h
1407
1408 # Predefined preprocessor variables.
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 _ACEOF
1433
1434
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438   if test "x$prefix" != xNONE; then
1439     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440   else
1441     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442   fi
1443 fi
1444 for ac_site_file in $CONFIG_SITE; do
1445   if test -r "$ac_site_file"; then
1446     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448     sed 's/^/| /' "$ac_site_file" >&5
1449     . "$ac_site_file"
1450   fi
1451 done
1452
1453
1454 # Check that the precious variables saved in the cache have kept the same
1455 # value.
1456 ac_cache_corrupted=false
1457 for ac_var in `(set) 2>&1 |
1458                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460   eval ac_new_set=\$ac_env_${ac_var}_set
1461   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462   eval ac_new_val="\$ac_env_${ac_var}_value"
1463   case $ac_old_set,$ac_new_set in
1464     set,)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,set)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,);;
1473     *)
1474       if test "x$ac_old_val" != "x$ac_new_val"; then
1475         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1478 echo "$as_me:   former value:  $ac_old_val" >&2;}
1479         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1480 echo "$as_me:   current value: $ac_new_val" >&2;}
1481         ac_cache_corrupted=:
1482       fi;;
1483   esac
1484   # Pass precious variables to config.status.
1485   if test "$ac_new_set" = set; then
1486     case $ac_new_val in
1487     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489     *) ac_arg=$ac_var=$ac_new_val ;;
1490     esac
1491     case " $ac_configure_args " in
1492       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1493       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494     esac
1495   fi
1496 done
1497 if $ac_cache_corrupted; then
1498   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502    { (exit 1); exit 1; }; }
1503 fi
1504
1505 ac_ext=c
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
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 ac_aux_dir=
1554 for ac_dir in build $srcdir/build; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif test -f $ac_dir/install.sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install.sh -c"
1562     break
1563   elif test -f $ac_dir/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 eval `$ac_aux_dir/version.sh`
1579 if test -z "$OL_STRING"; then
1580         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1581 echo "$as_me: error: could not determine version" >&2;}
1582    { (exit 1); exit 1; }; }
1583 fi
1584
1585 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1586         ac_cv_shtool="$ac_aux_dir/shtool"
1587 else
1588         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1589 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1590    { (exit 1); exit 1; }; }
1591 fi
1592
1593 SHTOOL="$ac_cv_shtool"
1594
1595 TB="" TN=""
1596 if test -t 1; then
1597         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1598         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1599 fi
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 gnutls 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-xxliboptions or --disable-xxliboptions was given.
3526 if test "${enable_xxliboptions+set}" = set; then
3527   enableval="$enable_xxliboptions"
3528
3529 fi;
3530 # Check whether --enable-static or --disable-static was given.
3531 if test "${enable_static+set}" = set; then
3532   enableval="$enable_static"
3533   p=${PACKAGE-default}
3534     case $enableval in
3535     yes) enable_static=yes ;;
3536     no) enable_static=no ;;
3537     *)
3538      enable_static=no
3539       # Look at the argument we got.  We use all the common list separators.
3540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3541       for pkg in $enableval; do
3542         IFS="$lt_save_ifs"
3543         if test "X$pkg" = "X$p"; then
3544           enable_static=yes
3545         fi
3546       done
3547       IFS="$lt_save_ifs"
3548       ;;
3549     esac
3550 else
3551   enable_static=yes
3552 fi;
3553
3554 # Check whether --enable-shared or --disable-shared was given.
3555 if test "${enable_shared+set}" = set; then
3556   enableval="$enable_shared"
3557   p=${PACKAGE-default}
3558     case $enableval in
3559     yes) enable_shared=yes ;;
3560     no) enable_shared=no ;;
3561     *)
3562       enable_shared=no
3563       # Look at the argument we got.  We use all the common list separators.
3564       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3565       for pkg in $enableval; do
3566         IFS="$lt_save_ifs"
3567         if test "X$pkg" = "X$p"; then
3568           enable_shared=yes
3569         fi
3570       done
3571       IFS="$lt_save_ifs"
3572       ;;
3573     esac
3574 else
3575   enable_shared=yes
3576 fi;
3577
3578
3579
3580 # validate options
3581 if test $ol_enable_slapd = no ; then
3582                 if test $ol_enable_slapi = yes ; then
3583                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3584 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3585         fi
3586         case "$ol_enable_backends" in yes | mod)
3587                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3588 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3589         esac
3590         for i in $Backends; do
3591                 eval "ol_tmp=\$ol_enable_$i"
3592                 if test $ol_tmp != no ; then
3593                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3594 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3595                         eval "ol_enable_$i=no"
3596                 fi
3597         done
3598         if test $ol_enable_modules = yes ; then
3599                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3600 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3601         fi
3602         if test $ol_enable_wrappers = yes ; then
3603                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3604 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3605         fi
3606         if test $ol_enable_rlookups = yes ; then
3607                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3608 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3609         fi
3610         if test $ol_enable_dynacl = yes ; then
3611                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3612 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3613         fi
3614         if test $ol_enable_aci != no ; then
3615                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3616 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3617         fi
3618         if test $ol_enable_rewrite = yes ; then
3619                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3621         fi
3622                 case "$ol_enable_overlays" in yes | mod)
3623                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3624 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3625         esac
3626         for i in $Overlays; do
3627                 eval "ol_tmp=\$ol_enable_$i"
3628                 if test $ol_tmp != no ; then
3629                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3631                         eval "ol_enable_$i=no"
3632                 fi
3633         done
3634
3635         # force settings to no
3636         ol_enable_slapi=no
3637
3638         ol_enable_backends=
3639         ol_enable_overlays=
3640         ol_enable_modules=no
3641         ol_enable_rlookups=no
3642         ol_enable_dynacl=no
3643         ol_enable_aci=no
3644         ol_enable_wrappers=no
3645
3646         ol_enable_rewrite=no
3647
3648 elif test $ol_enable_modules != yes &&
3649         test $ol_enable_bdb = no &&
3650         test $ol_enable_dnssrv = no &&
3651         test $ol_enable_hdb = no &&
3652         test $ol_enable_ldap = no &&
3653         test $ol_enable_meta = no &&
3654         test $ol_enable_monitor = no &&
3655         test $ol_enable_null = no &&
3656         test $ol_enable_passwd = no &&
3657         test $ol_enable_perl = no &&
3658         test $ol_enable_relay = no &&
3659         test $ol_enable_shell = no &&
3660         test $ol_enable_sql = no ; then
3661
3662         if test $ol_enable_slapd = yes ; then
3663                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3664 echo "$as_me: error: slapd requires a backend" >&2;}
3665    { (exit 1); exit 1; }; }
3666         else
3667                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3668 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3669                 ol_enable_slapd=no
3670         fi
3671 fi
3672
3673 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3674         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3675 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3676    { (exit 1); exit 1; }; }
3677 fi
3678
3679 if test $ol_enable_lmpasswd = yes ; then
3680         if test $ol_with_tls = no ; then
3681                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3682 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3683    { (exit 1); exit 1; }; }
3684         fi
3685 fi
3686
3687 if test $ol_enable_spasswd = yes ; then
3688         if test $ol_with_cyrus_sasl = no ; then
3689                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3690 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3691    { (exit 1); exit 1; }; }
3692         fi
3693         ol_with_cyrus_sasl=yes
3694 fi
3695
3696 echo "$as_me:$LINENO: result: done" >&5
3697 echo "${ECHO_T}done" >&6
3698
3699 LDAP_LIBS=
3700 BDB_LIBS=
3701 LTHREAD_LIBS=
3702 LUTIL_LIBS=
3703
3704 SLAPD_LIBS=
3705
3706 BUILD_SLAPD=no
3707
3708 BUILD_THREAD=no
3709
3710 BUILD_SLAPI=no
3711 SLAPD_SLAPI_DEPEND=
3712
3713 BUILD_BDB=no
3714 BUILD_DNSSRV=no
3715 BUILD_HDB=no
3716 BUILD_LDAP=no
3717 BUILD_META=no
3718 BUILD_MONITOR=no
3719 BUILD_NULL=no
3720 BUILD_PASSWD=no
3721 BUILD_PERL=no
3722 BUILD_RELAY=no
3723 BUILD_SHELL=no
3724 BUILD_SQL=no
3725
3726 BUILD_ACCESSLOG=no
3727 BUILD_AUDITLOG=no
3728 BUILD_CONSTRAINT=no
3729 BUILD_DDS=no
3730 BUILD_DENYOP=no
3731 BUILD_DYNGROUP=no
3732 BUILD_DYNLIST=no
3733 BUILD_LASTMOD=no
3734 BUILD_PPOLICY=no
3735 BUILD_PROXYCACHE=no
3736 BUILD_REFINT=no
3737 BUILD_RETCODE=no
3738 BUILD_RWM=no
3739 BUILD_SEQMOD=no
3740 BUILD_SYNCPROV=no
3741 BUILD_TRANSLUCENT=no
3742 BUILD_UNIQUE=no
3743 BUILD_VALSORT=no
3744
3745 SLAPD_STATIC_OVERLAYS=
3746 SLAPD_DYNAMIC_OVERLAYS=
3747
3748 SLAPD_MODULES_LDFLAGS=
3749 SLAPD_MODULES_CPPFLAGS=
3750
3751 SLAPD_STATIC_BACKENDS=back-ldif
3752 SLAPD_DYNAMIC_BACKENDS=
3753
3754 SLAPD_PERL_LDFLAGS=
3755 MOD_PERL_LDFLAGS=
3756 PERL_CPPFLAGS=
3757
3758 SLAPD_SQL_LDFLAGS=
3759 SLAPD_SQL_LIBS=
3760 SLAPD_SQL_INCLUDES=
3761
3762 KRB4_LIBS=
3763 KRB5_LIBS=
3764 SASL_LIBS=
3765 TLS_LIBS=
3766 MODULES_LIBS=
3767 SLAPI_LIBS=
3768 LIBSLAPI=
3769 LIBSLAPITOOLS=
3770 AUTH_LIBS=
3771 ICU_LIBS=
3772
3773 SLAPD_SLP_LIBS=
3774 SLAPD_GMP_LIBS=
3775
3776
3777
3778 cat >>confdefs.h <<\_ACEOF
3779 #define HAVE_MKVERSION 1
3780 _ACEOF
3781
3782
3783
3784
3785 ol_aix_threads=no
3786 case "$target" in
3787 *-*-aix*)       if test -z "$CC" ; then
3788                 case "$ol_with_threads" in
3789                 auto | yes |  posix) ol_aix_threads=yes ;;
3790                 esac
3791         fi
3792 ;;
3793 esac
3794
3795 if test $ol_aix_threads = yes ; then
3796         if test -z "${CC}" ; then
3797                 for ac_prog in cc_r xlc_r cc
3798 do
3799   # Extract the first word of "$ac_prog", so it can be a program name with args.
3800 set dummy $ac_prog; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_CC+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   if test -n "$CC"; then
3807   ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814   for ac_exec_ext in '' $ac_executable_extensions; do
3815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_CC="$ac_prog"
3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821 done
3822
3823 fi
3824 fi
3825 CC=$ac_cv_prog_CC
3826 if test -n "$CC"; then
3827   echo "$as_me:$LINENO: result: $CC" >&5
3828 echo "${ECHO_T}$CC" >&6
3829 else
3830   echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832 fi
3833
3834   test -n "$CC" && break
3835 done
3836
3837
3838                 if test "$CC" = cc ; then
3839                                                 if test $ol_with_threads != auto ; then
3840                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3841 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3842    { (exit 1); exit 1; }; }
3843                         else
3844                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3845 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3846                         fi
3847                         ol_with_threads=no
3848                 fi
3849         fi
3850
3851         case ${CC} in cc_r | xlc_r)
3852                 ol_with_threads=posix
3853                 ol_cv_pthread_create=yes
3854                 ;;
3855         esac
3856 fi
3857
3858 if test -z "${CC}"; then
3859         for ac_prog in cc gcc
3860 do
3861   # Extract the first word of "$ac_prog", so it can be a program name with args.
3862 set dummy $ac_prog; ac_word=$2
3863 echo "$as_me:$LINENO: checking for $ac_word" >&5
3864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3865 if test "${ac_cv_prog_CC+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   if test -n "$CC"; then
3869   ac_cv_prog_CC="$CC" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878     ac_cv_prog_CC="$ac_prog"
3879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883 done
3884
3885 fi
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889   echo "$as_me:$LINENO: result: $CC" >&5
3890 echo "${ECHO_T}$CC" >&6
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 fi
3895
3896   test -n "$CC" && break
3897 done
3898 test -n "$CC" || CC="missing"
3899
3900
3901         if test "${CC}" = "missing" ; then
3902                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3903 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3904    { (exit 1); exit 1; }; }
3905         fi
3906 fi
3907
3908 if test -z "${AR}"; then
3909         for ac_prog in ar gar
3910 do
3911   # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy $ac_prog; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_AR+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   if test -n "$AR"; then
3919   ac_cv_prog_AR="$AR" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_AR="$ac_prog"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935 fi
3936 fi
3937 AR=$ac_cv_prog_AR
3938 if test -n "$AR"; then
3939   echo "$as_me:$LINENO: result: $AR" >&5
3940 echo "${ECHO_T}$AR" >&6
3941 else
3942   echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944 fi
3945
3946   test -n "$AR" && break
3947 done
3948 test -n "$AR" || AR="missing"
3949
3950
3951         if test "${AR}" = "missing" ; then
3952                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3953 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3954    { (exit 1); exit 1; }; }
3955         fi
3956 fi
3957
3958
3959
3960
3961
3962 # Check whether --enable-fast-install or --disable-fast-install was given.
3963 if test "${enable_fast_install+set}" = set; then
3964   enableval="$enable_fast_install"
3965   p=${PACKAGE-default}
3966     case $enableval in
3967     yes) enable_fast_install=yes ;;
3968     no) enable_fast_install=no ;;
3969     *)
3970       enable_fast_install=no
3971       # Look at the argument we got.  We use all the common list separators.
3972       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3973       for pkg in $enableval; do
3974         IFS="$lt_save_ifs"
3975         if test "X$pkg" = "X$p"; then
3976           enable_fast_install=yes
3977         fi
3978       done
3979       IFS="$lt_save_ifs"
3980       ;;
3981     esac
3982 else
3983   enable_fast_install=yes
3984 fi;
3985
3986 DEPDIR="${am__leading_dot}deps"
3987
3988           ac_config_commands="$ac_config_commands depfiles"
3989
3990
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3993 am__doit:
3994         @echo done
3995 .PHONY: am__doit
3996 END
3997 # If we don't find an include directive, just comment out the code.
3998 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3999 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4000 am__include="#"
4001 am__quote=
4002 _am_result=none
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # We grep out `Entering directory' and `Leaving directory'
4006 # messages which can occur if `w' ends up in MAKEFLAGS.
4007 # In particular we don't look at `^make:' because GNU make might
4008 # be invoked under some other name (usually "gmake"), in which
4009 # case it prints its new name instead of `make'.
4010 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4011    am__include=include
4012    am__quote=
4013    _am_result=GNU
4014 fi
4015 # Now try BSD make style include.
4016 if test "$am__include" = "#"; then
4017    echo '.include "confinc"' > confmf
4018    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4019       am__include=.include
4020       am__quote="\""
4021       _am_result=BSD
4022    fi
4023 fi
4024
4025
4026 echo "$as_me:$LINENO: result: $_am_result" >&5
4027 echo "${ECHO_T}$_am_result" >&6
4028 rm -f confinc confmf
4029
4030 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then
4032   enableval="$enable_dependency_tracking"
4033
4034 fi;
4035 if test "x$enable_dependency_tracking" != xno; then
4036   am_depcomp="$ac_aux_dir/depcomp"
4037   AMDEPBACKSLASH='\'
4038 fi
4039
4040
4041 if test "x$enable_dependency_tracking" != xno; then
4042   AMDEP_TRUE=
4043   AMDEP_FALSE='#'
4044 else
4045   AMDEP_TRUE='#'
4046   AMDEP_FALSE=
4047 fi
4048
4049
4050
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 if test -n "$ac_tool_prefix"; then
4057   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4058 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_prog_CC+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   if test -n "$CC"; then
4065   ac_cv_prog_CC="$CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072   for ac_exec_ext in '' $ac_executable_extensions; do
4073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076     break 2
4077   fi
4078 done
4079 done
4080
4081 fi
4082 fi
4083 CC=$ac_cv_prog_CC
4084 if test -n "$CC"; then
4085   echo "$as_me:$LINENO: result: $CC" >&5
4086 echo "${ECHO_T}$CC" >&6
4087 else
4088   echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4090 fi
4091
4092 fi
4093 if test -z "$ac_cv_prog_CC"; then
4094   ac_ct_CC=$CC
4095   # Extract the first word of "gcc", so it can be a program name with args.
4096 set dummy gcc; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   if test -n "$ac_ct_CC"; then
4103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110   for ac_exec_ext in '' $ac_executable_extensions; do
4111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112     ac_cv_prog_ac_ct_CC="gcc"
4113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117 done
4118
4119 fi
4120 fi
4121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4122 if test -n "$ac_ct_CC"; then
4123   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4124 echo "${ECHO_T}$ac_ct_CC" >&6
4125 else
4126   echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4128 fi
4129
4130   CC=$ac_ct_CC
4131 else
4132   CC="$ac_cv_prog_CC"
4133 fi
4134
4135 if test -z "$CC"; then
4136   if test -n "$ac_tool_prefix"; then
4137   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}cc; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_prog_CC+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   if test -n "$CC"; then
4145   ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152   for ac_exec_ext in '' $ac_executable_extensions; do
4153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154     ac_cv_prog_CC="${ac_tool_prefix}cc"
4155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159 done
4160
4161 fi
4162 fi
4163 CC=$ac_cv_prog_CC
4164 if test -n "$CC"; then
4165   echo "$as_me:$LINENO: result: $CC" >&5
4166 echo "${ECHO_T}$CC" >&6
4167 else
4168   echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6
4170 fi
4171
4172 fi
4173 if test -z "$ac_cv_prog_CC"; then
4174   ac_ct_CC=$CC
4175   # Extract the first word of "cc", so it can be a program name with args.
4176 set dummy cc; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   if test -n "$ac_ct_CC"; then
4183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   for ac_exec_ext in '' $ac_executable_extensions; do
4191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192     ac_cv_prog_ac_ct_CC="cc"
4193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197 done
4198
4199 fi
4200 fi
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4204 echo "${ECHO_T}$ac_ct_CC" >&6
4205 else
4206   echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208 fi
4209
4210   CC=$ac_ct_CC
4211 else
4212   CC="$ac_cv_prog_CC"
4213 fi
4214
4215 fi
4216 if test -z "$CC"; then
4217   # Extract the first word of "cc", so it can be a program name with args.
4218 set dummy cc; ac_word=$2
4219 echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_CC+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   if test -n "$CC"; then
4225   ac_cv_prog_CC="$CC" # Let the user override the test.
4226 else
4227   ac_prog_rejected=no
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4236        ac_prog_rejected=yes
4237        continue
4238      fi
4239     ac_cv_prog_CC="cc"
4240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244 done
4245
4246 if test $ac_prog_rejected = yes; then
4247   # We found a bogon in the path, so make sure we never use it.
4248   set dummy $ac_cv_prog_CC
4249   shift
4250   if test $# != 0; then
4251     # We chose a different compiler from the bogus one.
4252     # However, it has the same basename, so the bogon will be chosen
4253     # first if we set CC to just the basename; use the full file name.
4254     shift
4255     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4256   fi
4257 fi
4258 fi
4259 fi
4260 CC=$ac_cv_prog_CC
4261 if test -n "$CC"; then
4262   echo "$as_me:$LINENO: result: $CC" >&5
4263 echo "${ECHO_T}$CC" >&6
4264 else
4265   echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4267 fi
4268
4269 fi
4270 if test -z "$CC"; then
4271   if test -n "$ac_tool_prefix"; then
4272   for ac_prog in cl
4273   do
4274     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_CC+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   if test -n "$CC"; then
4282   ac_cv_prog_CC="$CC" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296 done
4297
4298 fi
4299 fi
4300 CC=$ac_cv_prog_CC
4301 if test -n "$CC"; then
4302   echo "$as_me:$LINENO: result: $CC" >&5
4303 echo "${ECHO_T}$CC" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309     test -n "$CC" && break
4310   done
4311 fi
4312 if test -z "$CC"; then
4313   ac_ct_CC=$CC
4314   for ac_prog in cl
4315 do
4316   # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$ac_ct_CC"; then
4324   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_ac_ct_CC="$ac_prog"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340 fi
4341 fi
4342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4343 if test -n "$ac_ct_CC"; then
4344   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4345 echo "${ECHO_T}$ac_ct_CC" >&6
4346 else
4347   echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351   test -n "$ac_ct_CC" && break
4352 done
4353
4354   CC=$ac_ct_CC
4355 fi
4356
4357 fi
4358
4359
4360 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4361 See \`config.log' for more details." >&5
4362 echo "$as_me: error: no acceptable C compiler found in \$PATH
4363 See \`config.log' for more details." >&2;}
4364    { (exit 1); exit 1; }; }
4365
4366 # Provide some information about the compiler.
4367 echo "$as_me:$LINENO:" \
4368      "checking for C compiler version" >&5
4369 ac_compiler=`set X $ac_compile; echo $2`
4370 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4371   (eval $ac_compiler --version </dev/null >&5) 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }
4375 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4376   (eval $ac_compiler -v </dev/null >&5) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }
4380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4381   (eval $ac_compiler -V </dev/null >&5) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }
4385
4386 cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 ac_clean_files_save=$ac_clean_files
4402 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4403 # Try to create an executable without -o first, disregard a.out.
4404 # It will help us diagnose broken compilers, and finding out an intuition
4405 # of exeext.
4406 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4407 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4408 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4410   (eval $ac_link_default) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; then
4414   # Find the output, starting from the most likely.  This scheme is
4415 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4416 # resort.
4417
4418 # Be careful to initialize this variable, since it used to be cached.
4419 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4420 ac_cv_exeext=
4421 # b.out is created by i960 compilers.
4422 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4423 do
4424   test -f "$ac_file" || continue
4425   case $ac_file in
4426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4427         ;;
4428     conftest.$ac_ext )
4429         # This is the source file.
4430         ;;
4431     [ab].out )
4432         # We found the default executable, but exeext='' is most
4433         # certainly right.
4434         break;;
4435     *.* )
4436         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4437         # FIXME: I believe we export ac_cv_exeext for Libtool,
4438         # but it would be cool to find out if it's true.  Does anybody
4439         # maintain Libtool? --akim.
4440         export ac_cv_exeext
4441         break;;
4442     * )
4443         break;;
4444   esac
4445 done
4446 else
4447   echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4449
4450 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4451 See \`config.log' for more details." >&5
4452 echo "$as_me: error: C compiler cannot create executables
4453 See \`config.log' for more details." >&2;}
4454    { (exit 77); exit 77; }; }
4455 fi
4456
4457 ac_exeext=$ac_cv_exeext
4458 echo "$as_me:$LINENO: result: $ac_file" >&5
4459 echo "${ECHO_T}$ac_file" >&6
4460
4461 # Check the compiler produces executables we can run.  If not, either
4462 # the compiler is broken, or we cross compile.
4463 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4464 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4466 # If not cross compiling, check that we can run a simple program.
4467 if test "$cross_compiling" != yes; then
4468   if { ac_try='./$ac_file'
4469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470   (eval $ac_try) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; }; then
4474     cross_compiling=no
4475   else
4476     if test "$cross_compiling" = maybe; then
4477         cross_compiling=yes
4478     else
4479         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4480 If you meant to cross compile, use \`--host'.
4481 See \`config.log' for more details." >&5
4482 echo "$as_me: error: cannot run C compiled programs.
4483 If you meant to cross compile, use \`--host'.
4484 See \`config.log' for more details." >&2;}
4485    { (exit 1); exit 1; }; }
4486     fi
4487   fi
4488 fi
4489 echo "$as_me:$LINENO: result: yes" >&5
4490 echo "${ECHO_T}yes" >&6
4491
4492 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4493 ac_clean_files=$ac_clean_files_save
4494 # Check the compiler produces executables we can run.  If not, either
4495 # the compiler is broken, or we cross compile.
4496 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4497 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4498 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4499 echo "${ECHO_T}$cross_compiling" >&6
4500
4501 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4502 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504   (eval $ac_link) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; then
4508   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4510 # work properly (i.e., refer to `conftest.exe'), while it won't with
4511 # `rm'.
4512 for ac_file in conftest.exe conftest conftest.*; do
4513   test -f "$ac_file" || continue
4514   case $ac_file in
4515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4516     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517           export ac_cv_exeext
4518           break;;
4519     * ) break;;
4520   esac
4521 done
4522 else
4523   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4524 See \`config.log' for more details." >&5
4525 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4526 See \`config.log' for more details." >&2;}
4527    { (exit 1); exit 1; }; }
4528 fi
4529
4530 rm -f conftest$ac_cv_exeext
4531 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4532 echo "${ECHO_T}$ac_cv_exeext" >&6
4533
4534 rm -f conftest.$ac_ext
4535 EXEEXT=$ac_cv_exeext
4536 ac_exeext=$EXEEXT
4537 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4538 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4539 if test "${ac_cv_objext+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548
4549 int
4550 main ()
4551 {
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.o conftest.obj
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559   (eval $ac_compile) 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; then
4563   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4564   case $ac_file in
4565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4566     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4567        break;;
4568   esac
4569 done
4570 else
4571   echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4575 See \`config.log' for more details." >&5
4576 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4577 See \`config.log' for more details." >&2;}
4578    { (exit 1); exit 1; }; }
4579 fi
4580
4581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4582 fi
4583 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4584 echo "${ECHO_T}$ac_cv_objext" >&6
4585 OBJEXT=$ac_cv_objext
4586 ac_objext=$OBJEXT
4587 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4588 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4589 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592   cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602 #ifndef __GNUC__
4603        choke me
4604 #endif
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612   (eval $ac_compile) 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } &&
4619          { ac_try='test -z "$ac_c_werror_flag"
4620                          || test ! -s conftest.err'
4621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622   (eval $ac_try) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; } &&
4626          { ac_try='test -s conftest.$ac_objext'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_compiler_gnu=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_compiler_gnu=no
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4641
4642 fi
4643 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4644 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4645 GCC=`test $ac_compiler_gnu = yes && echo yes`
4646 ac_test_CFLAGS=${CFLAGS+set}
4647 ac_save_CFLAGS=$CFLAGS
4648 CFLAGS="-g"
4649 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4650 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4651 if test "${ac_cv_prog_cc_g+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671   (eval $ac_compile) 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } &&
4678          { ac_try='test -z "$ac_c_werror_flag"
4679                          || test ! -s conftest.err'
4680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681   (eval $ac_try) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; } &&
4685          { ac_try='test -s conftest.$ac_objext'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   ac_cv_prog_cc_g=yes
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_cv_prog_cc_g=no
4697 fi
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 fi
4700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4701 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4702 if test "$ac_test_CFLAGS" = set; then
4703   CFLAGS=$ac_save_CFLAGS
4704 elif test $ac_cv_prog_cc_g = yes; then
4705   if test "$GCC" = yes; then
4706     CFLAGS="-g -O2"
4707   else
4708     CFLAGS="-g"
4709   fi
4710 else
4711   if test "$GCC" = yes; then
4712     CFLAGS="-O2"
4713   else
4714     CFLAGS=
4715   fi
4716 fi
4717 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4718 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4719 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   ac_cv_prog_cc_stdc=no
4723 ac_save_CC=$CC
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #include <stdarg.h>
4731 #include <stdio.h>
4732 #include <sys/types.h>
4733 #include <sys/stat.h>
4734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4735 struct buf { int x; };
4736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4737 static char *e (p, i)
4738      char **p;
4739      int i;
4740 {
4741   return p[i];
4742 }
4743 static char *f (char * (*g) (char **, int), char **p, ...)
4744 {
4745   char *s;
4746   va_list v;
4747   va_start (v,p);
4748   s = g (p, va_arg (v,int));
4749   va_end (v);
4750   return s;
4751 }
4752
4753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4754    function prototypes and stuff, but not '\xHH' hex character constants.
4755    These don't provoke an error unfortunately, instead are silently treated
4756    as 'x'.  The following induces an error, until -std1 is added to get
4757    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4758    array size at least.  It's necessary to write '\x00'==0 to get something
4759    that's true only with -std1.  */
4760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4761
4762 int test (int i, double x);
4763 struct s1 {int (*f) (int a);};
4764 struct s2 {int (*f) (double a);};
4765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4766 int argc;
4767 char **argv;
4768 int
4769 main ()
4770 {
4771 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 # Don't try gcc -ansi; that turns off useful extensions and
4777 # breaks some systems' header files.
4778 # AIX                   -qlanglvl=ansi
4779 # Ultrix and OSF/1      -std1
4780 # HP-UX 10.20 and later -Ae
4781 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4782 # SVR4                  -Xc -D__EXTENSIONS__
4783 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4784 do
4785   CC="$ac_save_CC $ac_arg"
4786   rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } &&
4795          { ac_try='test -z "$ac_c_werror_flag"
4796                          || test ! -s conftest.err'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; } &&
4802          { ac_try='test -s conftest.$ac_objext'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   ac_cv_prog_cc_stdc=$ac_arg
4809 break
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 fi
4815 rm -f conftest.err conftest.$ac_objext
4816 done
4817 rm -f conftest.$ac_ext conftest.$ac_objext
4818 CC=$ac_save_CC
4819
4820 fi
4821
4822 case "x$ac_cv_prog_cc_stdc" in
4823   x|xno)
4824     echo "$as_me:$LINENO: result: none needed" >&5
4825 echo "${ECHO_T}none needed" >&6 ;;
4826   *)
4827     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4828 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4829     CC="$CC $ac_cv_prog_cc_stdc" ;;
4830 esac
4831
4832 # Some people use a C++ compiler to compile C.  Since we use `exit',
4833 # in C++ we need to declare it.  In case someone uses the same compiler
4834 # for both compiling C and C++ we need to have the C++ compiler decide
4835 # the declaration of exit, since it's the most demanding environment.
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #ifndef __cplusplus
4838   choke me
4839 #endif
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843   (eval $ac_compile) 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } &&
4850          { ac_try='test -z "$ac_c_werror_flag"
4851                          || test ! -s conftest.err'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; } &&
4857          { ac_try='test -s conftest.$ac_objext'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   for ac_declaration in \
4864    '' \
4865    'extern "C" void std::exit (int) throw (); using std::exit;' \
4866    'extern "C" void std::exit (int); using std::exit;' \
4867    'extern "C" void exit (int) throw ();' \
4868    'extern "C" void exit (int);' \
4869    'void exit (int);'
4870 do
4871   cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877 $ac_declaration
4878 #include <stdlib.h>
4879 int
4880 main ()
4881 {
4882 exit (42);
4883   ;
4884   return 0;
4885 }
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   :
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 continue
4915 fi
4916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 int
4925 main ()
4926 {
4927 exit (42);
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } &&
4941          { ac_try='test -z "$ac_c_werror_flag"
4942                          || test ! -s conftest.err'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; } &&
4948          { ac_try='test -s conftest.$ac_objext'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   break
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 fi
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 done
4962 rm -f conftest*
4963 if test -n "$ac_declaration"; then
4964   echo '#ifdef __cplusplus' >>confdefs.h
4965   echo $ac_declaration      >>confdefs.h
4966   echo '#endif'             >>confdefs.h
4967 fi
4968
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 fi
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981 depcc="$CC"   am_compiler_list=
4982
4983 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4984 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4985 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4989   # We make a subdir and do the tests there.  Otherwise we can end up
4990   # making bogus files that we don't know about and never remove.  For
4991   # instance it was reported that on HP-UX the gcc test will end up
4992   # making a dummy file named `D' -- because `-MD' means `put the output
4993   # in D'.
4994   mkdir conftest.dir
4995   # Copy depcomp to subdir because otherwise we won't find it if we're
4996   # using a relative directory.
4997   cp "$am_depcomp" conftest.dir
4998   cd conftest.dir
4999   # We will build objects and dependencies in a subdirectory because
5000   # it helps to detect inapplicable dependency modes.  For instance
5001   # both Tru64's cc and ICC support -MD to output dependencies as a
5002   # side effect of compilation, but ICC will put the dependencies in
5003   # the current directory while Tru64 will put them in the object
5004   # directory.
5005   mkdir sub
5006
5007   am_cv_CC_dependencies_compiler_type=none
5008   if test "$am_compiler_list" = ""; then
5009      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5010   fi
5011   for depmode in $am_compiler_list; do
5012     # Setup a source with many dependencies, because some compilers
5013     # like to wrap large dependency lists on column 80 (with \), and
5014     # we should not choose a depcomp mode which is confused by this.
5015     #
5016     # We need to recreate these files for each test, as the compiler may
5017     # overwrite some of them when testing with obscure command lines.
5018     # This happens at least with the AIX C compiler.
5019     : > sub/conftest.c
5020     for i in 1 2 3 4 5 6; do
5021       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5022       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5023       # Solaris 8's {/usr,}/bin/sh.
5024       touch sub/conftst$i.h
5025     done
5026     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5027
5028     case $depmode in
5029     nosideeffect)
5030       # after this tag, mechanisms are not by side-effect, so they'll
5031       # only be used when explicitly requested
5032       if test "x$enable_dependency_tracking" = xyes; then
5033         continue
5034       else
5035         break
5036       fi
5037       ;;
5038     none) break ;;
5039     esac
5040     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5041     # mode.  It turns out that the SunPro C++ compiler does not properly
5042     # handle `-M -o', and we need to detect this.
5043     if depmode=$depmode \
5044        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5045        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5046        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5047          >/dev/null 2>conftest.err &&
5048        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5050        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051       # icc doesn't choke on unknown options, it will just issue warnings
5052       # or remarks (even with -Werror).  So we grep stderr for any message
5053       # that says an option was ignored or not supported.
5054       # When given -MP, icc 7.0 and 7.1 complain thusly:
5055       #   icc: Command line warning: ignoring option '-M'; no argument required
5056       # The diagnosis changed in icc 8.0:
5057       #   icc: Command line remark: option '-MP' not supported
5058       if (grep 'ignoring option' conftest.err ||
5059           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060         am_cv_CC_dependencies_compiler_type=$depmode
5061         break
5062       fi
5063     fi
5064   done
5065
5066   cd ..
5067   rm -rf conftest.dir
5068 else
5069   am_cv_CC_dependencies_compiler_type=none
5070 fi
5071
5072 fi
5073 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077
5078
5079 if
5080   test "x$enable_dependency_tracking" != xno \
5081   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5082   am__fastdepCC_TRUE=
5083   am__fastdepCC_FALSE='#'
5084 else
5085   am__fastdepCC_TRUE='#'
5086   am__fastdepCC_FALSE=
5087 fi
5088
5089
5090 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5091 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5092 if test "${lt_cv_path_SED+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   # Loop through the user's path and test for sed and gsed.
5096 # Then use that list of sed's as ones to test for truncation.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for lt_ac_prog in sed gsed; do
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5105         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5106       fi
5107     done
5108   done
5109 done
5110 lt_ac_max=0
5111 lt_ac_count=0
5112 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5113 # along with /bin/sed that truncates output.
5114 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5115   test ! -f $lt_ac_sed && continue
5116   cat /dev/null > conftest.in
5117   lt_ac_count=0
5118   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5119   # Check for GNU sed and select it if it is found.
5120   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5121     lt_cv_path_SED=$lt_ac_sed
5122     break
5123   fi
5124   while true; do
5125     cat conftest.in conftest.in >conftest.tmp
5126     mv conftest.tmp conftest.in
5127     cp conftest.in conftest.nl
5128     echo >>conftest.nl
5129     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5130     cmp -s conftest.out conftest.nl || break
5131     # 10000 chars as input seems more than enough
5132     test $lt_ac_count -gt 10 && break
5133     lt_ac_count=`expr $lt_ac_count + 1`
5134     if test $lt_ac_count -gt $lt_ac_max; then
5135       lt_ac_max=$lt_ac_count
5136       lt_cv_path_SED=$lt_ac_sed
5137     fi
5138   done
5139 done
5140
5141 fi
5142
5143 SED=$lt_cv_path_SED
5144 echo "$as_me:$LINENO: result: $SED" >&5
5145 echo "${ECHO_T}$SED" >&6
5146
5147 echo "$as_me:$LINENO: checking for egrep" >&5
5148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5149 if test "${ac_cv_prog_egrep+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5153     then ac_cv_prog_egrep='grep -E'
5154     else ac_cv_prog_egrep='egrep'
5155     fi
5156 fi
5157 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5158 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5159  EGREP=$ac_cv_prog_egrep
5160
5161
5162
5163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then
5165   withval="$with_gnu_ld"
5166   test "$withval" = no || with_gnu_ld=yes
5167 else
5168   with_gnu_ld=no
5169 fi;
5170 ac_prog=ld
5171 if test "$GCC" = yes; then
5172   # Check if gcc -print-prog-name=ld gives a path.
5173   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5174 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5175   case $host in
5176   *-*-mingw*)
5177     # gcc leaves a trailing carriage return which upsets mingw
5178     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5179   *)
5180     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5181   esac
5182   case $ac_prog in
5183     # Accept absolute paths.
5184     [\\/]* | ?:[\\/]*)
5185       re_direlt='/[^/][^/]*/\.\./'
5186       # Canonicalize the pathname of ld
5187       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5188       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5189         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5190       done
5191       test -z "$LD" && LD="$ac_prog"
5192       ;;
5193   "")
5194     # If it fails, then pretend we aren't using GCC.
5195     ac_prog=ld
5196     ;;
5197   *)
5198     # If it is relative, then search for the first ld in PATH.
5199     with_gnu_ld=unknown
5200     ;;
5201   esac
5202 elif test "$with_gnu_ld" = yes; then
5203   echo "$as_me:$LINENO: checking for GNU ld" >&5
5204 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5205 else
5206   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5207 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5208 fi
5209 if test "${lt_cv_path_LD+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   if test -z "$LD"; then
5213   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214   for ac_dir in $PATH; do
5215     IFS="$lt_save_ifs"
5216     test -z "$ac_dir" && ac_dir=.
5217     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5218       lt_cv_path_LD="$ac_dir/$ac_prog"
5219       # Check to see if the program is GNU ld.  I'd rather use --version,
5220       # but apparently some variants of GNU ld only accept -v.
5221       # Break only if it was the GNU/non-GNU ld that we prefer.
5222       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5223       *GNU* | *'with BFD'*)
5224         test "$with_gnu_ld" != no && break
5225         ;;
5226       *)
5227         test "$with_gnu_ld" != yes && break
5228         ;;
5229       esac
5230     fi
5231   done
5232   IFS="$lt_save_ifs"
5233 else
5234   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5235 fi
5236 fi
5237
5238 LD="$lt_cv_path_LD"
5239 if test -n "$LD"; then
5240   echo "$as_me:$LINENO: result: $LD" >&5
5241 echo "${ECHO_T}$LD" >&6
5242 else
5243   echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5245 fi
5246 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5247 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5248    { (exit 1); exit 1; }; }
5249 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5250 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5251 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5255 case `$LD -v 2>&1 </dev/null` in
5256 *GNU* | *'with BFD'*)
5257   lt_cv_prog_gnu_ld=yes
5258   ;;
5259 *)
5260   lt_cv_prog_gnu_ld=no
5261   ;;
5262 esac
5263 fi
5264 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5265 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5266 with_gnu_ld=$lt_cv_prog_gnu_ld
5267
5268
5269 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5270 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5271 if test "${lt_cv_ld_reload_flag+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   lt_cv_ld_reload_flag='-r'
5275 fi
5276 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5277 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5278 reload_flag=$lt_cv_ld_reload_flag
5279 case $reload_flag in
5280 "" | " "*) ;;
5281 *) reload_flag=" $reload_flag" ;;
5282 esac
5283 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5284 case $host_os in
5285   darwin*)
5286     if test "$GCC" = yes; then
5287       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5288     else
5289       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5290     fi
5291     ;;
5292 esac
5293
5294 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5295 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5296 if test "${lt_cv_path_NM+set}" = set; then
5297   echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299   if test -n "$NM"; then
5300   # Let the user override the test.
5301   lt_cv_path_NM="$NM"
5302 else
5303   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5304   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5305     IFS="$lt_save_ifs"
5306     test -z "$ac_dir" && ac_dir=.
5307     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5308     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5309       # Check to see if the nm accepts a BSD-compat flag.
5310       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5311       #   nm: unknown option "B" ignored
5312       # Tru64's nm complains that /dev/null is an invalid object file
5313       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5314       */dev/null* | *'Invalid file or object type'*)
5315         lt_cv_path_NM="$tmp_nm -B"
5316         break
5317         ;;
5318       *)
5319         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5320         */dev/null*)
5321           lt_cv_path_NM="$tmp_nm -p"
5322           break
5323           ;;
5324         *)
5325           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5326           continue # so that we can try to find one that supports BSD flags
5327           ;;
5328         esac
5329       esac
5330     fi
5331   done
5332   IFS="$lt_save_ifs"
5333   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5334 fi
5335 fi
5336 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5337 echo "${ECHO_T}$lt_cv_path_NM" >&6
5338 NM="$lt_cv_path_NM"
5339
5340 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5341 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5342 LN_S=$as_ln_s
5343 if test "$LN_S" = "ln -s"; then
5344   echo "$as_me:$LINENO: result: yes" >&5
5345 echo "${ECHO_T}yes" >&6
5346 else
5347   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5348 echo "${ECHO_T}no, using $LN_S" >&6
5349 fi
5350
5351 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5352 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5353 if test "${lt_cv_deplibs_check_method+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   lt_cv_file_magic_cmd='$MAGIC_CMD'
5357 lt_cv_file_magic_test_file=
5358 lt_cv_deplibs_check_method='unknown'
5359 # Need to set the preceding variable on all platforms that support
5360 # interlibrary dependencies.
5361 # 'none' -- dependencies not supported.
5362 # `unknown' -- same as none, but documents that we really don't know.
5363 # 'pass_all' -- all dependencies passed with no checks.
5364 # 'test_compile' -- check by making test program.
5365 # 'file_magic [[regex]]' -- check by looking for files in library path
5366 # which responds to the $file_magic_cmd with a given extended regex.
5367 # If you have `file' or equivalent on your system and you're not sure
5368 # whether `pass_all' will *always* work, you probably want this one.
5369
5370 case $host_os in
5371 aix4* | aix5*)
5372   lt_cv_deplibs_check_method=pass_all
5373   ;;
5374
5375 beos*)
5376   lt_cv_deplibs_check_method=pass_all
5377   ;;
5378
5379 bsdi[45]*)
5380   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5381   lt_cv_file_magic_cmd='/usr/bin/file -L'
5382   lt_cv_file_magic_test_file=/shlib/libc.so
5383   ;;
5384
5385 cygwin*)
5386   # func_win32_libid is a shell function defined in ltmain.sh
5387   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5388   lt_cv_file_magic_cmd='func_win32_libid'
5389   ;;
5390
5391 mingw* | pw32*)
5392   # Base MSYS/MinGW do not provide the 'file' command needed by
5393   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5394   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5395   lt_cv_file_magic_cmd='$OBJDUMP -f'
5396   ;;
5397
5398 darwin* | rhapsody*)
5399   lt_cv_deplibs_check_method=pass_all
5400   ;;
5401
5402 freebsd* | kfreebsd*-gnu | dragonfly*)
5403   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5404     case $host_cpu in
5405     i*86 )
5406       # Not sure whether the presence of OpenBSD here was a mistake.
5407       # Let's accept both of them until this is cleared up.
5408       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5409       lt_cv_file_magic_cmd=/usr/bin/file
5410       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5411       ;;
5412     esac
5413   else
5414     lt_cv_deplibs_check_method=pass_all
5415   fi
5416   ;;
5417
5418 gnu*)
5419   lt_cv_deplibs_check_method=pass_all
5420   ;;
5421
5422 hpux10.20* | hpux11*)
5423   lt_cv_file_magic_cmd=/usr/bin/file
5424   case $host_cpu in
5425   ia64*)
5426     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5427     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5428     ;;
5429   hppa*64*)
5430     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]'
5431     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5432     ;;
5433   *)
5434     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5435     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5436     ;;
5437   esac
5438   ;;
5439
5440 irix5* | irix6* | nonstopux*)
5441   case $LD in
5442   *-32|*"-32 ") libmagic=32-bit;;
5443   *-n32|*"-n32 ") libmagic=N32;;
5444   *-64|*"-64 ") libmagic=64-bit;;
5445   *) libmagic=never-match;;
5446   esac
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 # This must be Linux ELF.
5451 linux*)
5452   lt_cv_deplibs_check_method=pass_all
5453   ;;
5454
5455 netbsd*)
5456   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5457     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5458   else
5459     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5460   fi
5461   ;;
5462
5463 newos6*)
5464   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5465   lt_cv_file_magic_cmd=/usr/bin/file
5466   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5467   ;;
5468
5469 nto-qnx*)
5470   lt_cv_deplibs_check_method=unknown
5471   ;;
5472
5473 openbsd*)
5474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5475     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5476   else
5477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5478   fi
5479   ;;
5480
5481 osf3* | osf4* | osf5*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 sco3.2v5*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 solaris*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5494   case $host_vendor in
5495   motorola)
5496     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]'
5497     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5498     ;;
5499   ncr)
5500     lt_cv_deplibs_check_method=pass_all
5501     ;;
5502   sequent)
5503     lt_cv_file_magic_cmd='/bin/file'
5504     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5505     ;;
5506   sni)
5507     lt_cv_file_magic_cmd='/bin/file'
5508     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5509     lt_cv_file_magic_test_file=/lib/libc.so
5510     ;;
5511   siemens)
5512     lt_cv_deplibs_check_method=pass_all
5513     ;;
5514   esac
5515   ;;
5516
5517 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520 esac
5521
5522 fi
5523 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5524 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5525 file_magic_cmd=$lt_cv_file_magic_cmd
5526 deplibs_check_method=$lt_cv_deplibs_check_method
5527 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5528
5529
5530
5531
5532 # If no C compiler was specified, use CC.
5533 LTCC=${LTCC-"$CC"}
5534
5535 # Allow CC to be a program name with arguments.
5536 compiler=$CC
5537
5538
5539 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5540 if test "${enable_libtool_lock+set}" = set; then
5541   enableval="$enable_libtool_lock"
5542
5543 fi;
5544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5545
5546 # Some flags need to be propagated to the compiler or linker for good
5547 # libtool support.
5548 case $host in
5549 ia64-*-hpux*)
5550   # Find out which ABI we are using.
5551   echo 'int i;' > conftest.$ac_ext
5552   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553   (eval $ac_compile) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; then
5557     case `/usr/bin/file conftest.$ac_objext` in
5558     *ELF-32*)
5559       HPUX_IA64_MODE="32"
5560       ;;
5561     *ELF-64*)
5562       HPUX_IA64_MODE="64"
5563       ;;
5564     esac
5565   fi
5566   rm -rf conftest*
5567   ;;
5568 *-*-irix6*)
5569   # Find out which ABI we are using.
5570   echo '#line 5570 "configure"' > conftest.$ac_ext
5571   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572   (eval $ac_compile) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }; then
5576    if test "$lt_cv_prog_gnu_ld" = yes; then
5577     case `/usr/bin/file conftest.$ac_objext` in
5578     *32-bit*)
5579       LD="${LD-ld} -melf32bsmip"
5580       ;;
5581     *N32*)
5582       LD="${LD-ld} -melf32bmipn32"
5583       ;;
5584     *64-bit*)
5585       LD="${LD-ld} -melf64bmip"
5586       ;;
5587     esac
5588    else
5589     case `/usr/bin/file conftest.$ac_objext` in
5590     *32-bit*)
5591       LD="${LD-ld} -32"
5592       ;;
5593     *N32*)
5594       LD="${LD-ld} -n32"
5595       ;;
5596     *64-bit*)
5597       LD="${LD-ld} -64"
5598       ;;
5599     esac
5600    fi
5601   fi
5602   rm -rf conftest*
5603   ;;
5604
5605 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5606   # Find out which ABI we are using.
5607   echo 'int i;' > conftest.$ac_ext
5608   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609   (eval $ac_compile) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; then
5613     case `/usr/bin/file conftest.o` in
5614     *32-bit*)
5615       case $host in
5616         x86_64-*linux*)
5617           LD="${LD-ld} -m elf_i386"
5618           ;;
5619         ppc64-*linux*|powerpc64-*linux*)
5620           LD="${LD-ld} -m elf32ppclinux"
5621           ;;
5622         s390x-*linux*)
5623           LD="${LD-ld} -m elf_s390"
5624           ;;
5625         sparc64-*linux*)
5626           LD="${LD-ld} -m elf32_sparc"
5627           ;;
5628       esac
5629       ;;
5630     *64-bit*)
5631       case $host in
5632         x86_64-*linux*)
5633           LD="${LD-ld} -m elf_x86_64"
5634           ;;
5635         ppc*-*linux*|powerpc*-*linux*)
5636           LD="${LD-ld} -m elf64ppc"
5637           ;;
5638         s390*-*linux*)
5639           LD="${LD-ld} -m elf64_s390"
5640           ;;
5641         sparc*-*linux*)
5642           LD="${LD-ld} -m elf64_sparc"
5643           ;;
5644       esac
5645       ;;
5646     esac
5647   fi
5648   rm -rf conftest*
5649   ;;
5650
5651 *-*-sco3.2v5*)
5652   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5653   SAVE_CFLAGS="$CFLAGS"
5654   CFLAGS="$CFLAGS -belf"
5655   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5656 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5657 if test "${lt_cv_cc_needs_belf+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   ac_ext=c
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665
5666      cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683   (eval $ac_link) 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } &&
5690          { ac_try='test -z "$ac_c_werror_flag"
5691                          || test ! -s conftest.err'
5692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693   (eval $ac_try) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; } &&
5697          { ac_try='test -s conftest$ac_exeext'
5698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699   (eval $ac_try) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; }; then
5703   lt_cv_cc_needs_belf=yes
5704 else
5705   echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708 lt_cv_cc_needs_belf=no
5709 fi
5710 rm -f conftest.err conftest.$ac_objext \
5711       conftest$ac_exeext conftest.$ac_ext
5712      ac_ext=c
5713 ac_cpp='$CPP $CPPFLAGS'
5714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717
5718 fi
5719 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5720 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5721   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5722     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5723     CFLAGS="$SAVE_CFLAGS"
5724   fi
5725   ;;
5726 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5727   if test -n "$ac_tool_prefix"; then
5728   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   if test -n "$DLLTOOL"; then
5736   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751
5752 fi
5753 fi
5754 DLLTOOL=$ac_cv_prog_DLLTOOL
5755 if test -n "$DLLTOOL"; then
5756   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5757 echo "${ECHO_T}$DLLTOOL" >&6
5758 else
5759   echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5761 fi
5762
5763 fi
5764 if test -z "$ac_cv_prog_DLLTOOL"; then
5765   ac_ct_DLLTOOL=$DLLTOOL
5766   # Extract the first word of "dlltool", so it can be a program name with args.
5767 set dummy dlltool; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   if test -n "$ac_ct_DLLTOOL"; then
5774   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_exec_ext in '' $ac_executable_extensions; do
5782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788 done
5789
5790   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5791 fi
5792 fi
5793 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5794 if test -n "$ac_ct_DLLTOOL"; then
5795   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5796 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5797 else
5798   echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5800 fi
5801
5802   DLLTOOL=$ac_ct_DLLTOOL
5803 else
5804   DLLTOOL="$ac_cv_prog_DLLTOOL"
5805 fi
5806
5807   if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}as; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_AS+set}" = set; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   if test -n "$AS"; then
5816   ac_cv_prog_AS="$AS" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_prog_AS="${ac_tool_prefix}as"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831
5832 fi
5833 fi
5834 AS=$ac_cv_prog_AS
5835 if test -n "$AS"; then
5836   echo "$as_me:$LINENO: result: $AS" >&5
5837 echo "${ECHO_T}$AS" >&6
5838 else
5839   echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5841 fi
5842
5843 fi
5844 if test -z "$ac_cv_prog_AS"; then
5845   ac_ct_AS=$AS
5846   # Extract the first word of "as", so it can be a program name with args.
5847 set dummy as; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   if test -n "$ac_ct_AS"; then
5854   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for ac_exec_ext in '' $ac_executable_extensions; do
5862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863     ac_cv_prog_ac_ct_AS="as"
5864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868 done
5869
5870   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5871 fi
5872 fi
5873 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5874 if test -n "$ac_ct_AS"; then
5875   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5876 echo "${ECHO_T}$ac_ct_AS" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882   AS=$ac_ct_AS
5883 else
5884   AS="$ac_cv_prog_AS"
5885 fi
5886
5887   if test -n "$ac_tool_prefix"; then
5888   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   if test -n "$OBJDUMP"; then
5896   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911
5912 fi
5913 fi
5914 OBJDUMP=$ac_cv_prog_OBJDUMP
5915 if test -n "$OBJDUMP"; then
5916   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5917 echo "${ECHO_T}$OBJDUMP" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923 fi
5924 if test -z "$ac_cv_prog_OBJDUMP"; then
5925   ac_ct_OBJDUMP=$OBJDUMP
5926   # Extract the first word of "objdump", so it can be a program name with args.
5927 set dummy objdump; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   if test -n "$ac_ct_OBJDUMP"; then
5934   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949
5950   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5951 fi
5952 fi
5953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5954 if test -n "$ac_ct_OBJDUMP"; then
5955   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5956 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962   OBJDUMP=$ac_ct_OBJDUMP
5963 else
5964   OBJDUMP="$ac_cv_prog_OBJDUMP"
5965 fi
5966
5967   ;;
5968
5969 esac
5970
5971 need_locks="$enable_libtool_lock"
5972
5973
5974 ac_ext=c
5975 ac_cpp='$CPP $CPPFLAGS'
5976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5981 # On Suns, sometimes $CPP names a directory.
5982 if test -n "$CPP" && test -d "$CPP"; then
5983   CPP=
5984 fi
5985 if test -z "$CPP"; then
5986   if test "${ac_cv_prog_CPP+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989       # Double quotes because CPP needs to be expanded
5990     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5991     do
5992       ac_preproc_ok=false
5993 for ac_c_preproc_warn_flag in '' yes
5994 do
5995   # Use a header file that comes with gcc, so configuring glibc
5996   # with a fresh cross-compiler works.
5997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5998   # <limits.h> exists even on freestanding compilers.
5999   # On the NeXT, cc -E runs the code through the compiler's parser,
6000   # not just through cpp. "Syntax error" is here to catch this case.
6001   cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007 #ifdef __STDC__
6008 # include <limits.h>
6009 #else
6010 # include <assert.h>
6011 #endif
6012                      Syntax error
6013 _ACEOF
6014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } >/dev/null; then
6022   if test -s conftest.err; then
6023     ac_cpp_err=$ac_c_preproc_warn_flag
6024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6025   else
6026     ac_cpp_err=
6027   fi
6028 else
6029   ac_cpp_err=yes
6030 fi
6031 if test -z "$ac_cpp_err"; then
6032   :
6033 else
6034   echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037   # Broken: fails on valid input.
6038 continue
6039 fi
6040 rm -f conftest.err conftest.$ac_ext
6041
6042   # OK, works on sane cases.  Now check whether non-existent headers
6043   # can be detected and how.
6044   cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <ac_nonexistent.h>
6051 _ACEOF
6052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054   ac_status=$?
6055   grep -v '^ *+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
6057   cat conftest.err >&5
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } >/dev/null; then
6060   if test -s conftest.err; then
6061     ac_cpp_err=$ac_c_preproc_warn_flag
6062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6063   else
6064     ac_cpp_err=
6065   fi
6066 else
6067   ac_cpp_err=yes
6068 fi
6069 if test -z "$ac_cpp_err"; then
6070   # Broken: success on invalid input.
6071 continue
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076   # Passes both tests.
6077 ac_preproc_ok=:
6078 break
6079 fi
6080 rm -f conftest.err conftest.$ac_ext
6081
6082 done
6083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6084 rm -f conftest.err conftest.$ac_ext
6085 if $ac_preproc_ok; then
6086   break
6087 fi
6088
6089     done
6090     ac_cv_prog_CPP=$CPP
6091
6092 fi
6093   CPP=$ac_cv_prog_CPP
6094 else
6095   ac_cv_prog_CPP=$CPP
6096 fi
6097 echo "$as_me:$LINENO: result: $CPP" >&5
6098 echo "${ECHO_T}$CPP" >&6
6099 ac_preproc_ok=false
6100 for ac_c_preproc_warn_flag in '' yes
6101 do
6102   # Use a header file that comes with gcc, so configuring glibc
6103   # with a fresh cross-compiler works.
6104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6105   # <limits.h> exists even on freestanding compilers.
6106   # On the NeXT, cc -E runs the code through the compiler's parser,
6107   # not just through cpp. "Syntax error" is here to catch this case.
6108   cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 #ifdef __STDC__
6115 # include <limits.h>
6116 #else
6117 # include <assert.h>
6118 #endif
6119                      Syntax error
6120 _ACEOF
6121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } >/dev/null; then
6129   if test -s conftest.err; then
6130     ac_cpp_err=$ac_c_preproc_warn_flag
6131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6132   else
6133     ac_cpp_err=
6134   fi
6135 else
6136   ac_cpp_err=yes
6137 fi
6138 if test -z "$ac_cpp_err"; then
6139   :
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144   # Broken: fails on valid input.
6145 continue
6146 fi
6147 rm -f conftest.err conftest.$ac_ext
6148
6149   # OK, works on sane cases.  Now check whether non-existent headers
6150   # can be detected and how.
6151   cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 #include <ac_nonexistent.h>
6158 _ACEOF
6159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } >/dev/null; then
6167   if test -s conftest.err; then
6168     ac_cpp_err=$ac_c_preproc_warn_flag
6169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6170   else
6171     ac_cpp_err=
6172   fi
6173 else
6174   ac_cpp_err=yes
6175 fi
6176 if test -z "$ac_cpp_err"; then
6177   # Broken: success on invalid input.
6178 continue
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183   # Passes both tests.
6184 ac_preproc_ok=:
6185 break
6186 fi
6187 rm -f conftest.err conftest.$ac_ext
6188
6189 done
6190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6191 rm -f conftest.err conftest.$ac_ext
6192 if $ac_preproc_ok; then
6193   :
6194 else
6195   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6198 See \`config.log' for more details." >&2;}
6199    { (exit 1); exit 1; }; }
6200 fi
6201
6202 ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208
6209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6211 if test "${ac_cv_header_stdc+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220 #include <stdlib.h>
6221 #include <stdarg.h>
6222 #include <string.h>
6223 #include <float.h>
6224
6225 int
6226 main ()
6227 {
6228
6229   ;
6230   return 0;
6231 }
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235   (eval $ac_compile) 2>conftest.er1
6236   ac_status=$?
6237   grep -v '^ *+' conftest.er1 >conftest.err
6238   rm -f conftest.er1
6239   cat conftest.err >&5
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); } &&
6242          { ac_try='test -z "$ac_c_werror_flag"
6243                          || test ! -s conftest.err'
6244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245   (eval $ac_try) 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); }; } &&
6249          { ac_try='test -s conftest.$ac_objext'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; }; then
6255   ac_cv_header_stdc=yes
6256 else
6257   echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6259
6260 ac_cv_header_stdc=no
6261 fi
6262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6263
6264 if test $ac_cv_header_stdc = yes; then
6265   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266   cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h.  */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h.  */
6272 #include <string.h>
6273
6274 _ACEOF
6275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276   $EGREP "memchr" >/dev/null 2>&1; then
6277   :
6278 else
6279   ac_cv_header_stdc=no
6280 fi
6281 rm -f conftest*
6282
6283 fi
6284
6285 if test $ac_cv_header_stdc = yes; then
6286   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6287   cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 #include <stdlib.h>
6294
6295 _ACEOF
6296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297   $EGREP "free" >/dev/null 2>&1; then
6298   :
6299 else
6300   ac_cv_header_stdc=no
6301 fi
6302 rm -f conftest*
6303
6304 fi
6305
6306 if test $ac_cv_header_stdc = yes; then
6307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6308   if test "$cross_compiling" = yes; then
6309   :
6310 else
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 #include <ctype.h>
6318 #if ((' ' & 0x0FF) == 0x020)
6319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6321 #else
6322 # define ISLOWER(c) \
6323                    (('a' <= (c) && (c) <= 'i') \
6324                      || ('j' <= (c) && (c) <= 'r') \
6325                      || ('s' <= (c) && (c) <= 'z'))
6326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6327 #endif
6328
6329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6330 int
6331 main ()
6332 {
6333   int i;
6334   for (i = 0; i < 256; i++)
6335     if (XOR (islower (i), ISLOWER (i))
6336         || toupper (i) != TOUPPER (i))
6337       exit(2);
6338   exit (0);
6339 }
6340 _ACEOF
6341 rm -f conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348   (eval $ac_try) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); }; }; then
6352   :
6353 else
6354   echo "$as_me: program exited with status $ac_status" >&5
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ( exit $ac_status )
6359 ac_cv_header_stdc=no
6360 fi
6361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6362 fi
6363 fi
6364 fi
6365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6367 if test $ac_cv_header_stdc = yes; then
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define STDC_HEADERS 1
6371 _ACEOF
6372
6373 fi
6374
6375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6386                   inttypes.h stdint.h unistd.h
6387 do
6388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389 echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400 $ac_includes_default
6401
6402 #include <$ac_header>
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406   (eval $ac_compile) 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -z "$ac_c_werror_flag"
6414                          || test ! -s conftest.err'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; } &&
6420          { ac_try='test -s conftest.$ac_objext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   eval "$as_ac_Header=yes"
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 eval "$as_ac_Header=no"
6432 fi
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438   cat >>confdefs.h <<_ACEOF
6439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440 _ACEOF
6441
6442 fi
6443
6444 done
6445
6446
6447
6448 for ac_header in dlfcn.h
6449 do
6450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452   echo "$as_me:$LINENO: checking for $ac_header" >&5
6453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 fi
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6459 else
6460   # Is the header compilable?
6461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469 $ac_includes_default
6470 #include <$ac_header>
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474   (eval $ac_compile) 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -z "$ac_c_werror_flag"
6482                          || test ! -s conftest.err'
6483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484   (eval $ac_try) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); }; } &&
6488          { ac_try='test -s conftest.$ac_objext'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; }; then
6494   ac_header_compiler=yes
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 ac_header_compiler=no
6500 fi
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503 echo "${ECHO_T}$ac_header_compiler" >&6
6504
6505 # Is the header present?
6506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h.  */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h.  */
6514 #include <$ac_header>
6515 _ACEOF
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } >/dev/null; then
6524   if test -s conftest.err; then
6525     ac_cpp_err=$ac_c_preproc_warn_flag
6526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6527   else
6528     ac_cpp_err=
6529   fi
6530 else
6531   ac_cpp_err=yes
6532 fi
6533 if test -z "$ac_cpp_err"; then
6534   ac_header_preproc=yes
6535 else
6536   echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539   ac_header_preproc=no
6540 fi
6541 rm -f conftest.err conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6543 echo "${ECHO_T}$ac_header_preproc" >&6
6544
6545 # So?  What about this header?
6546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6547   yes:no: )
6548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6552     ac_header_preproc=yes
6553     ;;
6554   no:yes:* )
6555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6567     (
6568       cat <<\_ASBOX
6569 ## --------------------------------------------- ##
6570 ## Report this to <http://www.openldap.org/its/> ##
6571 ## --------------------------------------------- ##
6572 _ASBOX
6573     ) |
6574       sed "s/^/$as_me: WARNING:     /" >&2
6575     ;;
6576 esac
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   eval "$as_ac_Header=\$ac_header_preproc"
6583 fi
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6586
6587 fi
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589   cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 _ACEOF
6592
6593 fi
6594
6595 done
6596
6597
6598 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6599
6600 # find the maximum length of command line arguments
6601 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6602 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6603 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606     i=0
6607   teststring="ABCD"
6608
6609   case $build_os in
6610   msdosdjgpp*)
6611     # On DJGPP, this test can blow up pretty badly due to problems in libc
6612     # (any single argument exceeding 2000 bytes causes a buffer overrun
6613     # during glob expansion).  Even if it were fixed, the result of this
6614     # check would be larger than it should be.
6615     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6616     ;;
6617
6618   gnu*)
6619     # Under GNU Hurd, this test is not required because there is
6620     # no limit to the length of command line arguments.
6621     # Libtool will interpret -1 as no limit whatsoever
6622     lt_cv_sys_max_cmd_len=-1;
6623     ;;
6624
6625   cygwin* | mingw*)
6626     # On Win9x/ME, this test blows up -- it succeeds, but takes
6627     # about 5 minutes as the teststring grows exponentially.
6628     # Worse, since 9x/ME are not pre-emptively multitasking,
6629     # you end up with a "frozen" computer, even though with patience
6630     # the test eventually succeeds (with a max line length of 256k).
6631     # Instead, let's just punt: use the minimum linelength reported by
6632     # all of the supported platforms: 8192 (on NT/2K/XP).
6633     lt_cv_sys_max_cmd_len=8192;
6634     ;;
6635
6636   amigaos*)
6637     # On AmigaOS with pdksh, this test takes hours, literally.
6638     # So we just punt and use a minimum line length of 8192.
6639     lt_cv_sys_max_cmd_len=8192;
6640     ;;
6641
6642   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6643     # This has been around since 386BSD, at least.  Likely further.
6644     if test -x /sbin/sysctl; then
6645       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6646     elif test -x /usr/sbin/sysctl; then
6647       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6648     else
6649       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6650     fi
6651     # And add a safety zone
6652     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6653     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6654     ;;
6655   osf*)
6656     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6657     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6658     # nice to cause kernel panics so lets avoid the loop below.
6659     # First set a reasonable default.
6660     lt_cv_sys_max_cmd_len=16384
6661     #
6662     if test -x /sbin/sysconfig; then
6663       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6664         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6665       esac
6666     fi
6667     ;;
6668   *)
6669     # If test is not a shell built-in, we'll probably end up computing a
6670     # maximum length that is only half of the actual maximum length, but
6671     # we can't tell.
6672     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6673     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6674                = "XX$teststring") >/dev/null 2>&1 &&
6675             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6676             lt_cv_sys_max_cmd_len=$new_result &&
6677             test $i != 17 # 1/2 MB should be enough
6678     do
6679       i=`expr $i + 1`
6680       teststring=$teststring$teststring
6681     done
6682     teststring=
6683     # Add a significant safety factor because C++ compilers can tack on massive
6684     # amounts of additional arguments before passing them to the linker.
6685     # It appears as though 1/2 is a usable value.
6686     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6687     ;;
6688   esac
6689
6690 fi
6691
6692 if test -n $lt_cv_sys_max_cmd_len ; then
6693   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6694 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6695 else
6696   echo "$as_me:$LINENO: result: none" >&5
6697 echo "${ECHO_T}none" >&6
6698 fi
6699
6700
6701
6702
6703 # Check for command to grab the raw symbol name followed by C symbol from nm.
6704 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6705 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6706 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709
6710 # These are sane defaults that work on at least a few old systems.
6711 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6712
6713 # Character class describing NM global symbol codes.
6714 symcode='[BCDEGRST]'
6715
6716 # Regexp to match symbols that can be accessed directly from C.
6717 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6718
6719 # Transform an extracted symbol line into a proper C declaration
6720 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6721
6722 # Transform an extracted symbol line into symbol name and symbol address
6723 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'"
6724
6725 # Define system-specific variables.
6726 case $host_os in
6727 aix*)
6728   symcode='[BCDT]'
6729   ;;
6730 cygwin* | mingw* | pw32*)
6731   symcode='[ABCDGISTW]'
6732   ;;
6733 hpux*) # Its linker distinguishes data from code symbols
6734   if test "$host_cpu" = ia64; then
6735     symcode='[ABCDEGRST]'
6736   fi
6737   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738   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'"
6739   ;;
6740 linux*)
6741   if test "$host_cpu" = ia64; then
6742     symcode='[ABCDGIRSTW]'
6743     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6744     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'"
6745   fi
6746   ;;
6747 irix* | nonstopux*)
6748   symcode='[BCDEGRST]'
6749   ;;
6750 osf*)
6751   symcode='[BCDEGQRST]'
6752   ;;
6753 solaris* | sysv5*)
6754   symcode='[BDRT]'
6755   ;;
6756 sysv4)
6757   symcode='[DFNSTU]'
6758   ;;
6759 esac
6760
6761 # Handle CRLF in mingw tool chain
6762 opt_cr=
6763 case $build_os in
6764 mingw*)
6765   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6766   ;;
6767 esac
6768
6769 # If we're using GNU nm, then use its standard symbol codes.
6770 case `$NM -V 2>&1` in
6771 *GNU* | *'with BFD'*)
6772   symcode='[ABCDGIRSTW]' ;;
6773 esac
6774
6775 # Try without a prefix undercore, then with it.
6776 for ac_symprfx in "" "_"; do
6777
6778   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6779   symxfrm="\\1 $ac_symprfx\\2 \\2"
6780
6781   # Write the raw and C identifiers.
6782   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6783
6784   # Check to see that the pipe works correctly.
6785   pipe_works=no
6786
6787   rm -f conftest*
6788   cat > conftest.$ac_ext <<EOF
6789 #ifdef __cplusplus
6790 extern "C" {
6791 #endif
6792 char nm_test_var;
6793 void nm_test_func(){}
6794 #ifdef __cplusplus
6795 }
6796 #endif
6797 int main(){nm_test_var='a';nm_test_func();return(0);}
6798 EOF
6799
6800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801   (eval $ac_compile) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; then
6805     # Now try to grab the symbols.
6806     nlist=conftest.nm
6807     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6808   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } && test -s "$nlist"; then
6812       # Try sorting and uniquifying the output.
6813       if sort "$nlist" | uniq > "$nlist"T; then
6814         mv -f "$nlist"T "$nlist"
6815       else
6816         rm -f "$nlist"T
6817       fi
6818
6819       # Make sure that we snagged all the symbols we need.
6820       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6821         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6822           cat <<EOF > conftest.$ac_ext
6823 #ifdef __cplusplus
6824 extern "C" {
6825 #endif
6826
6827 EOF
6828           # Now generate the symbol file.
6829           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6830
6831           cat <<EOF >> conftest.$ac_ext
6832 #if defined (__STDC__) && __STDC__
6833 # define lt_ptr_t void *
6834 #else
6835 # define lt_ptr_t char *
6836 # define const
6837 #endif
6838
6839 /* The mapping between symbol names and symbols. */
6840 const struct {
6841   const char *name;
6842   lt_ptr_t address;
6843 }
6844 lt_preloaded_symbols[] =
6845 {
6846 EOF
6847           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6848           cat <<\EOF >> conftest.$ac_ext
6849   {0, (lt_ptr_t) 0}
6850 };
6851
6852 #ifdef __cplusplus
6853 }
6854 #endif
6855 EOF
6856           # Now try linking the two files.
6857           mv conftest.$ac_objext conftstm.$ac_objext
6858           lt_save_LIBS="$LIBS"
6859           lt_save_CFLAGS="$CFLAGS"
6860           LIBS="conftstm.$ac_objext"
6861           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6862           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6863   (eval $ac_link) 2>&5
6864   ac_status=$?
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6867             pipe_works=yes
6868           fi
6869           LIBS="$lt_save_LIBS"
6870           CFLAGS="$lt_save_CFLAGS"
6871         else
6872           echo "cannot find nm_test_func in $nlist" >&5
6873         fi
6874       else
6875         echo "cannot find nm_test_var in $nlist" >&5
6876       fi
6877     else
6878       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6879     fi
6880   else
6881     echo "$progname: failed program was:" >&5
6882     cat conftest.$ac_ext >&5
6883   fi
6884   rm -f conftest* conftst*
6885
6886   # Do not use the global_symbol_pipe unless it works.
6887   if test "$pipe_works" = yes; then
6888     break
6889   else
6890     lt_cv_sys_global_symbol_pipe=
6891   fi
6892 done
6893
6894 fi
6895
6896 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6897   lt_cv_sys_global_symbol_to_cdecl=
6898 fi
6899 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6900   echo "$as_me:$LINENO: result: failed" >&5
6901 echo "${ECHO_T}failed" >&6
6902 else
6903   echo "$as_me:$LINENO: result: ok" >&5
6904 echo "${ECHO_T}ok" >&6
6905 fi
6906
6907 echo "$as_me:$LINENO: checking for objdir" >&5
6908 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6909 if test "${lt_cv_objdir+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   rm -f .libs 2>/dev/null
6913 mkdir .libs 2>/dev/null
6914 if test -d .libs; then
6915   lt_cv_objdir=.libs
6916 else
6917   # MS-DOS does not allow filenames that begin with a dot.
6918   lt_cv_objdir=_libs
6919 fi
6920 rmdir .libs 2>/dev/null
6921 fi
6922 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6923 echo "${ECHO_T}$lt_cv_objdir" >&6
6924 objdir=$lt_cv_objdir
6925
6926
6927
6928
6929
6930 case $host_os in
6931 aix3*)
6932   # AIX sometimes has problems with the GCC collect2 program.  For some
6933   # reason, if we set the COLLECT_NAMES environment variable, the problems
6934   # vanish in a puff of smoke.
6935   if test "X${COLLECT_NAMES+set}" != Xset; then
6936     COLLECT_NAMES=
6937     export COLLECT_NAMES
6938   fi
6939   ;;
6940 esac
6941
6942 # Sed substitution that helps us do robust quoting.  It backslashifies
6943 # metacharacters that are still active within double-quoted strings.
6944 Xsed='sed -e 1s/^X//'
6945 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6946
6947 # Same as above, but do not quote variable references.
6948 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6949
6950 # Sed substitution to delay expansion of an escaped shell variable in a
6951 # double_quote_subst'ed string.
6952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6953
6954 # Sed substitution to avoid accidental globbing in evaled expressions
6955 no_glob_subst='s/\*/\\\*/g'
6956
6957 # Constants:
6958 rm="rm -f"
6959
6960 # Global variables:
6961 default_ofile=libtool
6962 can_build_shared=yes
6963
6964 # All known linkers require a `.a' archive for static linking (except MSVC,
6965 # which needs '.lib').
6966 libext=a
6967 ltmain="$ac_aux_dir/ltmain.sh"
6968 ofile="$default_ofile"
6969 with_gnu_ld="$lt_cv_prog_gnu_ld"
6970
6971 if test -n "$ac_tool_prefix"; then
6972   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}ar; ac_word=$2
6974 echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6976 if test "${ac_cv_prog_AR+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   if test -n "$AR"; then
6980   ac_cv_prog_AR="$AR" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989     ac_cv_prog_AR="${ac_tool_prefix}ar"
6990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995
6996 fi
6997 fi
6998 AR=$ac_cv_prog_AR
6999 if test -n "$AR"; then
7000   echo "$as_me:$LINENO: result: $AR" >&5
7001 echo "${ECHO_T}$AR" >&6
7002 else
7003   echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6
7005 fi
7006
7007 fi
7008 if test -z "$ac_cv_prog_AR"; then
7009   ac_ct_AR=$AR
7010   # Extract the first word of "ar", so it can be a program name with args.
7011 set dummy ar; ac_word=$2
7012 echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017   if test -n "$ac_ct_AR"; then
7018   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025   for ac_exec_ext in '' $ac_executable_extensions; do
7026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027     ac_cv_prog_ac_ct_AR="ar"
7028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032 done
7033
7034   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7035 fi
7036 fi
7037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7038 if test -n "$ac_ct_AR"; then
7039   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7040 echo "${ECHO_T}$ac_ct_AR" >&6
7041 else
7042   echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6
7044 fi
7045
7046   AR=$ac_ct_AR
7047 else
7048   AR="$ac_cv_prog_AR"
7049 fi
7050
7051 if test -n "$ac_tool_prefix"; then
7052   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7054 echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056 if test "${ac_cv_prog_RANLIB+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   if test -n "$RANLIB"; then
7060   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075
7076 fi
7077 fi
7078 RANLIB=$ac_cv_prog_RANLIB
7079 if test -n "$RANLIB"; then
7080   echo "$as_me:$LINENO: result: $RANLIB" >&5
7081 echo "${ECHO_T}$RANLIB" >&6
7082 else
7083   echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7085 fi
7086
7087 fi
7088 if test -z "$ac_cv_prog_RANLIB"; then
7089   ac_ct_RANLIB=$RANLIB
7090   # Extract the first word of "ranlib", so it can be a program name with args.
7091 set dummy ranlib; ac_word=$2
7092 echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   if test -n "$ac_ct_RANLIB"; then
7098   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107     ac_cv_prog_ac_ct_RANLIB="ranlib"
7108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113
7114   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7115 fi
7116 fi
7117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7118 if test -n "$ac_ct_RANLIB"; then
7119   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7120 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7121 else
7122   echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126   RANLIB=$ac_ct_RANLIB
7127 else
7128   RANLIB="$ac_cv_prog_RANLIB"
7129 fi
7130
7131 if test -n "$ac_tool_prefix"; then
7132   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}strip; ac_word=$2
7134 echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136 if test "${ac_cv_prog_STRIP+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   if test -n "$STRIP"; then
7140   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155
7156 fi
7157 fi
7158 STRIP=$ac_cv_prog_STRIP
7159 if test -n "$STRIP"; then
7160   echo "$as_me:$LINENO: result: $STRIP" >&5
7161 echo "${ECHO_T}$STRIP" >&6
7162 else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166
7167 fi
7168 if test -z "$ac_cv_prog_STRIP"; then
7169   ac_ct_STRIP=$STRIP
7170   # Extract the first word of "strip", so it can be a program name with args.
7171 set dummy strip; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$ac_ct_STRIP"; then
7178   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_prog_ac_ct_STRIP="strip"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193
7194   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7195 fi
7196 fi
7197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7198 if test -n "$ac_ct_STRIP"; then
7199   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7200 echo "${ECHO_T}$ac_ct_STRIP" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206   STRIP=$ac_ct_STRIP
7207 else
7208   STRIP="$ac_cv_prog_STRIP"
7209 fi
7210
7211
7212 old_CC="$CC"
7213 old_CFLAGS="$CFLAGS"
7214
7215 # Set sane defaults for various variables
7216 test -z "$AR" && AR=ar
7217 test -z "$AR_FLAGS" && AR_FLAGS=cru
7218 test -z "$AS" && AS=as
7219 test -z "$CC" && CC=cc
7220 test -z "$LTCC" && LTCC=$CC
7221 test -z "$DLLTOOL" && DLLTOOL=dlltool
7222 test -z "$LD" && LD=ld
7223 test -z "$LN_S" && LN_S="ln -s"
7224 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7225 test -z "$NM" && NM=nm
7226 test -z "$SED" && SED=sed
7227 test -z "$OBJDUMP" && OBJDUMP=objdump
7228 test -z "$RANLIB" && RANLIB=:
7229 test -z "$STRIP" && STRIP=:
7230 test -z "$ac_objext" && ac_objext=o
7231
7232 # Determine commands to create old-style static archives.
7233 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7234 old_postinstall_cmds='chmod 644 $oldlib'
7235 old_postuninstall_cmds=
7236
7237 if test -n "$RANLIB"; then
7238   case $host_os in
7239   openbsd*)
7240     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7241     ;;
7242   *)
7243     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7244     ;;
7245   esac
7246   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7247 fi
7248
7249 for cc_temp in $compiler""; do
7250   case $cc_temp in
7251     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7252     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7253     \-*) ;;
7254     *) break;;
7255   esac
7256 done
7257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7258
7259
7260 # Only perform the check for file, if the check method requires it
7261 case $deplibs_check_method in
7262 file_magic*)
7263   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7265 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7266 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   case $MAGIC_CMD in
7270 [\\/*] |  ?:[\\/]*)
7271   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7272   ;;
7273 *)
7274   lt_save_MAGIC_CMD="$MAGIC_CMD"
7275   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277   for ac_dir in $ac_dummy; do
7278     IFS="$lt_save_ifs"
7279     test -z "$ac_dir" && ac_dir=.
7280     if test -f $ac_dir/${ac_tool_prefix}file; then
7281       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282       if test -n "$file_magic_test_file"; then
7283         case $deplibs_check_method in
7284         "file_magic "*)
7285           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7286           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288             $EGREP "$file_magic_regex" > /dev/null; then
7289             :
7290           else
7291             cat <<EOF 1>&2
7292
7293 *** Warning: the command libtool uses to detect shared libraries,
7294 *** $file_magic_cmd, produces output that libtool cannot recognize.
7295 *** The result is that libtool may fail to recognize shared libraries
7296 *** as such.  This will affect the creation of libtool libraries that
7297 *** depend on shared libraries, but programs linked with such libtool
7298 *** libraries will work regardless of this problem.  Nevertheless, you
7299 *** may want to report the problem to your system manager and/or to
7300 *** bug-libtool@gnu.org
7301
7302 EOF
7303           fi ;;
7304         esac
7305       fi
7306       break
7307     fi
7308   done
7309   IFS="$lt_save_ifs"
7310   MAGIC_CMD="$lt_save_MAGIC_CMD"
7311   ;;
7312 esac
7313 fi
7314
7315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316 if test -n "$MAGIC_CMD"; then
7317   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7318 echo "${ECHO_T}$MAGIC_CMD" >&6
7319 else
7320   echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7322 fi
7323
7324 if test -z "$lt_cv_path_MAGIC_CMD"; then
7325   if test -n "$ac_tool_prefix"; then
7326     echo "$as_me:$LINENO: checking for file" >&5
7327 echo $ECHO_N "checking for file... $ECHO_C" >&6
7328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   case $MAGIC_CMD in
7332 [\\/*] |  ?:[\\/]*)
7333   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334   ;;
7335 *)
7336   lt_save_MAGIC_CMD="$MAGIC_CMD"
7337   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339   for ac_dir in $ac_dummy; do
7340     IFS="$lt_save_ifs"
7341     test -z "$ac_dir" && ac_dir=.
7342     if test -f $ac_dir/file; then
7343       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7344       if test -n "$file_magic_test_file"; then
7345         case $deplibs_check_method in
7346         "file_magic "*)
7347           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350             $EGREP "$file_magic_regex" > /dev/null; then
7351             :
7352           else
7353             cat <<EOF 1>&2
7354
7355 *** Warning: the command libtool uses to detect shared libraries,
7356 *** $file_magic_cmd, produces output that libtool cannot recognize.
7357 *** The result is that libtool may fail to recognize shared libraries
7358 *** as such.  This will affect the creation of libtool libraries that
7359 *** depend on shared libraries, but programs linked with such libtool
7360 *** libraries will work regardless of this problem.  Nevertheless, you
7361 *** may want to report the problem to your system manager and/or to
7362 *** bug-libtool@gnu.org
7363
7364 EOF
7365           fi ;;
7366         esac
7367       fi
7368       break
7369     fi
7370   done
7371   IFS="$lt_save_ifs"
7372   MAGIC_CMD="$lt_save_MAGIC_CMD"
7373   ;;
7374 esac
7375 fi
7376
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if test -n "$MAGIC_CMD"; then
7379   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380 echo "${ECHO_T}$MAGIC_CMD" >&6
7381 else
7382   echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7384 fi
7385
7386   else
7387     MAGIC_CMD=:
7388   fi
7389 fi
7390
7391   fi
7392   ;;
7393 esac
7394
7395 enable_dlopen=yes
7396 enable_win32_dll=yes
7397
7398 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7399 if test "${enable_libtool_lock+set}" = set; then
7400   enableval="$enable_libtool_lock"
7401
7402 fi;
7403 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7404
7405
7406 # Check whether --with-pic or --without-pic was given.
7407 if test "${with_pic+set}" = set; then
7408   withval="$with_pic"
7409   pic_mode="$withval"
7410 else
7411   pic_mode=default
7412 fi;
7413 test -z "$pic_mode" && pic_mode=default
7414
7415 # Use C for the default configuration in the libtool script
7416 tagname=
7417 lt_save_CC="$CC"
7418 ac_ext=c
7419 ac_cpp='$CPP $CPPFLAGS'
7420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423
7424
7425 # Source file extension for C test sources.
7426 ac_ext=c
7427
7428 # Object file extension for compiled C test sources.
7429 objext=o
7430 objext=$objext
7431
7432 # Code to be used in simple compile tests
7433 lt_simple_compile_test_code="int some_variable = 0;\n"
7434
7435 # Code to be used in simple link tests
7436 lt_simple_link_test_code='int main(){return(0);}\n'
7437
7438
7439 # If no C compiler was specified, use CC.
7440 LTCC=${LTCC-"$CC"}
7441
7442 # Allow CC to be a program name with arguments.
7443 compiler=$CC
7444
7445
7446 # save warnings/boilerplate of simple test code
7447 ac_outfile=conftest.$ac_objext
7448 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7450 _lt_compiler_boilerplate=`cat conftest.err`
7451 $rm conftest*
7452
7453 ac_outfile=conftest.$ac_objext
7454 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7456 _lt_linker_boilerplate=`cat conftest.err`
7457 $rm conftest*
7458
7459
7460 #
7461 # Check for any special shared library compilation flags.
7462 #
7463 lt_prog_cc_shlib=
7464 if test "$GCC" = no; then
7465   case $host_os in
7466   sco3.2v5*)
7467     lt_prog_cc_shlib='-belf'
7468     ;;
7469   esac
7470 fi
7471 if test -n "$lt_prog_cc_shlib"; then
7472   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7473 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7474   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7475   else
7476     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7477 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7478     lt_cv_prog_cc_can_build_shared=no
7479   fi
7480 fi
7481
7482
7483 #
7484 # Check to make sure the static flag actually works.
7485 #
7486 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7487 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7488 if test "${lt_prog_compiler_static_works+set}" = set; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   lt_prog_compiler_static_works=no
7492    save_LDFLAGS="$LDFLAGS"
7493    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7494    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7495    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7496      # The linker can only warn and ignore the option if not recognized
7497      # So say no if there are warnings
7498      if test -s conftest.err; then
7499        # Append any errors to the config.log.
7500        cat conftest.err 1>&5
7501        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7502        $SED '/^$/d' conftest.err >conftest.er2
7503        if diff conftest.exp conftest.er2 >/dev/null; then
7504          lt_prog_compiler_static_works=yes
7505        fi
7506      else
7507        lt_prog_compiler_static_works=yes
7508      fi
7509    fi
7510    $rm conftest*
7511    LDFLAGS="$save_LDFLAGS"
7512
7513 fi
7514 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7515 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7516
7517 if test x"$lt_prog_compiler_static_works" = xyes; then
7518     :
7519 else
7520     lt_prog_compiler_static=
7521 fi
7522
7523
7524
7525
7526 lt_prog_compiler_no_builtin_flag=
7527
7528 if test "$GCC" = yes; then
7529   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7530
7531
7532 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7533 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7534 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   lt_cv_prog_compiler_rtti_exceptions=no
7538   ac_outfile=conftest.$ac_objext
7539    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7540    lt_compiler_flag="-fno-rtti -fno-exceptions"
7541    # Insert the option either (1) after the last *FLAGS variable, or
7542    # (2) before a word containing "conftest.", or (3) at the end.
7543    # Note that $ac_compile itself does not contain backslashes and begins
7544    # with a dollar sign (not a hyphen), so the echo should work correctly.
7545    # The option is referenced via a variable to avoid confusing sed.
7546    lt_compile=`echo "$ac_compile" | $SED \
7547    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7549    -e 's:$: $lt_compiler_flag:'`
7550    (eval echo "\"\$as_me:7550: $lt_compile\"" >&5)
7551    (eval "$lt_compile" 2>conftest.err)
7552    ac_status=$?
7553    cat conftest.err >&5
7554    echo "$as_me:7554: \$? = $ac_status" >&5
7555    if (exit $ac_status) && test -s "$ac_outfile"; then
7556      # The compiler can only warn and ignore the option if not recognized
7557      # So say no if there are warnings other than the usual output.
7558      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7559      $SED '/^$/d' conftest.err >conftest.er2
7560      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7561        lt_cv_prog_compiler_rtti_exceptions=yes
7562      fi
7563    fi
7564    $rm conftest*
7565
7566 fi
7567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7568 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7569
7570 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7571     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7572 else
7573     :
7574 fi
7575
7576 fi
7577
7578 lt_prog_compiler_wl=
7579 lt_prog_compiler_pic=
7580 lt_prog_compiler_static=
7581
7582 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7584
7585   if test "$GCC" = yes; then
7586     lt_prog_compiler_wl='-Wl,'
7587     lt_prog_compiler_static='-static'
7588
7589     case $host_os in
7590       aix*)
7591       # All AIX code is PIC.
7592       if test "$host_cpu" = ia64; then
7593         # AIX 5 now supports IA64 processor
7594         lt_prog_compiler_static='-Bstatic'
7595       fi
7596       ;;
7597
7598     amigaos*)
7599       # FIXME: we need at least 68020 code to build shared libraries, but
7600       # adding the `-m68020' flag to GCC prevents building anything better,
7601       # like `-m68040'.
7602       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7603       ;;
7604
7605     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7606       # PIC is the default for these OSes.
7607       ;;
7608
7609     mingw* | pw32* | os2*)
7610       # This hack is so that the source file can tell whether it is being
7611       # built for inclusion in a dll (and should export symbols for example).
7612       lt_prog_compiler_pic='-DDLL_EXPORT'
7613       ;;
7614
7615     darwin* | rhapsody*)
7616       # PIC is the default on this platform
7617       # Common symbols not allowed in MH_DYLIB files
7618       lt_prog_compiler_pic='-fno-common'
7619       ;;
7620
7621     msdosdjgpp*)
7622       # Just because we use GCC doesn't mean we suddenly get shared libraries
7623       # on systems that don't support them.
7624       lt_prog_compiler_can_build_shared=no
7625       enable_shared=no
7626       ;;
7627
7628     sysv4*MP*)
7629       if test -d /usr/nec; then
7630         lt_prog_compiler_pic=-Kconform_pic
7631       fi
7632       ;;
7633
7634     hpux*)
7635       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7636       # not for PA HP-UX.
7637       case $host_cpu in
7638       hppa*64*|ia64*)
7639         # +Z the default
7640         ;;
7641       *)
7642         lt_prog_compiler_pic='-fPIC'
7643         ;;
7644       esac
7645       ;;
7646
7647     *)
7648       lt_prog_compiler_pic='-fPIC'
7649       ;;
7650     esac
7651   else
7652     # PORTME Check for flag to pass linker flags through the system compiler.
7653     case $host_os in
7654     aix*)
7655       lt_prog_compiler_wl='-Wl,'
7656       if test "$host_cpu" = ia64; then
7657         # AIX 5 now supports IA64 processor
7658         lt_prog_compiler_static='-Bstatic'
7659       else
7660         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7661       fi
7662       ;;
7663       darwin*)
7664         # PIC is the default on this platform
7665         # Common symbols not allowed in MH_DYLIB files
7666        case $cc_basename in
7667          xlc*)
7668          lt_prog_compiler_pic='-qnocommon'
7669          lt_prog_compiler_wl='-Wl,'
7670          ;;
7671        esac
7672        ;;
7673
7674     mingw* | pw32* | os2*)
7675       # This hack is so that the source file can tell whether it is being
7676       # built for inclusion in a dll (and should export symbols for example).
7677       lt_prog_compiler_pic='-DDLL_EXPORT'
7678       ;;
7679
7680     hpux9* | hpux10* | hpux11*)
7681       lt_prog_compiler_wl='-Wl,'
7682       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7683       # not for PA HP-UX.
7684       case $host_cpu in
7685       hppa*64*|ia64*)
7686         # +Z the default
7687         ;;
7688       *)
7689         lt_prog_compiler_pic='+Z'
7690         ;;
7691       esac
7692       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7693       lt_prog_compiler_static='${wl}-a ${wl}archive'
7694       ;;
7695
7696     irix5* | irix6* | nonstopux*)
7697       lt_prog_compiler_wl='-Wl,'
7698       # PIC (with -KPIC) is the default.
7699       lt_prog_compiler_static='-non_shared'
7700       ;;
7701
7702     newsos6)
7703       lt_prog_compiler_pic='-KPIC'
7704       lt_prog_compiler_static='-Bstatic'
7705       ;;
7706
7707     linux*)
7708       case $cc_basename in
7709       icc* | ecc*)
7710         lt_prog_compiler_wl='-Wl,'
7711         lt_prog_compiler_pic='-KPIC'
7712         lt_prog_compiler_static='-static'
7713         ;;
7714       pgcc* | pgf77* | pgf90* | pgf95*)
7715         # Portland Group compilers (*not* the Pentium gcc compiler,
7716         # which looks to be a dead project)
7717         lt_prog_compiler_wl='-Wl,'
7718         lt_prog_compiler_pic='-fpic'
7719         lt_prog_compiler_static='-Bstatic'
7720         ;;
7721       ccc*)
7722         lt_prog_compiler_wl='-Wl,'
7723         # All Alpha code is PIC.
7724         lt_prog_compiler_static='-non_shared'
7725         ;;
7726       esac
7727       ;;
7728
7729     osf3* | osf4* | osf5*)
7730       lt_prog_compiler_wl='-Wl,'
7731       # All OSF/1 code is PIC.
7732       lt_prog_compiler_static='-non_shared'
7733       ;;
7734
7735     sco3.2v5*)
7736       lt_prog_compiler_pic='-Kpic'
7737       lt_prog_compiler_static='-dn'
7738       ;;
7739
7740     solaris*)
7741       lt_prog_compiler_pic='-KPIC'
7742       lt_prog_compiler_static='-Bstatic'
7743       case $cc_basename in
7744       f77* | f90* | f95*)
7745         lt_prog_compiler_wl='-Qoption ld ';;
7746       *)
7747         lt_prog_compiler_wl='-Wl,';;
7748       esac
7749       ;;
7750
7751     sunos4*)
7752       lt_prog_compiler_wl='-Qoption ld '
7753       lt_prog_compiler_pic='-PIC'
7754       lt_prog_compiler_static='-Bstatic'
7755       ;;
7756
7757     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7758       lt_prog_compiler_wl='-Wl,'
7759       lt_prog_compiler_pic='-KPIC'
7760       lt_prog_compiler_static='-Bstatic'
7761       ;;
7762
7763     sysv4*MP*)
7764       if test -d /usr/nec ;then
7765         lt_prog_compiler_pic='-Kconform_pic'
7766         lt_prog_compiler_static='-Bstatic'
7767       fi
7768       ;;
7769
7770     unicos*)
7771       lt_prog_compiler_wl='-Wl,'
7772       lt_prog_compiler_can_build_shared=no
7773       ;;
7774
7775     uts4*)
7776       lt_prog_compiler_pic='-pic'
7777       lt_prog_compiler_static='-Bstatic'
7778       ;;
7779
7780     *)
7781       lt_prog_compiler_can_build_shared=no
7782       ;;
7783     esac
7784   fi
7785
7786 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7787 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7788
7789 #
7790 # Check to make sure the PIC flag actually works.
7791 #
7792 if test -n "$lt_prog_compiler_pic"; then
7793
7794 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7796 if test "${lt_prog_compiler_pic_works+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   lt_prog_compiler_pic_works=no
7800   ac_outfile=conftest.$ac_objext
7801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7802    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7803    # Insert the option either (1) after the last *FLAGS variable, or
7804    # (2) before a word containing "conftest.", or (3) at the end.
7805    # Note that $ac_compile itself does not contain backslashes and begins
7806    # with a dollar sign (not a hyphen), so the echo should work correctly.
7807    # The option is referenced via a variable to avoid confusing sed.
7808    lt_compile=`echo "$ac_compile" | $SED \
7809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811    -e 's:$: $lt_compiler_flag:'`
7812    (eval echo "\"\$as_me:7812: $lt_compile\"" >&5)
7813    (eval "$lt_compile" 2>conftest.err)
7814    ac_status=$?
7815    cat conftest.err >&5
7816    echo "$as_me:7816: \$? = $ac_status" >&5
7817    if (exit $ac_status) && test -s "$ac_outfile"; then
7818      # The compiler can only warn and ignore the option if not recognized
7819      # So say no if there are warnings other than the usual output.
7820      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7821      $SED '/^$/d' conftest.err >conftest.er2
7822      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7823        lt_prog_compiler_pic_works=yes
7824      fi
7825    fi
7826    $rm conftest*
7827
7828 fi
7829 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7830 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7831
7832 if test x"$lt_prog_compiler_pic_works" = xyes; then
7833     case $lt_prog_compiler_pic in
7834      "" | " "*) ;;
7835      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7836      esac
7837 else
7838     lt_prog_compiler_pic=
7839      lt_prog_compiler_can_build_shared=no
7840 fi
7841
7842 fi
7843 case $host_os in
7844   # For platforms which do not support PIC, -DPIC is meaningless:
7845   *djgpp*)
7846     lt_prog_compiler_pic=
7847     ;;
7848   *)
7849     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7850     ;;
7851 esac
7852
7853 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7854 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7855 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   lt_cv_prog_compiler_c_o=no
7859    $rm -r conftest 2>/dev/null
7860    mkdir conftest
7861    cd conftest
7862    mkdir out
7863    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7864
7865    lt_compiler_flag="-o out/conftest2.$ac_objext"
7866    # Insert the option either (1) after the last *FLAGS variable, or
7867    # (2) before a word containing "conftest.", or (3) at the end.
7868    # Note that $ac_compile itself does not contain backslashes and begins
7869    # with a dollar sign (not a hyphen), so the echo should work correctly.
7870    lt_compile=`echo "$ac_compile" | $SED \
7871    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7872    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7873    -e 's:$: $lt_compiler_flag:'`
7874    (eval echo "\"\$as_me:7874: $lt_compile\"" >&5)
7875    (eval "$lt_compile" 2>out/conftest.err)
7876    ac_status=$?
7877    cat out/conftest.err >&5
7878    echo "$as_me:7878: \$? = $ac_status" >&5
7879    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7880    then
7881      # The compiler can only warn and ignore the option if not recognized
7882      # So say no if there are warnings
7883      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7884      $SED '/^$/d' out/conftest.err >out/conftest.er2
7885      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7886        lt_cv_prog_compiler_c_o=yes
7887      fi
7888    fi
7889    chmod u+w . 2>&5
7890    $rm conftest*
7891    # SGI C++ compiler will create directory out/ii_files/ for
7892    # template instantiation
7893    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7894    $rm out/* && rmdir out
7895    cd ..
7896    rmdir conftest
7897    $rm conftest*
7898
7899 fi
7900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7901 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7902
7903
7904 hard_links="nottested"
7905 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7906   # do not overwrite the value of need_locks provided by the user
7907   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7908 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7909   hard_links=yes
7910   $rm conftest*
7911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7912   touch conftest.a
7913   ln conftest.a conftest.b 2>&5 || hard_links=no
7914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7915   echo "$as_me:$LINENO: result: $hard_links" >&5
7916 echo "${ECHO_T}$hard_links" >&6
7917   if test "$hard_links" = no; then
7918     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7919 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7920     need_locks=warn
7921   fi
7922 else
7923   need_locks=no
7924 fi
7925
7926 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7928
7929   runpath_var=
7930   allow_undefined_flag=
7931   enable_shared_with_static_runtimes=no
7932   archive_cmds=
7933   archive_expsym_cmds=
7934   old_archive_From_new_cmds=
7935   old_archive_from_expsyms_cmds=
7936   export_dynamic_flag_spec=
7937   whole_archive_flag_spec=
7938   thread_safe_flag_spec=
7939   hardcode_libdir_flag_spec=
7940   hardcode_libdir_flag_spec_ld=
7941   hardcode_libdir_separator=
7942   hardcode_direct=no
7943   hardcode_minus_L=no
7944   hardcode_shlibpath_var=unsupported
7945   link_all_deplibs=unknown
7946   hardcode_automatic=no
7947   module_cmds=
7948   module_expsym_cmds=
7949   always_export_symbols=no
7950   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7951   # include_expsyms should be a list of space-separated symbols to be *always*
7952   # included in the symbol list
7953   include_expsyms=
7954   # exclude_expsyms can be an extended regexp of symbols to exclude
7955   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7956   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7957   # as well as any symbol that contains `d'.
7958   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7959   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7960   # platforms (ab)use it in PIC code, but their linkers get confused if
7961   # the symbol is explicitly referenced.  Since portable code cannot
7962   # rely on this symbol name, it's probably fine to never include it in
7963   # preloaded symbol tables.
7964   extract_expsyms_cmds=
7965   # Just being paranoid about ensuring that cc_basename is set.
7966   for cc_temp in $compiler""; do
7967   case $cc_temp in
7968     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7969     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7970     \-*) ;;
7971     *) break;;
7972   esac
7973 done
7974 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7975
7976   case $host_os in
7977   cygwin* | mingw* | pw32*)
7978     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7979     # When not using gcc, we currently assume that we are using
7980     # Microsoft Visual C++.
7981     if test "$GCC" != yes; then
7982       with_gnu_ld=no
7983     fi
7984     ;;
7985   openbsd*)
7986     with_gnu_ld=no
7987     ;;
7988   esac
7989
7990   ld_shlibs=yes
7991   if test "$with_gnu_ld" = yes; then
7992     # If archive_cmds runs LD, not CC, wlarc should be empty
7993     wlarc='${wl}'
7994
7995     # Set some defaults for GNU ld with shared library support. These
7996     # are reset later if shared libraries are not supported. Putting them
7997     # here allows them to be overridden if necessary.
7998     runpath_var=LD_RUN_PATH
7999     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8000     export_dynamic_flag_spec='${wl}--export-dynamic'
8001     # ancient GNU ld didn't support --whole-archive et. al.
8002     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8003         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8004       else
8005         whole_archive_flag_spec=
8006     fi
8007     supports_anon_versioning=no
8008     case `$LD -v 2>/dev/null` in
8009       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8010       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8011       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8012       *\ 2.11.*) ;; # other 2.11 versions
8013       *) supports_anon_versioning=yes ;;
8014     esac
8015
8016     # See if GNU ld supports shared libraries.
8017     case $host_os in
8018     aix3* | aix4* | aix5*)
8019       # On AIX/PPC, the GNU linker is very broken
8020       if test "$host_cpu" != ia64; then
8021         ld_shlibs=no
8022         cat <<EOF 1>&2
8023
8024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8025 *** to be unable to reliably create shared libraries on AIX.
8026 *** Therefore, libtool is disabling shared libraries support.  If you
8027 *** really care for shared libraries, you may want to modify your PATH
8028 *** so that a non-GNU linker is found, and then restart.
8029
8030 EOF
8031       fi
8032       ;;
8033
8034     amigaos*)
8035       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)'
8036       hardcode_libdir_flag_spec='-L$libdir'
8037       hardcode_minus_L=yes
8038
8039       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8040       # that the semantics of dynamic libraries on AmigaOS, at least up
8041       # to version 4, is to share data among multiple programs linked
8042       # with the same dynamic library.  Since this doesn't match the
8043       # behavior of shared libraries on other platforms, we can't use
8044       # them.
8045       ld_shlibs=no
8046       ;;
8047
8048     beos*)
8049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050         allow_undefined_flag=unsupported
8051         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8052         # support --undefined.  This deserves some investigation.  FIXME
8053         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054       else
8055         ld_shlibs=no
8056       fi
8057       ;;
8058
8059     cygwin* | mingw* | pw32*)
8060       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8061       # as there is no search path for DLLs.
8062       hardcode_libdir_flag_spec='-L$libdir'
8063       allow_undefined_flag=unsupported
8064       always_export_symbols=no
8065       enable_shared_with_static_runtimes=yes
8066       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8067
8068       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8069         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8070         # If the export-symbols file already is a .def file (1st line
8071         # is EXPORTS), use it as is; otherwise, prepend...
8072         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8073           cp $export_symbols $output_objdir/$soname.def;
8074         else
8075           echo EXPORTS > $output_objdir/$soname.def;
8076           cat $export_symbols >> $output_objdir/$soname.def;
8077         fi~
8078         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8079       else
8080         ld_shlibs=no
8081       fi
8082       ;;
8083
8084     linux*)
8085       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8086         tmp_addflag=
8087         case $cc_basename,$host_cpu in
8088         pgcc*)                          # Portland Group C compiler
8089           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'
8090           tmp_addflag=' $pic_flag'
8091           ;;
8092         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8093           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'
8094           tmp_addflag=' $pic_flag -Mnomain' ;;
8095         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8096           tmp_addflag=' -i_dynamic' ;;
8097         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8098           tmp_addflag=' -i_dynamic -nofor_main' ;;
8099         ifc* | ifort*)                  # Intel Fortran compiler
8100           tmp_addflag=' -nofor_main' ;;
8101         esac
8102         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103
8104         if test $supports_anon_versioning = yes; then
8105           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8106   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8107   $echo "local: *; };" >> $output_objdir/$libname.ver~
8108           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8109         fi
8110       else
8111         ld_shlibs=no
8112       fi
8113       ;;
8114
8115     netbsd*)
8116       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8117         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8118         wlarc=
8119       else
8120         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8122       fi
8123       ;;
8124
8125     solaris* | sysv5*)
8126       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8127         ld_shlibs=no
8128         cat <<EOF 1>&2
8129
8130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8131 *** create shared libraries on Solaris systems.  Therefore, libtool
8132 *** is disabling shared libraries support.  We urge you to upgrade GNU
8133 *** binutils to release 2.9.1 or newer.  Another option is to modify
8134 *** your PATH or compiler configuration so that the native linker is
8135 *** used, and then restart.
8136
8137 EOF
8138       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8141       else
8142         ld_shlibs=no
8143       fi
8144       ;;
8145
8146     sunos4*)
8147       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8148       wlarc=
8149       hardcode_direct=yes
8150       hardcode_shlibpath_var=no
8151       ;;
8152
8153     *)
8154       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8157       else
8158         ld_shlibs=no
8159       fi
8160       ;;
8161     esac
8162
8163     if test "$ld_shlibs" = no; then
8164       runpath_var=
8165       hardcode_libdir_flag_spec=
8166       export_dynamic_flag_spec=
8167       whole_archive_flag_spec=
8168     fi
8169   else
8170     # PORTME fill in a description of your system's linker (not GNU ld)
8171     case $host_os in
8172     aix3*)
8173       allow_undefined_flag=unsupported
8174       always_export_symbols=yes
8175       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'
8176       # Note: this linker hardcodes the directories in LIBPATH if there
8177       # are no directories specified by -L.
8178       hardcode_minus_L=yes
8179       if test "$GCC" = yes && test -z "$link_static_flag"; then
8180         # Neither direct hardcoding nor static linking is supported with a
8181         # broken collect2.
8182         hardcode_direct=unsupported
8183       fi
8184       ;;
8185
8186     aix4* | aix5*)
8187       if test "$host_cpu" = ia64; then
8188         # On IA64, the linker does run time linking by default, so we don't
8189         # have to do anything special.
8190         aix_use_runtimelinking=no
8191         exp_sym_flag='-Bexport'
8192         no_entry_flag=""
8193       else
8194         # If we're using GNU nm, then we don't want the "-C" option.
8195         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8196         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8197           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'
8198         else
8199           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'
8200         fi
8201         aix_use_runtimelinking=no
8202
8203         # Test if we are trying to use run time linking or normal
8204         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8205         # need to do runtime linking.
8206         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8207           for ld_flag in $LDFLAGS; do
8208           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8209             aix_use_runtimelinking=yes
8210             break
8211           fi
8212           done
8213         esac
8214
8215         exp_sym_flag='-bexport'
8216         no_entry_flag='-bnoentry'
8217       fi
8218
8219       # When large executables or shared objects are built, AIX ld can
8220       # have problems creating the table of contents.  If linking a library
8221       # or program results in "error TOC overflow" add -mminimal-toc to
8222       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8223       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8224
8225       archive_cmds=''
8226       hardcode_direct=yes
8227       hardcode_libdir_separator=':'
8228       link_all_deplibs=yes
8229
8230       if test "$GCC" = yes; then
8231         case $host_os in aix4.[012]|aix4.[012].*)
8232         # We only want to do this on AIX 4.2 and lower, the check
8233         # below for broken collect2 doesn't work under 4.3+
8234           collect2name=`${CC} -print-prog-name=collect2`
8235           if test -f "$collect2name" && \
8236            strings "$collect2name" | grep resolve_lib_name >/dev/null
8237           then
8238           # We have reworked collect2
8239           hardcode_direct=yes
8240           else
8241           # We have old collect2
8242           hardcode_direct=unsupported
8243           # It fails to find uninstalled libraries when the uninstalled
8244           # path is not listed in the libpath.  Setting hardcode_minus_L
8245           # to unsupported forces relinking
8246           hardcode_minus_L=yes
8247           hardcode_libdir_flag_spec='-L$libdir'
8248           hardcode_libdir_separator=
8249           fi
8250         esac
8251         shared_flag='-shared'
8252         if test "$aix_use_runtimelinking" = yes; then
8253           shared_flag="$shared_flag "'${wl}-G'
8254         fi
8255       else
8256         # not using gcc
8257         if test "$host_cpu" = ia64; then
8258         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8259         # chokes on -Wl,-G. The following line is correct:
8260           shared_flag='-G'
8261         else
8262         if test "$aix_use_runtimelinking" = yes; then
8263             shared_flag='${wl}-G'
8264           else
8265             shared_flag='${wl}-bM:SRE'
8266         fi
8267         fi
8268       fi
8269
8270       # It seems that -bexpall does not export symbols beginning with
8271       # underscore (_), so it is better to generate a list of symbols to export.
8272       always_export_symbols=yes
8273       if test "$aix_use_runtimelinking" = yes; then
8274         # Warning - without using the other runtime loading flags (-brtl),
8275         # -berok will link without error, but may produce a broken library.
8276         allow_undefined_flag='-berok'
8277        # Determine the default libpath from the value encoded in an empty executable.
8278        cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284
8285 int
8286 main ()
8287 {
8288
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295   (eval $ac_link) 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } &&
8302          { ac_try='test -z "$ac_c_werror_flag"
8303                          || test ! -s conftest.err'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; } &&
8309          { ac_try='test -s conftest$ac_exeext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315
8316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8317 }'`
8318 # Check for a 64-bit object if we didn't find anything.
8319 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; }
8320 }'`; fi
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 fi
8326 rm -f conftest.err conftest.$ac_objext \
8327       conftest$ac_exeext conftest.$ac_ext
8328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8329
8330        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8331         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"
8332        else
8333         if test "$host_cpu" = ia64; then
8334           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8335           allow_undefined_flag="-z nodefs"
8336           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"
8337         else
8338          # Determine the default libpath from the value encoded in an empty executable.
8339          cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h.  */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h.  */
8345
8346 int
8347 main ()
8348 {
8349
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356   (eval $ac_link) 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag"
8364                          || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376
8377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8378 }'`
8379 # Check for a 64-bit object if we didn't find anything.
8380 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; }
8381 }'`; fi
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 fi
8387 rm -f conftest.err conftest.$ac_objext \
8388       conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8390
8391          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8392           # Warning - without using the other run time loading flags,
8393           # -berok will link without error, but may produce a broken library.
8394           no_undefined_flag=' ${wl}-bernotok'
8395           allow_undefined_flag=' ${wl}-berok'
8396           # -bexpall does not export symbols beginning with underscore (_)
8397           always_export_symbols=yes
8398           # Exported symbols can be pulled into shared objects from archives
8399           whole_archive_flag_spec=' '
8400           archive_cmds_need_lc=yes
8401           # This is similar to how AIX traditionally builds its shared libraries.
8402           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'
8403         fi
8404       fi
8405       ;;
8406
8407     amigaos*)
8408       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)'
8409       hardcode_libdir_flag_spec='-L$libdir'
8410       hardcode_minus_L=yes
8411       # see comment about different semantics on the GNU ld section
8412       ld_shlibs=no
8413       ;;
8414
8415     bsdi[45]*)
8416       export_dynamic_flag_spec=-rdynamic
8417       ;;
8418
8419     cygwin* | mingw* | pw32*)
8420       # When not using gcc, we currently assume that we are using
8421       # Microsoft Visual C++.
8422       # hardcode_libdir_flag_spec is actually meaningless, as there is
8423       # no search path for DLLs.
8424       hardcode_libdir_flag_spec=' '
8425       allow_undefined_flag=unsupported
8426       # Tell ltmain to make .lib files, not .a files.
8427       libext=lib
8428       # Tell ltmain to make .dll files, not .so files.
8429       shrext_cmds=".dll"
8430       # FIXME: Setting linknames here is a bad hack.
8431       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8432       # The linker will automatically build a .lib file if we build a DLL.
8433       old_archive_From_new_cmds='true'
8434       # FIXME: Should let the user specify the lib program.
8435       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8436       fix_srcfile_path='`cygpath -w "$srcfile"`'
8437       enable_shared_with_static_runtimes=yes
8438       ;;
8439
8440     darwin* | rhapsody*)
8441       case $host_os in
8442         rhapsody* | darwin1.[012])
8443          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8444          ;;
8445        *) # Darwin 1.3 on
8446          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8447            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8448          else
8449            case ${MACOSX_DEPLOYMENT_TARGET} in
8450              10.[012])
8451                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8452                ;;
8453              10.*)
8454                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8455                ;;
8456            esac
8457          fi
8458          ;;
8459       esac
8460       archive_cmds_need_lc=no
8461       hardcode_direct=no
8462       hardcode_automatic=yes
8463       hardcode_shlibpath_var=unsupported
8464       whole_archive_flag_spec=''
8465       link_all_deplibs=yes
8466     if test "$GCC" = yes ; then
8467         output_verbose_link_cmd='echo'
8468         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8469       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8470       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8471       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}'
8472       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}'
8473     else
8474       case $cc_basename in
8475         xlc*)
8476          output_verbose_link_cmd='echo'
8477          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8478          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8479           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8480          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}'
8481           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}'
8482           ;;
8483        *)
8484          ld_shlibs=no
8485           ;;
8486       esac
8487     fi
8488       ;;
8489
8490     dgux*)
8491       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8492       hardcode_libdir_flag_spec='-L$libdir'
8493       hardcode_shlibpath_var=no
8494       ;;
8495
8496     freebsd1*)
8497       ld_shlibs=no
8498       ;;
8499
8500     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8501     # support.  Future versions do this automatically, but an explicit c++rt0.o
8502     # does not break anything, and helps significantly (at the cost of a little
8503     # extra space).
8504     freebsd2.2*)
8505       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8506       hardcode_libdir_flag_spec='-R$libdir'
8507       hardcode_direct=yes
8508       hardcode_shlibpath_var=no
8509       ;;
8510
8511     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8512     freebsd2*)
8513       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8514       hardcode_direct=yes
8515       hardcode_minus_L=yes
8516       hardcode_shlibpath_var=no
8517       ;;
8518
8519     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8520     freebsd* | kfreebsd*-gnu | dragonfly*)
8521       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8522       hardcode_libdir_flag_spec='-R$libdir'
8523       hardcode_direct=yes
8524       hardcode_shlibpath_var=no
8525       ;;
8526
8527     hpux9*)
8528       if test "$GCC" = yes; then
8529         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'
8530       else
8531         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'
8532       fi
8533       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8534       hardcode_libdir_separator=:
8535       hardcode_direct=yes
8536
8537       # hardcode_minus_L: Not really in the search PATH,
8538       # but as the default location of the library.
8539       hardcode_minus_L=yes
8540       export_dynamic_flag_spec='${wl}-E'
8541       ;;
8542
8543     hpux10* | hpux11*)
8544       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8545         case $host_cpu in
8546         hppa*64*|ia64*)
8547           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8548           ;;
8549         *)
8550           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551           ;;
8552         esac
8553       else
8554         case $host_cpu in
8555         hppa*64*|ia64*)
8556           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8557           ;;
8558         *)
8559           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8560           ;;
8561         esac
8562       fi
8563       if test "$with_gnu_ld" = no; then
8564         case $host_cpu in
8565         hppa*64*)
8566           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567           hardcode_libdir_flag_spec_ld='+b $libdir'
8568           hardcode_libdir_separator=:
8569           hardcode_direct=no
8570           hardcode_shlibpath_var=no
8571           ;;
8572         ia64*)
8573           hardcode_libdir_flag_spec='-L$libdir'
8574           hardcode_direct=no
8575           hardcode_shlibpath_var=no
8576
8577           # hardcode_minus_L: Not really in the search PATH,
8578           # but as the default location of the library.
8579           hardcode_minus_L=yes
8580           ;;
8581         *)
8582           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8583           hardcode_libdir_separator=:
8584           hardcode_direct=yes
8585           export_dynamic_flag_spec='${wl}-E'
8586
8587           # hardcode_minus_L: Not really in the search PATH,
8588           # but as the default location of the library.
8589           hardcode_minus_L=yes
8590           ;;
8591         esac
8592       fi
8593       ;;
8594
8595     irix5* | irix6* | nonstopux*)
8596       if test "$GCC" = yes; then
8597         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'
8598       else
8599         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'
8600         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8601       fi
8602       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603       hardcode_libdir_separator=:
8604       link_all_deplibs=yes
8605       ;;
8606
8607     netbsd*)
8608       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8609         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8610       else
8611         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8612       fi
8613       hardcode_libdir_flag_spec='-R$libdir'
8614       hardcode_direct=yes
8615       hardcode_shlibpath_var=no
8616       ;;
8617
8618     newsos6)
8619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8620       hardcode_direct=yes
8621       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8622       hardcode_libdir_separator=:
8623       hardcode_shlibpath_var=no
8624       ;;
8625
8626     openbsd*)
8627       hardcode_direct=yes
8628       hardcode_shlibpath_var=no
8629       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8630         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8631         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8632         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633         export_dynamic_flag_spec='${wl}-E'
8634       else
8635        case $host_os in
8636          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8637            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8638            hardcode_libdir_flag_spec='-R$libdir'
8639            ;;
8640          *)
8641            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8642            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8643            ;;
8644        esac
8645       fi
8646       ;;
8647
8648     os2*)
8649       hardcode_libdir_flag_spec='-L$libdir'
8650       hardcode_minus_L=yes
8651       allow_undefined_flag=unsupported
8652       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'
8653       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8654       ;;
8655
8656     osf3*)
8657       if test "$GCC" = yes; then
8658         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8659         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'
8660       else
8661         allow_undefined_flag=' -expect_unresolved \*'
8662         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'
8663       fi
8664       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665       hardcode_libdir_separator=:
8666       ;;
8667
8668     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8669       if test "$GCC" = yes; then
8670         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8671         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'
8672         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673       else
8674         allow_undefined_flag=' -expect_unresolved \*'
8675         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'
8676         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8677         $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'
8678
8679         # Both c and cxx compiler support -rpath directly
8680         hardcode_libdir_flag_spec='-rpath $libdir'
8681       fi
8682       hardcode_libdir_separator=:
8683       ;;
8684
8685     sco3.2v5*)
8686       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687       hardcode_shlibpath_var=no
8688       export_dynamic_flag_spec='${wl}-Bexport'
8689       runpath_var=LD_RUN_PATH
8690       hardcode_runpath_var=yes
8691       ;;
8692
8693     solaris*)
8694       no_undefined_flag=' -z text'
8695       if test "$GCC" = yes; then
8696         wlarc='${wl}'
8697         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8699           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8700       else
8701         wlarc=''
8702         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8704         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8705       fi
8706       hardcode_libdir_flag_spec='-R$libdir'
8707       hardcode_shlibpath_var=no
8708       case $host_os in
8709       solaris2.[0-5] | solaris2.[0-5].*) ;;
8710       *)
8711         # The compiler driver will combine linker options so we
8712         # cannot just pass the convience library names through
8713         # without $wl, iff we do not link with $LD.
8714         # Luckily, gcc supports the same syntax we need for Sun Studio.
8715         # Supported since Solaris 2.6 (maybe 2.5.1?)
8716         case $wlarc in
8717         '')
8718           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8719         *)
8720           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' ;;
8721         esac ;;
8722       esac
8723       link_all_deplibs=yes
8724       ;;
8725
8726     sunos4*)
8727       if test "x$host_vendor" = xsequent; then
8728         # Use $CC to link under sequent, because it throws in some extra .o
8729         # files that make .init and .fini sections work.
8730         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8731       else
8732         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8733       fi
8734       hardcode_libdir_flag_spec='-L$libdir'
8735       hardcode_direct=yes
8736       hardcode_minus_L=yes
8737       hardcode_shlibpath_var=no
8738       ;;
8739
8740     sysv4)
8741       case $host_vendor in
8742         sni)
8743           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744           hardcode_direct=yes # is this really true???
8745         ;;
8746         siemens)
8747           ## LD is ld it makes a PLAMLIB
8748           ## CC just makes a GrossModule.
8749           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8750           reload_cmds='$CC -r -o $output$reload_objs'
8751           hardcode_direct=no
8752         ;;
8753         motorola)
8754           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8756         ;;
8757       esac
8758       runpath_var='LD_RUN_PATH'
8759       hardcode_shlibpath_var=no
8760       ;;
8761
8762     sysv4.3*)
8763       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764       hardcode_shlibpath_var=no
8765       export_dynamic_flag_spec='-Bexport'
8766       ;;
8767
8768     sysv4*MP*)
8769       if test -d /usr/nec; then
8770         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771         hardcode_shlibpath_var=no
8772         runpath_var=LD_RUN_PATH
8773         hardcode_runpath_var=yes
8774         ld_shlibs=yes
8775       fi
8776       ;;
8777
8778     sysv4.2uw2*)
8779       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8780       hardcode_direct=yes
8781       hardcode_minus_L=no
8782       hardcode_shlibpath_var=no
8783       hardcode_runpath_var=yes
8784       runpath_var=LD_RUN_PATH
8785       ;;
8786
8787    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8788       no_undefined_flag='${wl}-z ${wl}text'
8789       if test "$GCC" = yes; then
8790         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791       else
8792         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793       fi
8794       runpath_var='LD_RUN_PATH'
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     sysv5*)
8799       no_undefined_flag=' -z text'
8800       # $CC -shared without GNU ld will not create a library from C++
8801       # object files and a static libstdc++, better avoid it by now
8802       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8804                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8805       hardcode_libdir_flag_spec=
8806       hardcode_shlibpath_var=no
8807       runpath_var='LD_RUN_PATH'
8808       ;;
8809
8810     uts4*)
8811       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812       hardcode_libdir_flag_spec='-L$libdir'
8813       hardcode_shlibpath_var=no
8814       ;;
8815
8816     *)
8817       ld_shlibs=no
8818       ;;
8819     esac
8820   fi
8821
8822 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8823 echo "${ECHO_T}$ld_shlibs" >&6
8824 test "$ld_shlibs" = no && can_build_shared=no
8825
8826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8827 if test "$GCC" = yes; then
8828   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8829 fi
8830
8831 #
8832 # Do we need to explicitly link libc?
8833 #
8834 case "x$archive_cmds_need_lc" in
8835 x|xyes)
8836   # Assume -lc should be added
8837   archive_cmds_need_lc=yes
8838
8839   if test "$enable_shared" = yes && test "$GCC" = yes; then
8840     case $archive_cmds in
8841     *'~'*)
8842       # FIXME: we may have to deal with multi-command sequences.
8843       ;;
8844     '$CC '*)
8845       # Test whether the compiler implicitly links with -lc since on some
8846       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8847       # to ld, don't add -lc before -lgcc.
8848       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8849 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8850       $rm conftest*
8851       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8852
8853       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854   (eval $ac_compile) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } 2>conftest.err; then
8858         soname=conftest
8859         lib=conftest
8860         libobjs=conftest.$ac_objext
8861         deplibs=
8862         wl=$lt_prog_compiler_wl
8863         compiler_flags=-v
8864         linker_flags=-v
8865         verstring=
8866         output_objdir=.
8867         libname=conftest
8868         lt_save_allow_undefined_flag=$allow_undefined_flag
8869         allow_undefined_flag=
8870         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8871   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }
8875         then
8876           archive_cmds_need_lc=no
8877         else
8878           archive_cmds_need_lc=yes
8879         fi
8880         allow_undefined_flag=$lt_save_allow_undefined_flag
8881       else
8882         cat conftest.err 1>&5
8883       fi
8884       $rm conftest*
8885       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8886 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8887       ;;
8888     esac
8889   fi
8890   ;;
8891 esac
8892
8893 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8894 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8895 library_names_spec=
8896 libname_spec='lib$name'
8897 soname_spec=
8898 shrext_cmds=".so"
8899 postinstall_cmds=
8900 postuninstall_cmds=
8901 finish_cmds=
8902 finish_eval=
8903 shlibpath_var=
8904 shlibpath_overrides_runpath=unknown
8905 version_type=none
8906 dynamic_linker="$host_os ld.so"
8907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8908 if test "$GCC" = yes; then
8909   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8910   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8911     # if the path contains ";" then we assume it to be the separator
8912     # otherwise default to the standard path separator (i.e. ":") - it is
8913     # assumed that no part of a normal pathname contains ";" but that should
8914     # okay in the real world where ";" in dirpaths is itself problematic.
8915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8916   else
8917     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8918   fi
8919 else
8920   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8921 fi
8922 need_lib_prefix=unknown
8923 hardcode_into_libs=no
8924
8925 # when you set need_version to no, make sure it does not cause -set_version
8926 # flags to be left without arguments
8927 need_version=unknown
8928
8929 case $host_os in
8930 aix3*)
8931   version_type=linux
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8933   shlibpath_var=LIBPATH
8934
8935   # AIX 3 has no versioning support, so we append a major version to the name.
8936   soname_spec='${libname}${release}${shared_ext}$major'
8937   ;;
8938
8939 aix4* | aix5*)
8940   version_type=linux
8941   need_lib_prefix=no
8942   need_version=no
8943   hardcode_into_libs=yes
8944   if test "$host_cpu" = ia64; then
8945     # AIX 5 supports IA64
8946     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8947     shlibpath_var=LD_LIBRARY_PATH
8948   else
8949     # With GCC up to 2.95.x, collect2 would create an import file
8950     # for dependence libraries.  The import file would start with
8951     # the line `#! .'.  This would cause the generated library to
8952     # depend on `.', always an invalid library.  This was fixed in
8953     # development snapshots of GCC prior to 3.0.
8954     case $host_os in
8955       aix4 | aix4.[01] | aix4.[01].*)
8956       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8957            echo ' yes '
8958            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8959         :
8960       else
8961         can_build_shared=no
8962       fi
8963       ;;
8964     esac
8965     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8966     # soname into executable. Probably we can add versioning support to
8967     # collect2, so additional links can be useful in future.
8968     if test "$aix_use_runtimelinking" = yes; then
8969       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8970       # instead of lib<name>.a to let people know that these are not
8971       # typical AIX shared libraries.
8972       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973     else
8974       # We preserve .a as extension for shared libraries through AIX4.2
8975       # and later when we are not doing run time linking.
8976       library_names_spec='${libname}${release}.a $libname.a'
8977       soname_spec='${libname}${release}${shared_ext}$major'
8978     fi
8979     shlibpath_var=LIBPATH
8980   fi
8981   ;;
8982
8983 amigaos*)
8984   library_names_spec='$libname.ixlibrary $libname.a'
8985   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8986   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'
8987   ;;
8988
8989 beos*)
8990   library_names_spec='${libname}${shared_ext}'
8991   dynamic_linker="$host_os ld.so"
8992   shlibpath_var=LIBRARY_PATH
8993   ;;
8994
8995 bsdi[45]*)
8996   version_type=linux
8997   need_version=no
8998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999   soname_spec='${libname}${release}${shared_ext}$major'
9000   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9003   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9004   # the default ld.so.conf also contains /usr/contrib/lib and
9005   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9006   # libtool to hard-code these into programs
9007   ;;
9008
9009 cygwin* | mingw* | pw32*)
9010   version_type=windows
9011   shrext_cmds=".dll"
9012   need_version=no
9013   need_lib_prefix=no
9014
9015   case $GCC,$host_os in
9016   yes,cygwin* | yes,mingw* | yes,pw32*)
9017     library_names_spec='$libname.dll.a'
9018     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9019     postinstall_cmds='base_file=`basename \${file}`~
9020       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9021       dldir=$destdir/`dirname \$dlpath`~
9022       test -d \$dldir || mkdir -p \$dldir~
9023       $install_prog $dir/$dlname \$dldir/$dlname~
9024       chmod a+x \$dldir/$dlname'
9025     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9026       dlpath=$dir/\$dldll~
9027        $rm \$dlpath'
9028     shlibpath_overrides_runpath=yes
9029
9030     case $host_os in
9031     cygwin*)
9032       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9033       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9034       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9035       ;;
9036     mingw*)
9037       # MinGW DLLs use traditional 'lib' prefix
9038       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9039       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9040       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9041         # It is most probably a Windows format PATH printed by
9042         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9043         # path with ; separators, and with drive letters. We can handle the
9044         # drive letters (cygwin fileutils understands them), so leave them,
9045         # especially as we might pass files found there to a mingw objdump,
9046         # which wouldn't understand a cygwinified path. Ahh.
9047         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9048       else
9049         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9050       fi
9051       ;;
9052     pw32*)
9053       # pw32 DLLs use 'pw' prefix rather than 'lib'
9054       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9055       ;;
9056     esac
9057     ;;
9058
9059   *)
9060     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9061     ;;
9062   esac
9063   dynamic_linker='Win32 ld.exe'
9064   # FIXME: first we should search . and the directory the executable is in
9065   shlibpath_var=PATH
9066   ;;
9067
9068 darwin* | rhapsody*)
9069   dynamic_linker="$host_os dyld"
9070   version_type=darwin
9071   need_lib_prefix=no
9072   need_version=no
9073   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9074   soname_spec='${libname}${release}${major}$shared_ext'
9075   shlibpath_overrides_runpath=yes
9076   shlibpath_var=DYLD_LIBRARY_PATH
9077   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9078   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9079   if test "$GCC" = yes; then
9080     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"`
9081   else
9082     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9083   fi
9084   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9085   ;;
9086
9087 dgux*)
9088   version_type=linux
9089   need_lib_prefix=no
9090   need_version=no
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9092   soname_spec='${libname}${release}${shared_ext}$major'
9093   shlibpath_var=LD_LIBRARY_PATH
9094   ;;
9095
9096 freebsd1*)
9097   dynamic_linker=no
9098   ;;
9099
9100 kfreebsd*-gnu)
9101   version_type=linux
9102   need_lib_prefix=no
9103   need_version=no
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   shlibpath_overrides_runpath=no
9108   hardcode_into_libs=yes
9109   dynamic_linker='GNU ld.so'
9110   ;;
9111
9112 freebsd* | dragonfly*)
9113   # DragonFly does not have aout.  When/if they implement a new
9114   # versioning mechanism, adjust this.
9115   if test -x /usr/bin/objformat; then
9116     objformat=`/usr/bin/objformat`
9117   else
9118     case $host_os in
9119     freebsd[123]*) objformat=aout ;;
9120     *) objformat=elf ;;
9121     esac
9122   fi
9123   version_type=freebsd-$objformat
9124   case $version_type in
9125     freebsd-elf*)
9126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9127       need_version=no
9128       need_lib_prefix=no
9129       ;;
9130     freebsd-*)
9131       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9132       need_version=yes
9133       ;;
9134   esac
9135   shlibpath_var=LD_LIBRARY_PATH
9136   case $host_os in
9137   freebsd2*)
9138     shlibpath_overrides_runpath=yes
9139     ;;
9140   freebsd3.[01]* | freebsdelf3.[01]*)
9141     shlibpath_overrides_runpath=yes
9142     hardcode_into_libs=yes
9143     ;;
9144   *) # from 3.2 on
9145     shlibpath_overrides_runpath=no
9146     hardcode_into_libs=yes
9147     ;;
9148   esac
9149   ;;
9150
9151 gnu*)
9152   version_type=linux
9153   need_lib_prefix=no
9154   need_version=no
9155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9156   soname_spec='${libname}${release}${shared_ext}$major'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   hardcode_into_libs=yes
9159   ;;
9160
9161 hpux9* | hpux10* | hpux11*)
9162   # Give a soname corresponding to the major version so that dld.sl refuses to
9163   # link against other versions.
9164   version_type=sunos
9165   need_lib_prefix=no
9166   need_version=no
9167   case $host_cpu in
9168   ia64*)
9169     shrext_cmds='.so'
9170     hardcode_into_libs=yes
9171     dynamic_linker="$host_os dld.so"
9172     shlibpath_var=LD_LIBRARY_PATH
9173     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175     soname_spec='${libname}${release}${shared_ext}$major'
9176     if test "X$HPUX_IA64_MODE" = X32; then
9177       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9178     else
9179       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9180     fi
9181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9182     ;;
9183    hppa*64*)
9184      shrext_cmds='.sl'
9185      hardcode_into_libs=yes
9186      dynamic_linker="$host_os dld.sl"
9187      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9188      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9189      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190      soname_spec='${libname}${release}${shared_ext}$major'
9191      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9192      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9193      ;;
9194    *)
9195     shrext_cmds='.sl'
9196     dynamic_linker="$host_os dld.sl"
9197     shlibpath_var=SHLIB_PATH
9198     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200     soname_spec='${libname}${release}${shared_ext}$major'
9201     ;;
9202   esac
9203   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9204   postinstall_cmds='chmod 555 $lib'
9205   ;;
9206
9207 irix5* | irix6* | nonstopux*)
9208   case $host_os in
9209     nonstopux*) version_type=nonstopux ;;
9210     *)
9211         if test "$lt_cv_prog_gnu_ld" = yes; then
9212                 version_type=linux
9213         else
9214                 version_type=irix
9215         fi ;;
9216   esac
9217   need_lib_prefix=no
9218   need_version=no
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9221   case $host_os in
9222   irix5* | nonstopux*)
9223     libsuff= shlibsuff=
9224     ;;
9225   *)
9226     case $LD in # libtool.m4 will add one of these switches to LD
9227     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9228       libsuff= shlibsuff= libmagic=32-bit;;
9229     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9230       libsuff=32 shlibsuff=N32 libmagic=N32;;
9231     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9232       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9233     *) libsuff= shlibsuff= libmagic=never-match;;
9234     esac
9235     ;;
9236   esac
9237   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9238   shlibpath_overrides_runpath=no
9239   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9240   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9241   hardcode_into_libs=yes
9242   ;;
9243
9244 # No shared lib support for Linux oldld, aout, or coff.
9245 linux*oldld* | linux*aout* | linux*coff*)
9246   dynamic_linker=no
9247   ;;
9248
9249 # This must be Linux ELF.
9250 linux*)
9251   version_type=linux
9252   need_lib_prefix=no
9253   need_version=no
9254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255   soname_spec='${libname}${release}${shared_ext}$major'
9256   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9257   shlibpath_var=LD_LIBRARY_PATH
9258   shlibpath_overrides_runpath=no
9259   # This implies no fast_install, which is unacceptable.
9260   # Some rework will be needed to allow for fast_install
9261   # before this can be enabled.
9262   hardcode_into_libs=yes
9263
9264   # Append ld.so.conf contents to the search path
9265   if test -f /etc/ld.so.conf; then
9266     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' ' '`
9267     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9268   fi
9269
9270   # We used to test for /lib/ld.so.1 and disable shared libraries on
9271   # powerpc, because MkLinux only supported shared libraries with the
9272   # GNU dynamic linker.  Since this was broken with cross compilers,
9273   # most powerpc-linux boxes support dynamic linking these days and
9274   # people can always --disable-shared, the test was removed, and we
9275   # assume the GNU/Linux dynamic linker is in use.
9276   dynamic_linker='GNU/Linux ld.so'
9277   ;;
9278
9279 knetbsd*-gnu)
9280   version_type=linux
9281   need_lib_prefix=no
9282   need_version=no
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284   soname_spec='${libname}${release}${shared_ext}$major'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   shlibpath_overrides_runpath=no
9287   hardcode_into_libs=yes
9288   dynamic_linker='GNU ld.so'
9289   ;;
9290
9291 netbsd*)
9292   version_type=sunos
9293   need_lib_prefix=no
9294   need_version=no
9295   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298     dynamic_linker='NetBSD (a.out) ld.so'
9299   else
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     dynamic_linker='NetBSD ld.elf_so'
9303   fi
9304   shlibpath_var=LD_LIBRARY_PATH
9305   shlibpath_overrides_runpath=yes
9306   hardcode_into_libs=yes
9307   ;;
9308
9309 newsos6)
9310   version_type=linux
9311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312   shlibpath_var=LD_LIBRARY_PATH
9313   shlibpath_overrides_runpath=yes
9314   ;;
9315
9316 nto-qnx*)
9317   version_type=linux
9318   need_lib_prefix=no
9319   need_version=no
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321   soname_spec='${libname}${release}${shared_ext}$major'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=yes
9324   ;;
9325
9326 openbsd*)
9327   version_type=sunos
9328   need_lib_prefix=no
9329   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9330   case $host_os in
9331     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9332     *)                         need_version=no  ;;
9333   esac
9334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9336   shlibpath_var=LD_LIBRARY_PATH
9337   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9338     case $host_os in
9339       openbsd2.[89] | openbsd2.[89].*)
9340         shlibpath_overrides_runpath=no
9341         ;;
9342       *)
9343         shlibpath_overrides_runpath=yes
9344         ;;
9345       esac
9346   else
9347     shlibpath_overrides_runpath=yes
9348   fi
9349   ;;
9350
9351 os2*)
9352   libname_spec='$name'
9353   shrext_cmds=".dll"
9354   need_lib_prefix=no
9355   library_names_spec='$libname${shared_ext} $libname.a'
9356   dynamic_linker='OS/2 ld.exe'
9357   shlibpath_var=LIBPATH
9358   ;;
9359
9360 osf3* | osf4* | osf5*)
9361   version_type=osf
9362   need_lib_prefix=no
9363   need_version=no
9364   soname_spec='${libname}${release}${shared_ext}$major'
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366   shlibpath_var=LD_LIBRARY_PATH
9367   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9368   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9369   ;;
9370
9371 sco3.2v5*)
9372   version_type=osf
9373   soname_spec='${libname}${release}${shared_ext}$major'
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   ;;
9377
9378 solaris*)
9379   version_type=linux
9380   need_lib_prefix=no
9381   need_version=no
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   shlibpath_overrides_runpath=yes
9386   hardcode_into_libs=yes
9387   # ldd complains unless libraries are executable
9388   postinstall_cmds='chmod +x $lib'
9389   ;;
9390
9391 sunos4*)
9392   version_type=sunos
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9395   shlibpath_var=LD_LIBRARY_PATH
9396   shlibpath_overrides_runpath=yes
9397   if test "$with_gnu_ld" = yes; then
9398     need_lib_prefix=no
9399   fi
9400   need_version=yes
9401   ;;
9402
9403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9404   version_type=linux
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406   soname_spec='${libname}${release}${shared_ext}$major'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   case $host_vendor in
9409     sni)
9410       shlibpath_overrides_runpath=no
9411       need_lib_prefix=no
9412       export_dynamic_flag_spec='${wl}-Blargedynsym'
9413       runpath_var=LD_RUN_PATH
9414       ;;
9415     siemens)
9416       need_lib_prefix=no
9417       ;;
9418     motorola)
9419       need_lib_prefix=no
9420       need_version=no
9421       shlibpath_overrides_runpath=no
9422       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9423       ;;
9424   esac
9425   ;;
9426
9427 sysv4*MP*)
9428   if test -d /usr/nec ;then
9429     version_type=linux
9430     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9431     soname_spec='$libname${shared_ext}.$major'
9432     shlibpath_var=LD_LIBRARY_PATH
9433   fi
9434   ;;
9435
9436 uts4*)
9437   version_type=linux
9438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439   soname_spec='${libname}${release}${shared_ext}$major'
9440   shlibpath_var=LD_LIBRARY_PATH
9441   ;;
9442
9443 *)
9444   dynamic_linker=no
9445   ;;
9446 esac
9447 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9448 echo "${ECHO_T}$dynamic_linker" >&6
9449 test "$dynamic_linker" = no && can_build_shared=no
9450
9451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9453 hardcode_action=
9454 if test -n "$hardcode_libdir_flag_spec" || \
9455    test -n "$runpath_var" || \
9456    test "X$hardcode_automatic" = "Xyes" ; then
9457
9458   # We can hardcode non-existant directories.
9459   if test "$hardcode_direct" != no &&
9460      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9461      # have to relink, otherwise we might link with an installed library
9462      # when we should be linking with a yet-to-be-installed one
9463      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9464      test "$hardcode_minus_L" != no; then
9465     # Linking always hardcodes the temporary library directory.
9466     hardcode_action=relink
9467   else
9468     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9469     hardcode_action=immediate
9470   fi
9471 else
9472   # We cannot hardcode anything, or else we can only hardcode existing
9473   # directories.
9474   hardcode_action=unsupported
9475 fi
9476 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9477 echo "${ECHO_T}$hardcode_action" >&6
9478
9479 if test "$hardcode_action" = relink; then
9480   # Fast installation is not supported
9481   enable_fast_install=no
9482 elif test "$shlibpath_overrides_runpath" = yes ||
9483      test "$enable_shared" = no; then
9484   # Fast installation is not necessary
9485   enable_fast_install=needless
9486 fi
9487
9488 striplib=
9489 old_striplib=
9490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9493   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9494   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9495   echo "$as_me:$LINENO: result: yes" >&5
9496 echo "${ECHO_T}yes" >&6
9497 else
9498 # FIXME - insert some real tests, host_os isn't really good enough
9499   case $host_os in
9500    darwin*)
9501        if test -n "$STRIP" ; then
9502          striplib="$STRIP -x"
9503          echo "$as_me:$LINENO: result: yes" >&5
9504 echo "${ECHO_T}yes" >&6
9505        else
9506   echo "$as_me:$LINENO: result: no" >&5
9507 echo "${ECHO_T}no" >&6
9508 fi
9509        ;;
9510    *)
9511   echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6
9513     ;;
9514   esac
9515 fi
9516
9517 if test "x$enable_dlopen" != xyes; then
9518   enable_dlopen=unknown
9519   enable_dlopen_self=unknown
9520   enable_dlopen_self_static=unknown
9521 else
9522   lt_cv_dlopen=no
9523   lt_cv_dlopen_libs=
9524
9525   case $host_os in
9526   beos*)
9527     lt_cv_dlopen="load_add_on"
9528     lt_cv_dlopen_libs=
9529     lt_cv_dlopen_self=yes
9530     ;;
9531
9532   mingw* | pw32*)
9533     lt_cv_dlopen="LoadLibrary"
9534     lt_cv_dlopen_libs=
9535    ;;
9536
9537   cygwin*)
9538     lt_cv_dlopen="dlopen"
9539     lt_cv_dlopen_libs=
9540    ;;
9541
9542   darwin*)
9543   # if libdl is installed we need to link against it
9544     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-ldl  $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557
9558 /* Override any gcc2 internal prototype to avoid an error.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 /* We use char because int might match the return type of a gcc2
9563    builtin and then its argument prototype would still apply.  */
9564 char dlopen ();
9565 int
9566 main ()
9567 {
9568 dlopen ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575   (eval $ac_link) 2>conftest.er1
9576   ac_status=$?
9577   grep -v '^ *+' conftest.er1 >conftest.err
9578   rm -f conftest.er1
9579   cat conftest.err >&5
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } &&
9582          { ac_try='test -z "$ac_c_werror_flag"
9583                          || test ! -s conftest.err'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; } &&
9589          { ac_try='test -s conftest$ac_exeext'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   ac_cv_lib_dl_dlopen=yes
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_cv_lib_dl_dlopen=no
9601 fi
9602 rm -f conftest.err conftest.$ac_objext \
9603       conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9605 fi
9606 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9607 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9608 if test $ac_cv_lib_dl_dlopen = yes; then
9609   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9610 else
9611
9612     lt_cv_dlopen="dyld"
9613     lt_cv_dlopen_libs=
9614     lt_cv_dlopen_self=yes
9615
9616 fi
9617
9618    ;;
9619
9620   *)
9621     echo "$as_me:$LINENO: checking for shl_load" >&5
9622 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9623 if test "${ac_cv_func_shl_load+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9634 #define shl_load innocuous_shl_load
9635
9636 /* System header to define __stub macros and hopefully few prototypes,
9637     which can conflict with char shl_load (); below.
9638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9639     <limits.h> exists even on freestanding compilers.  */
9640
9641 #ifdef __STDC__
9642 # include <limits.h>
9643 #else
9644 # include <assert.h>
9645 #endif
9646
9647 #undef shl_load
9648
9649 /* Override any gcc2 internal prototype to avoid an error.  */
9650 #ifdef __cplusplus
9651 extern "C"
9652 {
9653 #endif
9654 /* We use char because int might match the return type of a gcc2
9655    builtin and then its argument prototype would still apply.  */
9656 char shl_load ();
9657 /* The GNU C library defines this for functions which it implements
9658     to always fail with ENOSYS.  Some functions are actually named
9659     something starting with __ and the normal name is an alias.  */
9660 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9661 choke me
9662 #else
9663 char (*f) () = shl_load;
9664 #endif
9665 #ifdef __cplusplus
9666 }
9667 #endif
9668
9669 int
9670 main ()
9671 {
9672 return f != shl_load;
9673   ;
9674   return 0;
9675 }
9676 _ACEOF
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679   (eval $ac_link) 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } &&
9686          { ac_try='test -z "$ac_c_werror_flag"
9687                          || test ! -s conftest.err'
9688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689   (eval $ac_try) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); }; } &&
9693          { ac_try='test -s conftest$ac_exeext'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_cv_func_shl_load=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_cv_func_shl_load=no
9705 fi
9706 rm -f conftest.err conftest.$ac_objext \
9707       conftest$ac_exeext conftest.$ac_ext
9708 fi
9709 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9710 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9711 if test $ac_cv_func_shl_load = yes; then
9712   lt_cv_dlopen="shl_load"
9713 else
9714   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9715 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9716 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719   ac_check_lib_save_LIBS=$LIBS
9720 LIBS="-ldld  $LIBS"
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727
9728 /* Override any gcc2 internal prototype to avoid an error.  */
9729 #ifdef __cplusplus
9730 extern "C"
9731 #endif
9732 /* We use char because int might match the return type of a gcc2
9733    builtin and then its argument prototype would still apply.  */
9734 char shl_load ();
9735 int
9736 main ()
9737 {
9738 shl_load ();
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745   (eval $ac_link) 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } &&
9752          { ac_try='test -z "$ac_c_werror_flag"
9753                          || test ! -s conftest.err'
9754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755   (eval $ac_try) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest$ac_exeext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   ac_cv_lib_dld_shl_load=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_cv_lib_dld_shl_load=no
9771 fi
9772 rm -f conftest.err conftest.$ac_objext \
9773       conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9775 fi
9776 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9777 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9778 if test $ac_cv_lib_dld_shl_load = yes; then
9779   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9780 else
9781   echo "$as_me:$LINENO: checking for dlopen" >&5
9782 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9783 if test "${ac_cv_func_dlopen+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define dlopen innocuous_dlopen
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char dlopen (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef dlopen
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815    builtin and then its argument prototype would still apply.  */
9816 char dlopen ();
9817 /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS.  Some functions are actually named
9819     something starting with __ and the normal name is an alias.  */
9820 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9821 choke me
9822 #else
9823 char (*f) () = dlopen;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != dlopen;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   ac_cv_func_dlopen=yes
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 ac_cv_func_dlopen=no
9865 fi
9866 rm -f conftest.err conftest.$ac_objext \
9867       conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9870 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9871 if test $ac_cv_func_dlopen = yes; then
9872   lt_cv_dlopen="dlopen"
9873 else
9874   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-ldl  $LIBS"
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any gcc2 internal prototype to avoid an error.  */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 /* We use char because int might match the return type of a gcc2
9893    builtin and then its argument prototype would still apply.  */
9894 char dlopen ();
9895 int
9896 main ()
9897 {
9898 dlopen ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905   (eval $ac_link) 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -z "$ac_c_werror_flag"
9913                          || test ! -s conftest.err'
9914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915   (eval $ac_try) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; } &&
9919          { ac_try='test -s conftest$ac_exeext'
9920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921   (eval $ac_try) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; }; then
9925   ac_cv_lib_dl_dlopen=yes
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930 ac_cv_lib_dl_dlopen=no
9931 fi
9932 rm -f conftest.err conftest.$ac_objext \
9933       conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9938 if test $ac_cv_lib_dl_dlopen = yes; then
9939   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9940 else
9941   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9942 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9943 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   ac_check_lib_save_LIBS=$LIBS
9947 LIBS="-lsvld  $LIBS"
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954
9955 /* Override any gcc2 internal prototype to avoid an error.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 /* We use char because int might match the return type of a gcc2
9960    builtin and then its argument prototype would still apply.  */
9961 char dlopen ();
9962 int
9963 main ()
9964 {
9965 dlopen ();
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972   (eval $ac_link) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"
9980                          || test ! -s conftest.err'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest$ac_exeext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_cv_lib_svld_dlopen=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_lib_svld_dlopen=no
9998 fi
9999 rm -f conftest.err conftest.$ac_objext \
10000       conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10002 fi
10003 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10005 if test $ac_cv_lib_svld_dlopen = yes; then
10006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10007 else
10008   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10009 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10010 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-ldld  $LIBS"
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021
10022 /* Override any gcc2 internal prototype to avoid an error.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 /* We use char because int might match the return type of a gcc2
10027    builtin and then its argument prototype would still apply.  */
10028 char dld_link ();
10029 int
10030 main ()
10031 {
10032 dld_link ();
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039   (eval $ac_link) 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } &&
10046          { ac_try='test -z "$ac_c_werror_flag"
10047                          || test ! -s conftest.err'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; } &&
10053          { ac_try='test -s conftest$ac_exeext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_lib_dld_dld_link=yes
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 ac_cv_lib_dld_dld_link=no
10065 fi
10066 rm -f conftest.err conftest.$ac_objext \
10067       conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10072 if test $ac_cv_lib_dld_dld_link = yes; then
10073   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10074 fi
10075
10076
10077 fi
10078
10079
10080 fi
10081
10082
10083 fi
10084
10085
10086 fi
10087
10088
10089 fi
10090
10091     ;;
10092   esac
10093
10094   if test "x$lt_cv_dlopen" != xno; then
10095     enable_dlopen=yes
10096   else
10097     enable_dlopen=no
10098   fi
10099
10100   case $lt_cv_dlopen in
10101   dlopen)
10102     save_CPPFLAGS="$CPPFLAGS"
10103     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10104
10105     save_LDFLAGS="$LDFLAGS"
10106     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10107
10108     save_LIBS="$LIBS"
10109     LIBS="$lt_cv_dlopen_libs $LIBS"
10110
10111     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10112 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10113 if test "${lt_cv_dlopen_self+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116           if test "$cross_compiling" = yes; then :
10117   lt_cv_dlopen_self=cross
10118 else
10119   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10120   lt_status=$lt_dlunknown
10121   cat > conftest.$ac_ext <<EOF
10122 #line 10122 "configure"
10123 #include "confdefs.h"
10124
10125 #if HAVE_DLFCN_H
10126 #include <dlfcn.h>
10127 #endif
10128
10129 #include <stdio.h>
10130
10131 #ifdef RTLD_GLOBAL
10132 #  define LT_DLGLOBAL           RTLD_GLOBAL
10133 #else
10134 #  ifdef DL_GLOBAL
10135 #    define LT_DLGLOBAL         DL_GLOBAL
10136 #  else
10137 #    define LT_DLGLOBAL         0
10138 #  endif
10139 #endif
10140
10141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10142    find out it does not work in some platform. */
10143 #ifndef LT_DLLAZY_OR_NOW
10144 #  ifdef RTLD_LAZY
10145 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10146 #  else
10147 #    ifdef DL_LAZY
10148 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10149 #    else
10150 #      ifdef RTLD_NOW
10151 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10152 #      else
10153 #        ifdef DL_NOW
10154 #          define LT_DLLAZY_OR_NOW      DL_NOW
10155 #        else
10156 #          define LT_DLLAZY_OR_NOW      0
10157 #        endif
10158 #      endif
10159 #    endif
10160 #  endif
10161 #endif
10162
10163 #ifdef __cplusplus
10164 extern "C" void exit (int);
10165 #endif
10166
10167 void fnord() { int i=42;}
10168 int main ()
10169 {
10170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10171   int status = $lt_dlunknown;
10172
10173   if (self)
10174     {
10175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10176       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10177       /* dlclose (self); */
10178     }
10179
10180     exit (status);
10181 }
10182 EOF
10183   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184   (eval $ac_link) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10188     (./conftest; exit; ) >&5 2>/dev/null
10189     lt_status=$?
10190     case x$lt_status in
10191       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10192       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10193       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10194     esac
10195   else :
10196     # compilation failed
10197     lt_cv_dlopen_self=no
10198   fi
10199 fi
10200 rm -fr conftest*
10201
10202
10203 fi
10204 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10205 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10206
10207     if test "x$lt_cv_dlopen_self" = xyes; then
10208       LDFLAGS="$LDFLAGS $link_static_flag"
10209       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10210 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10211 if test "${lt_cv_dlopen_self_static+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214           if test "$cross_compiling" = yes; then :
10215   lt_cv_dlopen_self_static=cross
10216 else
10217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218   lt_status=$lt_dlunknown
10219   cat > conftest.$ac_ext <<EOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10222
10223 #if HAVE_DLFCN_H
10224 #include <dlfcn.h>
10225 #endif
10226
10227 #include <stdio.h>
10228
10229 #ifdef RTLD_GLOBAL
10230 #  define LT_DLGLOBAL           RTLD_GLOBAL
10231 #else
10232 #  ifdef DL_GLOBAL
10233 #    define LT_DLGLOBAL         DL_GLOBAL
10234 #  else
10235 #    define LT_DLGLOBAL         0
10236 #  endif
10237 #endif
10238
10239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240    find out it does not work in some platform. */
10241 #ifndef LT_DLLAZY_OR_NOW
10242 #  ifdef RTLD_LAZY
10243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10244 #  else
10245 #    ifdef DL_LAZY
10246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10247 #    else
10248 #      ifdef RTLD_NOW
10249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10250 #      else
10251 #        ifdef DL_NOW
10252 #          define LT_DLLAZY_OR_NOW      DL_NOW
10253 #        else
10254 #          define LT_DLLAZY_OR_NOW      0
10255 #        endif
10256 #      endif
10257 #    endif
10258 #  endif
10259 #endif
10260
10261 #ifdef __cplusplus
10262 extern "C" void exit (int);
10263 #endif
10264
10265 void fnord() { int i=42;}
10266 int main ()
10267 {
10268   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269   int status = $lt_dlunknown;
10270
10271   if (self)
10272     {
10273       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10274       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275       /* dlclose (self); */
10276     }
10277
10278     exit (status);
10279 }
10280 EOF
10281   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282   (eval $ac_link) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10286     (./conftest; exit; ) >&5 2>/dev/null
10287     lt_status=$?
10288     case x$lt_status in
10289       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10290       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10291       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10292     esac
10293   else :
10294     # compilation failed
10295     lt_cv_dlopen_self_static=no
10296   fi
10297 fi
10298 rm -fr conftest*
10299
10300
10301 fi
10302 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10303 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10304     fi
10305
10306     CPPFLAGS="$save_CPPFLAGS"
10307     LDFLAGS="$save_LDFLAGS"
10308     LIBS="$save_LIBS"
10309     ;;
10310   esac
10311
10312   case $lt_cv_dlopen_self in
10313   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10314   *) enable_dlopen_self=unknown ;;
10315   esac
10316
10317   case $lt_cv_dlopen_self_static in
10318   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10319   *) enable_dlopen_self_static=unknown ;;
10320   esac
10321 fi
10322
10323
10324 # Report which librarie types wil actually be built
10325 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10326 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10327 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10328 echo "${ECHO_T}$can_build_shared" >&6
10329
10330 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10331 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10332 test "$can_build_shared" = "no" && enable_shared=no
10333
10334 # On AIX, shared libraries and static libraries use the same namespace, and
10335 # are all built from PIC.
10336 case $host_os in
10337 aix3*)
10338   test "$enable_shared" = yes && enable_static=no
10339   if test -n "$RANLIB"; then
10340     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10341     postinstall_cmds='$RANLIB $lib'
10342   fi
10343   ;;
10344
10345 aix4* | aix5*)
10346   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10347     test "$enable_shared" = yes && enable_static=no
10348   fi
10349     ;;
10350 esac
10351 echo "$as_me:$LINENO: result: $enable_shared" >&5
10352 echo "${ECHO_T}$enable_shared" >&6
10353
10354 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10355 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10356 # Make sure either enable_shared or enable_static is yes.
10357 test "$enable_shared" = yes || enable_static=yes
10358 echo "$as_me:$LINENO: result: $enable_static" >&5
10359 echo "${ECHO_T}$enable_static" >&6
10360
10361 # The else clause should only fire when bootstrapping the
10362 # libtool distribution, otherwise you forgot to ship ltmain.sh
10363 # with your package, and you will get complaints that there are
10364 # no rules to generate ltmain.sh.
10365 if test -f "$ltmain"; then
10366   # See if we are running on zsh, and set the options which allow our commands through
10367   # without removal of \ escapes.
10368   if test -n "${ZSH_VERSION+set}" ; then
10369     setopt NO_GLOB_SUBST
10370   fi
10371   # Now quote all the things that may contain metacharacters while being
10372   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10373   # variables and quote the copies for generation of the libtool script.
10374   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10375     SED SHELL STRIP \
10376     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10377     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10378     deplibs_check_method reload_flag reload_cmds need_locks \
10379     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10380     lt_cv_sys_global_symbol_to_c_name_address \
10381     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10382     old_postinstall_cmds old_postuninstall_cmds \
10383     compiler \
10384     CC \
10385     LD \
10386     lt_prog_compiler_wl \
10387     lt_prog_compiler_pic \
10388     lt_prog_compiler_static \
10389     lt_prog_compiler_no_builtin_flag \
10390     export_dynamic_flag_spec \
10391     thread_safe_flag_spec \
10392     whole_archive_flag_spec \
10393     enable_shared_with_static_runtimes \
10394     old_archive_cmds \
10395     old_archive_from_new_cmds \
10396     predep_objects \
10397     postdep_objects \
10398     predeps \
10399     postdeps \
10400     compiler_lib_search_path \
10401     archive_cmds \
10402     archive_expsym_cmds \
10403     postinstall_cmds \
10404     postuninstall_cmds \
10405     old_archive_from_expsyms_cmds \
10406     allow_undefined_flag \
10407     no_undefined_flag \
10408     export_symbols_cmds \
10409     hardcode_libdir_flag_spec \
10410     hardcode_libdir_flag_spec_ld \
10411     hardcode_libdir_separator \
10412     hardcode_automatic \
10413     module_cmds \
10414     module_expsym_cmds \
10415     lt_cv_prog_compiler_c_o \
10416     exclude_expsyms \
10417     include_expsyms; do
10418
10419     case $var in
10420     old_archive_cmds | \
10421     old_archive_from_new_cmds | \
10422     archive_cmds | \
10423     archive_expsym_cmds | \
10424     module_cmds | \
10425     module_expsym_cmds | \
10426     old_archive_from_expsyms_cmds | \
10427     export_symbols_cmds | \
10428     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10429     postinstall_cmds | postuninstall_cmds | \
10430     old_postinstall_cmds | old_postuninstall_cmds | \
10431     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10432       # Double-quote double-evaled strings.
10433       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10434       ;;
10435     *)
10436       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10437       ;;
10438     esac
10439   done
10440
10441   case $lt_echo in
10442   *'\$0 --fallback-echo"')
10443     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10444     ;;
10445   esac
10446
10447 cfgfile="${ofile}T"
10448   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10449   $rm -f "$cfgfile"
10450   { echo "$as_me:$LINENO: creating $ofile" >&5
10451 echo "$as_me: creating $ofile" >&6;}
10452
10453   cat <<__EOF__ >> "$cfgfile"
10454 #! $SHELL
10455
10456 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10457 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10458 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10459 #
10460 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10461 # Free Software Foundation, Inc.
10462 #
10463 # This file is part of GNU Libtool:
10464 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10465 #
10466 # This program is free software; you can redistribute it and/or modify
10467 # it under the terms of the GNU General Public License as published by
10468 # the Free Software Foundation; either version 2 of the License, or
10469 # (at your option) any later version.
10470 #
10471 # This program is distributed in the hope that it will be useful, but
10472 # WITHOUT ANY WARRANTY; without even the implied warranty of
10473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10474 # General Public License for more details.
10475 #
10476 # You should have received a copy of the GNU General Public License
10477 # along with this program; if not, write to the Free Software
10478 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10479 #
10480 # As a special exception to the GNU General Public License, if you
10481 # distribute this file as part of a program that contains a
10482 # configuration script generated by Autoconf, you may include it under
10483 # the same distribution terms that you use for the rest of that program.
10484
10485 # A sed program that does not truncate output.
10486 SED=$lt_SED
10487
10488 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10489 Xsed="$SED -e 1s/^X//"
10490
10491 # The HP-UX ksh and POSIX shell print the target directory to stdout
10492 # if CDPATH is set.
10493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10494
10495 # The names of the tagged configurations supported by this script.
10496 available_tags=
10497
10498 # ### BEGIN LIBTOOL CONFIG
10499
10500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10501
10502 # Shell to use when invoking shell scripts.
10503 SHELL=$lt_SHELL
10504
10505 # Whether or not to build shared libraries.
10506 build_libtool_libs=$enable_shared
10507
10508 # Whether or not to build static libraries.
10509 build_old_libs=$enable_static
10510
10511 # Whether or not to add -lc for building shared libraries.
10512 build_libtool_need_lc=$archive_cmds_need_lc
10513
10514 # Whether or not to disallow shared libs when runtime libs are static
10515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10516
10517 # Whether or not to optimize for fast installation.
10518 fast_install=$enable_fast_install
10519
10520 # The host system.
10521 host_alias=$host_alias
10522 host=$host
10523 host_os=$host_os
10524
10525 # The build system.
10526 build_alias=$build_alias
10527 build=$build
10528 build_os=$build_os
10529
10530 # An echo program that does not interpret backslashes.
10531 echo=$lt_echo
10532
10533 # The archiver.
10534 AR=$lt_AR
10535 AR_FLAGS=$lt_AR_FLAGS
10536
10537 # A C compiler.
10538 LTCC=$lt_LTCC
10539
10540 # A language-specific compiler.
10541 CC=$lt_compiler
10542
10543 # Is the compiler the GNU C compiler?
10544 with_gcc=$GCC
10545
10546 # An ERE matcher.
10547 EGREP=$lt_EGREP
10548
10549 # The linker used to build libraries.
10550 LD=$lt_LD
10551
10552 # Whether we need hard or soft links.
10553 LN_S=$lt_LN_S
10554
10555 # A BSD-compatible nm program.
10556 NM=$lt_NM
10557
10558 # A symbol stripping program
10559 STRIP=$lt_STRIP
10560
10561 # Used to examine libraries when file_magic_cmd begins "file"
10562 MAGIC_CMD=$MAGIC_CMD
10563
10564 # Used on cygwin: DLL creation program.
10565 DLLTOOL="$DLLTOOL"
10566
10567 # Used on cygwin: object dumper.
10568 OBJDUMP="$OBJDUMP"
10569
10570 # Used on cygwin: assembler.
10571 AS="$AS"
10572
10573 # The name of the directory that contains temporary libtool files.
10574 objdir=$objdir
10575
10576 # How to create reloadable object files.
10577 reload_flag=$lt_reload_flag
10578 reload_cmds=$lt_reload_cmds
10579
10580 # How to pass a linker flag through the compiler.
10581 wl=$lt_lt_prog_compiler_wl
10582
10583 # Object file suffix (normally "o").
10584 objext="$ac_objext"
10585
10586 # Old archive suffix (normally "a").
10587 libext="$libext"
10588
10589 # Shared library suffix (normally ".so").
10590 shrext_cmds='$shrext_cmds'
10591
10592 # Executable file suffix (normally "").
10593 exeext="$exeext"
10594
10595 # Additional compiler flags for building library objects.
10596 pic_flag=$lt_lt_prog_compiler_pic
10597 pic_mode=$pic_mode
10598
10599 # What is the maximum length of a command?
10600 max_cmd_len=$lt_cv_sys_max_cmd_len
10601
10602 # Does compiler simultaneously support -c and -o options?
10603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10604
10605 # Must we lock files when doing compilation?
10606 need_locks=$lt_need_locks
10607
10608 # Do we need the lib prefix for modules?
10609 need_lib_prefix=$need_lib_prefix
10610
10611 # Do we need a version for libraries?
10612 need_version=$need_version
10613
10614 # Whether dlopen is supported.
10615 dlopen_support=$enable_dlopen
10616
10617 # Whether dlopen of programs is supported.
10618 dlopen_self=$enable_dlopen_self
10619
10620 # Whether dlopen of statically linked programs is supported.
10621 dlopen_self_static=$enable_dlopen_self_static
10622
10623 # Compiler flag to prevent dynamic linking.
10624 link_static_flag=$lt_lt_prog_compiler_static
10625
10626 # Compiler flag to turn off builtin functions.
10627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10628
10629 # Compiler flag to allow reflexive dlopens.
10630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10631
10632 # Compiler flag to generate shared objects directly from archives.
10633 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10634
10635 # Compiler flag to generate thread-safe objects.
10636 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10637
10638 # Library versioning type.
10639 version_type=$version_type
10640
10641 # Format of library name prefix.
10642 libname_spec=$lt_libname_spec
10643
10644 # List of archive names.  First name is the real one, the rest are links.
10645 # The last name is the one that the linker finds with -lNAME.
10646 library_names_spec=$lt_library_names_spec
10647
10648 # The coded name of the library, if different from the real name.
10649 soname_spec=$lt_soname_spec
10650
10651 # Commands used to build and install an old-style archive.
10652 RANLIB=$lt_RANLIB
10653 old_archive_cmds=$lt_old_archive_cmds
10654 old_postinstall_cmds=$lt_old_postinstall_cmds
10655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10656
10657 # Create an old-style archive from a shared archive.
10658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10659
10660 # Create a temporary old-style archive to link instead of a shared archive.
10661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10662
10663 # Commands used to build and install a shared archive.
10664 archive_cmds=$lt_archive_cmds
10665 archive_expsym_cmds=$lt_archive_expsym_cmds
10666 postinstall_cmds=$lt_postinstall_cmds
10667 postuninstall_cmds=$lt_postuninstall_cmds
10668
10669 # Commands used to build a loadable module (assumed same as above if empty)
10670 module_cmds=$lt_module_cmds
10671 module_expsym_cmds=$lt_module_expsym_cmds
10672
10673 # Commands to strip libraries.
10674 old_striplib=$lt_old_striplib
10675 striplib=$lt_striplib
10676
10677 # Dependencies to place before the objects being linked to create a
10678 # shared library.
10679 predep_objects=$lt_predep_objects
10680
10681 # Dependencies to place after the objects being linked to create a
10682 # shared library.
10683 postdep_objects=$lt_postdep_objects
10684
10685 # Dependencies to place before the objects being linked to create a
10686 # shared library.
10687 predeps=$lt_predeps
10688
10689 # Dependencies to place after the objects being linked to create a
10690 # shared library.
10691 postdeps=$lt_postdeps
10692
10693 # The library search path used internally by the compiler when linking
10694 # a shared library.
10695 compiler_lib_search_path=$lt_compiler_lib_search_path
10696
10697 # Method to check whether dependent libraries are shared objects.
10698 deplibs_check_method=$lt_deplibs_check_method
10699
10700 # Command to use when deplibs_check_method == file_magic.
10701 file_magic_cmd=$lt_file_magic_cmd
10702
10703 # Flag that allows shared libraries with undefined symbols to be built.
10704 allow_undefined_flag=$lt_allow_undefined_flag
10705
10706 # Flag that forces no undefined symbols.
10707 no_undefined_flag=$lt_no_undefined_flag
10708
10709 # Commands used to finish a libtool library installation in a directory.
10710 finish_cmds=$lt_finish_cmds
10711
10712 # Same as above, but a single script fragment to be evaled but not shown.
10713 finish_eval=$lt_finish_eval
10714
10715 # Take the output of nm and produce a listing of raw symbols and C names.
10716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10717
10718 # Transform the output of nm in a proper C declaration
10719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10720
10721 # Transform the output of nm in a C name address pair
10722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10723
10724 # This is the shared library runtime path variable.
10725 runpath_var=$runpath_var
10726
10727 # This is the shared library path variable.
10728 shlibpath_var=$shlibpath_var
10729
10730 # Is shlibpath searched before the hard-coded library search path?
10731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10732
10733 # How to hardcode a shared library path into an executable.
10734 hardcode_action=$hardcode_action
10735
10736 # Whether we should hardcode library paths into libraries.
10737 hardcode_into_libs=$hardcode_into_libs
10738
10739 # Flag to hardcode \$libdir into a binary during linking.
10740 # This must work even if \$libdir does not exist.
10741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10742
10743 # If ld is used when linking, flag to hardcode \$libdir into
10744 # a binary during linking. This must work even if \$libdir does
10745 # not exist.
10746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10747
10748 # Whether we need a single -rpath flag with a separated argument.
10749 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10750
10751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10752 # resulting binary.
10753 hardcode_direct=$hardcode_direct
10754
10755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10756 # resulting binary.
10757 hardcode_minus_L=$hardcode_minus_L
10758
10759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10760 # the resulting binary.
10761 hardcode_shlibpath_var=$hardcode_shlibpath_var
10762
10763 # Set to yes if building a shared library automatically hardcodes DIR into the library
10764 # and all subsequent libraries and executables linked against it.
10765 hardcode_automatic=$hardcode_automatic
10766
10767 # Variables whose values should be saved in libtool wrapper scripts and
10768 # restored at relink time.
10769 variables_saved_for_relink="$variables_saved_for_relink"
10770
10771 # Whether libtool must link a program against all its dependency libraries.
10772 link_all_deplibs=$link_all_deplibs
10773
10774 # Compile-time system search path for libraries
10775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10776
10777 # Run-time system search path for libraries
10778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10779
10780 # Fix the shell variable \$srcfile for the compiler.
10781 fix_srcfile_path="$fix_srcfile_path"
10782
10783 # Set to yes if exported symbols are required.
10784 always_export_symbols=$always_export_symbols
10785
10786 # The commands to list exported symbols.
10787 export_symbols_cmds=$lt_export_symbols_cmds
10788
10789 # The commands to extract the exported symbol list from a shared archive.
10790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10791
10792 # Symbols that should not be listed in the preloaded symbols.
10793 exclude_expsyms=$lt_exclude_expsyms
10794
10795 # Symbols that must always be exported.
10796 include_expsyms=$lt_include_expsyms
10797
10798 # ### END LIBTOOL CONFIG
10799
10800 __EOF__
10801
10802
10803   case $host_os in
10804   aix3*)
10805     cat <<\EOF >> "$cfgfile"
10806
10807 # AIX sometimes has problems with the GCC collect2 program.  For some
10808 # reason, if we set the COLLECT_NAMES environment variable, the problems
10809 # vanish in a puff of smoke.
10810 if test "X${COLLECT_NAMES+set}" != Xset; then
10811   COLLECT_NAMES=
10812   export COLLECT_NAMES
10813 fi
10814 EOF
10815     ;;
10816   esac
10817
10818   # We use sed instead of cat because bash on DJGPP gets confused if
10819   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10820   # text mode, it properly converts lines to CR/LF.  This bash problem
10821   # is reportedly fixed, but why not run on old versions too?
10822   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10823
10824   mv -f "$cfgfile" "$ofile" || \
10825     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10826   chmod +x "$ofile"
10827
10828 else
10829   # If there is no Makefile yet, we rely on a make rule to execute
10830   # `config.status --recheck' to rerun these tests and create the
10831   # libtool script then.
10832   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10833   if test -f "$ltmain_in"; then
10834     test -f Makefile && make "$ltmain"
10835   fi
10836 fi
10837
10838
10839 ac_ext=c
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845 CC="$lt_save_CC"
10846
10847
10848 # Check whether --with-tags or --without-tags was given.
10849 if test "${with_tags+set}" = set; then
10850   withval="$with_tags"
10851   tagnames="$withval"
10852 fi;
10853
10854 if test -f "$ltmain" && test -n "$tagnames"; then
10855   if test ! -f "${ofile}"; then
10856     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10857 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10858   fi
10859
10860   if test -z "$LTCC"; then
10861     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10862     if test -z "$LTCC"; then
10863       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10864 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10865     else
10866       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10867 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10868     fi
10869   fi
10870
10871   # Extract list of available tagged configurations in $ofile.
10872   # Note that this assumes the entire list is on one line.
10873   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10874
10875   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10876   for tagname in $tagnames; do
10877     IFS="$lt_save_ifs"
10878     # Check whether tagname contains only valid characters
10879     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10880     "") ;;
10881     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10882 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10883    { (exit 1); exit 1; }; }
10884         ;;
10885     esac
10886
10887     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10888     then
10889       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10890 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10891    { (exit 1); exit 1; }; }
10892     fi
10893
10894     # Update the list of available tags.
10895     if test -n "$tagname"; then
10896       echo appending configuration tag \"$tagname\" to $ofile
10897
10898       case $tagname in
10899       CXX)
10900         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902             (test "X$CXX" != "Xg++"))) ; then
10903           :
10904         else
10905           tagname=""
10906         fi
10907         ;;
10908
10909       F77)
10910         if test -n "$F77" && test "X$F77" != "Xno"; then
10911           :
10912         else
10913           tagname=""
10914         fi
10915         ;;
10916
10917       GCJ)
10918         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10919           :
10920         else
10921           tagname=""
10922         fi
10923         ;;
10924
10925       RC)
10926
10927
10928
10929 # Source file extension for RC test sources.
10930 ac_ext=rc
10931
10932 # Object file extension for compiled RC test sources.
10933 objext=o
10934 objext_RC=$objext
10935
10936 # Code to be used in simple compile tests
10937 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10938
10939 # Code to be used in simple link tests
10940 lt_simple_link_test_code="$lt_simple_compile_test_code"
10941
10942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10943
10944 # If no C compiler was specified, use CC.
10945 LTCC=${LTCC-"$CC"}
10946
10947 # Allow CC to be a program name with arguments.
10948 compiler=$CC
10949
10950
10951 # save warnings/boilerplate of simple test code
10952 ac_outfile=conftest.$ac_objext
10953 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10955 _lt_compiler_boilerplate=`cat conftest.err`
10956 $rm conftest*
10957
10958 ac_outfile=conftest.$ac_objext
10959 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10961 _lt_linker_boilerplate=`cat conftest.err`
10962 $rm conftest*
10963
10964
10965 # Allow CC to be a program name with arguments.
10966 lt_save_CC="$CC"
10967 CC=${RC-"windres"}
10968 compiler=$CC
10969 compiler_RC=$CC
10970 for cc_temp in $compiler""; do
10971   case $cc_temp in
10972     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10973     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10974     \-*) ;;
10975     *) break;;
10976   esac
10977 done
10978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10979
10980 lt_cv_prog_compiler_c_o_RC=yes
10981
10982 # The else clause should only fire when bootstrapping the
10983 # libtool distribution, otherwise you forgot to ship ltmain.sh
10984 # with your package, and you will get complaints that there are
10985 # no rules to generate ltmain.sh.
10986 if test -f "$ltmain"; then
10987   # See if we are running on zsh, and set the options which allow our commands through
10988   # without removal of \ escapes.
10989   if test -n "${ZSH_VERSION+set}" ; then
10990     setopt NO_GLOB_SUBST
10991   fi
10992   # Now quote all the things that may contain metacharacters while being
10993   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10994   # variables and quote the copies for generation of the libtool script.
10995   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10996     SED SHELL STRIP \
10997     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10998     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10999     deplibs_check_method reload_flag reload_cmds need_locks \
11000     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11001     lt_cv_sys_global_symbol_to_c_name_address \
11002     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11003     old_postinstall_cmds old_postuninstall_cmds \
11004     compiler_RC \
11005     CC_RC \
11006     LD_RC \
11007     lt_prog_compiler_wl_RC \
11008     lt_prog_compiler_pic_RC \
11009     lt_prog_compiler_static_RC \
11010     lt_prog_compiler_no_builtin_flag_RC \
11011     export_dynamic_flag_spec_RC \
11012     thread_safe_flag_spec_RC \
11013     whole_archive_flag_spec_RC \
11014     enable_shared_with_static_runtimes_RC \
11015     old_archive_cmds_RC \
11016     old_archive_from_new_cmds_RC \
11017     predep_objects_RC \
11018     postdep_objects_RC \
11019     predeps_RC \
11020     postdeps_RC \
11021     compiler_lib_search_path_RC \
11022     archive_cmds_RC \
11023     archive_expsym_cmds_RC \
11024     postinstall_cmds_RC \
11025     postuninstall_cmds_RC \
11026     old_archive_from_expsyms_cmds_RC \
11027     allow_undefined_flag_RC \
11028     no_undefined_flag_RC \
11029     export_symbols_cmds_RC \
11030     hardcode_libdir_flag_spec_RC \
11031     hardcode_libdir_flag_spec_ld_RC \
11032     hardcode_libdir_separator_RC \
11033     hardcode_automatic_RC \
11034     module_cmds_RC \
11035     module_expsym_cmds_RC \
11036     lt_cv_prog_compiler_c_o_RC \
11037     exclude_expsyms_RC \
11038     include_expsyms_RC; do
11039
11040     case $var in
11041     old_archive_cmds_RC | \
11042     old_archive_from_new_cmds_RC | \
11043     archive_cmds_RC | \
11044     archive_expsym_cmds_RC | \
11045     module_cmds_RC | \
11046     module_expsym_cmds_RC | \
11047     old_archive_from_expsyms_cmds_RC | \
11048     export_symbols_cmds_RC | \
11049     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11050     postinstall_cmds | postuninstall_cmds | \
11051     old_postinstall_cmds | old_postuninstall_cmds | \
11052     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11053       # Double-quote double-evaled strings.
11054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11055       ;;
11056     *)
11057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11058       ;;
11059     esac
11060   done
11061
11062   case $lt_echo in
11063   *'\$0 --fallback-echo"')
11064     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11065     ;;
11066   esac
11067
11068 cfgfile="$ofile"
11069
11070   cat <<__EOF__ >> "$cfgfile"
11071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11072
11073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11074
11075 # Shell to use when invoking shell scripts.
11076 SHELL=$lt_SHELL
11077
11078 # Whether or not to build shared libraries.
11079 build_libtool_libs=$enable_shared
11080
11081 # Whether or not to build static libraries.
11082 build_old_libs=$enable_static
11083
11084 # Whether or not to add -lc for building shared libraries.
11085 build_libtool_need_lc=$archive_cmds_need_lc_RC
11086
11087 # Whether or not to disallow shared libs when runtime libs are static
11088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11089
11090 # Whether or not to optimize for fast installation.
11091 fast_install=$enable_fast_install
11092
11093 # The host system.
11094 host_alias=$host_alias
11095 host=$host
11096 host_os=$host_os
11097
11098 # The build system.
11099 build_alias=$build_alias
11100 build=$build
11101 build_os=$build_os
11102
11103 # An echo program that does not interpret backslashes.
11104 echo=$lt_echo
11105
11106 # The archiver.
11107 AR=$lt_AR
11108 AR_FLAGS=$lt_AR_FLAGS
11109
11110 # A C compiler.
11111 LTCC=$lt_LTCC
11112
11113 # A language-specific compiler.
11114 CC=$lt_compiler_RC
11115
11116 # Is the compiler the GNU C compiler?
11117 with_gcc=$GCC_RC
11118
11119 # An ERE matcher.
11120 EGREP=$lt_EGREP
11121
11122 # The linker used to build libraries.
11123 LD=$lt_LD_RC
11124
11125 # Whether we need hard or soft links.
11126 LN_S=$lt_LN_S
11127
11128 # A BSD-compatible nm program.
11129 NM=$lt_NM
11130
11131 # A symbol stripping program
11132 STRIP=$lt_STRIP
11133
11134 # Used to examine libraries when file_magic_cmd begins "file"
11135 MAGIC_CMD=$MAGIC_CMD
11136
11137 # Used on cygwin: DLL creation program.
11138 DLLTOOL="$DLLTOOL"
11139
11140 # Used on cygwin: object dumper.
11141 OBJDUMP="$OBJDUMP"
11142
11143 # Used on cygwin: assembler.
11144 AS="$AS"
11145
11146 # The name of the directory that contains temporary libtool files.
11147 objdir=$objdir
11148
11149 # How to create reloadable object files.
11150 reload_flag=$lt_reload_flag
11151 reload_cmds=$lt_reload_cmds
11152
11153 # How to pass a linker flag through the compiler.
11154 wl=$lt_lt_prog_compiler_wl_RC
11155
11156 # Object file suffix (normally "o").
11157 objext="$ac_objext"
11158
11159 # Old archive suffix (normally "a").
11160 libext="$libext"
11161
11162 # Shared library suffix (normally ".so").
11163 shrext_cmds='$shrext_cmds'
11164
11165 # Executable file suffix (normally "").
11166 exeext="$exeext"
11167
11168 # Additional compiler flags for building library objects.
11169 pic_flag=$lt_lt_prog_compiler_pic_RC
11170 pic_mode=$pic_mode
11171
11172 # What is the maximum length of a command?
11173 max_cmd_len=$lt_cv_sys_max_cmd_len
11174
11175 # Does compiler simultaneously support -c and -o options?
11176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11177
11178 # Must we lock files when doing compilation?
11179 need_locks=$lt_need_locks
11180
11181 # Do we need the lib prefix for modules?
11182 need_lib_prefix=$need_lib_prefix
11183
11184 # Do we need a version for libraries?
11185 need_version=$need_version
11186
11187 # Whether dlopen is supported.
11188 dlopen_support=$enable_dlopen
11189
11190 # Whether dlopen of programs is supported.
11191 dlopen_self=$enable_dlopen_self
11192
11193 # Whether dlopen of statically linked programs is supported.
11194 dlopen_self_static=$enable_dlopen_self_static
11195
11196 # Compiler flag to prevent dynamic linking.
11197 link_static_flag=$lt_lt_prog_compiler_static_RC
11198
11199 # Compiler flag to turn off builtin functions.
11200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11201
11202 # Compiler flag to allow reflexive dlopens.
11203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11204
11205 # Compiler flag to generate shared objects directly from archives.
11206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11207
11208 # Compiler flag to generate thread-safe objects.
11209 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11210
11211 # Library versioning type.
11212 version_type=$version_type
11213
11214 # Format of library name prefix.
11215 libname_spec=$lt_libname_spec
11216
11217 # List of archive names.  First name is the real one, the rest are links.
11218 # The last name is the one that the linker finds with -lNAME.
11219 library_names_spec=$lt_library_names_spec
11220
11221 # The coded name of the library, if different from the real name.
11222 soname_spec=$lt_soname_spec
11223
11224 # Commands used to build and install an old-style archive.
11225 RANLIB=$lt_RANLIB
11226 old_archive_cmds=$lt_old_archive_cmds_RC
11227 old_postinstall_cmds=$lt_old_postinstall_cmds
11228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11229
11230 # Create an old-style archive from a shared archive.
11231 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11232
11233 # Create a temporary old-style archive to link instead of a shared archive.
11234 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11235
11236 # Commands used to build and install a shared archive.
11237 archive_cmds=$lt_archive_cmds_RC
11238 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11239 postinstall_cmds=$lt_postinstall_cmds
11240 postuninstall_cmds=$lt_postuninstall_cmds
11241
11242 # Commands used to build a loadable module (assumed same as above if empty)
11243 module_cmds=$lt_module_cmds_RC
11244 module_expsym_cmds=$lt_module_expsym_cmds_RC
11245
11246 # Commands to strip libraries.
11247 old_striplib=$lt_old_striplib
11248 striplib=$lt_striplib
11249
11250 # Dependencies to place before the objects being linked to create a
11251 # shared library.
11252 predep_objects=$lt_predep_objects_RC
11253
11254 # Dependencies to place after the objects being linked to create a
11255 # shared library.
11256 postdep_objects=$lt_postdep_objects_RC
11257
11258 # Dependencies to place before the objects being linked to create a
11259 # shared library.
11260 predeps=$lt_predeps_RC
11261
11262 # Dependencies to place after the objects being linked to create a
11263 # shared library.
11264 postdeps=$lt_postdeps_RC
11265
11266 # The library search path used internally by the compiler when linking
11267 # a shared library.
11268 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11269
11270 # Method to check whether dependent libraries are shared objects.
11271 deplibs_check_method=$lt_deplibs_check_method
11272
11273 # Command to use when deplibs_check_method == file_magic.
11274 file_magic_cmd=$lt_file_magic_cmd
11275
11276 # Flag that allows shared libraries with undefined symbols to be built.
11277 allow_undefined_flag=$lt_allow_undefined_flag_RC
11278
11279 # Flag that forces no undefined symbols.
11280 no_undefined_flag=$lt_no_undefined_flag_RC
11281
11282 # Commands used to finish a libtool library installation in a directory.
11283 finish_cmds=$lt_finish_cmds
11284
11285 # Same as above, but a single script fragment to be evaled but not shown.
11286 finish_eval=$lt_finish_eval
11287
11288 # Take the output of nm and produce a listing of raw symbols and C names.
11289 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11290
11291 # Transform the output of nm in a proper C declaration
11292 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11293
11294 # Transform the output of nm in a C name address pair
11295 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11296
11297 # This is the shared library runtime path variable.
11298 runpath_var=$runpath_var
11299
11300 # This is the shared library path variable.
11301 shlibpath_var=$shlibpath_var
11302
11303 # Is shlibpath searched before the hard-coded library search path?
11304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11305
11306 # How to hardcode a shared library path into an executable.
11307 hardcode_action=$hardcode_action_RC
11308
11309 # Whether we should hardcode library paths into libraries.
11310 hardcode_into_libs=$hardcode_into_libs
11311
11312 # Flag to hardcode \$libdir into a binary during linking.
11313 # This must work even if \$libdir does not exist.
11314 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11315
11316 # If ld is used when linking, flag to hardcode \$libdir into
11317 # a binary during linking. This must work even if \$libdir does
11318 # not exist.
11319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11320
11321 # Whether we need a single -rpath flag with a separated argument.
11322 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11323
11324 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11325 # resulting binary.
11326 hardcode_direct=$hardcode_direct_RC
11327
11328 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11329 # resulting binary.
11330 hardcode_minus_L=$hardcode_minus_L_RC
11331
11332 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11333 # the resulting binary.
11334 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11335
11336 # Set to yes if building a shared library automatically hardcodes DIR into the library
11337 # and all subsequent libraries and executables linked against it.
11338 hardcode_automatic=$hardcode_automatic_RC
11339
11340 # Variables whose values should be saved in libtool wrapper scripts and
11341 # restored at relink time.
11342 variables_saved_for_relink="$variables_saved_for_relink"
11343
11344 # Whether libtool must link a program against all its dependency libraries.
11345 link_all_deplibs=$link_all_deplibs_RC
11346
11347 # Compile-time system search path for libraries
11348 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11349
11350 # Run-time system search path for libraries
11351 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11352
11353 # Fix the shell variable \$srcfile for the compiler.
11354 fix_srcfile_path="$fix_srcfile_path_RC"
11355
11356 # Set to yes if exported symbols are required.
11357 always_export_symbols=$always_export_symbols_RC
11358
11359 # The commands to list exported symbols.
11360 export_symbols_cmds=$lt_export_symbols_cmds_RC
11361
11362 # The commands to extract the exported symbol list from a shared archive.
11363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11364
11365 # Symbols that should not be listed in the preloaded symbols.
11366 exclude_expsyms=$lt_exclude_expsyms_RC
11367
11368 # Symbols that must always be exported.
11369 include_expsyms=$lt_include_expsyms_RC
11370
11371 # ### END LIBTOOL TAG CONFIG: $tagname
11372
11373 __EOF__
11374
11375
11376 else
11377   # If there is no Makefile yet, we rely on a make rule to execute
11378   # `config.status --recheck' to rerun these tests and create the
11379   # libtool script then.
11380   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11381   if test -f "$ltmain_in"; then
11382     test -f Makefile && make "$ltmain"
11383   fi
11384 fi
11385
11386
11387 ac_ext=c
11388 ac_cpp='$CPP $CPPFLAGS'
11389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11392
11393 CC="$lt_save_CC"
11394
11395         ;;
11396
11397       *)
11398         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11399 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11400    { (exit 1); exit 1; }; }
11401         ;;
11402       esac
11403
11404       # Append the new tag name to the list of available tags.
11405       if test -n "$tagname" ; then
11406       available_tags="$available_tags $tagname"
11407     fi
11408     fi
11409   done
11410   IFS="$lt_save_ifs"
11411
11412   # Now substitute the updated list of available tags.
11413   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11414     mv "${ofile}T" "$ofile"
11415     chmod +x "$ofile"
11416   else
11417     rm -f "${ofile}T"
11418     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11419 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11420    { (exit 1); exit 1; }; }
11421   fi
11422 fi
11423
11424
11425
11426 # This can be used to rebuild libtool when needed
11427 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11428
11429 # Always use our own libtool.
11430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11431
11432 # Prevent multiple expansion
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443 ol_link_perl=no
11444 if test $ol_enable_perl != no ; then
11445         # Extract the first word of "perl", so it can be a program name with args.
11446 set dummy perl; ac_word=$2
11447 echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11449 if test "${ac_cv_path_PERLBIN+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   case $PERLBIN in
11453   [\\/]* | ?:[\\/]*)
11454   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11455   ;;
11456   *)
11457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11459 do
11460   IFS=$as_save_IFS
11461   test -z "$as_dir" && as_dir=.
11462   for ac_exec_ext in '' $ac_executable_extensions; do
11463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11466     break 2
11467   fi
11468 done
11469 done
11470
11471   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11472   ;;
11473 esac
11474 fi
11475 PERLBIN=$ac_cv_path_PERLBIN
11476
11477 if test -n "$PERLBIN"; then
11478   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11479 echo "${ECHO_T}$PERLBIN" >&6
11480 else
11481   echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6
11483 fi
11484
11485
11486         if test "no$PERLBIN" = "no" ; then
11487                 if test $ol_enable_perl = yes ; then
11488                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11489 echo "$as_me: error: could not locate perl" >&2;}
11490    { (exit 1); exit 1; }; }
11491                 fi
11492
11493         else
11494                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11495                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11496
11497                 if test x"$ol_enable_perl" = "xyes" ; then
11498                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11499                 else
11500                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11501                 fi
11502                                 ol_link_perl=yes
11503         fi
11504 fi
11505
11506 ac_ext=c
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11512 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11513 # On Suns, sometimes $CPP names a directory.
11514 if test -n "$CPP" && test -d "$CPP"; then
11515   CPP=
11516 fi
11517 if test -z "$CPP"; then
11518   if test "${ac_cv_prog_CPP+set}" = set; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521       # Double quotes because CPP needs to be expanded
11522     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11523     do
11524       ac_preproc_ok=false
11525 for ac_c_preproc_warn_flag in '' yes
11526 do
11527   # Use a header file that comes with gcc, so configuring glibc
11528   # with a fresh cross-compiler works.
11529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530   # <limits.h> exists even on freestanding compilers.
11531   # On the NeXT, cc -E runs the code through the compiler's parser,
11532   # not just through cpp. "Syntax error" is here to catch this case.
11533   cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 #ifdef __STDC__
11540 # include <limits.h>
11541 #else
11542 # include <assert.h>
11543 #endif
11544                      Syntax error
11545 _ACEOF
11546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11548   ac_status=$?
11549   grep -v '^ *+' conftest.er1 >conftest.err
11550   rm -f conftest.er1
11551   cat conftest.err >&5
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } >/dev/null; then
11554   if test -s conftest.err; then
11555     ac_cpp_err=$ac_c_preproc_warn_flag
11556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11557   else
11558     ac_cpp_err=
11559   fi
11560 else
11561   ac_cpp_err=yes
11562 fi
11563 if test -z "$ac_cpp_err"; then
11564   :
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569   # Broken: fails on valid input.
11570 continue
11571 fi
11572 rm -f conftest.err conftest.$ac_ext
11573
11574   # OK, works on sane cases.  Now check whether non-existent headers
11575   # can be detected and how.
11576   cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 #include <ac_nonexistent.h>
11583 _ACEOF
11584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11586   ac_status=$?
11587   grep -v '^ *+' conftest.er1 >conftest.err
11588   rm -f conftest.er1
11589   cat conftest.err >&5
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } >/dev/null; then
11592   if test -s conftest.err; then
11593     ac_cpp_err=$ac_c_preproc_warn_flag
11594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11595   else
11596     ac_cpp_err=
11597   fi
11598 else
11599   ac_cpp_err=yes
11600 fi
11601 if test -z "$ac_cpp_err"; then
11602   # Broken: success on invalid input.
11603 continue
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608   # Passes both tests.
11609 ac_preproc_ok=:
11610 break
11611 fi
11612 rm -f conftest.err conftest.$ac_ext
11613
11614 done
11615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11616 rm -f conftest.err conftest.$ac_ext
11617 if $ac_preproc_ok; then
11618   break
11619 fi
11620
11621     done
11622     ac_cv_prog_CPP=$CPP
11623
11624 fi
11625   CPP=$ac_cv_prog_CPP
11626 else
11627   ac_cv_prog_CPP=$CPP
11628 fi
11629 echo "$as_me:$LINENO: result: $CPP" >&5
11630 echo "${ECHO_T}$CPP" >&6
11631 ac_preproc_ok=false
11632 for ac_c_preproc_warn_flag in '' yes
11633 do
11634   # Use a header file that comes with gcc, so configuring glibc
11635   # with a fresh cross-compiler works.
11636   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11637   # <limits.h> exists even on freestanding compilers.
11638   # On the NeXT, cc -E runs the code through the compiler's parser,
11639   # not just through cpp. "Syntax error" is here to catch this case.
11640   cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646 #ifdef __STDC__
11647 # include <limits.h>
11648 #else
11649 # include <assert.h>
11650 #endif
11651                      Syntax error
11652 _ACEOF
11653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } >/dev/null; then
11661   if test -s conftest.err; then
11662     ac_cpp_err=$ac_c_preproc_warn_flag
11663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664   else
11665     ac_cpp_err=
11666   fi
11667 else
11668   ac_cpp_err=yes
11669 fi
11670 if test -z "$ac_cpp_err"; then
11671   :
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676   # Broken: fails on valid input.
11677 continue
11678 fi
11679 rm -f conftest.err conftest.$ac_ext
11680
11681   # OK, works on sane cases.  Now check whether non-existent headers
11682   # can be detected and how.
11683   cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 #include <ac_nonexistent.h>
11690 _ACEOF
11691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11693   ac_status=$?
11694   grep -v '^ *+' conftest.er1 >conftest.err
11695   rm -f conftest.er1
11696   cat conftest.err >&5
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); } >/dev/null; then
11699   if test -s conftest.err; then
11700     ac_cpp_err=$ac_c_preproc_warn_flag
11701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11702   else
11703     ac_cpp_err=
11704   fi
11705 else
11706   ac_cpp_err=yes
11707 fi
11708 if test -z "$ac_cpp_err"; then
11709   # Broken: success on invalid input.
11710 continue
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715   # Passes both tests.
11716 ac_preproc_ok=:
11717 break
11718 fi
11719 rm -f conftest.err conftest.$ac_ext
11720
11721 done
11722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11723 rm -f conftest.err conftest.$ac_ext
11724 if $ac_preproc_ok; then
11725   :
11726 else
11727   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11728 See \`config.log' for more details." >&5
11729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11730 See \`config.log' for more details." >&2;}
11731    { (exit 1); exit 1; }; }
11732 fi
11733
11734 ac_ext=c
11735 ac_cpp='$CPP $CPPFLAGS'
11736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11739
11740
11741 case $host_os in
11742   *mingw32* ) ac_cv_mingw32=yes ;;
11743   *cygwin* ) ac_cv_cygwin=yes ;;
11744 esac
11745
11746
11747
11748
11749 cat >>confdefs.h <<_ACEOF
11750 #define EXEEXT "${EXEEXT}"
11751 _ACEOF
11752
11753
11754 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11755 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11756 if test "${ac_cv_lib_be_be_app+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lbe -lroot -lnet $LIBS"
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767
11768 /* Override any gcc2 internal prototype to avoid an error.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 /* We use char because int might match the return type of a gcc2
11773    builtin and then its argument prototype would still apply.  */
11774 char be_app ();
11775 int
11776 main ()
11777 {
11778 be_app ();
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11785   (eval $ac_link) 2>conftest.er1
11786   ac_status=$?
11787   grep -v '^ *+' conftest.er1 >conftest.err
11788   rm -f conftest.er1
11789   cat conftest.err >&5
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -z "$ac_c_werror_flag"
11793                          || test ! -s conftest.err'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; } &&
11799          { ac_try='test -s conftest$ac_exeext'
11800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   ac_cv_lib_be_be_app=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 ac_cv_lib_be_be_app=no
11811 fi
11812 rm -f conftest.err conftest.$ac_objext \
11813       conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11817 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11818 if test $ac_cv_lib_be_be_app = yes; then
11819   LIBS="$LIBS -lbe -lroot -lnet"
11820 else
11821   :
11822 fi
11823
11824
11825 ac_ext=c
11826 ac_cpp='$CPP $CPPFLAGS'
11827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11830 if test -n "$ac_tool_prefix"; then
11831   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11833 echo "$as_me:$LINENO: checking for $ac_word" >&5
11834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11835 if test "${ac_cv_prog_CC+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   if test -n "$CC"; then
11839   ac_cv_prog_CC="$CC" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844   IFS=$as_save_IFS
11845   test -z "$as_dir" && as_dir=.
11846   for ac_exec_ext in '' $ac_executable_extensions; do
11847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11850     break 2
11851   fi
11852 done
11853 done
11854
11855 fi
11856 fi
11857 CC=$ac_cv_prog_CC
11858 if test -n "$CC"; then
11859   echo "$as_me:$LINENO: result: $CC" >&5
11860 echo "${ECHO_T}$CC" >&6
11861 else
11862   echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11864 fi
11865
11866 fi
11867 if test -z "$ac_cv_prog_CC"; then
11868   ac_ct_CC=$CC
11869   # Extract the first word of "gcc", so it can be a program name with args.
11870 set dummy gcc; ac_word=$2
11871 echo "$as_me:$LINENO: checking for $ac_word" >&5
11872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   if test -n "$ac_ct_CC"; then
11877   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882   IFS=$as_save_IFS
11883   test -z "$as_dir" && as_dir=.
11884   for ac_exec_ext in '' $ac_executable_extensions; do
11885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886     ac_cv_prog_ac_ct_CC="gcc"
11887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11888     break 2
11889   fi
11890 done
11891 done
11892
11893 fi
11894 fi
11895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11896 if test -n "$ac_ct_CC"; then
11897   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11898 echo "${ECHO_T}$ac_ct_CC" >&6
11899 else
11900   echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6
11902 fi
11903
11904   CC=$ac_ct_CC
11905 else
11906   CC="$ac_cv_prog_CC"
11907 fi
11908
11909 if test -z "$CC"; then
11910   if test -n "$ac_tool_prefix"; then
11911   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11912 set dummy ${ac_tool_prefix}cc; ac_word=$2
11913 echo "$as_me:$LINENO: checking for $ac_word" >&5
11914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11915 if test "${ac_cv_prog_CC+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   if test -n "$CC"; then
11919   ac_cv_prog_CC="$CC" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924   IFS=$as_save_IFS
11925   test -z "$as_dir" && as_dir=.
11926   for ac_exec_ext in '' $ac_executable_extensions; do
11927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928     ac_cv_prog_CC="${ac_tool_prefix}cc"
11929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11930     break 2
11931   fi
11932 done
11933 done
11934
11935 fi
11936 fi
11937 CC=$ac_cv_prog_CC
11938 if test -n "$CC"; then
11939   echo "$as_me:$LINENO: result: $CC" >&5
11940 echo "${ECHO_T}$CC" >&6
11941 else
11942   echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6
11944 fi
11945
11946 fi
11947 if test -z "$ac_cv_prog_CC"; then
11948   ac_ct_CC=$CC
11949   # Extract the first word of "cc", so it can be a program name with args.
11950 set dummy cc; ac_word=$2
11951 echo "$as_me:$LINENO: checking for $ac_word" >&5
11952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   if test -n "$ac_ct_CC"; then
11957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962   IFS=$as_save_IFS
11963   test -z "$as_dir" && as_dir=.
11964   for ac_exec_ext in '' $ac_executable_extensions; do
11965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966     ac_cv_prog_ac_ct_CC="cc"
11967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11968     break 2
11969   fi
11970 done
11971 done
11972
11973 fi
11974 fi
11975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11976 if test -n "$ac_ct_CC"; then
11977   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11978 echo "${ECHO_T}$ac_ct_CC" >&6
11979 else
11980   echo "$as_me:$LINENO: result: no" >&5
11981 echo "${ECHO_T}no" >&6
11982 fi
11983
11984   CC=$ac_ct_CC
11985 else
11986   CC="$ac_cv_prog_CC"
11987 fi
11988
11989 fi
11990 if test -z "$CC"; then
11991   # Extract the first word of "cc", so it can be a program name with args.
11992 set dummy cc; ac_word=$2
11993 echo "$as_me:$LINENO: checking for $ac_word" >&5
11994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11995 if test "${ac_cv_prog_CC+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   if test -n "$CC"; then
11999   ac_cv_prog_CC="$CC" # Let the user override the test.
12000 else
12001   ac_prog_rejected=no
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005   IFS=$as_save_IFS
12006   test -z "$as_dir" && as_dir=.
12007   for ac_exec_ext in '' $ac_executable_extensions; do
12008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12010        ac_prog_rejected=yes
12011        continue
12012      fi
12013     ac_cv_prog_CC="cc"
12014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12015     break 2
12016   fi
12017 done
12018 done
12019
12020 if test $ac_prog_rejected = yes; then
12021   # We found a bogon in the path, so make sure we never use it.
12022   set dummy $ac_cv_prog_CC
12023   shift
12024   if test $# != 0; then
12025     # We chose a different compiler from the bogus one.
12026     # However, it has the same basename, so the bogon will be chosen
12027     # first if we set CC to just the basename; use the full file name.
12028     shift
12029     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12030   fi
12031 fi
12032 fi
12033 fi
12034 CC=$ac_cv_prog_CC
12035 if test -n "$CC"; then
12036   echo "$as_me:$LINENO: result: $CC" >&5
12037 echo "${ECHO_T}$CC" >&6
12038 else
12039   echo "$as_me:$LINENO: result: no" >&5
12040 echo "${ECHO_T}no" >&6
12041 fi
12042
12043 fi
12044 if test -z "$CC"; then
12045   if test -n "$ac_tool_prefix"; then
12046   for ac_prog in cl
12047   do
12048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12050 echo "$as_me:$LINENO: checking for $ac_word" >&5
12051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12052 if test "${ac_cv_prog_CC+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   if test -n "$CC"; then
12056   ac_cv_prog_CC="$CC" # Let the user override the test.
12057 else
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063   for ac_exec_ext in '' $ac_executable_extensions; do
12064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12067     break 2
12068   fi
12069 done
12070 done
12071
12072 fi
12073 fi
12074 CC=$ac_cv_prog_CC
12075 if test -n "$CC"; then
12076   echo "$as_me:$LINENO: result: $CC" >&5
12077 echo "${ECHO_T}$CC" >&6
12078 else
12079   echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6
12081 fi
12082
12083     test -n "$CC" && break
12084   done
12085 fi
12086 if test -z "$CC"; then
12087   ac_ct_CC=$CC
12088   for ac_prog in cl
12089 do
12090   # Extract the first word of "$ac_prog", so it can be a program name with args.
12091 set dummy $ac_prog; ac_word=$2
12092 echo "$as_me:$LINENO: checking for $ac_word" >&5
12093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12095   echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097   if test -n "$ac_ct_CC"; then
12098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12099 else
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12102 do
12103   IFS=$as_save_IFS
12104   test -z "$as_dir" && as_dir=.
12105   for ac_exec_ext in '' $ac_executable_extensions; do
12106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107     ac_cv_prog_ac_ct_CC="$ac_prog"
12108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12109     break 2
12110   fi
12111 done
12112 done
12113
12114 fi
12115 fi
12116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12117 if test -n "$ac_ct_CC"; then
12118   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12119 echo "${ECHO_T}$ac_ct_CC" >&6
12120 else
12121   echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12123 fi
12124
12125   test -n "$ac_ct_CC" && break
12126 done
12127
12128   CC=$ac_ct_CC
12129 fi
12130
12131 fi
12132
12133
12134 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12135 See \`config.log' for more details." >&5
12136 echo "$as_me: error: no acceptable C compiler found in \$PATH
12137 See \`config.log' for more details." >&2;}
12138    { (exit 1); exit 1; }; }
12139
12140 # Provide some information about the compiler.
12141 echo "$as_me:$LINENO:" \
12142      "checking for C compiler version" >&5
12143 ac_compiler=`set X $ac_compile; echo $2`
12144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12145   (eval $ac_compiler --version </dev/null >&5) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); }
12149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12150   (eval $ac_compiler -v </dev/null >&5) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }
12154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12155   (eval $ac_compiler -V </dev/null >&5) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }
12159
12160 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171
12172 int
12173 main ()
12174 {
12175 #ifndef __GNUC__
12176        choke me
12177 #endif
12178
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185   (eval $ac_compile) 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -z "$ac_c_werror_flag"
12193                          || test ! -s conftest.err'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_compiler_gnu=yes
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_compiler_gnu=no
12211 fi
12212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12214
12215 fi
12216 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12217 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12218 GCC=`test $ac_compiler_gnu = yes && echo yes`
12219 ac_test_CFLAGS=${CFLAGS+set}
12220 ac_save_CFLAGS=$CFLAGS
12221 CFLAGS="-g"
12222 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12224 if test "${ac_cv_prog_cc_g+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233
12234 int
12235 main ()
12236 {
12237
12238   ;
12239   return 0;
12240 }
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244   (eval $ac_compile) 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag"
12252                          || test ! -s conftest.err'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; } &&
12258          { ac_try='test -s conftest.$ac_objext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   ac_cv_prog_cc_g=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_cv_prog_cc_g=no
12270 fi
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 fi
12273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12274 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12275 if test "$ac_test_CFLAGS" = set; then
12276   CFLAGS=$ac_save_CFLAGS
12277 elif test $ac_cv_prog_cc_g = yes; then
12278   if test "$GCC" = yes; then
12279     CFLAGS="-g -O2"
12280   else
12281     CFLAGS="-g"
12282   fi
12283 else
12284   if test "$GCC" = yes; then
12285     CFLAGS="-O2"
12286   else
12287     CFLAGS=
12288   fi
12289 fi
12290 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12291 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12292 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   ac_cv_prog_cc_stdc=no
12296 ac_save_CC=$CC
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303 #include <stdarg.h>
12304 #include <stdio.h>
12305 #include <sys/types.h>
12306 #include <sys/stat.h>
12307 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12308 struct buf { int x; };
12309 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12310 static char *e (p, i)
12311      char **p;
12312      int i;
12313 {
12314   return p[i];
12315 }
12316 static char *f (char * (*g) (char **, int), char **p, ...)
12317 {
12318   char *s;
12319   va_list v;
12320   va_start (v,p);
12321   s = g (p, va_arg (v,int));
12322   va_end (v);
12323   return s;
12324 }
12325
12326 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12327    function prototypes and stuff, but not '\xHH' hex character constants.
12328    These don't provoke an error unfortunately, instead are silently treated
12329    as 'x'.  The following induces an error, until -std1 is added to get
12330    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12331    array size at least.  It's necessary to write '\x00'==0 to get something
12332    that's true only with -std1.  */
12333 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12334
12335 int test (int i, double x);
12336 struct s1 {int (*f) (int a);};
12337 struct s2 {int (*f) (double a);};
12338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12339 int argc;
12340 char **argv;
12341 int
12342 main ()
12343 {
12344 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 # Don't try gcc -ansi; that turns off useful extensions and
12350 # breaks some systems' header files.
12351 # AIX                   -qlanglvl=ansi
12352 # Ultrix and OSF/1      -std1
12353 # HP-UX 10.20 and later -Ae
12354 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12355 # SVR4                  -Xc -D__EXTENSIONS__
12356 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12357 do
12358   CC="$ac_save_CC $ac_arg"
12359   rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361   (eval $ac_compile) 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } &&
12368          { ac_try='test -z "$ac_c_werror_flag"
12369                          || test ! -s conftest.err'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; } &&
12375          { ac_try='test -s conftest.$ac_objext'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; }; then
12381   ac_cv_prog_cc_stdc=$ac_arg
12382 break
12383 else
12384   echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 fi
12388 rm -f conftest.err conftest.$ac_objext
12389 done
12390 rm -f conftest.$ac_ext conftest.$ac_objext
12391 CC=$ac_save_CC
12392
12393 fi
12394
12395 case "x$ac_cv_prog_cc_stdc" in
12396   x|xno)
12397     echo "$as_me:$LINENO: result: none needed" >&5
12398 echo "${ECHO_T}none needed" >&6 ;;
12399   *)
12400     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12401 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12402     CC="$CC $ac_cv_prog_cc_stdc" ;;
12403 esac
12404
12405 # Some people use a C++ compiler to compile C.  Since we use `exit',
12406 # in C++ we need to declare it.  In case someone uses the same compiler
12407 # for both compiling C and C++ we need to have the C++ compiler decide
12408 # the declaration of exit, since it's the most demanding environment.
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #ifndef __cplusplus
12411   choke me
12412 #endif
12413 _ACEOF
12414 rm -f conftest.$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416   (eval $ac_compile) 2>conftest.er1
12417   ac_status=$?
12418   grep -v '^ *+' conftest.er1 >conftest.err
12419   rm -f conftest.er1
12420   cat conftest.err >&5
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); } &&
12423          { ac_try='test -z "$ac_c_werror_flag"
12424                          || test ! -s conftest.err'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; } &&
12430          { ac_try='test -s conftest.$ac_objext'
12431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432   (eval $ac_try) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; }; then
12436   for ac_declaration in \
12437    '' \
12438    'extern "C" void std::exit (int) throw (); using std::exit;' \
12439    'extern "C" void std::exit (int); using std::exit;' \
12440    'extern "C" void exit (int) throw ();' \
12441    'extern "C" void exit (int);' \
12442    'void exit (int);'
12443 do
12444   cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 $ac_declaration
12451 #include <stdlib.h>
12452 int
12453 main ()
12454 {
12455 exit (42);
12456   ;
12457   return 0;
12458 }
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   :
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 continue
12488 fi
12489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 int
12498 main ()
12499 {
12500 exit (42);
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507   (eval $ac_compile) 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -z "$ac_c_werror_flag"
12515                          || test ! -s conftest.err'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; } &&
12521          { ac_try='test -s conftest.$ac_objext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   break
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 fi
12533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12534 done
12535 rm -f conftest*
12536 if test -n "$ac_declaration"; then
12537   echo '#ifdef __cplusplus' >>confdefs.h
12538   echo $ac_declaration      >>confdefs.h
12539   echo '#endif'             >>confdefs.h
12540 fi
12541
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 fi
12547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12548 ac_ext=c
12549 ac_cpp='$CPP $CPPFLAGS'
12550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12553
12554 depcc="$CC"   am_compiler_list=
12555
12556 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12562   # We make a subdir and do the tests there.  Otherwise we can end up
12563   # making bogus files that we don't know about and never remove.  For
12564   # instance it was reported that on HP-UX the gcc test will end up
12565   # making a dummy file named `D' -- because `-MD' means `put the output
12566   # in D'.
12567   mkdir conftest.dir
12568   # Copy depcomp to subdir because otherwise we won't find it if we're
12569   # using a relative directory.
12570   cp "$am_depcomp" conftest.dir
12571   cd conftest.dir
12572   # We will build objects and dependencies in a subdirectory because
12573   # it helps to detect inapplicable dependency modes.  For instance
12574   # both Tru64's cc and ICC support -MD to output dependencies as a
12575   # side effect of compilation, but ICC will put the dependencies in
12576   # the current directory while Tru64 will put them in the object
12577   # directory.
12578   mkdir sub
12579
12580   am_cv_CC_dependencies_compiler_type=none
12581   if test "$am_compiler_list" = ""; then
12582      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12583   fi
12584   for depmode in $am_compiler_list; do
12585     # Setup a source with many dependencies, because some compilers
12586     # like to wrap large dependency lists on column 80 (with \), and
12587     # we should not choose a depcomp mode which is confused by this.
12588     #
12589     # We need to recreate these files for each test, as the compiler may
12590     # overwrite some of them when testing with obscure command lines.
12591     # This happens at least with the AIX C compiler.
12592     : > sub/conftest.c
12593     for i in 1 2 3 4 5 6; do
12594       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12595       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12596       # Solaris 8's {/usr,}/bin/sh.
12597       touch sub/conftst$i.h
12598     done
12599     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12600
12601     case $depmode in
12602     nosideeffect)
12603       # after this tag, mechanisms are not by side-effect, so they'll
12604       # only be used when explicitly requested
12605       if test "x$enable_dependency_tracking" = xyes; then
12606         continue
12607       else
12608         break
12609       fi
12610       ;;
12611     none) break ;;
12612     esac
12613     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12614     # mode.  It turns out that the SunPro C++ compiler does not properly
12615     # handle `-M -o', and we need to detect this.
12616     if depmode=$depmode \
12617        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12618        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12619        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12620          >/dev/null 2>conftest.err &&
12621        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12622        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12623        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12624       # icc doesn't choke on unknown options, it will just issue warnings
12625       # or remarks (even with -Werror).  So we grep stderr for any message
12626       # that says an option was ignored or not supported.
12627       # When given -MP, icc 7.0 and 7.1 complain thusly:
12628       #   icc: Command line warning: ignoring option '-M'; no argument required
12629       # The diagnosis changed in icc 8.0:
12630       #   icc: Command line remark: option '-MP' not supported
12631       if (grep 'ignoring option' conftest.err ||
12632           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12633         am_cv_CC_dependencies_compiler_type=$depmode
12634         break
12635       fi
12636     fi
12637   done
12638
12639   cd ..
12640   rm -rf conftest.dir
12641 else
12642   am_cv_CC_dependencies_compiler_type=none
12643 fi
12644
12645 fi
12646 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12647 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12649
12650
12651
12652 if
12653   test "x$enable_dependency_tracking" != xno \
12654   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12655   am__fastdepCC_TRUE=
12656   am__fastdepCC_FALSE='#'
12657 else
12658   am__fastdepCC_TRUE='#'
12659   am__fastdepCC_FALSE=
12660 fi
12661
12662
12663 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12664         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12665 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12666    { (exit 1); exit 1; }; }
12667 fi
12668
12669 # test for make depend flag
12670 OL_MKDEP=
12671 OL_MKDEP_FLAGS=
12672 if test -z "${MKDEP}"; then
12673         OL_MKDEP="${CC-cc}"
12674         if test -z "${MKDEP_FLAGS}"; then
12675                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12676 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12677 if test "${ol_cv_mkdep+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680
12681                         ol_cv_mkdep=no
12682                         for flag in "-M" "-xM"; do
12683                                 cat > conftest.c <<EOF
12684  noCode;
12685 EOF
12686                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688   (eval $ac_try) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; } \
12692                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12693                                 then
12694                                         if test ! -f conftest."${ac_object}" ; then
12695                                                 ol_cv_mkdep=$flag
12696                                                 OL_MKDEP_FLAGS="$flag"
12697                                                 break
12698                                         fi
12699                                 fi
12700                         done
12701                         rm -f conftest*
12702
12703 fi
12704 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12705 echo "${ECHO_T}$ol_cv_mkdep" >&6
12706         else
12707                 cc_cv_mkdep=yes
12708                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12709         fi
12710 else
12711         cc_cv_mkdep=yes
12712         OL_MKDEP="${MKDEP}"
12713         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12714 fi
12715
12716
12717
12718 if test "${ol_cv_mkdep}" = no ; then
12719         # this will soon become an error
12720         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12721 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12722 fi
12723
12724 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12725 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12726 if test "${ac_cv_lib_s_afopen+set}" = set; then
12727   echo $ECHO_N "(cached) $ECHO_C" >&6
12728 else
12729   ac_check_lib_save_LIBS=$LIBS
12730 LIBS="-ls  $LIBS"
12731 cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h.  */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h.  */
12737
12738 /* Override any gcc2 internal prototype to avoid an error.  */
12739 #ifdef __cplusplus
12740 extern "C"
12741 #endif
12742 /* We use char because int might match the return type of a gcc2
12743    builtin and then its argument prototype would still apply.  */
12744 char afopen ();
12745 int
12746 main ()
12747 {
12748 afopen ();
12749   ;
12750   return 0;
12751 }
12752 _ACEOF
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755   (eval $ac_link) 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } &&
12762          { ac_try='test -z "$ac_c_werror_flag"
12763                          || test ! -s conftest.err'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; } &&
12769          { ac_try='test -s conftest$ac_exeext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   ac_cv_lib_s_afopen=yes
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ac_cv_lib_s_afopen=no
12781 fi
12782 rm -f conftest.err conftest.$ac_objext \
12783       conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12785 fi
12786 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12787 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12788 if test $ac_cv_lib_s_afopen = yes; then
12789
12790         AUTH_LIBS=-ls
12791
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_AIX_SECURITY 1
12794 _ACEOF
12795
12796
12797 fi
12798
12799
12800 case "$target" in
12801 *-ibm-openedition)
12802         ac_cv_func_getopt=no
12803
12804 cat >>confdefs.h <<\_ACEOF
12805 #define BOTH_STRINGS_H 1
12806 _ACEOF
12807
12808         ;;
12809 esac
12810
12811 ol_link_modules=no
12812 WITH_MODULES_ENABLED=no
12813 if test $ol_enable_modules != no ; then
12814
12815 for ac_header in ltdl.h
12816 do
12817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12819   echo "$as_me:$LINENO: checking for $ac_header" >&5
12820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 fi
12824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12826 else
12827   # Is the header compilable?
12828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12830 cat >conftest.$ac_ext <<_ACEOF
12831 /* confdefs.h.  */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h.  */
12836 $ac_includes_default
12837 #include <$ac_header>
12838 _ACEOF
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841   (eval $ac_compile) 2>conftest.er1
12842   ac_status=$?
12843   grep -v '^ *+' conftest.er1 >conftest.err
12844   rm -f conftest.er1
12845   cat conftest.err >&5
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } &&
12848          { ac_try='test -z "$ac_c_werror_flag"
12849                          || test ! -s conftest.err'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; } &&
12855          { ac_try='test -s conftest.$ac_objext'
12856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857   (eval $ac_try) 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; }; then
12861   ac_header_compiler=yes
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ac_header_compiler=no
12867 fi
12868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 echo "${ECHO_T}$ac_header_compiler" >&6
12871
12872 # Is the header present?
12873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 #include <$ac_header>
12882 _ACEOF
12883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } >/dev/null; then
12891   if test -s conftest.err; then
12892     ac_cpp_err=$ac_c_preproc_warn_flag
12893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12894   else
12895     ac_cpp_err=
12896   fi
12897 else
12898   ac_cpp_err=yes
12899 fi
12900 if test -z "$ac_cpp_err"; then
12901   ac_header_preproc=yes
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906   ac_header_preproc=no
12907 fi
12908 rm -f conftest.err conftest.$ac_ext
12909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12910 echo "${ECHO_T}$ac_header_preproc" >&6
12911
12912 # So?  What about this header?
12913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12914   yes:no: )
12915     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12919     ac_header_preproc=yes
12920     ;;
12921   no:yes:* )
12922     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12924     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12925 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12926     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12928     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12929 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12934     (
12935       cat <<\_ASBOX
12936 ## --------------------------------------------- ##
12937 ## Report this to <http://www.openldap.org/its/> ##
12938 ## --------------------------------------------- ##
12939 _ASBOX
12940     ) |
12941       sed "s/^/$as_me: WARNING:     /" >&2
12942     ;;
12943 esac
12944 echo "$as_me:$LINENO: checking for $ac_header" >&5
12945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   eval "$as_ac_Header=\$ac_header_preproc"
12950 fi
12951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12953
12954 fi
12955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12956   cat >>confdefs.h <<_ACEOF
12957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12958 _ACEOF
12959
12960 fi
12961
12962 done
12963
12964
12965         if test $ac_cv_header_ltdl_h = no ; then
12966                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
12967 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
12968    { (exit 1); exit 1; }; }
12969         fi
12970
12971         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12972 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
12973 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12974   echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976   ac_check_lib_save_LIBS=$LIBS
12977 LIBS="-lltdl  $LIBS"
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h.  */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h.  */
12984
12985 /* Override any gcc2 internal prototype to avoid an error.  */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 /* We use char because int might match the return type of a gcc2
12990    builtin and then its argument prototype would still apply.  */
12991 char lt_dlinit ();
12992 int
12993 main ()
12994 {
12995 lt_dlinit ();
12996   ;
12997   return 0;
12998 }
12999 _ACEOF
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13002   (eval $ac_link) 2>conftest.er1
13003   ac_status=$?
13004   grep -v '^ *+' conftest.er1 >conftest.err
13005   rm -f conftest.er1
13006   cat conftest.err >&5
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } &&
13009          { ac_try='test -z "$ac_c_werror_flag"
13010                          || test ! -s conftest.err'
13011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012   (eval $ac_try) 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; } &&
13016          { ac_try='test -s conftest$ac_exeext'
13017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018   (eval $ac_try) 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; }; then
13022   ac_cv_lib_ltdl_lt_dlinit=yes
13023 else
13024   echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027 ac_cv_lib_ltdl_lt_dlinit=no
13028 fi
13029 rm -f conftest.err conftest.$ac_objext \
13030       conftest$ac_exeext conftest.$ac_ext
13031 LIBS=$ac_check_lib_save_LIBS
13032 fi
13033 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13034 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13035 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13036
13037                 MODULES_LIBS=-lltdl
13038
13039 cat >>confdefs.h <<\_ACEOF
13040 #define HAVE_LIBLTDL 1
13041 _ACEOF
13042
13043
13044 fi
13045
13046
13047         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13048                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13049 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13050    { (exit 1); exit 1; }; }
13051         fi
13052         ol_link_modules=yes
13053         WITH_MODULES_ENABLED=yes
13054
13055 else
13056         for i in $Backends; do
13057                 eval "ol_tmp=\$ol_enable_$i"
13058                 if test $ol_tmp = mod ; then
13059                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13060 echo "$as_me: WARNING: building static $i backend" >&2;}
13061                         eval "ol_enable_$i=yes"
13062                 fi
13063         done
13064         for i in $Overlays; do
13065                 eval "ol_tmp=\$ol_enable_$i"
13066                 if test $ol_tmp = mod ; then
13067                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13068 echo "$as_me: WARNING: building static $i overlay" >&2;}
13069                         eval "ol_enable_$i=yes"
13070                 fi
13071         done
13072 fi
13073
13074 # test for EBCDIC
13075 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13076 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13077 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080
13081         cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087
13088 #if !('M' == 0xd4)
13089 #include <__ASCII__/generate_error.h>
13090 #endif
13091
13092 _ACEOF
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } >/dev/null; then
13101   if test -s conftest.err; then
13102     ac_cpp_err=$ac_c_preproc_warn_flag
13103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13104   else
13105     ac_cpp_err=
13106   fi
13107 else
13108   ac_cpp_err=yes
13109 fi
13110 if test -z "$ac_cpp_err"; then
13111   ol_cv_cpp_ebcdic=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116   ol_cv_cpp_ebcdic=no
13117 fi
13118 rm -f conftest.err conftest.$ac_ext
13119 fi
13120 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13121 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13122 if test $ol_cv_cpp_ebcdic = yes ; then
13123
13124 cat >>confdefs.h <<\_ACEOF
13125 #define HAVE_EBCDIC 1
13126 _ACEOF
13127
13128 fi
13129
13130 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13131 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13132 if test "${ol_cv_header_stdc+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141 #include <stdlib.h>
13142 #include <stdarg.h>
13143 #include <string.h>
13144 #include <float.h>
13145 _ACEOF
13146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13148   ac_status=$?
13149   grep -v '^ *+' conftest.er1 >conftest.err
13150   rm -f conftest.er1
13151   cat conftest.err >&5
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } >/dev/null; then
13154   if test -s conftest.err; then
13155     ac_cpp_err=$ac_c_preproc_warn_flag
13156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13157   else
13158     ac_cpp_err=
13159   fi
13160 else
13161   ac_cpp_err=yes
13162 fi
13163 if test -z "$ac_cpp_err"; then
13164   ol_cv_header_stdc=yes
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169   ol_cv_header_stdc=no
13170 fi
13171 rm -f conftest.err conftest.$ac_ext
13172
13173 if test $ol_cv_header_stdc = yes; then
13174   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h.  */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h.  */
13181 #include <string.h>
13182
13183 _ACEOF
13184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13185   $EGREP "memchr" >/dev/null 2>&1; then
13186   :
13187 else
13188   ol_cv_header_stdc=no
13189 fi
13190 rm -f conftest*
13191
13192 fi
13193
13194 if test $ol_cv_header_stdc = yes; then
13195   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13196 cat >conftest.$ac_ext <<_ACEOF
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13202 #include <stdlib.h>
13203
13204 _ACEOF
13205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13206   $EGREP "free" >/dev/null 2>&1; then
13207   :
13208 else
13209   ol_cv_header_stdc=no
13210 fi
13211 rm -f conftest*
13212
13213 fi
13214
13215 if test $ol_cv_header_stdc = yes; then
13216   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13217 if test "$cross_compiling" = yes; then
13218   :
13219 else
13220   cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226 #include <ctype.h>
13227 #ifndef HAVE_EBCDIC
13228 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13229 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13230 #else
13231 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13232                 || ('j' <= (c) && (c) <= 'r') \
13233                 || ('s' <= (c) && (c) <= 'z'))
13234 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13235 #endif
13236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13237 int main () { int i; for (i = 0; i < 256; i++)
13238 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13239 exit (0); }
13240
13241 _ACEOF
13242 rm -f conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244   (eval $ac_link) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; }; then
13253   :
13254 else
13255   echo "$as_me: program exited with status $ac_status" >&5
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259 ( exit $ac_status )
13260 ol_cv_header_stdc=no
13261 fi
13262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13263 fi
13264 fi
13265 fi
13266 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13267 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13268 if test $ol_cv_header_stdc = yes; then
13269   cat >>confdefs.h <<\_ACEOF
13270 #define STDC_HEADERS 1
13271 _ACEOF
13272
13273 fi
13274 ac_cv_header_stdc=disable
13275
13276
13277 if test $ol_cv_header_stdc != yes; then
13278         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13279 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13280 fi
13281
13282
13283
13284
13285
13286
13287 ac_header_dirent=no
13288 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13289   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13290 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13291 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13293   echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295   cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h.  */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h.  */
13301 #include <sys/types.h>
13302 #include <$ac_hdr>
13303
13304 int
13305 main ()
13306 {
13307 if ((DIR *) 0)
13308 return 0;
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315   (eval $ac_compile) 2>conftest.er1
13316   ac_status=$?
13317   grep -v '^ *+' conftest.er1 >conftest.err
13318   rm -f conftest.er1
13319   cat conftest.err >&5
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } &&
13322          { ac_try='test -z "$ac_c_werror_flag"
13323                          || test ! -s conftest.err'
13324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325   (eval $ac_try) 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); }; } &&
13329          { ac_try='test -s conftest.$ac_objext'
13330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331   (eval $ac_try) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   eval "$as_ac_Header=yes"
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340 eval "$as_ac_Header=no"
13341 fi
13342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13343 fi
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347   cat >>confdefs.h <<_ACEOF
13348 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13349 _ACEOF
13350
13351 ac_header_dirent=$ac_hdr; break
13352 fi
13353
13354 done
13355 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13356 if test $ac_header_dirent = dirent.h; then
13357   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13358 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13359 if test "${ac_cv_search_opendir+set}" = set; then
13360   echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362   ac_func_search_save_LIBS=$LIBS
13363 ac_cv_search_opendir=no
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370
13371 /* Override any gcc2 internal prototype to avoid an error.  */
13372 #ifdef __cplusplus
13373 extern "C"
13374 #endif
13375 /* We use char because int might match the return type of a gcc2
13376    builtin and then its argument prototype would still apply.  */
13377 char opendir ();
13378 int
13379 main ()
13380 {
13381 opendir ();
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388   (eval $ac_link) 2>conftest.er1
13389   ac_status=$?
13390   grep -v '^ *+' conftest.er1 >conftest.err
13391   rm -f conftest.er1
13392   cat conftest.err >&5
13393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } &&
13395          { ac_try='test -z "$ac_c_werror_flag"
13396                          || test ! -s conftest.err'
13397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398   (eval $ac_try) 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); }; } &&
13402          { ac_try='test -s conftest$ac_exeext'
13403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404   (eval $ac_try) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_cv_search_opendir="none required"
13409 else
13410   echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 fi
13414 rm -f conftest.err conftest.$ac_objext \
13415       conftest$ac_exeext conftest.$ac_ext
13416 if test "$ac_cv_search_opendir" = no; then
13417   for ac_lib in dir; do
13418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13419     cat >conftest.$ac_ext <<_ACEOF
13420 /* confdefs.h.  */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h.  */
13425
13426 /* Override any gcc2 internal prototype to avoid an error.  */
13427 #ifdef __cplusplus
13428 extern "C"
13429 #endif
13430 /* We use char because int might match the return type of a gcc2
13431    builtin and then its argument prototype would still apply.  */
13432 char opendir ();
13433 int
13434 main ()
13435 {
13436 opendir ();
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443   (eval $ac_link) 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } &&
13450          { ac_try='test -z "$ac_c_werror_flag"
13451                          || test ! -s conftest.err'
13452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453   (eval $ac_try) 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; } &&
13457          { ac_try='test -s conftest$ac_exeext'
13458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459   (eval $ac_try) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); }; }; then
13463   ac_cv_search_opendir="-l$ac_lib"
13464 break
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 fi
13470 rm -f conftest.err conftest.$ac_objext \
13471       conftest$ac_exeext conftest.$ac_ext
13472   done
13473 fi
13474 LIBS=$ac_func_search_save_LIBS
13475 fi
13476 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13477 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13478 if test "$ac_cv_search_opendir" != no; then
13479   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13480
13481 fi
13482
13483 else
13484   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13486 if test "${ac_cv_search_opendir+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   ac_func_search_save_LIBS=$LIBS
13490 ac_cv_search_opendir=no
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497
13498 /* Override any gcc2 internal prototype to avoid an error.  */
13499 #ifdef __cplusplus
13500 extern "C"
13501 #endif
13502 /* We use char because int might match the return type of a gcc2
13503    builtin and then its argument prototype would still apply.  */
13504 char opendir ();
13505 int
13506 main ()
13507 {
13508 opendir ();
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13515   (eval $ac_link) 2>conftest.er1
13516   ac_status=$?
13517   grep -v '^ *+' conftest.er1 >conftest.err
13518   rm -f conftest.er1
13519   cat conftest.err >&5
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); } &&
13522          { ac_try='test -z "$ac_c_werror_flag"
13523                          || test ! -s conftest.err'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; } &&
13529          { ac_try='test -s conftest$ac_exeext'
13530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   ac_cv_search_opendir="none required"
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 fi
13541 rm -f conftest.err conftest.$ac_objext \
13542       conftest$ac_exeext conftest.$ac_ext
13543 if test "$ac_cv_search_opendir" = no; then
13544   for ac_lib in x; do
13545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13546     cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552
13553 /* Override any gcc2 internal prototype to avoid an error.  */
13554 #ifdef __cplusplus
13555 extern "C"
13556 #endif
13557 /* We use char because int might match the return type of a gcc2
13558    builtin and then its argument prototype would still apply.  */
13559 char opendir ();
13560 int
13561 main ()
13562 {
13563 opendir ();
13564   ;
13565   return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13570   (eval $ac_link) 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } &&
13577          { ac_try='test -z "$ac_c_werror_flag"
13578                          || test ! -s conftest.err'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; } &&
13584          { ac_try='test -s conftest$ac_exeext'
13585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586   (eval $ac_try) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); }; }; then
13590   ac_cv_search_opendir="-l$ac_lib"
13591 break
13592 else
13593   echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 fi
13597 rm -f conftest.err conftest.$ac_objext \
13598       conftest$ac_exeext conftest.$ac_ext
13599   done
13600 fi
13601 LIBS=$ac_func_search_save_LIBS
13602 fi
13603 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13604 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13605 if test "$ac_cv_search_opendir" != no; then
13606   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13607
13608 fi
13609
13610 fi
13611
13612 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13613 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13614 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617   cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 #include <sys/types.h>
13624 #include <sys/wait.h>
13625 #ifndef WEXITSTATUS
13626 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13627 #endif
13628 #ifndef WIFEXITED
13629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13630 #endif
13631
13632 int
13633 main ()
13634 {
13635   int s;
13636   wait (&s);
13637   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644   (eval $ac_compile) 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } &&
13651          { ac_try='test -z "$ac_c_werror_flag"
13652                          || test ! -s conftest.err'
13653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654   (eval $ac_try) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); }; } &&
13658          { ac_try='test -s conftest.$ac_objext'
13659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660   (eval $ac_try) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; }; then
13664   ac_cv_header_sys_wait_h=yes
13665 else
13666   echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 ac_cv_header_sys_wait_h=no
13670 fi
13671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13672 fi
13673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13674 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13675 if test $ac_cv_header_sys_wait_h = yes; then
13676
13677 cat >>confdefs.h <<\_ACEOF
13678 #define HAVE_SYS_WAIT_H 1
13679 _ACEOF
13680
13681 fi
13682
13683 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13684 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13685 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13686   echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688   cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h.  */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h.  */
13694 #include <sys/types.h>
13695 #include <termios.h>
13696 #ifdef TIOCGWINSZ
13697   yes
13698 #endif
13699
13700 _ACEOF
13701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13702   $EGREP "yes" >/dev/null 2>&1; then
13703   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13704 else
13705   ac_cv_sys_tiocgwinsz_in_termios_h=no
13706 fi
13707 rm -f conftest*
13708
13709 fi
13710 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13711 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13712
13713 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13714   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13715 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13716 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h.  */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h.  */
13725 #include <sys/types.h>
13726 #include <sys/ioctl.h>
13727 #ifdef TIOCGWINSZ
13728   yes
13729 #endif
13730
13731 _ACEOF
13732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13733   $EGREP "yes" >/dev/null 2>&1; then
13734   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13735 else
13736   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13737 fi
13738 rm -f conftest*
13739
13740 fi
13741 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13742 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13743
13744   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13745
13746 cat >>confdefs.h <<\_ACEOF
13747 #define GWINSZ_IN_SYS_IOCTL 1
13748 _ACEOF
13749
13750   fi
13751 fi
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801 for ac_header in \
13802         arpa/inet.h             \
13803         arpa/nameser.h  \
13804         assert.h                \
13805         bits/types.h    \
13806         conio.h                 \
13807         crypt.h                 \
13808         direct.h                \
13809         errno.h                 \
13810         fcntl.h                 \
13811         filio.h                 \
13812         getopt.h                \
13813         grp.h                   \
13814         io.h                    \
13815         libutil.h               \
13816         limits.h                \
13817         locale.h                \
13818         malloc.h                \
13819         memory.h                \
13820         psap.h                  \
13821         pwd.h                   \
13822         process.h               \
13823         sgtty.h                 \
13824         shadow.h                \
13825         stddef.h                \
13826         string.h                \
13827         strings.h               \
13828         sysexits.h              \
13829         sys/file.h              \
13830         sys/filio.h             \
13831         sys/fstyp.h             \
13832         sys/errno.h             \
13833         sys/ioctl.h             \
13834         sys/param.h             \
13835         sys/privgrp.h   \
13836         sys/resource.h  \
13837         sys/select.h    \
13838         sys/socket.h    \
13839         sys/stat.h              \
13840         sys/syslog.h    \
13841         sys/time.h              \
13842         sys/types.h             \
13843         sys/uio.h               \
13844         sys/vmount.h    \
13845         syslog.h                \
13846         termios.h               \
13847         unistd.h                \
13848         utime.h                 \
13849
13850 do
13851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13853   echo "$as_me:$LINENO: checking for $ac_header" >&5
13854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856   echo $ECHO_N "(cached) $ECHO_C" >&6
13857 fi
13858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13860 else
13861   # Is the header compilable?
13862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 $ac_includes_default
13871 #include <$ac_header>
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875   (eval $ac_compile) 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } &&
13882          { ac_try='test -z "$ac_c_werror_flag"
13883                          || test ! -s conftest.err'
13884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885   (eval $ac_try) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); }; } &&
13889          { ac_try='test -s conftest.$ac_objext'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   ac_header_compiler=yes
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_header_compiler=no
13901 fi
13902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13904 echo "${ECHO_T}$ac_header_compiler" >&6
13905
13906 # Is the header present?
13907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h.  */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h.  */
13915 #include <$ac_header>
13916 _ACEOF
13917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13919   ac_status=$?
13920   grep -v '^ *+' conftest.er1 >conftest.err
13921   rm -f conftest.er1
13922   cat conftest.err >&5
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); } >/dev/null; then
13925   if test -s conftest.err; then
13926     ac_cpp_err=$ac_c_preproc_warn_flag
13927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13928   else
13929     ac_cpp_err=
13930   fi
13931 else
13932   ac_cpp_err=yes
13933 fi
13934 if test -z "$ac_cpp_err"; then
13935   ac_header_preproc=yes
13936 else
13937   echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13939
13940   ac_header_preproc=no
13941 fi
13942 rm -f conftest.err conftest.$ac_ext
13943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13944 echo "${ECHO_T}$ac_header_preproc" >&6
13945
13946 # So?  What about this header?
13947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13948   yes:no: )
13949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13953     ac_header_preproc=yes
13954     ;;
13955   no:yes:* )
13956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13968     (
13969       cat <<\_ASBOX
13970 ## --------------------------------------------- ##
13971 ## Report this to <http://www.openldap.org/its/> ##
13972 ## --------------------------------------------- ##
13973 _ASBOX
13974     ) |
13975       sed "s/^/$as_me: WARNING:     /" >&2
13976     ;;
13977 esac
13978 echo "$as_me:$LINENO: checking for $ac_header" >&5
13979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983   eval "$as_ac_Header=\$ac_header_preproc"
13984 fi
13985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13987
13988 fi
13989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13990   cat >>confdefs.h <<_ACEOF
13991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13992 _ACEOF
13993
13994 fi
13995
13996 done
13997
13998
13999 if test "$ac_cv_mingw32" = yes ; then
14000
14001
14002 for ac_header in winsock.h winsock2.h
14003 do
14004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006   echo "$as_me:$LINENO: checking for $ac_header" >&5
14007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14009   echo $ECHO_N "(cached) $ECHO_C" >&6
14010 fi
14011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14013 else
14014   # Is the header compilable?
14015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h.  */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h.  */
14023 $ac_includes_default
14024 #include <$ac_header>
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028   (eval $ac_compile) 2>conftest.er1
14029   ac_status=$?
14030   grep -v '^ *+' conftest.er1 >conftest.err
14031   rm -f conftest.er1
14032   cat conftest.err >&5
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); } &&
14035          { ac_try='test -z "$ac_c_werror_flag"
14036                          || test ! -s conftest.err'
14037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038   (eval $ac_try) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; } &&
14042          { ac_try='test -s conftest.$ac_objext'
14043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044   (eval $ac_try) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; }; then
14048   ac_header_compiler=yes
14049 else
14050   echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053 ac_header_compiler=no
14054 fi
14055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14057 echo "${ECHO_T}$ac_header_compiler" >&6
14058
14059 # Is the header present?
14060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068 #include <$ac_header>
14069 _ACEOF
14070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14072   ac_status=$?
14073   grep -v '^ *+' conftest.er1 >conftest.err
14074   rm -f conftest.er1
14075   cat conftest.err >&5
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } >/dev/null; then
14078   if test -s conftest.err; then
14079     ac_cpp_err=$ac_c_preproc_warn_flag
14080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14081   else
14082     ac_cpp_err=
14083   fi
14084 else
14085   ac_cpp_err=yes
14086 fi
14087 if test -z "$ac_cpp_err"; then
14088   ac_header_preproc=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093   ac_header_preproc=no
14094 fi
14095 rm -f conftest.err conftest.$ac_ext
14096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14097 echo "${ECHO_T}$ac_header_preproc" >&6
14098
14099 # So?  What about this header?
14100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14101   yes:no: )
14102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14106     ac_header_preproc=yes
14107     ;;
14108   no:yes:* )
14109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14111     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14112 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14113     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14115     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14116 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14119     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14121     (
14122       cat <<\_ASBOX
14123 ## --------------------------------------------- ##
14124 ## Report this to <http://www.openldap.org/its/> ##
14125 ## --------------------------------------------- ##
14126 _ASBOX
14127     ) |
14128       sed "s/^/$as_me: WARNING:     /" >&2
14129     ;;
14130 esac
14131 echo "$as_me:$LINENO: checking for $ac_header" >&5
14132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   eval "$as_ac_Header=\$ac_header_preproc"
14137 fi
14138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14140
14141 fi
14142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14143   cat >>confdefs.h <<_ACEOF
14144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14145 _ACEOF
14146
14147 fi
14148
14149 done
14150
14151 fi
14152
14153
14154 for ac_header in resolv.h
14155 do
14156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14157 echo "$as_me:$LINENO: checking for $ac_header" >&5
14158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14160   echo $ECHO_N "(cached) $ECHO_C" >&6
14161 else
14162   cat >conftest.$ac_ext <<_ACEOF
14163 /* confdefs.h.  */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h.  */
14168 $ac_includes_default
14169 #include <netinet/in.h>
14170
14171
14172 #include <$ac_header>
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176   (eval $ac_compile) 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_c_werror_flag"
14184                          || test ! -s conftest.err'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; } &&
14190          { ac_try='test -s conftest.$ac_objext'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   eval "$as_ac_Header=yes"
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 eval "$as_ac_Header=no"
14202 fi
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14204 fi
14205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14208   cat >>confdefs.h <<_ACEOF
14209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14210 _ACEOF
14211
14212 fi
14213
14214 done
14215
14216
14217
14218 for ac_header in netinet/tcp.h
14219 do
14220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14221 echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226   cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 $ac_includes_default
14233 #include <netinet/in.h>
14234
14235
14236 #include <$ac_header>
14237 _ACEOF
14238 rm -f conftest.$ac_objext
14239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14240   (eval $ac_compile) 2>conftest.er1
14241   ac_status=$?
14242   grep -v '^ *+' conftest.er1 >conftest.err
14243   rm -f conftest.er1
14244   cat conftest.err >&5
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); } &&
14247          { ac_try='test -z "$ac_c_werror_flag"
14248                          || test ! -s conftest.err'
14249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250   (eval $ac_try) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); }; } &&
14254          { ac_try='test -s conftest.$ac_objext'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; }; then
14260   eval "$as_ac_Header=yes"
14261 else
14262   echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 eval "$as_ac_Header=no"
14266 fi
14267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14268 fi
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14272   cat >>confdefs.h <<_ACEOF
14273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14274 _ACEOF
14275
14276 fi
14277
14278 done
14279
14280
14281
14282 for ac_header in sys/ucred.h
14283 do
14284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14285 echo "$as_me:$LINENO: checking for $ac_header" >&5
14286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   cat >conftest.$ac_ext <<_ACEOF
14291 /* confdefs.h.  */
14292 _ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h.  */
14296 $ac_includes_default
14297 #ifdef HAVE_SYS_PARAM_H
14298 #include <sys/param.h>
14299 #endif
14300
14301
14302 #include <$ac_header>
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306   (eval $ac_compile) 2>conftest.er1
14307   ac_status=$?
14308   grep -v '^ *+' conftest.er1 >conftest.err
14309   rm -f conftest.er1
14310   cat conftest.err >&5
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); } &&
14313          { ac_try='test -z "$ac_c_werror_flag"
14314                          || test ! -s conftest.err'
14315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316   (eval $ac_try) 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest.$ac_objext'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; }; then
14326   eval "$as_ac_Header=yes"
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 eval "$as_ac_Header=no"
14332 fi
14333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14338   cat >>confdefs.h <<_ACEOF
14339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14340 _ACEOF
14341
14342 fi
14343
14344 done
14345
14346
14347
14348
14349
14350 for ac_func in sigaction sigset
14351 do
14352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14353 echo "$as_me:$LINENO: checking for $ac_func" >&5
14354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14355 if eval "test \"\${$as_ac_var+set}\" = set"; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14366 #define $ac_func innocuous_$ac_func
14367
14368 /* System header to define __stub macros and hopefully few prototypes,
14369     which can conflict with char $ac_func (); below.
14370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14371     <limits.h> exists even on freestanding compilers.  */
14372
14373 #ifdef __STDC__
14374 # include <limits.h>
14375 #else
14376 # include <assert.h>
14377 #endif
14378
14379 #undef $ac_func
14380
14381 /* Override any gcc2 internal prototype to avoid an error.  */
14382 #ifdef __cplusplus
14383 extern "C"
14384 {
14385 #endif
14386 /* We use char because int might match the return type of a gcc2
14387    builtin and then its argument prototype would still apply.  */
14388 char $ac_func ();
14389 /* The GNU C library defines this for functions which it implements
14390     to always fail with ENOSYS.  Some functions are actually named
14391     something starting with __ and the normal name is an alias.  */
14392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14393 choke me
14394 #else
14395 char (*f) () = $ac_func;
14396 #endif
14397 #ifdef __cplusplus
14398 }
14399 #endif
14400
14401 int
14402 main ()
14403 {
14404 return f != $ac_func;
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411   (eval $ac_link) 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -z "$ac_c_werror_flag"
14419                          || test ! -s conftest.err'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; } &&
14425          { ac_try='test -s conftest$ac_exeext'
14426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427   (eval $ac_try) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431   eval "$as_ac_var=yes"
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 eval "$as_ac_var=no"
14437 fi
14438 rm -f conftest.err conftest.$ac_objext \
14439       conftest$ac_exeext conftest.$ac_ext
14440 fi
14441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14443 if test `eval echo '${'$as_ac_var'}'` = yes; then
14444   cat >>confdefs.h <<_ACEOF
14445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14446 _ACEOF
14447
14448 fi
14449 done
14450
14451
14452 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14453
14454 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14455 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14456 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   ac_check_lib_save_LIBS=$LIBS
14460 LIBS="-lV3  $LIBS"
14461 cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h.  */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h.  */
14467
14468 /* Override any gcc2 internal prototype to avoid an error.  */
14469 #ifdef __cplusplus
14470 extern "C"
14471 #endif
14472 /* We use char because int might match the return type of a gcc2
14473    builtin and then its argument prototype would still apply.  */
14474 char sigset ();
14475 int
14476 main ()
14477 {
14478 sigset ();
14479   ;
14480   return 0;
14481 }
14482 _ACEOF
14483 rm -f conftest.$ac_objext conftest$ac_exeext
14484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14485   (eval $ac_link) 2>conftest.er1
14486   ac_status=$?
14487   grep -v '^ *+' conftest.er1 >conftest.err
14488   rm -f conftest.er1
14489   cat conftest.err >&5
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); } &&
14492          { ac_try='test -z "$ac_c_werror_flag"
14493                          || test ! -s conftest.err'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; } &&
14499          { ac_try='test -s conftest$ac_exeext'
14500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501   (eval $ac_try) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; }; then
14505   ac_cv_lib_V3_sigset=yes
14506 else
14507   echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510 ac_cv_lib_V3_sigset=no
14511 fi
14512 rm -f conftest.err conftest.$ac_objext \
14513       conftest$ac_exeext conftest.$ac_ext
14514 LIBS=$ac_check_lib_save_LIBS
14515 fi
14516 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14517 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14518 if test $ac_cv_lib_V3_sigset = yes; then
14519   cat >>confdefs.h <<_ACEOF
14520 #define HAVE_LIBV3 1
14521 _ACEOF
14522
14523   LIBS="-lV3 $LIBS"
14524
14525 fi
14526
14527 fi
14528
14529 if test "$ac_cv_header_winsock_h" = yes; then
14530 echo "$as_me:$LINENO: checking for winsock" >&5
14531 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14532 if test "${ol_cv_winsock+set}" = set; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535   save_LIBS="$LIBS"
14536 for curlib in ws2_32 wsock32; do
14537         LIBS="$LIBS -l$curlib"
14538         cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 #include <winsock.h>
14545
14546 int
14547 main ()
14548 {
14549
14550                         socket(0,0,0);
14551                         select(0,NULL,NULL,NULL,NULL);
14552                         closesocket(0);
14553                         gethostname(NULL,0);
14554
14555   ;
14556   return 0;
14557 }
14558 _ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561   (eval $ac_link) 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } &&
14568          { ac_try='test -z "$ac_c_werror_flag"
14569                          || test ! -s conftest.err'
14570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571   (eval $ac_try) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; } &&
14575          { ac_try='test -s conftest$ac_exeext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581   ol_cv_winsock=yes
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586 ol_cv_winsock=no
14587 fi
14588 rm -f conftest.err conftest.$ac_objext \
14589       conftest$ac_exeext conftest.$ac_ext
14590
14591         if test $ol_cv_winsock = yes; then
14592
14593 cat >>confdefs.h <<\_ACEOF
14594 #define HAVE_WINSOCK 1
14595 _ACEOF
14596
14597                 ac_cv_func_socket=yes
14598                 ac_cv_func_select=yes
14599                 ac_cv_func_closesocket=yes
14600                 ac_cv_func_gethostname=yes
14601                 if test $curlib = ws2_32; then
14602                         ol_cv_winsock=winsock2
14603
14604 cat >>confdefs.h <<\_ACEOF
14605 #define HAVE_WINSOCK2 1
14606 _ACEOF
14607
14608                 fi
14609                 break
14610         fi
14611         LIBS="$save_LIBS"
14612 done
14613 fi
14614 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14615 echo "${ECHO_T}$ol_cv_winsock" >&6
14616 fi
14617
14618
14619 echo "$as_me:$LINENO: checking for socket" >&5
14620 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14621 if test "${ac_cv_func_socket+set}" = set; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14632 #define socket innocuous_socket
14633
14634 /* System header to define __stub macros and hopefully few prototypes,
14635     which can conflict with char socket (); below.
14636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14637     <limits.h> exists even on freestanding compilers.  */
14638
14639 #ifdef __STDC__
14640 # include <limits.h>
14641 #else
14642 # include <assert.h>
14643 #endif
14644
14645 #undef socket
14646
14647 /* Override any gcc2 internal prototype to avoid an error.  */
14648 #ifdef __cplusplus
14649 extern "C"
14650 {
14651 #endif
14652 /* We use char because int might match the return type of a gcc2
14653    builtin and then its argument prototype would still apply.  */
14654 char socket ();
14655 /* The GNU C library defines this for functions which it implements
14656     to always fail with ENOSYS.  Some functions are actually named
14657     something starting with __ and the normal name is an alias.  */
14658 #if defined (__stub_socket) || defined (__stub___socket)
14659 choke me
14660 #else
14661 char (*f) () = socket;
14662 #endif
14663 #ifdef __cplusplus
14664 }
14665 #endif
14666
14667 int
14668 main ()
14669 {
14670 return f != socket;
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677   (eval $ac_link) 2>conftest.er1
14678   ac_status=$?
14679   grep -v '^ *+' conftest.er1 >conftest.err
14680   rm -f conftest.er1
14681   cat conftest.err >&5
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); } &&
14684          { ac_try='test -z "$ac_c_werror_flag"
14685                          || test ! -s conftest.err'
14686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687   (eval $ac_try) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; } &&
14691          { ac_try='test -s conftest$ac_exeext'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; }; then
14697   ac_cv_func_socket=yes
14698 else
14699   echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702 ac_cv_func_socket=no
14703 fi
14704 rm -f conftest.err conftest.$ac_objext \
14705       conftest$ac_exeext conftest.$ac_ext
14706 fi
14707 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14708 echo "${ECHO_T}$ac_cv_func_socket" >&6
14709 if test $ac_cv_func_socket = yes; then
14710   :
14711 else
14712
14713
14714 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14715 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14716 if test "${ac_cv_lib_socket_main+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   ac_check_lib_save_LIBS=$LIBS
14720 LIBS="-lsocket  $LIBS"
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727
14728
14729 int
14730 main ()
14731 {
14732 main ();
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739   (eval $ac_link) 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -z "$ac_c_werror_flag"
14747                          || test ! -s conftest.err'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; } &&
14753          { ac_try='test -s conftest$ac_exeext'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; }; then
14759   ac_cv_lib_socket_main=yes
14760 else
14761   echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 ac_cv_lib_socket_main=no
14765 fi
14766 rm -f conftest.err conftest.$ac_objext \
14767       conftest$ac_exeext conftest.$ac_ext
14768 LIBS=$ac_check_lib_save_LIBS
14769 fi
14770 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14771 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14772 if test $ac_cv_lib_socket_main = yes; then
14773   cat >>confdefs.h <<_ACEOF
14774 #define HAVE_LIBSOCKET 1
14775 _ACEOF
14776
14777   LIBS="-lsocket $LIBS"
14778
14779 fi
14780
14781
14782 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14783 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14784 if test "${ac_cv_lib_net_main+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   ac_check_lib_save_LIBS=$LIBS
14788 LIBS="-lnet  $LIBS"
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h.  */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h.  */
14795
14796
14797 int
14798 main ()
14799 {
14800 main ();
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807   (eval $ac_link) 2>conftest.er1
14808   ac_status=$?
14809   grep -v '^ *+' conftest.er1 >conftest.err
14810   rm -f conftest.er1
14811   cat conftest.err >&5
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); } &&
14814          { ac_try='test -z "$ac_c_werror_flag"
14815                          || test ! -s conftest.err'
14816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817   (eval $ac_try) 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); }; } &&
14821          { ac_try='test -s conftest$ac_exeext'
14822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823   (eval $ac_try) 2>&5
14824   ac_status=$?
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); }; }; then
14827   ac_cv_lib_net_main=yes
14828 else
14829   echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14831
14832 ac_cv_lib_net_main=no
14833 fi
14834 rm -f conftest.err conftest.$ac_objext \
14835       conftest$ac_exeext conftest.$ac_ext
14836 LIBS=$ac_check_lib_save_LIBS
14837 fi
14838 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14839 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14840 if test $ac_cv_lib_net_main = yes; then
14841   cat >>confdefs.h <<_ACEOF
14842 #define HAVE_LIBNET 1
14843 _ACEOF
14844
14845   LIBS="-lnet $LIBS"
14846
14847 fi
14848
14849
14850 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14851 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14852 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-lnsl_s  $LIBS"
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863
14864
14865 int
14866 main ()
14867 {
14868 main ();
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext conftest$ac_exeext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14875   (eval $ac_link) 2>conftest.er1
14876   ac_status=$?
14877   grep -v '^ *+' conftest.er1 >conftest.err
14878   rm -f conftest.er1
14879   cat conftest.err >&5
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } &&
14882          { ac_try='test -z "$ac_c_werror_flag"
14883                          || test ! -s conftest.err'
14884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885   (eval $ac_try) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; } &&
14889          { ac_try='test -s conftest$ac_exeext'
14890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891   (eval $ac_try) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; }; then
14895   ac_cv_lib_nsl_s_main=yes
14896 else
14897   echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 ac_cv_lib_nsl_s_main=no
14901 fi
14902 rm -f conftest.err conftest.$ac_objext \
14903       conftest$ac_exeext conftest.$ac_ext
14904 LIBS=$ac_check_lib_save_LIBS
14905 fi
14906 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14907 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14908 if test $ac_cv_lib_nsl_s_main = yes; then
14909   cat >>confdefs.h <<_ACEOF
14910 #define HAVE_LIBNSL_S 1
14911 _ACEOF
14912
14913   LIBS="-lnsl_s $LIBS"
14914
14915 fi
14916
14917
14918 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14919 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14920 if test "${ac_cv_lib_nsl_main+set}" = set; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   ac_check_lib_save_LIBS=$LIBS
14924 LIBS="-lnsl  $LIBS"
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h.  */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h.  */
14931
14932
14933 int
14934 main ()
14935 {
14936 main ();
14937   ;
14938   return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14943   (eval $ac_link) 2>conftest.er1
14944   ac_status=$?
14945   grep -v '^ *+' conftest.er1 >conftest.err
14946   rm -f conftest.er1
14947   cat conftest.err >&5
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -z "$ac_c_werror_flag"
14951                          || test ! -s conftest.err'
14952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953   (eval $ac_try) 2>&5
14954   ac_status=$?
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); }; } &&
14957          { ac_try='test -s conftest$ac_exeext'
14958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959   (eval $ac_try) 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; }; then
14963   ac_cv_lib_nsl_main=yes
14964 else
14965   echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ac_cv_lib_nsl_main=no
14969 fi
14970 rm -f conftest.err conftest.$ac_objext \
14971       conftest$ac_exeext conftest.$ac_ext
14972 LIBS=$ac_check_lib_save_LIBS
14973 fi
14974 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14975 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14976 if test $ac_cv_lib_nsl_main = yes; then
14977   cat >>confdefs.h <<_ACEOF
14978 #define HAVE_LIBNSL 1
14979 _ACEOF
14980
14981   LIBS="-lnsl $LIBS"
14982
14983 fi
14984
14985
14986 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14987 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14988 if test "${ac_cv_lib_inet_socket+set}" = set; then
14989   echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991   ac_check_lib_save_LIBS=$LIBS
14992 LIBS="-linet  $LIBS"
14993 cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h.  */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h.  */
14999
15000 /* Override any gcc2 internal prototype to avoid an error.  */
15001 #ifdef __cplusplus
15002 extern "C"
15003 #endif
15004 /* We use char because int might match the return type of a gcc2
15005    builtin and then its argument prototype would still apply.  */
15006 char socket ();
15007 int
15008 main ()
15009 {
15010 socket ();
15011   ;
15012   return 0;
15013 }
15014 _ACEOF
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017   (eval $ac_link) 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -z "$ac_c_werror_flag"
15025                          || test ! -s conftest.err'
15026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027   (eval $ac_try) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; } &&
15031          { ac_try='test -s conftest$ac_exeext'
15032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033   (eval $ac_try) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }; then
15037   ac_cv_lib_inet_socket=yes
15038 else
15039   echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042 ac_cv_lib_inet_socket=no
15043 fi
15044 rm -f conftest.err conftest.$ac_objext \
15045       conftest$ac_exeext conftest.$ac_ext
15046 LIBS=$ac_check_lib_save_LIBS
15047 fi
15048 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15049 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15050 if test $ac_cv_lib_inet_socket = yes; then
15051   cat >>confdefs.h <<_ACEOF
15052 #define HAVE_LIBINET 1
15053 _ACEOF
15054
15055   LIBS="-linet $LIBS"
15056
15057 fi
15058
15059
15060 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15061 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15062 if test "${ac_cv_lib_gen_main+set}" = set; then
15063   echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065   ac_check_lib_save_LIBS=$LIBS
15066 LIBS="-lgen  $LIBS"
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073
15074
15075 int
15076 main ()
15077 {
15078 main ();
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15085   (eval $ac_link) 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } &&
15092          { ac_try='test -z "$ac_c_werror_flag"
15093                          || test ! -s conftest.err'
15094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095   (eval $ac_try) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); }; } &&
15099          { ac_try='test -s conftest$ac_exeext'
15100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101   (eval $ac_try) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105   ac_cv_lib_gen_main=yes
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_cv_lib_gen_main=no
15111 fi
15112 rm -f conftest.err conftest.$ac_objext \
15113       conftest$ac_exeext conftest.$ac_ext
15114 LIBS=$ac_check_lib_save_LIBS
15115 fi
15116 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15117 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15118 if test $ac_cv_lib_gen_main = yes; then
15119   cat >>confdefs.h <<_ACEOF
15120 #define HAVE_LIBGEN 1
15121 _ACEOF
15122
15123   LIBS="-lgen $LIBS"
15124
15125 fi
15126
15127
15128 fi
15129
15130
15131 echo "$as_me:$LINENO: checking for select" >&5
15132 echo $ECHO_N "checking for select... $ECHO_C" >&6
15133 if test "${ac_cv_func_select+set}" = set; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136   cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142 /* Define select to an innocuous variant, in case <limits.h> declares select.
15143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15144 #define select innocuous_select
15145
15146 /* System header to define __stub macros and hopefully few prototypes,
15147     which can conflict with char select (); below.
15148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15149     <limits.h> exists even on freestanding compilers.  */
15150
15151 #ifdef __STDC__
15152 # include <limits.h>
15153 #else
15154 # include <assert.h>
15155 #endif
15156
15157 #undef select
15158
15159 /* Override any gcc2 internal prototype to avoid an error.  */
15160 #ifdef __cplusplus
15161 extern "C"
15162 {
15163 #endif
15164 /* We use char because int might match the return type of a gcc2
15165    builtin and then its argument prototype would still apply.  */
15166 char select ();
15167 /* The GNU C library defines this for functions which it implements
15168     to always fail with ENOSYS.  Some functions are actually named
15169     something starting with __ and the normal name is an alias.  */
15170 #if defined (__stub_select) || defined (__stub___select)
15171 choke me
15172 #else
15173 char (*f) () = select;
15174 #endif
15175 #ifdef __cplusplus
15176 }
15177 #endif
15178
15179 int
15180 main ()
15181 {
15182 return f != select;
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15189   (eval $ac_link) 2>conftest.er1
15190   ac_status=$?
15191   grep -v '^ *+' conftest.er1 >conftest.err
15192   rm -f conftest.er1
15193   cat conftest.err >&5
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); } &&
15196          { ac_try='test -z "$ac_c_werror_flag"
15197                          || test ! -s conftest.err'
15198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199   (eval $ac_try) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); }; } &&
15203          { ac_try='test -s conftest$ac_exeext'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; }; then
15209   ac_cv_func_select=yes
15210 else
15211   echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15213
15214 ac_cv_func_select=no
15215 fi
15216 rm -f conftest.err conftest.$ac_objext \
15217       conftest$ac_exeext conftest.$ac_ext
15218 fi
15219 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15220 echo "${ECHO_T}$ac_cv_func_select" >&6
15221 if test $ac_cv_func_select = yes; then
15222   :
15223 else
15224   { { echo "$as_me:$LINENO: error: select() required." >&5
15225 echo "$as_me: error: select() required." >&2;}
15226    { (exit 1); exit 1; }; }
15227 fi
15228
15229
15230 if test "${ac_cv_header_winsock_h}" != yes; then
15231
15232
15233 for ac_header in sys/select.h sys/socket.h
15234 do
15235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15237   echo "$as_me:$LINENO: checking for $ac_header" >&5
15238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 fi
15242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15244 else
15245   # Is the header compilable?
15246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h.  */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h.  */
15254 $ac_includes_default
15255 #include <$ac_header>
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259   (eval $ac_compile) 2>conftest.er1
15260   ac_status=$?
15261   grep -v '^ *+' conftest.er1 >conftest.err
15262   rm -f conftest.er1
15263   cat conftest.err >&5
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } &&
15266          { ac_try='test -z "$ac_c_werror_flag"
15267                          || test ! -s conftest.err'
15268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269   (eval $ac_try) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; } &&
15273          { ac_try='test -s conftest.$ac_objext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   ac_header_compiler=yes
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 ac_header_compiler=no
15285 fi
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15288 echo "${ECHO_T}$ac_header_compiler" >&6
15289
15290 # Is the header present?
15291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299 #include <$ac_header>
15300 _ACEOF
15301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } >/dev/null; then
15309   if test -s conftest.err; then
15310     ac_cpp_err=$ac_c_preproc_warn_flag
15311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15312   else
15313     ac_cpp_err=
15314   fi
15315 else
15316   ac_cpp_err=yes
15317 fi
15318 if test -z "$ac_cpp_err"; then
15319   ac_header_preproc=yes
15320 else
15321   echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324   ac_header_preproc=no
15325 fi
15326 rm -f conftest.err conftest.$ac_ext
15327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15328 echo "${ECHO_T}$ac_header_preproc" >&6
15329
15330 # So?  What about this header?
15331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15332   yes:no: )
15333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15337     ac_header_preproc=yes
15338     ;;
15339   no:yes:* )
15340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15352     (
15353       cat <<\_ASBOX
15354 ## --------------------------------------------- ##
15355 ## Report this to <http://www.openldap.org/its/> ##
15356 ## --------------------------------------------- ##
15357 _ASBOX
15358     ) |
15359       sed "s/^/$as_me: WARNING:     /" >&2
15360     ;;
15361 esac
15362 echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   eval "$as_ac_Header=\$ac_header_preproc"
15368 fi
15369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15371
15372 fi
15373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15374   cat >>confdefs.h <<_ACEOF
15375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15376 _ACEOF
15377
15378 fi
15379
15380 done
15381
15382 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15383 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15384 if test "${ac_cv_func_select_args+set}" = set; then
15385   echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15388  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15389   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15390    cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396 $ac_includes_default
15397 #if HAVE_SYS_SELECT_H
15398 # include <sys/select.h>
15399 #endif
15400 #if HAVE_SYS_SOCKET_H
15401 # include <sys/socket.h>
15402 #endif
15403
15404 int
15405 main ()
15406 {
15407 extern int select ($ac_arg1,
15408                                             $ac_arg234, $ac_arg234, $ac_arg234,
15409                                             $ac_arg5);
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416   (eval $ac_compile) 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag"
15424                          || test ! -s conftest.err'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15437 else
15438   echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 fi
15442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15443   done
15444  done
15445 done
15446 # Provide a safe default value.
15447 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15448
15449 fi
15450 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15451 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15452 ac_save_IFS=$IFS; IFS=','
15453 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15454 IFS=$ac_save_IFS
15455 shift
15456
15457 cat >>confdefs.h <<_ACEOF
15458 #define SELECT_TYPE_ARG1 $1
15459 _ACEOF
15460
15461
15462 cat >>confdefs.h <<_ACEOF
15463 #define SELECT_TYPE_ARG234 ($2)
15464 _ACEOF
15465
15466
15467 cat >>confdefs.h <<_ACEOF
15468 #define SELECT_TYPE_ARG5 ($3)
15469 _ACEOF
15470
15471 rm -f conftest*
15472
15473 fi
15474
15475
15476
15477 for ac_func in poll
15478 do
15479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15480 echo "$as_me:$LINENO: checking for $ac_func" >&5
15481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15482 if eval "test \"\${$as_ac_var+set}\" = set"; then
15483   echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485   cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h.  */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h.  */
15491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15493 #define $ac_func innocuous_$ac_func
15494
15495 /* System header to define __stub macros and hopefully few prototypes,
15496     which can conflict with char $ac_func (); below.
15497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15498     <limits.h> exists even on freestanding compilers.  */
15499
15500 #ifdef __STDC__
15501 # include <limits.h>
15502 #else
15503 # include <assert.h>
15504 #endif
15505
15506 #undef $ac_func
15507
15508 /* Override any gcc2 internal prototype to avoid an error.  */
15509 #ifdef __cplusplus
15510 extern "C"
15511 {
15512 #endif
15513 /* We use char because int might match the return type of a gcc2
15514    builtin and then its argument prototype would still apply.  */
15515 char $ac_func ();
15516 /* The GNU C library defines this for functions which it implements
15517     to always fail with ENOSYS.  Some functions are actually named
15518     something starting with __ and the normal name is an alias.  */
15519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15520 choke me
15521 #else
15522 char (*f) () = $ac_func;
15523 #endif
15524 #ifdef __cplusplus
15525 }
15526 #endif
15527
15528 int
15529 main ()
15530 {
15531 return f != $ac_func;
15532   ;
15533   return 0;
15534 }
15535 _ACEOF
15536 rm -f conftest.$ac_objext conftest$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538   (eval $ac_link) 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } &&
15545          { ac_try='test -z "$ac_c_werror_flag"
15546                          || test ! -s conftest.err'
15547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548   (eval $ac_try) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); }; } &&
15552          { ac_try='test -s conftest$ac_exeext'
15553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554   (eval $ac_try) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; }; then
15558   eval "$as_ac_var=yes"
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563 eval "$as_ac_var=no"
15564 fi
15565 rm -f conftest.err conftest.$ac_objext \
15566       conftest$ac_exeext conftest.$ac_ext
15567 fi
15568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15570 if test `eval echo '${'$as_ac_var'}'` = yes; then
15571   cat >>confdefs.h <<_ACEOF
15572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15573 _ACEOF
15574
15575 fi
15576 done
15577
15578 if test $ac_cv_func_poll = yes; then
15579
15580
15581 for ac_header in poll.h sys/poll.h
15582 do
15583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585   echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15588   echo $ECHO_N "(cached) $ECHO_C" >&6
15589 fi
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15592 else
15593   # Is the header compilable?
15594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h.  */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h.  */
15602 $ac_includes_default
15603 #include <$ac_header>
15604 _ACEOF
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607   (eval $ac_compile) 2>conftest.er1
15608   ac_status=$?
15609   grep -v '^ *+' conftest.er1 >conftest.err
15610   rm -f conftest.er1
15611   cat conftest.err >&5
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); } &&
15614          { ac_try='test -z "$ac_c_werror_flag"
15615                          || test ! -s conftest.err'
15616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617   (eval $ac_try) 2>&5
15618   ac_status=$?
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); }; } &&
15621          { ac_try='test -s conftest.$ac_objext'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; }; then
15627   ac_header_compiler=yes
15628 else
15629   echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632 ac_header_compiler=no
15633 fi
15634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15636 echo "${ECHO_T}$ac_header_compiler" >&6
15637
15638 # Is the header present?
15639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15641 cat >conftest.$ac_ext <<_ACEOF
15642 /* confdefs.h.  */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h.  */
15647 #include <$ac_header>
15648 _ACEOF
15649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15651   ac_status=$?
15652   grep -v '^ *+' conftest.er1 >conftest.err
15653   rm -f conftest.er1
15654   cat conftest.err >&5
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); } >/dev/null; then
15657   if test -s conftest.err; then
15658     ac_cpp_err=$ac_c_preproc_warn_flag
15659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15660   else
15661     ac_cpp_err=
15662   fi
15663 else
15664   ac_cpp_err=yes
15665 fi
15666 if test -z "$ac_cpp_err"; then
15667   ac_header_preproc=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672   ac_header_preproc=no
15673 fi
15674 rm -f conftest.err conftest.$ac_ext
15675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6
15677
15678 # So?  What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680   yes:no: )
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685     ac_header_preproc=yes
15686     ;;
15687   no:yes:* )
15688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700     (
15701       cat <<\_ASBOX
15702 ## --------------------------------------------- ##
15703 ## Report this to <http://www.openldap.org/its/> ##
15704 ## --------------------------------------------- ##
15705 _ASBOX
15706     ) |
15707       sed "s/^/$as_me: WARNING:     /" >&2
15708     ;;
15709 esac
15710 echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15713   echo $ECHO_N "(cached) $ECHO_C" >&6
15714 else
15715   eval "$as_ac_Header=\$ac_header_preproc"
15716 fi
15717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15719
15720 fi
15721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15722   cat >>confdefs.h <<_ACEOF
15723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15724 _ACEOF
15725
15726 fi
15727
15728 done
15729
15730 fi
15731
15732
15733 for ac_header in sys/epoll.h
15734 do
15735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737   echo "$as_me:$LINENO: checking for $ac_header" >&5
15738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 fi
15742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15744 else
15745   # Is the header compilable?
15746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h.  */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h.  */
15754 $ac_includes_default
15755 #include <$ac_header>
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759   (eval $ac_compile) 2>conftest.er1
15760   ac_status=$?
15761   grep -v '^ *+' conftest.er1 >conftest.err
15762   rm -f conftest.er1
15763   cat conftest.err >&5
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); } &&
15766          { ac_try='test -z "$ac_c_werror_flag"
15767                          || test ! -s conftest.err'
15768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769   (eval $ac_try) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); }; } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779   ac_header_compiler=yes
15780 else
15781   echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784 ac_header_compiler=no
15785 fi
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 echo "${ECHO_T}$ac_header_compiler" >&6
15789
15790 # Is the header present?
15791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h.  */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h.  */
15799 #include <$ac_header>
15800 _ACEOF
15801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } >/dev/null; then
15809   if test -s conftest.err; then
15810     ac_cpp_err=$ac_c_preproc_warn_flag
15811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15812   else
15813     ac_cpp_err=
15814   fi
15815 else
15816   ac_cpp_err=yes
15817 fi
15818 if test -z "$ac_cpp_err"; then
15819   ac_header_preproc=yes
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824   ac_header_preproc=no
15825 fi
15826 rm -f conftest.err conftest.$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15828 echo "${ECHO_T}$ac_header_preproc" >&6
15829
15830 # So?  What about this header?
15831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15832   yes:no: )
15833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15837     ac_header_preproc=yes
15838     ;;
15839   no:yes:* )
15840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15852     (
15853       cat <<\_ASBOX
15854 ## --------------------------------------------- ##
15855 ## Report this to <http://www.openldap.org/its/> ##
15856 ## --------------------------------------------- ##
15857 _ASBOX
15858     ) |
15859       sed "s/^/$as_me: WARNING:     /" >&2
15860     ;;
15861 esac
15862 echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15865   echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867   eval "$as_ac_Header=\$ac_header_preproc"
15868 fi
15869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15871
15872 fi
15873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15874   cat >>confdefs.h <<_ACEOF
15875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15876 _ACEOF
15877
15878 fi
15879
15880 done
15881
15882 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15883         echo "$as_me:$LINENO: checking for epoll system call" >&5
15884 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15885         if test "$cross_compiling" = yes; then
15886   echo "$as_me:$LINENO: result: no" >&5
15887 echo "${ECHO_T}no" >&6
15888 else
15889   cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 int main(int argc, char **argv)
15896 {
15897         int epfd = epoll_create(256);
15898         exit (epfd == -1 ? 1 : 0);
15899 }
15900 _ACEOF
15901 rm -f conftest$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903   (eval $ac_link) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908   (eval $ac_try) 2>&5
15909   ac_status=$?
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); }; }; then
15912   echo "$as_me:$LINENO: result: yes" >&5
15913 echo "${ECHO_T}yes" >&6
15914
15915 cat >>confdefs.h <<\_ACEOF
15916 #define HAVE_EPOLL 1
15917 _ACEOF
15918
15919 else
15920   echo "$as_me: program exited with status $ac_status" >&5
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ( exit $ac_status )
15925 echo "$as_me:$LINENO: result: no" >&5
15926 echo "${ECHO_T}no" >&6
15927 fi
15928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15929 fi
15930 fi
15931
15932
15933 for ac_header in sys/devpoll.h
15934 do
15935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15937   echo "$as_me:$LINENO: checking for $ac_header" >&5
15938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 fi
15942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15944 else
15945   # Is the header compilable?
15946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h.  */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h.  */
15954 $ac_includes_default
15955 #include <$ac_header>
15956 _ACEOF
15957 rm -f conftest.$ac_objext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959   (eval $ac_compile) 2>conftest.er1
15960   ac_status=$?
15961   grep -v '^ *+' conftest.er1 >conftest.err
15962   rm -f conftest.er1
15963   cat conftest.err >&5
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); } &&
15966          { ac_try='test -z "$ac_c_werror_flag"
15967                          || test ! -s conftest.err'
15968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969   (eval $ac_try) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); }; } &&
15973          { ac_try='test -s conftest.$ac_objext'
15974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975   (eval $ac_try) 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; }; then
15979   ac_header_compiler=yes
15980 else
15981   echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15983
15984 ac_header_compiler=no
15985 fi
15986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15988 echo "${ECHO_T}$ac_header_compiler" >&6
15989
15990 # Is the header present?
15991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h.  */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h.  */
15999 #include <$ac_header>
16000 _ACEOF
16001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } >/dev/null; then
16009   if test -s conftest.err; then
16010     ac_cpp_err=$ac_c_preproc_warn_flag
16011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16012   else
16013     ac_cpp_err=
16014   fi
16015 else
16016   ac_cpp_err=yes
16017 fi
16018 if test -z "$ac_cpp_err"; then
16019   ac_header_preproc=yes
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024   ac_header_preproc=no
16025 fi
16026 rm -f conftest.err conftest.$ac_ext
16027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16028 echo "${ECHO_T}$ac_header_preproc" >&6
16029
16030 # So?  What about this header?
16031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16032   yes:no: )
16033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16037     ac_header_preproc=yes
16038     ;;
16039   no:yes:* )
16040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16052     (
16053       cat <<\_ASBOX
16054 ## --------------------------------------------- ##
16055 ## Report this to <http://www.openldap.org/its/> ##
16056 ## --------------------------------------------- ##
16057 _ASBOX
16058     ) |
16059       sed "s/^/$as_me: WARNING:     /" >&2
16060     ;;
16061 esac
16062 echo "$as_me:$LINENO: checking for $ac_header" >&5
16063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16065   echo $ECHO_N "(cached) $ECHO_C" >&6
16066 else
16067   eval "$as_ac_Header=\$ac_header_preproc"
16068 fi
16069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16071
16072 fi
16073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16074   cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16076 _ACEOF
16077
16078 fi
16079
16080 done
16081
16082 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16083                 -a "${ac_cv_header_poll_h}" = yes ; \
16084 then
16085         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16086 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16087         if test "$cross_compiling" = yes; then
16088   echo "$as_me:$LINENO: result: no" >&5
16089 echo "${ECHO_T}no" >&6
16090 else
16091   cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h.  */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h.  */
16097 int main(int argc, char **argv)
16098 {
16099         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16100         exit (devpollfd == -1 ? 1 : 0);
16101 }
16102 _ACEOF
16103 rm -f conftest$ac_exeext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16105   (eval $ac_link) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110   (eval $ac_try) 2>&5
16111   ac_status=$?
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); }; }; then
16114   echo "$as_me:$LINENO: result: yes" >&5
16115 echo "${ECHO_T}yes" >&6
16116
16117 cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_DEVPOLL 1
16119 _ACEOF
16120
16121 else
16122   echo "$as_me: program exited with status $ac_status" >&5
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 ( exit $ac_status )
16127 echo "$as_me:$LINENO: result: no" >&5
16128 echo "${ECHO_T}no" >&6
16129 fi
16130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16131 fi
16132 fi
16133
16134 # strerror checks
16135 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16136 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16137 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16138   echo $ECHO_N "(cached) $ECHO_C" >&6
16139 else
16140
16141         cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h.  */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h.  */
16147
16148 #include <stdio.h>
16149 #include <sys/types.h>
16150 #include <errno.h>
16151 #ifdef _WIN32
16152 #include <stdlib.h>
16153 #endif
16154 int
16155 main ()
16156 {
16157 char *c = (char *) *sys_errlist
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164   (eval $ac_compile) 2>conftest.er1
16165   ac_status=$?
16166   grep -v '^ *+' conftest.er1 >conftest.err
16167   rm -f conftest.er1
16168   cat conftest.err >&5
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } &&
16171          { ac_try='test -z "$ac_c_werror_flag"
16172                          || test ! -s conftest.err'
16173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174   (eval $ac_try) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; } &&
16178          { ac_try='test -s conftest.$ac_objext'
16179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180   (eval $ac_try) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; }; then
16184   ol_cv_dcl_sys_errlist=yes
16185         ol_cv_have_sys_errlist=yes
16186 else
16187   echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 ol_cv_dcl_sys_errlist=no
16191 fi
16192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16193 fi
16194 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16195 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16196 #
16197 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16198 if test $ol_cv_dcl_sys_errlist = no ; then
16199
16200 cat >>confdefs.h <<\_ACEOF
16201 #define DECL_SYS_ERRLIST 1
16202 _ACEOF
16203
16204
16205         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16206 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16207 if test "${ol_cv_have_sys_errlist+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210
16211                 cat >conftest.$ac_ext <<_ACEOF
16212 /* confdefs.h.  */
16213 _ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h.  */
16217 #include <errno.h>
16218 int
16219 main ()
16220 {
16221 char *c = (char *) *sys_errlist
16222   ;
16223   return 0;
16224 }
16225 _ACEOF
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228   (eval $ac_link) 2>conftest.er1
16229   ac_status=$?
16230   grep -v '^ *+' conftest.er1 >conftest.err
16231   rm -f conftest.er1
16232   cat conftest.err >&5
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); } &&
16235          { ac_try='test -z "$ac_c_werror_flag"
16236                          || test ! -s conftest.err'
16237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238   (eval $ac_try) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; } &&
16242          { ac_try='test -s conftest$ac_exeext'
16243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244   (eval $ac_try) 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   ol_cv_have_sys_errlist=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253 ol_cv_have_sys_errlist=no
16254 fi
16255 rm -f conftest.err conftest.$ac_objext \
16256       conftest$ac_exeext conftest.$ac_ext
16257 fi
16258 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16259 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16260 fi
16261 if test $ol_cv_have_sys_errlist = yes ; then
16262
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE_SYS_ERRLIST 1
16265 _ACEOF
16266
16267 fi
16268
16269
16270 for ac_func in strerror strerror_r
16271 do
16272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16273 echo "$as_me:$LINENO: checking for $ac_func" >&5
16274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16275 if eval "test \"\${$as_ac_var+set}\" = set"; then
16276   echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278   cat >conftest.$ac_ext <<_ACEOF
16279 /* confdefs.h.  */
16280 _ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h.  */
16284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16286 #define $ac_func innocuous_$ac_func
16287
16288 /* System header to define __stub macros and hopefully few prototypes,
16289     which can conflict with char $ac_func (); below.
16290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16291     <limits.h> exists even on freestanding compilers.  */
16292
16293 #ifdef __STDC__
16294 # include <limits.h>
16295 #else
16296 # include <assert.h>
16297 #endif
16298
16299 #undef $ac_func
16300
16301 /* Override any gcc2 internal prototype to avoid an error.  */
16302 #ifdef __cplusplus
16303 extern "C"
16304 {
16305 #endif
16306 /* We use char because int might match the return type of a gcc2
16307    builtin and then its argument prototype would still apply.  */
16308 char $ac_func ();
16309 /* The GNU C library defines this for functions which it implements
16310     to always fail with ENOSYS.  Some functions are actually named
16311     something starting with __ and the normal name is an alias.  */
16312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16313 choke me
16314 #else
16315 char (*f) () = $ac_func;
16316 #endif
16317 #ifdef __cplusplus
16318 }
16319 #endif
16320
16321 int
16322 main ()
16323 {
16324 return f != $ac_func;
16325   ;
16326   return 0;
16327 }
16328 _ACEOF
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331   (eval $ac_link) 2>conftest.er1
16332   ac_status=$?
16333   grep -v '^ *+' conftest.er1 >conftest.err
16334   rm -f conftest.er1
16335   cat conftest.err >&5
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } &&
16338          { ac_try='test -z "$ac_c_werror_flag"
16339                          || test ! -s conftest.err'
16340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341   (eval $ac_try) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; } &&
16345          { ac_try='test -s conftest$ac_exeext'
16346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347   (eval $ac_try) 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; }; then
16351   eval "$as_ac_var=yes"
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 eval "$as_ac_var=no"
16357 fi
16358 rm -f conftest.err conftest.$ac_objext \
16359       conftest$ac_exeext conftest.$ac_ext
16360 fi
16361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16363 if test `eval echo '${'$as_ac_var'}'` = yes; then
16364   cat >>confdefs.h <<_ACEOF
16365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16366 _ACEOF
16367
16368 fi
16369 done
16370
16371 ol_cv_func_strerror_r=no
16372 if test "${ac_cv_func_strerror_r}" = yes ; then
16373         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16374 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16375 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16376   echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378
16379         cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h.  */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h.  */
16385 #include <string.h>
16386 _ACEOF
16387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16388   $EGREP "strerror_r" >/dev/null 2>&1; then
16389   ol_decl_strerror_r=yes
16390 else
16391   ol_decl_strerror_r=no
16392 fi
16393 rm -f conftest*
16394
16395         if test $ol_decl_strerror_r = yes ; then
16396                 cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402 #include <string.h>
16403 int
16404 main ()
16405 {
16406    /* from autoconf 2.59 */
16407                                 char buf[100];
16408                                 char x = *strerror_r (0, buf, sizeof buf);
16409                                 char *p = strerror_r (0, buf, sizeof buf);
16410
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16417   (eval $ac_compile) 2>conftest.er1
16418   ac_status=$?
16419   grep -v '^ *+' conftest.er1 >conftest.err
16420   rm -f conftest.er1
16421   cat conftest.err >&5
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); } &&
16424          { ac_try='test -z "$ac_c_werror_flag"
16425                          || test ! -s conftest.err'
16426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427   (eval $ac_try) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; } &&
16431          { ac_try='test -s conftest.$ac_objext'
16432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433   (eval $ac_try) 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; }; then
16437   ol_cv_nonposix_strerror_r=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ol_cv_nonposix_strerror_r=no
16443 fi
16444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16445         else
16446                 if test "$cross_compiling" = yes; then
16447   ol_cv_nonposix_strerror=no
16448 else
16449   cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455
16456                         main() {
16457                                 char buf[100];
16458                                 buf[0] = 0;
16459                                 strerror_r( 1, buf, sizeof buf );
16460                                 exit( buf[0] == 0 );
16461                         }
16462
16463 _ACEOF
16464 rm -f conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466   (eval $ac_link) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471   (eval $ac_try) 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); }; }; then
16475   ol_cv_nonposix_strerror_r=yes
16476 else
16477   echo "$as_me: program exited with status $ac_status" >&5
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 ( exit $ac_status )
16482 ol_cv_nonposix_strerror=no
16483 fi
16484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485 fi
16486         fi
16487
16488 fi
16489 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16490 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16491 if test $ol_cv_nonposix_strerror_r = yes ; then
16492
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_NONPOSIX_STRERROR_R 1
16495 _ACEOF
16496
16497 fi
16498
16499 elif test "${ac_cv_func_strerror}" = no ; then
16500         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16501 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16502 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505
16506         cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h.  */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h.  */
16512
16513 #include <stdio.h>
16514 #include <sys/types.h>
16515 #include <errno.h>
16516 #ifdef _WIN32
16517 #include <stdlib.h>
16518 #endif
16519 int
16520 main ()
16521 {
16522 char *c = (char *) *sys_errlist
16523   ;
16524   return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529   (eval $ac_compile) 2>conftest.er1
16530   ac_status=$?
16531   grep -v '^ *+' conftest.er1 >conftest.err
16532   rm -f conftest.er1
16533   cat conftest.err >&5
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); } &&
16536          { ac_try='test -z "$ac_c_werror_flag"
16537                          || test ! -s conftest.err'
16538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539   (eval $ac_try) 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; } &&
16543          { ac_try='test -s conftest.$ac_objext'
16544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545   (eval $ac_try) 2>&5
16546   ac_status=$?
16547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); }; }; then
16549   ol_cv_dcl_sys_errlist=yes
16550         ol_cv_have_sys_errlist=yes
16551 else
16552   echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16554
16555 ol_cv_dcl_sys_errlist=no
16556 fi
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16558 fi
16559 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16560 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16561 #
16562 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16563 if test $ol_cv_dcl_sys_errlist = no ; then
16564
16565 cat >>confdefs.h <<\_ACEOF
16566 #define DECL_SYS_ERRLIST 1
16567 _ACEOF
16568
16569
16570         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16571 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16572 if test "${ol_cv_have_sys_errlist+set}" = set; then
16573   echo $ECHO_N "(cached) $ECHO_C" >&6
16574 else
16575
16576                 cat >conftest.$ac_ext <<_ACEOF
16577 /* confdefs.h.  */
16578 _ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h.  */
16582 #include <errno.h>
16583 int
16584 main ()
16585 {
16586 char *c = (char *) *sys_errlist
16587   ;
16588   return 0;
16589 }
16590 _ACEOF
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593   (eval $ac_link) 2>conftest.er1
16594   ac_status=$?
16595   grep -v '^ *+' conftest.er1 >conftest.err
16596   rm -f conftest.er1
16597   cat conftest.err >&5
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); } &&
16600          { ac_try='test -z "$ac_c_werror_flag"
16601                          || test ! -s conftest.err'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest$ac_exeext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   ol_cv_have_sys_errlist=yes
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 ol_cv_have_sys_errlist=no
16619 fi
16620 rm -f conftest.err conftest.$ac_objext \
16621       conftest$ac_exeext conftest.$ac_ext
16622 fi
16623 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16624 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16625 fi
16626 if test $ol_cv_have_sys_errlist = yes ; then
16627
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_SYS_ERRLIST 1
16630 _ACEOF
16631
16632 fi
16633
16634 fi
16635
16636
16637
16638 for ac_header in regex.h
16639 do
16640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16641 echo "$as_me:$LINENO: checking for $ac_header" >&5
16642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646   cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h.  */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h.  */
16652 $ac_includes_default
16653 #ifdef HAVE_SYS_TYPES_H
16654 #include <sys/types.h>
16655 #endif
16656
16657
16658 #include <$ac_header>
16659 _ACEOF
16660 rm -f conftest.$ac_objext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16662   (eval $ac_compile) 2>conftest.er1
16663   ac_status=$?
16664   grep -v '^ *+' conftest.er1 >conftest.err
16665   rm -f conftest.er1
16666   cat conftest.err >&5
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); } &&
16669          { ac_try='test -z "$ac_c_werror_flag"
16670                          || test ! -s conftest.err'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; } &&
16676          { ac_try='test -s conftest.$ac_objext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   eval "$as_ac_Header=yes"
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687 eval "$as_ac_Header=no"
16688 fi
16689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16690 fi
16691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16694   cat >>confdefs.h <<_ACEOF
16695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16696 _ACEOF
16697
16698 fi
16699
16700 done
16701
16702
16703 if test "$ac_cv_header_regex_h" != yes ; then
16704         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16705 echo "$as_me: error: POSIX regex.h required." >&2;}
16706    { (exit 1); exit 1; }; }
16707 fi
16708 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16709 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16710 if test "${ac_cv_search_regfree+set}" = set; then
16711   echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713   ac_func_search_save_LIBS=$LIBS
16714 ac_cv_search_regfree=no
16715 cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h.  */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h.  */
16721
16722 /* Override any gcc2 internal prototype to avoid an error.  */
16723 #ifdef __cplusplus
16724 extern "C"
16725 #endif
16726 /* We use char because int might match the return type of a gcc2
16727    builtin and then its argument prototype would still apply.  */
16728 char regfree ();
16729 int
16730 main ()
16731 {
16732 regfree ();
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16739   (eval $ac_link) 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } &&
16746          { ac_try='test -z "$ac_c_werror_flag"
16747                          || test ! -s conftest.err'
16748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749   (eval $ac_try) 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); }; } &&
16753          { ac_try='test -s conftest$ac_exeext'
16754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755   (eval $ac_try) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; }; then
16759   ac_cv_search_regfree="none required"
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 fi
16765 rm -f conftest.err conftest.$ac_objext \
16766       conftest$ac_exeext conftest.$ac_ext
16767 if test "$ac_cv_search_regfree" = no; then
16768   for ac_lib in regex gnuregex; do
16769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16770     cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776
16777 /* Override any gcc2 internal prototype to avoid an error.  */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 /* We use char because int might match the return type of a gcc2
16782    builtin and then its argument prototype would still apply.  */
16783 char regfree ();
16784 int
16785 main ()
16786 {
16787 regfree ();
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794   (eval $ac_link) 2>conftest.er1
16795   ac_status=$?
16796   grep -v '^ *+' conftest.er1 >conftest.err
16797   rm -f conftest.er1
16798   cat conftest.err >&5
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); } &&
16801          { ac_try='test -z "$ac_c_werror_flag"
16802                          || test ! -s conftest.err'
16803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804   (eval $ac_try) 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; } &&
16808          { ac_try='test -s conftest$ac_exeext'
16809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810   (eval $ac_try) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; }; then
16814   ac_cv_search_regfree="-l$ac_lib"
16815 break
16816 else
16817   echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 fi
16821 rm -f conftest.err conftest.$ac_objext \
16822       conftest$ac_exeext conftest.$ac_ext
16823   done
16824 fi
16825 LIBS=$ac_func_search_save_LIBS
16826 fi
16827 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16828 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16829 if test "$ac_cv_search_regfree" != no; then
16830   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16831   :
16832 else
16833   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16834 echo "$as_me: error: POSIX regex required." >&2;}
16835    { (exit 1); exit 1; }; }
16836 fi
16837
16838
16839
16840 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16841 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16842 if test "${ol_cv_c_posix_regex+set}" = set; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845
16846         if test "$cross_compiling" = yes; then
16847   ol_cv_c_posix_regex=cross
16848 else
16849   cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855
16856 #include <sys/types.h>
16857 #include <regex.h>
16858 static char *pattern, *string;
16859 main()
16860 {
16861         int rc;
16862         regex_t re;
16863
16864         pattern = "^A";
16865
16866         if(regcomp(&re, pattern, 0)) {
16867                 return -1;
16868         }
16869
16870         string = "ALL MATCH";
16871
16872         rc = regexec(&re, string, 0, (void*)0, 0);
16873
16874         regfree(&re);
16875
16876         return rc;
16877 }
16878 _ACEOF
16879 rm -f conftest$ac_exeext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16881   (eval $ac_link) 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886   (eval $ac_try) 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890   ol_cv_c_posix_regex=yes
16891 else
16892   echo "$as_me: program exited with status $ac_status" >&5
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ( exit $ac_status )
16897 ol_cv_c_posix_regex=no
16898 fi
16899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16900 fi
16901 fi
16902 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16903 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16904
16905 if test "$ol_cv_c_posix_regex" = no ; then
16906         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16907 echo "$as_me: error: broken POSIX regex!" >&2;}
16908    { (exit 1); exit 1; }; }
16909 fi
16910
16911
16912 have_uuid=no
16913
16914 for ac_header in sys/uuid.h
16915 do
16916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16918   echo "$as_me:$LINENO: checking for $ac_header" >&5
16919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16921   echo $ECHO_N "(cached) $ECHO_C" >&6
16922 fi
16923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16925 else
16926   # Is the header compilable?
16927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h.  */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h.  */
16935 $ac_includes_default
16936 #include <$ac_header>
16937 _ACEOF
16938 rm -f conftest.$ac_objext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16940   (eval $ac_compile) 2>conftest.er1
16941   ac_status=$?
16942   grep -v '^ *+' conftest.er1 >conftest.err
16943   rm -f conftest.er1
16944   cat conftest.err >&5
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); } &&
16947          { ac_try='test -z "$ac_c_werror_flag"
16948                          || test ! -s conftest.err'
16949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950   (eval $ac_try) 2>&5
16951   ac_status=$?
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); }; } &&
16954          { ac_try='test -s conftest.$ac_objext'
16955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956   (eval $ac_try) 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }; }; then
16960   ac_header_compiler=yes
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965 ac_header_compiler=no
16966 fi
16967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16969 echo "${ECHO_T}$ac_header_compiler" >&6
16970
16971 # Is the header present?
16972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16974 cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h.  */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h.  */
16980 #include <$ac_header>
16981 _ACEOF
16982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16984   ac_status=$?
16985   grep -v '^ *+' conftest.er1 >conftest.err
16986   rm -f conftest.er1
16987   cat conftest.err >&5
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } >/dev/null; then
16990   if test -s conftest.err; then
16991     ac_cpp_err=$ac_c_preproc_warn_flag
16992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16993   else
16994     ac_cpp_err=
16995   fi
16996 else
16997   ac_cpp_err=yes
16998 fi
16999 if test -z "$ac_cpp_err"; then
17000   ac_header_preproc=yes
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005   ac_header_preproc=no
17006 fi
17007 rm -f conftest.err conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17009 echo "${ECHO_T}$ac_header_preproc" >&6
17010
17011 # So?  What about this header?
17012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17013   yes:no: )
17014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17018     ac_header_preproc=yes
17019     ;;
17020   no:yes:* )
17021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17033     (
17034       cat <<\_ASBOX
17035 ## --------------------------------------------- ##
17036 ## Report this to <http://www.openldap.org/its/> ##
17037 ## --------------------------------------------- ##
17038 _ASBOX
17039     ) |
17040       sed "s/^/$as_me: WARNING:     /" >&2
17041     ;;
17042 esac
17043 echo "$as_me:$LINENO: checking for $ac_header" >&5
17044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17046   echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048   eval "$as_ac_Header=\$ac_header_preproc"
17049 fi
17050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17052
17053 fi
17054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17055   cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17057 _ACEOF
17058
17059 fi
17060
17061 done
17062
17063 if test $ac_cv_header_sys_uuid_h = yes ; then
17064         save_LIBS="$LIBS"
17065         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17066 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17067 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   ac_func_search_save_LIBS=$LIBS
17071 ac_cv_search_uuid_to_str=no
17072 cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078
17079 /* Override any gcc2 internal prototype to avoid an error.  */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 /* We use char because int might match the return type of a gcc2
17084    builtin and then its argument prototype would still apply.  */
17085 char uuid_to_str ();
17086 int
17087 main ()
17088 {
17089 uuid_to_str ();
17090   ;
17091   return 0;
17092 }
17093 _ACEOF
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17096   (eval $ac_link) 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } &&
17103          { ac_try='test -z "$ac_c_werror_flag"
17104                          || test ! -s conftest.err'
17105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106   (eval $ac_try) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }; } &&
17110          { ac_try='test -s conftest$ac_exeext'
17111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112   (eval $ac_try) 2>&5
17113   ac_status=$?
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); }; }; then
17116   ac_cv_search_uuid_to_str="none required"
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 fi
17122 rm -f conftest.err conftest.$ac_objext \
17123       conftest$ac_exeext conftest.$ac_ext
17124 if test "$ac_cv_search_uuid_to_str" = no; then
17125   for ac_lib in uuid; do
17126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17127     cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h.  */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h.  */
17133
17134 /* Override any gcc2 internal prototype to avoid an error.  */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 /* We use char because int might match the return type of a gcc2
17139    builtin and then its argument prototype would still apply.  */
17140 char uuid_to_str ();
17141 int
17142 main ()
17143 {
17144 uuid_to_str ();
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151   (eval $ac_link) 2>conftest.er1
17152   ac_status=$?
17153   grep -v '^ *+' conftest.er1 >conftest.err
17154   rm -f conftest.er1
17155   cat conftest.err >&5
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } &&
17158          { ac_try='test -z "$ac_c_werror_flag"
17159                          || test ! -s conftest.err'
17160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161   (eval $ac_try) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; } &&
17165          { ac_try='test -s conftest$ac_exeext'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; }; then
17171   ac_cv_search_uuid_to_str="-l$ac_lib"
17172 break
17173 else
17174   echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 fi
17178 rm -f conftest.err conftest.$ac_objext \
17179       conftest$ac_exeext conftest.$ac_ext
17180   done
17181 fi
17182 LIBS=$ac_func_search_save_LIBS
17183 fi
17184 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17185 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17186 if test "$ac_cv_search_uuid_to_str" != no; then
17187   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17188   have_uuid=yes
17189 else
17190   :
17191 fi
17192
17193         LIBS="$save_LIBS"
17194
17195         if test have_uuid = yes ; then
17196
17197 cat >>confdefs.h <<\_ACEOF
17198 #define HAVE_UUID_TO_STR 1
17199 _ACEOF
17200
17201
17202                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17203                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17204         fi
17205 fi
17206
17207 if test $have_uuid = no ; then
17208
17209 for ac_header in uuid/uuid.h
17210 do
17211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17213   echo "$as_me:$LINENO: checking for $ac_header" >&5
17214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17216   echo $ECHO_N "(cached) $ECHO_C" >&6
17217 fi
17218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17220 else
17221   # Is the header compilable?
17222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17224 cat >conftest.$ac_ext <<_ACEOF
17225 /* confdefs.h.  */
17226 _ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h.  */
17230 $ac_includes_default
17231 #include <$ac_header>
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235   (eval $ac_compile) 2>conftest.er1
17236   ac_status=$?
17237   grep -v '^ *+' conftest.er1 >conftest.err
17238   rm -f conftest.er1
17239   cat conftest.err >&5
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); } &&
17242          { ac_try='test -z "$ac_c_werror_flag"
17243                          || test ! -s conftest.err'
17244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245   (eval $ac_try) 2>&5
17246   ac_status=$?
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); }; } &&
17249          { ac_try='test -s conftest.$ac_objext'
17250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251   (eval $ac_try) 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; }; then
17255   ac_header_compiler=yes
17256 else
17257   echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17259
17260 ac_header_compiler=no
17261 fi
17262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17264 echo "${ECHO_T}$ac_header_compiler" >&6
17265
17266 # Is the header present?
17267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275 #include <$ac_header>
17276 _ACEOF
17277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } >/dev/null; then
17285   if test -s conftest.err; then
17286     ac_cpp_err=$ac_c_preproc_warn_flag
17287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17288   else
17289     ac_cpp_err=
17290   fi
17291 else
17292   ac_cpp_err=yes
17293 fi
17294 if test -z "$ac_cpp_err"; then
17295   ac_header_preproc=yes
17296 else
17297   echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300   ac_header_preproc=no
17301 fi
17302 rm -f conftest.err conftest.$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17304 echo "${ECHO_T}$ac_header_preproc" >&6
17305
17306 # So?  What about this header?
17307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17308   yes:no: )
17309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17313     ac_header_preproc=yes
17314     ;;
17315   no:yes:* )
17316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17328     (
17329       cat <<\_ASBOX
17330 ## --------------------------------------------- ##
17331 ## Report this to <http://www.openldap.org/its/> ##
17332 ## --------------------------------------------- ##
17333 _ASBOX
17334     ) |
17335       sed "s/^/$as_me: WARNING:     /" >&2
17336     ;;
17337 esac
17338 echo "$as_me:$LINENO: checking for $ac_header" >&5
17339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   eval "$as_ac_Header=\$ac_header_preproc"
17344 fi
17345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17347
17348 fi
17349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17350   cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17352 _ACEOF
17353
17354 fi
17355
17356 done
17357
17358         if test $ac_cv_header_uuid_uuid_h = yes ; then
17359                 save_LIBS="$LIBS"
17360                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17361 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17362 if test "${ac_cv_search_uuid_generate+set}" = set; then
17363   echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365   ac_func_search_save_LIBS=$LIBS
17366 ac_cv_search_uuid_generate=no
17367 cat >conftest.$ac_ext <<_ACEOF
17368 /* confdefs.h.  */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h.  */
17373
17374 /* Override any gcc2 internal prototype to avoid an error.  */
17375 #ifdef __cplusplus
17376 extern "C"
17377 #endif
17378 /* We use char because int might match the return type of a gcc2
17379    builtin and then its argument prototype would still apply.  */
17380 char uuid_generate ();
17381 int
17382 main ()
17383 {
17384 uuid_generate ();
17385   ;
17386   return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391   (eval $ac_link) 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } &&
17398          { ac_try='test -z "$ac_c_werror_flag"
17399                          || test ! -s conftest.err'
17400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401   (eval $ac_try) 2>&5
17402   ac_status=$?
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); }; } &&
17405          { ac_try='test -s conftest$ac_exeext'
17406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407   (eval $ac_try) 2>&5
17408   ac_status=$?
17409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410   (exit $ac_status); }; }; then
17411   ac_cv_search_uuid_generate="none required"
17412 else
17413   echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 fi
17417 rm -f conftest.err conftest.$ac_objext \
17418       conftest$ac_exeext conftest.$ac_ext
17419 if test "$ac_cv_search_uuid_generate" = no; then
17420   for ac_lib in uuid; do
17421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17422     cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428
17429 /* Override any gcc2 internal prototype to avoid an error.  */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 /* We use char because int might match the return type of a gcc2
17434    builtin and then its argument prototype would still apply.  */
17435 char uuid_generate ();
17436 int
17437 main ()
17438 {
17439 uuid_generate ();
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446   (eval $ac_link) 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -z "$ac_c_werror_flag"
17454                          || test ! -s conftest.err'
17455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456   (eval $ac_try) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }; } &&
17460          { ac_try='test -s conftest$ac_exeext'
17461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462   (eval $ac_try) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); }; }; then
17466   ac_cv_search_uuid_generate="-l$ac_lib"
17467 break
17468 else
17469   echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 fi
17473 rm -f conftest.err conftest.$ac_objext \
17474       conftest$ac_exeext conftest.$ac_ext
17475   done
17476 fi
17477 LIBS=$ac_func_search_save_LIBS
17478 fi
17479 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17480 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17481 if test "$ac_cv_search_uuid_generate" != no; then
17482   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17483   have_uuid=yes
17484 else
17485   :
17486 fi
17487
17488                 LIBS="$save_LIBS"
17489
17490                 if test have_uuid = yes ; then
17491
17492 cat >>confdefs.h <<\_ACEOF
17493 #define HAVE_UUID_GENERATE 1
17494 _ACEOF
17495
17496
17497                         test "$ac_cv_search_uuid_generate" = "none required" || \
17498                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17499                 fi
17500         fi
17501 fi
17502
17503 if test $have_uuid = no ; then
17504         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17505 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17506         save_LIBS="$LIBS"
17507         LIBS="$LIBS -lrpcrt4"
17508         cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514
17515                 int __stdcall UuidCreate(void *);
17516                 int __stdcall UuidToStringA(void *,void **);
17517
17518 int
17519 main ()
17520 {
17521
17522                 UuidCreate(0);
17523                 UuidToStringA(0,0);
17524
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531   (eval $ac_link) 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } &&
17538          { ac_try='test -z "$ac_c_werror_flag"
17539                          || test ! -s conftest.err'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; } &&
17545          { ac_try='test -s conftest$ac_exeext'
17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547   (eval $ac_try) 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551   need_rpcrt=yes
17552 else
17553   echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 need_rpcrt=no
17557 fi
17558 rm -f conftest.err conftest.$ac_objext \
17559       conftest$ac_exeext conftest.$ac_ext
17560         if test $need_rpcrt = yes; then
17561                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17562         fi
17563         LIBS="$save_LIBS"
17564         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17565 echo "${ECHO_T}$need_rpcrt" >&6
17566 fi
17567
17568 ol_cv_lib_resolver=no
17569 if test $ol_cv_lib_resolver = no ; then
17570         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17571 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17572 if test "${ol_cv_resolver_none+set}" = set; then
17573   echo $ECHO_N "(cached) $ECHO_C" >&6
17574 else
17575
17576         ol_RESOLVER_LIB=
17577         ol_LIBS=$LIBS
17578         LIBS="$ol_RESOLVER_LIB $LIBS"
17579
17580         cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586
17587 #ifdef HAVE_SYS_TYPES_H
17588 #       include <sys/types.h>
17589 #endif
17590 #include <netinet/in.h>
17591 #ifdef HAVE_ARPA_NAMESER_H
17592 #       include <arpa/nameser.h>
17593 #endif
17594 #ifdef HAVE_RESOLV_H
17595 #       include <resolv.h>
17596 #endif
17597
17598 int
17599 main ()
17600 {
17601 {
17602         int len, status;
17603         char *request = NULL;
17604         unsigned char reply[64*1024];
17605         unsigned char host[64*1024];
17606         unsigned char *p;
17607
17608 #ifdef NS_HFIXEDSZ
17609         /* Bind 8/9 interface */
17610         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17611 #else
17612         /* Bind 4 interface */
17613 # ifndef T_SRV
17614 #  define T_SRV 33
17615 # endif
17616         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17617 #endif
17618         p = reply;
17619 #ifdef NS_HFIXEDSZ
17620         /* Bind 8/9 interface */
17621         p += NS_HFIXEDSZ;
17622 #elif defined(HFIXEDSZ)
17623         /* Bind 4 interface w/ HFIXEDSZ */
17624         p += HFIXEDSZ;
17625 #else
17626         /* Bind 4 interface w/o HFIXEDSZ */
17627         p += sizeof(HEADER);
17628 #endif
17629         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17630 }
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext conftest$ac_exeext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17637   (eval $ac_link) 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } &&
17644          { ac_try='test -z "$ac_c_werror_flag"
17645                          || test ! -s conftest.err'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; } &&
17651          { ac_try='test -s conftest$ac_exeext'
17652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653   (eval $ac_try) 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657   ol_cv_resolver_none=yes
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 ol_cv_resolver_none=no
17663 fi
17664 rm -f conftest.err conftest.$ac_objext \
17665       conftest$ac_exeext conftest.$ac_ext
17666
17667         LIBS="$ol_LIBS"
17668
17669 fi
17670 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17671 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17672
17673         if test $ol_cv_resolver_none = yes ; then
17674                 ol_cv_lib_resolver=yes
17675         fi
17676 fi
17677
17678 if test $ol_cv_lib_resolver = no ; then
17679         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17680 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17681 if test "${ol_cv_resolver_resolv+set}" = set; then
17682   echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684
17685         ol_RESOLVER_LIB=-lresolv
17686         ol_LIBS=$LIBS
17687         LIBS="$ol_RESOLVER_LIB $LIBS"
17688
17689         cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695
17696 #ifdef HAVE_SYS_TYPES_H
17697 #       include <sys/types.h>
17698 #endif
17699 #include <netinet/in.h>
17700 #ifdef HAVE_ARPA_NAMESER_H
17701 #       include <arpa/nameser.h>
17702 #endif
17703 #ifdef HAVE_RESOLV_H
17704 #       include <resolv.h>
17705 #endif
17706
17707 int
17708 main ()
17709 {
17710 {
17711         int len, status;
17712         char *request = NULL;
17713         unsigned char reply[64*1024];
17714         unsigned char host[64*1024];
17715         unsigned char *p;
17716
17717 #ifdef NS_HFIXEDSZ
17718         /* Bind 8/9 interface */
17719         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17720 #else
17721         /* Bind 4 interface */
17722 # ifndef T_SRV
17723 #  define T_SRV 33
17724 # endif
17725         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17726 #endif
17727         p = reply;
17728 #ifdef NS_HFIXEDSZ
17729         /* Bind 8/9 interface */
17730         p += NS_HFIXEDSZ;
17731 #elif defined(HFIXEDSZ)
17732         /* Bind 4 interface w/ HFIXEDSZ */
17733         p += HFIXEDSZ;
17734 #else
17735         /* Bind 4 interface w/o HFIXEDSZ */
17736         p += sizeof(HEADER);
17737 #endif
17738         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17739 }
17740   ;
17741   return 0;
17742 }
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746   (eval $ac_link) 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } &&
17753          { ac_try='test -z "$ac_c_werror_flag"
17754                          || test ! -s conftest.err'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; } &&
17760          { ac_try='test -s conftest$ac_exeext'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   ol_cv_resolver_resolv=yes
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ol_cv_resolver_resolv=no
17772 fi
17773 rm -f conftest.err conftest.$ac_objext \
17774       conftest$ac_exeext conftest.$ac_ext
17775
17776         LIBS="$ol_LIBS"
17777
17778 fi
17779 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17780 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17781
17782         if test $ol_cv_resolver_resolv = yes ; then
17783                 ol_cv_lib_resolver=-lresolv
17784         fi
17785 fi
17786
17787 if test $ol_cv_lib_resolver = no ; then
17788         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17789 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17790 if test "${ol_cv_resolver_bind+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793
17794         ol_RESOLVER_LIB=-lbind
17795         ol_LIBS=$LIBS
17796         LIBS="$ol_RESOLVER_LIB $LIBS"
17797
17798         cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h.  */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h.  */
17804
17805 #ifdef HAVE_SYS_TYPES_H
17806 #       include <sys/types.h>
17807 #endif
17808 #include <netinet/in.h>
17809 #ifdef HAVE_ARPA_NAMESER_H
17810 #       include <arpa/nameser.h>
17811 #endif
17812 #ifdef HAVE_RESOLV_H
17813 #       include <resolv.h>
17814 #endif
17815
17816 int
17817 main ()
17818 {
17819 {
17820         int len, status;
17821         char *request = NULL;
17822         unsigned char reply[64*1024];
17823         unsigned char host[64*1024];
17824         unsigned char *p;
17825
17826 #ifdef NS_HFIXEDSZ
17827         /* Bind 8/9 interface */
17828         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17829 #else
17830         /* Bind 4 interface */
17831 # ifndef T_SRV
17832 #  define T_SRV 33
17833 # endif
17834         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17835 #endif
17836         p = reply;
17837 #ifdef NS_HFIXEDSZ
17838         /* Bind 8/9 interface */
17839         p += NS_HFIXEDSZ;
17840 #elif defined(HFIXEDSZ)
17841         /* Bind 4 interface w/ HFIXEDSZ */
17842         p += HFIXEDSZ;
17843 #else
17844         /* Bind 4 interface w/o HFIXEDSZ */
17845         p += sizeof(HEADER);
17846 #endif
17847         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17848 }
17849   ;
17850   return 0;
17851 }
17852 _ACEOF
17853 rm -f conftest.$ac_objext conftest$ac_exeext
17854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17855   (eval $ac_link) 2>conftest.er1
17856   ac_status=$?
17857   grep -v '^ *+' conftest.er1 >conftest.err
17858   rm -f conftest.er1
17859   cat conftest.err >&5
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); } &&
17862          { ac_try='test -z "$ac_c_werror_flag"
17863                          || test ! -s conftest.err'
17864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865   (eval $ac_try) 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; } &&
17869          { ac_try='test -s conftest$ac_exeext'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875   ol_cv_resolver_bind=yes
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ol_cv_resolver_bind=no
17881 fi
17882 rm -f conftest.err conftest.$ac_objext \
17883       conftest$ac_exeext conftest.$ac_ext
17884
17885         LIBS="$ol_LIBS"
17886
17887 fi
17888 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17889 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17890
17891         if test $ol_cv_resolver_bind = yes ; then
17892                 ol_cv_lib_resolver=-lbind
17893         fi
17894 fi
17895
17896
17897
17898 ol_link_dnssrv=no
17899 if test "$ol_cv_lib_resolver" != no ; then
17900
17901 cat >>confdefs.h <<\_ACEOF
17902 #define HAVE_RES_QUERY 1
17903 _ACEOF
17904
17905
17906         if test "$ol_enable_dnssrv" != no ; then
17907                 ol_link_dnssrv=yes
17908         fi
17909
17910         if test "$ol_cv_lib_resolver" != yes ; then
17911                 LIBS="$ol_cv_lib_resolver $LIBS"
17912         fi
17913 fi
17914
17915 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17916         if test "$ol_link_dnssrv" = no ; then
17917                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17918 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17919    { (exit 1); exit 1; }; }
17920         fi
17921 else
17922         ol_enable_dnssrv=no
17923 fi
17924
17925
17926 for ac_func in hstrerror
17927 do
17928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17929 echo "$as_me:$LINENO: checking for $ac_func" >&5
17930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17931 if eval "test \"\${$as_ac_var+set}\" = set"; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934   cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17942 #define $ac_func innocuous_$ac_func
17943
17944 /* System header to define __stub macros and hopefully few prototypes,
17945     which can conflict with char $ac_func (); below.
17946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17947     <limits.h> exists even on freestanding compilers.  */
17948
17949 #ifdef __STDC__
17950 # include <limits.h>
17951 #else
17952 # include <assert.h>
17953 #endif
17954
17955 #undef $ac_func
17956
17957 /* Override any gcc2 internal prototype to avoid an error.  */
17958 #ifdef __cplusplus
17959 extern "C"
17960 {
17961 #endif
17962 /* We use char because int might match the return type of a gcc2
17963    builtin and then its argument prototype would still apply.  */
17964 char $ac_func ();
17965 /* The GNU C library defines this for functions which it implements
17966     to always fail with ENOSYS.  Some functions are actually named
17967     something starting with __ and the normal name is an alias.  */
17968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17969 choke me
17970 #else
17971 char (*f) () = $ac_func;
17972 #endif
17973 #ifdef __cplusplus
17974 }
17975 #endif
17976
17977 int
17978 main ()
17979 {
17980 return f != $ac_func;
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987   (eval $ac_link) 2>conftest.er1
17988   ac_status=$?
17989   grep -v '^ *+' conftest.er1 >conftest.err
17990   rm -f conftest.er1
17991   cat conftest.err >&5
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); } &&
17994          { ac_try='test -z "$ac_c_werror_flag"
17995                          || test ! -s conftest.err'
17996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997   (eval $ac_try) 2>&5
17998   ac_status=$?
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); }; } &&
18001          { ac_try='test -s conftest$ac_exeext'
18002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003   (eval $ac_try) 2>&5
18004   ac_status=$?
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); }; }; then
18007   eval "$as_ac_var=yes"
18008 else
18009   echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 eval "$as_ac_var=no"
18013 fi
18014 rm -f conftest.err conftest.$ac_objext \
18015       conftest$ac_exeext conftest.$ac_ext
18016 fi
18017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18019 if test `eval echo '${'$as_ac_var'}'` = yes; then
18020   cat >>confdefs.h <<_ACEOF
18021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18022 _ACEOF
18023
18024 fi
18025 done
18026
18027
18028
18029
18030
18031
18032 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18033 do
18034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18037 if eval "test \"\${$as_ac_var+set}\" = set"; then
18038   echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040   cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18048 #define $ac_func innocuous_$ac_func
18049
18050 /* System header to define __stub macros and hopefully few prototypes,
18051     which can conflict with char $ac_func (); below.
18052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053     <limits.h> exists even on freestanding compilers.  */
18054
18055 #ifdef __STDC__
18056 # include <limits.h>
18057 #else
18058 # include <assert.h>
18059 #endif
18060
18061 #undef $ac_func
18062
18063 /* Override any gcc2 internal prototype to avoid an error.  */
18064 #ifdef __cplusplus
18065 extern "C"
18066 {
18067 #endif
18068 /* We use char because int might match the return type of a gcc2
18069    builtin and then its argument prototype would still apply.  */
18070 char $ac_func ();
18071 /* The GNU C library defines this for functions which it implements
18072     to always fail with ENOSYS.  Some functions are actually named
18073     something starting with __ and the normal name is an alias.  */
18074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18075 choke me
18076 #else
18077 char (*f) () = $ac_func;
18078 #endif
18079 #ifdef __cplusplus
18080 }
18081 #endif
18082
18083 int
18084 main ()
18085 {
18086 return f != $ac_func;
18087   ;
18088   return 0;
18089 }
18090 _ACEOF
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093   (eval $ac_link) 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } &&
18100          { ac_try='test -z "$ac_c_werror_flag"
18101                          || test ! -s conftest.err'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; } &&
18107          { ac_try='test -s conftest$ac_exeext'
18108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109   (eval $ac_try) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   eval "$as_ac_var=yes"
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 eval "$as_ac_var=no"
18119 fi
18120 rm -f conftest.err conftest.$ac_objext \
18121       conftest$ac_exeext conftest.$ac_ext
18122 fi
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18125 if test `eval echo '${'$as_ac_var'}'` = yes; then
18126   cat >>confdefs.h <<_ACEOF
18127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18128 _ACEOF
18129
18130 fi
18131 done
18132
18133
18134 ol_link_ipv6=no
18135 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18136         if test $ol_enable_ipv6 = yes ; then
18137                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18138 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18139    { (exit 1); exit 1; }; }
18140         fi
18141 elif test $ol_enable_ipv6 != no ; then
18142         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18143 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18144 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18145   echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147
18148                 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154
18155 #                       include <netinet/in.h>
18156 #                       ifdef INET6_ADDRSTRLEN
18157                                 __has_inet6_addrstrlen__;
18158 #                       endif
18159
18160 _ACEOF
18161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18162   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18163   ol_cv_inet6_addrstrlen=yes
18164 else
18165   ol_cv_inet6_addrstrlen=no
18166 fi
18167 rm -f conftest*
18168
18169 fi
18170 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18171 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18172
18173
18174         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18175 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18176 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18177   echo $ECHO_N "(cached) $ECHO_C" >&6
18178 else
18179
18180                 cat >conftest.$ac_ext <<_ACEOF
18181 /* confdefs.h.  */
18182 _ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h.  */
18186
18187 #include <sys/types.h>
18188 #include <sys/socket.h>
18189
18190 int
18191 main ()
18192 {
18193
18194                         struct sockaddr_storage ss;
18195
18196   ;
18197   return 0;
18198 }
18199 _ACEOF
18200 rm -f conftest.$ac_objext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18202   (eval $ac_compile) 2>conftest.er1
18203   ac_status=$?
18204   grep -v '^ *+' conftest.er1 >conftest.err
18205   rm -f conftest.er1
18206   cat conftest.err >&5
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); } &&
18209          { ac_try='test -z "$ac_c_werror_flag"
18210                          || test ! -s conftest.err'
18211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212   (eval $ac_try) 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; } &&
18216          { ac_try='test -s conftest.$ac_objext'
18217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218   (eval $ac_try) 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; }; then
18222   ol_cv_struct_sockaddr_storage=yes
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227 ol_cv_struct_sockaddr_storage=no
18228 fi
18229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18230 fi
18231 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18232 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18233
18234         if test $ol_cv_inet6_addrstrlen = yes &&
18235            test $ol_cv_struct_sockaddr_storage = yes ; then
18236                 ol_link_ipv6=yes
18237         elif test $ol_enable_ipv6 = yes &&
18238              test $ol_cv_inet6_addrstrlen = no ; then
18239                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18240 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18241    { (exit 1); exit 1; }; }
18242         elif test $ol_enable_ipv6 = yes &&
18243              test $ol_cv_struct_sockaddr_storage = no ; then
18244                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18245 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18246    { (exit 1); exit 1; }; }
18247         fi
18248 fi
18249
18250 if test $ol_enable_local != no ; then
18251
18252 for ac_header in sys/un.h
18253 do
18254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18256   echo "$as_me:$LINENO: checking for $ac_header" >&5
18257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18259   echo $ECHO_N "(cached) $ECHO_C" >&6
18260 fi
18261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18263 else
18264   # Is the header compilable?
18265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18267 cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273 $ac_includes_default
18274 #include <$ac_header>
18275 _ACEOF
18276 rm -f conftest.$ac_objext
18277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18278   (eval $ac_compile) 2>conftest.er1
18279   ac_status=$?
18280   grep -v '^ *+' conftest.er1 >conftest.err
18281   rm -f conftest.er1
18282   cat conftest.err >&5
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); } &&
18285          { ac_try='test -z "$ac_c_werror_flag"
18286                          || test ! -s conftest.err'
18287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288   (eval $ac_try) 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); }; } &&
18292          { ac_try='test -s conftest.$ac_objext'
18293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294   (eval $ac_try) 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; }; then
18298   ac_header_compiler=yes
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303 ac_header_compiler=no
18304 fi
18305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18307 echo "${ECHO_T}$ac_header_compiler" >&6
18308
18309 # Is the header present?
18310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h.  */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h.  */
18318 #include <$ac_header>
18319 _ACEOF
18320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18322   ac_status=$?
18323   grep -v '^ *+' conftest.er1 >conftest.err
18324   rm -f conftest.er1
18325   cat conftest.err >&5
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); } >/dev/null; then
18328   if test -s conftest.err; then
18329     ac_cpp_err=$ac_c_preproc_warn_flag
18330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18331   else
18332     ac_cpp_err=
18333   fi
18334 else
18335   ac_cpp_err=yes
18336 fi
18337 if test -z "$ac_cpp_err"; then
18338   ac_header_preproc=yes
18339 else
18340   echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343   ac_header_preproc=no
18344 fi
18345 rm -f conftest.err conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18347 echo "${ECHO_T}$ac_header_preproc" >&6
18348
18349 # So?  What about this header?
18350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18351   yes:no: )
18352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18356     ac_header_preproc=yes
18357     ;;
18358   no:yes:* )
18359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18371     (
18372       cat <<\_ASBOX
18373 ## --------------------------------------------- ##
18374 ## Report this to <http://www.openldap.org/its/> ##
18375 ## --------------------------------------------- ##
18376 _ASBOX
18377     ) |
18378       sed "s/^/$as_me: WARNING:     /" >&2
18379     ;;
18380 esac
18381 echo "$as_me:$LINENO: checking for $ac_header" >&5
18382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   eval "$as_ac_Header=\$ac_header_preproc"
18387 fi
18388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18390
18391 fi
18392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18393   cat >>confdefs.h <<_ACEOF
18394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18395 _ACEOF
18396
18397 fi
18398
18399 done
18400
18401
18402         if test $ol_enable_local = auto ; then
18403                 ol_enable_local=$ac_cv_header_sys_un_h
18404         elif test $ac_cv_header_sys_un_h = no ; then
18405                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18406 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18407    { (exit 1); exit 1; }; }
18408         fi
18409 fi
18410
18411
18412 if test $ol_with_tls = yes ; then
18413         ol_with_tls=auto
18414 fi
18415
18416 ol_link_tls=no
18417 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18418
18419 for ac_header in openssl/ssl.h
18420 do
18421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18423   echo "$as_me:$LINENO: checking for $ac_header" >&5
18424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18426   echo $ECHO_N "(cached) $ECHO_C" >&6
18427 fi
18428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18430 else
18431   # Is the header compilable?
18432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h.  */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h.  */
18440 $ac_includes_default
18441 #include <$ac_header>
18442 _ACEOF
18443 rm -f conftest.$ac_objext
18444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445   (eval $ac_compile) 2>conftest.er1
18446   ac_status=$?
18447   grep -v '^ *+' conftest.er1 >conftest.err
18448   rm -f conftest.er1
18449   cat conftest.err >&5
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); } &&
18452          { ac_try='test -z "$ac_c_werror_flag"
18453                          || test ! -s conftest.err'
18454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455   (eval $ac_try) 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; } &&
18459          { ac_try='test -s conftest.$ac_objext'
18460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461   (eval $ac_try) 2>&5
18462   ac_status=$?
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); }; }; then
18465   ac_header_compiler=yes
18466 else
18467   echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18469
18470 ac_header_compiler=no
18471 fi
18472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18474 echo "${ECHO_T}$ac_header_compiler" >&6
18475
18476 # Is the header present?
18477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18479 cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485 #include <$ac_header>
18486 _ACEOF
18487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } >/dev/null; then
18495   if test -s conftest.err; then
18496     ac_cpp_err=$ac_c_preproc_warn_flag
18497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18498   else
18499     ac_cpp_err=
18500   fi
18501 else
18502   ac_cpp_err=yes
18503 fi
18504 if test -z "$ac_cpp_err"; then
18505   ac_header_preproc=yes
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510   ac_header_preproc=no
18511 fi
18512 rm -f conftest.err conftest.$ac_ext
18513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18514 echo "${ECHO_T}$ac_header_preproc" >&6
18515
18516 # So?  What about this header?
18517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18518   yes:no: )
18519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18523     ac_header_preproc=yes
18524     ;;
18525   no:yes:* )
18526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18538     (
18539       cat <<\_ASBOX
18540 ## --------------------------------------------- ##
18541 ## Report this to <http://www.openldap.org/its/> ##
18542 ## --------------------------------------------- ##
18543 _ASBOX
18544     ) |
18545       sed "s/^/$as_me: WARNING:     /" >&2
18546     ;;
18547 esac
18548 echo "$as_me:$LINENO: checking for $ac_header" >&5
18549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18551   echo $ECHO_N "(cached) $ECHO_C" >&6
18552 else
18553   eval "$as_ac_Header=\$ac_header_preproc"
18554 fi
18555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18557
18558 fi
18559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18560   cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18562 _ACEOF
18563
18564 fi
18565
18566 done
18567
18568
18569         if test $ac_cv_header_openssl_ssl_h = yes ; then
18570                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18571 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18572 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18573   echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575   ac_check_lib_save_LIBS=$LIBS
18576 LIBS="-lssl -lcrypto $LIBS"
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h.  */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h.  */
18583
18584 /* Override any gcc2 internal prototype to avoid an error.  */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 /* We use char because int might match the return type of a gcc2
18589    builtin and then its argument prototype would still apply.  */
18590 char SSL_library_init ();
18591 int
18592 main ()
18593 {
18594 SSL_library_init ();
18595   ;
18596   return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601   (eval $ac_link) 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } &&
18608          { ac_try='test -z "$ac_c_werror_flag"
18609                          || test ! -s conftest.err'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; } &&
18615          { ac_try='test -s conftest$ac_exeext'
18616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617   (eval $ac_try) 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; }; then
18621   ac_cv_lib_ssl_SSL_library_init=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626 ac_cv_lib_ssl_SSL_library_init=no
18627 fi
18628 rm -f conftest.err conftest.$ac_objext \
18629       conftest$ac_exeext conftest.$ac_ext
18630 LIBS=$ac_check_lib_save_LIBS
18631 fi
18632 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18633 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18634 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18635   have_openssl=yes
18636                         need_rsaref=no
18637 else
18638   have_openssl=no
18639 fi
18640
18641
18642                 if test $have_openssl = no ; then
18643                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18644 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18645 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18646   echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648   ac_check_lib_save_LIBS=$LIBS
18649 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h.  */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h.  */
18656
18657 /* Override any gcc2 internal prototype to avoid an error.  */
18658 #ifdef __cplusplus
18659 extern "C"
18660 #endif
18661 /* We use char because int might match the return type of a gcc2
18662    builtin and then its argument prototype would still apply.  */
18663 char ssl3_accept ();
18664 int
18665 main ()
18666 {
18667 ssl3_accept ();
18668   ;
18669   return 0;
18670 }
18671 _ACEOF
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674   (eval $ac_link) 2>conftest.er1
18675   ac_status=$?
18676   grep -v '^ *+' conftest.er1 >conftest.err
18677   rm -f conftest.er1
18678   cat conftest.err >&5
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } &&
18681          { ac_try='test -z "$ac_c_werror_flag"
18682                          || test ! -s conftest.err'
18683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684   (eval $ac_try) 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; } &&
18688          { ac_try='test -s conftest$ac_exeext'
18689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690   (eval $ac_try) 2>&5
18691   ac_status=$?
18692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693   (exit $ac_status); }; }; then
18694   ac_cv_lib_ssl_ssl3_accept=yes
18695 else
18696   echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 ac_cv_lib_ssl_ssl3_accept=no
18700 fi
18701 rm -f conftest.err conftest.$ac_objext \
18702       conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18704 fi
18705 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18706 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18707 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18708   have_openssl=yes
18709                                 need_rsaref=yes
18710 else
18711   have_openssl=no
18712 fi
18713
18714                 fi
18715
18716                 if test $have_openssl = yes ; then
18717                         ol_with_tls=openssl
18718                         ol_link_tls=yes
18719
18720
18721 cat >>confdefs.h <<\_ACEOF
18722 #define HAVE_OPENSSL 1
18723 _ACEOF
18724
18725
18726                         if test $need_rsaref = yes; then
18727
18728 cat >>confdefs.h <<\_ACEOF
18729 #define HAVE_RSAREF 1
18730 _ACEOF
18731
18732
18733                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18734                         else
18735                                 TLS_LIBS="-lssl -lcrypto"
18736                         fi
18737
18738                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18739 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18740 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18741   echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743
18744                 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h.  */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h.  */
18750
18751 #ifdef HAVE_OPENSSL_SSL_H
18752 #include <openssl/ssl.h>
18753 #endif
18754
18755 /* Require 0.9.7d+ */
18756 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18757         char *__ssl_compat = "0.9.7d";
18758 #endif
18759
18760 _ACEOF
18761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18762   $EGREP "__ssl_compat" >/dev/null 2>&1; then
18763   ol_cv_ssl_crl_compat=yes
18764 else
18765   ol_cv_ssl_crl_compat=no
18766 fi
18767 rm -f conftest*
18768
18769 fi
18770 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18771 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18772
18773                         if test $ol_cv_ssl_crl_compat = yes ; then
18774
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE_OPENSSL_CRL 1
18777 _ACEOF
18778
18779                         fi
18780                 fi
18781         fi
18782 fi
18783
18784 if test $ol_link_tls = no ; then
18785         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18786
18787 for ac_header in gnutls/gnutls.h
18788 do
18789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18791   echo "$as_me:$LINENO: checking for $ac_header" >&5
18792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 fi
18796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18798 else
18799   # Is the header compilable?
18800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18802 cat >conftest.$ac_ext <<_ACEOF
18803 /* confdefs.h.  */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h.  */
18808 $ac_includes_default
18809 #include <$ac_header>
18810 _ACEOF
18811 rm -f conftest.$ac_objext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18813   (eval $ac_compile) 2>conftest.er1
18814   ac_status=$?
18815   grep -v '^ *+' conftest.er1 >conftest.err
18816   rm -f conftest.er1
18817   cat conftest.err >&5
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); } &&
18820          { ac_try='test -z "$ac_c_werror_flag"
18821                          || test ! -s conftest.err'
18822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823   (eval $ac_try) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; } &&
18827          { ac_try='test -s conftest.$ac_objext'
18828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829   (eval $ac_try) 2>&5
18830   ac_status=$?
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); }; }; then
18833   ac_header_compiler=yes
18834 else
18835   echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838 ac_header_compiler=no
18839 fi
18840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18842 echo "${ECHO_T}$ac_header_compiler" >&6
18843
18844 # Is the header present?
18845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853 #include <$ac_header>
18854 _ACEOF
18855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } >/dev/null; then
18863   if test -s conftest.err; then
18864     ac_cpp_err=$ac_c_preproc_warn_flag
18865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18866   else
18867     ac_cpp_err=
18868   fi
18869 else
18870   ac_cpp_err=yes
18871 fi
18872 if test -z "$ac_cpp_err"; then
18873   ac_header_preproc=yes
18874 else
18875   echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878   ac_header_preproc=no
18879 fi
18880 rm -f conftest.err conftest.$ac_ext
18881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18882 echo "${ECHO_T}$ac_header_preproc" >&6
18883
18884 # So?  What about this header?
18885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18886   yes:no: )
18887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18891     ac_header_preproc=yes
18892     ;;
18893   no:yes:* )
18894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18906     (
18907       cat <<\_ASBOX
18908 ## --------------------------------------------- ##
18909 ## Report this to <http://www.openldap.org/its/> ##
18910 ## --------------------------------------------- ##
18911 _ASBOX
18912     ) |
18913       sed "s/^/$as_me: WARNING:     /" >&2
18914     ;;
18915 esac
18916 echo "$as_me:$LINENO: checking for $ac_header" >&5
18917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921   eval "$as_ac_Header=\$ac_header_preproc"
18922 fi
18923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18925
18926 fi
18927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18928   cat >>confdefs.h <<_ACEOF
18929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18930 _ACEOF
18931
18932 fi
18933
18934 done
18935
18936
18937                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
18938                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
18939 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
18940 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lgnutls  $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h.  */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h.  */
18951
18952 /* Override any gcc2 internal prototype to avoid an error.  */
18953 #ifdef __cplusplus
18954 extern "C"
18955 #endif
18956 /* We use char because int might match the return type of a gcc2
18957    builtin and then its argument prototype would still apply.  */
18958 char gnutls_init ();
18959 int
18960 main ()
18961 {
18962 gnutls_init ();
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969   (eval $ac_link) 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } &&
18976          { ac_try='test -z "$ac_c_werror_flag"
18977                          || test ! -s conftest.err'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; } &&
18983          { ac_try='test -s conftest$ac_exeext'
18984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985   (eval $ac_try) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; }; then
18989   ac_cv_lib_gnutls_gnutls_init=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994 ac_cv_lib_gnutls_gnutls_init=no
18995 fi
18996 rm -f conftest.err conftest.$ac_objext \
18997       conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
18999 fi
19000 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19001 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19002 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19003   have_gnutls=yes
19004 else
19005   have_gnutls=no
19006 fi
19007
19008
19009                         if test $have_gnutls = yes ; then
19010                                 ol_with_tls=gnutls
19011                                 ol_link_tls=yes
19012
19013                                 TLS_LIBS="-lgnutls"
19014
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_GNUTLS 1
19018 _ACEOF
19019
19020                         fi
19021                 fi
19022         fi
19023 fi
19024
19025 WITH_TLS=no
19026 if test $ol_link_tls = yes ; then
19027
19028 cat >>confdefs.h <<\_ACEOF
19029 #define HAVE_TLS 1
19030 _ACEOF
19031
19032         WITH_TLS=yes
19033 elif test $ol_with_tls = auto ; then
19034         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19035 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19036         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19037 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19038 elif test $ol_with_tls != no ; then
19039         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19040 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19041    { (exit 1); exit 1; }; }
19042 else
19043         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19044 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19045 fi
19046
19047 if test $ol_enable_lmpasswd != no; then
19048         if test $ol_link_tls != yes ; then
19049                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19050 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19051    { (exit 1); exit 1; }; }
19052         fi
19053
19054
19055 cat >>confdefs.h <<\_ACEOF
19056 #define SLAPD_LMHASH 1
19057 _ACEOF
19058
19059 fi
19060
19061 ol_link_threads=no
19062
19063 case $ol_with_threads in auto | yes | nt)
19064
19065
19066         echo "$as_me:$LINENO: checking for _beginthread" >&5
19067 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19068 if test "${ac_cv_func__beginthread+set}" = set; then
19069   echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071   cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h.  */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h.  */
19077 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19079 #define _beginthread innocuous__beginthread
19080
19081 /* System header to define __stub macros and hopefully few prototypes,
19082     which can conflict with char _beginthread (); below.
19083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19084     <limits.h> exists even on freestanding compilers.  */
19085
19086 #ifdef __STDC__
19087 # include <limits.h>
19088 #else
19089 # include <assert.h>
19090 #endif
19091
19092 #undef _beginthread
19093
19094 /* Override any gcc2 internal prototype to avoid an error.  */
19095 #ifdef __cplusplus
19096 extern "C"
19097 {
19098 #endif
19099 /* We use char because int might match the return type of a gcc2
19100    builtin and then its argument prototype would still apply.  */
19101 char _beginthread ();
19102 /* The GNU C library defines this for functions which it implements
19103     to always fail with ENOSYS.  Some functions are actually named
19104     something starting with __ and the normal name is an alias.  */
19105 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19106 choke me
19107 #else
19108 char (*f) () = _beginthread;
19109 #endif
19110 #ifdef __cplusplus
19111 }
19112 #endif
19113
19114 int
19115 main ()
19116 {
19117 return f != _beginthread;
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124   (eval $ac_link) 2>conftest.er1
19125   ac_status=$?
19126   grep -v '^ *+' conftest.er1 >conftest.err
19127   rm -f conftest.er1
19128   cat conftest.err >&5
19129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130   (exit $ac_status); } &&
19131          { ac_try='test -z "$ac_c_werror_flag"
19132                          || test ! -s conftest.err'
19133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134   (eval $ac_try) 2>&5
19135   ac_status=$?
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); }; } &&
19138          { ac_try='test -s conftest$ac_exeext'
19139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140   (eval $ac_try) 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; }; then
19144   ac_cv_func__beginthread=yes
19145 else
19146   echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19148
19149 ac_cv_func__beginthread=no
19150 fi
19151 rm -f conftest.err conftest.$ac_objext \
19152       conftest$ac_exeext conftest.$ac_ext
19153 fi
19154 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19155 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19156
19157
19158         if test $ac_cv_func__beginthread = yes ; then
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_NT_THREADS 1
19162 _ACEOF
19163
19164                 ol_cv_nt_threads=yes
19165         fi
19166
19167
19168         if test "$ol_cv_nt_threads" = yes ; then
19169                 ol_link_threads=nt
19170                 ol_with_threads=found
19171                 ol_with_yielding_select=yes
19172
19173
19174 cat >>confdefs.h <<\_ACEOF
19175 #define HAVE_NT_SERVICE_MANAGER 1
19176 _ACEOF
19177
19178
19179 cat >>confdefs.h <<\_ACEOF
19180 #define HAVE_NT_EVENT_LOG 1
19181 _ACEOF
19182
19183         fi
19184
19185         if test $ol_with_threads = nt ; then
19186                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19187 echo "$as_me: error: could not locate NT Threads" >&2;}
19188    { (exit 1); exit 1; }; }
19189         fi
19190         ;;
19191 esac
19192
19193 case $ol_with_threads in auto | yes | posix)
19194
19195
19196 for ac_header in pthread.h
19197 do
19198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19200   echo "$as_me:$LINENO: checking for $ac_header" >&5
19201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19203   echo $ECHO_N "(cached) $ECHO_C" >&6
19204 fi
19205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19207 else
19208   # Is the header compilable?
19209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19211 cat >conftest.$ac_ext <<_ACEOF
19212 /* confdefs.h.  */
19213 _ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h.  */
19217 $ac_includes_default
19218 #include <$ac_header>
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19222   (eval $ac_compile) 2>conftest.er1
19223   ac_status=$?
19224   grep -v '^ *+' conftest.er1 >conftest.err
19225   rm -f conftest.er1
19226   cat conftest.err >&5
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } &&
19229          { ac_try='test -z "$ac_c_werror_flag"
19230                          || test ! -s conftest.err'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; } &&
19236          { ac_try='test -s conftest.$ac_objext'
19237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238   (eval $ac_try) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); }; }; then
19242   ac_header_compiler=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 ac_header_compiler=no
19248 fi
19249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251 echo "${ECHO_T}$ac_header_compiler" >&6
19252
19253 # Is the header present?
19254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262 #include <$ac_header>
19263 _ACEOF
19264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19266   ac_status=$?
19267   grep -v '^ *+' conftest.er1 >conftest.err
19268   rm -f conftest.er1
19269   cat conftest.err >&5
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); } >/dev/null; then
19272   if test -s conftest.err; then
19273     ac_cpp_err=$ac_c_preproc_warn_flag
19274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19275   else
19276     ac_cpp_err=
19277   fi
19278 else
19279   ac_cpp_err=yes
19280 fi
19281 if test -z "$ac_cpp_err"; then
19282   ac_header_preproc=yes
19283 else
19284   echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287   ac_header_preproc=no
19288 fi
19289 rm -f conftest.err conftest.$ac_ext
19290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6
19292
19293 # So?  What about this header?
19294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19295   yes:no: )
19296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19300     ac_header_preproc=yes
19301     ;;
19302   no:yes:* )
19303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19315     (
19316       cat <<\_ASBOX
19317 ## --------------------------------------------- ##
19318 ## Report this to <http://www.openldap.org/its/> ##
19319 ## --------------------------------------------- ##
19320 _ASBOX
19321     ) |
19322       sed "s/^/$as_me: WARNING:     /" >&2
19323     ;;
19324 esac
19325 echo "$as_me:$LINENO: checking for $ac_header" >&5
19326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19328   echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330   eval "$as_ac_Header=\$ac_header_preproc"
19331 fi
19332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19334
19335 fi
19336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19337   cat >>confdefs.h <<_ACEOF
19338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19339 _ACEOF
19340
19341 fi
19342
19343 done
19344
19345
19346         if test $ac_cv_header_pthread_h = yes ; then
19347                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19348 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19349 if test "${ol_cv_pthread_version+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352
19353         cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h.  */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h.  */
19359
19360 #               include <pthread.h>
19361
19362 int
19363 main ()
19364 {
19365
19366                 int i = PTHREAD_CREATE_JOINABLE;
19367
19368   ;
19369   return 0;
19370 }
19371 _ACEOF
19372 rm -f conftest.$ac_objext
19373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374   (eval $ac_compile) 2>conftest.er1
19375   ac_status=$?
19376   grep -v '^ *+' conftest.er1 >conftest.err
19377   rm -f conftest.er1
19378   cat conftest.err >&5
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } &&
19381          { ac_try='test -z "$ac_c_werror_flag"
19382                          || test ! -s conftest.err'
19383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384   (eval $ac_try) 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; } &&
19388          { ac_try='test -s conftest.$ac_objext'
19389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390   (eval $ac_try) 2>&5
19391   ac_status=$?
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); }; }; then
19394
19395         cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401 #include <pthread.h>
19402
19403 _ACEOF
19404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19405   $EGREP "pthread_detach" >/dev/null 2>&1; then
19406   ol_cv_pthread_version=10
19407 else
19408   ol_cv_pthread_version=8
19409 fi
19410 rm -f conftest*
19411
19412 else
19413   echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416
19417         cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h.  */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h.  */
19423
19424 #               include <pthread.h>
19425 #               ifdef PTHREAD_CREATE_UNDETACHED
19426                 draft7
19427 #               endif
19428
19429 _ACEOF
19430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19431   $EGREP "draft7" >/dev/null 2>&1; then
19432   ol_cv_pthread_version=7
19433 else
19434
19435         cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441 #include <pthread.h>
19442
19443 _ACEOF
19444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19446   ol_cv_pthread_version=6
19447 else
19448
19449         cat >conftest.$ac_ext <<_ACEOF
19450 /* confdefs.h.  */
19451 _ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h.  */
19455
19456 #               include <pthread.h>
19457 #ifdef          PTHREAD_MUTEX_INITIALIZER
19458                 draft5
19459 #endif
19460
19461 _ACEOF
19462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19463   $EGREP "draft5" >/dev/null 2>&1; then
19464   ol_cv_pthread_version=5
19465 else
19466   ol_cv_pthread_version=4
19467 fi
19468 rm -f conftest*
19469
19470 fi
19471 rm -f conftest*
19472
19473 fi
19474 rm -f conftest*
19475
19476 fi
19477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19478
19479 fi
19480 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19481 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19482
19483
19484                 if test $ol_cv_pthread_version != 0 ; then
19485
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_PTHREADS $ol_cv_pthread_version
19488 _ACEOF
19489
19490                 else
19491                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19492 echo "$as_me: error: unknown pthread version" >&2;}
19493    { (exit 1); exit 1; }; }
19494                 fi
19495
19496                 # consider threads found
19497                 ol_with_threads=found
19498
19499
19500         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19501 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19502 if test "${ol_cv_header_linux_threads+set}" = set; then
19503   echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505   cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 #include <pthread.h>
19512 _ACEOF
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19515   ol_cv_header_linux_threads=yes
19516 else
19517   ol_cv_header_linux_threads=no
19518 fi
19519 rm -f conftest*
19520
19521
19522 fi
19523 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19524 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19525         if test $ol_cv_header_linux_threads = yes; then
19526
19527 cat >>confdefs.h <<\_ACEOF
19528 #define HAVE_LINUX_THREADS 1
19529 _ACEOF
19530
19531         fi
19532
19533
19534         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19535 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19536 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539   cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h.  */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h.  */
19545 #include <pthread.h>
19546 #ifdef _POSIX_THREAD_IS_GNU_PTH
19547         __gnu_pth__;
19548 #endif
19549
19550 _ACEOF
19551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19552   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19553   ol_cv_header_gnu_pth_pthread_h=yes
19554 else
19555   ol_cv_header_gnu_pth_pthread_h=no
19556 fi
19557 rm -f conftest*
19558
19559
19560 fi
19561 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19562 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19563
19564
19565                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19566
19567 for ac_header in sched.h
19568 do
19569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571   echo "$as_me:$LINENO: checking for $ac_header" >&5
19572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574   echo $ECHO_N "(cached) $ECHO_C" >&6
19575 fi
19576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19578 else
19579   # Is the header compilable?
19580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h.  */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h.  */
19588 $ac_includes_default
19589 #include <$ac_header>
19590 _ACEOF
19591 rm -f conftest.$ac_objext
19592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19593   (eval $ac_compile) 2>conftest.er1
19594   ac_status=$?
19595   grep -v '^ *+' conftest.er1 >conftest.err
19596   rm -f conftest.er1
19597   cat conftest.err >&5
19598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599   (exit $ac_status); } &&
19600          { ac_try='test -z "$ac_c_werror_flag"
19601                          || test ! -s conftest.err'
19602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603   (eval $ac_try) 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; } &&
19607          { ac_try='test -s conftest.$ac_objext'
19608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609   (eval $ac_try) 2>&5
19610   ac_status=$?
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); }; }; then
19613   ac_header_compiler=yes
19614 else
19615   echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ac_header_compiler=no
19619 fi
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622 echo "${ECHO_T}$ac_header_compiler" >&6
19623
19624 # Is the header present?
19625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h.  */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h.  */
19633 #include <$ac_header>
19634 _ACEOF
19635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19637   ac_status=$?
19638   grep -v '^ *+' conftest.er1 >conftest.err
19639   rm -f conftest.er1
19640   cat conftest.err >&5
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } >/dev/null; then
19643   if test -s conftest.err; then
19644     ac_cpp_err=$ac_c_preproc_warn_flag
19645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19646   else
19647     ac_cpp_err=
19648   fi
19649 else
19650   ac_cpp_err=yes
19651 fi
19652 if test -z "$ac_cpp_err"; then
19653   ac_header_preproc=yes
19654 else
19655   echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658   ac_header_preproc=no
19659 fi
19660 rm -f conftest.err conftest.$ac_ext
19661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662 echo "${ECHO_T}$ac_header_preproc" >&6
19663
19664 # So?  What about this header?
19665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19666   yes:no: )
19667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19671     ac_header_preproc=yes
19672     ;;
19673   no:yes:* )
19674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19686     (
19687       cat <<\_ASBOX
19688 ## --------------------------------------------- ##
19689 ## Report this to <http://www.openldap.org/its/> ##
19690 ## --------------------------------------------- ##
19691 _ASBOX
19692     ) |
19693       sed "s/^/$as_me: WARNING:     /" >&2
19694     ;;
19695 esac
19696 echo "$as_me:$LINENO: checking for $ac_header" >&5
19697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699   echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701   eval "$as_ac_Header=\$ac_header_preproc"
19702 fi
19703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19705
19706 fi
19707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19708   cat >>confdefs.h <<_ACEOF
19709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19710 _ACEOF
19711
19712 fi
19713
19714 done
19715
19716                 fi
19717
19718
19719                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19720 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19721 if test "${ol_cv_pthread_create+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724
19725                         if test "$cross_compiling" = yes; then
19726   cat >conftest.$ac_ext <<_ACEOF
19727 /* confdefs.h.  */
19728 _ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h.  */
19732
19733 /* pthread test headers */
19734 #include <pthread.h>
19735 #if HAVE_PTHREADS < 7
19736 #include <errno.h>
19737 #endif
19738 #ifndef NULL
19739 #define NULL (void*)0
19740 #endif
19741
19742 static void *task(p)
19743         void *p;
19744 {
19745         return (void *) (p == NULL);
19746 }
19747
19748 int
19749 main ()
19750 {
19751
19752         /* pthread test function */
19753 #ifndef PTHREAD_CREATE_DETACHED
19754 #define PTHREAD_CREATE_DETACHED 1
19755 #endif
19756         pthread_t t;
19757         int status;
19758         int detach = PTHREAD_CREATE_DETACHED;
19759
19760 #if HAVE_PTHREADS > 4
19761         /* Final pthreads */
19762         pthread_attr_t attr;
19763
19764         status = pthread_attr_init(&attr);
19765         if( status ) return status;
19766
19767 #if HAVE_PTHREADS < 7
19768         status = pthread_attr_setdetachstate(&attr, &detach);
19769         if( status < 0 ) status = errno;
19770 #else
19771         status = pthread_attr_setdetachstate(&attr, detach);
19772 #endif
19773         if( status ) return status;
19774         status = pthread_create( &t, &attr, task, NULL );
19775 #if HAVE_PTHREADS < 7
19776         if( status < 0 ) status = errno;
19777 #endif
19778         if( status ) return status;
19779 #else
19780         /* Draft 4 pthreads */
19781         status = pthread_create( &t, pthread_attr_default, task, NULL );
19782         if( status ) return errno;
19783
19784         /* give thread a chance to complete */
19785         /* it should remain joinable and hence detachable */
19786         sleep( 1 );
19787
19788         status = pthread_detach( &t );
19789         if( status ) return errno;
19790 #endif
19791
19792 #ifdef HAVE_LINUX_THREADS
19793         pthread_kill_other_threads_np();
19794 #endif
19795
19796         return 0;
19797
19798   ;
19799   return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19804   (eval $ac_link) 2>conftest.er1
19805   ac_status=$?
19806   grep -v '^ *+' conftest.er1 >conftest.err
19807   rm -f conftest.er1
19808   cat conftest.err >&5
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); } &&
19811          { ac_try='test -z "$ac_c_werror_flag"
19812                          || test ! -s conftest.err'
19813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814   (eval $ac_try) 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); }; } &&
19818          { ac_try='test -s conftest$ac_exeext'
19819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820   (eval $ac_try) 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; }; then
19824   ol_cv_pthread_create=yes
19825 else
19826   echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 ol_cv_pthread_create=no
19830 fi
19831 rm -f conftest.err conftest.$ac_objext \
19832       conftest$ac_exeext conftest.$ac_ext
19833 else
19834   cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840
19841 /* pthread test headers */
19842 #include <pthread.h>
19843 #if HAVE_PTHREADS < 7
19844 #include <errno.h>
19845 #endif
19846 #ifndef NULL
19847 #define NULL (void*)0
19848 #endif
19849
19850 static void *task(p)
19851         void *p;
19852 {
19853         return (void *) (p == NULL);
19854 }
19855
19856
19857 int main(argc, argv)
19858         int argc;
19859         char **argv;
19860 {
19861
19862         /* pthread test function */
19863 #ifndef PTHREAD_CREATE_DETACHED
19864 #define PTHREAD_CREATE_DETACHED 1
19865 #endif
19866         pthread_t t;
19867         int status;
19868         int detach = PTHREAD_CREATE_DETACHED;
19869
19870 #if HAVE_PTHREADS > 4
19871         /* Final pthreads */
19872         pthread_attr_t attr;
19873
19874         status = pthread_attr_init(&attr);
19875         if( status ) return status;
19876
19877 #if HAVE_PTHREADS < 7
19878         status = pthread_attr_setdetachstate(&attr, &detach);
19879         if( status < 0 ) status = errno;
19880 #else
19881         status = pthread_attr_setdetachstate(&attr, detach);
19882 #endif
19883         if( status ) return status;
19884         status = pthread_create( &t, &attr, task, NULL );
19885 #if HAVE_PTHREADS < 7
19886         if( status < 0 ) status = errno;
19887 #endif
19888         if( status ) return status;
19889 #else
19890         /* Draft 4 pthreads */
19891         status = pthread_create( &t, pthread_attr_default, task, NULL );
19892         if( status ) return errno;
19893
19894         /* give thread a chance to complete */
19895         /* it should remain joinable and hence detachable */
19896         sleep( 1 );
19897
19898         status = pthread_detach( &t );
19899         if( status ) return errno;
19900 #endif
19901
19902 #ifdef HAVE_LINUX_THREADS
19903         pthread_kill_other_threads_np();
19904 #endif
19905
19906         return 0;
19907
19908 }
19909
19910 _ACEOF
19911 rm -f conftest$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913   (eval $ac_link) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918   (eval $ac_try) 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); }; }; then
19922   ol_cv_pthread_create=yes
19923 else
19924   echo "$as_me: program exited with status $ac_status" >&5
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ( exit $ac_status )
19929 ol_cv_pthread_create=no
19930 fi
19931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19932 fi
19933 fi
19934 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19935 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19936
19937                 if test $ol_cv_pthread_create != no ; then
19938                         ol_link_threads=posix
19939                         ol_link_pthreads=""
19940                 fi
19941
19942                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19943 if test "$ol_link_threads" = no ; then
19944         # try -kthread
19945         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19946 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19947 if test "${ol_cv_pthread_kthread+set}" = set; then
19948   echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19950
19951                 # save the flags
19952                 ol_LIBS="$LIBS"
19953                 LIBS="-kthread $LIBS"
19954
19955                 if test "$cross_compiling" = yes; then
19956   cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h.  */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h.  */
19962
19963 /* pthread test headers */
19964 #include <pthread.h>
19965 #if HAVE_PTHREADS < 7
19966 #include <errno.h>
19967 #endif
19968 #ifndef NULL
19969 #define NULL (void*)0
19970 #endif
19971
19972 static void *task(p)
19973         void *p;
19974 {
19975         return (void *) (p == NULL);
19976 }
19977
19978 int
19979 main ()
19980 {
19981
19982         /* pthread test function */
19983 #ifndef PTHREAD_CREATE_DETACHED
19984 #define PTHREAD_CREATE_DETACHED 1
19985 #endif
19986         pthread_t t;
19987         int status;
19988         int detach = PTHREAD_CREATE_DETACHED;
19989
19990 #if HAVE_PTHREADS > 4
19991         /* Final pthreads */
19992         pthread_attr_t attr;
19993
19994         status = pthread_attr_init(&attr);
19995         if( status ) return status;
19996
19997 #if HAVE_PTHREADS < 7
19998         status = pthread_attr_setdetachstate(&attr, &detach);
19999         if( status < 0 ) status = errno;
20000 #else
20001         status = pthread_attr_setdetachstate(&attr, detach);
20002 #endif
20003         if( status ) return status;
20004         status = pthread_create( &t, &attr, task, NULL );
20005 #if HAVE_PTHREADS < 7
20006         if( status < 0 ) status = errno;
20007 #endif
20008         if( status ) return status;
20009 #else
20010         /* Draft 4 pthreads */
20011         status = pthread_create( &t, pthread_attr_default, task, NULL );
20012         if( status ) return errno;
20013
20014         /* give thread a chance to complete */
20015         /* it should remain joinable and hence detachable */
20016         sleep( 1 );
20017
20018         status = pthread_detach( &t );
20019         if( status ) return errno;
20020 #endif
20021
20022 #ifdef HAVE_LINUX_THREADS
20023         pthread_kill_other_threads_np();
20024 #endif
20025
20026         return 0;
20027
20028   ;
20029   return 0;
20030 }
20031 _ACEOF
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20034   (eval $ac_link) 2>conftest.er1
20035   ac_status=$?
20036   grep -v '^ *+' conftest.er1 >conftest.err
20037   rm -f conftest.er1
20038   cat conftest.err >&5
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } &&
20041          { ac_try='test -z "$ac_c_werror_flag"
20042                          || test ! -s conftest.err'
20043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044   (eval $ac_try) 2>&5
20045   ac_status=$?
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); }; } &&
20048          { ac_try='test -s conftest$ac_exeext'
20049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050   (eval $ac_try) 2>&5
20051   ac_status=$?
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); }; }; then
20054   ol_cv_pthread_kthread=yes
20055 else
20056   echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ol_cv_pthread_kthread=no
20060 fi
20061 rm -f conftest.err conftest.$ac_objext \
20062       conftest$ac_exeext conftest.$ac_ext
20063 else
20064   cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070
20071 /* pthread test headers */
20072 #include <pthread.h>
20073 #if HAVE_PTHREADS < 7
20074 #include <errno.h>
20075 #endif
20076 #ifndef NULL
20077 #define NULL (void*)0
20078 #endif
20079
20080 static void *task(p)
20081         void *p;
20082 {
20083         return (void *) (p == NULL);
20084 }
20085
20086
20087 int main(argc, argv)
20088         int argc;
20089         char **argv;
20090 {
20091
20092         /* pthread test function */
20093 #ifndef PTHREAD_CREATE_DETACHED
20094 #define PTHREAD_CREATE_DETACHED 1
20095 #endif
20096         pthread_t t;
20097         int status;
20098         int detach = PTHREAD_CREATE_DETACHED;
20099
20100 #if HAVE_PTHREADS > 4
20101         /* Final pthreads */
20102         pthread_attr_t attr;
20103
20104         status = pthread_attr_init(&attr);
20105         if( status ) return status;
20106
20107 #if HAVE_PTHREADS < 7
20108         status = pthread_attr_setdetachstate(&attr, &detach);
20109         if( status < 0 ) status = errno;
20110 #else
20111         status = pthread_attr_setdetachstate(&attr, detach);
20112 #endif
20113         if( status ) return status;
20114         status = pthread_create( &t, &attr, task, NULL );
20115 #if HAVE_PTHREADS < 7
20116         if( status < 0 ) status = errno;
20117 #endif
20118         if( status ) return status;
20119 #else
20120         /* Draft 4 pthreads */
20121         status = pthread_create( &t, pthread_attr_default, task, NULL );
20122         if( status ) return errno;
20123
20124         /* give thread a chance to complete */
20125         /* it should remain joinable and hence detachable */
20126         sleep( 1 );
20127
20128         status = pthread_detach( &t );
20129         if( status ) return errno;
20130 #endif
20131
20132 #ifdef HAVE_LINUX_THREADS
20133         pthread_kill_other_threads_np();
20134 #endif
20135
20136         return 0;
20137
20138 }
20139
20140 _ACEOF
20141 rm -f conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143   (eval $ac_link) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148   (eval $ac_try) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   ol_cv_pthread_kthread=yes
20153 else
20154   echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 ( exit $ac_status )
20159 ol_cv_pthread_kthread=no
20160 fi
20161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20162 fi
20163
20164                 # restore the LIBS
20165                 LIBS="$ol_LIBS"
20166
20167 fi
20168 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20169 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20170
20171         if test $ol_cv_pthread_kthread = yes ; then
20172                 ol_link_pthreads="-kthread"
20173                 ol_link_threads=posix
20174         fi
20175 fi
20176
20177                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20178 if test "$ol_link_threads" = no ; then
20179         # try -pthread
20180         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20181 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20182 if test "${ol_cv_pthread_pthread+set}" = set; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185
20186                 # save the flags
20187                 ol_LIBS="$LIBS"
20188                 LIBS="-pthread $LIBS"
20189
20190                 if test "$cross_compiling" = yes; then
20191   cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197
20198 /* pthread test headers */
20199 #include <pthread.h>
20200 #if HAVE_PTHREADS < 7
20201 #include <errno.h>
20202 #endif
20203 #ifndef NULL
20204 #define NULL (void*)0
20205 #endif
20206
20207 static void *task(p)
20208         void *p;
20209 {
20210         return (void *) (p == NULL);
20211 }
20212
20213 int
20214 main ()
20215 {
20216
20217         /* pthread test function */
20218 #ifndef PTHREAD_CREATE_DETACHED
20219 #define PTHREAD_CREATE_DETACHED 1
20220 #endif
20221         pthread_t t;
20222         int status;
20223         int detach = PTHREAD_CREATE_DETACHED;
20224
20225 #if HAVE_PTHREADS > 4
20226         /* Final pthreads */
20227         pthread_attr_t attr;
20228
20229         status = pthread_attr_init(&attr);
20230         if( status ) return status;
20231
20232 #if HAVE_PTHREADS < 7
20233         status = pthread_attr_setdetachstate(&attr, &detach);
20234         if( status < 0 ) status = errno;
20235 #else
20236         status = pthread_attr_setdetachstate(&attr, detach);
20237 #endif
20238         if( status ) return status;
20239         status = pthread_create( &t, &attr, task, NULL );
20240 #if HAVE_PTHREADS < 7
20241         if( status < 0 ) status = errno;
20242 #endif
20243         if( status ) return status;
20244 #else
20245         /* Draft 4 pthreads */
20246         status = pthread_create( &t, pthread_attr_default, task, NULL );
20247         if( status ) return errno;
20248
20249         /* give thread a chance to complete */
20250         /* it should remain joinable and hence detachable */
20251         sleep( 1 );
20252
20253         status = pthread_detach( &t );
20254         if( status ) return errno;
20255 #endif
20256
20257 #ifdef HAVE_LINUX_THREADS
20258         pthread_kill_other_threads_np();
20259 #endif
20260
20261         return 0;
20262
20263   ;
20264   return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext conftest$ac_exeext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20269   (eval $ac_link) 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } &&
20276          { ac_try='test -z "$ac_c_werror_flag"
20277                          || test ! -s conftest.err'
20278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279   (eval $ac_try) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; } &&
20283          { ac_try='test -s conftest$ac_exeext'
20284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285   (eval $ac_try) 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; }; then
20289   ol_cv_pthread_pthread=yes
20290 else
20291   echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294 ol_cv_pthread_pthread=no
20295 fi
20296 rm -f conftest.err conftest.$ac_objext \
20297       conftest$ac_exeext conftest.$ac_ext
20298 else
20299   cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305
20306 /* pthread test headers */
20307 #include <pthread.h>
20308 #if HAVE_PTHREADS < 7
20309 #include <errno.h>
20310 #endif
20311 #ifndef NULL
20312 #define NULL (void*)0
20313 #endif
20314
20315 static void *task(p)
20316         void *p;
20317 {
20318         return (void *) (p == NULL);
20319 }
20320
20321
20322 int main(argc, argv)
20323         int argc;
20324         char **argv;
20325 {
20326
20327         /* pthread test function */
20328 #ifndef PTHREAD_CREATE_DETACHED
20329 #define PTHREAD_CREATE_DETACHED 1
20330 #endif
20331         pthread_t t;
20332         int status;
20333         int detach = PTHREAD_CREATE_DETACHED;
20334
20335 #if HAVE_PTHREADS > 4
20336         /* Final pthreads */
20337         pthread_attr_t attr;
20338
20339         status = pthread_attr_init(&attr);
20340         if( status ) return status;
20341
20342 #if HAVE_PTHREADS < 7
20343         status = pthread_attr_setdetachstate(&attr, &detach);
20344         if( status < 0 ) status = errno;
20345 #else
20346         status = pthread_attr_setdetachstate(&attr, detach);
20347 #endif
20348         if( status ) return status;
20349         status = pthread_create( &t, &attr, task, NULL );
20350 #if HAVE_PTHREADS < 7
20351         if( status < 0 ) status = errno;
20352 #endif
20353         if( status ) return status;
20354 #else
20355         /* Draft 4 pthreads */
20356         status = pthread_create( &t, pthread_attr_default, task, NULL );
20357         if( status ) return errno;
20358
20359         /* give thread a chance to complete */
20360         /* it should remain joinable and hence detachable */
20361         sleep( 1 );
20362
20363         status = pthread_detach( &t );
20364         if( status ) return errno;
20365 #endif
20366
20367 #ifdef HAVE_LINUX_THREADS
20368         pthread_kill_other_threads_np();
20369 #endif
20370
20371         return 0;
20372
20373 }
20374
20375 _ACEOF
20376 rm -f conftest$ac_exeext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20378   (eval $ac_link) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383   (eval $ac_try) 2>&5
20384   ac_status=$?
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); }; }; then
20387   ol_cv_pthread_pthread=yes
20388 else
20389   echo "$as_me: program exited with status $ac_status" >&5
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ( exit $ac_status )
20394 ol_cv_pthread_pthread=no
20395 fi
20396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20397 fi
20398
20399                 # restore the LIBS
20400                 LIBS="$ol_LIBS"
20401
20402 fi
20403 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20404 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20405
20406         if test $ol_cv_pthread_pthread = yes ; then
20407                 ol_link_pthreads="-pthread"
20408                 ol_link_threads=posix
20409         fi
20410 fi
20411
20412                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20413 if test "$ol_link_threads" = no ; then
20414         # try -pthreads
20415         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20416 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20417 if test "${ol_cv_pthread_pthreads+set}" = set; then
20418   echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420
20421                 # save the flags
20422                 ol_LIBS="$LIBS"
20423                 LIBS="-pthreads $LIBS"
20424
20425                 if test "$cross_compiling" = yes; then
20426   cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432
20433 /* pthread test headers */
20434 #include <pthread.h>
20435 #if HAVE_PTHREADS < 7
20436 #include <errno.h>
20437 #endif
20438 #ifndef NULL
20439 #define NULL (void*)0
20440 #endif
20441
20442 static void *task(p)
20443         void *p;
20444 {
20445         return (void *) (p == NULL);
20446 }
20447
20448 int
20449 main ()
20450 {
20451
20452         /* pthread test function */
20453 #ifndef PTHREAD_CREATE_DETACHED
20454 #define PTHREAD_CREATE_DETACHED 1
20455 #endif
20456         pthread_t t;
20457         int status;
20458         int detach = PTHREAD_CREATE_DETACHED;
20459
20460 #if HAVE_PTHREADS > 4
20461         /* Final pthreads */
20462         pthread_attr_t attr;
20463
20464         status = pthread_attr_init(&attr);
20465         if( status ) return status;
20466
20467 #if HAVE_PTHREADS < 7
20468         status = pthread_attr_setdetachstate(&attr, &detach);
20469         if( status < 0 ) status = errno;
20470 #else
20471         status = pthread_attr_setdetachstate(&attr, detach);
20472 #endif
20473         if( status ) return status;
20474         status = pthread_create( &t, &attr, task, NULL );
20475 #if HAVE_PTHREADS < 7
20476         if( status < 0 ) status = errno;
20477 #endif
20478         if( status ) return status;
20479 #else
20480         /* Draft 4 pthreads */
20481         status = pthread_create( &t, pthread_attr_default, task, NULL );
20482         if( status ) return errno;
20483
20484         /* give thread a chance to complete */
20485         /* it should remain joinable and hence detachable */
20486         sleep( 1 );
20487
20488         status = pthread_detach( &t );
20489         if( status ) return errno;
20490 #endif
20491
20492 #ifdef HAVE_LINUX_THREADS
20493         pthread_kill_other_threads_np();
20494 #endif
20495
20496         return 0;
20497
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20504   (eval $ac_link) 2>conftest.er1
20505   ac_status=$?
20506   grep -v '^ *+' conftest.er1 >conftest.err
20507   rm -f conftest.er1
20508   cat conftest.err >&5
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } &&
20511          { ac_try='test -z "$ac_c_werror_flag"
20512                          || test ! -s conftest.err'
20513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514   (eval $ac_try) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); }; } &&
20518          { ac_try='test -s conftest$ac_exeext'
20519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520   (eval $ac_try) 2>&5
20521   ac_status=$?
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); }; }; then
20524   ol_cv_pthread_pthreads=yes
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 ol_cv_pthread_pthreads=no
20530 fi
20531 rm -f conftest.err conftest.$ac_objext \
20532       conftest$ac_exeext conftest.$ac_ext
20533 else
20534   cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h.  */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h.  */
20540
20541 /* pthread test headers */
20542 #include <pthread.h>
20543 #if HAVE_PTHREADS < 7
20544 #include <errno.h>
20545 #endif
20546 #ifndef NULL
20547 #define NULL (void*)0
20548 #endif
20549
20550 static void *task(p)
20551         void *p;
20552 {
20553         return (void *) (p == NULL);
20554 }
20555
20556
20557 int main(argc, argv)
20558         int argc;
20559         char **argv;
20560 {
20561
20562         /* pthread test function */
20563 #ifndef PTHREAD_CREATE_DETACHED
20564 #define PTHREAD_CREATE_DETACHED 1
20565 #endif
20566         pthread_t t;
20567         int status;
20568         int detach = PTHREAD_CREATE_DETACHED;
20569
20570 #if HAVE_PTHREADS > 4
20571         /* Final pthreads */
20572         pthread_attr_t attr;
20573
20574         status = pthread_attr_init(&attr);
20575         if( status ) return status;
20576
20577 #if HAVE_PTHREADS < 7
20578         status = pthread_attr_setdetachstate(&attr, &detach);
20579         if( status < 0 ) status = errno;
20580 #else
20581         status = pthread_attr_setdetachstate(&attr, detach);
20582 #endif
20583         if( status ) return status;
20584         status = pthread_create( &t, &attr, task, NULL );
20585 #if HAVE_PTHREADS < 7
20586         if( status < 0 ) status = errno;
20587 #endif
20588         if( status ) return status;
20589 #else
20590         /* Draft 4 pthreads */
20591         status = pthread_create( &t, pthread_attr_default, task, NULL );
20592         if( status ) return errno;
20593
20594         /* give thread a chance to complete */
20595         /* it should remain joinable and hence detachable */
20596         sleep( 1 );
20597
20598         status = pthread_detach( &t );
20599         if( status ) return errno;
20600 #endif
20601
20602 #ifdef HAVE_LINUX_THREADS
20603         pthread_kill_other_threads_np();
20604 #endif
20605
20606         return 0;
20607
20608 }
20609
20610 _ACEOF
20611 rm -f conftest$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613   (eval $ac_link) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618   (eval $ac_try) 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; }; then
20622   ol_cv_pthread_pthreads=yes
20623 else
20624   echo "$as_me: program exited with status $ac_status" >&5
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20627
20628 ( exit $ac_status )
20629 ol_cv_pthread_pthreads=no
20630 fi
20631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20632 fi
20633
20634                 # restore the LIBS
20635                 LIBS="$ol_LIBS"
20636
20637 fi
20638 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20639 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20640
20641         if test $ol_cv_pthread_pthreads = yes ; then
20642                 ol_link_pthreads="-pthreads"
20643                 ol_link_threads=posix
20644         fi
20645 fi
20646
20647                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20648 if test "$ol_link_threads" = no ; then
20649         # try -mthreads
20650         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20651 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20652 if test "${ol_cv_pthread_mthreads+set}" = set; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655
20656                 # save the flags
20657                 ol_LIBS="$LIBS"
20658                 LIBS="-mthreads $LIBS"
20659
20660                 if test "$cross_compiling" = yes; then
20661   cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667
20668 /* pthread test headers */
20669 #include <pthread.h>
20670 #if HAVE_PTHREADS < 7
20671 #include <errno.h>
20672 #endif
20673 #ifndef NULL
20674 #define NULL (void*)0
20675 #endif
20676
20677 static void *task(p)
20678         void *p;
20679 {
20680         return (void *) (p == NULL);
20681 }
20682
20683 int
20684 main ()
20685 {
20686
20687         /* pthread test function */
20688 #ifndef PTHREAD_CREATE_DETACHED
20689 #define PTHREAD_CREATE_DETACHED 1
20690 #endif
20691         pthread_t t;
20692         int status;
20693         int detach = PTHREAD_CREATE_DETACHED;
20694
20695 #if HAVE_PTHREADS > 4
20696         /* Final pthreads */
20697         pthread_attr_t attr;
20698
20699         status = pthread_attr_init(&attr);
20700         if( status ) return status;
20701
20702 #if HAVE_PTHREADS < 7
20703         status = pthread_attr_setdetachstate(&attr, &detach);
20704         if( status < 0 ) status = errno;
20705 #else
20706         status = pthread_attr_setdetachstate(&attr, detach);
20707 #endif
20708         if( status ) return status;
20709         status = pthread_create( &t, &attr, task, NULL );
20710 #if HAVE_PTHREADS < 7
20711         if( status < 0 ) status = errno;
20712 #endif
20713         if( status ) return status;
20714 #else
20715         /* Draft 4 pthreads */
20716         status = pthread_create( &t, pthread_attr_default, task, NULL );
20717         if( status ) return errno;
20718
20719         /* give thread a chance to complete */
20720         /* it should remain joinable and hence detachable */
20721         sleep( 1 );
20722
20723         status = pthread_detach( &t );
20724         if( status ) return errno;
20725 #endif
20726
20727 #ifdef HAVE_LINUX_THREADS
20728         pthread_kill_other_threads_np();
20729 #endif
20730
20731         return 0;
20732
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20739   (eval $ac_link) 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } &&
20746          { ac_try='test -z "$ac_c_werror_flag"
20747                          || test ! -s conftest.err'
20748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; } &&
20753          { ac_try='test -s conftest$ac_exeext'
20754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755   (eval $ac_try) 2>&5
20756   ac_status=$?
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); }; }; then
20759   ol_cv_pthread_mthreads=yes
20760 else
20761   echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 ol_cv_pthread_mthreads=no
20765 fi
20766 rm -f conftest.err conftest.$ac_objext \
20767       conftest$ac_exeext conftest.$ac_ext
20768 else
20769   cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h.  */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h.  */
20775
20776 /* pthread test headers */
20777 #include <pthread.h>
20778 #if HAVE_PTHREADS < 7
20779 #include <errno.h>
20780 #endif
20781 #ifndef NULL
20782 #define NULL (void*)0
20783 #endif
20784
20785 static void *task(p)
20786         void *p;
20787 {
20788         return (void *) (p == NULL);
20789 }
20790
20791
20792 int main(argc, argv)
20793         int argc;
20794         char **argv;
20795 {
20796
20797         /* pthread test function */
20798 #ifndef PTHREAD_CREATE_DETACHED
20799 #define PTHREAD_CREATE_DETACHED 1
20800 #endif
20801         pthread_t t;
20802         int status;
20803         int detach = PTHREAD_CREATE_DETACHED;
20804
20805 #if HAVE_PTHREADS > 4
20806         /* Final pthreads */
20807         pthread_attr_t attr;
20808
20809         status = pthread_attr_init(&attr);
20810         if( status ) return status;
20811
20812 #if HAVE_PTHREADS < 7
20813         status = pthread_attr_setdetachstate(&attr, &detach);
20814         if( status < 0 ) status = errno;
20815 #else
20816         status = pthread_attr_setdetachstate(&attr, detach);
20817 #endif
20818         if( status ) return status;
20819         status = pthread_create( &t, &attr, task, NULL );
20820 #if HAVE_PTHREADS < 7
20821         if( status < 0 ) status = errno;
20822 #endif
20823         if( status ) return status;
20824 #else
20825         /* Draft 4 pthreads */
20826         status = pthread_create( &t, pthread_attr_default, task, NULL );
20827         if( status ) return errno;
20828
20829         /* give thread a chance to complete */
20830         /* it should remain joinable and hence detachable */
20831         sleep( 1 );
20832
20833         status = pthread_detach( &t );
20834         if( status ) return errno;
20835 #endif
20836
20837 #ifdef HAVE_LINUX_THREADS
20838         pthread_kill_other_threads_np();
20839 #endif
20840
20841         return 0;
20842
20843 }
20844
20845 _ACEOF
20846 rm -f conftest$ac_exeext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848   (eval $ac_link) 2>&5
20849   ac_status=$?
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853   (eval $ac_try) 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); }; }; then
20857   ol_cv_pthread_mthreads=yes
20858 else
20859   echo "$as_me: program exited with status $ac_status" >&5
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ( exit $ac_status )
20864 ol_cv_pthread_mthreads=no
20865 fi
20866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20867 fi
20868
20869                 # restore the LIBS
20870                 LIBS="$ol_LIBS"
20871
20872 fi
20873 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20874 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20875
20876         if test $ol_cv_pthread_mthreads = yes ; then
20877                 ol_link_pthreads="-mthreads"
20878                 ol_link_threads=posix
20879         fi
20880 fi
20881
20882                 # Pthread try link: -thread (ol_cv_pthread_thread)
20883 if test "$ol_link_threads" = no ; then
20884         # try -thread
20885         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20886 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20887 if test "${ol_cv_pthread_thread+set}" = set; then
20888   echo $ECHO_N "(cached) $ECHO_C" >&6
20889 else
20890
20891                 # save the flags
20892                 ol_LIBS="$LIBS"
20893                 LIBS="-thread $LIBS"
20894
20895                 if test "$cross_compiling" = yes; then
20896   cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902
20903 /* pthread test headers */
20904 #include <pthread.h>
20905 #if HAVE_PTHREADS < 7
20906 #include <errno.h>
20907 #endif
20908 #ifndef NULL
20909 #define NULL (void*)0
20910 #endif
20911
20912 static void *task(p)
20913         void *p;
20914 {
20915         return (void *) (p == NULL);
20916 }
20917
20918 int
20919 main ()
20920 {
20921
20922         /* pthread test function */
20923 #ifndef PTHREAD_CREATE_DETACHED
20924 #define PTHREAD_CREATE_DETACHED 1
20925 #endif
20926         pthread_t t;
20927         int status;
20928         int detach = PTHREAD_CREATE_DETACHED;
20929
20930 #if HAVE_PTHREADS > 4
20931         /* Final pthreads */
20932         pthread_attr_t attr;
20933
20934         status = pthread_attr_init(&attr);
20935         if( status ) return status;
20936
20937 #if HAVE_PTHREADS < 7
20938         status = pthread_attr_setdetachstate(&attr, &detach);
20939         if( status < 0 ) status = errno;
20940 #else
20941         status = pthread_attr_setdetachstate(&attr, detach);
20942 #endif
20943         if( status ) return status;
20944         status = pthread_create( &t, &attr, task, NULL );
20945 #if HAVE_PTHREADS < 7
20946         if( status < 0 ) status = errno;
20947 #endif
20948         if( status ) return status;
20949 #else
20950         /* Draft 4 pthreads */
20951         status = pthread_create( &t, pthread_attr_default, task, NULL );
20952         if( status ) return errno;
20953
20954         /* give thread a chance to complete */
20955         /* it should remain joinable and hence detachable */
20956         sleep( 1 );
20957
20958         status = pthread_detach( &t );
20959         if( status ) return errno;
20960 #endif
20961
20962 #ifdef HAVE_LINUX_THREADS
20963         pthread_kill_other_threads_np();
20964 #endif
20965
20966         return 0;
20967
20968   ;
20969   return 0;
20970 }
20971 _ACEOF
20972 rm -f conftest.$ac_objext conftest$ac_exeext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20974   (eval $ac_link) 2>conftest.er1
20975   ac_status=$?
20976   grep -v '^ *+' conftest.er1 >conftest.err
20977   rm -f conftest.er1
20978   cat conftest.err >&5
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } &&
20981          { ac_try='test -z "$ac_c_werror_flag"
20982                          || test ! -s conftest.err'
20983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984   (eval $ac_try) 2>&5
20985   ac_status=$?
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); }; } &&
20988          { ac_try='test -s conftest$ac_exeext'
20989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990   (eval $ac_try) 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; }; then
20994   ol_cv_pthread_thread=yes
20995 else
20996   echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 ol_cv_pthread_thread=no
21000 fi
21001 rm -f conftest.err conftest.$ac_objext \
21002       conftest$ac_exeext conftest.$ac_ext
21003 else
21004   cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h.  */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h.  */
21010
21011 /* pthread test headers */
21012 #include <pthread.h>
21013 #if HAVE_PTHREADS < 7
21014 #include <errno.h>
21015 #endif
21016 #ifndef NULL
21017 #define NULL (void*)0
21018 #endif
21019
21020 static void *task(p)
21021         void *p;
21022 {
21023         return (void *) (p == NULL);
21024 }
21025
21026
21027 int main(argc, argv)
21028         int argc;
21029         char **argv;
21030 {
21031
21032         /* pthread test function */
21033 #ifndef PTHREAD_CREATE_DETACHED
21034 #define PTHREAD_CREATE_DETACHED 1
21035 #endif
21036         pthread_t t;
21037         int status;
21038         int detach = PTHREAD_CREATE_DETACHED;
21039
21040 #if HAVE_PTHREADS > 4
21041         /* Final pthreads */
21042         pthread_attr_t attr;
21043
21044         status = pthread_attr_init(&attr);
21045         if( status ) return status;
21046
21047 #if HAVE_PTHREADS < 7
21048         status = pthread_attr_setdetachstate(&attr, &detach);
21049         if( status < 0 ) status = errno;
21050 #else
21051         status = pthread_attr_setdetachstate(&attr, detach);
21052 #endif
21053         if( status ) return status;
21054         status = pthread_create( &t, &attr, task, NULL );
21055 #if HAVE_PTHREADS < 7
21056         if( status < 0 ) status = errno;
21057 #endif
21058         if( status ) return status;
21059 #else
21060         /* Draft 4 pthreads */
21061         status = pthread_create( &t, pthread_attr_default, task, NULL );
21062         if( status ) return errno;
21063
21064         /* give thread a chance to complete */
21065         /* it should remain joinable and hence detachable */
21066         sleep( 1 );
21067
21068         status = pthread_detach( &t );
21069         if( status ) return errno;
21070 #endif
21071
21072 #ifdef HAVE_LINUX_THREADS
21073         pthread_kill_other_threads_np();
21074 #endif
21075
21076         return 0;
21077
21078 }
21079
21080 _ACEOF
21081 rm -f conftest$ac_exeext
21082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21083   (eval $ac_link) 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088   (eval $ac_try) 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; }; then
21092   ol_cv_pthread_thread=yes
21093 else
21094   echo "$as_me: program exited with status $ac_status" >&5
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 ( exit $ac_status )
21099 ol_cv_pthread_thread=no
21100 fi
21101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21102 fi
21103
21104                 # restore the LIBS
21105                 LIBS="$ol_LIBS"
21106
21107 fi
21108 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21109 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21110
21111         if test $ol_cv_pthread_thread = yes ; then
21112                 ol_link_pthreads="-thread"
21113                 ol_link_threads=posix
21114         fi
21115 fi
21116
21117
21118                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21119 if test "$ol_link_threads" = no ; then
21120         # try -lpthread -lmach -lexc -lc_r
21121         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21122 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21123 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21124   echo $ECHO_N "(cached) $ECHO_C" >&6
21125 else
21126
21127                 # save the flags
21128                 ol_LIBS="$LIBS"
21129                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21130
21131                 if test "$cross_compiling" = yes; then
21132   cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h.  */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h.  */
21138
21139 /* pthread test headers */
21140 #include <pthread.h>
21141 #if HAVE_PTHREADS < 7
21142 #include <errno.h>
21143 #endif
21144 #ifndef NULL
21145 #define NULL (void*)0
21146 #endif
21147
21148 static void *task(p)
21149         void *p;
21150 {
21151         return (void *) (p == NULL);
21152 }
21153
21154 int
21155 main ()
21156 {
21157
21158         /* pthread test function */
21159 #ifndef PTHREAD_CREATE_DETACHED
21160 #define PTHREAD_CREATE_DETACHED 1
21161 #endif
21162         pthread_t t;
21163         int status;
21164         int detach = PTHREAD_CREATE_DETACHED;
21165
21166 #if HAVE_PTHREADS > 4
21167         /* Final pthreads */
21168         pthread_attr_t attr;
21169
21170         status = pthread_attr_init(&attr);
21171         if( status ) return status;
21172
21173 #if HAVE_PTHREADS < 7
21174         status = pthread_attr_setdetachstate(&attr, &detach);
21175         if( status < 0 ) status = errno;
21176 #else
21177         status = pthread_attr_setdetachstate(&attr, detach);
21178 #endif
21179         if( status ) return status;
21180         status = pthread_create( &t, &attr, task, NULL );
21181 #if HAVE_PTHREADS < 7
21182         if( status < 0 ) status = errno;
21183 #endif
21184         if( status ) return status;
21185 #else
21186         /* Draft 4 pthreads */
21187         status = pthread_create( &t, pthread_attr_default, task, NULL );
21188         if( status ) return errno;
21189
21190         /* give thread a chance to complete */
21191         /* it should remain joinable and hence detachable */
21192         sleep( 1 );
21193
21194         status = pthread_detach( &t );
21195         if( status ) return errno;
21196 #endif
21197
21198 #ifdef HAVE_LINUX_THREADS
21199         pthread_kill_other_threads_np();
21200 #endif
21201
21202         return 0;
21203
21204   ;
21205   return 0;
21206 }
21207 _ACEOF
21208 rm -f conftest.$ac_objext conftest$ac_exeext
21209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21210   (eval $ac_link) 2>conftest.er1
21211   ac_status=$?
21212   grep -v '^ *+' conftest.er1 >conftest.err
21213   rm -f conftest.er1
21214   cat conftest.err >&5
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); } &&
21217          { ac_try='test -z "$ac_c_werror_flag"
21218                          || test ! -s conftest.err'
21219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220   (eval $ac_try) 2>&5
21221   ac_status=$?
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); }; } &&
21224          { ac_try='test -s conftest$ac_exeext'
21225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226   (eval $ac_try) 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; }; then
21230   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21236 fi
21237 rm -f conftest.err conftest.$ac_objext \
21238       conftest$ac_exeext conftest.$ac_ext
21239 else
21240   cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h.  */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h.  */
21246
21247 /* pthread test headers */
21248 #include <pthread.h>
21249 #if HAVE_PTHREADS < 7
21250 #include <errno.h>
21251 #endif
21252 #ifndef NULL
21253 #define NULL (void*)0
21254 #endif
21255
21256 static void *task(p)
21257         void *p;
21258 {
21259         return (void *) (p == NULL);
21260 }
21261
21262
21263 int main(argc, argv)
21264         int argc;
21265         char **argv;
21266 {
21267
21268         /* pthread test function */
21269 #ifndef PTHREAD_CREATE_DETACHED
21270 #define PTHREAD_CREATE_DETACHED 1
21271 #endif
21272         pthread_t t;
21273         int status;
21274         int detach = PTHREAD_CREATE_DETACHED;
21275
21276 #if HAVE_PTHREADS > 4
21277         /* Final pthreads */
21278         pthread_attr_t attr;
21279
21280         status = pthread_attr_init(&attr);
21281         if( status ) return status;
21282
21283 #if HAVE_PTHREADS < 7
21284         status = pthread_attr_setdetachstate(&attr, &detach);
21285         if( status < 0 ) status = errno;
21286 #else
21287         status = pthread_attr_setdetachstate(&attr, detach);
21288 #endif
21289         if( status ) return status;
21290         status = pthread_create( &t, &attr, task, NULL );
21291 #if HAVE_PTHREADS < 7
21292         if( status < 0 ) status = errno;
21293 #endif
21294         if( status ) return status;
21295 #else
21296         /* Draft 4 pthreads */
21297         status = pthread_create( &t, pthread_attr_default, task, NULL );
21298         if( status ) return errno;
21299
21300         /* give thread a chance to complete */
21301         /* it should remain joinable and hence detachable */
21302         sleep( 1 );
21303
21304         status = pthread_detach( &t );
21305         if( status ) return errno;
21306 #endif
21307
21308 #ifdef HAVE_LINUX_THREADS
21309         pthread_kill_other_threads_np();
21310 #endif
21311
21312         return 0;
21313
21314 }
21315
21316 _ACEOF
21317 rm -f conftest$ac_exeext
21318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21319   (eval $ac_link) 2>&5
21320   ac_status=$?
21321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324   (eval $ac_try) 2>&5
21325   ac_status=$?
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); }; }; then
21328   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21329 else
21330   echo "$as_me: program exited with status $ac_status" >&5
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334 ( exit $ac_status )
21335 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21336 fi
21337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21338 fi
21339
21340                 # restore the LIBS
21341                 LIBS="$ol_LIBS"
21342
21343 fi
21344 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21345 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21346
21347         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21348                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21349                 ol_link_threads=posix
21350         fi
21351 fi
21352
21353                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21354 if test "$ol_link_threads" = no ; then
21355         # try -lpthread -lmach -lexc
21356         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21357 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21358 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21359   echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361
21362                 # save the flags
21363                 ol_LIBS="$LIBS"
21364                 LIBS="-lpthread -lmach -lexc $LIBS"
21365
21366                 if test "$cross_compiling" = yes; then
21367   cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h.  */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h.  */
21373
21374 /* pthread test headers */
21375 #include <pthread.h>
21376 #if HAVE_PTHREADS < 7
21377 #include <errno.h>
21378 #endif
21379 #ifndef NULL
21380 #define NULL (void*)0
21381 #endif
21382
21383 static void *task(p)
21384         void *p;
21385 {
21386         return (void *) (p == NULL);
21387 }
21388
21389 int
21390 main ()
21391 {
21392
21393         /* pthread test function */
21394 #ifndef PTHREAD_CREATE_DETACHED
21395 #define PTHREAD_CREATE_DETACHED 1
21396 #endif
21397         pthread_t t;
21398         int status;
21399         int detach = PTHREAD_CREATE_DETACHED;
21400
21401 #if HAVE_PTHREADS > 4
21402         /* Final pthreads */
21403         pthread_attr_t attr;
21404
21405         status = pthread_attr_init(&attr);
21406         if( status ) return status;
21407
21408 #if HAVE_PTHREADS < 7
21409         status = pthread_attr_setdetachstate(&attr, &detach);
21410         if( status < 0 ) status = errno;
21411 #else
21412         status = pthread_attr_setdetachstate(&attr, detach);
21413 #endif
21414         if( status ) return status;
21415         status = pthread_create( &t, &attr, task, NULL );
21416 #if HAVE_PTHREADS < 7
21417         if( status < 0 ) status = errno;
21418 #endif
21419         if( status ) return status;
21420 #else
21421         /* Draft 4 pthreads */
21422         status = pthread_create( &t, pthread_attr_default, task, NULL );
21423         if( status ) return errno;
21424
21425         /* give thread a chance to complete */
21426         /* it should remain joinable and hence detachable */
21427         sleep( 1 );
21428
21429         status = pthread_detach( &t );
21430         if( status ) return errno;
21431 #endif
21432
21433 #ifdef HAVE_LINUX_THREADS
21434         pthread_kill_other_threads_np();
21435 #endif
21436
21437         return 0;
21438
21439   ;
21440   return 0;
21441 }
21442 _ACEOF
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445   (eval $ac_link) 2>conftest.er1
21446   ac_status=$?
21447   grep -v '^ *+' conftest.er1 >conftest.err
21448   rm -f conftest.er1
21449   cat conftest.err >&5
21450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); } &&
21452          { ac_try='test -z "$ac_c_werror_flag"
21453                          || test ! -s conftest.err'
21454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455   (eval $ac_try) 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); }; } &&
21459          { ac_try='test -s conftest$ac_exeext'
21460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461   (eval $ac_try) 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; }; then
21465   ol_cv_pthread_lpthread_lmach_lexc=yes
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ol_cv_pthread_lpthread_lmach_lexc=no
21471 fi
21472 rm -f conftest.err conftest.$ac_objext \
21473       conftest$ac_exeext conftest.$ac_ext
21474 else
21475   cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481
21482 /* pthread test headers */
21483 #include <pthread.h>
21484 #if HAVE_PTHREADS < 7
21485 #include <errno.h>
21486 #endif
21487 #ifndef NULL
21488 #define NULL (void*)0
21489 #endif
21490
21491 static void *task(p)
21492         void *p;
21493 {
21494         return (void *) (p == NULL);
21495 }
21496
21497
21498 int main(argc, argv)
21499         int argc;
21500         char **argv;
21501 {
21502
21503         /* pthread test function */
21504 #ifndef PTHREAD_CREATE_DETACHED
21505 #define PTHREAD_CREATE_DETACHED 1
21506 #endif
21507         pthread_t t;
21508         int status;
21509         int detach = PTHREAD_CREATE_DETACHED;
21510
21511 #if HAVE_PTHREADS > 4
21512         /* Final pthreads */
21513         pthread_attr_t attr;
21514
21515         status = pthread_attr_init(&attr);
21516         if( status ) return status;
21517
21518 #if HAVE_PTHREADS < 7
21519         status = pthread_attr_setdetachstate(&attr, &detach);
21520         if( status < 0 ) status = errno;
21521 #else
21522         status = pthread_attr_setdetachstate(&attr, detach);
21523 #endif
21524         if( status ) return status;
21525         status = pthread_create( &t, &attr, task, NULL );
21526 #if HAVE_PTHREADS < 7
21527         if( status < 0 ) status = errno;
21528 #endif
21529         if( status ) return status;
21530 #else
21531         /* Draft 4 pthreads */
21532         status = pthread_create( &t, pthread_attr_default, task, NULL );
21533         if( status ) return errno;
21534
21535         /* give thread a chance to complete */
21536         /* it should remain joinable and hence detachable */
21537         sleep( 1 );
21538
21539         status = pthread_detach( &t );
21540         if( status ) return errno;
21541 #endif
21542
21543 #ifdef HAVE_LINUX_THREADS
21544         pthread_kill_other_threads_np();
21545 #endif
21546
21547         return 0;
21548
21549 }
21550
21551 _ACEOF
21552 rm -f conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554   (eval $ac_link) 2>&5
21555   ac_status=$?
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; }; then
21563   ol_cv_pthread_lpthread_lmach_lexc=yes
21564 else
21565   echo "$as_me: program exited with status $ac_status" >&5
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21568
21569 ( exit $ac_status )
21570 ol_cv_pthread_lpthread_lmach_lexc=no
21571 fi
21572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21573 fi
21574
21575                 # restore the LIBS
21576                 LIBS="$ol_LIBS"
21577
21578 fi
21579 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21580 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21581
21582         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21583                 ol_link_pthreads="-lpthread -lmach -lexc"
21584                 ol_link_threads=posix
21585         fi
21586 fi
21587
21588
21589                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21590 if test "$ol_link_threads" = no ; then
21591         # try -lpthread -Wl,-woff,85
21592         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21593 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21594 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21595   echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597
21598                 # save the flags
21599                 ol_LIBS="$LIBS"
21600                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21601
21602                 if test "$cross_compiling" = yes; then
21603   cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609
21610 /* pthread test headers */
21611 #include <pthread.h>
21612 #if HAVE_PTHREADS < 7
21613 #include <errno.h>
21614 #endif
21615 #ifndef NULL
21616 #define NULL (void*)0
21617 #endif
21618
21619 static void *task(p)
21620         void *p;
21621 {
21622         return (void *) (p == NULL);
21623 }
21624
21625 int
21626 main ()
21627 {
21628
21629         /* pthread test function */
21630 #ifndef PTHREAD_CREATE_DETACHED
21631 #define PTHREAD_CREATE_DETACHED 1
21632 #endif
21633         pthread_t t;
21634         int status;
21635         int detach = PTHREAD_CREATE_DETACHED;
21636
21637 #if HAVE_PTHREADS > 4
21638         /* Final pthreads */
21639         pthread_attr_t attr;
21640
21641         status = pthread_attr_init(&attr);
21642         if( status ) return status;
21643
21644 #if HAVE_PTHREADS < 7
21645         status = pthread_attr_setdetachstate(&attr, &detach);
21646         if( status < 0 ) status = errno;
21647 #else
21648         status = pthread_attr_setdetachstate(&attr, detach);
21649 #endif
21650         if( status ) return status;
21651         status = pthread_create( &t, &attr, task, NULL );
21652 #if HAVE_PTHREADS < 7
21653         if( status < 0 ) status = errno;
21654 #endif
21655         if( status ) return status;
21656 #else
21657         /* Draft 4 pthreads */
21658         status = pthread_create( &t, pthread_attr_default, task, NULL );
21659         if( status ) return errno;
21660
21661         /* give thread a chance to complete */
21662         /* it should remain joinable and hence detachable */
21663         sleep( 1 );
21664
21665         status = pthread_detach( &t );
21666         if( status ) return errno;
21667 #endif
21668
21669 #ifdef HAVE_LINUX_THREADS
21670         pthread_kill_other_threads_np();
21671 #endif
21672
21673         return 0;
21674
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext conftest$ac_exeext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681   (eval $ac_link) 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } &&
21688          { ac_try='test -z "$ac_c_werror_flag"
21689                          || test ! -s conftest.err'
21690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691   (eval $ac_try) 2>&5
21692   ac_status=$?
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); }; } &&
21695          { ac_try='test -s conftest$ac_exeext'
21696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697   (eval $ac_try) 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; }; then
21701   ol_cv_pthread_lib_lpthread_woff=yes
21702 else
21703   echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706 ol_cv_pthread_lib_lpthread_woff=no
21707 fi
21708 rm -f conftest.err conftest.$ac_objext \
21709       conftest$ac_exeext conftest.$ac_ext
21710 else
21711   cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717
21718 /* pthread test headers */
21719 #include <pthread.h>
21720 #if HAVE_PTHREADS < 7
21721 #include <errno.h>
21722 #endif
21723 #ifndef NULL
21724 #define NULL (void*)0
21725 #endif
21726
21727 static void *task(p)
21728         void *p;
21729 {
21730         return (void *) (p == NULL);
21731 }
21732
21733
21734 int main(argc, argv)
21735         int argc;
21736         char **argv;
21737 {
21738
21739         /* pthread test function */
21740 #ifndef PTHREAD_CREATE_DETACHED
21741 #define PTHREAD_CREATE_DETACHED 1
21742 #endif
21743         pthread_t t;
21744         int status;
21745         int detach = PTHREAD_CREATE_DETACHED;
21746
21747 #if HAVE_PTHREADS > 4
21748         /* Final pthreads */
21749         pthread_attr_t attr;
21750
21751         status = pthread_attr_init(&attr);
21752         if( status ) return status;
21753
21754 #if HAVE_PTHREADS < 7
21755         status = pthread_attr_setdetachstate(&attr, &detach);
21756         if( status < 0 ) status = errno;
21757 #else
21758         status = pthread_attr_setdetachstate(&attr, detach);
21759 #endif
21760         if( status ) return status;
21761         status = pthread_create( &t, &attr, task, NULL );
21762 #if HAVE_PTHREADS < 7
21763         if( status < 0 ) status = errno;
21764 #endif
21765         if( status ) return status;
21766 #else
21767         /* Draft 4 pthreads */
21768         status = pthread_create( &t, pthread_attr_default, task, NULL );
21769         if( status ) return errno;
21770
21771         /* give thread a chance to complete */
21772         /* it should remain joinable and hence detachable */
21773         sleep( 1 );
21774
21775         status = pthread_detach( &t );
21776         if( status ) return errno;
21777 #endif
21778
21779 #ifdef HAVE_LINUX_THREADS
21780         pthread_kill_other_threads_np();
21781 #endif
21782
21783         return 0;
21784
21785 }
21786
21787 _ACEOF
21788 rm -f conftest$ac_exeext
21789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21790   (eval $ac_link) 2>&5
21791   ac_status=$?
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; }; then
21799   ol_cv_pthread_lib_lpthread_woff=yes
21800 else
21801   echo "$as_me: program exited with status $ac_status" >&5
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21804
21805 ( exit $ac_status )
21806 ol_cv_pthread_lib_lpthread_woff=no
21807 fi
21808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21809 fi
21810
21811                 # restore the LIBS
21812                 LIBS="$ol_LIBS"
21813
21814 fi
21815 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21816 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21817
21818         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21819                 ol_link_pthreads="-lpthread -Wl,-woff,85"
21820                 ol_link_threads=posix
21821         fi
21822 fi
21823
21824
21825                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21826 if test "$ol_link_threads" = no ; then
21827         # try -lpthread
21828         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21829 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21830 if test "${ol_cv_pthread_lpthread+set}" = set; then
21831   echo $ECHO_N "(cached) $ECHO_C" >&6
21832 else
21833
21834                 # save the flags
21835                 ol_LIBS="$LIBS"
21836                 LIBS="-lpthread $LIBS"
21837
21838                 if test "$cross_compiling" = yes; then
21839   cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845
21846 /* pthread test headers */
21847 #include <pthread.h>
21848 #if HAVE_PTHREADS < 7
21849 #include <errno.h>
21850 #endif
21851 #ifndef NULL
21852 #define NULL (void*)0
21853 #endif
21854
21855 static void *task(p)
21856         void *p;
21857 {
21858         return (void *) (p == NULL);
21859 }
21860
21861 int
21862 main ()
21863 {
21864
21865         /* pthread test function */
21866 #ifndef PTHREAD_CREATE_DETACHED
21867 #define PTHREAD_CREATE_DETACHED 1
21868 #endif
21869         pthread_t t;
21870         int status;
21871         int detach = PTHREAD_CREATE_DETACHED;
21872
21873 #if HAVE_PTHREADS > 4
21874         /* Final pthreads */
21875         pthread_attr_t attr;
21876
21877         status = pthread_attr_init(&attr);
21878         if( status ) return status;
21879
21880 #if HAVE_PTHREADS < 7
21881         status = pthread_attr_setdetachstate(&attr, &detach);
21882         if( status < 0 ) status = errno;
21883 #else
21884         status = pthread_attr_setdetachstate(&attr, detach);
21885 #endif
21886         if( status ) return status;
21887         status = pthread_create( &t, &attr, task, NULL );
21888 #if HAVE_PTHREADS < 7
21889         if( status < 0 ) status = errno;
21890 #endif
21891         if( status ) return status;
21892 #else
21893         /* Draft 4 pthreads */
21894         status = pthread_create( &t, pthread_attr_default, task, NULL );
21895         if( status ) return errno;
21896
21897         /* give thread a chance to complete */
21898         /* it should remain joinable and hence detachable */
21899         sleep( 1 );
21900
21901         status = pthread_detach( &t );
21902         if( status ) return errno;
21903 #endif
21904
21905 #ifdef HAVE_LINUX_THREADS
21906         pthread_kill_other_threads_np();
21907 #endif
21908
21909         return 0;
21910
21911   ;
21912   return 0;
21913 }
21914 _ACEOF
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21917   (eval $ac_link) 2>conftest.er1
21918   ac_status=$?
21919   grep -v '^ *+' conftest.er1 >conftest.err
21920   rm -f conftest.er1
21921   cat conftest.err >&5
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } &&
21924          { ac_try='test -z "$ac_c_werror_flag"
21925                          || test ! -s conftest.err'
21926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927   (eval $ac_try) 2>&5
21928   ac_status=$?
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); }; } &&
21931          { ac_try='test -s conftest$ac_exeext'
21932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933   (eval $ac_try) 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; }; then
21937   ol_cv_pthread_lpthread=yes
21938 else
21939   echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 ol_cv_pthread_lpthread=no
21943 fi
21944 rm -f conftest.err conftest.$ac_objext \
21945       conftest$ac_exeext conftest.$ac_ext
21946 else
21947   cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h.  */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h.  */
21953
21954 /* pthread test headers */
21955 #include <pthread.h>
21956 #if HAVE_PTHREADS < 7
21957 #include <errno.h>
21958 #endif
21959 #ifndef NULL
21960 #define NULL (void*)0
21961 #endif
21962
21963 static void *task(p)
21964         void *p;
21965 {
21966         return (void *) (p == NULL);
21967 }
21968
21969
21970 int main(argc, argv)
21971         int argc;
21972         char **argv;
21973 {
21974
21975         /* pthread test function */
21976 #ifndef PTHREAD_CREATE_DETACHED
21977 #define PTHREAD_CREATE_DETACHED 1
21978 #endif
21979         pthread_t t;
21980         int status;
21981         int detach = PTHREAD_CREATE_DETACHED;
21982
21983 #if HAVE_PTHREADS > 4
21984         /* Final pthreads */
21985         pthread_attr_t attr;
21986
21987         status = pthread_attr_init(&attr);
21988         if( status ) return status;
21989
21990 #if HAVE_PTHREADS < 7
21991         status = pthread_attr_setdetachstate(&attr, &detach);
21992         if( status < 0 ) status = errno;
21993 #else
21994         status = pthread_attr_setdetachstate(&attr, detach);
21995 #endif
21996         if( status ) return status;
21997         status = pthread_create( &t, &attr, task, NULL );
21998 #if HAVE_PTHREADS < 7
21999         if( status < 0 ) status = errno;
22000 #endif
22001         if( status ) return status;
22002 #else
22003         /* Draft 4 pthreads */
22004         status = pthread_create( &t, pthread_attr_default, task, NULL );
22005         if( status ) return errno;
22006
22007         /* give thread a chance to complete */
22008         /* it should remain joinable and hence detachable */
22009         sleep( 1 );
22010
22011         status = pthread_detach( &t );
22012         if( status ) return errno;
22013 #endif
22014
22015 #ifdef HAVE_LINUX_THREADS
22016         pthread_kill_other_threads_np();
22017 #endif
22018
22019         return 0;
22020
22021 }
22022
22023 _ACEOF
22024 rm -f conftest$ac_exeext
22025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22026   (eval $ac_link) 2>&5
22027   ac_status=$?
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031   (eval $ac_try) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; }; then
22035   ol_cv_pthread_lpthread=yes
22036 else
22037   echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041 ( exit $ac_status )
22042 ol_cv_pthread_lpthread=no
22043 fi
22044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 fi
22046
22047                 # restore the LIBS
22048                 LIBS="$ol_LIBS"
22049
22050 fi
22051 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22052 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22053
22054         if test $ol_cv_pthread_lpthread = yes ; then
22055                 ol_link_pthreads="-lpthread"
22056                 ol_link_threads=posix
22057         fi
22058 fi
22059
22060                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22061 if test "$ol_link_threads" = no ; then
22062         # try -lc_r
22063         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22064 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22065 if test "${ol_cv_pthread_lc_r+set}" = set; then
22066   echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068
22069                 # save the flags
22070                 ol_LIBS="$LIBS"
22071                 LIBS="-lc_r $LIBS"
22072
22073                 if test "$cross_compiling" = yes; then
22074   cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080
22081 /* pthread test headers */
22082 #include <pthread.h>
22083 #if HAVE_PTHREADS < 7
22084 #include <errno.h>
22085 #endif
22086 #ifndef NULL
22087 #define NULL (void*)0
22088 #endif
22089
22090 static void *task(p)
22091         void *p;
22092 {
22093         return (void *) (p == NULL);
22094 }
22095
22096 int
22097 main ()
22098 {
22099
22100         /* pthread test function */
22101 #ifndef PTHREAD_CREATE_DETACHED
22102 #define PTHREAD_CREATE_DETACHED 1
22103 #endif
22104         pthread_t t;
22105         int status;
22106         int detach = PTHREAD_CREATE_DETACHED;
22107
22108 #if HAVE_PTHREADS > 4
22109         /* Final pthreads */
22110         pthread_attr_t attr;
22111
22112         status = pthread_attr_init(&attr);
22113         if( status ) return status;
22114
22115 #if HAVE_PTHREADS < 7
22116         status = pthread_attr_setdetachstate(&attr, &detach);
22117         if( status < 0 ) status = errno;
22118 #else
22119         status = pthread_attr_setdetachstate(&attr, detach);
22120 #endif
22121         if( status ) return status;
22122         status = pthread_create( &t, &attr, task, NULL );
22123 #if HAVE_PTHREADS < 7
22124         if( status < 0 ) status = errno;
22125 #endif
22126         if( status ) return status;
22127 #else
22128         /* Draft 4 pthreads */
22129         status = pthread_create( &t, pthread_attr_default, task, NULL );
22130         if( status ) return errno;
22131
22132         /* give thread a chance to complete */
22133         /* it should remain joinable and hence detachable */
22134         sleep( 1 );
22135
22136         status = pthread_detach( &t );
22137         if( status ) return errno;
22138 #endif
22139
22140 #ifdef HAVE_LINUX_THREADS
22141         pthread_kill_other_threads_np();
22142 #endif
22143
22144         return 0;
22145
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152   (eval $ac_link) 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } &&
22159          { ac_try='test -z "$ac_c_werror_flag"
22160                          || test ! -s conftest.err'
22161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162   (eval $ac_try) 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); }; } &&
22166          { ac_try='test -s conftest$ac_exeext'
22167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168   (eval $ac_try) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); }; }; then
22172   ol_cv_pthread_lc_r=yes
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ol_cv_pthread_lc_r=no
22178 fi
22179 rm -f conftest.err conftest.$ac_objext \
22180       conftest$ac_exeext conftest.$ac_ext
22181 else
22182   cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h.  */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h.  */
22188
22189 /* pthread test headers */
22190 #include <pthread.h>
22191 #if HAVE_PTHREADS < 7
22192 #include <errno.h>
22193 #endif
22194 #ifndef NULL
22195 #define NULL (void*)0
22196 #endif
22197
22198 static void *task(p)
22199         void *p;
22200 {
22201         return (void *) (p == NULL);
22202 }
22203
22204
22205 int main(argc, argv)
22206         int argc;
22207         char **argv;
22208 {
22209
22210         /* pthread test function */
22211 #ifndef PTHREAD_CREATE_DETACHED
22212 #define PTHREAD_CREATE_DETACHED 1
22213 #endif
22214         pthread_t t;
22215         int status;
22216         int detach = PTHREAD_CREATE_DETACHED;
22217
22218 #if HAVE_PTHREADS > 4
22219         /* Final pthreads */
22220         pthread_attr_t attr;
22221
22222         status = pthread_attr_init(&attr);
22223         if( status ) return status;
22224
22225 #if HAVE_PTHREADS < 7
22226         status = pthread_attr_setdetachstate(&attr, &detach);
22227         if( status < 0 ) status = errno;
22228 #else
22229         status = pthread_attr_setdetachstate(&attr, detach);
22230 #endif
22231         if( status ) return status;
22232         status = pthread_create( &t, &attr, task, NULL );
22233 #if HAVE_PTHREADS < 7
22234         if( status < 0 ) status = errno;
22235 #endif
22236         if( status ) return status;
22237 #else
22238         /* Draft 4 pthreads */
22239         status = pthread_create( &t, pthread_attr_default, task, NULL );
22240         if( status ) return errno;
22241
22242         /* give thread a chance to complete */
22243         /* it should remain joinable and hence detachable */
22244         sleep( 1 );
22245
22246         status = pthread_detach( &t );
22247         if( status ) return errno;
22248 #endif
22249
22250 #ifdef HAVE_LINUX_THREADS
22251         pthread_kill_other_threads_np();
22252 #endif
22253
22254         return 0;
22255
22256 }
22257
22258 _ACEOF
22259 rm -f conftest$ac_exeext
22260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22261   (eval $ac_link) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; }; then
22270   ol_cv_pthread_lc_r=yes
22271 else
22272   echo "$as_me: program exited with status $ac_status" >&5
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 ( exit $ac_status )
22277 ol_cv_pthread_lc_r=no
22278 fi
22279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22280 fi
22281
22282                 # restore the LIBS
22283                 LIBS="$ol_LIBS"
22284
22285 fi
22286 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22287 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22288
22289         if test $ol_cv_pthread_lc_r = yes ; then
22290                 ol_link_pthreads="-lc_r"
22291                 ol_link_threads=posix
22292         fi
22293 fi
22294
22295
22296                 # Pthread try link: -threads (ol_cv_pthread_threads)
22297 if test "$ol_link_threads" = no ; then
22298         # try -threads
22299         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22300 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22301 if test "${ol_cv_pthread_threads+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304
22305                 # save the flags
22306                 ol_LIBS="$LIBS"
22307                 LIBS="-threads $LIBS"
22308
22309                 if test "$cross_compiling" = yes; then
22310   cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h.  */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h.  */
22316
22317 /* pthread test headers */
22318 #include <pthread.h>
22319 #if HAVE_PTHREADS < 7
22320 #include <errno.h>
22321 #endif
22322 #ifndef NULL
22323 #define NULL (void*)0
22324 #endif
22325
22326 static void *task(p)
22327         void *p;
22328 {
22329         return (void *) (p == NULL);
22330 }
22331
22332 int
22333 main ()
22334 {
22335
22336         /* pthread test function */
22337 #ifndef PTHREAD_CREATE_DETACHED
22338 #define PTHREAD_CREATE_DETACHED 1
22339 #endif
22340         pthread_t t;
22341         int status;
22342         int detach = PTHREAD_CREATE_DETACHED;
22343
22344 #if HAVE_PTHREADS > 4
22345         /* Final pthreads */
22346         pthread_attr_t attr;
22347
22348         status = pthread_attr_init(&attr);
22349         if( status ) return status;
22350
22351 #if HAVE_PTHREADS < 7
22352         status = pthread_attr_setdetachstate(&attr, &detach);
22353         if( status < 0 ) status = errno;
22354 #else
22355         status = pthread_attr_setdetachstate(&attr, detach);
22356 #endif
22357         if( status ) return status;
22358         status = pthread_create( &t, &attr, task, NULL );
22359 #if HAVE_PTHREADS < 7
22360         if( status < 0 ) status = errno;
22361 #endif
22362         if( status ) return status;
22363 #else
22364         /* Draft 4 pthreads */
22365         status = pthread_create( &t, pthread_attr_default, task, NULL );
22366         if( status ) return errno;
22367
22368         /* give thread a chance to complete */
22369         /* it should remain joinable and hence detachable */
22370         sleep( 1 );
22371
22372         status = pthread_detach( &t );
22373         if( status ) return errno;
22374 #endif
22375
22376 #ifdef HAVE_LINUX_THREADS
22377         pthread_kill_other_threads_np();
22378 #endif
22379
22380         return 0;
22381
22382   ;
22383   return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22388   (eval $ac_link) 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } &&
22395          { ac_try='test -z "$ac_c_werror_flag"
22396                          || test ! -s conftest.err'
22397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398   (eval $ac_try) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }; } &&
22402          { ac_try='test -s conftest$ac_exeext'
22403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404   (eval $ac_try) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); }; }; then
22408   ol_cv_pthread_threads=yes
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413 ol_cv_pthread_threads=no
22414 fi
22415 rm -f conftest.err conftest.$ac_objext \
22416       conftest$ac_exeext conftest.$ac_ext
22417 else
22418   cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424
22425 /* pthread test headers */
22426 #include <pthread.h>
22427 #if HAVE_PTHREADS < 7
22428 #include <errno.h>
22429 #endif
22430 #ifndef NULL
22431 #define NULL (void*)0
22432 #endif
22433
22434 static void *task(p)
22435         void *p;
22436 {
22437         return (void *) (p == NULL);
22438 }
22439
22440
22441 int main(argc, argv)
22442         int argc;
22443         char **argv;
22444 {
22445
22446         /* pthread test function */
22447 #ifndef PTHREAD_CREATE_DETACHED
22448 #define PTHREAD_CREATE_DETACHED 1
22449 #endif
22450         pthread_t t;
22451         int status;
22452         int detach = PTHREAD_CREATE_DETACHED;
22453
22454 #if HAVE_PTHREADS > 4
22455         /* Final pthreads */
22456         pthread_attr_t attr;
22457
22458         status = pthread_attr_init(&attr);
22459         if( status ) return status;
22460
22461 #if HAVE_PTHREADS < 7
22462         status = pthread_attr_setdetachstate(&attr, &detach);
22463         if( status < 0 ) status = errno;
22464 #else
22465         status = pthread_attr_setdetachstate(&attr, detach);
22466 #endif
22467         if( status ) return status;
22468         status = pthread_create( &t, &attr, task, NULL );
22469 #if HAVE_PTHREADS < 7
22470         if( status < 0 ) status = errno;
22471 #endif
22472         if( status ) return status;
22473 #else
22474         /* Draft 4 pthreads */
22475         status = pthread_create( &t, pthread_attr_default, task, NULL );
22476         if( status ) return errno;
22477
22478         /* give thread a chance to complete */
22479         /* it should remain joinable and hence detachable */
22480         sleep( 1 );
22481
22482         status = pthread_detach( &t );
22483         if( status ) return errno;
22484 #endif
22485
22486 #ifdef HAVE_LINUX_THREADS
22487         pthread_kill_other_threads_np();
22488 #endif
22489
22490         return 0;
22491
22492 }
22493
22494 _ACEOF
22495 rm -f conftest$ac_exeext
22496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22497   (eval $ac_link) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502   (eval $ac_try) 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); }; }; then
22506   ol_cv_pthread_threads=yes
22507 else
22508   echo "$as_me: program exited with status $ac_status" >&5
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22511
22512 ( exit $ac_status )
22513 ol_cv_pthread_threads=no
22514 fi
22515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22516 fi
22517
22518                 # restore the LIBS
22519                 LIBS="$ol_LIBS"
22520
22521 fi
22522 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22523 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22524
22525         if test $ol_cv_pthread_threads = yes ; then
22526                 ol_link_pthreads="-threads"
22527                 ol_link_threads=posix
22528         fi
22529 fi
22530
22531
22532                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22533 if test "$ol_link_threads" = no ; then
22534         # try -lpthreads -lmach -lexc -lc_r
22535         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22536 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22537 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22538   echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540
22541                 # save the flags
22542                 ol_LIBS="$LIBS"
22543                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22544
22545                 if test "$cross_compiling" = yes; then
22546   cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552
22553 /* pthread test headers */
22554 #include <pthread.h>
22555 #if HAVE_PTHREADS < 7
22556 #include <errno.h>
22557 #endif
22558 #ifndef NULL
22559 #define NULL (void*)0
22560 #endif
22561
22562 static void *task(p)
22563         void *p;
22564 {
22565         return (void *) (p == NULL);
22566 }
22567
22568 int
22569 main ()
22570 {
22571
22572         /* pthread test function */
22573 #ifndef PTHREAD_CREATE_DETACHED
22574 #define PTHREAD_CREATE_DETACHED 1
22575 #endif
22576         pthread_t t;
22577         int status;
22578         int detach = PTHREAD_CREATE_DETACHED;
22579
22580 #if HAVE_PTHREADS > 4
22581         /* Final pthreads */
22582         pthread_attr_t attr;
22583
22584         status = pthread_attr_init(&attr);
22585         if( status ) return status;
22586
22587 #if HAVE_PTHREADS < 7
22588         status = pthread_attr_setdetachstate(&attr, &detach);
22589         if( status < 0 ) status = errno;
22590 #else
22591         status = pthread_attr_setdetachstate(&attr, detach);
22592 #endif
22593         if( status ) return status;
22594         status = pthread_create( &t, &attr, task, NULL );
22595 #if HAVE_PTHREADS < 7
22596         if( status < 0 ) status = errno;
22597 #endif
22598         if( status ) return status;
22599 #else
22600         /* Draft 4 pthreads */
22601         status = pthread_create( &t, pthread_attr_default, task, NULL );
22602         if( status ) return errno;
22603
22604         /* give thread a chance to complete */
22605         /* it should remain joinable and hence detachable */
22606         sleep( 1 );
22607
22608         status = pthread_detach( &t );
22609         if( status ) return errno;
22610 #endif
22611
22612 #ifdef HAVE_LINUX_THREADS
22613         pthread_kill_other_threads_np();
22614 #endif
22615
22616         return 0;
22617
22618   ;
22619   return 0;
22620 }
22621 _ACEOF
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624   (eval $ac_link) 2>conftest.er1
22625   ac_status=$?
22626   grep -v '^ *+' conftest.er1 >conftest.err
22627   rm -f conftest.er1
22628   cat conftest.err >&5
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } &&
22631          { ac_try='test -z "$ac_c_werror_flag"
22632                          || test ! -s conftest.err'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; } &&
22638          { ac_try='test -s conftest$ac_exeext'
22639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640   (eval $ac_try) 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; }; then
22644   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22650 fi
22651 rm -f conftest.err conftest.$ac_objext \
22652       conftest$ac_exeext conftest.$ac_ext
22653 else
22654   cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h.  */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h.  */
22660
22661 /* pthread test headers */
22662 #include <pthread.h>
22663 #if HAVE_PTHREADS < 7
22664 #include <errno.h>
22665 #endif
22666 #ifndef NULL
22667 #define NULL (void*)0
22668 #endif
22669
22670 static void *task(p)
22671         void *p;
22672 {
22673         return (void *) (p == NULL);
22674 }
22675
22676
22677 int main(argc, argv)
22678         int argc;
22679         char **argv;
22680 {
22681
22682         /* pthread test function */
22683 #ifndef PTHREAD_CREATE_DETACHED
22684 #define PTHREAD_CREATE_DETACHED 1
22685 #endif
22686         pthread_t t;
22687         int status;
22688         int detach = PTHREAD_CREATE_DETACHED;
22689
22690 #if HAVE_PTHREADS > 4
22691         /* Final pthreads */
22692         pthread_attr_t attr;
22693
22694         status = pthread_attr_init(&attr);
22695         if( status ) return status;
22696
22697 #if HAVE_PTHREADS < 7
22698         status = pthread_attr_setdetachstate(&attr, &detach);
22699         if( status < 0 ) status = errno;
22700 #else
22701         status = pthread_attr_setdetachstate(&attr, detach);
22702 #endif
22703         if( status ) return status;
22704         status = pthread_create( &t, &attr, task, NULL );
22705 #if HAVE_PTHREADS < 7
22706         if( status < 0 ) status = errno;
22707 #endif
22708         if( status ) return status;
22709 #else
22710         /* Draft 4 pthreads */
22711         status = pthread_create( &t, pthread_attr_default, task, NULL );
22712         if( status ) return errno;
22713
22714         /* give thread a chance to complete */
22715         /* it should remain joinable and hence detachable */
22716         sleep( 1 );
22717
22718         status = pthread_detach( &t );
22719         if( status ) return errno;
22720 #endif
22721
22722 #ifdef HAVE_LINUX_THREADS
22723         pthread_kill_other_threads_np();
22724 #endif
22725
22726         return 0;
22727
22728 }
22729
22730 _ACEOF
22731 rm -f conftest$ac_exeext
22732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22733   (eval $ac_link) 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738   (eval $ac_try) 2>&5
22739   ac_status=$?
22740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741   (exit $ac_status); }; }; then
22742   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22743 else
22744   echo "$as_me: program exited with status $ac_status" >&5
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 ( exit $ac_status )
22749 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22750 fi
22751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22752 fi
22753
22754                 # restore the LIBS
22755                 LIBS="$ol_LIBS"
22756
22757 fi
22758 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22759 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22760
22761         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22762                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22763                 ol_link_threads=posix
22764         fi
22765 fi
22766
22767                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22768 if test "$ol_link_threads" = no ; then
22769         # try -lpthreads -lmach -lexc
22770         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22771 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22772 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22773   echo $ECHO_N "(cached) $ECHO_C" >&6
22774 else
22775
22776                 # save the flags
22777                 ol_LIBS="$LIBS"
22778                 LIBS="-lpthreads -lmach -lexc $LIBS"
22779
22780                 if test "$cross_compiling" = yes; then
22781   cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787
22788 /* pthread test headers */
22789 #include <pthread.h>
22790 #if HAVE_PTHREADS < 7
22791 #include <errno.h>
22792 #endif
22793 #ifndef NULL
22794 #define NULL (void*)0
22795 #endif
22796
22797 static void *task(p)
22798         void *p;
22799 {
22800         return (void *) (p == NULL);
22801 }
22802
22803 int
22804 main ()
22805 {
22806
22807         /* pthread test function */
22808 #ifndef PTHREAD_CREATE_DETACHED
22809 #define PTHREAD_CREATE_DETACHED 1
22810 #endif
22811         pthread_t t;
22812         int status;
22813         int detach = PTHREAD_CREATE_DETACHED;
22814
22815 #if HAVE_PTHREADS > 4
22816         /* Final pthreads */
22817         pthread_attr_t attr;
22818
22819         status = pthread_attr_init(&attr);
22820         if( status ) return status;
22821
22822 #if HAVE_PTHREADS < 7
22823         status = pthread_attr_setdetachstate(&attr, &detach);
22824         if( status < 0 ) status = errno;
22825 #else
22826         status = pthread_attr_setdetachstate(&attr, detach);
22827 #endif
22828         if( status ) return status;
22829         status = pthread_create( &t, &attr, task, NULL );
22830 #if HAVE_PTHREADS < 7
22831         if( status < 0 ) status = errno;
22832 #endif
22833         if( status ) return status;
22834 #else
22835         /* Draft 4 pthreads */
22836         status = pthread_create( &t, pthread_attr_default, task, NULL );
22837         if( status ) return errno;
22838
22839         /* give thread a chance to complete */
22840         /* it should remain joinable and hence detachable */
22841         sleep( 1 );
22842
22843         status = pthread_detach( &t );
22844         if( status ) return errno;
22845 #endif
22846
22847 #ifdef HAVE_LINUX_THREADS
22848         pthread_kill_other_threads_np();
22849 #endif
22850
22851         return 0;
22852
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext conftest$ac_exeext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22859   (eval $ac_link) 2>conftest.er1
22860   ac_status=$?
22861   grep -v '^ *+' conftest.er1 >conftest.err
22862   rm -f conftest.er1
22863   cat conftest.err >&5
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } &&
22866          { ac_try='test -z "$ac_c_werror_flag"
22867                          || test ! -s conftest.err'
22868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869   (eval $ac_try) 2>&5
22870   ac_status=$?
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); }; } &&
22873          { ac_try='test -s conftest$ac_exeext'
22874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875   (eval $ac_try) 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); }; }; then
22879   ol_cv_pthread_lpthreads_lmach_lexc=yes
22880 else
22881   echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884 ol_cv_pthread_lpthreads_lmach_lexc=no
22885 fi
22886 rm -f conftest.err conftest.$ac_objext \
22887       conftest$ac_exeext conftest.$ac_ext
22888 else
22889   cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h.  */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h.  */
22895
22896 /* pthread test headers */
22897 #include <pthread.h>
22898 #if HAVE_PTHREADS < 7
22899 #include <errno.h>
22900 #endif
22901 #ifndef NULL
22902 #define NULL (void*)0
22903 #endif
22904
22905 static void *task(p)
22906         void *p;
22907 {
22908         return (void *) (p == NULL);
22909 }
22910
22911
22912 int main(argc, argv)
22913         int argc;
22914         char **argv;
22915 {
22916
22917         /* pthread test function */
22918 #ifndef PTHREAD_CREATE_DETACHED
22919 #define PTHREAD_CREATE_DETACHED 1
22920 #endif
22921         pthread_t t;
22922         int status;
22923         int detach = PTHREAD_CREATE_DETACHED;
22924
22925 #if HAVE_PTHREADS > 4
22926         /* Final pthreads */
22927         pthread_attr_t attr;
22928
22929         status = pthread_attr_init(&attr);
22930         if( status ) return status;
22931
22932 #if HAVE_PTHREADS < 7
22933         status = pthread_attr_setdetachstate(&attr, &detach);
22934         if( status < 0 ) status = errno;
22935 #else
22936         status = pthread_attr_setdetachstate(&attr, detach);
22937 #endif
22938         if( status ) return status;
22939         status = pthread_create( &t, &attr, task, NULL );
22940 #if HAVE_PTHREADS < 7
22941         if( status < 0 ) status = errno;
22942 #endif
22943         if( status ) return status;
22944 #else
22945         /* Draft 4 pthreads */
22946         status = pthread_create( &t, pthread_attr_default, task, NULL );
22947         if( status ) return errno;
22948
22949         /* give thread a chance to complete */
22950         /* it should remain joinable and hence detachable */
22951         sleep( 1 );
22952
22953         status = pthread_detach( &t );
22954         if( status ) return errno;
22955 #endif
22956
22957 #ifdef HAVE_LINUX_THREADS
22958         pthread_kill_other_threads_np();
22959 #endif
22960
22961         return 0;
22962
22963 }
22964
22965 _ACEOF
22966 rm -f conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968   (eval $ac_link) 2>&5
22969   ac_status=$?
22970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   ol_cv_pthread_lpthreads_lmach_lexc=yes
22978 else
22979   echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22982
22983 ( exit $ac_status )
22984 ol_cv_pthread_lpthreads_lmach_lexc=no
22985 fi
22986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22987 fi
22988
22989                 # restore the LIBS
22990                 LIBS="$ol_LIBS"
22991
22992 fi
22993 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22994 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22995
22996         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22997                 ol_link_pthreads="-lpthreads -lmach -lexc"
22998                 ol_link_threads=posix
22999         fi
23000 fi
23001
23002                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23003 if test "$ol_link_threads" = no ; then
23004         # try -lpthreads -lexc
23005         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23006 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23007 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 else
23010
23011                 # save the flags
23012                 ol_LIBS="$LIBS"
23013                 LIBS="-lpthreads -lexc $LIBS"
23014
23015                 if test "$cross_compiling" = yes; then
23016   cat >conftest.$ac_ext <<_ACEOF
23017 /* confdefs.h.  */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h.  */
23022
23023 /* pthread test headers */
23024 #include <pthread.h>
23025 #if HAVE_PTHREADS < 7
23026 #include <errno.h>
23027 #endif
23028 #ifndef NULL
23029 #define NULL (void*)0
23030 #endif
23031
23032 static void *task(p)
23033         void *p;
23034 {
23035         return (void *) (p == NULL);
23036 }
23037
23038 int
23039 main ()
23040 {
23041
23042         /* pthread test function */
23043 #ifndef PTHREAD_CREATE_DETACHED
23044 #define PTHREAD_CREATE_DETACHED 1
23045 #endif
23046         pthread_t t;
23047         int status;
23048         int detach = PTHREAD_CREATE_DETACHED;
23049
23050 #if HAVE_PTHREADS > 4
23051         /* Final pthreads */
23052         pthread_attr_t attr;
23053
23054         status = pthread_attr_init(&attr);
23055         if( status ) return status;
23056
23057 #if HAVE_PTHREADS < 7
23058         status = pthread_attr_setdetachstate(&attr, &detach);
23059         if( status < 0 ) status = errno;
23060 #else
23061         status = pthread_attr_setdetachstate(&attr, detach);
23062 #endif
23063         if( status ) return status;
23064         status = pthread_create( &t, &attr, task, NULL );
23065 #if HAVE_PTHREADS < 7
23066         if( status < 0 ) status = errno;
23067 #endif
23068         if( status ) return status;
23069 #else
23070         /* Draft 4 pthreads */
23071         status = pthread_create( &t, pthread_attr_default, task, NULL );
23072         if( status ) return errno;
23073
23074         /* give thread a chance to complete */
23075         /* it should remain joinable and hence detachable */
23076         sleep( 1 );
23077
23078         status = pthread_detach( &t );
23079         if( status ) return errno;
23080 #endif
23081
23082 #ifdef HAVE_LINUX_THREADS
23083         pthread_kill_other_threads_np();
23084 #endif
23085
23086         return 0;
23087
23088   ;
23089   return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23094   (eval $ac_link) 2>conftest.er1
23095   ac_status=$?
23096   grep -v '^ *+' conftest.er1 >conftest.err
23097   rm -f conftest.er1
23098   cat conftest.err >&5
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); } &&
23101          { ac_try='test -z "$ac_c_werror_flag"
23102                          || test ! -s conftest.err'
23103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104   (eval $ac_try) 2>&5
23105   ac_status=$?
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); }; } &&
23108          { ac_try='test -s conftest$ac_exeext'
23109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110   (eval $ac_try) 2>&5
23111   ac_status=$?
23112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); }; }; then
23114   ol_cv_pthread_lpthreads_lexc=yes
23115 else
23116   echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119 ol_cv_pthread_lpthreads_lexc=no
23120 fi
23121 rm -f conftest.err conftest.$ac_objext \
23122       conftest$ac_exeext conftest.$ac_ext
23123 else
23124   cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h.  */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h.  */
23130
23131 /* pthread test headers */
23132 #include <pthread.h>
23133 #if HAVE_PTHREADS < 7
23134 #include <errno.h>
23135 #endif
23136 #ifndef NULL
23137 #define NULL (void*)0
23138 #endif
23139
23140 static void *task(p)
23141         void *p;
23142 {
23143         return (void *) (p == NULL);
23144 }
23145
23146
23147 int main(argc, argv)
23148         int argc;
23149         char **argv;
23150 {
23151
23152         /* pthread test function */
23153 #ifndef PTHREAD_CREATE_DETACHED
23154 #define PTHREAD_CREATE_DETACHED 1
23155 #endif
23156         pthread_t t;
23157         int status;
23158         int detach = PTHREAD_CREATE_DETACHED;
23159
23160 #if HAVE_PTHREADS > 4
23161         /* Final pthreads */
23162         pthread_attr_t attr;
23163
23164         status = pthread_attr_init(&attr);
23165         if( status ) return status;
23166
23167 #if HAVE_PTHREADS < 7
23168         status = pthread_attr_setdetachstate(&attr, &detach);
23169         if( status < 0 ) status = errno;
23170 #else
23171         status = pthread_attr_setdetachstate(&attr, detach);
23172 #endif
23173         if( status ) return status;
23174         status = pthread_create( &t, &attr, task, NULL );
23175 #if HAVE_PTHREADS < 7
23176         if( status < 0 ) status = errno;
23177 #endif
23178         if( status ) return status;
23179 #else
23180         /* Draft 4 pthreads */
23181         status = pthread_create( &t, pthread_attr_default, task, NULL );
23182         if( status ) return errno;
23183
23184         /* give thread a chance to complete */
23185         /* it should remain joinable and hence detachable */
23186         sleep( 1 );
23187
23188         status = pthread_detach( &t );
23189         if( status ) return errno;
23190 #endif
23191
23192 #ifdef HAVE_LINUX_THREADS
23193         pthread_kill_other_threads_np();
23194 #endif
23195
23196         return 0;
23197
23198 }
23199
23200 _ACEOF
23201 rm -f conftest$ac_exeext
23202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23203   (eval $ac_link) 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); }; }; then
23212   ol_cv_pthread_lpthreads_lexc=yes
23213 else
23214   echo "$as_me: program exited with status $ac_status" >&5
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23217
23218 ( exit $ac_status )
23219 ol_cv_pthread_lpthreads_lexc=no
23220 fi
23221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23222 fi
23223
23224                 # restore the LIBS
23225                 LIBS="$ol_LIBS"
23226
23227 fi
23228 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23229 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23230
23231         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23232                 ol_link_pthreads="-lpthreads -lexc"
23233                 ol_link_threads=posix
23234         fi
23235 fi
23236
23237
23238                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23239 if test "$ol_link_threads" = no ; then
23240         # try -lpthreads
23241         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23242 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23243 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23244   echo $ECHO_N "(cached) $ECHO_C" >&6
23245 else
23246
23247                 # save the flags
23248                 ol_LIBS="$LIBS"
23249                 LIBS="-lpthreads $LIBS"
23250
23251                 if test "$cross_compiling" = yes; then
23252   cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258
23259 /* pthread test headers */
23260 #include <pthread.h>
23261 #if HAVE_PTHREADS < 7
23262 #include <errno.h>
23263 #endif
23264 #ifndef NULL
23265 #define NULL (void*)0
23266 #endif
23267
23268 static void *task(p)
23269         void *p;
23270 {
23271         return (void *) (p == NULL);
23272 }
23273
23274 int
23275 main ()
23276 {
23277
23278         /* pthread test function */
23279 #ifndef PTHREAD_CREATE_DETACHED
23280 #define PTHREAD_CREATE_DETACHED 1
23281 #endif
23282         pthread_t t;
23283         int status;
23284         int detach = PTHREAD_CREATE_DETACHED;
23285
23286 #if HAVE_PTHREADS > 4
23287         /* Final pthreads */
23288         pthread_attr_t attr;
23289
23290         status = pthread_attr_init(&attr);
23291         if( status ) return status;
23292
23293 #if HAVE_PTHREADS < 7
23294         status = pthread_attr_setdetachstate(&attr, &detach);
23295         if( status < 0 ) status = errno;
23296 #else
23297         status = pthread_attr_setdetachstate(&attr, detach);
23298 #endif
23299         if( status ) return status;
23300         status = pthread_create( &t, &attr, task, NULL );
23301 #if HAVE_PTHREADS < 7
23302         if( status < 0 ) status = errno;
23303 #endif
23304         if( status ) return status;
23305 #else
23306         /* Draft 4 pthreads */
23307         status = pthread_create( &t, pthread_attr_default, task, NULL );
23308         if( status ) return errno;
23309
23310         /* give thread a chance to complete */
23311         /* it should remain joinable and hence detachable */
23312         sleep( 1 );
23313
23314         status = pthread_detach( &t );
23315         if( status ) return errno;
23316 #endif
23317
23318 #ifdef HAVE_LINUX_THREADS
23319         pthread_kill_other_threads_np();
23320 #endif
23321
23322         return 0;
23323
23324   ;
23325   return 0;
23326 }
23327 _ACEOF
23328 rm -f conftest.$ac_objext conftest$ac_exeext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23330   (eval $ac_link) 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } &&
23337          { ac_try='test -z "$ac_c_werror_flag"
23338                          || test ! -s conftest.err'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; } &&
23344          { ac_try='test -s conftest$ac_exeext'
23345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346   (eval $ac_try) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; }; then
23350   ol_cv_pthread_lib_lpthreads=yes
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355 ol_cv_pthread_lib_lpthreads=no
23356 fi
23357 rm -f conftest.err conftest.$ac_objext \
23358       conftest$ac_exeext conftest.$ac_ext
23359 else
23360   cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366
23367 /* pthread test headers */
23368 #include <pthread.h>
23369 #if HAVE_PTHREADS < 7
23370 #include <errno.h>
23371 #endif
23372 #ifndef NULL
23373 #define NULL (void*)0
23374 #endif
23375
23376 static void *task(p)
23377         void *p;
23378 {
23379         return (void *) (p == NULL);
23380 }
23381
23382
23383 int main(argc, argv)
23384         int argc;
23385         char **argv;
23386 {
23387
23388         /* pthread test function */
23389 #ifndef PTHREAD_CREATE_DETACHED
23390 #define PTHREAD_CREATE_DETACHED 1
23391 #endif
23392         pthread_t t;
23393         int status;
23394         int detach = PTHREAD_CREATE_DETACHED;
23395
23396 #if HAVE_PTHREADS > 4
23397         /* Final pthreads */
23398         pthread_attr_t attr;
23399
23400         status = pthread_attr_init(&attr);
23401         if( status ) return status;
23402
23403 #if HAVE_PTHREADS < 7
23404         status = pthread_attr_setdetachstate(&attr, &detach);
23405         if( status < 0 ) status = errno;
23406 #else
23407         status = pthread_attr_setdetachstate(&attr, detach);
23408 #endif
23409         if( status ) return status;
23410         status = pthread_create( &t, &attr, task, NULL );
23411 #if HAVE_PTHREADS < 7
23412         if( status < 0 ) status = errno;
23413 #endif
23414         if( status ) return status;
23415 #else
23416         /* Draft 4 pthreads */
23417         status = pthread_create( &t, pthread_attr_default, task, NULL );
23418         if( status ) return errno;
23419
23420         /* give thread a chance to complete */
23421         /* it should remain joinable and hence detachable */
23422         sleep( 1 );
23423
23424         status = pthread_detach( &t );
23425         if( status ) return errno;
23426 #endif
23427
23428 #ifdef HAVE_LINUX_THREADS
23429         pthread_kill_other_threads_np();
23430 #endif
23431
23432         return 0;
23433
23434 }
23435
23436 _ACEOF
23437 rm -f conftest$ac_exeext
23438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439   (eval $ac_link) 2>&5
23440   ac_status=$?
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444   (eval $ac_try) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); }; }; then
23448   ol_cv_pthread_lib_lpthreads=yes
23449 else
23450   echo "$as_me: program exited with status $ac_status" >&5
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454 ( exit $ac_status )
23455 ol_cv_pthread_lib_lpthreads=no
23456 fi
23457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23458 fi
23459
23460                 # restore the LIBS
23461                 LIBS="$ol_LIBS"
23462
23463 fi
23464 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23465 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23466
23467         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23468                 ol_link_pthreads="-lpthreads"
23469                 ol_link_threads=posix
23470         fi
23471 fi
23472
23473
23474                 if test $ol_link_threads != no ; then
23475                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23476
23477                                                 save_CPPFLAGS="$CPPFLAGS"
23478                         save_LIBS="$LIBS"
23479                         LIBS="$LTHREAD_LIBS $LIBS"
23480
23481
23482
23483
23484 for ac_func in sched_yield pthread_yield thr_yield
23485 do
23486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23487 echo "$as_me:$LINENO: checking for $ac_func" >&5
23488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23489 if eval "test \"\${$as_ac_var+set}\" = set"; then
23490   echo $ECHO_N "(cached) $ECHO_C" >&6
23491 else
23492   cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h.  */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h.  */
23498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23500 #define $ac_func innocuous_$ac_func
23501
23502 /* System header to define __stub macros and hopefully few prototypes,
23503     which can conflict with char $ac_func (); below.
23504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23505     <limits.h> exists even on freestanding compilers.  */
23506
23507 #ifdef __STDC__
23508 # include <limits.h>
23509 #else
23510 # include <assert.h>
23511 #endif
23512
23513 #undef $ac_func
23514
23515 /* Override any gcc2 internal prototype to avoid an error.  */
23516 #ifdef __cplusplus
23517 extern "C"
23518 {
23519 #endif
23520 /* We use char because int might match the return type of a gcc2
23521    builtin and then its argument prototype would still apply.  */
23522 char $ac_func ();
23523 /* The GNU C library defines this for functions which it implements
23524     to always fail with ENOSYS.  Some functions are actually named
23525     something starting with __ and the normal name is an alias.  */
23526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23527 choke me
23528 #else
23529 char (*f) () = $ac_func;
23530 #endif
23531 #ifdef __cplusplus
23532 }
23533 #endif
23534
23535 int
23536 main ()
23537 {
23538 return f != $ac_func;
23539   ;
23540   return 0;
23541 }
23542 _ACEOF
23543 rm -f conftest.$ac_objext conftest$ac_exeext
23544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545   (eval $ac_link) 2>conftest.er1
23546   ac_status=$?
23547   grep -v '^ *+' conftest.er1 >conftest.err
23548   rm -f conftest.er1
23549   cat conftest.err >&5
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); } &&
23552          { ac_try='test -z "$ac_c_werror_flag"
23553                          || test ! -s conftest.err'
23554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555   (eval $ac_try) 2>&5
23556   ac_status=$?
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); }; } &&
23559          { ac_try='test -s conftest$ac_exeext'
23560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561   (eval $ac_try) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); }; }; then
23565   eval "$as_ac_var=yes"
23566 else
23567   echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23569
23570 eval "$as_ac_var=no"
23571 fi
23572 rm -f conftest.err conftest.$ac_objext \
23573       conftest$ac_exeext conftest.$ac_ext
23574 fi
23575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23577 if test `eval echo '${'$as_ac_var'}'` = yes; then
23578   cat >>confdefs.h <<_ACEOF
23579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23580 _ACEOF
23581
23582 fi
23583 done
23584
23585
23586                         if test $ac_cv_func_sched_yield = no &&
23587                            test $ac_cv_func_pthread_yield = no &&
23588                            test $ac_cv_func_thr_yield = no ; then
23589                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23590 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23591 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23592   echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594   ac_check_lib_save_LIBS=$LIBS
23595 LIBS="-lrt  $LIBS"
23596 cat >conftest.$ac_ext <<_ACEOF
23597 /* confdefs.h.  */
23598 _ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h.  */
23602
23603 /* Override any gcc2 internal prototype to avoid an error.  */
23604 #ifdef __cplusplus
23605 extern "C"
23606 #endif
23607 /* We use char because int might match the return type of a gcc2
23608    builtin and then its argument prototype would still apply.  */
23609 char sched_yield ();
23610 int
23611 main ()
23612 {
23613 sched_yield ();
23614   ;
23615   return 0;
23616 }
23617 _ACEOF
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23620   (eval $ac_link) 2>conftest.er1
23621   ac_status=$?
23622   grep -v '^ *+' conftest.er1 >conftest.err
23623   rm -f conftest.er1
23624   cat conftest.err >&5
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); } &&
23627          { ac_try='test -z "$ac_c_werror_flag"
23628                          || test ! -s conftest.err'
23629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630   (eval $ac_try) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; } &&
23634          { ac_try='test -s conftest$ac_exeext'
23635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636   (eval $ac_try) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; }; then
23640   ac_cv_lib_rt_sched_yield=yes
23641 else
23642   echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645 ac_cv_lib_rt_sched_yield=no
23646 fi
23647 rm -f conftest.err conftest.$ac_objext \
23648       conftest$ac_exeext conftest.$ac_ext
23649 LIBS=$ac_check_lib_save_LIBS
23650 fi
23651 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23652 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23653 if test $ac_cv_lib_rt_sched_yield = yes; then
23654   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23655
23656 cat >>confdefs.h <<\_ACEOF
23657 #define HAVE_SCHED_YIELD 1
23658 _ACEOF
23659
23660                                         ac_cv_func_sched_yield=yes
23661 else
23662   ac_cv_func_sched_yield=no
23663 fi
23664
23665                         fi
23666                         if test $ac_cv_func_sched_yield = no &&
23667                            test $ac_cv_func_pthread_yield = no &&
23668                            test "$ac_cv_func_thr_yield" = no ; then
23669                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23670 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23671                         fi
23672
23673
23674 for ac_func in pthread_kill
23675 do
23676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23677 echo "$as_me:$LINENO: checking for $ac_func" >&5
23678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23679 if eval "test \"\${$as_ac_var+set}\" = set"; then
23680   echo $ECHO_N "(cached) $ECHO_C" >&6
23681 else
23682   cat >conftest.$ac_ext <<_ACEOF
23683 /* confdefs.h.  */
23684 _ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h.  */
23688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23690 #define $ac_func innocuous_$ac_func
23691
23692 /* System header to define __stub macros and hopefully few prototypes,
23693     which can conflict with char $ac_func (); below.
23694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23695     <limits.h> exists even on freestanding compilers.  */
23696
23697 #ifdef __STDC__
23698 # include <limits.h>
23699 #else
23700 # include <assert.h>
23701 #endif
23702
23703 #undef $ac_func
23704
23705 /* Override any gcc2 internal prototype to avoid an error.  */
23706 #ifdef __cplusplus
23707 extern "C"
23708 {
23709 #endif
23710 /* We use char because int might match the return type of a gcc2
23711    builtin and then its argument prototype would still apply.  */
23712 char $ac_func ();
23713 /* The GNU C library defines this for functions which it implements
23714     to always fail with ENOSYS.  Some functions are actually named
23715     something starting with __ and the normal name is an alias.  */
23716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23717 choke me
23718 #else
23719 char (*f) () = $ac_func;
23720 #endif
23721 #ifdef __cplusplus
23722 }
23723 #endif
23724
23725 int
23726 main ()
23727 {
23728 return f != $ac_func;
23729   ;
23730   return 0;
23731 }
23732 _ACEOF
23733 rm -f conftest.$ac_objext conftest$ac_exeext
23734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23735   (eval $ac_link) 2>conftest.er1
23736   ac_status=$?
23737   grep -v '^ *+' conftest.er1 >conftest.err
23738   rm -f conftest.er1
23739   cat conftest.err >&5
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); } &&
23742          { ac_try='test -z "$ac_c_werror_flag"
23743                          || test ! -s conftest.err'
23744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745   (eval $ac_try) 2>&5
23746   ac_status=$?
23747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748   (exit $ac_status); }; } &&
23749          { ac_try='test -s conftest$ac_exeext'
23750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751   (eval $ac_try) 2>&5
23752   ac_status=$?
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); }; }; then
23755   eval "$as_ac_var=yes"
23756 else
23757   echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760 eval "$as_ac_var=no"
23761 fi
23762 rm -f conftest.err conftest.$ac_objext \
23763       conftest$ac_exeext conftest.$ac_ext
23764 fi
23765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23767 if test `eval echo '${'$as_ac_var'}'` = yes; then
23768   cat >>confdefs.h <<_ACEOF
23769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23770 _ACEOF
23771
23772 fi
23773 done
23774
23775
23776                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23777 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23778 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23779   echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781
23782                                                                 cat >conftest.$ac_ext <<_ACEOF
23783 /* confdefs.h.  */
23784 _ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h.  */
23788
23789 #include <pthread.h>
23790 pthread_rwlock_t rwlock;
23791
23792 int
23793 main ()
23794 {
23795 pthread_rwlock_destroy(&rwlock);
23796   ;
23797   return 0;
23798 }
23799 _ACEOF
23800 rm -f conftest.$ac_objext conftest$ac_exeext
23801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23802   (eval $ac_link) 2>conftest.er1
23803   ac_status=$?
23804   grep -v '^ *+' conftest.er1 >conftest.err
23805   rm -f conftest.er1
23806   cat conftest.err >&5
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); } &&
23809          { ac_try='test -z "$ac_c_werror_flag"
23810                          || test ! -s conftest.err'
23811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23812   (eval $ac_try) 2>&5
23813   ac_status=$?
23814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815   (exit $ac_status); }; } &&
23816          { ac_try='test -s conftest$ac_exeext'
23817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818   (eval $ac_try) 2>&5
23819   ac_status=$?
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); }; }; then
23822   ol_cv_func_pthread_rwlock_destroy=yes
23823 else
23824   echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827 ol_cv_func_pthread_rwlock_destroy=no
23828 fi
23829 rm -f conftest.err conftest.$ac_objext \
23830       conftest$ac_exeext conftest.$ac_ext
23831
23832 fi
23833 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23834 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23835                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23836
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23839 _ACEOF
23840
23841                         fi
23842
23843                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23844 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23845 if test "${ol_cv_func_pthread_detach+set}" = set; then
23846   echo $ECHO_N "(cached) $ECHO_C" >&6
23847 else
23848
23849                                                                 cat >conftest.$ac_ext <<_ACEOF
23850 /* confdefs.h.  */
23851 _ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h.  */
23855
23856 #include <pthread.h>
23857 #ifndef NULL
23858 #define NULL (void*)0
23859 #endif
23860
23861 int
23862 main ()
23863 {
23864 pthread_detach(NULL);
23865   ;
23866   return 0;
23867 }
23868 _ACEOF
23869 rm -f conftest.$ac_objext conftest$ac_exeext
23870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23871   (eval $ac_link) 2>conftest.er1
23872   ac_status=$?
23873   grep -v '^ *+' conftest.er1 >conftest.err
23874   rm -f conftest.er1
23875   cat conftest.err >&5
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); } &&
23878          { ac_try='test -z "$ac_c_werror_flag"
23879                          || test ! -s conftest.err'
23880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881   (eval $ac_try) 2>&5
23882   ac_status=$?
23883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884   (exit $ac_status); }; } &&
23885          { ac_try='test -s conftest$ac_exeext'
23886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887   (eval $ac_try) 2>&5
23888   ac_status=$?
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); }; }; then
23891   ol_cv_func_pthread_detach=yes
23892 else
23893   echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23895
23896 ol_cv_func_pthread_detach=no
23897 fi
23898 rm -f conftest.err conftest.$ac_objext \
23899       conftest$ac_exeext conftest.$ac_ext
23900
23901 fi
23902 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23903 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23904
23905                         if test $ol_cv_func_pthread_detach = no ; then
23906                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23907 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23908    { (exit 1); exit 1; }; }
23909                         fi
23910
23911
23912 cat >>confdefs.h <<\_ACEOF
23913 #define HAVE_PTHREAD_DETACH 1
23914 _ACEOF
23915
23916
23917
23918
23919
23920
23921 for ac_func in \
23922                                 pthread_setconcurrency \
23923                                 pthread_getconcurrency \
23924                                 thr_setconcurrency \
23925                                 thr_getconcurrency \
23926
23927 do
23928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23929 echo "$as_me:$LINENO: checking for $ac_func" >&5
23930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23931 if eval "test \"\${$as_ac_var+set}\" = set"; then
23932   echo $ECHO_N "(cached) $ECHO_C" >&6
23933 else
23934   cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h.  */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h.  */
23940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23942 #define $ac_func innocuous_$ac_func
23943
23944 /* System header to define __stub macros and hopefully few prototypes,
23945     which can conflict with char $ac_func (); below.
23946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23947     <limits.h> exists even on freestanding compilers.  */
23948
23949 #ifdef __STDC__
23950 # include <limits.h>
23951 #else
23952 # include <assert.h>
23953 #endif
23954
23955 #undef $ac_func
23956
23957 /* Override any gcc2 internal prototype to avoid an error.  */
23958 #ifdef __cplusplus
23959 extern "C"
23960 {
23961 #endif
23962 /* We use char because int might match the return type of a gcc2
23963    builtin and then its argument prototype would still apply.  */
23964 char $ac_func ();
23965 /* The GNU C library defines this for functions which it implements
23966     to always fail with ENOSYS.  Some functions are actually named
23967     something starting with __ and the normal name is an alias.  */
23968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23969 choke me
23970 #else
23971 char (*f) () = $ac_func;
23972 #endif
23973 #ifdef __cplusplus
23974 }
23975 #endif
23976
23977 int
23978 main ()
23979 {
23980 return f != $ac_func;
23981   ;
23982   return 0;
23983 }
23984 _ACEOF
23985 rm -f conftest.$ac_objext conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987   (eval $ac_link) 2>conftest.er1
23988   ac_status=$?
23989   grep -v '^ *+' conftest.er1 >conftest.err
23990   rm -f conftest.er1
23991   cat conftest.err >&5
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); } &&
23994          { ac_try='test -z "$ac_c_werror_flag"
23995                          || test ! -s conftest.err'
23996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997   (eval $ac_try) 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; } &&
24001          { ac_try='test -s conftest$ac_exeext'
24002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003   (eval $ac_try) 2>&5
24004   ac_status=$?
24005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006   (exit $ac_status); }; }; then
24007   eval "$as_ac_var=yes"
24008 else
24009   echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24011
24012 eval "$as_ac_var=no"
24013 fi
24014 rm -f conftest.err conftest.$ac_objext \
24015       conftest$ac_exeext conftest.$ac_ext
24016 fi
24017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24019 if test `eval echo '${'$as_ac_var'}'` = yes; then
24020   cat >>confdefs.h <<_ACEOF
24021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24022 _ACEOF
24023
24024 fi
24025 done
24026
24027
24028
24029
24030 for ac_func in pthread_kill_other_threads_np
24031 do
24032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24033 echo "$as_me:$LINENO: checking for $ac_func" >&5
24034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24035 if eval "test \"\${$as_ac_var+set}\" = set"; then
24036   echo $ECHO_N "(cached) $ECHO_C" >&6
24037 else
24038   cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h.  */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h.  */
24044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24046 #define $ac_func innocuous_$ac_func
24047
24048 /* System header to define __stub macros and hopefully few prototypes,
24049     which can conflict with char $ac_func (); below.
24050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24051     <limits.h> exists even on freestanding compilers.  */
24052
24053 #ifdef __STDC__
24054 # include <limits.h>
24055 #else
24056 # include <assert.h>
24057 #endif
24058
24059 #undef $ac_func
24060
24061 /* Override any gcc2 internal prototype to avoid an error.  */
24062 #ifdef __cplusplus
24063 extern "C"
24064 {
24065 #endif
24066 /* We use char because int might match the return type of a gcc2
24067    builtin and then its argument prototype would still apply.  */
24068 char $ac_func ();
24069 /* The GNU C library defines this for functions which it implements
24070     to always fail with ENOSYS.  Some functions are actually named
24071     something starting with __ and the normal name is an alias.  */
24072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24073 choke me
24074 #else
24075 char (*f) () = $ac_func;
24076 #endif
24077 #ifdef __cplusplus
24078 }
24079 #endif
24080
24081 int
24082 main ()
24083 {
24084 return f != $ac_func;
24085   ;
24086   return 0;
24087 }
24088 _ACEOF
24089 rm -f conftest.$ac_objext conftest$ac_exeext
24090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24091   (eval $ac_link) 2>conftest.er1
24092   ac_status=$?
24093   grep -v '^ *+' conftest.er1 >conftest.err
24094   rm -f conftest.er1
24095   cat conftest.err >&5
24096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097   (exit $ac_status); } &&
24098          { ac_try='test -z "$ac_c_werror_flag"
24099                          || test ! -s conftest.err'
24100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101   (eval $ac_try) 2>&5
24102   ac_status=$?
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); }; } &&
24105          { ac_try='test -s conftest$ac_exeext'
24106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107   (eval $ac_try) 2>&5
24108   ac_status=$?
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); }; }; then
24111   eval "$as_ac_var=yes"
24112 else
24113   echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24115
24116 eval "$as_ac_var=no"
24117 fi
24118 rm -f conftest.err conftest.$ac_objext \
24119       conftest$ac_exeext conftest.$ac_ext
24120 fi
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24123 if test `eval echo '${'$as_ac_var'}'` = yes; then
24124   cat >>confdefs.h <<_ACEOF
24125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24126 _ACEOF
24127
24128 fi
24129 done
24130
24131         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24132 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24133 if test "${ol_cv_sys_linux_threads+set}" = set; then
24134   echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24137 fi
24138 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24139 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24140
24141
24142
24143
24144         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24145 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24146 if test "${ol_cv_linux_threads+set}" = set; then
24147   echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24149
24150                 if test $ol_cv_header_linux_threads = yes &&
24151                    test $ol_cv_sys_linux_threads = yes; then
24152                         ol_cv_linux_threads=yes
24153                 elif test $ol_cv_header_linux_threads = no &&
24154                      test $ol_cv_sys_linux_threads = no; then
24155                         ol_cv_linux_threads=no
24156                 else
24157                         ol_cv_linux_threads=error
24158                 fi
24159
24160 fi
24161 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24162 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24163
24164
24165                         if test $ol_cv_linux_threads = error; then
24166                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24167 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24168    { (exit 1); exit 1; }; };
24169                         fi
24170
24171                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24172 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24173 if test "${ol_cv_pthread_create_works+set}" = set; then
24174   echo $ECHO_N "(cached) $ECHO_C" >&6
24175 else
24176
24177                         if test "$cross_compiling" = yes; then
24178                                 ol_cv_pthread_create_works=yes
24179 else
24180   cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h.  */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h.  */
24186
24187 /* pthread test headers */
24188 #include <pthread.h>
24189 #if HAVE_PTHREADS < 7
24190 #include <errno.h>
24191 #endif
24192 #ifndef NULL
24193 #define NULL (void*)0
24194 #endif
24195
24196 static void *task(p)
24197         void *p;
24198 {
24199         return (void *) (p == NULL);
24200 }
24201
24202
24203 int main(argc, argv)
24204         int argc;
24205         char **argv;
24206 {
24207
24208         /* pthread test function */
24209 #ifndef PTHREAD_CREATE_DETACHED
24210 #define PTHREAD_CREATE_DETACHED 1
24211 #endif
24212         pthread_t t;
24213         int status;
24214         int detach = PTHREAD_CREATE_DETACHED;
24215
24216 #if HAVE_PTHREADS > 4
24217         /* Final pthreads */
24218         pthread_attr_t attr;
24219
24220         status = pthread_attr_init(&attr);
24221         if( status ) return status;
24222
24223 #if HAVE_PTHREADS < 7
24224         status = pthread_attr_setdetachstate(&attr, &detach);
24225         if( status < 0 ) status = errno;
24226 #else
24227         status = pthread_attr_setdetachstate(&attr, detach);
24228 #endif
24229         if( status ) return status;
24230         status = pthread_create( &t, &attr, task, NULL );
24231 #if HAVE_PTHREADS < 7
24232         if( status < 0 ) status = errno;
24233 #endif
24234         if( status ) return status;
24235 #else
24236         /* Draft 4 pthreads */
24237         status = pthread_create( &t, pthread_attr_default, task, NULL );
24238         if( status ) return errno;
24239
24240         /* give thread a chance to complete */
24241         /* it should remain joinable and hence detachable */
24242         sleep( 1 );
24243
24244         status = pthread_detach( &t );
24245         if( status ) return errno;
24246 #endif
24247
24248 #ifdef HAVE_LINUX_THREADS
24249         pthread_kill_other_threads_np();
24250 #endif
24251
24252         return 0;
24253
24254 }
24255
24256 _ACEOF
24257 rm -f conftest$ac_exeext
24258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24259   (eval $ac_link) 2>&5
24260   ac_status=$?
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264   (eval $ac_try) 2>&5
24265   ac_status=$?
24266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267   (exit $ac_status); }; }; then
24268   ol_cv_pthread_create_works=yes
24269 else
24270   echo "$as_me: program exited with status $ac_status" >&5
24271 echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24273
24274 ( exit $ac_status )
24275 ol_cv_pthread_create_works=no
24276 fi
24277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24278 fi
24279 fi
24280 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24281 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24282
24283                         if test $ol_cv_pthread_create_works = no ; then
24284                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24285 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24286    { (exit 1); exit 1; }; }
24287                         fi
24288
24289                         ol_replace_broken_yield=no
24290
24291                         if test $ol_replace_broken_yield = yes ; then
24292
24293 cat >>confdefs.h <<\_ACEOF
24294 #define REPLACE_BROKEN_YIELD 1
24295 _ACEOF
24296
24297                         fi
24298
24299                                                 if test $ol_with_yielding_select = auto ; then
24300                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24301 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24302 if test "${ol_cv_pthread_select_yields+set}" = set; then
24303   echo $ECHO_N "(cached) $ECHO_C" >&6
24304 else
24305
24306                                 if test "$cross_compiling" = yes; then
24307   ol_cv_pthread_select_yields=cross
24308 else
24309   cat >conftest.$ac_ext <<_ACEOF
24310 /* confdefs.h.  */
24311 _ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h.  */
24315
24316 #include <sys/types.h>
24317 #include <sys/time.h>
24318 #include <unistd.h>
24319 #include <pthread.h>
24320 #ifndef NULL
24321 #define NULL (void*) 0
24322 #endif
24323
24324 static int fildes[2];
24325
24326 static void *task(p)
24327         void *p;
24328 {
24329         int i;
24330         struct timeval tv;
24331
24332         fd_set rfds;
24333
24334         tv.tv_sec=10;
24335         tv.tv_usec=0;
24336
24337         FD_ZERO(&rfds);
24338         FD_SET(fildes[0], &rfds);
24339
24340         /* we're not interested in any fds */
24341         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24342
24343         if(i < 0) {
24344                 perror("select");
24345                 exit(10);
24346         }
24347
24348         exit(0); /* if we exit here, the select blocked the whole process */
24349 }
24350
24351 int main(argc, argv)
24352         int argc;
24353         char **argv;
24354 {
24355         pthread_t t;
24356
24357         /* create a pipe to select */
24358         if(pipe(&fildes[0])) {
24359                 perror("select");
24360                 exit(1);
24361         }
24362
24363 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24364         (void) pthread_setconcurrency(2);
24365 #else
24366 #ifdef HAVE_THR_SETCONCURRENCY
24367         /* Set Solaris LWP concurrency to 2 */
24368         thr_setconcurrency(2);
24369 #endif
24370 #endif
24371
24372 #if HAVE_PTHREADS < 6
24373         pthread_create(&t, pthread_attr_default, task, NULL);
24374 #else
24375         pthread_create(&t, NULL, task, NULL);
24376 #endif
24377
24378         /* make sure task runs first */
24379 #ifdef HAVE_THR_YIELD
24380         thr_yield();
24381 #elif defined( HAVE_SCHED_YIELD )
24382         sched_yield();
24383 #elif defined( HAVE_PTHREAD_YIELD )
24384         pthread_yield();
24385 #endif
24386
24387         exit(2);
24388 }
24389 _ACEOF
24390 rm -f conftest$ac_exeext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392   (eval $ac_link) 2>&5
24393   ac_status=$?
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397   (eval $ac_try) 2>&5
24398   ac_status=$?
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); }; }; then
24401   ol_cv_pthread_select_yields=no
24402 else
24403   echo "$as_me: program exited with status $ac_status" >&5
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24406
24407 ( exit $ac_status )
24408 ol_cv_pthread_select_yields=yes
24409 fi
24410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24411 fi
24412 fi
24413 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24414 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24415
24416                                 if test $ol_cv_pthread_select_yields = cross ; then
24417                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24418 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24419    { (exit 1); exit 1; }; }
24420                                 fi
24421
24422                                 if test $ol_cv_pthread_select_yields = yes ; then
24423                                         ol_with_yielding_select=yes
24424                                 fi
24425                         fi
24426
24427                                                 CPPFLAGS="$save_CPPFLAGS"
24428                         LIBS="$save_LIBS"
24429                 else
24430                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24431 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24432    { (exit 1); exit 1; }; }
24433                 fi
24434         fi
24435
24436         if test $ol_with_threads = posix ; then
24437                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24438 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24439    { (exit 1); exit 1; }; }
24440         fi
24441         ;;
24442 esac
24443
24444 case $ol_with_threads in auto | yes | mach)
24445
24446
24447
24448 for ac_header in mach/cthreads.h cthreads.h
24449 do
24450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24452   echo "$as_me:$LINENO: checking for $ac_header" >&5
24453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24455   echo $ECHO_N "(cached) $ECHO_C" >&6
24456 fi
24457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24459 else
24460   # Is the header compilable?
24461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469 $ac_includes_default
24470 #include <$ac_header>
24471 _ACEOF
24472 rm -f conftest.$ac_objext
24473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24474   (eval $ac_compile) 2>conftest.er1
24475   ac_status=$?
24476   grep -v '^ *+' conftest.er1 >conftest.err
24477   rm -f conftest.er1
24478   cat conftest.err >&5
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); } &&
24481          { ac_try='test -z "$ac_c_werror_flag"
24482                          || test ! -s conftest.err'
24483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484   (eval $ac_try) 2>&5
24485   ac_status=$?
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); }; } &&
24488          { ac_try='test -s conftest.$ac_objext'
24489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490   (eval $ac_try) 2>&5
24491   ac_status=$?
24492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493   (exit $ac_status); }; }; then
24494   ac_header_compiler=yes
24495 else
24496   echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24498
24499 ac_header_compiler=no
24500 fi
24501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24503 echo "${ECHO_T}$ac_header_compiler" >&6
24504
24505 # Is the header present?
24506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24508 cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514 #include <$ac_header>
24515 _ACEOF
24516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24518   ac_status=$?
24519   grep -v '^ *+' conftest.er1 >conftest.err
24520   rm -f conftest.er1
24521   cat conftest.err >&5
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); } >/dev/null; then
24524   if test -s conftest.err; then
24525     ac_cpp_err=$ac_c_preproc_warn_flag
24526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24527   else
24528     ac_cpp_err=
24529   fi
24530 else
24531   ac_cpp_err=yes
24532 fi
24533 if test -z "$ac_cpp_err"; then
24534   ac_header_preproc=yes
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539   ac_header_preproc=no
24540 fi
24541 rm -f conftest.err conftest.$ac_ext
24542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24543 echo "${ECHO_T}$ac_header_preproc" >&6
24544
24545 # So?  What about this header?
24546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24547   yes:no: )
24548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24552     ac_header_preproc=yes
24553     ;;
24554   no:yes:* )
24555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24567     (
24568       cat <<\_ASBOX
24569 ## --------------------------------------------- ##
24570 ## Report this to <http://www.openldap.org/its/> ##
24571 ## --------------------------------------------- ##
24572 _ASBOX
24573     ) |
24574       sed "s/^/$as_me: WARNING:     /" >&2
24575     ;;
24576 esac
24577 echo "$as_me:$LINENO: checking for $ac_header" >&5
24578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24580   echo $ECHO_N "(cached) $ECHO_C" >&6
24581 else
24582   eval "$as_ac_Header=\$ac_header_preproc"
24583 fi
24584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24586
24587 fi
24588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24589   cat >>confdefs.h <<_ACEOF
24590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24591 _ACEOF
24592
24593 fi
24594
24595 done
24596
24597         if test $ac_cv_header_mach_cthreads_h = yes ; then
24598                 ol_with_threads=found
24599
24600                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24601 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24602 if test "${ac_cv_func_cthread_fork+set}" = set; then
24603   echo $ECHO_N "(cached) $ECHO_C" >&6
24604 else
24605   cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h.  */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h.  */
24611 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24613 #define cthread_fork innocuous_cthread_fork
24614
24615 /* System header to define __stub macros and hopefully few prototypes,
24616     which can conflict with char cthread_fork (); below.
24617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24618     <limits.h> exists even on freestanding compilers.  */
24619
24620 #ifdef __STDC__
24621 # include <limits.h>
24622 #else
24623 # include <assert.h>
24624 #endif
24625
24626 #undef cthread_fork
24627
24628 /* Override any gcc2 internal prototype to avoid an error.  */
24629 #ifdef __cplusplus
24630 extern "C"
24631 {
24632 #endif
24633 /* We use char because int might match the return type of a gcc2
24634    builtin and then its argument prototype would still apply.  */
24635 char cthread_fork ();
24636 /* The GNU C library defines this for functions which it implements
24637     to always fail with ENOSYS.  Some functions are actually named
24638     something starting with __ and the normal name is an alias.  */
24639 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24640 choke me
24641 #else
24642 char (*f) () = cthread_fork;
24643 #endif
24644 #ifdef __cplusplus
24645 }
24646 #endif
24647
24648 int
24649 main ()
24650 {
24651 return f != cthread_fork;
24652   ;
24653   return 0;
24654 }
24655 _ACEOF
24656 rm -f conftest.$ac_objext conftest$ac_exeext
24657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24658   (eval $ac_link) 2>conftest.er1
24659   ac_status=$?
24660   grep -v '^ *+' conftest.er1 >conftest.err
24661   rm -f conftest.er1
24662   cat conftest.err >&5
24663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664   (exit $ac_status); } &&
24665          { ac_try='test -z "$ac_c_werror_flag"
24666                          || test ! -s conftest.err'
24667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668   (eval $ac_try) 2>&5
24669   ac_status=$?
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); }; } &&
24672          { ac_try='test -s conftest$ac_exeext'
24673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674   (eval $ac_try) 2>&5
24675   ac_status=$?
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); }; }; then
24678   ac_cv_func_cthread_fork=yes
24679 else
24680   echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24682
24683 ac_cv_func_cthread_fork=no
24684 fi
24685 rm -f conftest.err conftest.$ac_objext \
24686       conftest$ac_exeext conftest.$ac_ext
24687 fi
24688 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24689 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24690 if test $ac_cv_func_cthread_fork = yes; then
24691   ol_link_threads=yes
24692 fi
24693
24694
24695                 if test $ol_link_threads = no ; then
24696                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24697 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24698 if test "${ol_cv_cthread_all_load+set}" = set; then
24699   echo $ECHO_N "(cached) $ECHO_C" >&6
24700 else
24701
24702                                                                 save_LIBS="$LIBS"
24703                                 LIBS="-all_load $LIBS"
24704                                 cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 #include <mach/cthreads.h>
24711 int
24712 main ()
24713 {
24714
24715                                         cthread_fork((void *)0, (void *)0);
24716
24717   ;
24718   return 0;
24719 }
24720 _ACEOF
24721 rm -f conftest.$ac_objext conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723   (eval $ac_link) 2>conftest.er1
24724   ac_status=$?
24725   grep -v '^ *+' conftest.er1 >conftest.err
24726   rm -f conftest.er1
24727   cat conftest.err >&5
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); } &&
24730          { ac_try='test -z "$ac_c_werror_flag"
24731                          || test ! -s conftest.err'
24732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733   (eval $ac_try) 2>&5
24734   ac_status=$?
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; } &&
24737          { ac_try='test -s conftest$ac_exeext'
24738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739   (eval $ac_try) 2>&5
24740   ac_status=$?
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; }; then
24743   ol_cv_cthread_all_load=yes
24744 else
24745   echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748 ol_cv_cthread_all_load=no
24749 fi
24750 rm -f conftest.err conftest.$ac_objext \
24751       conftest$ac_exeext conftest.$ac_ext
24752                                                                 LIBS="$save_LIBS"
24753
24754 fi
24755 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24756 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24757
24758                         if test $ol_cv_cthread_all_load = yes ; then
24759                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24760                                 ol_link_threads=mach
24761                                 ol_with_threads=found
24762                         fi
24763                 fi
24764
24765         elif test $ac_cv_header_cthreads_h = yes ; then
24766
24767                 ol_with_threads=found
24768
24769                                 save_LIBS="$LIBS"
24770                 LIBS="$LIBS -lthreads"
24771                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24772 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24773 if test "${ac_cv_func_cthread_fork+set}" = set; then
24774   echo $ECHO_N "(cached) $ECHO_C" >&6
24775 else
24776   cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24784 #define cthread_fork innocuous_cthread_fork
24785
24786 /* System header to define __stub macros and hopefully few prototypes,
24787     which can conflict with char cthread_fork (); below.
24788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24789     <limits.h> exists even on freestanding compilers.  */
24790
24791 #ifdef __STDC__
24792 # include <limits.h>
24793 #else
24794 # include <assert.h>
24795 #endif
24796
24797 #undef cthread_fork
24798
24799 /* Override any gcc2 internal prototype to avoid an error.  */
24800 #ifdef __cplusplus
24801 extern "C"
24802 {
24803 #endif
24804 /* We use char because int might match the return type of a gcc2
24805    builtin and then its argument prototype would still apply.  */
24806 char cthread_fork ();
24807 /* The GNU C library defines this for functions which it implements
24808     to always fail with ENOSYS.  Some functions are actually named
24809     something starting with __ and the normal name is an alias.  */
24810 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24811 choke me
24812 #else
24813 char (*f) () = cthread_fork;
24814 #endif
24815 #ifdef __cplusplus
24816 }
24817 #endif
24818
24819 int
24820 main ()
24821 {
24822 return f != cthread_fork;
24823   ;
24824   return 0;
24825 }
24826 _ACEOF
24827 rm -f conftest.$ac_objext conftest$ac_exeext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24829   (eval $ac_link) 2>conftest.er1
24830   ac_status=$?
24831   grep -v '^ *+' conftest.er1 >conftest.err
24832   rm -f conftest.er1
24833   cat conftest.err >&5
24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); } &&
24836          { ac_try='test -z "$ac_c_werror_flag"
24837                          || test ! -s conftest.err'
24838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839   (eval $ac_try) 2>&5
24840   ac_status=$?
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); }; } &&
24843          { ac_try='test -s conftest$ac_exeext'
24844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845   (eval $ac_try) 2>&5
24846   ac_status=$?
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); }; }; then
24849   ac_cv_func_cthread_fork=yes
24850 else
24851   echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24853
24854 ac_cv_func_cthread_fork=no
24855 fi
24856 rm -f conftest.err conftest.$ac_objext \
24857       conftest$ac_exeext conftest.$ac_ext
24858 fi
24859 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24860 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24861 if test $ac_cv_func_cthread_fork = yes; then
24862   ol_link_threads=yes
24863 fi
24864
24865                 LIBS="$save_LIBS"
24866
24867                 if test $ol_link_threads = yes ; then
24868                         LTHREAD_LIBS="-lthreads"
24869                         ol_link_threads=mach
24870                         ol_with_threads=found
24871                 else
24872                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24873 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24874    { (exit 1); exit 1; }; }
24875                 fi
24876
24877         elif test $ol_with_threads = mach ; then
24878                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24879 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24880    { (exit 1); exit 1; }; }
24881         fi
24882
24883         if test $ol_link_threads = mach ; then
24884
24885 cat >>confdefs.h <<\_ACEOF
24886 #define HAVE_MACH_CTHREADS 1
24887 _ACEOF
24888
24889         elif test $ol_with_threads = found ; then
24890                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24891 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24892    { (exit 1); exit 1; }; }
24893         fi
24894         ;;
24895 esac
24896
24897 case $ol_with_threads in auto | yes | pth)
24898
24899
24900 for ac_header in pth.h
24901 do
24902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24904   echo "$as_me:$LINENO: checking for $ac_header" >&5
24905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24907   echo $ECHO_N "(cached) $ECHO_C" >&6
24908 fi
24909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24911 else
24912   # Is the header compilable?
24913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24915 cat >conftest.$ac_ext <<_ACEOF
24916 /* confdefs.h.  */
24917 _ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h.  */
24921 $ac_includes_default
24922 #include <$ac_header>
24923 _ACEOF
24924 rm -f conftest.$ac_objext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24926   (eval $ac_compile) 2>conftest.er1
24927   ac_status=$?
24928   grep -v '^ *+' conftest.er1 >conftest.err
24929   rm -f conftest.er1
24930   cat conftest.err >&5
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); } &&
24933          { ac_try='test -z "$ac_c_werror_flag"
24934                          || test ! -s conftest.err'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; } &&
24940          { ac_try='test -s conftest.$ac_objext'
24941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942   (eval $ac_try) 2>&5
24943   ac_status=$?
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); }; }; then
24946   ac_header_compiler=yes
24947 else
24948   echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24950
24951 ac_header_compiler=no
24952 fi
24953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24955 echo "${ECHO_T}$ac_header_compiler" >&6
24956
24957 # Is the header present?
24958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24960 cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h.  */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h.  */
24966 #include <$ac_header>
24967 _ACEOF
24968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24970   ac_status=$?
24971   grep -v '^ *+' conftest.er1 >conftest.err
24972   rm -f conftest.er1
24973   cat conftest.err >&5
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); } >/dev/null; then
24976   if test -s conftest.err; then
24977     ac_cpp_err=$ac_c_preproc_warn_flag
24978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24979   else
24980     ac_cpp_err=
24981   fi
24982 else
24983   ac_cpp_err=yes
24984 fi
24985 if test -z "$ac_cpp_err"; then
24986   ac_header_preproc=yes
24987 else
24988   echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24990
24991   ac_header_preproc=no
24992 fi
24993 rm -f conftest.err conftest.$ac_ext
24994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24995 echo "${ECHO_T}$ac_header_preproc" >&6
24996
24997 # So?  What about this header?
24998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24999   yes:no: )
25000     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25004     ac_header_preproc=yes
25005     ;;
25006   no:yes:* )
25007     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25009     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25010 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25011     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25013     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25014 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25017     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25019     (
25020       cat <<\_ASBOX
25021 ## --------------------------------------------- ##
25022 ## Report this to <http://www.openldap.org/its/> ##
25023 ## --------------------------------------------- ##
25024 _ASBOX
25025     ) |
25026       sed "s/^/$as_me: WARNING:     /" >&2
25027     ;;
25028 esac
25029 echo "$as_me:$LINENO: checking for $ac_header" >&5
25030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25032   echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034   eval "$as_ac_Header=\$ac_header_preproc"
25035 fi
25036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25038
25039 fi
25040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25041   cat >>confdefs.h <<_ACEOF
25042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25043 _ACEOF
25044
25045 fi
25046
25047 done
25048
25049
25050         if test $ac_cv_header_pth_h = yes ; then
25051                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25052 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25053 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25054   echo $ECHO_N "(cached) $ECHO_C" >&6
25055 else
25056   ac_check_lib_save_LIBS=$LIBS
25057 LIBS="-lpth  $LIBS"
25058 cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h.  */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h.  */
25064
25065 /* Override any gcc2 internal prototype to avoid an error.  */
25066 #ifdef __cplusplus
25067 extern "C"
25068 #endif
25069 /* We use char because int might match the return type of a gcc2
25070    builtin and then its argument prototype would still apply.  */
25071 char pth_version ();
25072 int
25073 main ()
25074 {
25075 pth_version ();
25076   ;
25077   return 0;
25078 }
25079 _ACEOF
25080 rm -f conftest.$ac_objext conftest$ac_exeext
25081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082   (eval $ac_link) 2>conftest.er1
25083   ac_status=$?
25084   grep -v '^ *+' conftest.er1 >conftest.err
25085   rm -f conftest.er1
25086   cat conftest.err >&5
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); } &&
25089          { ac_try='test -z "$ac_c_werror_flag"
25090                          || test ! -s conftest.err'
25091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092   (eval $ac_try) 2>&5
25093   ac_status=$?
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); }; } &&
25096          { ac_try='test -s conftest$ac_exeext'
25097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098   (eval $ac_try) 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; }; then
25102   ac_cv_lib_pth_pth_version=yes
25103 else
25104   echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25106
25107 ac_cv_lib_pth_pth_version=no
25108 fi
25109 rm -f conftest.err conftest.$ac_objext \
25110       conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25112 fi
25113 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25114 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25115 if test $ac_cv_lib_pth_pth_version = yes; then
25116   have_pth=yes
25117 else
25118   have_pth=no
25119 fi
25120
25121
25122                 if test $have_pth = yes ; then
25123
25124 cat >>confdefs.h <<\_ACEOF
25125 #define HAVE_GNU_PTH 1
25126 _ACEOF
25127
25128                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25129                         ol_link_threads=pth
25130                         ol_with_threads=found
25131
25132                         if test $ol_with_yielding_select = auto ; then
25133                                 ol_with_yielding_select=yes
25134                         fi
25135                 fi
25136         fi
25137         ;;
25138 esac
25139
25140 case $ol_with_threads in auto | yes | lwp)
25141
25142
25143
25144 for ac_header in thread.h synch.h
25145 do
25146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25148   echo "$as_me:$LINENO: checking for $ac_header" >&5
25149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25151   echo $ECHO_N "(cached) $ECHO_C" >&6
25152 fi
25153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25155 else
25156   # Is the header compilable?
25157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25159 cat >conftest.$ac_ext <<_ACEOF
25160 /* confdefs.h.  */
25161 _ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h.  */
25165 $ac_includes_default
25166 #include <$ac_header>
25167 _ACEOF
25168 rm -f conftest.$ac_objext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25170   (eval $ac_compile) 2>conftest.er1
25171   ac_status=$?
25172   grep -v '^ *+' conftest.er1 >conftest.err
25173   rm -f conftest.er1
25174   cat conftest.err >&5
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } &&
25177          { ac_try='test -z "$ac_c_werror_flag"
25178                          || test ! -s conftest.err'
25179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180   (eval $ac_try) 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); }; } &&
25184          { ac_try='test -s conftest.$ac_objext'
25185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186   (eval $ac_try) 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); }; }; then
25190   ac_header_compiler=yes
25191 else
25192   echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25194
25195 ac_header_compiler=no
25196 fi
25197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25199 echo "${ECHO_T}$ac_header_compiler" >&6
25200
25201 # Is the header present?
25202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h.  */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h.  */
25210 #include <$ac_header>
25211 _ACEOF
25212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25214   ac_status=$?
25215   grep -v '^ *+' conftest.er1 >conftest.err
25216   rm -f conftest.er1
25217   cat conftest.err >&5
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); } >/dev/null; then
25220   if test -s conftest.err; then
25221     ac_cpp_err=$ac_c_preproc_warn_flag
25222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25223   else
25224     ac_cpp_err=
25225   fi
25226 else
25227   ac_cpp_err=yes
25228 fi
25229 if test -z "$ac_cpp_err"; then
25230   ac_header_preproc=yes
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235   ac_header_preproc=no
25236 fi
25237 rm -f conftest.err conftest.$ac_ext
25238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25239 echo "${ECHO_T}$ac_header_preproc" >&6
25240
25241 # So?  What about this header?
25242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25243   yes:no: )
25244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25248     ac_header_preproc=yes
25249     ;;
25250   no:yes:* )
25251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25263     (
25264       cat <<\_ASBOX
25265 ## --------------------------------------------- ##
25266 ## Report this to <http://www.openldap.org/its/> ##
25267 ## --------------------------------------------- ##
25268 _ASBOX
25269     ) |
25270       sed "s/^/$as_me: WARNING:     /" >&2
25271     ;;
25272 esac
25273 echo "$as_me:$LINENO: checking for $ac_header" >&5
25274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25276   echo $ECHO_N "(cached) $ECHO_C" >&6
25277 else
25278   eval "$as_ac_Header=\$ac_header_preproc"
25279 fi
25280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25282
25283 fi
25284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25285   cat >>confdefs.h <<_ACEOF
25286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25287 _ACEOF
25288
25289 fi
25290
25291 done
25292
25293         if test $ac_cv_header_thread_h = yes &&
25294            test $ac_cv_header_synch_h = yes ; then
25295                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25296 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25297 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25298   echo $ECHO_N "(cached) $ECHO_C" >&6
25299 else
25300   ac_check_lib_save_LIBS=$LIBS
25301 LIBS="-lthread  $LIBS"
25302 cat >conftest.$ac_ext <<_ACEOF
25303 /* confdefs.h.  */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h.  */
25308
25309 /* Override any gcc2 internal prototype to avoid an error.  */
25310 #ifdef __cplusplus
25311 extern "C"
25312 #endif
25313 /* We use char because int might match the return type of a gcc2
25314    builtin and then its argument prototype would still apply.  */
25315 char thr_create ();
25316 int
25317 main ()
25318 {
25319 thr_create ();
25320   ;
25321   return 0;
25322 }
25323 _ACEOF
25324 rm -f conftest.$ac_objext conftest$ac_exeext
25325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25326   (eval $ac_link) 2>conftest.er1
25327   ac_status=$?
25328   grep -v '^ *+' conftest.er1 >conftest.err
25329   rm -f conftest.er1
25330   cat conftest.err >&5
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); } &&
25333          { ac_try='test -z "$ac_c_werror_flag"
25334                          || test ! -s conftest.err'
25335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336   (eval $ac_try) 2>&5
25337   ac_status=$?
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); }; } &&
25340          { ac_try='test -s conftest$ac_exeext'
25341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342   (eval $ac_try) 2>&5
25343   ac_status=$?
25344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345   (exit $ac_status); }; }; then
25346   ac_cv_lib_thread_thr_create=yes
25347 else
25348   echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25350
25351 ac_cv_lib_thread_thr_create=no
25352 fi
25353 rm -f conftest.err conftest.$ac_objext \
25354       conftest$ac_exeext conftest.$ac_ext
25355 LIBS=$ac_check_lib_save_LIBS
25356 fi
25357 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25358 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25359 if test $ac_cv_lib_thread_thr_create = yes; then
25360   have_thr=yes
25361 else
25362   have_thr=no
25363 fi
25364
25365
25366                 if test $have_thr = yes ; then
25367
25368 cat >>confdefs.h <<\_ACEOF
25369 #define HAVE_THR 1
25370 _ACEOF
25371
25372                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25373                         ol_link_threads=thr
25374
25375                         if test $ol_with_yielding_select = auto ; then
25376                                 ol_with_yielding_select=yes
25377                         fi
25378
25379
25380
25381 for ac_func in \
25382                                 thr_setconcurrency \
25383                                 thr_getconcurrency \
25384
25385 do
25386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25387 echo "$as_me:$LINENO: checking for $ac_func" >&5
25388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25389 if eval "test \"\${$as_ac_var+set}\" = set"; then
25390   echo $ECHO_N "(cached) $ECHO_C" >&6
25391 else
25392   cat >conftest.$ac_ext <<_ACEOF
25393 /* confdefs.h.  */
25394 _ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h.  */
25398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25400 #define $ac_func innocuous_$ac_func
25401
25402 /* System header to define __stub macros and hopefully few prototypes,
25403     which can conflict with char $ac_func (); below.
25404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25405     <limits.h> exists even on freestanding compilers.  */
25406
25407 #ifdef __STDC__
25408 # include <limits.h>
25409 #else
25410 # include <assert.h>
25411 #endif
25412
25413 #undef $ac_func
25414
25415 /* Override any gcc2 internal prototype to avoid an error.  */
25416 #ifdef __cplusplus
25417 extern "C"
25418 {
25419 #endif
25420 /* We use char because int might match the return type of a gcc2
25421    builtin and then its argument prototype would still apply.  */
25422 char $ac_func ();
25423 /* The GNU C library defines this for functions which it implements
25424     to always fail with ENOSYS.  Some functions are actually named
25425     something starting with __ and the normal name is an alias.  */
25426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25427 choke me
25428 #else
25429 char (*f) () = $ac_func;
25430 #endif
25431 #ifdef __cplusplus
25432 }
25433 #endif
25434
25435 int
25436 main ()
25437 {
25438 return f != $ac_func;
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25445   (eval $ac_link) 2>conftest.er1
25446   ac_status=$?
25447   grep -v '^ *+' conftest.er1 >conftest.err
25448   rm -f conftest.er1
25449   cat conftest.err >&5
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); } &&
25452          { ac_try='test -z "$ac_c_werror_flag"
25453                          || test ! -s conftest.err'
25454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455   (eval $ac_try) 2>&5
25456   ac_status=$?
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); }; } &&
25459          { ac_try='test -s conftest$ac_exeext'
25460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461   (eval $ac_try) 2>&5
25462   ac_status=$?
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); }; }; then
25465   eval "$as_ac_var=yes"
25466 else
25467   echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25469
25470 eval "$as_ac_var=no"
25471 fi
25472 rm -f conftest.err conftest.$ac_objext \
25473       conftest$ac_exeext conftest.$ac_ext
25474 fi
25475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25477 if test `eval echo '${'$as_ac_var'}'` = yes; then
25478   cat >>confdefs.h <<_ACEOF
25479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25480 _ACEOF
25481
25482 fi
25483 done
25484
25485                 fi
25486         fi
25487
25488
25489 for ac_header in lwp/lwp.h
25490 do
25491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25493   echo "$as_me:$LINENO: checking for $ac_header" >&5
25494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25496   echo $ECHO_N "(cached) $ECHO_C" >&6
25497 fi
25498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25500 else
25501   # Is the header compilable?
25502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25504 cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h.  */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h.  */
25510 $ac_includes_default
25511 #include <$ac_header>
25512 _ACEOF
25513 rm -f conftest.$ac_objext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25515   (eval $ac_compile) 2>conftest.er1
25516   ac_status=$?
25517   grep -v '^ *+' conftest.er1 >conftest.err
25518   rm -f conftest.er1
25519   cat conftest.err >&5
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); } &&
25522          { ac_try='test -z "$ac_c_werror_flag"
25523                          || test ! -s conftest.err'
25524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525   (eval $ac_try) 2>&5
25526   ac_status=$?
25527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528   (exit $ac_status); }; } &&
25529          { ac_try='test -s conftest.$ac_objext'
25530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25531   (eval $ac_try) 2>&5
25532   ac_status=$?
25533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534   (exit $ac_status); }; }; then
25535   ac_header_compiler=yes
25536 else
25537   echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25539
25540 ac_header_compiler=no
25541 fi
25542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25544 echo "${ECHO_T}$ac_header_compiler" >&6
25545
25546 # Is the header present?
25547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25549 cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555 #include <$ac_header>
25556 _ACEOF
25557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25558   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25559   ac_status=$?
25560   grep -v '^ *+' conftest.er1 >conftest.err
25561   rm -f conftest.er1
25562   cat conftest.err >&5
25563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564   (exit $ac_status); } >/dev/null; then
25565   if test -s conftest.err; then
25566     ac_cpp_err=$ac_c_preproc_warn_flag
25567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25568   else
25569     ac_cpp_err=
25570   fi
25571 else
25572   ac_cpp_err=yes
25573 fi
25574 if test -z "$ac_cpp_err"; then
25575   ac_header_preproc=yes
25576 else
25577   echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25579
25580   ac_header_preproc=no
25581 fi
25582 rm -f conftest.err conftest.$ac_ext
25583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25584 echo "${ECHO_T}$ac_header_preproc" >&6
25585
25586 # So?  What about this header?
25587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25588   yes:no: )
25589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25593     ac_header_preproc=yes
25594     ;;
25595   no:yes:* )
25596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25608     (
25609       cat <<\_ASBOX
25610 ## --------------------------------------------- ##
25611 ## Report this to <http://www.openldap.org/its/> ##
25612 ## --------------------------------------------- ##
25613 _ASBOX
25614     ) |
25615       sed "s/^/$as_me: WARNING:     /" >&2
25616     ;;
25617 esac
25618 echo "$as_me:$LINENO: checking for $ac_header" >&5
25619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25621   echo $ECHO_N "(cached) $ECHO_C" >&6
25622 else
25623   eval "$as_ac_Header=\$ac_header_preproc"
25624 fi
25625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25627
25628 fi
25629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25630   cat >>confdefs.h <<_ACEOF
25631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25632 _ACEOF
25633
25634 fi
25635
25636 done
25637
25638         if test $ac_cv_header_lwp_lwp_h = yes ; then
25639                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25640 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25641 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25642   echo $ECHO_N "(cached) $ECHO_C" >&6
25643 else
25644   ac_check_lib_save_LIBS=$LIBS
25645 LIBS="-llwp  $LIBS"
25646 cat >conftest.$ac_ext <<_ACEOF
25647 /* confdefs.h.  */
25648 _ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h.  */
25652
25653 /* Override any gcc2 internal prototype to avoid an error.  */
25654 #ifdef __cplusplus
25655 extern "C"
25656 #endif
25657 /* We use char because int might match the return type of a gcc2
25658    builtin and then its argument prototype would still apply.  */
25659 char lwp_create ();
25660 int
25661 main ()
25662 {
25663 lwp_create ();
25664   ;
25665   return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest.$ac_objext conftest$ac_exeext
25669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25670   (eval $ac_link) 2>conftest.er1
25671   ac_status=$?
25672   grep -v '^ *+' conftest.er1 >conftest.err
25673   rm -f conftest.er1
25674   cat conftest.err >&5
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); } &&
25677          { ac_try='test -z "$ac_c_werror_flag"
25678                          || test ! -s conftest.err'
25679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680   (eval $ac_try) 2>&5
25681   ac_status=$?
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); }; } &&
25684          { ac_try='test -s conftest$ac_exeext'
25685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686   (eval $ac_try) 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; }; then
25690   ac_cv_lib_lwp_lwp_create=yes
25691 else
25692   echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25694
25695 ac_cv_lib_lwp_lwp_create=no
25696 fi
25697 rm -f conftest.err conftest.$ac_objext \
25698       conftest$ac_exeext conftest.$ac_ext
25699 LIBS=$ac_check_lib_save_LIBS
25700 fi
25701 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25702 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25703 if test $ac_cv_lib_lwp_lwp_create = yes; then
25704   have_lwp=yes
25705 else
25706   have_lwp=no
25707 fi
25708
25709
25710                 if test $have_lwp = yes ; then
25711
25712 cat >>confdefs.h <<\_ACEOF
25713 #define HAVE_LWP 1
25714 _ACEOF
25715
25716                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25717                         ol_link_threads=lwp
25718
25719                         if test $ol_with_yielding_select = auto ; then
25720                                 ol_with_yielding_select=no
25721                         fi
25722                 fi
25723         fi
25724         ;;
25725 esac
25726
25727 if test $ol_with_yielding_select = yes ; then
25728
25729 cat >>confdefs.h <<\_ACEOF
25730 #define HAVE_YIELDING_SELECT 1
25731 _ACEOF
25732
25733 fi
25734
25735 if test $ol_with_threads = manual ; then
25736                 ol_link_threads=yes
25737
25738         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25739 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25740
25741
25742
25743 for ac_header in pthread.h sched.h
25744 do
25745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25747   echo "$as_me:$LINENO: checking for $ac_header" >&5
25748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25750   echo $ECHO_N "(cached) $ECHO_C" >&6
25751 fi
25752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25754 else
25755   # Is the header compilable?
25756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h.  */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h.  */
25764 $ac_includes_default
25765 #include <$ac_header>
25766 _ACEOF
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769   (eval $ac_compile) 2>conftest.er1
25770   ac_status=$?
25771   grep -v '^ *+' conftest.er1 >conftest.err
25772   rm -f conftest.er1
25773   cat conftest.err >&5
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); } &&
25776          { ac_try='test -z "$ac_c_werror_flag"
25777                          || test ! -s conftest.err'
25778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779   (eval $ac_try) 2>&5
25780   ac_status=$?
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); }; } &&
25783          { ac_try='test -s conftest.$ac_objext'
25784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785   (eval $ac_try) 2>&5
25786   ac_status=$?
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); }; }; then
25789   ac_header_compiler=yes
25790 else
25791   echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794 ac_header_compiler=no
25795 fi
25796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25798 echo "${ECHO_T}$ac_header_compiler" >&6
25799
25800 # Is the header present?
25801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25803 cat >conftest.$ac_ext <<_ACEOF
25804 /* confdefs.h.  */
25805 _ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h.  */
25809 #include <$ac_header>
25810 _ACEOF
25811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25813   ac_status=$?
25814   grep -v '^ *+' conftest.er1 >conftest.err
25815   rm -f conftest.er1
25816   cat conftest.err >&5
25817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818   (exit $ac_status); } >/dev/null; then
25819   if test -s conftest.err; then
25820     ac_cpp_err=$ac_c_preproc_warn_flag
25821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25822   else
25823     ac_cpp_err=
25824   fi
25825 else
25826   ac_cpp_err=yes
25827 fi
25828 if test -z "$ac_cpp_err"; then
25829   ac_header_preproc=yes
25830 else
25831   echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25833
25834   ac_header_preproc=no
25835 fi
25836 rm -f conftest.err conftest.$ac_ext
25837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25838 echo "${ECHO_T}$ac_header_preproc" >&6
25839
25840 # So?  What about this header?
25841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25842   yes:no: )
25843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25847     ac_header_preproc=yes
25848     ;;
25849   no:yes:* )
25850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25862     (
25863       cat <<\_ASBOX
25864 ## --------------------------------------------- ##
25865 ## Report this to <http://www.openldap.org/its/> ##
25866 ## --------------------------------------------- ##
25867 _ASBOX
25868     ) |
25869       sed "s/^/$as_me: WARNING:     /" >&2
25870     ;;
25871 esac
25872 echo "$as_me:$LINENO: checking for $ac_header" >&5
25873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877   eval "$as_ac_Header=\$ac_header_preproc"
25878 fi
25879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25881
25882 fi
25883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25884   cat >>confdefs.h <<_ACEOF
25885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25886 _ACEOF
25887
25888 fi
25889
25890 done
25891
25892
25893
25894 for ac_func in sched_yield pthread_yield
25895 do
25896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25897 echo "$as_me:$LINENO: checking for $ac_func" >&5
25898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25899 if eval "test \"\${$as_ac_var+set}\" = set"; then
25900   echo $ECHO_N "(cached) $ECHO_C" >&6
25901 else
25902   cat >conftest.$ac_ext <<_ACEOF
25903 /* confdefs.h.  */
25904 _ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h.  */
25908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25910 #define $ac_func innocuous_$ac_func
25911
25912 /* System header to define __stub macros and hopefully few prototypes,
25913     which can conflict with char $ac_func (); below.
25914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25915     <limits.h> exists even on freestanding compilers.  */
25916
25917 #ifdef __STDC__
25918 # include <limits.h>
25919 #else
25920 # include <assert.h>
25921 #endif
25922
25923 #undef $ac_func
25924
25925 /* Override any gcc2 internal prototype to avoid an error.  */
25926 #ifdef __cplusplus
25927 extern "C"
25928 {
25929 #endif
25930 /* We use char because int might match the return type of a gcc2
25931    builtin and then its argument prototype would still apply.  */
25932 char $ac_func ();
25933 /* The GNU C library defines this for functions which it implements
25934     to always fail with ENOSYS.  Some functions are actually named
25935     something starting with __ and the normal name is an alias.  */
25936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25937 choke me
25938 #else
25939 char (*f) () = $ac_func;
25940 #endif
25941 #ifdef __cplusplus
25942 }
25943 #endif
25944
25945 int
25946 main ()
25947 {
25948 return f != $ac_func;
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 rm -f conftest.$ac_objext conftest$ac_exeext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955   (eval $ac_link) 2>conftest.er1
25956   ac_status=$?
25957   grep -v '^ *+' conftest.er1 >conftest.err
25958   rm -f conftest.er1
25959   cat conftest.err >&5
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); } &&
25962          { ac_try='test -z "$ac_c_werror_flag"
25963                          || test ! -s conftest.err'
25964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); }; } &&
25969          { ac_try='test -s conftest$ac_exeext'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; }; then
25975   eval "$as_ac_var=yes"
25976 else
25977   echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 eval "$as_ac_var=no"
25981 fi
25982 rm -f conftest.err conftest.$ac_objext \
25983       conftest$ac_exeext conftest.$ac_ext
25984 fi
25985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25987 if test `eval echo '${'$as_ac_var'}'` = yes; then
25988   cat >>confdefs.h <<_ACEOF
25989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25990 _ACEOF
25991
25992 fi
25993 done
25994
25995
25996         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25997 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25998 if test "${ol_cv_header_linux_threads+set}" = set; then
25999   echo $ECHO_N "(cached) $ECHO_C" >&6
26000 else
26001   cat >conftest.$ac_ext <<_ACEOF
26002 /* confdefs.h.  */
26003 _ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h.  */
26007 #include <pthread.h>
26008 _ACEOF
26009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26010   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26011   ol_cv_header_linux_threads=yes
26012 else
26013   ol_cv_header_linux_threads=no
26014 fi
26015 rm -f conftest*
26016
26017
26018 fi
26019 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26020 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26021         if test $ol_cv_header_linux_threads = yes; then
26022
26023 cat >>confdefs.h <<\_ACEOF
26024 #define HAVE_LINUX_THREADS 1
26025 _ACEOF
26026
26027         fi
26028
26029
26030
26031 for ac_header in mach/cthreads.h
26032 do
26033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26035   echo "$as_me:$LINENO: checking for $ac_header" >&5
26036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26038   echo $ECHO_N "(cached) $ECHO_C" >&6
26039 fi
26040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26042 else
26043   # Is the header compilable?
26044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26046 cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052 $ac_includes_default
26053 #include <$ac_header>
26054 _ACEOF
26055 rm -f conftest.$ac_objext
26056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26057   (eval $ac_compile) 2>conftest.er1
26058   ac_status=$?
26059   grep -v '^ *+' conftest.er1 >conftest.err
26060   rm -f conftest.er1
26061   cat conftest.err >&5
26062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063   (exit $ac_status); } &&
26064          { ac_try='test -z "$ac_c_werror_flag"
26065                          || test ! -s conftest.err'
26066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067   (eval $ac_try) 2>&5
26068   ac_status=$?
26069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070   (exit $ac_status); }; } &&
26071          { ac_try='test -s conftest.$ac_objext'
26072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26073   (eval $ac_try) 2>&5
26074   ac_status=$?
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); }; }; then
26077   ac_header_compiler=yes
26078 else
26079   echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.$ac_ext >&5
26081
26082 ac_header_compiler=no
26083 fi
26084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26086 echo "${ECHO_T}$ac_header_compiler" >&6
26087
26088 # Is the header present?
26089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26091 cat >conftest.$ac_ext <<_ACEOF
26092 /* confdefs.h.  */
26093 _ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h.  */
26097 #include <$ac_header>
26098 _ACEOF
26099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26101   ac_status=$?
26102   grep -v '^ *+' conftest.er1 >conftest.err
26103   rm -f conftest.er1
26104   cat conftest.err >&5
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); } >/dev/null; then
26107   if test -s conftest.err; then
26108     ac_cpp_err=$ac_c_preproc_warn_flag
26109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26110   else
26111     ac_cpp_err=
26112   fi
26113 else
26114   ac_cpp_err=yes
26115 fi
26116 if test -z "$ac_cpp_err"; then
26117   ac_header_preproc=yes
26118 else
26119   echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26121
26122   ac_header_preproc=no
26123 fi
26124 rm -f conftest.err conftest.$ac_ext
26125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26126 echo "${ECHO_T}$ac_header_preproc" >&6
26127
26128 # So?  What about this header?
26129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26130   yes:no: )
26131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26135     ac_header_preproc=yes
26136     ;;
26137   no:yes:* )
26138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26150     (
26151       cat <<\_ASBOX
26152 ## --------------------------------------------- ##
26153 ## Report this to <http://www.openldap.org/its/> ##
26154 ## --------------------------------------------- ##
26155 _ASBOX
26156     ) |
26157       sed "s/^/$as_me: WARNING:     /" >&2
26158     ;;
26159 esac
26160 echo "$as_me:$LINENO: checking for $ac_header" >&5
26161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26163   echo $ECHO_N "(cached) $ECHO_C" >&6
26164 else
26165   eval "$as_ac_Header=\$ac_header_preproc"
26166 fi
26167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26169
26170 fi
26171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26172   cat >>confdefs.h <<_ACEOF
26173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26174 _ACEOF
26175
26176 fi
26177
26178 done
26179
26180
26181 for ac_header in lwp/lwp.h
26182 do
26183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26185   echo "$as_me:$LINENO: checking for $ac_header" >&5
26186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26188   echo $ECHO_N "(cached) $ECHO_C" >&6
26189 fi
26190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26192 else
26193   # Is the header compilable?
26194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26196 cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202 $ac_includes_default
26203 #include <$ac_header>
26204 _ACEOF
26205 rm -f conftest.$ac_objext
26206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26207   (eval $ac_compile) 2>conftest.er1
26208   ac_status=$?
26209   grep -v '^ *+' conftest.er1 >conftest.err
26210   rm -f conftest.er1
26211   cat conftest.err >&5
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); } &&
26214          { ac_try='test -z "$ac_c_werror_flag"
26215                          || test ! -s conftest.err'
26216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217   (eval $ac_try) 2>&5
26218   ac_status=$?
26219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220   (exit $ac_status); }; } &&
26221          { ac_try='test -s conftest.$ac_objext'
26222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223   (eval $ac_try) 2>&5
26224   ac_status=$?
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); }; }; then
26227   ac_header_compiler=yes
26228 else
26229   echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26231
26232 ac_header_compiler=no
26233 fi
26234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26236 echo "${ECHO_T}$ac_header_compiler" >&6
26237
26238 # Is the header present?
26239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26241 cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h.  */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h.  */
26247 #include <$ac_header>
26248 _ACEOF
26249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26251   ac_status=$?
26252   grep -v '^ *+' conftest.er1 >conftest.err
26253   rm -f conftest.er1
26254   cat conftest.err >&5
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); } >/dev/null; then
26257   if test -s conftest.err; then
26258     ac_cpp_err=$ac_c_preproc_warn_flag
26259     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26260   else
26261     ac_cpp_err=
26262   fi
26263 else
26264   ac_cpp_err=yes
26265 fi
26266 if test -z "$ac_cpp_err"; then
26267   ac_header_preproc=yes
26268 else
26269   echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26271
26272   ac_header_preproc=no
26273 fi
26274 rm -f conftest.err conftest.$ac_ext
26275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26276 echo "${ECHO_T}$ac_header_preproc" >&6
26277
26278 # So?  What about this header?
26279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26280   yes:no: )
26281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26285     ac_header_preproc=yes
26286     ;;
26287   no:yes:* )
26288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26300     (
26301       cat <<\_ASBOX
26302 ## --------------------------------------------- ##
26303 ## Report this to <http://www.openldap.org/its/> ##
26304 ## --------------------------------------------- ##
26305 _ASBOX
26306     ) |
26307       sed "s/^/$as_me: WARNING:     /" >&2
26308     ;;
26309 esac
26310 echo "$as_me:$LINENO: checking for $ac_header" >&5
26311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26313   echo $ECHO_N "(cached) $ECHO_C" >&6
26314 else
26315   eval "$as_ac_Header=\$ac_header_preproc"
26316 fi
26317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26319
26320 fi
26321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26322   cat >>confdefs.h <<_ACEOF
26323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26324 _ACEOF
26325
26326 fi
26327
26328 done
26329
26330
26331
26332 for ac_header in thread.h synch.h
26333 do
26334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26336   echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26339   echo $ECHO_N "(cached) $ECHO_C" >&6
26340 fi
26341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26343 else
26344   # Is the header compilable?
26345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26347 cat >conftest.$ac_ext <<_ACEOF
26348 /* confdefs.h.  */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h.  */
26353 $ac_includes_default
26354 #include <$ac_header>
26355 _ACEOF
26356 rm -f conftest.$ac_objext
26357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26358   (eval $ac_compile) 2>conftest.er1
26359   ac_status=$?
26360   grep -v '^ *+' conftest.er1 >conftest.err
26361   rm -f conftest.er1
26362   cat conftest.err >&5
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); } &&
26365          { ac_try='test -z "$ac_c_werror_flag"
26366                          || test ! -s conftest.err'
26367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26368   (eval $ac_try) 2>&5
26369   ac_status=$?
26370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371   (exit $ac_status); }; } &&
26372          { ac_try='test -s conftest.$ac_objext'
26373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374   (eval $ac_try) 2>&5
26375   ac_status=$?
26376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377   (exit $ac_status); }; }; then
26378   ac_header_compiler=yes
26379 else
26380   echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26382
26383 ac_header_compiler=no
26384 fi
26385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26387 echo "${ECHO_T}$ac_header_compiler" >&6
26388
26389 # Is the header present?
26390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398 #include <$ac_header>
26399 _ACEOF
26400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26402   ac_status=$?
26403   grep -v '^ *+' conftest.er1 >conftest.err
26404   rm -f conftest.er1
26405   cat conftest.err >&5
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); } >/dev/null; then
26408   if test -s conftest.err; then
26409     ac_cpp_err=$ac_c_preproc_warn_flag
26410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26411   else
26412     ac_cpp_err=
26413   fi
26414 else
26415   ac_cpp_err=yes
26416 fi
26417 if test -z "$ac_cpp_err"; then
26418   ac_header_preproc=yes
26419 else
26420   echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26422
26423   ac_header_preproc=no
26424 fi
26425 rm -f conftest.err conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26427 echo "${ECHO_T}$ac_header_preproc" >&6
26428
26429 # So?  What about this header?
26430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26431   yes:no: )
26432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26436     ac_header_preproc=yes
26437     ;;
26438   no:yes:* )
26439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26451     (
26452       cat <<\_ASBOX
26453 ## --------------------------------------------- ##
26454 ## Report this to <http://www.openldap.org/its/> ##
26455 ## --------------------------------------------- ##
26456 _ASBOX
26457     ) |
26458       sed "s/^/$as_me: WARNING:     /" >&2
26459     ;;
26460 esac
26461 echo "$as_me:$LINENO: checking for $ac_header" >&5
26462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26464   echo $ECHO_N "(cached) $ECHO_C" >&6
26465 else
26466   eval "$as_ac_Header=\$ac_header_preproc"
26467 fi
26468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26470
26471 fi
26472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26473   cat >>confdefs.h <<_ACEOF
26474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26475 _ACEOF
26476
26477 fi
26478
26479 done
26480
26481 fi
26482
26483 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26484                         cat >>confdefs.h <<\_ACEOF
26485 #define REENTRANT 1
26486 _ACEOF
26487
26488         cat >>confdefs.h <<\_ACEOF
26489 #define _REENTRANT 1
26490 _ACEOF
26491
26492         cat >>confdefs.h <<\_ACEOF
26493 #define THREAD_SAFE 1
26494 _ACEOF
26495
26496         cat >>confdefs.h <<\_ACEOF
26497 #define _THREAD_SAFE 1
26498 _ACEOF
26499
26500         cat >>confdefs.h <<\_ACEOF
26501 #define THREADSAFE 1
26502 _ACEOF
26503
26504         cat >>confdefs.h <<\_ACEOF
26505 #define _THREADSAFE 1
26506 _ACEOF
26507
26508         cat >>confdefs.h <<\_ACEOF
26509 #define _SGI_MP_SOURCE 1
26510 _ACEOF
26511
26512
26513                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26514 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26515 if test "${ol_cv_errno_thread_specific+set}" = set; then
26516   echo $ECHO_N "(cached) $ECHO_C" >&6
26517 else
26518
26519                 cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 #include <errno.h>
26526 int
26527 main ()
26528 {
26529 errno = 0;
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 rm -f conftest.$ac_objext conftest$ac_exeext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26536   (eval $ac_link) 2>conftest.er1
26537   ac_status=$?
26538   grep -v '^ *+' conftest.er1 >conftest.err
26539   rm -f conftest.er1
26540   cat conftest.err >&5
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); } &&
26543          { ac_try='test -z "$ac_c_werror_flag"
26544                          || test ! -s conftest.err'
26545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546   (eval $ac_try) 2>&5
26547   ac_status=$?
26548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549   (exit $ac_status); }; } &&
26550          { ac_try='test -s conftest$ac_exeext'
26551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552   (eval $ac_try) 2>&5
26553   ac_status=$?
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); }; }; then
26556   ol_cv_errno_thread_specific=yes
26557 else
26558   echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26560
26561 ol_cv_errno_thread_specific=no
26562 fi
26563 rm -f conftest.err conftest.$ac_objext \
26564       conftest$ac_exeext conftest.$ac_ext
26565
26566 fi
26567 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26568 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26569
26570                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26571 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26572 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26573   echo $ECHO_N "(cached) $ECHO_C" >&6
26574 else
26575
26576                 cat >conftest.$ac_ext <<_ACEOF
26577 /* confdefs.h.  */
26578 _ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h.  */
26582 #include <netdb.h>
26583 int
26584 main ()
26585 {
26586 h_errno = 0;
26587   ;
26588   return 0;
26589 }
26590 _ACEOF
26591 rm -f conftest.$ac_objext conftest$ac_exeext
26592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26593   (eval $ac_link) 2>conftest.er1
26594   ac_status=$?
26595   grep -v '^ *+' conftest.er1 >conftest.err
26596   rm -f conftest.er1
26597   cat conftest.err >&5
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); } &&
26600          { ac_try='test -z "$ac_c_werror_flag"
26601                          || test ! -s conftest.err'
26602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603   (eval $ac_try) 2>&5
26604   ac_status=$?
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); }; } &&
26607          { ac_try='test -s conftest$ac_exeext'
26608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609   (eval $ac_try) 2>&5
26610   ac_status=$?
26611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612   (exit $ac_status); }; }; then
26613   ol_cv_h_errno_thread_specific=yes
26614 else
26615   echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26617
26618 ol_cv_h_errno_thread_specific=no
26619 fi
26620 rm -f conftest.err conftest.$ac_objext \
26621       conftest$ac_exeext conftest.$ac_ext
26622
26623 fi
26624 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26625 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26626
26627         if test $ol_cv_errno_thread_specific != yes ||
26628            test $ol_cv_h_errno_thread_specific != yes ; then
26629                 LIBS="$LTHREAD_LIBS $LIBS"
26630                 LTHREAD_LIBS=""
26631         fi
26632
26633 fi
26634
26635 if test $ol_link_threads = no ; then
26636         if test $ol_with_threads = yes ; then
26637                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26638 echo "$as_me: error: no suitable thread support" >&2;}
26639    { (exit 1); exit 1; }; }
26640         fi
26641
26642         if test $ol_with_threads = auto ; then
26643                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26644 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26645                 ol_with_threads=no
26646         fi
26647
26648
26649 cat >>confdefs.h <<\_ACEOF
26650 #define NO_THREADS 1
26651 _ACEOF
26652
26653         LTHREAD_LIBS=""
26654         BUILD_THREAD=no
26655 else
26656         BUILD_THREAD=yes
26657 fi
26658
26659 if test $ol_link_threads != no ; then
26660
26661 cat >>confdefs.h <<\_ACEOF
26662 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26663 _ACEOF
26664
26665 fi
26666
26667
26668
26669
26670 for ac_func in \
26671         ctime_r                 \
26672         gethostbyname_r gethostbyaddr_r \
26673
26674 do
26675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26676 echo "$as_me:$LINENO: checking for $ac_func" >&5
26677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26678 if eval "test \"\${$as_ac_var+set}\" = set"; then
26679   echo $ECHO_N "(cached) $ECHO_C" >&6
26680 else
26681   cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h.  */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h.  */
26687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26689 #define $ac_func innocuous_$ac_func
26690
26691 /* System header to define __stub macros and hopefully few prototypes,
26692     which can conflict with char $ac_func (); below.
26693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26694     <limits.h> exists even on freestanding compilers.  */
26695
26696 #ifdef __STDC__
26697 # include <limits.h>
26698 #else
26699 # include <assert.h>
26700 #endif
26701
26702 #undef $ac_func
26703
26704 /* Override any gcc2 internal prototype to avoid an error.  */
26705 #ifdef __cplusplus
26706 extern "C"
26707 {
26708 #endif
26709 /* We use char because int might match the return type of a gcc2
26710    builtin and then its argument prototype would still apply.  */
26711 char $ac_func ();
26712 /* The GNU C library defines this for functions which it implements
26713     to always fail with ENOSYS.  Some functions are actually named
26714     something starting with __ and the normal name is an alias.  */
26715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26716 choke me
26717 #else
26718 char (*f) () = $ac_func;
26719 #endif
26720 #ifdef __cplusplus
26721 }
26722 #endif
26723
26724 int
26725 main ()
26726 {
26727 return f != $ac_func;
26728   ;
26729   return 0;
26730 }
26731 _ACEOF
26732 rm -f conftest.$ac_objext conftest$ac_exeext
26733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26734   (eval $ac_link) 2>conftest.er1
26735   ac_status=$?
26736   grep -v '^ *+' conftest.er1 >conftest.err
26737   rm -f conftest.er1
26738   cat conftest.err >&5
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); } &&
26741          { ac_try='test -z "$ac_c_werror_flag"
26742                          || test ! -s conftest.err'
26743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744   (eval $ac_try) 2>&5
26745   ac_status=$?
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); }; } &&
26748          { ac_try='test -s conftest$ac_exeext'
26749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750   (eval $ac_try) 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; }; then
26754   eval "$as_ac_var=yes"
26755 else
26756   echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26758
26759 eval "$as_ac_var=no"
26760 fi
26761 rm -f conftest.err conftest.$ac_objext \
26762       conftest$ac_exeext conftest.$ac_ext
26763 fi
26764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26766 if test `eval echo '${'$as_ac_var'}'` = yes; then
26767   cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26769 _ACEOF
26770
26771 fi
26772 done
26773
26774
26775 if test "$ac_cv_func_ctime_r" = no ; then
26776         ol_cv_func_ctime_r_nargs=0
26777 else
26778         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26779 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26780 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26781   echo $ECHO_N "(cached) $ECHO_C" >&6
26782 else
26783   cat >conftest.$ac_ext <<_ACEOF
26784 /* confdefs.h.  */
26785 _ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h.  */
26789 #include <time.h>
26790 int
26791 main ()
26792 {
26793 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26794   ;
26795   return 0;
26796 }
26797 _ACEOF
26798 rm -f conftest.$ac_objext
26799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26800   (eval $ac_compile) 2>conftest.er1
26801   ac_status=$?
26802   grep -v '^ *+' conftest.er1 >conftest.err
26803   rm -f conftest.er1
26804   cat conftest.err >&5
26805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806   (exit $ac_status); } &&
26807          { ac_try='test -z "$ac_c_werror_flag"
26808                          || test ! -s conftest.err'
26809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810   (eval $ac_try) 2>&5
26811   ac_status=$?
26812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813   (exit $ac_status); }; } &&
26814          { ac_try='test -s conftest.$ac_objext'
26815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816   (eval $ac_try) 2>&5
26817   ac_status=$?
26818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819   (exit $ac_status); }; }; then
26820   ol_cv_func_ctime_r_nargs3=yes
26821 else
26822   echo "$as_me: failed program was:" >&5
26823 sed 's/^/| /' conftest.$ac_ext >&5
26824
26825 ol_cv_func_ctime_r_nargs3=no
26826 fi
26827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26828
26829         cat >conftest.$ac_ext <<_ACEOF
26830 /* confdefs.h.  */
26831 _ACEOF
26832 cat confdefs.h >>conftest.$ac_ext
26833 cat >>conftest.$ac_ext <<_ACEOF
26834 /* end confdefs.h.  */
26835 #include <time.h>
26836 int
26837 main ()
26838 {
26839 time_t ti; char *buffer; ctime_r(&ti,buffer);
26840   ;
26841   return 0;
26842 }
26843 _ACEOF
26844 rm -f conftest.$ac_objext
26845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26846   (eval $ac_compile) 2>conftest.er1
26847   ac_status=$?
26848   grep -v '^ *+' conftest.er1 >conftest.err
26849   rm -f conftest.er1
26850   cat conftest.err >&5
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); } &&
26853          { ac_try='test -z "$ac_c_werror_flag"
26854                          || test ! -s conftest.err'
26855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856   (eval $ac_try) 2>&5
26857   ac_status=$?
26858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); }; } &&
26860          { ac_try='test -s conftest.$ac_objext'
26861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862   (eval $ac_try) 2>&5
26863   ac_status=$?
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); }; }; then
26866   ol_cv_func_ctime_r_nargs2=yes
26867 else
26868   echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26870
26871 ol_cv_func_ctime_r_nargs2=no
26872 fi
26873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26874
26875         if test $ol_cv_func_ctime_r_nargs3 = yes &&
26876            test $ol_cv_func_ctime_r_nargs2 = no ; then
26877
26878                 ol_cv_func_ctime_r_nargs=3
26879
26880         elif test $ol_cv_func_ctime_r_nargs3 = no &&
26881              test $ol_cv_func_ctime_r_nargs2 = yes ; then
26882
26883                 ol_cv_func_ctime_r_nargs=2
26884
26885         else
26886                 ol_cv_func_ctime_r_nargs=0
26887         fi
26888
26889 fi
26890 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26891 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26892
26893   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26894
26895 cat >>confdefs.h <<_ACEOF
26896 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26897 _ACEOF
26898
26899   fi
26900
26901 fi
26902
26903 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26904         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26905 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26906 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26907   echo $ECHO_N "(cached) $ECHO_C" >&6
26908 else
26909   cat >conftest.$ac_ext <<_ACEOF
26910 /* confdefs.h.  */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h.  */
26915 #include <sys/types.h>
26916 #include <sys/socket.h>
26917 #include <netinet/in.h>
26918 #include <netdb.h>
26919 #define BUFSIZE (sizeof(struct hostent)+10)
26920 int
26921 main ()
26922 {
26923 struct hostent hent; char buffer[BUFSIZE];
26924                 int bufsize=BUFSIZE;int h_errno;
26925                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26926                         buffer, bufsize, &h_errno);
26927   ;
26928   return 0;
26929 }
26930 _ACEOF
26931 rm -f conftest.$ac_objext
26932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26933   (eval $ac_compile) 2>conftest.er1
26934   ac_status=$?
26935   grep -v '^ *+' conftest.er1 >conftest.err
26936   rm -f conftest.er1
26937   cat conftest.err >&5
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } &&
26940          { ac_try='test -z "$ac_c_werror_flag"
26941                          || test ! -s conftest.err'
26942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943   (eval $ac_try) 2>&5
26944   ac_status=$?
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); }; } &&
26947          { ac_try='test -s conftest.$ac_objext'
26948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949   (eval $ac_try) 2>&5
26950   ac_status=$?
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); }; }; then
26953   ol_cv_func_gethostbyname_r_nargs5=yes
26954 else
26955   echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26957
26958 ol_cv_func_gethostbyname_r_nargs5=no
26959 fi
26960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26961
26962         cat >conftest.$ac_ext <<_ACEOF
26963 /* confdefs.h.  */
26964 _ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h.  */
26968 #include <sys/types.h>
26969 #include <sys/socket.h>
26970 #include <netinet/in.h>
26971 #include <netdb.h>
26972 #define BUFSIZE (sizeof(struct hostent)+10)
26973 int
26974 main ()
26975 {
26976 struct hostent hent;struct hostent *rhent;
26977                 char buffer[BUFSIZE];
26978                 int bufsize=BUFSIZE;int h_errno;
26979                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26980                         &rhent, &h_errno);
26981   ;
26982   return 0;
26983 }
26984 _ACEOF
26985 rm -f conftest.$ac_objext
26986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26987   (eval $ac_compile) 2>conftest.er1
26988   ac_status=$?
26989   grep -v '^ *+' conftest.er1 >conftest.err
26990   rm -f conftest.er1
26991   cat conftest.err >&5
26992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993   (exit $ac_status); } &&
26994          { ac_try='test -z "$ac_c_werror_flag"
26995                          || test ! -s conftest.err'
26996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997   (eval $ac_try) 2>&5
26998   ac_status=$?
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); }; } &&
27001          { ac_try='test -s conftest.$ac_objext'
27002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003   (eval $ac_try) 2>&5
27004   ac_status=$?
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); }; }; then
27007   ol_cv_func_gethostbyname_r_nargs6=yes
27008 else
27009   echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27011
27012 ol_cv_func_gethostbyname_r_nargs6=no
27013 fi
27014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27015
27016         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27017            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27018
27019                 ol_cv_func_gethostbyname_r_nargs=5
27020
27021         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27022              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27023
27024                 ol_cv_func_gethostbyname_r_nargs=6
27025
27026         else
27027                 ol_cv_func_gethostbyname_r_nargs=0
27028         fi
27029
27030 fi
27031 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27032 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27033   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27034
27035 cat >>confdefs.h <<_ACEOF
27036 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27037 _ACEOF
27038
27039   fi
27040
27041 else
27042         ol_cv_func_gethostbyname_r_nargs=0
27043 fi
27044
27045 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27046         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27047 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27048 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27049   echo $ECHO_N "(cached) $ECHO_C" >&6
27050 else
27051   cat >conftest.$ac_ext <<_ACEOF
27052 /* confdefs.h.  */
27053 _ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h.  */
27057 #include <sys/types.h>
27058 #include <sys/socket.h>
27059 #include <netinet/in.h>
27060 #include <netdb.h>
27061 #define BUFSIZE (sizeof(struct hostent)+10)
27062 int
27063 main ()
27064 {
27065 struct hostent hent; char buffer[BUFSIZE];
27066             struct in_addr add;
27067             size_t alen=sizeof(struct in_addr);
27068             int bufsize=BUFSIZE;int h_errno;
27069                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27070                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27071   ;
27072   return 0;
27073 }
27074 _ACEOF
27075 rm -f conftest.$ac_objext
27076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27077   (eval $ac_compile) 2>conftest.er1
27078   ac_status=$?
27079   grep -v '^ *+' conftest.er1 >conftest.err
27080   rm -f conftest.er1
27081   cat conftest.err >&5
27082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083   (exit $ac_status); } &&
27084          { ac_try='test -z "$ac_c_werror_flag"
27085                          || test ! -s conftest.err'
27086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087   (eval $ac_try) 2>&5
27088   ac_status=$?
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); }; } &&
27091          { ac_try='test -s conftest.$ac_objext'
27092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093   (eval $ac_try) 2>&5
27094   ac_status=$?
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); }; }; then
27097   ol_cv_func_gethostbyaddr_r_nargs7=yes
27098 else
27099   echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27101
27102 ol_cv_func_gethostbyaddr_r_nargs7=no
27103 fi
27104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27105
27106         cat >conftest.$ac_ext <<_ACEOF
27107 /* confdefs.h.  */
27108 _ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h.  */
27112 #include <sys/types.h>
27113 #include <sys/socket.h>
27114 #include <netinet/in.h>
27115 #include <netdb.h>
27116 #define BUFSIZE (sizeof(struct hostent)+10)
27117 int
27118 main ()
27119 {
27120 struct hostent hent;
27121                 struct hostent *rhent; char buffer[BUFSIZE];
27122                 struct in_addr add;
27123                 size_t alen=sizeof(struct in_addr);
27124                 int bufsize=BUFSIZE;int h_errno;
27125                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27126                         alen, AF_INET, &hent, buffer, bufsize,
27127                         &rhent, &h_errno);
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext
27133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134   (eval $ac_compile) 2>conftest.er1
27135   ac_status=$?
27136   grep -v '^ *+' conftest.er1 >conftest.err
27137   rm -f conftest.er1
27138   cat conftest.err >&5
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); } &&
27141          { ac_try='test -z "$ac_c_werror_flag"
27142                          || test ! -s conftest.err'
27143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144   (eval $ac_try) 2>&5
27145   ac_status=$?
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); }; } &&
27148          { ac_try='test -s conftest.$ac_objext'
27149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150   (eval $ac_try) 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; }; then
27154   ol_cv_func_gethostbyaddr_r_nargs8=yes
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27158
27159 ol_cv_func_gethostbyaddr_r_nargs8=no
27160 fi
27161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27162
27163         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27164            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27165
27166                 ol_cv_func_gethostbyaddr_r_nargs=7
27167
27168         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27169              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27170
27171                 ol_cv_func_gethostbyaddr_r_nargs=8
27172
27173         else
27174                 ol_cv_func_gethostbyaddr_r_nargs=0
27175         fi
27176
27177 fi
27178 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27179 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27180   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27181
27182 cat >>confdefs.h <<_ACEOF
27183 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27184 _ACEOF
27185
27186   fi
27187
27188 else
27189         ol_cv_func_gethostbyaddr_r_nargs=0
27190 fi
27191
27192 ol_link_bdb=no
27193
27194 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27195         ol_cv_berkeley_db=no
27196
27197 for ac_header in db.h
27198 do
27199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27201   echo "$as_me:$LINENO: checking for $ac_header" >&5
27202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 fi
27206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27208 else
27209   # Is the header compilable?
27210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27212 cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h.  */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h.  */
27218 $ac_includes_default
27219 #include <$ac_header>
27220 _ACEOF
27221 rm -f conftest.$ac_objext
27222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27223   (eval $ac_compile) 2>conftest.er1
27224   ac_status=$?
27225   grep -v '^ *+' conftest.er1 >conftest.err
27226   rm -f conftest.er1
27227   cat conftest.err >&5
27228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); } &&
27230          { ac_try='test -z "$ac_c_werror_flag"
27231                          || test ! -s conftest.err'
27232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233   (eval $ac_try) 2>&5
27234   ac_status=$?
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); }; } &&
27237          { ac_try='test -s conftest.$ac_objext'
27238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239   (eval $ac_try) 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); }; }; then
27243   ac_header_compiler=yes
27244 else
27245   echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27247
27248 ac_header_compiler=no
27249 fi
27250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27252 echo "${ECHO_T}$ac_header_compiler" >&6
27253
27254 # Is the header present?
27255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27257 cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h.  */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h.  */
27263 #include <$ac_header>
27264 _ACEOF
27265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27267   ac_status=$?
27268   grep -v '^ *+' conftest.er1 >conftest.err
27269   rm -f conftest.er1
27270   cat conftest.err >&5
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); } >/dev/null; then
27273   if test -s conftest.err; then
27274     ac_cpp_err=$ac_c_preproc_warn_flag
27275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27276   else
27277     ac_cpp_err=
27278   fi
27279 else
27280   ac_cpp_err=yes
27281 fi
27282 if test -z "$ac_cpp_err"; then
27283   ac_header_preproc=yes
27284 else
27285   echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27287
27288   ac_header_preproc=no
27289 fi
27290 rm -f conftest.err conftest.$ac_ext
27291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27292 echo "${ECHO_T}$ac_header_preproc" >&6
27293
27294 # So?  What about this header?
27295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27296   yes:no: )
27297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27301     ac_header_preproc=yes
27302     ;;
27303   no:yes:* )
27304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27316     (
27317       cat <<\_ASBOX
27318 ## --------------------------------------------- ##
27319 ## Report this to <http://www.openldap.org/its/> ##
27320 ## --------------------------------------------- ##
27321 _ASBOX
27322     ) |
27323       sed "s/^/$as_me: WARNING:     /" >&2
27324     ;;
27325 esac
27326 echo "$as_me:$LINENO: checking for $ac_header" >&5
27327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27329   echo $ECHO_N "(cached) $ECHO_C" >&6
27330 else
27331   eval "$as_ac_Header=\$ac_header_preproc"
27332 fi
27333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27335
27336 fi
27337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27338   cat >>confdefs.h <<_ACEOF
27339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27340 _ACEOF
27341
27342 fi
27343
27344 done
27345
27346 if test $ac_cv_header_db_h = yes; then
27347         ol_cv_lib_db=no
27348
27349 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27350 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27351 if test "${ol_cv_bdb_major+set}" = set; then
27352   echo $ECHO_N "(cached) $ECHO_C" >&6
27353 else
27354
27355         ol_cv_bdb_major=0
27356         if test $ol_cv_bdb_major = 0 ; then
27357                 cat >conftest.$ac_ext <<_ACEOF
27358 /* confdefs.h.  */
27359 _ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h.  */
27363
27364 #include <db.h>
27365 #ifndef DB_VERSION_MAJOR
27366 #       define DB_VERSION_MAJOR 1
27367 #endif
27368 #if DB_VERSION_MAJOR == 4
27369 __db_version
27370 #endif
27371
27372 _ACEOF
27373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27374   $EGREP "__db_version" >/dev/null 2>&1; then
27375   ol_cv_bdb_major=4
27376 else
27377   :
27378 fi
27379 rm -f conftest*
27380
27381         fi
27382         if test $ol_cv_bdb_major = 0 ; then
27383                 cat >conftest.$ac_ext <<_ACEOF
27384 /* confdefs.h.  */
27385 _ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h.  */
27389
27390 #include <db.h>
27391 #ifndef DB_VERSION_MAJOR
27392 #       define DB_VERSION_MAJOR 1
27393 #endif
27394 #if DB_VERSION_MAJOR == 3
27395 __db_version
27396 #endif
27397
27398 _ACEOF
27399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27400   $EGREP "__db_version" >/dev/null 2>&1; then
27401   ol_cv_bdb_major=3
27402 else
27403   :
27404 fi
27405 rm -f conftest*
27406
27407         fi
27408         if test $ol_cv_bdb_major = 0 ; then
27409                 cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h.  */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h.  */
27415
27416 #include <db.h>
27417 #ifndef DB_VERSION_MAJOR
27418 #       define DB_VERSION_MAJOR 1
27419 #endif
27420 #if DB_VERSION_MAJOR == 2
27421 __db_version
27422 #endif
27423
27424 _ACEOF
27425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27426   $EGREP "__db_version" >/dev/null 2>&1; then
27427   ol_cv_bdb_major=2
27428 else
27429   :
27430 fi
27431 rm -f conftest*
27432
27433         fi
27434         if test $ol_cv_bdb_major = 0 ; then
27435                 cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h.  */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h.  */
27441
27442 #include <db.h>
27443 #ifndef DB_VERSION_MAJOR
27444 #       define DB_VERSION_MAJOR 1
27445 #endif
27446 #if DB_VERSION_MAJOR == 1
27447 __db_version
27448 #endif
27449
27450 _ACEOF
27451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27452   $EGREP "__db_version" >/dev/null 2>&1; then
27453   ol_cv_bdb_major=1
27454 else
27455   :
27456 fi
27457 rm -f conftest*
27458
27459         fi
27460
27461         if test $ol_cv_bdb_major = 0 ; then
27462                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27463 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27464    { (exit 1); exit 1; }; }
27465         fi
27466
27467 fi
27468 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27469 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27470
27471 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27472 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27473 if test "${ol_cv_bdb_minor+set}" = set; then
27474   echo $ECHO_N "(cached) $ECHO_C" >&6
27475 else
27476
27477         ol_cv_bdb_minor=0
27478         if test $ol_cv_bdb_minor = 0 ; then
27479                 cat >conftest.$ac_ext <<_ACEOF
27480 /* confdefs.h.  */
27481 _ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h.  */
27485
27486 #include <db.h>
27487 #ifndef DB_VERSION_MINOR
27488 #       define DB_VERSION_MINOR 0
27489 #endif
27490 #if DB_VERSION_MINOR == 9
27491 __db_version
27492 #endif
27493
27494 _ACEOF
27495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27496   $EGREP "__db_version" >/dev/null 2>&1; then
27497   ol_cv_bdb_minor=9
27498 else
27499   :
27500 fi
27501 rm -f conftest*
27502
27503         fi
27504         if test $ol_cv_bdb_minor = 0 ; then
27505                 cat >conftest.$ac_ext <<_ACEOF
27506 /* confdefs.h.  */
27507 _ACEOF
27508 cat confdefs.h >>conftest.$ac_ext
27509 cat >>conftest.$ac_ext <<_ACEOF
27510 /* end confdefs.h.  */
27511
27512 #include <db.h>
27513 #ifndef DB_VERSION_MINOR
27514 #       define DB_VERSION_MINOR 0
27515 #endif
27516 #if DB_VERSION_MINOR == 8
27517 __db_version
27518 #endif
27519
27520 _ACEOF
27521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27522   $EGREP "__db_version" >/dev/null 2>&1; then
27523   ol_cv_bdb_minor=8
27524 else
27525   :
27526 fi
27527 rm -f conftest*
27528
27529         fi
27530         if test $ol_cv_bdb_minor = 0 ; then
27531                 cat >conftest.$ac_ext <<_ACEOF
27532 /* confdefs.h.  */
27533 _ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h.  */
27537
27538 #include <db.h>
27539 #ifndef DB_VERSION_MINOR
27540 #       define DB_VERSION_MINOR 0
27541 #endif
27542 #if DB_VERSION_MINOR == 7
27543 __db_version
27544 #endif
27545
27546 _ACEOF
27547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27548   $EGREP "__db_version" >/dev/null 2>&1; then
27549   ol_cv_bdb_minor=7
27550 else
27551   :
27552 fi
27553 rm -f conftest*
27554
27555         fi
27556         if test $ol_cv_bdb_minor = 0 ; then
27557                 cat >conftest.$ac_ext <<_ACEOF
27558 /* confdefs.h.  */
27559 _ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h.  */
27563
27564 #include <db.h>
27565 #ifndef DB_VERSION_MINOR
27566 #       define DB_VERSION_MINOR 0
27567 #endif
27568 #if DB_VERSION_MINOR == 6
27569 __db_version
27570 #endif
27571
27572 _ACEOF
27573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27574   $EGREP "__db_version" >/dev/null 2>&1; then
27575   ol_cv_bdb_minor=6
27576 else
27577   :
27578 fi
27579 rm -f conftest*
27580
27581         fi
27582         if test $ol_cv_bdb_minor = 0 ; then
27583                 cat >conftest.$ac_ext <<_ACEOF
27584 /* confdefs.h.  */
27585 _ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h.  */
27589
27590 #include <db.h>
27591 #ifndef DB_VERSION_MINOR
27592 #       define DB_VERSION_MINOR 0
27593 #endif
27594 #if DB_VERSION_MINOR == 5
27595 __db_version
27596 #endif
27597
27598 _ACEOF
27599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27600   $EGREP "__db_version" >/dev/null 2>&1; then
27601   ol_cv_bdb_minor=5
27602 else
27603   :
27604 fi
27605 rm -f conftest*
27606
27607         fi
27608         if test $ol_cv_bdb_minor = 0 ; then
27609                 cat >conftest.$ac_ext <<_ACEOF
27610 /* confdefs.h.  */
27611 _ACEOF
27612 cat confdefs.h >>conftest.$ac_ext
27613 cat >>conftest.$ac_ext <<_ACEOF
27614 /* end confdefs.h.  */
27615
27616 #include <db.h>
27617 #ifndef DB_VERSION_MINOR
27618 #       define DB_VERSION_MINOR 0
27619 #endif
27620 #if DB_VERSION_MINOR == 4
27621 __db_version
27622 #endif
27623
27624 _ACEOF
27625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27626   $EGREP "__db_version" >/dev/null 2>&1; then
27627   ol_cv_bdb_minor=4
27628 else
27629   :
27630 fi
27631 rm -f conftest*
27632
27633         fi
27634         if test $ol_cv_bdb_minor = 0 ; then
27635                 cat >conftest.$ac_ext <<_ACEOF
27636 /* confdefs.h.  */
27637 _ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h.  */
27641
27642 #include <db.h>
27643 #ifndef DB_VERSION_MINOR
27644 #       define DB_VERSION_MINOR 0
27645 #endif
27646 #if DB_VERSION_MINOR == 3
27647 __db_version
27648 #endif
27649
27650 _ACEOF
27651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27652   $EGREP "__db_version" >/dev/null 2>&1; then
27653   ol_cv_bdb_minor=3
27654 else
27655   :
27656 fi
27657 rm -f conftest*
27658
27659         fi
27660         if test $ol_cv_bdb_minor = 0 ; then
27661                 cat >conftest.$ac_ext <<_ACEOF
27662 /* confdefs.h.  */
27663 _ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h.  */
27667
27668 #include <db.h>
27669 #ifndef DB_VERSION_MINOR
27670 #       define DB_VERSION_MINOR 0
27671 #endif
27672 #if DB_VERSION_MINOR == 2
27673 __db_version
27674 #endif
27675
27676 _ACEOF
27677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27678   $EGREP "__db_version" >/dev/null 2>&1; then
27679   ol_cv_bdb_minor=2
27680 else
27681   :
27682 fi
27683 rm -f conftest*
27684
27685         fi
27686         if test $ol_cv_bdb_minor = 0 ; then
27687                 cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h.  */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h.  */
27693
27694 #include <db.h>
27695 #ifndef DB_VERSION_MINOR
27696 #       define DB_VERSION_MINOR 0
27697 #endif
27698 #if DB_VERSION_MINOR == 1
27699 __db_version
27700 #endif
27701
27702 _ACEOF
27703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27704   $EGREP "__db_version" >/dev/null 2>&1; then
27705   ol_cv_bdb_minor=1
27706 else
27707   :
27708 fi
27709 rm -f conftest*
27710
27711         fi
27712
27713 fi
27714 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27715 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27716
27717 if test $ol_cv_bdb_major = 4 ; then
27718         if test $ol_cv_bdb_minor = 5 ; then
27719                 if test $ol_cv_lib_db = no ; then
27720         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27721 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27722 if test "${ol_cv_db_db45+set}" = set; then
27723   echo $ECHO_N "(cached) $ECHO_C" >&6
27724 else
27725
27726         ol_DB_LIB=-ldb45
27727         ol_LIBS=$LIBS
27728         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27729
27730         cat >conftest.$ac_ext <<_ACEOF
27731 /* confdefs.h.  */
27732 _ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h.  */
27736
27737 #ifdef HAVE_DB_185_H
27738 # include <db_185.h>
27739 #else
27740 # include <db.h>
27741 #endif
27742
27743 #ifndef DB_VERSION_MAJOR
27744 # define DB_VERSION_MAJOR 1
27745 #endif
27746
27747 #ifndef NULL
27748 #define NULL ((void*)0)
27749 #endif
27750
27751 int
27752 main ()
27753 {
27754
27755 #if DB_VERSION_MAJOR > 1
27756         {
27757                 char *version;
27758                 int major, minor, patch;
27759
27760                 version = db_version( &major, &minor, &patch );
27761
27762                 if( major != DB_VERSION_MAJOR ||
27763                         minor < DB_VERSION_MINOR )
27764                 {
27765                         printf("Berkeley DB version mismatch\n"
27766                                 "\theader: %s\n\tlibrary: %s\n",
27767                                 DB_VERSION_STRING, version);
27768                         return 1;
27769                 }
27770         }
27771 #endif
27772
27773 #if DB_VERSION_MAJOR > 2
27774         db_env_create( NULL, 0 );
27775 #elif DB_VERSION_MAJOR > 1
27776         db_appexit( NULL );
27777 #else
27778         (void) dbopen( NULL, 0, 0, 0, NULL);
27779 #endif
27780
27781   ;
27782   return 0;
27783 }
27784 _ACEOF
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27787   (eval $ac_link) 2>conftest.er1
27788   ac_status=$?
27789   grep -v '^ *+' conftest.er1 >conftest.err
27790   rm -f conftest.er1
27791   cat conftest.err >&5
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); } &&
27794          { ac_try='test -z "$ac_c_werror_flag"
27795                          || test ! -s conftest.err'
27796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797   (eval $ac_try) 2>&5
27798   ac_status=$?
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); }; } &&
27801          { ac_try='test -s conftest$ac_exeext'
27802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803   (eval $ac_try) 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; }; then
27807   ol_cv_db_db45=yes
27808 else
27809   echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27811
27812 ol_cv_db_db45=no
27813 fi
27814 rm -f conftest.err conftest.$ac_objext \
27815       conftest$ac_exeext conftest.$ac_ext
27816
27817         LIBS="$ol_LIBS"
27818
27819 fi
27820 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27821 echo "${ECHO_T}$ol_cv_db_db45" >&6
27822
27823         if test $ol_cv_db_db45 = yes ; then
27824                 ol_cv_lib_db=-ldb45
27825         fi
27826 fi
27827
27828                 if test $ol_cv_lib_db = no ; then
27829         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27830 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27831 if test "${ol_cv_db_db_45+set}" = set; then
27832   echo $ECHO_N "(cached) $ECHO_C" >&6
27833 else
27834
27835         ol_DB_LIB=-ldb-45
27836         ol_LIBS=$LIBS
27837         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27838
27839         cat >conftest.$ac_ext <<_ACEOF
27840 /* confdefs.h.  */
27841 _ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h.  */
27845
27846 #ifdef HAVE_DB_185_H
27847 # include <db_185.h>
27848 #else
27849 # include <db.h>
27850 #endif
27851
27852 #ifndef DB_VERSION_MAJOR
27853 # define DB_VERSION_MAJOR 1
27854 #endif
27855
27856 #ifndef NULL
27857 #define NULL ((void*)0)
27858 #endif
27859
27860 int
27861 main ()
27862 {
27863
27864 #if DB_VERSION_MAJOR > 1
27865         {
27866                 char *version;
27867                 int major, minor, patch;
27868
27869                 version = db_version( &major, &minor, &patch );
27870
27871                 if( major != DB_VERSION_MAJOR ||
27872                         minor < DB_VERSION_MINOR )
27873                 {
27874                         printf("Berkeley DB version mismatch\n"
27875                                 "\theader: %s\n\tlibrary: %s\n",
27876                                 DB_VERSION_STRING, version);
27877                         return 1;
27878                 }
27879         }
27880 #endif
27881
27882 #if DB_VERSION_MAJOR > 2
27883         db_env_create( NULL, 0 );
27884 #elif DB_VERSION_MAJOR > 1
27885         db_appexit( NULL );
27886 #else
27887         (void) dbopen( NULL, 0, 0, 0, NULL);
27888 #endif
27889
27890   ;
27891   return 0;
27892 }
27893 _ACEOF
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896   (eval $ac_link) 2>conftest.er1
27897   ac_status=$?
27898   grep -v '^ *+' conftest.er1 >conftest.err
27899   rm -f conftest.er1
27900   cat conftest.err >&5
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); } &&
27903          { ac_try='test -z "$ac_c_werror_flag"
27904                          || test ! -s conftest.err'
27905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906   (eval $ac_try) 2>&5
27907   ac_status=$?
27908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); }; } &&
27910          { ac_try='test -s conftest$ac_exeext'
27911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; }; then
27916   ol_cv_db_db_45=yes
27917 else
27918   echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27920
27921 ol_cv_db_db_45=no
27922 fi
27923 rm -f conftest.err conftest.$ac_objext \
27924       conftest$ac_exeext conftest.$ac_ext
27925
27926         LIBS="$ol_LIBS"
27927
27928 fi
27929 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27930 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27931
27932         if test $ol_cv_db_db_45 = yes ; then
27933                 ol_cv_lib_db=-ldb-45
27934         fi
27935 fi
27936
27937                 if test $ol_cv_lib_db = no ; then
27938         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27939 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27940 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27941   echo $ECHO_N "(cached) $ECHO_C" >&6
27942 else
27943
27944         ol_DB_LIB=-ldb-4.5
27945         ol_LIBS=$LIBS
27946         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27947
27948         cat >conftest.$ac_ext <<_ACEOF
27949 /* confdefs.h.  */
27950 _ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h.  */
27954
27955 #ifdef HAVE_DB_185_H
27956 # include <db_185.h>
27957 #else
27958 # include <db.h>
27959 #endif
27960
27961 #ifndef DB_VERSION_MAJOR
27962 # define DB_VERSION_MAJOR 1
27963 #endif
27964
27965 #ifndef NULL
27966 #define NULL ((void*)0)
27967 #endif
27968
27969 int
27970 main ()
27971 {
27972
27973 #if DB_VERSION_MAJOR > 1
27974         {
27975                 char *version;
27976                 int major, minor, patch;
27977
27978                 version = db_version( &major, &minor, &patch );
27979
27980                 if( major != DB_VERSION_MAJOR ||
27981                         minor < DB_VERSION_MINOR )
27982                 {
27983                         printf("Berkeley DB version mismatch\n"
27984                                 "\theader: %s\n\tlibrary: %s\n",
27985                                 DB_VERSION_STRING, version);
27986                         return 1;
27987                 }
27988         }
27989 #endif
27990
27991 #if DB_VERSION_MAJOR > 2
27992         db_env_create( NULL, 0 );
27993 #elif DB_VERSION_MAJOR > 1
27994         db_appexit( NULL );
27995 #else
27996         (void) dbopen( NULL, 0, 0, 0, NULL);
27997 #endif
27998
27999   ;
28000   return 0;
28001 }
28002 _ACEOF
28003 rm -f conftest.$ac_objext conftest$ac_exeext
28004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28005   (eval $ac_link) 2>conftest.er1
28006   ac_status=$?
28007   grep -v '^ *+' conftest.er1 >conftest.err
28008   rm -f conftest.er1
28009   cat conftest.err >&5
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); } &&
28012          { ac_try='test -z "$ac_c_werror_flag"
28013                          || test ! -s conftest.err'
28014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28015   (eval $ac_try) 2>&5
28016   ac_status=$?
28017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018   (exit $ac_status); }; } &&
28019          { ac_try='test -s conftest$ac_exeext'
28020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021   (eval $ac_try) 2>&5
28022   ac_status=$?
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); }; }; then
28025   ol_cv_db_db_4_dot_5=yes
28026 else
28027   echo "$as_me: failed program was:" >&5
28028 sed 's/^/| /' conftest.$ac_ext >&5
28029
28030 ol_cv_db_db_4_dot_5=no
28031 fi
28032 rm -f conftest.err conftest.$ac_objext \
28033       conftest$ac_exeext conftest.$ac_ext
28034
28035         LIBS="$ol_LIBS"
28036
28037 fi
28038 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28039 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28040
28041         if test $ol_cv_db_db_4_dot_5 = yes ; then
28042                 ol_cv_lib_db=-ldb-4.5
28043         fi
28044 fi
28045
28046                 if test $ol_cv_lib_db = no ; then
28047         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28048 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28049 if test "${ol_cv_db_db_4_5+set}" = set; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052
28053         ol_DB_LIB=-ldb-4-5
28054         ol_LIBS=$LIBS
28055         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28056
28057         cat >conftest.$ac_ext <<_ACEOF
28058 /* confdefs.h.  */
28059 _ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h.  */
28063
28064 #ifdef HAVE_DB_185_H
28065 # include <db_185.h>
28066 #else
28067 # include <db.h>
28068 #endif
28069
28070 #ifndef DB_VERSION_MAJOR
28071 # define DB_VERSION_MAJOR 1
28072 #endif
28073
28074 #ifndef NULL
28075 #define NULL ((void*)0)
28076 #endif
28077
28078 int
28079 main ()
28080 {
28081
28082 #if DB_VERSION_MAJOR > 1
28083         {
28084                 char *version;
28085                 int major, minor, patch;
28086
28087                 version = db_version( &major, &minor, &patch );
28088
28089                 if( major != DB_VERSION_MAJOR ||
28090                         minor < DB_VERSION_MINOR )
28091                 {
28092                         printf("Berkeley DB version mismatch\n"
28093                                 "\theader: %s\n\tlibrary: %s\n",
28094                                 DB_VERSION_STRING, version);
28095                         return 1;
28096                 }
28097         }
28098 #endif
28099
28100 #if DB_VERSION_MAJOR > 2
28101         db_env_create( NULL, 0 );
28102 #elif DB_VERSION_MAJOR > 1
28103         db_appexit( NULL );
28104 #else
28105         (void) dbopen( NULL, 0, 0, 0, NULL);
28106 #endif
28107
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 rm -f conftest.$ac_objext conftest$ac_exeext
28113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28114   (eval $ac_link) 2>conftest.er1
28115   ac_status=$?
28116   grep -v '^ *+' conftest.er1 >conftest.err
28117   rm -f conftest.er1
28118   cat conftest.err >&5
28119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120   (exit $ac_status); } &&
28121          { ac_try='test -z "$ac_c_werror_flag"
28122                          || test ! -s conftest.err'
28123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124   (eval $ac_try) 2>&5
28125   ac_status=$?
28126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127   (exit $ac_status); }; } &&
28128          { ac_try='test -s conftest$ac_exeext'
28129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130   (eval $ac_try) 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; }; then
28134   ol_cv_db_db_4_5=yes
28135 else
28136   echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.$ac_ext >&5
28138
28139 ol_cv_db_db_4_5=no
28140 fi
28141 rm -f conftest.err conftest.$ac_objext \
28142       conftest$ac_exeext conftest.$ac_ext
28143
28144         LIBS="$ol_LIBS"
28145
28146 fi
28147 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28148 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28149
28150         if test $ol_cv_db_db_4_5 = yes ; then
28151                 ol_cv_lib_db=-ldb-4-5
28152         fi
28153 fi
28154
28155         elif test $ol_cv_bdb_minor = 4 ; then
28156                 if test $ol_cv_lib_db = no ; then
28157         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28158 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28159 if test "${ol_cv_db_db44+set}" = set; then
28160   echo $ECHO_N "(cached) $ECHO_C" >&6
28161 else
28162
28163         ol_DB_LIB=-ldb44
28164         ol_LIBS=$LIBS
28165         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28166
28167         cat >conftest.$ac_ext <<_ACEOF
28168 /* confdefs.h.  */
28169 _ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h.  */
28173
28174 #ifdef HAVE_DB_185_H
28175 # include <db_185.h>
28176 #else
28177 # include <db.h>
28178 #endif
28179
28180 #ifndef DB_VERSION_MAJOR
28181 # define DB_VERSION_MAJOR 1
28182 #endif
28183
28184 #ifndef NULL
28185 #define NULL ((void*)0)
28186 #endif
28187
28188 int
28189 main ()
28190 {
28191
28192 #if DB_VERSION_MAJOR > 1
28193         {
28194                 char *version;
28195                 int major, minor, patch;
28196
28197                 version = db_version( &major, &minor, &patch );
28198
28199                 if( major != DB_VERSION_MAJOR ||
28200                         minor < DB_VERSION_MINOR )
28201                 {
28202                         printf("Berkeley DB version mismatch\n"
28203                                 "\theader: %s\n\tlibrary: %s\n",
28204                                 DB_VERSION_STRING, version);
28205                         return 1;
28206                 }
28207         }
28208 #endif
28209
28210 #if DB_VERSION_MAJOR > 2
28211         db_env_create( NULL, 0 );
28212 #elif DB_VERSION_MAJOR > 1
28213         db_appexit( NULL );
28214 #else
28215         (void) dbopen( NULL, 0, 0, 0, NULL);
28216 #endif
28217
28218   ;
28219   return 0;
28220 }
28221 _ACEOF
28222 rm -f conftest.$ac_objext conftest$ac_exeext
28223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28224   (eval $ac_link) 2>conftest.er1
28225   ac_status=$?
28226   grep -v '^ *+' conftest.er1 >conftest.err
28227   rm -f conftest.er1
28228   cat conftest.err >&5
28229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230   (exit $ac_status); } &&
28231          { ac_try='test -z "$ac_c_werror_flag"
28232                          || test ! -s conftest.err'
28233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234   (eval $ac_try) 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; } &&
28238          { ac_try='test -s conftest$ac_exeext'
28239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240   (eval $ac_try) 2>&5
28241   ac_status=$?
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); }; }; then
28244   ol_cv_db_db44=yes
28245 else
28246   echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28248
28249 ol_cv_db_db44=no
28250 fi
28251 rm -f conftest.err conftest.$ac_objext \
28252       conftest$ac_exeext conftest.$ac_ext
28253
28254         LIBS="$ol_LIBS"
28255
28256 fi
28257 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28258 echo "${ECHO_T}$ol_cv_db_db44" >&6
28259
28260         if test $ol_cv_db_db44 = yes ; then
28261                 ol_cv_lib_db=-ldb44
28262         fi
28263 fi
28264
28265                 if test $ol_cv_lib_db = no ; then
28266         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28267 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28268 if test "${ol_cv_db_db_44+set}" = set; then
28269   echo $ECHO_N "(cached) $ECHO_C" >&6
28270 else
28271
28272         ol_DB_LIB=-ldb-44
28273         ol_LIBS=$LIBS
28274         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28275
28276         cat >conftest.$ac_ext <<_ACEOF
28277 /* confdefs.h.  */
28278 _ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h.  */
28282
28283 #ifdef HAVE_DB_185_H
28284 # include <db_185.h>
28285 #else
28286 # include <db.h>
28287 #endif
28288
28289 #ifndef DB_VERSION_MAJOR
28290 # define DB_VERSION_MAJOR 1
28291 #endif
28292
28293 #ifndef NULL
28294 #define NULL ((void*)0)
28295 #endif
28296
28297 int
28298 main ()
28299 {
28300
28301 #if DB_VERSION_MAJOR > 1
28302         {
28303                 char *version;
28304                 int major, minor, patch;
28305
28306                 version = db_version( &major, &minor, &patch );
28307
28308                 if( major != DB_VERSION_MAJOR ||
28309                         minor < DB_VERSION_MINOR )
28310                 {
28311                         printf("Berkeley DB version mismatch\n"
28312                                 "\theader: %s\n\tlibrary: %s\n",
28313                                 DB_VERSION_STRING, version);
28314                         return 1;
28315                 }
28316         }
28317 #endif
28318
28319 #if DB_VERSION_MAJOR > 2
28320         db_env_create( NULL, 0 );
28321 #elif DB_VERSION_MAJOR > 1
28322         db_appexit( NULL );
28323 #else
28324         (void) dbopen( NULL, 0, 0, 0, NULL);
28325 #endif
28326
28327   ;
28328   return 0;
28329 }
28330 _ACEOF
28331 rm -f conftest.$ac_objext conftest$ac_exeext
28332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28333   (eval $ac_link) 2>conftest.er1
28334   ac_status=$?
28335   grep -v '^ *+' conftest.er1 >conftest.err
28336   rm -f conftest.er1
28337   cat conftest.err >&5
28338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339   (exit $ac_status); } &&
28340          { ac_try='test -z "$ac_c_werror_flag"
28341                          || test ! -s conftest.err'
28342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343   (eval $ac_try) 2>&5
28344   ac_status=$?
28345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346   (exit $ac_status); }; } &&
28347          { ac_try='test -s conftest$ac_exeext'
28348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349   (eval $ac_try) 2>&5
28350   ac_status=$?
28351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); }; }; then
28353   ol_cv_db_db_44=yes
28354 else
28355   echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28357
28358 ol_cv_db_db_44=no
28359 fi
28360 rm -f conftest.err conftest.$ac_objext \
28361       conftest$ac_exeext conftest.$ac_ext
28362
28363         LIBS="$ol_LIBS"
28364
28365 fi
28366 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28367 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28368
28369         if test $ol_cv_db_db_44 = yes ; then
28370                 ol_cv_lib_db=-ldb-44
28371         fi
28372 fi
28373
28374                 if test $ol_cv_lib_db = no ; then
28375         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28376 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28377 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28378   echo $ECHO_N "(cached) $ECHO_C" >&6
28379 else
28380
28381         ol_DB_LIB=-ldb-4.4
28382         ol_LIBS=$LIBS
28383         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28384
28385         cat >conftest.$ac_ext <<_ACEOF
28386 /* confdefs.h.  */
28387 _ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h.  */
28391
28392 #ifdef HAVE_DB_185_H
28393 # include <db_185.h>
28394 #else
28395 # include <db.h>
28396 #endif
28397
28398 #ifndef DB_VERSION_MAJOR
28399 # define DB_VERSION_MAJOR 1
28400 #endif
28401
28402 #ifndef NULL
28403 #define NULL ((void*)0)
28404 #endif
28405
28406 int
28407 main ()
28408 {
28409
28410 #if DB_VERSION_MAJOR > 1
28411         {
28412                 char *version;
28413                 int major, minor, patch;
28414
28415                 version = db_version( &major, &minor, &patch );
28416
28417                 if( major != DB_VERSION_MAJOR ||
28418                         minor < DB_VERSION_MINOR )
28419                 {
28420                         printf("Berkeley DB version mismatch\n"
28421                                 "\theader: %s\n\tlibrary: %s\n",
28422                                 DB_VERSION_STRING, version);
28423                         return 1;
28424                 }
28425         }
28426 #endif
28427
28428 #if DB_VERSION_MAJOR > 2
28429         db_env_create( NULL, 0 );
28430 #elif DB_VERSION_MAJOR > 1
28431         db_appexit( NULL );
28432 #else
28433         (void) dbopen( NULL, 0, 0, 0, NULL);
28434 #endif
28435
28436   ;
28437   return 0;
28438 }
28439 _ACEOF
28440 rm -f conftest.$ac_objext conftest$ac_exeext
28441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28442   (eval $ac_link) 2>conftest.er1
28443   ac_status=$?
28444   grep -v '^ *+' conftest.er1 >conftest.err
28445   rm -f conftest.er1
28446   cat conftest.err >&5
28447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448   (exit $ac_status); } &&
28449          { ac_try='test -z "$ac_c_werror_flag"
28450                          || test ! -s conftest.err'
28451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452   (eval $ac_try) 2>&5
28453   ac_status=$?
28454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455   (exit $ac_status); }; } &&
28456          { ac_try='test -s conftest$ac_exeext'
28457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458   (eval $ac_try) 2>&5
28459   ac_status=$?
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); }; }; then
28462   ol_cv_db_db_4_dot_4=yes
28463 else
28464   echo "$as_me: failed program was:" >&5
28465 sed 's/^/| /' conftest.$ac_ext >&5
28466
28467 ol_cv_db_db_4_dot_4=no
28468 fi
28469 rm -f conftest.err conftest.$ac_objext \
28470       conftest$ac_exeext conftest.$ac_ext
28471
28472         LIBS="$ol_LIBS"
28473
28474 fi
28475 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28476 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28477
28478         if test $ol_cv_db_db_4_dot_4 = yes ; then
28479                 ol_cv_lib_db=-ldb-4.4
28480         fi
28481 fi
28482
28483                 if test $ol_cv_lib_db = no ; then
28484         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28485 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28486 if test "${ol_cv_db_db_4_4+set}" = set; then
28487   echo $ECHO_N "(cached) $ECHO_C" >&6
28488 else
28489
28490         ol_DB_LIB=-ldb-4-4
28491         ol_LIBS=$LIBS
28492         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28493
28494         cat >conftest.$ac_ext <<_ACEOF
28495 /* confdefs.h.  */
28496 _ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h.  */
28500
28501 #ifdef HAVE_DB_185_H
28502 # include <db_185.h>
28503 #else
28504 # include <db.h>
28505 #endif
28506
28507 #ifndef DB_VERSION_MAJOR
28508 # define DB_VERSION_MAJOR 1
28509 #endif
28510
28511 #ifndef NULL
28512 #define NULL ((void*)0)
28513 #endif
28514
28515 int
28516 main ()
28517 {
28518
28519 #if DB_VERSION_MAJOR > 1
28520         {
28521                 char *version;
28522                 int major, minor, patch;
28523
28524                 version = db_version( &major, &minor, &patch );
28525
28526                 if( major != DB_VERSION_MAJOR ||
28527                         minor < DB_VERSION_MINOR )
28528                 {
28529                         printf("Berkeley DB version mismatch\n"
28530                                 "\theader: %s\n\tlibrary: %s\n",
28531                                 DB_VERSION_STRING, version);
28532                         return 1;
28533                 }
28534         }
28535 #endif
28536
28537 #if DB_VERSION_MAJOR > 2
28538         db_env_create( NULL, 0 );
28539 #elif DB_VERSION_MAJOR > 1
28540         db_appexit( NULL );
28541 #else
28542         (void) dbopen( NULL, 0, 0, 0, NULL);
28543 #endif
28544
28545   ;
28546   return 0;
28547 }
28548 _ACEOF
28549 rm -f conftest.$ac_objext conftest$ac_exeext
28550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28551   (eval $ac_link) 2>conftest.er1
28552   ac_status=$?
28553   grep -v '^ *+' conftest.er1 >conftest.err
28554   rm -f conftest.er1
28555   cat conftest.err >&5
28556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557   (exit $ac_status); } &&
28558          { ac_try='test -z "$ac_c_werror_flag"
28559                          || test ! -s conftest.err'
28560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28561   (eval $ac_try) 2>&5
28562   ac_status=$?
28563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564   (exit $ac_status); }; } &&
28565          { ac_try='test -s conftest$ac_exeext'
28566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567   (eval $ac_try) 2>&5
28568   ac_status=$?
28569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570   (exit $ac_status); }; }; then
28571   ol_cv_db_db_4_4=yes
28572 else
28573   echo "$as_me: failed program was:" >&5
28574 sed 's/^/| /' conftest.$ac_ext >&5
28575
28576 ol_cv_db_db_4_4=no
28577 fi
28578 rm -f conftest.err conftest.$ac_objext \
28579       conftest$ac_exeext conftest.$ac_ext
28580
28581         LIBS="$ol_LIBS"
28582
28583 fi
28584 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28585 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28586
28587         if test $ol_cv_db_db_4_4 = yes ; then
28588                 ol_cv_lib_db=-ldb-4-4
28589         fi
28590 fi
28591
28592         elif test $ol_cv_bdb_minor = 3 ; then
28593                 if test $ol_cv_lib_db = no ; then
28594         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28595 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28596 if test "${ol_cv_db_db43+set}" = set; then
28597   echo $ECHO_N "(cached) $ECHO_C" >&6
28598 else
28599
28600         ol_DB_LIB=-ldb43
28601         ol_LIBS=$LIBS
28602         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28603
28604         cat >conftest.$ac_ext <<_ACEOF
28605 /* confdefs.h.  */
28606 _ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h.  */
28610
28611 #ifdef HAVE_DB_185_H
28612 # include <db_185.h>
28613 #else
28614 # include <db.h>
28615 #endif
28616
28617 #ifndef DB_VERSION_MAJOR
28618 # define DB_VERSION_MAJOR 1
28619 #endif
28620
28621 #ifndef NULL
28622 #define NULL ((void*)0)
28623 #endif
28624
28625 int
28626 main ()
28627 {
28628
28629 #if DB_VERSION_MAJOR > 1
28630         {
28631                 char *version;
28632                 int major, minor, patch;
28633
28634                 version = db_version( &major, &minor, &patch );
28635
28636                 if( major != DB_VERSION_MAJOR ||
28637                         minor < DB_VERSION_MINOR )
28638                 {
28639                         printf("Berkeley DB version mismatch\n"
28640                                 "\theader: %s\n\tlibrary: %s\n",
28641                                 DB_VERSION_STRING, version);
28642                         return 1;
28643                 }
28644         }
28645 #endif
28646
28647 #if DB_VERSION_MAJOR > 2
28648         db_env_create( NULL, 0 );
28649 #elif DB_VERSION_MAJOR > 1
28650         db_appexit( NULL );
28651 #else
28652         (void) dbopen( NULL, 0, 0, 0, NULL);
28653 #endif
28654
28655   ;
28656   return 0;
28657 }
28658 _ACEOF
28659 rm -f conftest.$ac_objext conftest$ac_exeext
28660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28661   (eval $ac_link) 2>conftest.er1
28662   ac_status=$?
28663   grep -v '^ *+' conftest.er1 >conftest.err
28664   rm -f conftest.er1
28665   cat conftest.err >&5
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); } &&
28668          { ac_try='test -z "$ac_c_werror_flag"
28669                          || test ! -s conftest.err'
28670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28671   (eval $ac_try) 2>&5
28672   ac_status=$?
28673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674   (exit $ac_status); }; } &&
28675          { ac_try='test -s conftest$ac_exeext'
28676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677   (eval $ac_try) 2>&5
28678   ac_status=$?
28679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680   (exit $ac_status); }; }; then
28681   ol_cv_db_db43=yes
28682 else
28683   echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28685
28686 ol_cv_db_db43=no
28687 fi
28688 rm -f conftest.err conftest.$ac_objext \
28689       conftest$ac_exeext conftest.$ac_ext
28690
28691         LIBS="$ol_LIBS"
28692
28693 fi
28694 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28695 echo "${ECHO_T}$ol_cv_db_db43" >&6
28696
28697         if test $ol_cv_db_db43 = yes ; then
28698                 ol_cv_lib_db=-ldb43
28699         fi
28700 fi
28701
28702                 if test $ol_cv_lib_db = no ; then
28703         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28704 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28705 if test "${ol_cv_db_db_43+set}" = set; then
28706   echo $ECHO_N "(cached) $ECHO_C" >&6
28707 else
28708
28709         ol_DB_LIB=-ldb-43
28710         ol_LIBS=$LIBS
28711         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28712
28713         cat >conftest.$ac_ext <<_ACEOF
28714 /* confdefs.h.  */
28715 _ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h.  */
28719
28720 #ifdef HAVE_DB_185_H
28721 # include <db_185.h>
28722 #else
28723 # include <db.h>
28724 #endif
28725
28726 #ifndef DB_VERSION_MAJOR
28727 # define DB_VERSION_MAJOR 1
28728 #endif
28729
28730 #ifndef NULL
28731 #define NULL ((void*)0)
28732 #endif
28733
28734 int
28735 main ()
28736 {
28737
28738 #if DB_VERSION_MAJOR > 1
28739         {
28740                 char *version;
28741                 int major, minor, patch;
28742
28743                 version = db_version( &major, &minor, &patch );
28744
28745                 if( major != DB_VERSION_MAJOR ||
28746                         minor < DB_VERSION_MINOR )
28747                 {
28748                         printf("Berkeley DB version mismatch\n"
28749                                 "\theader: %s\n\tlibrary: %s\n",
28750                                 DB_VERSION_STRING, version);
28751                         return 1;
28752                 }
28753         }
28754 #endif
28755
28756 #if DB_VERSION_MAJOR > 2
28757         db_env_create( NULL, 0 );
28758 #elif DB_VERSION_MAJOR > 1
28759         db_appexit( NULL );
28760 #else
28761         (void) dbopen( NULL, 0, 0, 0, NULL);
28762 #endif
28763
28764   ;
28765   return 0;
28766 }
28767 _ACEOF
28768 rm -f conftest.$ac_objext conftest$ac_exeext
28769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28770   (eval $ac_link) 2>conftest.er1
28771   ac_status=$?
28772   grep -v '^ *+' conftest.er1 >conftest.err
28773   rm -f conftest.er1
28774   cat conftest.err >&5
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); } &&
28777          { ac_try='test -z "$ac_c_werror_flag"
28778                          || test ! -s conftest.err'
28779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780   (eval $ac_try) 2>&5
28781   ac_status=$?
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); }; } &&
28784          { ac_try='test -s conftest$ac_exeext'
28785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786   (eval $ac_try) 2>&5
28787   ac_status=$?
28788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789   (exit $ac_status); }; }; then
28790   ol_cv_db_db_43=yes
28791 else
28792   echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28794
28795 ol_cv_db_db_43=no
28796 fi
28797 rm -f conftest.err conftest.$ac_objext \
28798       conftest$ac_exeext conftest.$ac_ext
28799
28800         LIBS="$ol_LIBS"
28801
28802 fi
28803 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28804 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28805
28806         if test $ol_cv_db_db_43 = yes ; then
28807                 ol_cv_lib_db=-ldb-43
28808         fi
28809 fi
28810
28811                 if test $ol_cv_lib_db = no ; then
28812         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28813 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28814 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28815   echo $ECHO_N "(cached) $ECHO_C" >&6
28816 else
28817
28818         ol_DB_LIB=-ldb-4.3
28819         ol_LIBS=$LIBS
28820         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28821
28822         cat >conftest.$ac_ext <<_ACEOF
28823 /* confdefs.h.  */
28824 _ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h.  */
28828
28829 #ifdef HAVE_DB_185_H
28830 # include <db_185.h>
28831 #else
28832 # include <db.h>
28833 #endif
28834
28835 #ifndef DB_VERSION_MAJOR
28836 # define DB_VERSION_MAJOR 1
28837 #endif
28838
28839 #ifndef NULL
28840 #define NULL ((void*)0)
28841 #endif
28842
28843 int
28844 main ()
28845 {
28846
28847 #if DB_VERSION_MAJOR > 1
28848         {
28849                 char *version;
28850                 int major, minor, patch;
28851
28852                 version = db_version( &major, &minor, &patch );
28853
28854                 if( major != DB_VERSION_MAJOR ||
28855                         minor < DB_VERSION_MINOR )
28856                 {
28857                         printf("Berkeley DB version mismatch\n"
28858                                 "\theader: %s\n\tlibrary: %s\n",
28859                                 DB_VERSION_STRING, version);
28860                         return 1;
28861                 }
28862         }
28863 #endif
28864
28865 #if DB_VERSION_MAJOR > 2
28866         db_env_create( NULL, 0 );
28867 #elif DB_VERSION_MAJOR > 1
28868         db_appexit( NULL );
28869 #else
28870         (void) dbopen( NULL, 0, 0, 0, NULL);
28871 #endif
28872
28873   ;
28874   return 0;
28875 }
28876 _ACEOF
28877 rm -f conftest.$ac_objext conftest$ac_exeext
28878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28879   (eval $ac_link) 2>conftest.er1
28880   ac_status=$?
28881   grep -v '^ *+' conftest.er1 >conftest.err
28882   rm -f conftest.er1
28883   cat conftest.err >&5
28884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885   (exit $ac_status); } &&
28886          { ac_try='test -z "$ac_c_werror_flag"
28887                          || test ! -s conftest.err'
28888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889   (eval $ac_try) 2>&5
28890   ac_status=$?
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); }; } &&
28893          { ac_try='test -s conftest$ac_exeext'
28894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895   (eval $ac_try) 2>&5
28896   ac_status=$?
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); }; }; then
28899   ol_cv_db_db_4_dot_3=yes
28900 else
28901   echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28903
28904 ol_cv_db_db_4_dot_3=no
28905 fi
28906 rm -f conftest.err conftest.$ac_objext \
28907       conftest$ac_exeext conftest.$ac_ext
28908
28909         LIBS="$ol_LIBS"
28910
28911 fi
28912 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28913 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28914
28915         if test $ol_cv_db_db_4_dot_3 = yes ; then
28916                 ol_cv_lib_db=-ldb-4.3
28917         fi
28918 fi
28919
28920                 if test $ol_cv_lib_db = no ; then
28921         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28922 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28923 if test "${ol_cv_db_db_4_3+set}" = set; then
28924   echo $ECHO_N "(cached) $ECHO_C" >&6
28925 else
28926
28927         ol_DB_LIB=-ldb-4-3
28928         ol_LIBS=$LIBS
28929         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28930
28931         cat >conftest.$ac_ext <<_ACEOF
28932 /* confdefs.h.  */
28933 _ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h.  */
28937
28938 #ifdef HAVE_DB_185_H
28939 # include <db_185.h>
28940 #else
28941 # include <db.h>
28942 #endif
28943
28944 #ifndef DB_VERSION_MAJOR
28945 # define DB_VERSION_MAJOR 1
28946 #endif
28947
28948 #ifndef NULL
28949 #define NULL ((void*)0)
28950 #endif
28951
28952 int
28953 main ()
28954 {
28955
28956 #if DB_VERSION_MAJOR > 1
28957         {
28958                 char *version;
28959                 int major, minor, patch;
28960
28961                 version = db_version( &major, &minor, &patch );
28962
28963                 if( major != DB_VERSION_MAJOR ||
28964                         minor < DB_VERSION_MINOR )
28965                 {
28966                         printf("Berkeley DB version mismatch\n"
28967                                 "\theader: %s\n\tlibrary: %s\n",
28968                                 DB_VERSION_STRING, version);
28969                         return 1;
28970                 }
28971         }
28972 #endif
28973
28974 #if DB_VERSION_MAJOR > 2
28975         db_env_create( NULL, 0 );
28976 #elif DB_VERSION_MAJOR > 1
28977         db_appexit( NULL );
28978 #else
28979         (void) dbopen( NULL, 0, 0, 0, NULL);
28980 #endif
28981
28982   ;
28983   return 0;
28984 }
28985 _ACEOF
28986 rm -f conftest.$ac_objext conftest$ac_exeext
28987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28988   (eval $ac_link) 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } &&
28995          { ac_try='test -z "$ac_c_werror_flag"
28996                          || test ! -s conftest.err'
28997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28998   (eval $ac_try) 2>&5
28999   ac_status=$?
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); }; } &&
29002          { ac_try='test -s conftest$ac_exeext'
29003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29004   (eval $ac_try) 2>&5
29005   ac_status=$?
29006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007   (exit $ac_status); }; }; then
29008   ol_cv_db_db_4_3=yes
29009 else
29010   echo "$as_me: failed program was:" >&5
29011 sed 's/^/| /' conftest.$ac_ext >&5
29012
29013 ol_cv_db_db_4_3=no
29014 fi
29015 rm -f conftest.err conftest.$ac_objext \
29016       conftest$ac_exeext conftest.$ac_ext
29017
29018         LIBS="$ol_LIBS"
29019
29020 fi
29021 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29022 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29023
29024         if test $ol_cv_db_db_4_3 = yes ; then
29025                 ol_cv_lib_db=-ldb-4-3
29026         fi
29027 fi
29028
29029         elif test $ol_cv_bdb_minor = 2 ; then
29030                 if test $ol_cv_lib_db = no ; then
29031         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29032 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29033 if test "${ol_cv_db_db42+set}" = set; then
29034   echo $ECHO_N "(cached) $ECHO_C" >&6
29035 else
29036
29037         ol_DB_LIB=-ldb42
29038         ol_LIBS=$LIBS
29039         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29040
29041         cat >conftest.$ac_ext <<_ACEOF
29042 /* confdefs.h.  */
29043 _ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h.  */
29047
29048 #ifdef HAVE_DB_185_H
29049 # include <db_185.h>
29050 #else
29051 # include <db.h>
29052 #endif
29053
29054 #ifndef DB_VERSION_MAJOR
29055 # define DB_VERSION_MAJOR 1
29056 #endif
29057
29058 #ifndef NULL
29059 #define NULL ((void*)0)
29060 #endif
29061
29062 int
29063 main ()
29064 {
29065
29066 #if DB_VERSION_MAJOR > 1
29067         {
29068                 char *version;
29069                 int major, minor, patch;
29070
29071                 version = db_version( &major, &minor, &patch );
29072
29073                 if( major != DB_VERSION_MAJOR ||
29074                         minor < DB_VERSION_MINOR )
29075                 {
29076                         printf("Berkeley DB version mismatch\n"
29077                                 "\theader: %s\n\tlibrary: %s\n",
29078                                 DB_VERSION_STRING, version);
29079                         return 1;
29080                 }
29081         }
29082 #endif
29083
29084 #if DB_VERSION_MAJOR > 2
29085         db_env_create( NULL, 0 );
29086 #elif DB_VERSION_MAJOR > 1
29087         db_appexit( NULL );
29088 #else
29089         (void) dbopen( NULL, 0, 0, 0, NULL);
29090 #endif
29091
29092   ;
29093   return 0;
29094 }
29095 _ACEOF
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098   (eval $ac_link) 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } &&
29105          { ac_try='test -z "$ac_c_werror_flag"
29106                          || test ! -s conftest.err'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; } &&
29112          { ac_try='test -s conftest$ac_exeext'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; }; then
29118   ol_cv_db_db42=yes
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123 ol_cv_db_db42=no
29124 fi
29125 rm -f conftest.err conftest.$ac_objext \
29126       conftest$ac_exeext conftest.$ac_ext
29127
29128         LIBS="$ol_LIBS"
29129
29130 fi
29131 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29132 echo "${ECHO_T}$ol_cv_db_db42" >&6
29133
29134         if test $ol_cv_db_db42 = yes ; then
29135                 ol_cv_lib_db=-ldb42
29136         fi
29137 fi
29138
29139                 if test $ol_cv_lib_db = no ; then
29140         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29141 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29142 if test "${ol_cv_db_db_42+set}" = set; then
29143   echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145
29146         ol_DB_LIB=-ldb-42
29147         ol_LIBS=$LIBS
29148         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29149
29150         cat >conftest.$ac_ext <<_ACEOF
29151 /* confdefs.h.  */
29152 _ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h.  */
29156
29157 #ifdef HAVE_DB_185_H
29158 # include <db_185.h>
29159 #else
29160 # include <db.h>
29161 #endif
29162
29163 #ifndef DB_VERSION_MAJOR
29164 # define DB_VERSION_MAJOR 1
29165 #endif
29166
29167 #ifndef NULL
29168 #define NULL ((void*)0)
29169 #endif
29170
29171 int
29172 main ()
29173 {
29174
29175 #if DB_VERSION_MAJOR > 1
29176         {
29177                 char *version;
29178                 int major, minor, patch;
29179
29180                 version = db_version( &major, &minor, &patch );
29181
29182                 if( major != DB_VERSION_MAJOR ||
29183                         minor < DB_VERSION_MINOR )
29184                 {
29185                         printf("Berkeley DB version mismatch\n"
29186                                 "\theader: %s\n\tlibrary: %s\n",
29187                                 DB_VERSION_STRING, version);
29188                         return 1;
29189                 }
29190         }
29191 #endif
29192
29193 #if DB_VERSION_MAJOR > 2
29194         db_env_create( NULL, 0 );
29195 #elif DB_VERSION_MAJOR > 1
29196         db_appexit( NULL );
29197 #else
29198         (void) dbopen( NULL, 0, 0, 0, NULL);
29199 #endif
29200
29201   ;
29202   return 0;
29203 }
29204 _ACEOF
29205 rm -f conftest.$ac_objext conftest$ac_exeext
29206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29207   (eval $ac_link) 2>conftest.er1
29208   ac_status=$?
29209   grep -v '^ *+' conftest.er1 >conftest.err
29210   rm -f conftest.er1
29211   cat conftest.err >&5
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); } &&
29214          { ac_try='test -z "$ac_c_werror_flag"
29215                          || test ! -s conftest.err'
29216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217   (eval $ac_try) 2>&5
29218   ac_status=$?
29219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220   (exit $ac_status); }; } &&
29221          { ac_try='test -s conftest$ac_exeext'
29222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223   (eval $ac_try) 2>&5
29224   ac_status=$?
29225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226   (exit $ac_status); }; }; then
29227   ol_cv_db_db_42=yes
29228 else
29229   echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29231
29232 ol_cv_db_db_42=no
29233 fi
29234 rm -f conftest.err conftest.$ac_objext \
29235       conftest$ac_exeext conftest.$ac_ext
29236
29237         LIBS="$ol_LIBS"
29238
29239 fi
29240 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29241 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29242
29243         if test $ol_cv_db_db_42 = yes ; then
29244                 ol_cv_lib_db=-ldb-42
29245         fi
29246 fi
29247
29248                 if test $ol_cv_lib_db = no ; then
29249         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29250 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29251 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29252   echo $ECHO_N "(cached) $ECHO_C" >&6
29253 else
29254
29255         ol_DB_LIB=-ldb-4.2
29256         ol_LIBS=$LIBS
29257         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29258
29259         cat >conftest.$ac_ext <<_ACEOF
29260 /* confdefs.h.  */
29261 _ACEOF
29262 cat confdefs.h >>conftest.$ac_ext
29263 cat >>conftest.$ac_ext <<_ACEOF
29264 /* end confdefs.h.  */
29265
29266 #ifdef HAVE_DB_185_H
29267 # include <db_185.h>
29268 #else
29269 # include <db.h>
29270 #endif
29271
29272 #ifndef DB_VERSION_MAJOR
29273 # define DB_VERSION_MAJOR 1
29274 #endif
29275
29276 #ifndef NULL
29277 #define NULL ((void*)0)
29278 #endif
29279
29280 int
29281 main ()
29282 {
29283
29284 #if DB_VERSION_MAJOR > 1
29285         {
29286                 char *version;
29287                 int major, minor, patch;
29288
29289                 version = db_version( &major, &minor, &patch );
29290
29291                 if( major != DB_VERSION_MAJOR ||
29292                         minor < DB_VERSION_MINOR )
29293                 {
29294                         printf("Berkeley DB version mismatch\n"
29295                                 "\theader: %s\n\tlibrary: %s\n",
29296                                 DB_VERSION_STRING, version);
29297                         return 1;
29298                 }
29299         }
29300 #endif
29301
29302 #if DB_VERSION_MAJOR > 2
29303         db_env_create( NULL, 0 );
29304 #elif DB_VERSION_MAJOR > 1
29305         db_appexit( NULL );
29306 #else
29307         (void) dbopen( NULL, 0, 0, 0, NULL);
29308 #endif
29309
29310   ;
29311   return 0;
29312 }
29313 _ACEOF
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29316   (eval $ac_link) 2>conftest.er1
29317   ac_status=$?
29318   grep -v '^ *+' conftest.er1 >conftest.err
29319   rm -f conftest.er1
29320   cat conftest.err >&5
29321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322   (exit $ac_status); } &&
29323          { ac_try='test -z "$ac_c_werror_flag"
29324                          || test ! -s conftest.err'
29325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326   (eval $ac_try) 2>&5
29327   ac_status=$?
29328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); }; } &&
29330          { ac_try='test -s conftest$ac_exeext'
29331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332   (eval $ac_try) 2>&5
29333   ac_status=$?
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); }; }; then
29336   ol_cv_db_db_4_dot_2=yes
29337 else
29338   echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29340
29341 ol_cv_db_db_4_dot_2=no
29342 fi
29343 rm -f conftest.err conftest.$ac_objext \
29344       conftest$ac_exeext conftest.$ac_ext
29345
29346         LIBS="$ol_LIBS"
29347
29348 fi
29349 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29350 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29351
29352         if test $ol_cv_db_db_4_dot_2 = yes ; then
29353                 ol_cv_lib_db=-ldb-4.2
29354         fi
29355 fi
29356
29357                 if test $ol_cv_lib_db = no ; then
29358         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29359 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29360 if test "${ol_cv_db_db_4_2+set}" = set; then
29361   echo $ECHO_N "(cached) $ECHO_C" >&6
29362 else
29363
29364         ol_DB_LIB=-ldb-4-2
29365         ol_LIBS=$LIBS
29366         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29367
29368         cat >conftest.$ac_ext <<_ACEOF
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374
29375 #ifdef HAVE_DB_185_H
29376 # include <db_185.h>
29377 #else
29378 # include <db.h>
29379 #endif
29380
29381 #ifndef DB_VERSION_MAJOR
29382 # define DB_VERSION_MAJOR 1
29383 #endif
29384
29385 #ifndef NULL
29386 #define NULL ((void*)0)
29387 #endif
29388
29389 int
29390 main ()
29391 {
29392
29393 #if DB_VERSION_MAJOR > 1
29394         {
29395                 char *version;
29396                 int major, minor, patch;
29397
29398                 version = db_version( &major, &minor, &patch );
29399
29400                 if( major != DB_VERSION_MAJOR ||
29401                         minor < DB_VERSION_MINOR )
29402                 {
29403                         printf("Berkeley DB version mismatch\n"
29404                                 "\theader: %s\n\tlibrary: %s\n",
29405                                 DB_VERSION_STRING, version);
29406                         return 1;
29407                 }
29408         }
29409 #endif
29410
29411 #if DB_VERSION_MAJOR > 2
29412         db_env_create( NULL, 0 );
29413 #elif DB_VERSION_MAJOR > 1
29414         db_appexit( NULL );
29415 #else
29416         (void) dbopen( NULL, 0, 0, 0, NULL);
29417 #endif
29418
29419   ;
29420   return 0;
29421 }
29422 _ACEOF
29423 rm -f conftest.$ac_objext conftest$ac_exeext
29424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29425   (eval $ac_link) 2>conftest.er1
29426   ac_status=$?
29427   grep -v '^ *+' conftest.er1 >conftest.err
29428   rm -f conftest.er1
29429   cat conftest.err >&5
29430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431   (exit $ac_status); } &&
29432          { ac_try='test -z "$ac_c_werror_flag"
29433                          || test ! -s conftest.err'
29434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435   (eval $ac_try) 2>&5
29436   ac_status=$?
29437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438   (exit $ac_status); }; } &&
29439          { ac_try='test -s conftest$ac_exeext'
29440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441   (eval $ac_try) 2>&5
29442   ac_status=$?
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); }; }; then
29445   ol_cv_db_db_4_2=yes
29446 else
29447   echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29449
29450 ol_cv_db_db_4_2=no
29451 fi
29452 rm -f conftest.err conftest.$ac_objext \
29453       conftest$ac_exeext conftest.$ac_ext
29454
29455         LIBS="$ol_LIBS"
29456
29457 fi
29458 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29459 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29460
29461         if test $ol_cv_db_db_4_2 = yes ; then
29462                 ol_cv_lib_db=-ldb-4-2
29463         fi
29464 fi
29465
29466         elif test $ol_cv_bdb_minor = 1 ; then
29467                 if test $ol_cv_lib_db = no ; then
29468         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29469 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29470 if test "${ol_cv_db_db41+set}" = set; then
29471   echo $ECHO_N "(cached) $ECHO_C" >&6
29472 else
29473
29474         ol_DB_LIB=-ldb41
29475         ol_LIBS=$LIBS
29476         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29477
29478         cat >conftest.$ac_ext <<_ACEOF
29479 /* confdefs.h.  */
29480 _ACEOF
29481 cat confdefs.h >>conftest.$ac_ext
29482 cat >>conftest.$ac_ext <<_ACEOF
29483 /* end confdefs.h.  */
29484
29485 #ifdef HAVE_DB_185_H
29486 # include <db_185.h>
29487 #else
29488 # include <db.h>
29489 #endif
29490
29491 #ifndef DB_VERSION_MAJOR
29492 # define DB_VERSION_MAJOR 1
29493 #endif
29494
29495 #ifndef NULL
29496 #define NULL ((void*)0)
29497 #endif
29498
29499 int
29500 main ()
29501 {
29502
29503 #if DB_VERSION_MAJOR > 1
29504         {
29505                 char *version;
29506                 int major, minor, patch;
29507
29508                 version = db_version( &major, &minor, &patch );
29509
29510                 if( major != DB_VERSION_MAJOR ||
29511                         minor < DB_VERSION_MINOR )
29512                 {
29513                         printf("Berkeley DB version mismatch\n"
29514                                 "\theader: %s\n\tlibrary: %s\n",
29515                                 DB_VERSION_STRING, version);
29516                         return 1;
29517                 }
29518         }
29519 #endif
29520
29521 #if DB_VERSION_MAJOR > 2
29522         db_env_create( NULL, 0 );
29523 #elif DB_VERSION_MAJOR > 1
29524         db_appexit( NULL );
29525 #else
29526         (void) dbopen( NULL, 0, 0, 0, NULL);
29527 #endif
29528
29529   ;
29530   return 0;
29531 }
29532 _ACEOF
29533 rm -f conftest.$ac_objext conftest$ac_exeext
29534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29535   (eval $ac_link) 2>conftest.er1
29536   ac_status=$?
29537   grep -v '^ *+' conftest.er1 >conftest.err
29538   rm -f conftest.er1
29539   cat conftest.err >&5
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); } &&
29542          { ac_try='test -z "$ac_c_werror_flag"
29543                          || test ! -s conftest.err'
29544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545   (eval $ac_try) 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); }; } &&
29549          { ac_try='test -s conftest$ac_exeext'
29550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551   (eval $ac_try) 2>&5
29552   ac_status=$?
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); }; }; then
29555   ol_cv_db_db41=yes
29556 else
29557   echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29559
29560 ol_cv_db_db41=no
29561 fi
29562 rm -f conftest.err conftest.$ac_objext \
29563       conftest$ac_exeext conftest.$ac_ext
29564
29565         LIBS="$ol_LIBS"
29566
29567 fi
29568 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29569 echo "${ECHO_T}$ol_cv_db_db41" >&6
29570
29571         if test $ol_cv_db_db41 = yes ; then
29572                 ol_cv_lib_db=-ldb41
29573         fi
29574 fi
29575
29576                 if test $ol_cv_lib_db = no ; then
29577         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29578 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29579 if test "${ol_cv_db_db_41+set}" = set; then
29580   echo $ECHO_N "(cached) $ECHO_C" >&6
29581 else
29582
29583         ol_DB_LIB=-ldb-41
29584         ol_LIBS=$LIBS
29585         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29586
29587         cat >conftest.$ac_ext <<_ACEOF
29588 /* confdefs.h.  */
29589 _ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h.  */
29593
29594 #ifdef HAVE_DB_185_H
29595 # include <db_185.h>
29596 #else
29597 # include <db.h>
29598 #endif
29599
29600 #ifndef DB_VERSION_MAJOR
29601 # define DB_VERSION_MAJOR 1
29602 #endif
29603
29604 #ifndef NULL
29605 #define NULL ((void*)0)
29606 #endif
29607
29608 int
29609 main ()
29610 {
29611
29612 #if DB_VERSION_MAJOR > 1
29613         {
29614                 char *version;
29615                 int major, minor, patch;
29616
29617                 version = db_version( &major, &minor, &patch );
29618
29619                 if( major != DB_VERSION_MAJOR ||
29620                         minor < DB_VERSION_MINOR )
29621                 {
29622                         printf("Berkeley DB version mismatch\n"
29623                                 "\theader: %s\n\tlibrary: %s\n",
29624                                 DB_VERSION_STRING, version);
29625                         return 1;
29626                 }
29627         }
29628 #endif
29629
29630 #if DB_VERSION_MAJOR > 2
29631         db_env_create( NULL, 0 );
29632 #elif DB_VERSION_MAJOR > 1
29633         db_appexit( NULL );
29634 #else
29635         (void) dbopen( NULL, 0, 0, 0, NULL);
29636 #endif
29637
29638   ;
29639   return 0;
29640 }
29641 _ACEOF
29642 rm -f conftest.$ac_objext conftest$ac_exeext
29643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29644   (eval $ac_link) 2>conftest.er1
29645   ac_status=$?
29646   grep -v '^ *+' conftest.er1 >conftest.err
29647   rm -f conftest.er1
29648   cat conftest.err >&5
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); } &&
29651          { ac_try='test -z "$ac_c_werror_flag"
29652                          || test ! -s conftest.err'
29653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654   (eval $ac_try) 2>&5
29655   ac_status=$?
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); }; } &&
29658          { ac_try='test -s conftest$ac_exeext'
29659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660   (eval $ac_try) 2>&5
29661   ac_status=$?
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); }; }; then
29664   ol_cv_db_db_41=yes
29665 else
29666   echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29668
29669 ol_cv_db_db_41=no
29670 fi
29671 rm -f conftest.err conftest.$ac_objext \
29672       conftest$ac_exeext conftest.$ac_ext
29673
29674         LIBS="$ol_LIBS"
29675
29676 fi
29677 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29678 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29679
29680         if test $ol_cv_db_db_41 = yes ; then
29681                 ol_cv_lib_db=-ldb-41
29682         fi
29683 fi
29684
29685                 if test $ol_cv_lib_db = no ; then
29686         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29687 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29688 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29689   echo $ECHO_N "(cached) $ECHO_C" >&6
29690 else
29691
29692         ol_DB_LIB=-ldb-4.1
29693         ol_LIBS=$LIBS
29694         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29695
29696         cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h.  */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h.  */
29702
29703 #ifdef HAVE_DB_185_H
29704 # include <db_185.h>
29705 #else
29706 # include <db.h>
29707 #endif
29708
29709 #ifndef DB_VERSION_MAJOR
29710 # define DB_VERSION_MAJOR 1
29711 #endif
29712
29713 #ifndef NULL
29714 #define NULL ((void*)0)
29715 #endif
29716
29717 int
29718 main ()
29719 {
29720
29721 #if DB_VERSION_MAJOR > 1
29722         {
29723                 char *version;
29724                 int major, minor, patch;
29725
29726                 version = db_version( &major, &minor, &patch );
29727
29728                 if( major != DB_VERSION_MAJOR ||
29729                         minor < DB_VERSION_MINOR )
29730                 {
29731                         printf("Berkeley DB version mismatch\n"
29732                                 "\theader: %s\n\tlibrary: %s\n",
29733                                 DB_VERSION_STRING, version);
29734                         return 1;
29735                 }
29736         }
29737 #endif
29738
29739 #if DB_VERSION_MAJOR > 2
29740         db_env_create( NULL, 0 );
29741 #elif DB_VERSION_MAJOR > 1
29742         db_appexit( NULL );
29743 #else
29744         (void) dbopen( NULL, 0, 0, 0, NULL);
29745 #endif
29746
29747   ;
29748   return 0;
29749 }
29750 _ACEOF
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29753   (eval $ac_link) 2>conftest.er1
29754   ac_status=$?
29755   grep -v '^ *+' conftest.er1 >conftest.err
29756   rm -f conftest.er1
29757   cat conftest.err >&5
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } &&
29760          { ac_try='test -z "$ac_c_werror_flag"
29761                          || test ! -s conftest.err'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; } &&
29767          { ac_try='test -s conftest$ac_exeext'
29768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769   (eval $ac_try) 2>&5
29770   ac_status=$?
29771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772   (exit $ac_status); }; }; then
29773   ol_cv_db_db_4_dot_1=yes
29774 else
29775   echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29777
29778 ol_cv_db_db_4_dot_1=no
29779 fi
29780 rm -f conftest.err conftest.$ac_objext \
29781       conftest$ac_exeext conftest.$ac_ext
29782
29783         LIBS="$ol_LIBS"
29784
29785 fi
29786 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29787 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29788
29789         if test $ol_cv_db_db_4_dot_1 = yes ; then
29790                 ol_cv_lib_db=-ldb-4.1
29791         fi
29792 fi
29793
29794                 if test $ol_cv_lib_db = no ; then
29795         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29796 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29797 if test "${ol_cv_db_db_4_1+set}" = set; then
29798   echo $ECHO_N "(cached) $ECHO_C" >&6
29799 else
29800
29801         ol_DB_LIB=-ldb-4-1
29802         ol_LIBS=$LIBS
29803         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29804
29805         cat >conftest.$ac_ext <<_ACEOF
29806 /* confdefs.h.  */
29807 _ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h.  */
29811
29812 #ifdef HAVE_DB_185_H
29813 # include <db_185.h>
29814 #else
29815 # include <db.h>
29816 #endif
29817
29818 #ifndef DB_VERSION_MAJOR
29819 # define DB_VERSION_MAJOR 1
29820 #endif
29821
29822 #ifndef NULL
29823 #define NULL ((void*)0)
29824 #endif
29825
29826 int
29827 main ()
29828 {
29829
29830 #if DB_VERSION_MAJOR > 1
29831         {
29832                 char *version;
29833                 int major, minor, patch;
29834
29835                 version = db_version( &major, &minor, &patch );
29836
29837                 if( major != DB_VERSION_MAJOR ||
29838                         minor < DB_VERSION_MINOR )
29839                 {
29840                         printf("Berkeley DB version mismatch\n"
29841                                 "\theader: %s\n\tlibrary: %s\n",
29842                                 DB_VERSION_STRING, version);
29843                         return 1;
29844                 }
29845         }
29846 #endif
29847
29848 #if DB_VERSION_MAJOR > 2
29849         db_env_create( NULL, 0 );
29850 #elif DB_VERSION_MAJOR > 1
29851         db_appexit( NULL );
29852 #else
29853         (void) dbopen( NULL, 0, 0, 0, NULL);
29854 #endif
29855
29856   ;
29857   return 0;
29858 }
29859 _ACEOF
29860 rm -f conftest.$ac_objext conftest$ac_exeext
29861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29862   (eval $ac_link) 2>conftest.er1
29863   ac_status=$?
29864   grep -v '^ *+' conftest.er1 >conftest.err
29865   rm -f conftest.er1
29866   cat conftest.err >&5
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); } &&
29869          { ac_try='test -z "$ac_c_werror_flag"
29870                          || test ! -s conftest.err'
29871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872   (eval $ac_try) 2>&5
29873   ac_status=$?
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); }; } &&
29876          { ac_try='test -s conftest$ac_exeext'
29877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878   (eval $ac_try) 2>&5
29879   ac_status=$?
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); }; }; then
29882   ol_cv_db_db_4_1=yes
29883 else
29884   echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29886
29887 ol_cv_db_db_4_1=no
29888 fi
29889 rm -f conftest.err conftest.$ac_objext \
29890       conftest$ac_exeext conftest.$ac_ext
29891
29892         LIBS="$ol_LIBS"
29893
29894 fi
29895 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29896 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29897
29898         if test $ol_cv_db_db_4_1 = yes ; then
29899                 ol_cv_lib_db=-ldb-4-1
29900         fi
29901 fi
29902
29903         fi
29904         if test $ol_cv_lib_db = no ; then
29905         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29906 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29907 if test "${ol_cv_db_db_4+set}" = set; then
29908   echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910
29911         ol_DB_LIB=-ldb-4
29912         ol_LIBS=$LIBS
29913         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29914
29915         cat >conftest.$ac_ext <<_ACEOF
29916 /* confdefs.h.  */
29917 _ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h.  */
29921
29922 #ifdef HAVE_DB_185_H
29923 # include <db_185.h>
29924 #else
29925 # include <db.h>
29926 #endif
29927
29928 #ifndef DB_VERSION_MAJOR
29929 # define DB_VERSION_MAJOR 1
29930 #endif
29931
29932 #ifndef NULL
29933 #define NULL ((void*)0)
29934 #endif
29935
29936 int
29937 main ()
29938 {
29939
29940 #if DB_VERSION_MAJOR > 1
29941         {
29942                 char *version;
29943                 int major, minor, patch;
29944
29945                 version = db_version( &major, &minor, &patch );
29946
29947                 if( major != DB_VERSION_MAJOR ||
29948                         minor < DB_VERSION_MINOR )
29949                 {
29950                         printf("Berkeley DB version mismatch\n"
29951                                 "\theader: %s\n\tlibrary: %s\n",
29952                                 DB_VERSION_STRING, version);
29953                         return 1;
29954                 }
29955         }
29956 #endif
29957
29958 #if DB_VERSION_MAJOR > 2
29959         db_env_create( NULL, 0 );
29960 #elif DB_VERSION_MAJOR > 1
29961         db_appexit( NULL );
29962 #else
29963         (void) dbopen( NULL, 0, 0, 0, NULL);
29964 #endif
29965
29966   ;
29967   return 0;
29968 }
29969 _ACEOF
29970 rm -f conftest.$ac_objext conftest$ac_exeext
29971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29972   (eval $ac_link) 2>conftest.er1
29973   ac_status=$?
29974   grep -v '^ *+' conftest.er1 >conftest.err
29975   rm -f conftest.er1
29976   cat conftest.err >&5
29977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978   (exit $ac_status); } &&
29979          { ac_try='test -z "$ac_c_werror_flag"
29980                          || test ! -s conftest.err'
29981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29982   (eval $ac_try) 2>&5
29983   ac_status=$?
29984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985   (exit $ac_status); }; } &&
29986          { ac_try='test -s conftest$ac_exeext'
29987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988   (eval $ac_try) 2>&5
29989   ac_status=$?
29990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991   (exit $ac_status); }; }; then
29992   ol_cv_db_db_4=yes
29993 else
29994   echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29996
29997 ol_cv_db_db_4=no
29998 fi
29999 rm -f conftest.err conftest.$ac_objext \
30000       conftest$ac_exeext conftest.$ac_ext
30001
30002         LIBS="$ol_LIBS"
30003
30004 fi
30005 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30006 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30007
30008         if test $ol_cv_db_db_4 = yes ; then
30009                 ol_cv_lib_db=-ldb-4
30010         fi
30011 fi
30012
30013         if test $ol_cv_lib_db = no ; then
30014         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30015 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30016 if test "${ol_cv_db_db4+set}" = set; then
30017   echo $ECHO_N "(cached) $ECHO_C" >&6
30018 else
30019
30020         ol_DB_LIB=-ldb4
30021         ol_LIBS=$LIBS
30022         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30023
30024         cat >conftest.$ac_ext <<_ACEOF
30025 /* confdefs.h.  */
30026 _ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h.  */
30030
30031 #ifdef HAVE_DB_185_H
30032 # include <db_185.h>
30033 #else
30034 # include <db.h>
30035 #endif
30036
30037 #ifndef DB_VERSION_MAJOR
30038 # define DB_VERSION_MAJOR 1
30039 #endif
30040
30041 #ifndef NULL
30042 #define NULL ((void*)0)
30043 #endif
30044
30045 int
30046 main ()
30047 {
30048
30049 #if DB_VERSION_MAJOR > 1
30050         {
30051                 char *version;
30052                 int major, minor, patch;
30053
30054                 version = db_version( &major, &minor, &patch );
30055
30056                 if( major != DB_VERSION_MAJOR ||
30057                         minor < DB_VERSION_MINOR )
30058                 {
30059                         printf("Berkeley DB version mismatch\n"
30060                                 "\theader: %s\n\tlibrary: %s\n",
30061                                 DB_VERSION_STRING, version);
30062                         return 1;
30063                 }
30064         }
30065 #endif
30066
30067 #if DB_VERSION_MAJOR > 2
30068         db_env_create( NULL, 0 );
30069 #elif DB_VERSION_MAJOR > 1
30070         db_appexit( NULL );
30071 #else
30072         (void) dbopen( NULL, 0, 0, 0, NULL);
30073 #endif
30074
30075   ;
30076   return 0;
30077 }
30078 _ACEOF
30079 rm -f conftest.$ac_objext conftest$ac_exeext
30080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30081   (eval $ac_link) 2>conftest.er1
30082   ac_status=$?
30083   grep -v '^ *+' conftest.er1 >conftest.err
30084   rm -f conftest.er1
30085   cat conftest.err >&5
30086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087   (exit $ac_status); } &&
30088          { ac_try='test -z "$ac_c_werror_flag"
30089                          || test ! -s conftest.err'
30090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30091   (eval $ac_try) 2>&5
30092   ac_status=$?
30093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094   (exit $ac_status); }; } &&
30095          { ac_try='test -s conftest$ac_exeext'
30096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30097   (eval $ac_try) 2>&5
30098   ac_status=$?
30099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100   (exit $ac_status); }; }; then
30101   ol_cv_db_db4=yes
30102 else
30103   echo "$as_me: failed program was:" >&5
30104 sed 's/^/| /' conftest.$ac_ext >&5
30105
30106 ol_cv_db_db4=no
30107 fi
30108 rm -f conftest.err conftest.$ac_objext \
30109       conftest$ac_exeext conftest.$ac_ext
30110
30111         LIBS="$ol_LIBS"
30112
30113 fi
30114 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30115 echo "${ECHO_T}$ol_cv_db_db4" >&6
30116
30117         if test $ol_cv_db_db4 = yes ; then
30118                 ol_cv_lib_db=-ldb4
30119         fi
30120 fi
30121
30122         if test $ol_cv_lib_db = no ; then
30123         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30124 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30125 if test "${ol_cv_db_db+set}" = set; then
30126   echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128
30129         ol_DB_LIB=-ldb
30130         ol_LIBS=$LIBS
30131         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30132
30133         cat >conftest.$ac_ext <<_ACEOF
30134 /* confdefs.h.  */
30135 _ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h.  */
30139
30140 #ifdef HAVE_DB_185_H
30141 # include <db_185.h>
30142 #else
30143 # include <db.h>
30144 #endif
30145
30146 #ifndef DB_VERSION_MAJOR
30147 # define DB_VERSION_MAJOR 1
30148 #endif
30149
30150 #ifndef NULL
30151 #define NULL ((void*)0)
30152 #endif
30153
30154 int
30155 main ()
30156 {
30157
30158 #if DB_VERSION_MAJOR > 1
30159         {
30160                 char *version;
30161                 int major, minor, patch;
30162
30163                 version = db_version( &major, &minor, &patch );
30164
30165                 if( major != DB_VERSION_MAJOR ||
30166                         minor < DB_VERSION_MINOR )
30167                 {
30168                         printf("Berkeley DB version mismatch\n"
30169                                 "\theader: %s\n\tlibrary: %s\n",
30170                                 DB_VERSION_STRING, version);
30171                         return 1;
30172                 }
30173         }
30174 #endif
30175
30176 #if DB_VERSION_MAJOR > 2
30177         db_env_create( NULL, 0 );
30178 #elif DB_VERSION_MAJOR > 1
30179         db_appexit( NULL );
30180 #else
30181         (void) dbopen( NULL, 0, 0, 0, NULL);
30182 #endif
30183
30184   ;
30185   return 0;
30186 }
30187 _ACEOF
30188 rm -f conftest.$ac_objext conftest$ac_exeext
30189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30190   (eval $ac_link) 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -z "$ac_c_werror_flag"
30198                          || test ! -s conftest.err'
30199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200   (eval $ac_try) 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; } &&
30204          { ac_try='test -s conftest$ac_exeext'
30205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206   (eval $ac_try) 2>&5
30207   ac_status=$?
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); }; }; then
30210   ol_cv_db_db=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215 ol_cv_db_db=no
30216 fi
30217 rm -f conftest.err conftest.$ac_objext \
30218       conftest$ac_exeext conftest.$ac_ext
30219
30220         LIBS="$ol_LIBS"
30221
30222 fi
30223 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30224 echo "${ECHO_T}$ol_cv_db_db" >&6
30225
30226         if test $ol_cv_db_db = yes ; then
30227                 ol_cv_lib_db=-ldb
30228         fi
30229 fi
30230
30231
30232 elif test $ol_cv_bdb_major = 3 ; then
30233         if test $ol_cv_lib_db = no ; then
30234         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30235 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30236 if test "${ol_cv_db_db3+set}" = set; then
30237   echo $ECHO_N "(cached) $ECHO_C" >&6
30238 else
30239
30240         ol_DB_LIB=-ldb3
30241         ol_LIBS=$LIBS
30242         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30243
30244         cat >conftest.$ac_ext <<_ACEOF
30245 /* confdefs.h.  */
30246 _ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h.  */
30250
30251 #ifdef HAVE_DB_185_H
30252 # include <db_185.h>
30253 #else
30254 # include <db.h>
30255 #endif
30256
30257 #ifndef DB_VERSION_MAJOR
30258 # define DB_VERSION_MAJOR 1
30259 #endif
30260
30261 #ifndef NULL
30262 #define NULL ((void*)0)
30263 #endif
30264
30265 int
30266 main ()
30267 {
30268
30269 #if DB_VERSION_MAJOR > 1
30270         {
30271                 char *version;
30272                 int major, minor, patch;
30273
30274                 version = db_version( &major, &minor, &patch );
30275
30276                 if( major != DB_VERSION_MAJOR ||
30277                         minor < DB_VERSION_MINOR )
30278                 {
30279                         printf("Berkeley DB version mismatch\n"
30280                                 "\theader: %s\n\tlibrary: %s\n",
30281                                 DB_VERSION_STRING, version);
30282                         return 1;
30283                 }
30284         }
30285 #endif
30286
30287 #if DB_VERSION_MAJOR > 2
30288         db_env_create( NULL, 0 );
30289 #elif DB_VERSION_MAJOR > 1
30290         db_appexit( NULL );
30291 #else
30292         (void) dbopen( NULL, 0, 0, 0, NULL);
30293 #endif
30294
30295   ;
30296   return 0;
30297 }
30298 _ACEOF
30299 rm -f conftest.$ac_objext conftest$ac_exeext
30300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30301   (eval $ac_link) 2>conftest.er1
30302   ac_status=$?
30303   grep -v '^ *+' conftest.er1 >conftest.err
30304   rm -f conftest.er1
30305   cat conftest.err >&5
30306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); } &&
30308          { ac_try='test -z "$ac_c_werror_flag"
30309                          || test ! -s conftest.err'
30310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311   (eval $ac_try) 2>&5
30312   ac_status=$?
30313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314   (exit $ac_status); }; } &&
30315          { ac_try='test -s conftest$ac_exeext'
30316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30317   (eval $ac_try) 2>&5
30318   ac_status=$?
30319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320   (exit $ac_status); }; }; then
30321   ol_cv_db_db3=yes
30322 else
30323   echo "$as_me: failed program was:" >&5
30324 sed 's/^/| /' conftest.$ac_ext >&5
30325
30326 ol_cv_db_db3=no
30327 fi
30328 rm -f conftest.err conftest.$ac_objext \
30329       conftest$ac_exeext conftest.$ac_ext
30330
30331         LIBS="$ol_LIBS"
30332
30333 fi
30334 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30335 echo "${ECHO_T}$ol_cv_db_db3" >&6
30336
30337         if test $ol_cv_db_db3 = yes ; then
30338                 ol_cv_lib_db=-ldb3
30339         fi
30340 fi
30341
30342         if test $ol_cv_lib_db = no ; then
30343         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30344 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30345 if test "${ol_cv_db_db_3+set}" = set; then
30346   echo $ECHO_N "(cached) $ECHO_C" >&6
30347 else
30348
30349         ol_DB_LIB=-ldb-3
30350         ol_LIBS=$LIBS
30351         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30352
30353         cat >conftest.$ac_ext <<_ACEOF
30354 /* confdefs.h.  */
30355 _ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h.  */
30359
30360 #ifdef HAVE_DB_185_H
30361 # include <db_185.h>
30362 #else
30363 # include <db.h>
30364 #endif
30365
30366 #ifndef DB_VERSION_MAJOR
30367 # define DB_VERSION_MAJOR 1
30368 #endif
30369
30370 #ifndef NULL
30371 #define NULL ((void*)0)
30372 #endif
30373
30374 int
30375 main ()
30376 {
30377
30378 #if DB_VERSION_MAJOR > 1
30379         {
30380                 char *version;
30381                 int major, minor, patch;
30382
30383                 version = db_version( &major, &minor, &patch );
30384
30385                 if( major != DB_VERSION_MAJOR ||
30386                         minor < DB_VERSION_MINOR )
30387                 {
30388                         printf("Berkeley DB version mismatch\n"
30389                                 "\theader: %s\n\tlibrary: %s\n",
30390                                 DB_VERSION_STRING, version);
30391                         return 1;
30392                 }
30393         }
30394 #endif
30395
30396 #if DB_VERSION_MAJOR > 2
30397         db_env_create( NULL, 0 );
30398 #elif DB_VERSION_MAJOR > 1
30399         db_appexit( NULL );
30400 #else
30401         (void) dbopen( NULL, 0, 0, 0, NULL);
30402 #endif
30403
30404   ;
30405   return 0;
30406 }
30407 _ACEOF
30408 rm -f conftest.$ac_objext conftest$ac_exeext
30409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30410   (eval $ac_link) 2>conftest.er1
30411   ac_status=$?
30412   grep -v '^ *+' conftest.er1 >conftest.err
30413   rm -f conftest.er1
30414   cat conftest.err >&5
30415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416   (exit $ac_status); } &&
30417          { ac_try='test -z "$ac_c_werror_flag"
30418                          || test ! -s conftest.err'
30419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420   (eval $ac_try) 2>&5
30421   ac_status=$?
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); }; } &&
30424          { ac_try='test -s conftest$ac_exeext'
30425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426   (eval $ac_try) 2>&5
30427   ac_status=$?
30428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429   (exit $ac_status); }; }; then
30430   ol_cv_db_db_3=yes
30431 else
30432   echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30434
30435 ol_cv_db_db_3=no
30436 fi
30437 rm -f conftest.err conftest.$ac_objext \
30438       conftest$ac_exeext conftest.$ac_ext
30439
30440         LIBS="$ol_LIBS"
30441
30442 fi
30443 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30444 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30445
30446         if test $ol_cv_db_db_3 = yes ; then
30447                 ol_cv_lib_db=-ldb-3
30448         fi
30449 fi
30450
30451
30452 elif test $ol_cv_bdb_major = 2 ; then
30453         if test $ol_cv_lib_db = no ; then
30454         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30455 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30456 if test "${ol_cv_db_db2+set}" = set; then
30457   echo $ECHO_N "(cached) $ECHO_C" >&6
30458 else
30459
30460         ol_DB_LIB=-ldb2
30461         ol_LIBS=$LIBS
30462         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30463
30464         cat >conftest.$ac_ext <<_ACEOF
30465 /* confdefs.h.  */
30466 _ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h.  */
30470
30471 #ifdef HAVE_DB_185_H
30472 # include <db_185.h>
30473 #else
30474 # include <db.h>
30475 #endif
30476
30477 #ifndef DB_VERSION_MAJOR
30478 # define DB_VERSION_MAJOR 1
30479 #endif
30480
30481 #ifndef NULL
30482 #define NULL ((void*)0)
30483 #endif
30484
30485 int
30486 main ()
30487 {
30488
30489 #if DB_VERSION_MAJOR > 1
30490         {
30491                 char *version;
30492                 int major, minor, patch;
30493
30494                 version = db_version( &major, &minor, &patch );
30495
30496                 if( major != DB_VERSION_MAJOR ||
30497                         minor < DB_VERSION_MINOR )
30498                 {
30499                         printf("Berkeley DB version mismatch\n"
30500                                 "\theader: %s\n\tlibrary: %s\n",
30501                                 DB_VERSION_STRING, version);
30502                         return 1;
30503                 }
30504         }
30505 #endif
30506
30507 #if DB_VERSION_MAJOR > 2
30508         db_env_create( NULL, 0 );
30509 #elif DB_VERSION_MAJOR > 1
30510         db_appexit( NULL );
30511 #else
30512         (void) dbopen( NULL, 0, 0, 0, NULL);
30513 #endif
30514
30515   ;
30516   return 0;
30517 }
30518 _ACEOF
30519 rm -f conftest.$ac_objext conftest$ac_exeext
30520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30521   (eval $ac_link) 2>conftest.er1
30522   ac_status=$?
30523   grep -v '^ *+' conftest.er1 >conftest.err
30524   rm -f conftest.er1
30525   cat conftest.err >&5
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); } &&
30528          { ac_try='test -z "$ac_c_werror_flag"
30529                          || test ! -s conftest.err'
30530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531   (eval $ac_try) 2>&5
30532   ac_status=$?
30533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534   (exit $ac_status); }; } &&
30535          { ac_try='test -s conftest$ac_exeext'
30536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30537   (eval $ac_try) 2>&5
30538   ac_status=$?
30539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540   (exit $ac_status); }; }; then
30541   ol_cv_db_db2=yes
30542 else
30543   echo "$as_me: failed program was:" >&5
30544 sed 's/^/| /' conftest.$ac_ext >&5
30545
30546 ol_cv_db_db2=no
30547 fi
30548 rm -f conftest.err conftest.$ac_objext \
30549       conftest$ac_exeext conftest.$ac_ext
30550
30551         LIBS="$ol_LIBS"
30552
30553 fi
30554 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30555 echo "${ECHO_T}$ol_cv_db_db2" >&6
30556
30557         if test $ol_cv_db_db2 = yes ; then
30558                 ol_cv_lib_db=-ldb2
30559         fi
30560 fi
30561
30562         if test $ol_cv_lib_db = no ; then
30563         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30564 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30565 if test "${ol_cv_db_db_2+set}" = set; then
30566   echo $ECHO_N "(cached) $ECHO_C" >&6
30567 else
30568
30569         ol_DB_LIB=-ldb-2
30570         ol_LIBS=$LIBS
30571         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30572
30573         cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h.  */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h.  */
30579
30580 #ifdef HAVE_DB_185_H
30581 # include <db_185.h>
30582 #else
30583 # include <db.h>
30584 #endif
30585
30586 #ifndef DB_VERSION_MAJOR
30587 # define DB_VERSION_MAJOR 1
30588 #endif
30589
30590 #ifndef NULL
30591 #define NULL ((void*)0)
30592 #endif
30593
30594 int
30595 main ()
30596 {
30597
30598 #if DB_VERSION_MAJOR > 1
30599         {
30600                 char *version;
30601                 int major, minor, patch;
30602
30603                 version = db_version( &major, &minor, &patch );
30604
30605                 if( major != DB_VERSION_MAJOR ||
30606                         minor < DB_VERSION_MINOR )
30607                 {
30608                         printf("Berkeley DB version mismatch\n"
30609                                 "\theader: %s\n\tlibrary: %s\n",
30610                                 DB_VERSION_STRING, version);
30611                         return 1;
30612                 }
30613         }
30614 #endif
30615
30616 #if DB_VERSION_MAJOR > 2
30617         db_env_create( NULL, 0 );
30618 #elif DB_VERSION_MAJOR > 1
30619         db_appexit( NULL );
30620 #else
30621         (void) dbopen( NULL, 0, 0, 0, NULL);
30622 #endif
30623
30624   ;
30625   return 0;
30626 }
30627 _ACEOF
30628 rm -f conftest.$ac_objext conftest$ac_exeext
30629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30630   (eval $ac_link) 2>conftest.er1
30631   ac_status=$?
30632   grep -v '^ *+' conftest.er1 >conftest.err
30633   rm -f conftest.er1
30634   cat conftest.err >&5
30635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636   (exit $ac_status); } &&
30637          { ac_try='test -z "$ac_c_werror_flag"
30638                          || test ! -s conftest.err'
30639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640   (eval $ac_try) 2>&5
30641   ac_status=$?
30642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643   (exit $ac_status); }; } &&
30644          { ac_try='test -s conftest$ac_exeext'
30645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30646   (eval $ac_try) 2>&5
30647   ac_status=$?
30648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649   (exit $ac_status); }; }; then
30650   ol_cv_db_db_2=yes
30651 else
30652   echo "$as_me: failed program was:" >&5
30653 sed 's/^/| /' conftest.$ac_ext >&5
30654
30655 ol_cv_db_db_2=no
30656 fi
30657 rm -f conftest.err conftest.$ac_objext \
30658       conftest$ac_exeext conftest.$ac_ext
30659
30660         LIBS="$ol_LIBS"
30661
30662 fi
30663 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30664 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30665
30666         if test $ol_cv_db_db_2 = yes ; then
30667                 ol_cv_lib_db=-ldb-2
30668         fi
30669 fi
30670
30671
30672 elif test $ol_cv_bdb_major = 1 ; then
30673         if test $ol_cv_lib_db = no ; then
30674         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30675 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30676 if test "${ol_cv_db_db1+set}" = set; then
30677   echo $ECHO_N "(cached) $ECHO_C" >&6
30678 else
30679
30680         ol_DB_LIB=-ldb1
30681         ol_LIBS=$LIBS
30682         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30683
30684         cat >conftest.$ac_ext <<_ACEOF
30685 /* confdefs.h.  */
30686 _ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h.  */
30690
30691 #ifdef HAVE_DB_185_H
30692 # include <db_185.h>
30693 #else
30694 # include <db.h>
30695 #endif
30696
30697 #ifndef DB_VERSION_MAJOR
30698 # define DB_VERSION_MAJOR 1
30699 #endif
30700
30701 #ifndef NULL
30702 #define NULL ((void*)0)
30703 #endif
30704
30705 int
30706 main ()
30707 {
30708
30709 #if DB_VERSION_MAJOR > 1
30710         {
30711                 char *version;
30712                 int major, minor, patch;
30713
30714                 version = db_version( &major, &minor, &patch );
30715
30716                 if( major != DB_VERSION_MAJOR ||
30717                         minor < DB_VERSION_MINOR )
30718                 {
30719                         printf("Berkeley DB version mismatch\n"
30720                                 "\theader: %s\n\tlibrary: %s\n",
30721                                 DB_VERSION_STRING, version);
30722                         return 1;
30723                 }
30724         }
30725 #endif
30726
30727 #if DB_VERSION_MAJOR > 2
30728         db_env_create( NULL, 0 );
30729 #elif DB_VERSION_MAJOR > 1
30730         db_appexit( NULL );
30731 #else
30732         (void) dbopen( NULL, 0, 0, 0, NULL);
30733 #endif
30734
30735   ;
30736   return 0;
30737 }
30738 _ACEOF
30739 rm -f conftest.$ac_objext conftest$ac_exeext
30740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30741   (eval $ac_link) 2>conftest.er1
30742   ac_status=$?
30743   grep -v '^ *+' conftest.er1 >conftest.err
30744   rm -f conftest.er1
30745   cat conftest.err >&5
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); } &&
30748          { ac_try='test -z "$ac_c_werror_flag"
30749                          || test ! -s conftest.err'
30750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751   (eval $ac_try) 2>&5
30752   ac_status=$?
30753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754   (exit $ac_status); }; } &&
30755          { ac_try='test -s conftest$ac_exeext'
30756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30757   (eval $ac_try) 2>&5
30758   ac_status=$?
30759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760   (exit $ac_status); }; }; then
30761   ol_cv_db_db1=yes
30762 else
30763   echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30765
30766 ol_cv_db_db1=no
30767 fi
30768 rm -f conftest.err conftest.$ac_objext \
30769       conftest$ac_exeext conftest.$ac_ext
30770
30771         LIBS="$ol_LIBS"
30772
30773 fi
30774 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30775 echo "${ECHO_T}$ol_cv_db_db1" >&6
30776
30777         if test $ol_cv_db_db1 = yes ; then
30778                 ol_cv_lib_db=-ldb1
30779         fi
30780 fi
30781
30782         if test $ol_cv_lib_db = no ; then
30783         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30784 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30785 if test "${ol_cv_db_db_1+set}" = set; then
30786   echo $ECHO_N "(cached) $ECHO_C" >&6
30787 else
30788
30789         ol_DB_LIB=-ldb-1
30790         ol_LIBS=$LIBS
30791         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30792
30793         cat >conftest.$ac_ext <<_ACEOF
30794 /* confdefs.h.  */
30795 _ACEOF
30796 cat confdefs.h >>conftest.$ac_ext
30797 cat >>conftest.$ac_ext <<_ACEOF
30798 /* end confdefs.h.  */
30799
30800 #ifdef HAVE_DB_185_H
30801 # include <db_185.h>
30802 #else
30803 # include <db.h>
30804 #endif
30805
30806 #ifndef DB_VERSION_MAJOR
30807 # define DB_VERSION_MAJOR 1
30808 #endif
30809
30810 #ifndef NULL
30811 #define NULL ((void*)0)
30812 #endif
30813
30814 int
30815 main ()
30816 {
30817
30818 #if DB_VERSION_MAJOR > 1
30819         {
30820                 char *version;
30821                 int major, minor, patch;
30822
30823                 version = db_version( &major, &minor, &patch );
30824
30825                 if( major != DB_VERSION_MAJOR ||
30826                         minor < DB_VERSION_MINOR )
30827                 {
30828                         printf("Berkeley DB version mismatch\n"
30829                                 "\theader: %s\n\tlibrary: %s\n",
30830                                 DB_VERSION_STRING, version);
30831                         return 1;
30832                 }
30833         }
30834 #endif
30835
30836 #if DB_VERSION_MAJOR > 2
30837         db_env_create( NULL, 0 );
30838 #elif DB_VERSION_MAJOR > 1
30839         db_appexit( NULL );
30840 #else
30841         (void) dbopen( NULL, 0, 0, 0, NULL);
30842 #endif
30843
30844   ;
30845   return 0;
30846 }
30847 _ACEOF
30848 rm -f conftest.$ac_objext conftest$ac_exeext
30849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30850   (eval $ac_link) 2>conftest.er1
30851   ac_status=$?
30852   grep -v '^ *+' conftest.er1 >conftest.err
30853   rm -f conftest.er1
30854   cat conftest.err >&5
30855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856   (exit $ac_status); } &&
30857          { ac_try='test -z "$ac_c_werror_flag"
30858                          || test ! -s conftest.err'
30859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30860   (eval $ac_try) 2>&5
30861   ac_status=$?
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); }; } &&
30864          { ac_try='test -s conftest$ac_exeext'
30865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866   (eval $ac_try) 2>&5
30867   ac_status=$?
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); }; }; then
30870   ol_cv_db_db_1=yes
30871 else
30872   echo "$as_me: failed program was:" >&5
30873 sed 's/^/| /' conftest.$ac_ext >&5
30874
30875 ol_cv_db_db_1=no
30876 fi
30877 rm -f conftest.err conftest.$ac_objext \
30878       conftest$ac_exeext conftest.$ac_ext
30879
30880         LIBS="$ol_LIBS"
30881
30882 fi
30883 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30884 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30885
30886         if test $ol_cv_db_db_1 = yes ; then
30887                 ol_cv_lib_db=-ldb-1
30888         fi
30889 fi
30890
30891 fi
30892 if test $ol_cv_lib_db = no ; then
30893         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30894 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30895 if test "${ol_cv_db_none+set}" = set; then
30896   echo $ECHO_N "(cached) $ECHO_C" >&6
30897 else
30898
30899         ol_DB_LIB=
30900         ol_LIBS=$LIBS
30901         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30902
30903         cat >conftest.$ac_ext <<_ACEOF
30904 /* confdefs.h.  */
30905 _ACEOF
30906 cat confdefs.h >>conftest.$ac_ext
30907 cat >>conftest.$ac_ext <<_ACEOF
30908 /* end confdefs.h.  */
30909
30910 #ifdef HAVE_DB_185_H
30911 # include <db_185.h>
30912 #else
30913 # include <db.h>
30914 #endif
30915
30916 #ifndef DB_VERSION_MAJOR
30917 # define DB_VERSION_MAJOR 1
30918 #endif
30919
30920 #ifndef NULL
30921 #define NULL ((void*)0)
30922 #endif
30923
30924 int
30925 main ()
30926 {
30927
30928 #if DB_VERSION_MAJOR > 1
30929         {
30930                 char *version;
30931                 int major, minor, patch;
30932
30933                 version = db_version( &major, &minor, &patch );
30934
30935                 if( major != DB_VERSION_MAJOR ||
30936                         minor < DB_VERSION_MINOR )
30937                 {
30938                         printf("Berkeley DB version mismatch\n"
30939                                 "\theader: %s\n\tlibrary: %s\n",
30940                                 DB_VERSION_STRING, version);
30941                         return 1;
30942                 }
30943         }
30944 #endif
30945
30946 #if DB_VERSION_MAJOR > 2
30947         db_env_create( NULL, 0 );
30948 #elif DB_VERSION_MAJOR > 1
30949         db_appexit( NULL );
30950 #else
30951         (void) dbopen( NULL, 0, 0, 0, NULL);
30952 #endif
30953
30954   ;
30955   return 0;
30956 }
30957 _ACEOF
30958 rm -f conftest.$ac_objext conftest$ac_exeext
30959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30960   (eval $ac_link) 2>conftest.er1
30961   ac_status=$?
30962   grep -v '^ *+' conftest.er1 >conftest.err
30963   rm -f conftest.er1
30964   cat conftest.err >&5
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); } &&
30967          { ac_try='test -z "$ac_c_werror_flag"
30968                          || test ! -s conftest.err'
30969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970   (eval $ac_try) 2>&5
30971   ac_status=$?
30972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973   (exit $ac_status); }; } &&
30974          { ac_try='test -s conftest$ac_exeext'
30975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30976   (eval $ac_try) 2>&5
30977   ac_status=$?
30978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979   (exit $ac_status); }; }; then
30980   ol_cv_db_none=yes
30981 else
30982   echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30984
30985 ol_cv_db_none=no
30986 fi
30987 rm -f conftest.err conftest.$ac_objext \
30988       conftest$ac_exeext conftest.$ac_ext
30989
30990         LIBS="$ol_LIBS"
30991
30992 fi
30993 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30994 echo "${ECHO_T}$ol_cv_db_none" >&6
30995
30996         if test $ol_cv_db_none = yes ; then
30997                 ol_cv_lib_db=yes
30998         fi
30999 fi
31000
31001
31002         if test "$ol_cv_lib_db" != no ; then
31003                 ol_cv_berkeley_db=yes
31004                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31005 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31006 if test "${ol_cv_berkeley_db_version+set}" = set; then
31007   echo $ECHO_N "(cached) $ECHO_C" >&6
31008 else
31009
31010         ol_LIBS="$LIBS"
31011         LIBS="$LTHREAD_LIBS $LIBS"
31012         if test $ol_cv_lib_db != yes ; then
31013                 LIBS="$ol_cv_lib_db $LIBS"
31014         fi
31015
31016         if test "$cross_compiling" = yes; then
31017   ol_cv_berkeley_db_version=cross
31018 else
31019   cat >conftest.$ac_ext <<_ACEOF
31020 /* confdefs.h.  */
31021 _ACEOF
31022 cat confdefs.h >>conftest.$ac_ext
31023 cat >>conftest.$ac_ext <<_ACEOF
31024 /* end confdefs.h.  */
31025
31026 #ifdef HAVE_DB_185_H
31027         choke me;
31028 #else
31029 #include <db.h>
31030 #endif
31031 #ifndef DB_VERSION_MAJOR
31032 # define DB_VERSION_MAJOR 1
31033 #endif
31034 #ifndef NULL
31035 #define NULL ((void *)0)
31036 #endif
31037 main()
31038 {
31039 #if DB_VERSION_MAJOR > 1
31040         char *version;
31041         int major, minor, patch;
31042
31043         version = db_version( &major, &minor, &patch );
31044
31045         if( major != DB_VERSION_MAJOR ||
31046                 minor != DB_VERSION_MINOR ||
31047                 patch != DB_VERSION_PATCH )
31048         {
31049                 printf("Berkeley DB version mismatch\n"
31050                         "\theader: %s\n\tlibrary: %s\n",
31051                         DB_VERSION_STRING, version);
31052                 return 1;
31053         }
31054 #endif
31055
31056         return 0;
31057 }
31058 _ACEOF
31059 rm -f conftest$ac_exeext
31060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061   (eval $ac_link) 2>&5
31062   ac_status=$?
31063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066   (eval $ac_try) 2>&5
31067   ac_status=$?
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); }; }; then
31070   ol_cv_berkeley_db_version=yes
31071 else
31072   echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31075
31076 ( exit $ac_status )
31077 ol_cv_berkeley_db_version=no
31078 fi
31079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31080 fi
31081
31082         LIBS="$ol_LIBS"
31083
31084 fi
31085 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31086 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31087
31088         if test $ol_cv_berkeley_db_version = no ; then
31089                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31090 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31091    { (exit 1); exit 1; }; }
31092         fi
31093
31094                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31095 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31096 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31097   echo $ECHO_N "(cached) $ECHO_C" >&6
31098 else
31099
31100         ol_LIBS="$LIBS"
31101         LIBS="$LTHREAD_LIBS $LIBS"
31102         if test $ol_cv_lib_db != yes ; then
31103                 LIBS="$ol_cv_lib_db $LIBS"
31104         fi
31105
31106         if test "$cross_compiling" = yes; then
31107   ol_cv_berkeley_db_thread=cross
31108 else
31109   cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h.  */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h.  */
31115
31116 #ifdef HAVE_DB_185_H
31117         choke me;
31118 #else
31119 #include <db.h>
31120 #endif
31121 #ifndef NULL
31122 #define NULL ((void *)0)
31123 #endif
31124 main()
31125 {
31126         int rc;
31127         u_int32_t flags = DB_CREATE |
31128 #ifdef DB_PRIVATE
31129                 DB_PRIVATE |
31130 #endif
31131                 DB_THREAD;
31132
31133 #if DB_VERSION_MAJOR > 2
31134         DB_ENV *env = NULL;
31135
31136         rc = db_env_create( &env, 0 );
31137
31138         flags |= DB_INIT_MPOOL;
31139 #ifdef DB_MPOOL_PRIVATE
31140         flags |= DB_MPOOL_PRIVATE;
31141 #endif
31142
31143         if( rc ) {
31144                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31145                 return rc;
31146         }
31147
31148 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31149         rc = env->open( env, NULL, flags, 0 );
31150 #else
31151         rc = env->open( env, NULL, NULL, flags, 0 );
31152 #endif
31153
31154         if ( rc == 0 ) {
31155                 rc = env->close( env, 0 );
31156         }
31157
31158         if( rc ) {
31159                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31160                 return rc;
31161         }
31162
31163 #else
31164         DB_ENV env;
31165         memset( &env, '\0', sizeof(env) );
31166
31167         rc = db_appinit( NULL, NULL, &env, flags );
31168
31169         if( rc == 0 ) {
31170                 db_appexit( &env );
31171         }
31172
31173         unlink("__db_mpool.share");
31174         unlink("__db_lock.share");
31175 #endif
31176
31177         return rc;
31178 }
31179 _ACEOF
31180 rm -f conftest$ac_exeext
31181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31182   (eval $ac_link) 2>&5
31183   ac_status=$?
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187   (eval $ac_try) 2>&5
31188   ac_status=$?
31189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190   (exit $ac_status); }; }; then
31191   ol_cv_berkeley_db_thread=yes
31192 else
31193   echo "$as_me: program exited with status $ac_status" >&5
31194 echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31196
31197 ( exit $ac_status )
31198 ol_cv_berkeley_db_thread=no
31199 fi
31200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31201 fi
31202
31203         LIBS="$ol_LIBS"
31204
31205 fi
31206 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31207 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31208
31209         if test $ol_cv_berkeley_db_thread != no ; then
31210
31211 cat >>confdefs.h <<\_ACEOF
31212 #define HAVE_BERKELEY_DB_THREAD 1
31213 _ACEOF
31214
31215         fi
31216
31217         fi
31218 fi
31219
31220
31221         if test $ol_cv_berkeley_db = no ; then
31222                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31223 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31224    { (exit 1); exit 1; }; }
31225         fi
31226
31227
31228 cat >>confdefs.h <<\_ACEOF
31229 #define HAVE_BERKELEY_DB 1
31230 _ACEOF
31231
31232
31233                         if test $ol_cv_lib_db != yes ; then
31234                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31235         fi
31236
31237         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31238 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31239 if test "${ol_cv_bdb_compat+set}" = set; then
31240   echo $ECHO_N "(cached) $ECHO_C" >&6
31241 else
31242
31243         cat >conftest.$ac_ext <<_ACEOF
31244 /* confdefs.h.  */
31245 _ACEOF
31246 cat confdefs.h >>conftest.$ac_ext
31247 cat >>conftest.$ac_ext <<_ACEOF
31248 /* end confdefs.h.  */
31249
31250 #include <db.h>
31251
31252  /* this check could be improved */
31253 #ifndef DB_VERSION_MAJOR
31254 #       define DB_VERSION_MAJOR 1
31255 #endif
31256 #ifndef DB_VERSION_MINOR
31257 #       define DB_VERSION_MINOR 0
31258 #endif
31259
31260 /* require 4.2 or later, but exclude 4.3 */
31261 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31262         __db_version_compat
31263 #endif
31264
31265 _ACEOF
31266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31267   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31268   ol_cv_bdb_compat=yes
31269 else
31270   ol_cv_bdb_compat=no
31271 fi
31272 rm -f conftest*
31273
31274 fi
31275 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31276 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31277
31278
31279         if test $ol_cv_bdb_compat != yes ; then
31280                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31281 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31282    { (exit 1); exit 1; }; }
31283         fi
31284
31285         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31286
31287         ol_link_bdb=yes
31288 fi
31289
31290
31291 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31292         BUILD_LIBS_DYNAMIC=shared
31293
31294 cat >>confdefs.h <<\_ACEOF
31295 #define LDAP_LIBS_DYNAMIC 1
31296 _ACEOF
31297
31298         LTSTATIC=""
31299 else
31300         BUILD_LIBS_DYNAMIC=static
31301         LTSTATIC="-static"
31302 fi
31303
31304 if test $ol_enable_wrappers != no ; then
31305
31306 for ac_header in tcpd.h
31307 do
31308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31310   echo "$as_me:$LINENO: checking for $ac_header" >&5
31311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31313   echo $ECHO_N "(cached) $ECHO_C" >&6
31314 fi
31315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31317 else
31318   # Is the header compilable?
31319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31321 cat >conftest.$ac_ext <<_ACEOF
31322 /* confdefs.h.  */
31323 _ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h.  */
31327 $ac_includes_default
31328 #include <$ac_header>
31329 _ACEOF
31330 rm -f conftest.$ac_objext
31331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31332   (eval $ac_compile) 2>conftest.er1
31333   ac_status=$?
31334   grep -v '^ *+' conftest.er1 >conftest.err
31335   rm -f conftest.er1
31336   cat conftest.err >&5
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); } &&
31339          { ac_try='test -z "$ac_c_werror_flag"
31340                          || test ! -s conftest.err'
31341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342   (eval $ac_try) 2>&5
31343   ac_status=$?
31344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345   (exit $ac_status); }; } &&
31346          { ac_try='test -s conftest.$ac_objext'
31347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348   (eval $ac_try) 2>&5
31349   ac_status=$?
31350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351   (exit $ac_status); }; }; then
31352   ac_header_compiler=yes
31353 else
31354   echo "$as_me: failed program was:" >&5
31355 sed 's/^/| /' conftest.$ac_ext >&5
31356
31357 ac_header_compiler=no
31358 fi
31359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31361 echo "${ECHO_T}$ac_header_compiler" >&6
31362
31363 # Is the header present?
31364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
31373 _ACEOF
31374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31376   ac_status=$?
31377   grep -v '^ *+' conftest.er1 >conftest.err
31378   rm -f conftest.er1
31379   cat conftest.err >&5
31380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381   (exit $ac_status); } >/dev/null; then
31382   if test -s conftest.err; then
31383     ac_cpp_err=$ac_c_preproc_warn_flag
31384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31385   else
31386     ac_cpp_err=
31387   fi
31388 else
31389   ac_cpp_err=yes
31390 fi
31391 if test -z "$ac_cpp_err"; then
31392   ac_header_preproc=yes
31393 else
31394   echo "$as_me: failed program was:" >&5
31395 sed 's/^/| /' conftest.$ac_ext >&5
31396
31397   ac_header_preproc=no
31398 fi
31399 rm -f conftest.err conftest.$ac_ext
31400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31401 echo "${ECHO_T}$ac_header_preproc" >&6
31402
31403 # So?  What about this header?
31404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31405   yes:no: )
31406     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31410     ac_header_preproc=yes
31411     ;;
31412   no:yes:* )
31413     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31415     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31416 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31417     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31419     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31420 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31423     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31425     (
31426       cat <<\_ASBOX
31427 ## --------------------------------------------- ##
31428 ## Report this to <http://www.openldap.org/its/> ##
31429 ## --------------------------------------------- ##
31430 _ASBOX
31431     ) |
31432       sed "s/^/$as_me: WARNING:     /" >&2
31433     ;;
31434 esac
31435 echo "$as_me:$LINENO: checking for $ac_header" >&5
31436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31438   echo $ECHO_N "(cached) $ECHO_C" >&6
31439 else
31440   eval "$as_ac_Header=\$ac_header_preproc"
31441 fi
31442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31444
31445 fi
31446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31447   cat >>confdefs.h <<_ACEOF
31448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31449 _ACEOF
31450
31451                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31452 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31453                 save_LIBS="$LIBS"
31454                 LIBS="$LIBS -lwrap"
31455                 cat >conftest.$ac_ext <<_ACEOF
31456 /* confdefs.h.  */
31457 _ACEOF
31458 cat confdefs.h >>conftest.$ac_ext
31459 cat >>conftest.$ac_ext <<_ACEOF
31460 /* end confdefs.h.  */
31461
31462 #include <tcpd.h>
31463 int allow_severity = 0;
31464 int deny_severity  = 0;
31465
31466 struct request_info *req;
31467
31468 int
31469 main ()
31470 {
31471
31472 hosts_access(req)
31473
31474   ;
31475   return 0;
31476 }
31477 _ACEOF
31478 rm -f conftest.$ac_objext conftest$ac_exeext
31479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31480   (eval $ac_link) 2>conftest.er1
31481   ac_status=$?
31482   grep -v '^ *+' conftest.er1 >conftest.err
31483   rm -f conftest.er1
31484   cat conftest.err >&5
31485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486   (exit $ac_status); } &&
31487          { ac_try='test -z "$ac_c_werror_flag"
31488                          || test ! -s conftest.err'
31489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490   (eval $ac_try) 2>&5
31491   ac_status=$?
31492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493   (exit $ac_status); }; } &&
31494          { ac_try='test -s conftest$ac_exeext'
31495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31496   (eval $ac_try) 2>&5
31497   ac_status=$?
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); }; }; then
31500   echo "$as_me:$LINENO: result: -lwrap" >&5
31501 echo "${ECHO_T}-lwrap" >&6
31502                 have_wrappers=yes
31503                 LIBS="$save_LIBS"
31504 else
31505   echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31507
31508
31509                                 LIBS="$LIBS -lnsl"
31510                 cat >conftest.$ac_ext <<_ACEOF
31511 /* confdefs.h.  */
31512 _ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h.  */
31516
31517 #include <tcpd.h>
31518 int allow_severity = 0;
31519 int deny_severity  = 0;
31520
31521 struct request_info *req;
31522
31523 int
31524 main ()
31525 {
31526
31527 hosts_access(req)
31528
31529   ;
31530   return 0;
31531 }
31532 _ACEOF
31533 rm -f conftest.$ac_objext conftest$ac_exeext
31534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31535   (eval $ac_link) 2>conftest.er1
31536   ac_status=$?
31537   grep -v '^ *+' conftest.er1 >conftest.err
31538   rm -f conftest.er1
31539   cat conftest.err >&5
31540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541   (exit $ac_status); } &&
31542          { ac_try='test -z "$ac_c_werror_flag"
31543                          || test ! -s conftest.err'
31544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31545   (eval $ac_try) 2>&5
31546   ac_status=$?
31547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548   (exit $ac_status); }; } &&
31549          { ac_try='test -s conftest$ac_exeext'
31550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551   (eval $ac_try) 2>&5
31552   ac_status=$?
31553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554   (exit $ac_status); }; }; then
31555   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31556 echo "${ECHO_T}-lwrap -lnsl" >&6
31557                 have_wrappers=yes
31558                 LIBS="$save_LIBS -lnsl"
31559 else
31560   echo "$as_me: failed program was:" >&5
31561 sed 's/^/| /' conftest.$ac_ext >&5
31562
31563
31564                 echo "$as_me:$LINENO: result: no" >&5
31565 echo "${ECHO_T}no" >&6
31566                 have_wrappers=no
31567                 LIBS=$save_LIBS
31568 fi
31569 rm -f conftest.err conftest.$ac_objext \
31570       conftest$ac_exeext conftest.$ac_ext
31571 fi
31572 rm -f conftest.err conftest.$ac_objext \
31573       conftest$ac_exeext conftest.$ac_ext
31574 else
31575   have_wrappers=no
31576 fi
31577
31578 done
31579
31580
31581         if test $have_wrappers = yes ; then
31582
31583 cat >>confdefs.h <<\_ACEOF
31584 #define HAVE_TCPD 1
31585 _ACEOF
31586
31587                 WRAP_LIBS="-lwrap"
31588         elif test $ol_enable_wrappers = yes ; then
31589                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31590 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31591    { (exit 1); exit 1; }; }
31592         else
31593                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31594 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31595                 WRAP_LIBS=""
31596         fi
31597 fi
31598
31599 if test $ol_enable_syslog != no ; then
31600         echo "$as_me:$LINENO: checking for openlog" >&5
31601 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31602 if test "${ac_cv_func_openlog+set}" = set; then
31603   echo $ECHO_N "(cached) $ECHO_C" >&6
31604 else
31605   cat >conftest.$ac_ext <<_ACEOF
31606 /* confdefs.h.  */
31607 _ACEOF
31608 cat confdefs.h >>conftest.$ac_ext
31609 cat >>conftest.$ac_ext <<_ACEOF
31610 /* end confdefs.h.  */
31611 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31613 #define openlog innocuous_openlog
31614
31615 /* System header to define __stub macros and hopefully few prototypes,
31616     which can conflict with char openlog (); below.
31617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31618     <limits.h> exists even on freestanding compilers.  */
31619
31620 #ifdef __STDC__
31621 # include <limits.h>
31622 #else
31623 # include <assert.h>
31624 #endif
31625
31626 #undef openlog
31627
31628 /* Override any gcc2 internal prototype to avoid an error.  */
31629 #ifdef __cplusplus
31630 extern "C"
31631 {
31632 #endif
31633 /* We use char because int might match the return type of a gcc2
31634    builtin and then its argument prototype would still apply.  */
31635 char openlog ();
31636 /* The GNU C library defines this for functions which it implements
31637     to always fail with ENOSYS.  Some functions are actually named
31638     something starting with __ and the normal name is an alias.  */
31639 #if defined (__stub_openlog) || defined (__stub___openlog)
31640 choke me
31641 #else
31642 char (*f) () = openlog;
31643 #endif
31644 #ifdef __cplusplus
31645 }
31646 #endif
31647
31648 int
31649 main ()
31650 {
31651 return f != openlog;
31652   ;
31653   return 0;
31654 }
31655 _ACEOF
31656 rm -f conftest.$ac_objext conftest$ac_exeext
31657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31658   (eval $ac_link) 2>conftest.er1
31659   ac_status=$?
31660   grep -v '^ *+' conftest.er1 >conftest.err
31661   rm -f conftest.er1
31662   cat conftest.err >&5
31663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664   (exit $ac_status); } &&
31665          { ac_try='test -z "$ac_c_werror_flag"
31666                          || test ! -s conftest.err'
31667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668   (eval $ac_try) 2>&5
31669   ac_status=$?
31670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671   (exit $ac_status); }; } &&
31672          { ac_try='test -s conftest$ac_exeext'
31673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31674   (eval $ac_try) 2>&5
31675   ac_status=$?
31676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677   (exit $ac_status); }; }; then
31678   ac_cv_func_openlog=yes
31679 else
31680   echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31682
31683 ac_cv_func_openlog=no
31684 fi
31685 rm -f conftest.err conftest.$ac_objext \
31686       conftest$ac_exeext conftest.$ac_ext
31687 fi
31688 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31689 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31690
31691         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31692                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31693 echo "$as_me: error: could not find syslog" >&2;}
31694    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31695         fi
31696         ol_enable_syslog=$ac_cv_func_openlog
31697 fi
31698
31699 ol_link_sql=no
31700 if test $ol_enable_sql != no ; then
31701
31702
31703 for ac_header in sql.h sqlext.h
31704 do
31705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31707   echo "$as_me:$LINENO: checking for $ac_header" >&5
31708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31710   echo $ECHO_N "(cached) $ECHO_C" >&6
31711 fi
31712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31714 else
31715   # Is the header compilable?
31716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31718 cat >conftest.$ac_ext <<_ACEOF
31719 /* confdefs.h.  */
31720 _ACEOF
31721 cat confdefs.h >>conftest.$ac_ext
31722 cat >>conftest.$ac_ext <<_ACEOF
31723 /* end confdefs.h.  */
31724 $ac_includes_default
31725 #include <$ac_header>
31726 _ACEOF
31727 rm -f conftest.$ac_objext
31728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31729   (eval $ac_compile) 2>conftest.er1
31730   ac_status=$?
31731   grep -v '^ *+' conftest.er1 >conftest.err
31732   rm -f conftest.er1
31733   cat conftest.err >&5
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); } &&
31736          { ac_try='test -z "$ac_c_werror_flag"
31737                          || test ! -s conftest.err'
31738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31739   (eval $ac_try) 2>&5
31740   ac_status=$?
31741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742   (exit $ac_status); }; } &&
31743          { ac_try='test -s conftest.$ac_objext'
31744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31745   (eval $ac_try) 2>&5
31746   ac_status=$?
31747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748   (exit $ac_status); }; }; then
31749   ac_header_compiler=yes
31750 else
31751   echo "$as_me: failed program was:" >&5
31752 sed 's/^/| /' conftest.$ac_ext >&5
31753
31754 ac_header_compiler=no
31755 fi
31756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31758 echo "${ECHO_T}$ac_header_compiler" >&6
31759
31760 # Is the header present?
31761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31763 cat >conftest.$ac_ext <<_ACEOF
31764 /* confdefs.h.  */
31765 _ACEOF
31766 cat confdefs.h >>conftest.$ac_ext
31767 cat >>conftest.$ac_ext <<_ACEOF
31768 /* end confdefs.h.  */
31769 #include <$ac_header>
31770 _ACEOF
31771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31773   ac_status=$?
31774   grep -v '^ *+' conftest.er1 >conftest.err
31775   rm -f conftest.er1
31776   cat conftest.err >&5
31777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); } >/dev/null; then
31779   if test -s conftest.err; then
31780     ac_cpp_err=$ac_c_preproc_warn_flag
31781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31782   else
31783     ac_cpp_err=
31784   fi
31785 else
31786   ac_cpp_err=yes
31787 fi
31788 if test -z "$ac_cpp_err"; then
31789   ac_header_preproc=yes
31790 else
31791   echo "$as_me: failed program was:" >&5
31792 sed 's/^/| /' conftest.$ac_ext >&5
31793
31794   ac_header_preproc=no
31795 fi
31796 rm -f conftest.err conftest.$ac_ext
31797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31798 echo "${ECHO_T}$ac_header_preproc" >&6
31799
31800 # So?  What about this header?
31801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31802   yes:no: )
31803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31807     ac_header_preproc=yes
31808     ;;
31809   no:yes:* )
31810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31822     (
31823       cat <<\_ASBOX
31824 ## --------------------------------------------- ##
31825 ## Report this to <http://www.openldap.org/its/> ##
31826 ## --------------------------------------------- ##
31827 _ASBOX
31828     ) |
31829       sed "s/^/$as_me: WARNING:     /" >&2
31830     ;;
31831 esac
31832 echo "$as_me:$LINENO: checking for $ac_header" >&5
31833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31835   echo $ECHO_N "(cached) $ECHO_C" >&6
31836 else
31837   eval "$as_ac_Header=\$ac_header_preproc"
31838 fi
31839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31841
31842 fi
31843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31844   cat >>confdefs.h <<_ACEOF
31845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31846 _ACEOF
31847
31848 else
31849
31850                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31851 echo "$as_me: error: could not locate SQL headers" >&2;}
31852    { (exit 1); exit 1; }; }
31853
31854 fi
31855
31856 done
31857
31858
31859         sql_LIBS="$LIBS"
31860         LIBS="$LTHREAD_LIBS"
31861
31862         if test $ol_with_odbc = auto ; then
31863                 ol_with_odbc="iodbc unixodbc"
31864         fi
31865
31866         for odbc in $ol_with_odbc ; do
31867                 if test $ol_link_sql = no ; then
31868                         case $odbc in
31869                         iodbc)
31870                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31871 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31872 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31873   echo $ECHO_N "(cached) $ECHO_C" >&6
31874 else
31875   ac_check_lib_save_LIBS=$LIBS
31876 LIBS="-liodbc  $LIBS"
31877 cat >conftest.$ac_ext <<_ACEOF
31878 /* confdefs.h.  */
31879 _ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h.  */
31883
31884 /* Override any gcc2 internal prototype to avoid an error.  */
31885 #ifdef __cplusplus
31886 extern "C"
31887 #endif
31888 /* We use char because int might match the return type of a gcc2
31889    builtin and then its argument prototype would still apply.  */
31890 char SQLDriverConnect ();
31891 int
31892 main ()
31893 {
31894 SQLDriverConnect ();
31895   ;
31896   return 0;
31897 }
31898 _ACEOF
31899 rm -f conftest.$ac_objext conftest$ac_exeext
31900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31901   (eval $ac_link) 2>conftest.er1
31902   ac_status=$?
31903   grep -v '^ *+' conftest.er1 >conftest.err
31904   rm -f conftest.er1
31905   cat conftest.err >&5
31906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907   (exit $ac_status); } &&
31908          { ac_try='test -z "$ac_c_werror_flag"
31909                          || test ! -s conftest.err'
31910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911   (eval $ac_try) 2>&5
31912   ac_status=$?
31913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914   (exit $ac_status); }; } &&
31915          { ac_try='test -s conftest$ac_exeext'
31916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31917   (eval $ac_try) 2>&5
31918   ac_status=$?
31919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920   (exit $ac_status); }; }; then
31921   ac_cv_lib_iodbc_SQLDriverConnect=yes
31922 else
31923   echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31925
31926 ac_cv_lib_iodbc_SQLDriverConnect=no
31927 fi
31928 rm -f conftest.err conftest.$ac_objext \
31929       conftest$ac_exeext conftest.$ac_ext
31930 LIBS=$ac_check_lib_save_LIBS
31931 fi
31932 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31933 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31934 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31935   have_iodbc=yes
31936 else
31937   have_iodbc=no
31938 fi
31939
31940                                 if test $have_iodbc = yes ; then
31941                                         ol_link_sql="-liodbc"
31942                                 fi
31943                                 ;;
31944
31945                         unixodbc)
31946                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31947 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31948 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31949   echo $ECHO_N "(cached) $ECHO_C" >&6
31950 else
31951   ac_check_lib_save_LIBS=$LIBS
31952 LIBS="-lodbc  $LIBS"
31953 cat >conftest.$ac_ext <<_ACEOF
31954 /* confdefs.h.  */
31955 _ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h.  */
31959
31960 /* Override any gcc2 internal prototype to avoid an error.  */
31961 #ifdef __cplusplus
31962 extern "C"
31963 #endif
31964 /* We use char because int might match the return type of a gcc2
31965    builtin and then its argument prototype would still apply.  */
31966 char SQLDriverConnect ();
31967 int
31968 main ()
31969 {
31970 SQLDriverConnect ();
31971   ;
31972   return 0;
31973 }
31974 _ACEOF
31975 rm -f conftest.$ac_objext conftest$ac_exeext
31976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31977   (eval $ac_link) 2>conftest.er1
31978   ac_status=$?
31979   grep -v '^ *+' conftest.er1 >conftest.err
31980   rm -f conftest.er1
31981   cat conftest.err >&5
31982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983   (exit $ac_status); } &&
31984          { ac_try='test -z "$ac_c_werror_flag"
31985                          || test ! -s conftest.err'
31986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987   (eval $ac_try) 2>&5
31988   ac_status=$?
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); }; } &&
31991          { ac_try='test -s conftest$ac_exeext'
31992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31993   (eval $ac_try) 2>&5
31994   ac_status=$?
31995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996   (exit $ac_status); }; }; then
31997   ac_cv_lib_odbc_SQLDriverConnect=yes
31998 else
31999   echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32001
32002 ac_cv_lib_odbc_SQLDriverConnect=no
32003 fi
32004 rm -f conftest.err conftest.$ac_objext \
32005       conftest$ac_exeext conftest.$ac_ext
32006 LIBS=$ac_check_lib_save_LIBS
32007 fi
32008 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32009 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32010 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32011   have_odbc=yes
32012 else
32013   have_odbc=no
32014 fi
32015
32016                                 if test $have_odbc = yes ; then
32017                                         ol_link_sql="-lodbc"
32018                                 fi
32019                                 ;;
32020
32021                         *)
32022                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32023 echo "$as_me: error: unknown ODBC library" >&2;}
32024    { (exit 1); exit 1; }; }
32025                                 ;;
32026                         esac
32027                 fi
32028         done
32029
32030         LIBS="$sql_LIBS"
32031
32032         if test $ol_link_sql != no ; then
32033                 SLAPD_SQL_LIBS="$ol_link_sql"
32034
32035         elif test $ol_enable_sql != auto ; then
32036                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32037 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32038    { (exit 1); exit 1; }; }
32039         fi
32040 fi
32041
32042 ol_icu=no
32043
32044 for ac_header in unicode/utypes.h
32045 do
32046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32048   echo "$as_me:$LINENO: checking for $ac_header" >&5
32049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32051   echo $ECHO_N "(cached) $ECHO_C" >&6
32052 fi
32053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32055 else
32056   # Is the header compilable?
32057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32059 cat >conftest.$ac_ext <<_ACEOF
32060 /* confdefs.h.  */
32061 _ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h.  */
32065 $ac_includes_default
32066 #include <$ac_header>
32067 _ACEOF
32068 rm -f conftest.$ac_objext
32069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32070   (eval $ac_compile) 2>conftest.er1
32071   ac_status=$?
32072   grep -v '^ *+' conftest.er1 >conftest.err
32073   rm -f conftest.er1
32074   cat conftest.err >&5
32075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076   (exit $ac_status); } &&
32077          { ac_try='test -z "$ac_c_werror_flag"
32078                          || test ! -s conftest.err'
32079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080   (eval $ac_try) 2>&5
32081   ac_status=$?
32082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083   (exit $ac_status); }; } &&
32084          { ac_try='test -s conftest.$ac_objext'
32085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086   (eval $ac_try) 2>&5
32087   ac_status=$?
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); }; }; then
32090   ac_header_compiler=yes
32091 else
32092   echo "$as_me: failed program was:" >&5
32093 sed 's/^/| /' conftest.$ac_ext >&5
32094
32095 ac_header_compiler=no
32096 fi
32097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32099 echo "${ECHO_T}$ac_header_compiler" >&6
32100
32101 # Is the header present?
32102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32104 cat >conftest.$ac_ext <<_ACEOF
32105 /* confdefs.h.  */
32106 _ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h.  */
32110 #include <$ac_header>
32111 _ACEOF
32112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32114   ac_status=$?
32115   grep -v '^ *+' conftest.er1 >conftest.err
32116   rm -f conftest.er1
32117   cat conftest.err >&5
32118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119   (exit $ac_status); } >/dev/null; then
32120   if test -s conftest.err; then
32121     ac_cpp_err=$ac_c_preproc_warn_flag
32122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32123   else
32124     ac_cpp_err=
32125   fi
32126 else
32127   ac_cpp_err=yes
32128 fi
32129 if test -z "$ac_cpp_err"; then
32130   ac_header_preproc=yes
32131 else
32132   echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32134
32135   ac_header_preproc=no
32136 fi
32137 rm -f conftest.err conftest.$ac_ext
32138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32139 echo "${ECHO_T}$ac_header_preproc" >&6
32140
32141 # So?  What about this header?
32142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32143   yes:no: )
32144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32148     ac_header_preproc=yes
32149     ;;
32150   no:yes:* )
32151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32163     (
32164       cat <<\_ASBOX
32165 ## --------------------------------------------- ##
32166 ## Report this to <http://www.openldap.org/its/> ##
32167 ## --------------------------------------------- ##
32168 _ASBOX
32169     ) |
32170       sed "s/^/$as_me: WARNING:     /" >&2
32171     ;;
32172 esac
32173 echo "$as_me:$LINENO: checking for $ac_header" >&5
32174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32176   echo $ECHO_N "(cached) $ECHO_C" >&6
32177 else
32178   eval "$as_ac_Header=\$ac_header_preproc"
32179 fi
32180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32182
32183 fi
32184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32185   cat >>confdefs.h <<_ACEOF
32186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32187 _ACEOF
32188
32189 fi
32190
32191 done
32192
32193 if test $ac_cv_header_unicode_utypes_h = yes ; then
32194                 OL_ICULIBS="-licuuc -licudata"
32195
32196         echo "$as_me:$LINENO: checking for ICU libraries" >&5
32197 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32198 if test "${ol_cv_lib_icu+set}" = set; then
32199   echo $ECHO_N "(cached) $ECHO_C" >&6
32200 else
32201
32202                 ol_LIBS="$LIBS"
32203                 LIBS="$OL_ICULIBS $LIBS"
32204                 cat >conftest.$ac_ext <<_ACEOF
32205 /* confdefs.h.  */
32206 _ACEOF
32207 cat confdefs.h >>conftest.$ac_ext
32208 cat >>conftest.$ac_ext <<_ACEOF
32209 /* end confdefs.h.  */
32210
32211 #include <unicode/utypes.h>
32212
32213 int
32214 main ()
32215 {
32216
32217 (void) u_errorName(0);
32218
32219   ;
32220   return 0;
32221 }
32222 _ACEOF
32223 rm -f conftest.$ac_objext conftest$ac_exeext
32224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32225   (eval $ac_link) 2>conftest.er1
32226   ac_status=$?
32227   grep -v '^ *+' conftest.er1 >conftest.err
32228   rm -f conftest.er1
32229   cat conftest.err >&5
32230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231   (exit $ac_status); } &&
32232          { ac_try='test -z "$ac_c_werror_flag"
32233                          || test ! -s conftest.err'
32234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32235   (eval $ac_try) 2>&5
32236   ac_status=$?
32237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238   (exit $ac_status); }; } &&
32239          { ac_try='test -s conftest$ac_exeext'
32240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32241   (eval $ac_try) 2>&5
32242   ac_status=$?
32243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); }; }; then
32245   ol_cv_lib_icu=yes
32246 else
32247   echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32249
32250 ol_cv_lib_icu=no
32251 fi
32252 rm -f conftest.err conftest.$ac_objext \
32253       conftest$ac_exeext conftest.$ac_ext
32254                 LIBS="$ol_LIBS"
32255
32256 fi
32257 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32258 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32259
32260         if test $ol_cv_lib_icu != no ; then
32261                 ol_icu="$OL_ICULIBS"
32262
32263 cat >>confdefs.h <<\_ACEOF
32264 #define HAVE_ICU 1
32265 _ACEOF
32266
32267         fi
32268 fi
32269
32270 if test "$ol_icu" = no ; then
32271         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32272 echo "$as_me: WARNING: ICU not available" >&2;}
32273 else
32274         ICU_LIBS="$ol_icu"
32275 fi
32276 WITH_SASL=no
32277 ol_link_sasl=no
32278 ol_link_spasswd=no
32279 if test $ol_with_cyrus_sasl != no ; then
32280
32281
32282 for ac_header in sasl/sasl.h sasl.h
32283 do
32284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32286   echo "$as_me:$LINENO: checking for $ac_header" >&5
32287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32289   echo $ECHO_N "(cached) $ECHO_C" >&6
32290 fi
32291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32293 else
32294   # Is the header compilable?
32295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32297 cat >conftest.$ac_ext <<_ACEOF
32298 /* confdefs.h.  */
32299 _ACEOF
32300 cat confdefs.h >>conftest.$ac_ext
32301 cat >>conftest.$ac_ext <<_ACEOF
32302 /* end confdefs.h.  */
32303 $ac_includes_default
32304 #include <$ac_header>
32305 _ACEOF
32306 rm -f conftest.$ac_objext
32307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32308   (eval $ac_compile) 2>conftest.er1
32309   ac_status=$?
32310   grep -v '^ *+' conftest.er1 >conftest.err
32311   rm -f conftest.er1
32312   cat conftest.err >&5
32313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314   (exit $ac_status); } &&
32315          { ac_try='test -z "$ac_c_werror_flag"
32316                          || test ! -s conftest.err'
32317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318   (eval $ac_try) 2>&5
32319   ac_status=$?
32320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321   (exit $ac_status); }; } &&
32322          { ac_try='test -s conftest.$ac_objext'
32323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324   (eval $ac_try) 2>&5
32325   ac_status=$?
32326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327   (exit $ac_status); }; }; then
32328   ac_header_compiler=yes
32329 else
32330   echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32332
32333 ac_header_compiler=no
32334 fi
32335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32337 echo "${ECHO_T}$ac_header_compiler" >&6
32338
32339 # Is the header present?
32340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32342 cat >conftest.$ac_ext <<_ACEOF
32343 /* confdefs.h.  */
32344 _ACEOF
32345 cat confdefs.h >>conftest.$ac_ext
32346 cat >>conftest.$ac_ext <<_ACEOF
32347 /* end confdefs.h.  */
32348 #include <$ac_header>
32349 _ACEOF
32350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32352   ac_status=$?
32353   grep -v '^ *+' conftest.er1 >conftest.err
32354   rm -f conftest.er1
32355   cat conftest.err >&5
32356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357   (exit $ac_status); } >/dev/null; then
32358   if test -s conftest.err; then
32359     ac_cpp_err=$ac_c_preproc_warn_flag
32360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32361   else
32362     ac_cpp_err=
32363   fi
32364 else
32365   ac_cpp_err=yes
32366 fi
32367 if test -z "$ac_cpp_err"; then
32368   ac_header_preproc=yes
32369 else
32370   echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32372
32373   ac_header_preproc=no
32374 fi
32375 rm -f conftest.err conftest.$ac_ext
32376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32377 echo "${ECHO_T}$ac_header_preproc" >&6
32378
32379 # So?  What about this header?
32380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32381   yes:no: )
32382     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32386     ac_header_preproc=yes
32387     ;;
32388   no:yes:* )
32389     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32391     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32392 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32393     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32395     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32396 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32399     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32401     (
32402       cat <<\_ASBOX
32403 ## --------------------------------------------- ##
32404 ## Report this to <http://www.openldap.org/its/> ##
32405 ## --------------------------------------------- ##
32406 _ASBOX
32407     ) |
32408       sed "s/^/$as_me: WARNING:     /" >&2
32409     ;;
32410 esac
32411 echo "$as_me:$LINENO: checking for $ac_header" >&5
32412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32414   echo $ECHO_N "(cached) $ECHO_C" >&6
32415 else
32416   eval "$as_ac_Header=\$ac_header_preproc"
32417 fi
32418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32420
32421 fi
32422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32423   cat >>confdefs.h <<_ACEOF
32424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32425 _ACEOF
32426
32427 fi
32428
32429 done
32430
32431
32432         if test $ac_cv_header_sasl_sasl_h = yes ||
32433            test $ac_cv_header_sasl_h = yes; then
32434                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32435 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32436 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32437   echo $ECHO_N "(cached) $ECHO_C" >&6
32438 else
32439   ac_check_lib_save_LIBS=$LIBS
32440 LIBS="-lsasl2  $LIBS"
32441 cat >conftest.$ac_ext <<_ACEOF
32442 /* confdefs.h.  */
32443 _ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h.  */
32447
32448 /* Override any gcc2 internal prototype to avoid an error.  */
32449 #ifdef __cplusplus
32450 extern "C"
32451 #endif
32452 /* We use char because int might match the return type of a gcc2
32453    builtin and then its argument prototype would still apply.  */
32454 char sasl_client_init ();
32455 int
32456 main ()
32457 {
32458 sasl_client_init ();
32459   ;
32460   return 0;
32461 }
32462 _ACEOF
32463 rm -f conftest.$ac_objext conftest$ac_exeext
32464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32465   (eval $ac_link) 2>conftest.er1
32466   ac_status=$?
32467   grep -v '^ *+' conftest.er1 >conftest.err
32468   rm -f conftest.er1
32469   cat conftest.err >&5
32470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471   (exit $ac_status); } &&
32472          { ac_try='test -z "$ac_c_werror_flag"
32473                          || test ! -s conftest.err'
32474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475   (eval $ac_try) 2>&5
32476   ac_status=$?
32477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478   (exit $ac_status); }; } &&
32479          { ac_try='test -s conftest$ac_exeext'
32480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32481   (eval $ac_try) 2>&5
32482   ac_status=$?
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); }; }; then
32485   ac_cv_lib_sasl2_sasl_client_init=yes
32486 else
32487   echo "$as_me: failed program was:" >&5
32488 sed 's/^/| /' conftest.$ac_ext >&5
32489
32490 ac_cv_lib_sasl2_sasl_client_init=no
32491 fi
32492 rm -f conftest.err conftest.$ac_objext \
32493       conftest$ac_exeext conftest.$ac_ext
32494 LIBS=$ac_check_lib_save_LIBS
32495 fi
32496 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32497 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32498 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32499   ol_link_sasl="-lsasl2"
32500 else
32501   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32502 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32503 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32504   echo $ECHO_N "(cached) $ECHO_C" >&6
32505 else
32506   ac_check_lib_save_LIBS=$LIBS
32507 LIBS="-lsasl  $LIBS"
32508 cat >conftest.$ac_ext <<_ACEOF
32509 /* confdefs.h.  */
32510 _ACEOF
32511 cat confdefs.h >>conftest.$ac_ext
32512 cat >>conftest.$ac_ext <<_ACEOF
32513 /* end confdefs.h.  */
32514
32515 /* Override any gcc2 internal prototype to avoid an error.  */
32516 #ifdef __cplusplus
32517 extern "C"
32518 #endif
32519 /* We use char because int might match the return type of a gcc2
32520    builtin and then its argument prototype would still apply.  */
32521 char sasl_client_init ();
32522 int
32523 main ()
32524 {
32525 sasl_client_init ();
32526   ;
32527   return 0;
32528 }
32529 _ACEOF
32530 rm -f conftest.$ac_objext conftest$ac_exeext
32531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32532   (eval $ac_link) 2>conftest.er1
32533   ac_status=$?
32534   grep -v '^ *+' conftest.er1 >conftest.err
32535   rm -f conftest.er1
32536   cat conftest.err >&5
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } &&
32539          { ac_try='test -z "$ac_c_werror_flag"
32540                          || test ! -s conftest.err'
32541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542   (eval $ac_try) 2>&5
32543   ac_status=$?
32544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545   (exit $ac_status); }; } &&
32546          { ac_try='test -s conftest$ac_exeext'
32547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548   (eval $ac_try) 2>&5
32549   ac_status=$?
32550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551   (exit $ac_status); }; }; then
32552   ac_cv_lib_sasl_sasl_client_init=yes
32553 else
32554   echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.$ac_ext >&5
32556
32557 ac_cv_lib_sasl_sasl_client_init=no
32558 fi
32559 rm -f conftest.err conftest.$ac_objext \
32560       conftest$ac_exeext conftest.$ac_ext
32561 LIBS=$ac_check_lib_save_LIBS
32562 fi
32563 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32564 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32565 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32566   ol_link_sasl="-lsasl"
32567 fi
32568
32569 fi
32570
32571         fi
32572
32573         if test $ol_link_sasl = no ; then
32574                 if test $ol_with_cyrus_sasl != auto ; then
32575                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32576 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32577    { (exit 1); exit 1; }; }
32578                 else
32579                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32580 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32581                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32582 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32583                         if test $ol_link_tls = no ; then
32584                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32585 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32586                         fi
32587                 fi
32588         else
32589                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32590 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32591 if test "${ol_cv_sasl_compat+set}" = set; then
32592   echo $ECHO_N "(cached) $ECHO_C" >&6
32593 else
32594
32595         cat >conftest.$ac_ext <<_ACEOF
32596 /* confdefs.h.  */
32597 _ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h.  */
32601
32602 #ifdef HAVE_SASL_SASL_H
32603 #include <sasl/sasl.h>
32604 #else
32605 #include <sasl.h>
32606 #endif
32607
32608 /* Require 2.1.15+ */
32609 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32610         char *__sasl_compat = "2.2+ or better okay (we guess)";
32611 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32612         && SASL_VERSION_STEP >=15
32613         char *__sasl_compat = "2.1.15+ or better okay";
32614 #endif
32615
32616 _ACEOF
32617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32618   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32619   ol_cv_sasl_compat=yes
32620 else
32621   ol_cv_sasl_compat=no
32622 fi
32623 rm -f conftest*
32624
32625 fi
32626 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32627 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32628
32629                 if test $ol_cv_sasl_compat = no ; then
32630                         ol_link_sasl=no
32631                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32632 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32633    { (exit 1); exit 1; }; }
32634                 fi
32635
32636
32637 cat >>confdefs.h <<\_ACEOF
32638 #define HAVE_CYRUS_SASL 1
32639 _ACEOF
32640
32641                 SASL_LIBS="$ol_link_sasl"
32642                 if test $ol_enable_spasswd != no ; then
32643                         ol_link_spasswd=yes
32644                 fi
32645
32646                 ac_save_LIBS="$LIBS"
32647                 LIBS="$LIBS $ol_link_sasl"
32648                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32649 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32650 if test "${ac_cv_func_sasl_version+set}" = set; then
32651   echo $ECHO_N "(cached) $ECHO_C" >&6
32652 else
32653   cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32661 #define sasl_version innocuous_sasl_version
32662
32663 /* System header to define __stub macros and hopefully few prototypes,
32664     which can conflict with char sasl_version (); below.
32665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32666     <limits.h> exists even on freestanding compilers.  */
32667
32668 #ifdef __STDC__
32669 # include <limits.h>
32670 #else
32671 # include <assert.h>
32672 #endif
32673
32674 #undef sasl_version
32675
32676 /* Override any gcc2 internal prototype to avoid an error.  */
32677 #ifdef __cplusplus
32678 extern "C"
32679 {
32680 #endif
32681 /* We use char because int might match the return type of a gcc2
32682    builtin and then its argument prototype would still apply.  */
32683 char sasl_version ();
32684 /* The GNU C library defines this for functions which it implements
32685     to always fail with ENOSYS.  Some functions are actually named
32686     something starting with __ and the normal name is an alias.  */
32687 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32688 choke me
32689 #else
32690 char (*f) () = sasl_version;
32691 #endif
32692 #ifdef __cplusplus
32693 }
32694 #endif
32695
32696 int
32697 main ()
32698 {
32699 return f != sasl_version;
32700   ;
32701   return 0;
32702 }
32703 _ACEOF
32704 rm -f conftest.$ac_objext conftest$ac_exeext
32705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32706   (eval $ac_link) 2>conftest.er1
32707   ac_status=$?
32708   grep -v '^ *+' conftest.er1 >conftest.err
32709   rm -f conftest.er1
32710   cat conftest.err >&5
32711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712   (exit $ac_status); } &&
32713          { ac_try='test -z "$ac_c_werror_flag"
32714                          || test ! -s conftest.err'
32715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32716   (eval $ac_try) 2>&5
32717   ac_status=$?
32718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719   (exit $ac_status); }; } &&
32720          { ac_try='test -s conftest$ac_exeext'
32721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32722   (eval $ac_try) 2>&5
32723   ac_status=$?
32724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725   (exit $ac_status); }; }; then
32726   ac_cv_func_sasl_version=yes
32727 else
32728   echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32730
32731 ac_cv_func_sasl_version=no
32732 fi
32733 rm -f conftest.err conftest.$ac_objext \
32734       conftest$ac_exeext conftest.$ac_ext
32735 fi
32736 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32737 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32738 if test $ac_cv_func_sasl_version = yes; then
32739
32740 cat >>confdefs.h <<\_ACEOF
32741 #define HAVE_SASL_VERSION 1
32742 _ACEOF
32743
32744 fi
32745
32746                 LIBS="$ac_save_LIBS"
32747
32748                 WITH_SASL=yes
32749         fi
32750
32751 else
32752         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32753 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32754         if test $ol_link_tls = no ; then
32755                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32756 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32757         fi
32758 fi
32759
32760 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32761         dev=no
32762         if test -r /dev/urandom ; then
32763                 dev="/dev/urandom";
32764         elif test -r /idev/urandom ; then
32765                 dev="/idev/urandom";
32766         elif test -r /dev/srandom ; then
32767                 dev="/dev/srandom";
32768         elif test -r /dev/random ; then
32769                 dev="/dev/random";
32770         elif test -r /idev/random ; then
32771                 dev="/idev/random";
32772         fi
32773
32774         if test $dev != no ; then
32775
32776 cat >>confdefs.h <<_ACEOF
32777 #define URANDOM_DEVICE "$dev"
32778 _ACEOF
32779
32780         fi
32781 fi
32782
32783 ol_link_fetch=no
32784 if test $ol_with_fetch != no ; then
32785         ol_LIBS=$LIBS
32786 LIBS="-lfetch -lcom_err $LIBS"
32787 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32788 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32789 if test "${ol_cv_lib_fetch+set}" = set; then
32790   echo $ECHO_N "(cached) $ECHO_C" >&6
32791 else
32792
32793         cat >conftest.$ac_ext <<_ACEOF
32794 /* confdefs.h.  */
32795 _ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h.  */
32799
32800 #include <sys/param.h>
32801 #include <stdio.h>
32802 #include <fetch.h>
32803 int
32804 main ()
32805 {
32806 struct url *u = fetchParseURL("file:///");
32807   ;
32808   return 0;
32809 }
32810 _ACEOF
32811 rm -f conftest.$ac_objext conftest$ac_exeext
32812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32813   (eval $ac_link) 2>conftest.er1
32814   ac_status=$?
32815   grep -v '^ *+' conftest.er1 >conftest.err
32816   rm -f conftest.er1
32817   cat conftest.err >&5
32818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819   (exit $ac_status); } &&
32820          { ac_try='test -z "$ac_c_werror_flag"
32821                          || test ! -s conftest.err'
32822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32823   (eval $ac_try) 2>&5
32824   ac_status=$?
32825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826   (exit $ac_status); }; } &&
32827          { ac_try='test -s conftest$ac_exeext'
32828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32829   (eval $ac_try) 2>&5
32830   ac_status=$?
32831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832   (exit $ac_status); }; }; then
32833   ol_cv_lib_fetch=yes
32834 else
32835   echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32837
32838 ol_cv_lib_fetch=no
32839 fi
32840 rm -f conftest.err conftest.$ac_objext \
32841       conftest$ac_exeext conftest.$ac_ext
32842 fi
32843 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32844 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32845 LIBS=$ol_LIBS
32846 if test $ol_cv_lib_fetch != no ; then
32847         ol_link_fetch="-lfetch -lcom_err"
32848
32849 cat >>confdefs.h <<\_ACEOF
32850 #define HAVE_FETCH 1
32851 _ACEOF
32852
32853 fi
32854
32855
32856         if test $ol_cv_lib_fetch != no ; then
32857                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32858                 ol_link_fetch=freebsd
32859
32860         elif test $ol_with_fetch != auto ; then
32861                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32862 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32863    { (exit 1); exit 1; }; }
32864         fi
32865 fi
32866
32867 if test $ol_enable_crypt != no ; then
32868         save_LIBS="$LIBS"
32869         LIBS="$TLS_LIBS $LIBS"
32870
32871         echo "$as_me:$LINENO: checking for crypt" >&5
32872 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32873 if test "${ac_cv_func_crypt+set}" = set; then
32874   echo $ECHO_N "(cached) $ECHO_C" >&6
32875 else
32876   cat >conftest.$ac_ext <<_ACEOF
32877 /* confdefs.h.  */
32878 _ACEOF
32879 cat confdefs.h >>conftest.$ac_ext
32880 cat >>conftest.$ac_ext <<_ACEOF
32881 /* end confdefs.h.  */
32882 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32884 #define crypt innocuous_crypt
32885
32886 /* System header to define __stub macros and hopefully few prototypes,
32887     which can conflict with char crypt (); below.
32888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32889     <limits.h> exists even on freestanding compilers.  */
32890
32891 #ifdef __STDC__
32892 # include <limits.h>
32893 #else
32894 # include <assert.h>
32895 #endif
32896
32897 #undef crypt
32898
32899 /* Override any gcc2 internal prototype to avoid an error.  */
32900 #ifdef __cplusplus
32901 extern "C"
32902 {
32903 #endif
32904 /* We use char because int might match the return type of a gcc2
32905    builtin and then its argument prototype would still apply.  */
32906 char crypt ();
32907 /* The GNU C library defines this for functions which it implements
32908     to always fail with ENOSYS.  Some functions are actually named
32909     something starting with __ and the normal name is an alias.  */
32910 #if defined (__stub_crypt) || defined (__stub___crypt)
32911 choke me
32912 #else
32913 char (*f) () = crypt;
32914 #endif
32915 #ifdef __cplusplus
32916 }
32917 #endif
32918
32919 int
32920 main ()
32921 {
32922 return f != crypt;
32923   ;
32924   return 0;
32925 }
32926 _ACEOF
32927 rm -f conftest.$ac_objext conftest$ac_exeext
32928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32929   (eval $ac_link) 2>conftest.er1
32930   ac_status=$?
32931   grep -v '^ *+' conftest.er1 >conftest.err
32932   rm -f conftest.er1
32933   cat conftest.err >&5
32934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935   (exit $ac_status); } &&
32936          { ac_try='test -z "$ac_c_werror_flag"
32937                          || test ! -s conftest.err'
32938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32939   (eval $ac_try) 2>&5
32940   ac_status=$?
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); }; } &&
32943          { ac_try='test -s conftest$ac_exeext'
32944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32945   (eval $ac_try) 2>&5
32946   ac_status=$?
32947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948   (exit $ac_status); }; }; then
32949   ac_cv_func_crypt=yes
32950 else
32951   echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.$ac_ext >&5
32953
32954 ac_cv_func_crypt=no
32955 fi
32956 rm -f conftest.err conftest.$ac_objext \
32957       conftest$ac_exeext conftest.$ac_ext
32958 fi
32959 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32960 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32961 if test $ac_cv_func_crypt = yes; then
32962   have_crypt=yes
32963 else
32964
32965                 LIBS="$save_LIBS"
32966                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32967 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32968 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32969   echo $ECHO_N "(cached) $ECHO_C" >&6
32970 else
32971   ac_check_lib_save_LIBS=$LIBS
32972 LIBS="-lcrypt  $LIBS"
32973 cat >conftest.$ac_ext <<_ACEOF
32974 /* confdefs.h.  */
32975 _ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h.  */
32979
32980 /* Override any gcc2 internal prototype to avoid an error.  */
32981 #ifdef __cplusplus
32982 extern "C"
32983 #endif
32984 /* We use char because int might match the return type of a gcc2
32985    builtin and then its argument prototype would still apply.  */
32986 char crypt ();
32987 int
32988 main ()
32989 {
32990 crypt ();
32991   ;
32992   return 0;
32993 }
32994 _ACEOF
32995 rm -f conftest.$ac_objext conftest$ac_exeext
32996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32997   (eval $ac_link) 2>conftest.er1
32998   ac_status=$?
32999   grep -v '^ *+' conftest.er1 >conftest.err
33000   rm -f conftest.er1
33001   cat conftest.err >&5
33002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003   (exit $ac_status); } &&
33004          { ac_try='test -z "$ac_c_werror_flag"
33005                          || test ! -s conftest.err'
33006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007   (eval $ac_try) 2>&5
33008   ac_status=$?
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); }; } &&
33011          { ac_try='test -s conftest$ac_exeext'
33012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013   (eval $ac_try) 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; }; then
33017   ac_cv_lib_crypt_crypt=yes
33018 else
33019   echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33021
33022 ac_cv_lib_crypt_crypt=no
33023 fi
33024 rm -f conftest.err conftest.$ac_objext \
33025       conftest$ac_exeext conftest.$ac_ext
33026 LIBS=$ac_check_lib_save_LIBS
33027 fi
33028 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33029 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33030 if test $ac_cv_lib_crypt_crypt = yes; then
33031   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33032                         have_crypt=yes
33033 else
33034   have_crypt=no
33035 fi
33036
33037 fi
33038
33039
33040         LIBS="$save_LIBS"
33041
33042         if test $have_crypt = yes ; then
33043
33044 cat >>confdefs.h <<\_ACEOF
33045 #define HAVE_CRYPT 1
33046 _ACEOF
33047
33048         else
33049                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33050 echo "$as_me: WARNING: could not find crypt" >&2;}
33051                 if test $ol_enable_crypt = yes ; then
33052                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33053 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33054    { (exit 1); exit 1; }; }
33055                 fi
33056
33057                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33058 echo "$as_me: WARNING: disabling crypt support" >&2;}
33059                 ol_enable_crypt=no
33060         fi
33061 fi
33062
33063 if test $ol_enable_proctitle != no ; then
33064         echo "$as_me:$LINENO: checking for setproctitle" >&5
33065 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33066 if test "${ac_cv_func_setproctitle+set}" = set; then
33067   echo $ECHO_N "(cached) $ECHO_C" >&6
33068 else
33069   cat >conftest.$ac_ext <<_ACEOF
33070 /* confdefs.h.  */
33071 _ACEOF
33072 cat confdefs.h >>conftest.$ac_ext
33073 cat >>conftest.$ac_ext <<_ACEOF
33074 /* end confdefs.h.  */
33075 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33077 #define setproctitle innocuous_setproctitle
33078
33079 /* System header to define __stub macros and hopefully few prototypes,
33080     which can conflict with char setproctitle (); below.
33081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33082     <limits.h> exists even on freestanding compilers.  */
33083
33084 #ifdef __STDC__
33085 # include <limits.h>
33086 #else
33087 # include <assert.h>
33088 #endif
33089
33090 #undef setproctitle
33091
33092 /* Override any gcc2 internal prototype to avoid an error.  */
33093 #ifdef __cplusplus
33094 extern "C"
33095 {
33096 #endif
33097 /* We use char because int might match the return type of a gcc2
33098    builtin and then its argument prototype would still apply.  */
33099 char setproctitle ();
33100 /* The GNU C library defines this for functions which it implements
33101     to always fail with ENOSYS.  Some functions are actually named
33102     something starting with __ and the normal name is an alias.  */
33103 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33104 choke me
33105 #else
33106 char (*f) () = setproctitle;
33107 #endif
33108 #ifdef __cplusplus
33109 }
33110 #endif
33111
33112 int
33113 main ()
33114 {
33115 return f != setproctitle;
33116   ;
33117   return 0;
33118 }
33119 _ACEOF
33120 rm -f conftest.$ac_objext conftest$ac_exeext
33121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33122   (eval $ac_link) 2>conftest.er1
33123   ac_status=$?
33124   grep -v '^ *+' conftest.er1 >conftest.err
33125   rm -f conftest.er1
33126   cat conftest.err >&5
33127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); } &&
33129          { ac_try='test -z "$ac_c_werror_flag"
33130                          || test ! -s conftest.err'
33131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132   (eval $ac_try) 2>&5
33133   ac_status=$?
33134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135   (exit $ac_status); }; } &&
33136          { ac_try='test -s conftest$ac_exeext'
33137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138   (eval $ac_try) 2>&5
33139   ac_status=$?
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); }; }; then
33142   ac_cv_func_setproctitle=yes
33143 else
33144   echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147 ac_cv_func_setproctitle=no
33148 fi
33149 rm -f conftest.err conftest.$ac_objext \
33150       conftest$ac_exeext conftest.$ac_ext
33151 fi
33152 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33153 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33154 if test $ac_cv_func_setproctitle = yes; then
33155   have_setproctitle=yes
33156 else
33157
33158                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33159 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33160 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33161   echo $ECHO_N "(cached) $ECHO_C" >&6
33162 else
33163   ac_check_lib_save_LIBS=$LIBS
33164 LIBS="-lutil  $LIBS"
33165 cat >conftest.$ac_ext <<_ACEOF
33166 /* confdefs.h.  */
33167 _ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h.  */
33171
33172 /* Override any gcc2 internal prototype to avoid an error.  */
33173 #ifdef __cplusplus
33174 extern "C"
33175 #endif
33176 /* We use char because int might match the return type of a gcc2
33177    builtin and then its argument prototype would still apply.  */
33178 char setproctitle ();
33179 int
33180 main ()
33181 {
33182 setproctitle ();
33183   ;
33184   return 0;
33185 }
33186 _ACEOF
33187 rm -f conftest.$ac_objext conftest$ac_exeext
33188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33189   (eval $ac_link) 2>conftest.er1
33190   ac_status=$?
33191   grep -v '^ *+' conftest.er1 >conftest.err
33192   rm -f conftest.er1
33193   cat conftest.err >&5
33194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195   (exit $ac_status); } &&
33196          { ac_try='test -z "$ac_c_werror_flag"
33197                          || test ! -s conftest.err'
33198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33199   (eval $ac_try) 2>&5
33200   ac_status=$?
33201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202   (exit $ac_status); }; } &&
33203          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33209   ac_cv_lib_util_setproctitle=yes
33210 else
33211   echo "$as_me: failed program was:" >&5
33212 sed 's/^/| /' conftest.$ac_ext >&5
33213
33214 ac_cv_lib_util_setproctitle=no
33215 fi
33216 rm -f conftest.err conftest.$ac_objext \
33217       conftest$ac_exeext conftest.$ac_ext
33218 LIBS=$ac_check_lib_save_LIBS
33219 fi
33220 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33221 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33222 if test $ac_cv_lib_util_setproctitle = yes; then
33223   have_setproctitle=yes
33224                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
33225 else
33226   have_setproctitle=no
33227                         case $LIBOBJS in
33228     "setproctitle.$ac_objext"   | \
33229   *" setproctitle.$ac_objext"   | \
33230     "setproctitle.$ac_objext "* | \
33231   *" setproctitle.$ac_objext "* ) ;;
33232   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33233 esac
33234
33235                         LIBSRCS="$LIBSRCS setproctitle.c"
33236 fi
33237
33238 fi
33239
33240
33241         if test $have_setproctitle = yes ; then
33242
33243 cat >>confdefs.h <<\_ACEOF
33244 #define HAVE_SETPROCTITLE 1
33245 _ACEOF
33246
33247         fi
33248 fi
33249
33250 if test $ol_enable_slp != no ; then
33251
33252 for ac_header in slp.h
33253 do
33254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33256   echo "$as_me:$LINENO: checking for $ac_header" >&5
33257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33259   echo $ECHO_N "(cached) $ECHO_C" >&6
33260 fi
33261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33263 else
33264   # Is the header compilable?
33265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33267 cat >conftest.$ac_ext <<_ACEOF
33268 /* confdefs.h.  */
33269 _ACEOF
33270 cat confdefs.h >>conftest.$ac_ext
33271 cat >>conftest.$ac_ext <<_ACEOF
33272 /* end confdefs.h.  */
33273 $ac_includes_default
33274 #include <$ac_header>
33275 _ACEOF
33276 rm -f conftest.$ac_objext
33277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33278   (eval $ac_compile) 2>conftest.er1
33279   ac_status=$?
33280   grep -v '^ *+' conftest.er1 >conftest.err
33281   rm -f conftest.er1
33282   cat conftest.err >&5
33283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284   (exit $ac_status); } &&
33285          { ac_try='test -z "$ac_c_werror_flag"
33286                          || test ! -s conftest.err'
33287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288   (eval $ac_try) 2>&5
33289   ac_status=$?
33290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291   (exit $ac_status); }; } &&
33292          { ac_try='test -s conftest.$ac_objext'
33293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33294   (eval $ac_try) 2>&5
33295   ac_status=$?
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); }; }; then
33298   ac_header_compiler=yes
33299 else
33300   echo "$as_me: failed program was:" >&5
33301 sed 's/^/| /' conftest.$ac_ext >&5
33302
33303 ac_header_compiler=no
33304 fi
33305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33307 echo "${ECHO_T}$ac_header_compiler" >&6
33308
33309 # Is the header present?
33310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33312 cat >conftest.$ac_ext <<_ACEOF
33313 /* confdefs.h.  */
33314 _ACEOF
33315 cat confdefs.h >>conftest.$ac_ext
33316 cat >>conftest.$ac_ext <<_ACEOF
33317 /* end confdefs.h.  */
33318 #include <$ac_header>
33319 _ACEOF
33320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33322   ac_status=$?
33323   grep -v '^ *+' conftest.er1 >conftest.err
33324   rm -f conftest.er1
33325   cat conftest.err >&5
33326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327   (exit $ac_status); } >/dev/null; then
33328   if test -s conftest.err; then
33329     ac_cpp_err=$ac_c_preproc_warn_flag
33330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33331   else
33332     ac_cpp_err=
33333   fi
33334 else
33335   ac_cpp_err=yes
33336 fi
33337 if test -z "$ac_cpp_err"; then
33338   ac_header_preproc=yes
33339 else
33340   echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33342
33343   ac_header_preproc=no
33344 fi
33345 rm -f conftest.err conftest.$ac_ext
33346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33347 echo "${ECHO_T}$ac_header_preproc" >&6
33348
33349 # So?  What about this header?
33350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33351   yes:no: )
33352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33356     ac_header_preproc=yes
33357     ;;
33358   no:yes:* )
33359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33371     (
33372       cat <<\_ASBOX
33373 ## --------------------------------------------- ##
33374 ## Report this to <http://www.openldap.org/its/> ##
33375 ## --------------------------------------------- ##
33376 _ASBOX
33377     ) |
33378       sed "s/^/$as_me: WARNING:     /" >&2
33379     ;;
33380 esac
33381 echo "$as_me:$LINENO: checking for $ac_header" >&5
33382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33384   echo $ECHO_N "(cached) $ECHO_C" >&6
33385 else
33386   eval "$as_ac_Header=\$ac_header_preproc"
33387 fi
33388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33390
33391 fi
33392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33393   cat >>confdefs.h <<_ACEOF
33394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33395 _ACEOF
33396
33397 fi
33398
33399 done
33400
33401
33402         if test $ac_cv_header_slp_h = yes ; then
33403                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33404 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33405 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33406   echo $ECHO_N "(cached) $ECHO_C" >&6
33407 else
33408   ac_check_lib_save_LIBS=$LIBS
33409 LIBS="-lslp  $LIBS"
33410 cat >conftest.$ac_ext <<_ACEOF
33411 /* confdefs.h.  */
33412 _ACEOF
33413 cat confdefs.h >>conftest.$ac_ext
33414 cat >>conftest.$ac_ext <<_ACEOF
33415 /* end confdefs.h.  */
33416
33417 /* Override any gcc2 internal prototype to avoid an error.  */
33418 #ifdef __cplusplus
33419 extern "C"
33420 #endif
33421 /* We use char because int might match the return type of a gcc2
33422    builtin and then its argument prototype would still apply.  */
33423 char SLPOpen ();
33424 int
33425 main ()
33426 {
33427 SLPOpen ();
33428   ;
33429   return 0;
33430 }
33431 _ACEOF
33432 rm -f conftest.$ac_objext conftest$ac_exeext
33433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33434   (eval $ac_link) 2>conftest.er1
33435   ac_status=$?
33436   grep -v '^ *+' conftest.er1 >conftest.err
33437   rm -f conftest.er1
33438   cat conftest.err >&5
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); } &&
33441          { ac_try='test -z "$ac_c_werror_flag"
33442                          || test ! -s conftest.err'
33443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444   (eval $ac_try) 2>&5
33445   ac_status=$?
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); }; } &&
33448          { ac_try='test -s conftest$ac_exeext'
33449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450   (eval $ac_try) 2>&5
33451   ac_status=$?
33452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453   (exit $ac_status); }; }; then
33454   ac_cv_lib_slp_SLPOpen=yes
33455 else
33456   echo "$as_me: failed program was:" >&5
33457 sed 's/^/| /' conftest.$ac_ext >&5
33458
33459 ac_cv_lib_slp_SLPOpen=no
33460 fi
33461 rm -f conftest.err conftest.$ac_objext \
33462       conftest$ac_exeext conftest.$ac_ext
33463 LIBS=$ac_check_lib_save_LIBS
33464 fi
33465 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33466 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33467 if test $ac_cv_lib_slp_SLPOpen = yes; then
33468   have_slp=yes
33469 else
33470   have_slp=no
33471 fi
33472
33473                 if test $have_slp = yes ; then
33474
33475 cat >>confdefs.h <<\_ACEOF
33476 #define HAVE_SLP 1
33477 _ACEOF
33478
33479                         SLAPD_SLP_LIBS=-lslp
33480                 fi
33481
33482         elif test $ol_enable_slp = yes ; then
33483                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33484 echo "$as_me: error: SLP not found" >&2;}
33485    { (exit 1); exit 1; }; }
33486         fi
33487 fi
33488
33489
33490 echo "$as_me:$LINENO: checking for mode_t" >&5
33491 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33492 if test "${ac_cv_type_mode_t+set}" = set; then
33493   echo $ECHO_N "(cached) $ECHO_C" >&6
33494 else
33495   cat >conftest.$ac_ext <<_ACEOF
33496 /* confdefs.h.  */
33497 _ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h.  */
33501 $ac_includes_default
33502 int
33503 main ()
33504 {
33505 if ((mode_t *) 0)
33506   return 0;
33507 if (sizeof (mode_t))
33508   return 0;
33509   ;
33510   return 0;
33511 }
33512 _ACEOF
33513 rm -f conftest.$ac_objext
33514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33515   (eval $ac_compile) 2>conftest.er1
33516   ac_status=$?
33517   grep -v '^ *+' conftest.er1 >conftest.err
33518   rm -f conftest.er1
33519   cat conftest.err >&5
33520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521   (exit $ac_status); } &&
33522          { ac_try='test -z "$ac_c_werror_flag"
33523                          || test ! -s conftest.err'
33524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33525   (eval $ac_try) 2>&5
33526   ac_status=$?
33527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528   (exit $ac_status); }; } &&
33529          { ac_try='test -s conftest.$ac_objext'
33530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33531   (eval $ac_try) 2>&5
33532   ac_status=$?
33533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534   (exit $ac_status); }; }; then
33535   ac_cv_type_mode_t=yes
33536 else
33537   echo "$as_me: failed program was:" >&5
33538 sed 's/^/| /' conftest.$ac_ext >&5
33539
33540 ac_cv_type_mode_t=no
33541 fi
33542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33543 fi
33544 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33545 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33546 if test $ac_cv_type_mode_t = yes; then
33547   :
33548 else
33549
33550 cat >>confdefs.h <<_ACEOF
33551 #define mode_t int
33552 _ACEOF
33553
33554 fi
33555
33556 echo "$as_me:$LINENO: checking for off_t" >&5
33557 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33558 if test "${ac_cv_type_off_t+set}" = set; then
33559   echo $ECHO_N "(cached) $ECHO_C" >&6
33560 else
33561   cat >conftest.$ac_ext <<_ACEOF
33562 /* confdefs.h.  */
33563 _ACEOF
33564 cat confdefs.h >>conftest.$ac_ext
33565 cat >>conftest.$ac_ext <<_ACEOF
33566 /* end confdefs.h.  */
33567 $ac_includes_default
33568 int
33569 main ()
33570 {
33571 if ((off_t *) 0)
33572   return 0;
33573 if (sizeof (off_t))
33574   return 0;
33575   ;
33576   return 0;
33577 }
33578 _ACEOF
33579 rm -f conftest.$ac_objext
33580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33581   (eval $ac_compile) 2>conftest.er1
33582   ac_status=$?
33583   grep -v '^ *+' conftest.er1 >conftest.err
33584   rm -f conftest.er1
33585   cat conftest.err >&5
33586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587   (exit $ac_status); } &&
33588          { ac_try='test -z "$ac_c_werror_flag"
33589                          || test ! -s conftest.err'
33590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591   (eval $ac_try) 2>&5
33592   ac_status=$?
33593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594   (exit $ac_status); }; } &&
33595          { ac_try='test -s conftest.$ac_objext'
33596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33597   (eval $ac_try) 2>&5
33598   ac_status=$?
33599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600   (exit $ac_status); }; }; then
33601   ac_cv_type_off_t=yes
33602 else
33603   echo "$as_me: failed program was:" >&5
33604 sed 's/^/| /' conftest.$ac_ext >&5
33605
33606 ac_cv_type_off_t=no
33607 fi
33608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33609 fi
33610 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33611 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33612 if test $ac_cv_type_off_t = yes; then
33613   :
33614 else
33615
33616 cat >>confdefs.h <<_ACEOF
33617 #define off_t long
33618 _ACEOF
33619
33620 fi
33621
33622 echo "$as_me:$LINENO: checking for pid_t" >&5
33623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33624 if test "${ac_cv_type_pid_t+set}" = set; then
33625   echo $ECHO_N "(cached) $ECHO_C" >&6
33626 else
33627   cat >conftest.$ac_ext <<_ACEOF
33628 /* confdefs.h.  */
33629 _ACEOF
33630 cat confdefs.h >>conftest.$ac_ext
33631 cat >>conftest.$ac_ext <<_ACEOF
33632 /* end confdefs.h.  */
33633 $ac_includes_default
33634 int
33635 main ()
33636 {
33637 if ((pid_t *) 0)
33638   return 0;
33639 if (sizeof (pid_t))
33640   return 0;
33641   ;
33642   return 0;
33643 }
33644 _ACEOF
33645 rm -f conftest.$ac_objext
33646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33647   (eval $ac_compile) 2>conftest.er1
33648   ac_status=$?
33649   grep -v '^ *+' conftest.er1 >conftest.err
33650   rm -f conftest.er1
33651   cat conftest.err >&5
33652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653   (exit $ac_status); } &&
33654          { ac_try='test -z "$ac_c_werror_flag"
33655                          || test ! -s conftest.err'
33656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657   (eval $ac_try) 2>&5
33658   ac_status=$?
33659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660   (exit $ac_status); }; } &&
33661          { ac_try='test -s conftest.$ac_objext'
33662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663   (eval $ac_try) 2>&5
33664   ac_status=$?
33665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666   (exit $ac_status); }; }; then
33667   ac_cv_type_pid_t=yes
33668 else
33669   echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33671
33672 ac_cv_type_pid_t=no
33673 fi
33674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33675 fi
33676 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33678 if test $ac_cv_type_pid_t = yes; then
33679   :
33680 else
33681
33682 cat >>confdefs.h <<_ACEOF
33683 #define pid_t int
33684 _ACEOF
33685
33686 fi
33687
33688 echo "$as_me:$LINENO: checking for ssize_t" >&5
33689 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33690 if test "${ac_cv_type_ssize_t+set}" = set; then
33691   echo $ECHO_N "(cached) $ECHO_C" >&6
33692 else
33693   cat >conftest.$ac_ext <<_ACEOF
33694 /* confdefs.h.  */
33695 _ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h.  */
33699 $ac_includes_default
33700 int
33701 main ()
33702 {
33703 if ((ssize_t *) 0)
33704   return 0;
33705 if (sizeof (ssize_t))
33706   return 0;
33707   ;
33708   return 0;
33709 }
33710 _ACEOF
33711 rm -f conftest.$ac_objext
33712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33713   (eval $ac_compile) 2>conftest.er1
33714   ac_status=$?
33715   grep -v '^ *+' conftest.er1 >conftest.err
33716   rm -f conftest.er1
33717   cat conftest.err >&5
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); } &&
33720          { ac_try='test -z "$ac_c_werror_flag"
33721                          || test ! -s conftest.err'
33722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723   (eval $ac_try) 2>&5
33724   ac_status=$?
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); }; } &&
33727          { ac_try='test -s conftest.$ac_objext'
33728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729   (eval $ac_try) 2>&5
33730   ac_status=$?
33731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732   (exit $ac_status); }; }; then
33733   ac_cv_type_ssize_t=yes
33734 else
33735   echo "$as_me: failed program was:" >&5
33736 sed 's/^/| /' conftest.$ac_ext >&5
33737
33738 ac_cv_type_ssize_t=no
33739 fi
33740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33741 fi
33742 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33743 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33744 if test $ac_cv_type_ssize_t = yes; then
33745   :
33746 else
33747
33748 cat >>confdefs.h <<_ACEOF
33749 #define ssize_t signed int
33750 _ACEOF
33751
33752 fi
33753
33754 echo "$as_me:$LINENO: checking for caddr_t" >&5
33755 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33756 if test "${ac_cv_type_caddr_t+set}" = set; then
33757   echo $ECHO_N "(cached) $ECHO_C" >&6
33758 else
33759   cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h.  */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h.  */
33765 $ac_includes_default
33766 int
33767 main ()
33768 {
33769 if ((caddr_t *) 0)
33770   return 0;
33771 if (sizeof (caddr_t))
33772   return 0;
33773   ;
33774   return 0;
33775 }
33776 _ACEOF
33777 rm -f conftest.$ac_objext
33778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33779   (eval $ac_compile) 2>conftest.er1
33780   ac_status=$?
33781   grep -v '^ *+' conftest.er1 >conftest.err
33782   rm -f conftest.er1
33783   cat conftest.err >&5
33784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785   (exit $ac_status); } &&
33786          { ac_try='test -z "$ac_c_werror_flag"
33787                          || test ! -s conftest.err'
33788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789   (eval $ac_try) 2>&5
33790   ac_status=$?
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); }; } &&
33793          { ac_try='test -s conftest.$ac_objext'
33794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795   (eval $ac_try) 2>&5
33796   ac_status=$?
33797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798   (exit $ac_status); }; }; then
33799   ac_cv_type_caddr_t=yes
33800 else
33801   echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804 ac_cv_type_caddr_t=no
33805 fi
33806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33807 fi
33808 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33809 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33810 if test $ac_cv_type_caddr_t = yes; then
33811   :
33812 else
33813
33814 cat >>confdefs.h <<_ACEOF
33815 #define caddr_t char *
33816 _ACEOF
33817
33818 fi
33819
33820 echo "$as_me:$LINENO: checking for size_t" >&5
33821 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33822 if test "${ac_cv_type_size_t+set}" = set; then
33823   echo $ECHO_N "(cached) $ECHO_C" >&6
33824 else
33825   cat >conftest.$ac_ext <<_ACEOF
33826 /* confdefs.h.  */
33827 _ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h.  */
33831 $ac_includes_default
33832 int
33833 main ()
33834 {
33835 if ((size_t *) 0)
33836   return 0;
33837 if (sizeof (size_t))
33838   return 0;
33839   ;
33840   return 0;
33841 }
33842 _ACEOF
33843 rm -f conftest.$ac_objext
33844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33845   (eval $ac_compile) 2>conftest.er1
33846   ac_status=$?
33847   grep -v '^ *+' conftest.er1 >conftest.err
33848   rm -f conftest.er1
33849   cat conftest.err >&5
33850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851   (exit $ac_status); } &&
33852          { ac_try='test -z "$ac_c_werror_flag"
33853                          || test ! -s conftest.err'
33854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33855   (eval $ac_try) 2>&5
33856   ac_status=$?
33857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858   (exit $ac_status); }; } &&
33859          { ac_try='test -s conftest.$ac_objext'
33860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861   (eval $ac_try) 2>&5
33862   ac_status=$?
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); }; }; then
33865   ac_cv_type_size_t=yes
33866 else
33867   echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33869
33870 ac_cv_type_size_t=no
33871 fi
33872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33873 fi
33874 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33875 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33876 if test $ac_cv_type_size_t = yes; then
33877   :
33878 else
33879
33880 cat >>confdefs.h <<_ACEOF
33881 #define size_t unsigned
33882 _ACEOF
33883
33884 fi
33885
33886
33887 echo "$as_me:$LINENO: checking for long long" >&5
33888 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33889 if test "${ac_cv_type_long_long+set}" = set; then
33890   echo $ECHO_N "(cached) $ECHO_C" >&6
33891 else
33892   cat >conftest.$ac_ext <<_ACEOF
33893 /* confdefs.h.  */
33894 _ACEOF
33895 cat confdefs.h >>conftest.$ac_ext
33896 cat >>conftest.$ac_ext <<_ACEOF
33897 /* end confdefs.h.  */
33898 $ac_includes_default
33899 int
33900 main ()
33901 {
33902 if ((long long *) 0)
33903   return 0;
33904 if (sizeof (long long))
33905   return 0;
33906   ;
33907   return 0;
33908 }
33909 _ACEOF
33910 rm -f conftest.$ac_objext
33911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33912   (eval $ac_compile) 2>conftest.er1
33913   ac_status=$?
33914   grep -v '^ *+' conftest.er1 >conftest.err
33915   rm -f conftest.er1
33916   cat conftest.err >&5
33917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918   (exit $ac_status); } &&
33919          { ac_try='test -z "$ac_c_werror_flag"
33920                          || test ! -s conftest.err'
33921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33922   (eval $ac_try) 2>&5
33923   ac_status=$?
33924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925   (exit $ac_status); }; } &&
33926          { ac_try='test -s conftest.$ac_objext'
33927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33928   (eval $ac_try) 2>&5
33929   ac_status=$?
33930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931   (exit $ac_status); }; }; then
33932   ac_cv_type_long_long=yes
33933 else
33934   echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33936
33937 ac_cv_type_long_long=no
33938 fi
33939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33940 fi
33941 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33942 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33943 if test $ac_cv_type_long_long = yes; then
33944
33945 cat >>confdefs.h <<_ACEOF
33946 #define HAVE_LONG_LONG 1
33947 _ACEOF
33948
33949
33950 fi
33951
33952 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33953 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33954 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33955   echo $ECHO_N "(cached) $ECHO_C" >&6
33956 else
33957   cat >conftest.$ac_ext <<_ACEOF
33958 /* confdefs.h.  */
33959 _ACEOF
33960 cat confdefs.h >>conftest.$ac_ext
33961 cat >>conftest.$ac_ext <<_ACEOF
33962 /* end confdefs.h.  */
33963 $ac_includes_default
33964 int
33965 main ()
33966 {
33967 if ((ptrdiff_t *) 0)
33968   return 0;
33969 if (sizeof (ptrdiff_t))
33970   return 0;
33971   ;
33972   return 0;
33973 }
33974 _ACEOF
33975 rm -f conftest.$ac_objext
33976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33977   (eval $ac_compile) 2>conftest.er1
33978   ac_status=$?
33979   grep -v '^ *+' conftest.er1 >conftest.err
33980   rm -f conftest.er1
33981   cat conftest.err >&5
33982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983   (exit $ac_status); } &&
33984          { ac_try='test -z "$ac_c_werror_flag"
33985                          || test ! -s conftest.err'
33986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33987   (eval $ac_try) 2>&5
33988   ac_status=$?
33989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990   (exit $ac_status); }; } &&
33991          { ac_try='test -s conftest.$ac_objext'
33992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33993   (eval $ac_try) 2>&5
33994   ac_status=$?
33995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996   (exit $ac_status); }; }; then
33997   ac_cv_type_ptrdiff_t=yes
33998 else
33999   echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34001
34002 ac_cv_type_ptrdiff_t=no
34003 fi
34004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34005 fi
34006 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34007 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34008 if test $ac_cv_type_ptrdiff_t = yes; then
34009
34010 cat >>confdefs.h <<_ACEOF
34011 #define HAVE_PTRDIFF_T 1
34012 _ACEOF
34013
34014
34015 fi
34016
34017
34018 echo "$as_me:$LINENO: checking for socklen_t" >&5
34019 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34020 if test "${ac_cv_type_socklen_t+set}" = set; then
34021   echo $ECHO_N "(cached) $ECHO_C" >&6
34022 else
34023   cat >conftest.$ac_ext <<_ACEOF
34024 /* confdefs.h.  */
34025 _ACEOF
34026 cat confdefs.h >>conftest.$ac_ext
34027 cat >>conftest.$ac_ext <<_ACEOF
34028 /* end confdefs.h.  */
34029 $ac_includes_default
34030 #ifdef HAVE_SYS_SOCKET_H
34031 #include <sys/socket.h>
34032 #endif
34033
34034
34035 int
34036 main ()
34037 {
34038 if ((socklen_t *) 0)
34039   return 0;
34040 if (sizeof (socklen_t))
34041   return 0;
34042   ;
34043   return 0;
34044 }
34045 _ACEOF
34046 rm -f conftest.$ac_objext
34047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34048   (eval $ac_compile) 2>conftest.er1
34049   ac_status=$?
34050   grep -v '^ *+' conftest.er1 >conftest.err
34051   rm -f conftest.er1
34052   cat conftest.err >&5
34053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054   (exit $ac_status); } &&
34055          { ac_try='test -z "$ac_c_werror_flag"
34056                          || test ! -s conftest.err'
34057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34058   (eval $ac_try) 2>&5
34059   ac_status=$?
34060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061   (exit $ac_status); }; } &&
34062          { ac_try='test -s conftest.$ac_objext'
34063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34064   (eval $ac_try) 2>&5
34065   ac_status=$?
34066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067   (exit $ac_status); }; }; then
34068   ac_cv_type_socklen_t=yes
34069 else
34070   echo "$as_me: failed program was:" >&5
34071 sed 's/^/| /' conftest.$ac_ext >&5
34072
34073 ac_cv_type_socklen_t=no
34074 fi
34075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34076 fi
34077 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34078 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34079 if test $ac_cv_type_socklen_t = yes; then
34080   :
34081 else
34082
34083 cat >>confdefs.h <<_ACEOF
34084 #define socklen_t int
34085 _ACEOF
34086
34087 fi
34088
34089
34090 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34091 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34092 if test "${ac_cv_type_signal+set}" = set; then
34093   echo $ECHO_N "(cached) $ECHO_C" >&6
34094 else
34095   cat >conftest.$ac_ext <<_ACEOF
34096 /* confdefs.h.  */
34097 _ACEOF
34098 cat confdefs.h >>conftest.$ac_ext
34099 cat >>conftest.$ac_ext <<_ACEOF
34100 /* end confdefs.h.  */
34101 #include <sys/types.h>
34102 #include <signal.h>
34103 #ifdef signal
34104 # undef signal
34105 #endif
34106 #ifdef __cplusplus
34107 extern "C" void (*signal (int, void (*)(int)))(int);
34108 #else
34109 void (*signal ()) ();
34110 #endif
34111
34112 int
34113 main ()
34114 {
34115 int i;
34116   ;
34117   return 0;
34118 }
34119 _ACEOF
34120 rm -f conftest.$ac_objext
34121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34122   (eval $ac_compile) 2>conftest.er1
34123   ac_status=$?
34124   grep -v '^ *+' conftest.er1 >conftest.err
34125   rm -f conftest.er1
34126   cat conftest.err >&5
34127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128   (exit $ac_status); } &&
34129          { ac_try='test -z "$ac_c_werror_flag"
34130                          || test ! -s conftest.err'
34131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34132   (eval $ac_try) 2>&5
34133   ac_status=$?
34134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135   (exit $ac_status); }; } &&
34136          { ac_try='test -s conftest.$ac_objext'
34137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138   (eval $ac_try) 2>&5
34139   ac_status=$?
34140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141   (exit $ac_status); }; }; then
34142   ac_cv_type_signal=void
34143 else
34144   echo "$as_me: failed program was:" >&5
34145 sed 's/^/| /' conftest.$ac_ext >&5
34146
34147 ac_cv_type_signal=int
34148 fi
34149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34150 fi
34151 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34152 echo "${ECHO_T}$ac_cv_type_signal" >&6
34153
34154 cat >>confdefs.h <<_ACEOF
34155 #define RETSIGTYPE $ac_cv_type_signal
34156 _ACEOF
34157
34158
34159
34160 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34161 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34162 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34163   echo $ECHO_N "(cached) $ECHO_C" >&6
34164 else
34165   cat >conftest.$ac_ext <<_ACEOF
34166 /* confdefs.h.  */
34167 _ACEOF
34168 cat confdefs.h >>conftest.$ac_ext
34169 cat >>conftest.$ac_ext <<_ACEOF
34170 /* end confdefs.h.  */
34171 $ac_includes_default
34172 #include <signal.h>
34173
34174
34175 int
34176 main ()
34177 {
34178 if ((sig_atomic_t *) 0)
34179   return 0;
34180 if (sizeof (sig_atomic_t))
34181   return 0;
34182   ;
34183   return 0;
34184 }
34185 _ACEOF
34186 rm -f conftest.$ac_objext
34187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34188   (eval $ac_compile) 2>conftest.er1
34189   ac_status=$?
34190   grep -v '^ *+' conftest.er1 >conftest.err
34191   rm -f conftest.er1
34192   cat conftest.err >&5
34193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194   (exit $ac_status); } &&
34195          { ac_try='test -z "$ac_c_werror_flag"
34196                          || test ! -s conftest.err'
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); }; } &&
34202          { ac_try='test -s conftest.$ac_objext'
34203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204   (eval $ac_try) 2>&5
34205   ac_status=$?
34206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207   (exit $ac_status); }; }; then
34208   ac_cv_type_sig_atomic_t=yes
34209 else
34210   echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.$ac_ext >&5
34212
34213 ac_cv_type_sig_atomic_t=no
34214 fi
34215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34216 fi
34217 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34218 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34219 if test $ac_cv_type_sig_atomic_t = yes; then
34220   :
34221 else
34222
34223 cat >>confdefs.h <<_ACEOF
34224 #define sig_atomic_t int
34225 _ACEOF
34226
34227 fi
34228
34229
34230 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34231 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34232 if test "${ac_cv_type_uid_t+set}" = set; then
34233   echo $ECHO_N "(cached) $ECHO_C" >&6
34234 else
34235   cat >conftest.$ac_ext <<_ACEOF
34236 /* confdefs.h.  */
34237 _ACEOF
34238 cat confdefs.h >>conftest.$ac_ext
34239 cat >>conftest.$ac_ext <<_ACEOF
34240 /* end confdefs.h.  */
34241 #include <sys/types.h>
34242
34243 _ACEOF
34244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34245   $EGREP "uid_t" >/dev/null 2>&1; then
34246   ac_cv_type_uid_t=yes
34247 else
34248   ac_cv_type_uid_t=no
34249 fi
34250 rm -f conftest*
34251
34252 fi
34253 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34254 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34255 if test $ac_cv_type_uid_t = no; then
34256
34257 cat >>confdefs.h <<\_ACEOF
34258 #define uid_t int
34259 _ACEOF
34260
34261
34262 cat >>confdefs.h <<\_ACEOF
34263 #define gid_t int
34264 _ACEOF
34265
34266 fi
34267
34268
34269 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34270 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34271 if test "${ac_cv_header_time+set}" = set; then
34272   echo $ECHO_N "(cached) $ECHO_C" >&6
34273 else
34274   cat >conftest.$ac_ext <<_ACEOF
34275 /* confdefs.h.  */
34276 _ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h.  */
34280 #include <sys/types.h>
34281 #include <sys/time.h>
34282 #include <time.h>
34283
34284 int
34285 main ()
34286 {
34287 if ((struct tm *) 0)
34288 return 0;
34289   ;
34290   return 0;
34291 }
34292 _ACEOF
34293 rm -f conftest.$ac_objext
34294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34295   (eval $ac_compile) 2>conftest.er1
34296   ac_status=$?
34297   grep -v '^ *+' conftest.er1 >conftest.err
34298   rm -f conftest.er1
34299   cat conftest.err >&5
34300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301   (exit $ac_status); } &&
34302          { ac_try='test -z "$ac_c_werror_flag"
34303                          || test ! -s conftest.err'
34304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305   (eval $ac_try) 2>&5
34306   ac_status=$?
34307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308   (exit $ac_status); }; } &&
34309          { ac_try='test -s conftest.$ac_objext'
34310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311   (eval $ac_try) 2>&5
34312   ac_status=$?
34313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314   (exit $ac_status); }; }; then
34315   ac_cv_header_time=yes
34316 else
34317   echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34319
34320 ac_cv_header_time=no
34321 fi
34322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34323 fi
34324 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34325 echo "${ECHO_T}$ac_cv_header_time" >&6
34326 if test $ac_cv_header_time = yes; then
34327
34328 cat >>confdefs.h <<\_ACEOF
34329 #define TIME_WITH_SYS_TIME 1
34330 _ACEOF
34331
34332 fi
34333
34334 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34335 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34336 if test "${ac_cv_struct_tm+set}" = set; then
34337   echo $ECHO_N "(cached) $ECHO_C" >&6
34338 else
34339   cat >conftest.$ac_ext <<_ACEOF
34340 /* confdefs.h.  */
34341 _ACEOF
34342 cat confdefs.h >>conftest.$ac_ext
34343 cat >>conftest.$ac_ext <<_ACEOF
34344 /* end confdefs.h.  */
34345 #include <sys/types.h>
34346 #include <time.h>
34347
34348 int
34349 main ()
34350 {
34351 struct tm *tp; tp->tm_sec;
34352   ;
34353   return 0;
34354 }
34355 _ACEOF
34356 rm -f conftest.$ac_objext
34357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34358   (eval $ac_compile) 2>conftest.er1
34359   ac_status=$?
34360   grep -v '^ *+' conftest.er1 >conftest.err
34361   rm -f conftest.er1
34362   cat conftest.err >&5
34363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364   (exit $ac_status); } &&
34365          { ac_try='test -z "$ac_c_werror_flag"
34366                          || test ! -s conftest.err'
34367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368   (eval $ac_try) 2>&5
34369   ac_status=$?
34370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371   (exit $ac_status); }; } &&
34372          { ac_try='test -s conftest.$ac_objext'
34373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374   (eval $ac_try) 2>&5
34375   ac_status=$?
34376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377   (exit $ac_status); }; }; then
34378   ac_cv_struct_tm=time.h
34379 else
34380   echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34382
34383 ac_cv_struct_tm=sys/time.h
34384 fi
34385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34386 fi
34387 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34388 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34389 if test $ac_cv_struct_tm = sys/time.h; then
34390
34391 cat >>confdefs.h <<\_ACEOF
34392 #define TM_IN_SYS_TIME 1
34393 _ACEOF
34394
34395 fi
34396
34397 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34398 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34399 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34400   echo $ECHO_N "(cached) $ECHO_C" >&6
34401 else
34402   cat >conftest.$ac_ext <<_ACEOF
34403 /* confdefs.h.  */
34404 _ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h.  */
34408 $ac_includes_default
34409 int
34410 main ()
34411 {
34412 static struct stat ac_aggr;
34413 if (ac_aggr.st_blksize)
34414 return 0;
34415   ;
34416   return 0;
34417 }
34418 _ACEOF
34419 rm -f conftest.$ac_objext
34420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34421   (eval $ac_compile) 2>conftest.er1
34422   ac_status=$?
34423   grep -v '^ *+' conftest.er1 >conftest.err
34424   rm -f conftest.er1
34425   cat conftest.err >&5
34426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427   (exit $ac_status); } &&
34428          { ac_try='test -z "$ac_c_werror_flag"
34429                          || test ! -s conftest.err'
34430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34431   (eval $ac_try) 2>&5
34432   ac_status=$?
34433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434   (exit $ac_status); }; } &&
34435          { ac_try='test -s conftest.$ac_objext'
34436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34437   (eval $ac_try) 2>&5
34438   ac_status=$?
34439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440   (exit $ac_status); }; }; then
34441   ac_cv_member_struct_stat_st_blksize=yes
34442 else
34443   echo "$as_me: failed program was:" >&5
34444 sed 's/^/| /' conftest.$ac_ext >&5
34445
34446 cat >conftest.$ac_ext <<_ACEOF
34447 /* confdefs.h.  */
34448 _ACEOF
34449 cat confdefs.h >>conftest.$ac_ext
34450 cat >>conftest.$ac_ext <<_ACEOF
34451 /* end confdefs.h.  */
34452 $ac_includes_default
34453 int
34454 main ()
34455 {
34456 static struct stat ac_aggr;
34457 if (sizeof ac_aggr.st_blksize)
34458 return 0;
34459   ;
34460   return 0;
34461 }
34462 _ACEOF
34463 rm -f conftest.$ac_objext
34464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34465   (eval $ac_compile) 2>conftest.er1
34466   ac_status=$?
34467   grep -v '^ *+' conftest.er1 >conftest.err
34468   rm -f conftest.er1
34469   cat conftest.err >&5
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); } &&
34472          { ac_try='test -z "$ac_c_werror_flag"
34473                          || test ! -s conftest.err'
34474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475   (eval $ac_try) 2>&5
34476   ac_status=$?
34477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478   (exit $ac_status); }; } &&
34479          { ac_try='test -s conftest.$ac_objext'
34480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481   (eval $ac_try) 2>&5
34482   ac_status=$?
34483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484   (exit $ac_status); }; }; then
34485   ac_cv_member_struct_stat_st_blksize=yes
34486 else
34487   echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34489
34490 ac_cv_member_struct_stat_st_blksize=no
34491 fi
34492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34493 fi
34494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34495 fi
34496 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34497 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34498 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34499
34500 cat >>confdefs.h <<_ACEOF
34501 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34502 _ACEOF
34503
34504
34505 fi
34506
34507 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34508 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34509 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34510   echo $ECHO_N "(cached) $ECHO_C" >&6
34511 else
34512   cat >conftest.$ac_ext <<_ACEOF
34513 /* confdefs.h.  */
34514 _ACEOF
34515 cat confdefs.h >>conftest.$ac_ext
34516 cat >>conftest.$ac_ext <<_ACEOF
34517 /* end confdefs.h.  */
34518 $ac_includes_default
34519 #include <pwd.h>
34520
34521 int
34522 main ()
34523 {
34524 static struct passwd ac_aggr;
34525 if (ac_aggr.pw_gecos)
34526 return 0;
34527   ;
34528   return 0;
34529 }
34530 _ACEOF
34531 rm -f conftest.$ac_objext
34532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34533   (eval $ac_compile) 2>conftest.er1
34534   ac_status=$?
34535   grep -v '^ *+' conftest.er1 >conftest.err
34536   rm -f conftest.er1
34537   cat conftest.err >&5
34538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539   (exit $ac_status); } &&
34540          { ac_try='test -z "$ac_c_werror_flag"
34541                          || test ! -s conftest.err'
34542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34543   (eval $ac_try) 2>&5
34544   ac_status=$?
34545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546   (exit $ac_status); }; } &&
34547          { ac_try='test -s conftest.$ac_objext'
34548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549   (eval $ac_try) 2>&5
34550   ac_status=$?
34551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552   (exit $ac_status); }; }; then
34553   ac_cv_member_struct_passwd_pw_gecos=yes
34554 else
34555   echo "$as_me: failed program was:" >&5
34556 sed 's/^/| /' conftest.$ac_ext >&5
34557
34558 cat >conftest.$ac_ext <<_ACEOF
34559 /* confdefs.h.  */
34560 _ACEOF
34561 cat confdefs.h >>conftest.$ac_ext
34562 cat >>conftest.$ac_ext <<_ACEOF
34563 /* end confdefs.h.  */
34564 $ac_includes_default
34565 #include <pwd.h>
34566
34567 int
34568 main ()
34569 {
34570 static struct passwd ac_aggr;
34571 if (sizeof ac_aggr.pw_gecos)
34572 return 0;
34573   ;
34574   return 0;
34575 }
34576 _ACEOF
34577 rm -f conftest.$ac_objext
34578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34579   (eval $ac_compile) 2>conftest.er1
34580   ac_status=$?
34581   grep -v '^ *+' conftest.er1 >conftest.err
34582   rm -f conftest.er1
34583   cat conftest.err >&5
34584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585   (exit $ac_status); } &&
34586          { ac_try='test -z "$ac_c_werror_flag"
34587                          || test ! -s conftest.err'
34588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34589   (eval $ac_try) 2>&5
34590   ac_status=$?
34591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592   (exit $ac_status); }; } &&
34593          { ac_try='test -s conftest.$ac_objext'
34594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34595   (eval $ac_try) 2>&5
34596   ac_status=$?
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); }; }; then
34599   ac_cv_member_struct_passwd_pw_gecos=yes
34600 else
34601   echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34603
34604 ac_cv_member_struct_passwd_pw_gecos=no
34605 fi
34606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34607 fi
34608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34609 fi
34610 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34611 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34612 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34613
34614 cat >>confdefs.h <<_ACEOF
34615 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34616 _ACEOF
34617
34618
34619 fi
34620
34621 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34622 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34623 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34624   echo $ECHO_N "(cached) $ECHO_C" >&6
34625 else
34626   cat >conftest.$ac_ext <<_ACEOF
34627 /* confdefs.h.  */
34628 _ACEOF
34629 cat confdefs.h >>conftest.$ac_ext
34630 cat >>conftest.$ac_ext <<_ACEOF
34631 /* end confdefs.h.  */
34632 $ac_includes_default
34633 #include <pwd.h>
34634
34635 int
34636 main ()
34637 {
34638 static struct passwd ac_aggr;
34639 if (ac_aggr.pw_passwd)
34640 return 0;
34641   ;
34642   return 0;
34643 }
34644 _ACEOF
34645 rm -f conftest.$ac_objext
34646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34647   (eval $ac_compile) 2>conftest.er1
34648   ac_status=$?
34649   grep -v '^ *+' conftest.er1 >conftest.err
34650   rm -f conftest.er1
34651   cat conftest.err >&5
34652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653   (exit $ac_status); } &&
34654          { ac_try='test -z "$ac_c_werror_flag"
34655                          || test ! -s conftest.err'
34656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657   (eval $ac_try) 2>&5
34658   ac_status=$?
34659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660   (exit $ac_status); }; } &&
34661          { ac_try='test -s conftest.$ac_objext'
34662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34663   (eval $ac_try) 2>&5
34664   ac_status=$?
34665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666   (exit $ac_status); }; }; then
34667   ac_cv_member_struct_passwd_pw_passwd=yes
34668 else
34669   echo "$as_me: failed program was:" >&5
34670 sed 's/^/| /' conftest.$ac_ext >&5
34671
34672 cat >conftest.$ac_ext <<_ACEOF
34673 /* confdefs.h.  */
34674 _ACEOF
34675 cat confdefs.h >>conftest.$ac_ext
34676 cat >>conftest.$ac_ext <<_ACEOF
34677 /* end confdefs.h.  */
34678 $ac_includes_default
34679 #include <pwd.h>
34680
34681 int
34682 main ()
34683 {
34684 static struct passwd ac_aggr;
34685 if (sizeof ac_aggr.pw_passwd)
34686 return 0;
34687   ;
34688   return 0;
34689 }
34690 _ACEOF
34691 rm -f conftest.$ac_objext
34692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34693   (eval $ac_compile) 2>conftest.er1
34694   ac_status=$?
34695   grep -v '^ *+' conftest.er1 >conftest.err
34696   rm -f conftest.er1
34697   cat conftest.err >&5
34698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699   (exit $ac_status); } &&
34700          { ac_try='test -z "$ac_c_werror_flag"
34701                          || test ! -s conftest.err'
34702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34703   (eval $ac_try) 2>&5
34704   ac_status=$?
34705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706   (exit $ac_status); }; } &&
34707          { ac_try='test -s conftest.$ac_objext'
34708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34709   (eval $ac_try) 2>&5
34710   ac_status=$?
34711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712   (exit $ac_status); }; }; then
34713   ac_cv_member_struct_passwd_pw_passwd=yes
34714 else
34715   echo "$as_me: failed program was:" >&5
34716 sed 's/^/| /' conftest.$ac_ext >&5
34717
34718 ac_cv_member_struct_passwd_pw_passwd=no
34719 fi
34720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34721 fi
34722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34723 fi
34724 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34725 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34726 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34727
34728 cat >>confdefs.h <<_ACEOF
34729 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34730 _ACEOF
34731
34732
34733 fi
34734
34735
34736 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34737 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34738 if test "${ol_cv_c_upper_lower+set}" = set; then
34739   echo $ECHO_N "(cached) $ECHO_C" >&6
34740 else
34741
34742         if test "$cross_compiling" = yes; then
34743   ol_cv_c_upper_lower=safe
34744 else
34745   cat >conftest.$ac_ext <<_ACEOF
34746 /* confdefs.h.  */
34747 _ACEOF
34748 cat confdefs.h >>conftest.$ac_ext
34749 cat >>conftest.$ac_ext <<_ACEOF
34750 /* end confdefs.h.  */
34751
34752 #include <ctype.h>
34753 main()
34754 {
34755         if ('C' == toupper('C'))
34756                 exit(0);
34757         else
34758                 exit(1);
34759 }
34760 _ACEOF
34761 rm -f conftest$ac_exeext
34762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34763   (eval $ac_link) 2>&5
34764   ac_status=$?
34765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768   (eval $ac_try) 2>&5
34769   ac_status=$?
34770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771   (exit $ac_status); }; }; then
34772   ol_cv_c_upper_lower=no
34773 else
34774   echo "$as_me: program exited with status $ac_status" >&5
34775 echo "$as_me: failed program was:" >&5
34776 sed 's/^/| /' conftest.$ac_ext >&5
34777
34778 ( exit $ac_status )
34779 ol_cv_c_upper_lower=yes
34780 fi
34781 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34782 fi
34783 fi
34784 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34785 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34786 if test $ol_cv_c_upper_lower != no ; then
34787
34788 cat >>confdefs.h <<\_ACEOF
34789 #define C_UPPER_LOWER 1
34790 _ACEOF
34791
34792 fi
34793
34794 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34795 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34796 if test "${ac_cv_c_const+set}" = set; then
34797   echo $ECHO_N "(cached) $ECHO_C" >&6
34798 else
34799   cat >conftest.$ac_ext <<_ACEOF
34800 /* confdefs.h.  */
34801 _ACEOF
34802 cat confdefs.h >>conftest.$ac_ext
34803 cat >>conftest.$ac_ext <<_ACEOF
34804 /* end confdefs.h.  */
34805
34806 int
34807 main ()
34808 {
34809 /* FIXME: Include the comments suggested by Paul. */
34810 #ifndef __cplusplus
34811   /* Ultrix mips cc rejects this.  */
34812   typedef int charset[2];
34813   const charset x;
34814   /* SunOS 4.1.1 cc rejects this.  */
34815   char const *const *ccp;
34816   char **p;
34817   /* NEC SVR4.0.2 mips cc rejects this.  */
34818   struct point {int x, y;};
34819   static struct point const zero = {0,0};
34820   /* AIX XL C 1.02.0.0 rejects this.
34821      It does not let you subtract one const X* pointer from another in
34822      an arm of an if-expression whose if-part is not a constant
34823      expression */
34824   const char *g = "string";
34825   ccp = &g + (g ? g-g : 0);
34826   /* HPUX 7.0 cc rejects these. */
34827   ++ccp;
34828   p = (char**) ccp;
34829   ccp = (char const *const *) p;
34830   { /* SCO 3.2v4 cc rejects this.  */
34831     char *t;
34832     char const *s = 0 ? (char *) 0 : (char const *) 0;
34833
34834     *t++ = 0;
34835   }
34836   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34837     int x[] = {25, 17};
34838     const int *foo = &x[0];
34839     ++foo;
34840   }
34841   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34842     typedef const int *iptr;
34843     iptr p = 0;
34844     ++p;
34845   }
34846   { /* AIX XL C 1.02.0.0 rejects this saying
34847        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34848     struct s { int j; const int *ap[3]; };
34849     struct s *b; b->j = 5;
34850   }
34851   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34852     const int foo = 10;
34853   }
34854 #endif
34855
34856   ;
34857   return 0;
34858 }
34859 _ACEOF
34860 rm -f conftest.$ac_objext
34861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34862   (eval $ac_compile) 2>conftest.er1
34863   ac_status=$?
34864   grep -v '^ *+' conftest.er1 >conftest.err
34865   rm -f conftest.er1
34866   cat conftest.err >&5
34867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868   (exit $ac_status); } &&
34869          { ac_try='test -z "$ac_c_werror_flag"
34870                          || test ! -s conftest.err'
34871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872   (eval $ac_try) 2>&5
34873   ac_status=$?
34874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875   (exit $ac_status); }; } &&
34876          { ac_try='test -s conftest.$ac_objext'
34877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878   (eval $ac_try) 2>&5
34879   ac_status=$?
34880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881   (exit $ac_status); }; }; then
34882   ac_cv_c_const=yes
34883 else
34884   echo "$as_me: failed program was:" >&5
34885 sed 's/^/| /' conftest.$ac_ext >&5
34886
34887 ac_cv_c_const=no
34888 fi
34889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34890 fi
34891 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34892 echo "${ECHO_T}$ac_cv_c_const" >&6
34893 if test $ac_cv_c_const = no; then
34894
34895 cat >>confdefs.h <<\_ACEOF
34896 #define const
34897 _ACEOF
34898
34899 fi
34900
34901 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34902 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34903 if test "${ol_cv_c_volatile+set}" = set; then
34904   echo $ECHO_N "(cached) $ECHO_C" >&6
34905 else
34906   cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h.  */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h.  */
34912 int x, y, z;
34913 int
34914 main ()
34915 {
34916 volatile int a; int * volatile b = x ? &y : &z;
34917       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34918       *b = 0;
34919   ;
34920   return 0;
34921 }
34922 _ACEOF
34923 rm -f conftest.$ac_objext
34924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34925   (eval $ac_compile) 2>conftest.er1
34926   ac_status=$?
34927   grep -v '^ *+' conftest.er1 >conftest.err
34928   rm -f conftest.er1
34929   cat conftest.err >&5
34930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931   (exit $ac_status); } &&
34932          { ac_try='test -z "$ac_c_werror_flag"
34933                          || test ! -s conftest.err'
34934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935   (eval $ac_try) 2>&5
34936   ac_status=$?
34937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938   (exit $ac_status); }; } &&
34939          { ac_try='test -s conftest.$ac_objext'
34940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34941   (eval $ac_try) 2>&5
34942   ac_status=$?
34943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944   (exit $ac_status); }; }; then
34945   ol_cv_c_volatile=yes
34946 else
34947   echo "$as_me: failed program was:" >&5
34948 sed 's/^/| /' conftest.$ac_ext >&5
34949
34950 ol_cv_c_volatile=no
34951 fi
34952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34953 fi
34954 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
34955 echo "${ECHO_T}$ol_cv_c_volatile" >&6
34956   if test $ol_cv_c_volatile = yes; then
34957     :
34958   else
34959
34960 cat >>confdefs.h <<\_ACEOF
34961 #define volatile
34962 _ACEOF
34963
34964   fi
34965
34966
34967 if test $cross_compiling = yes ; then
34968         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
34969 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
34970
34971 cat >>confdefs.h <<\_ACEOF
34972 #define CROSS_COMPILING 1
34973 _ACEOF
34974
34975 else
34976         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34977 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
34978 if test "${ac_cv_c_bigendian+set}" = set; then
34979   echo $ECHO_N "(cached) $ECHO_C" >&6
34980 else
34981   # See if sys/param.h defines the BYTE_ORDER macro.
34982 cat >conftest.$ac_ext <<_ACEOF
34983 /* confdefs.h.  */
34984 _ACEOF
34985 cat confdefs.h >>conftest.$ac_ext
34986 cat >>conftest.$ac_ext <<_ACEOF
34987 /* end confdefs.h.  */
34988 #include <sys/types.h>
34989 #include <sys/param.h>
34990
34991 int
34992 main ()
34993 {
34994 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
34995  bogus endian macros
34996 #endif
34997
34998   ;
34999   return 0;
35000 }
35001 _ACEOF
35002 rm -f conftest.$ac_objext
35003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35004   (eval $ac_compile) 2>conftest.er1
35005   ac_status=$?
35006   grep -v '^ *+' conftest.er1 >conftest.err
35007   rm -f conftest.er1
35008   cat conftest.err >&5
35009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010   (exit $ac_status); } &&
35011          { ac_try='test -z "$ac_c_werror_flag"
35012                          || test ! -s conftest.err'
35013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014   (eval $ac_try) 2>&5
35015   ac_status=$?
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); }; } &&
35018          { ac_try='test -s conftest.$ac_objext'
35019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020   (eval $ac_try) 2>&5
35021   ac_status=$?
35022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023   (exit $ac_status); }; }; then
35024   # It does; now see whether it defined to BIG_ENDIAN or not.
35025 cat >conftest.$ac_ext <<_ACEOF
35026 /* confdefs.h.  */
35027 _ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h.  */
35031 #include <sys/types.h>
35032 #include <sys/param.h>
35033
35034 int
35035 main ()
35036 {
35037 #if BYTE_ORDER != BIG_ENDIAN
35038  not big endian
35039 #endif
35040
35041   ;
35042   return 0;
35043 }
35044 _ACEOF
35045 rm -f conftest.$ac_objext
35046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35047   (eval $ac_compile) 2>conftest.er1
35048   ac_status=$?
35049   grep -v '^ *+' conftest.er1 >conftest.err
35050   rm -f conftest.er1
35051   cat conftest.err >&5
35052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053   (exit $ac_status); } &&
35054          { ac_try='test -z "$ac_c_werror_flag"
35055                          || test ! -s conftest.err'
35056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057   (eval $ac_try) 2>&5
35058   ac_status=$?
35059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060   (exit $ac_status); }; } &&
35061          { ac_try='test -s conftest.$ac_objext'
35062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063   (eval $ac_try) 2>&5
35064   ac_status=$?
35065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066   (exit $ac_status); }; }; then
35067   ac_cv_c_bigendian=yes
35068 else
35069   echo "$as_me: failed program was:" >&5
35070 sed 's/^/| /' conftest.$ac_ext >&5
35071
35072 ac_cv_c_bigendian=no
35073 fi
35074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35075 else
35076   echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35078
35079 # It does not; compile a test program.
35080 if test "$cross_compiling" = yes; then
35081   # try to guess the endianness by grepping values into an object file
35082   ac_cv_c_bigendian=unknown
35083   cat >conftest.$ac_ext <<_ACEOF
35084 /* confdefs.h.  */
35085 _ACEOF
35086 cat confdefs.h >>conftest.$ac_ext
35087 cat >>conftest.$ac_ext <<_ACEOF
35088 /* end confdefs.h.  */
35089 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35090 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35091 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35092 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35093 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35094 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35095 int
35096 main ()
35097 {
35098  _ascii (); _ebcdic ();
35099   ;
35100   return 0;
35101 }
35102 _ACEOF
35103 rm -f conftest.$ac_objext
35104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35105   (eval $ac_compile) 2>conftest.er1
35106   ac_status=$?
35107   grep -v '^ *+' conftest.er1 >conftest.err
35108   rm -f conftest.er1
35109   cat conftest.err >&5
35110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111   (exit $ac_status); } &&
35112          { ac_try='test -z "$ac_c_werror_flag"
35113                          || test ! -s conftest.err'
35114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115   (eval $ac_try) 2>&5
35116   ac_status=$?
35117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118   (exit $ac_status); }; } &&
35119          { ac_try='test -s conftest.$ac_objext'
35120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121   (eval $ac_try) 2>&5
35122   ac_status=$?
35123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124   (exit $ac_status); }; }; then
35125   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35126   ac_cv_c_bigendian=yes
35127 fi
35128 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35129   if test "$ac_cv_c_bigendian" = unknown; then
35130     ac_cv_c_bigendian=no
35131   else
35132     # finding both strings is unlikely to happen, but who knows?
35133     ac_cv_c_bigendian=unknown
35134   fi
35135 fi
35136 else
35137   echo "$as_me: failed program was:" >&5
35138 sed 's/^/| /' conftest.$ac_ext >&5
35139
35140 fi
35141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35142 else
35143   cat >conftest.$ac_ext <<_ACEOF
35144 /* confdefs.h.  */
35145 _ACEOF
35146 cat confdefs.h >>conftest.$ac_ext
35147 cat >>conftest.$ac_ext <<_ACEOF
35148 /* end confdefs.h.  */
35149 int
35150 main ()
35151 {
35152   /* Are we little or big endian?  From Harbison&Steele.  */
35153   union
35154   {
35155     long l;
35156     char c[sizeof (long)];
35157   } u;
35158   u.l = 1;
35159   exit (u.c[sizeof (long) - 1] == 1);
35160 }
35161 _ACEOF
35162 rm -f conftest$ac_exeext
35163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35164   (eval $ac_link) 2>&5
35165   ac_status=$?
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169   (eval $ac_try) 2>&5
35170   ac_status=$?
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); }; }; then
35173   ac_cv_c_bigendian=no
35174 else
35175   echo "$as_me: program exited with status $ac_status" >&5
35176 echo "$as_me: failed program was:" >&5
35177 sed 's/^/| /' conftest.$ac_ext >&5
35178
35179 ( exit $ac_status )
35180 ac_cv_c_bigendian=yes
35181 fi
35182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35183 fi
35184 fi
35185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35186 fi
35187 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35188 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35189 case $ac_cv_c_bigendian in
35190   yes)
35191
35192 cat >>confdefs.h <<\_ACEOF
35193 #define WORDS_BIGENDIAN 1
35194 _ACEOF
35195  ;;
35196   no)
35197      ;;
35198   *)
35199     { { echo "$as_me:$LINENO: error: unknown endianness
35200 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35201 echo "$as_me: error: unknown endianness
35202 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35203    { (exit 1); exit 1; }; } ;;
35204 esac
35205
35206 fi
35207
35208 echo "$as_me:$LINENO: checking for short" >&5
35209 echo $ECHO_N "checking for short... $ECHO_C" >&6
35210 if test "${ac_cv_type_short+set}" = set; then
35211   echo $ECHO_N "(cached) $ECHO_C" >&6
35212 else
35213   cat >conftest.$ac_ext <<_ACEOF
35214 /* confdefs.h.  */
35215 _ACEOF
35216 cat confdefs.h >>conftest.$ac_ext
35217 cat >>conftest.$ac_ext <<_ACEOF
35218 /* end confdefs.h.  */
35219 $ac_includes_default
35220 int
35221 main ()
35222 {
35223 if ((short *) 0)
35224   return 0;
35225 if (sizeof (short))
35226   return 0;
35227   ;
35228   return 0;
35229 }
35230 _ACEOF
35231 rm -f conftest.$ac_objext
35232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35233   (eval $ac_compile) 2>conftest.er1
35234   ac_status=$?
35235   grep -v '^ *+' conftest.er1 >conftest.err
35236   rm -f conftest.er1
35237   cat conftest.err >&5
35238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239   (exit $ac_status); } &&
35240          { ac_try='test -z "$ac_c_werror_flag"
35241                          || test ! -s conftest.err'
35242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35243   (eval $ac_try) 2>&5
35244   ac_status=$?
35245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246   (exit $ac_status); }; } &&
35247          { ac_try='test -s conftest.$ac_objext'
35248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35249   (eval $ac_try) 2>&5
35250   ac_status=$?
35251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252   (exit $ac_status); }; }; then
35253   ac_cv_type_short=yes
35254 else
35255   echo "$as_me: failed program was:" >&5
35256 sed 's/^/| /' conftest.$ac_ext >&5
35257
35258 ac_cv_type_short=no
35259 fi
35260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35261 fi
35262 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35263 echo "${ECHO_T}$ac_cv_type_short" >&6
35264
35265 echo "$as_me:$LINENO: checking size of short" >&5
35266 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35267 if test "${ac_cv_sizeof_short+set}" = set; then
35268   echo $ECHO_N "(cached) $ECHO_C" >&6
35269 else
35270   if test "$ac_cv_type_short" = yes; then
35271   # The cast to unsigned long works around a bug in the HP C Compiler
35272   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35273   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35274   # This bug is HP SR number 8606223364.
35275   if test "$cross_compiling" = yes; then
35276   # Depending upon the size, compute the lo and hi bounds.
35277 cat >conftest.$ac_ext <<_ACEOF
35278 /* confdefs.h.  */
35279 _ACEOF
35280 cat confdefs.h >>conftest.$ac_ext
35281 cat >>conftest.$ac_ext <<_ACEOF
35282 /* end confdefs.h.  */
35283 $ac_includes_default
35284 int
35285 main ()
35286 {
35287 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35288 test_array [0] = 0
35289
35290   ;
35291   return 0;
35292 }
35293 _ACEOF
35294 rm -f conftest.$ac_objext
35295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35296   (eval $ac_compile) 2>conftest.er1
35297   ac_status=$?
35298   grep -v '^ *+' conftest.er1 >conftest.err
35299   rm -f conftest.er1
35300   cat conftest.err >&5
35301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); } &&
35303          { ac_try='test -z "$ac_c_werror_flag"
35304                          || test ! -s conftest.err'
35305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306   (eval $ac_try) 2>&5
35307   ac_status=$?
35308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309   (exit $ac_status); }; } &&
35310          { ac_try='test -s conftest.$ac_objext'
35311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35312   (eval $ac_try) 2>&5
35313   ac_status=$?
35314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); }; }; then
35316   ac_lo=0 ac_mid=0
35317   while :; do
35318     cat >conftest.$ac_ext <<_ACEOF
35319 /* confdefs.h.  */
35320 _ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h.  */
35324 $ac_includes_default
35325 int
35326 main ()
35327 {
35328 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35329 test_array [0] = 0
35330
35331   ;
35332   return 0;
35333 }
35334 _ACEOF
35335 rm -f conftest.$ac_objext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35337   (eval $ac_compile) 2>conftest.er1
35338   ac_status=$?
35339   grep -v '^ *+' conftest.er1 >conftest.err
35340   rm -f conftest.er1
35341   cat conftest.err >&5
35342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343   (exit $ac_status); } &&
35344          { ac_try='test -z "$ac_c_werror_flag"
35345                          || test ! -s conftest.err'
35346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347   (eval $ac_try) 2>&5
35348   ac_status=$?
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); }; } &&
35351          { ac_try='test -s conftest.$ac_objext'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; }; then
35357   ac_hi=$ac_mid; break
35358 else
35359   echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35361
35362 ac_lo=`expr $ac_mid + 1`
35363                     if test $ac_lo -le $ac_mid; then
35364                       ac_lo= ac_hi=
35365                       break
35366                     fi
35367                     ac_mid=`expr 2 '*' $ac_mid + 1`
35368 fi
35369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35370   done
35371 else
35372   echo "$as_me: failed program was:" >&5
35373 sed 's/^/| /' conftest.$ac_ext >&5
35374
35375 cat >conftest.$ac_ext <<_ACEOF
35376 /* confdefs.h.  */
35377 _ACEOF
35378 cat confdefs.h >>conftest.$ac_ext
35379 cat >>conftest.$ac_ext <<_ACEOF
35380 /* end confdefs.h.  */
35381 $ac_includes_default
35382 int
35383 main ()
35384 {
35385 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35386 test_array [0] = 0
35387
35388   ;
35389   return 0;
35390 }
35391 _ACEOF
35392 rm -f conftest.$ac_objext
35393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35394   (eval $ac_compile) 2>conftest.er1
35395   ac_status=$?
35396   grep -v '^ *+' conftest.er1 >conftest.err
35397   rm -f conftest.er1
35398   cat conftest.err >&5
35399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400   (exit $ac_status); } &&
35401          { ac_try='test -z "$ac_c_werror_flag"
35402                          || test ! -s conftest.err'
35403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404   (eval $ac_try) 2>&5
35405   ac_status=$?
35406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407   (exit $ac_status); }; } &&
35408          { ac_try='test -s conftest.$ac_objext'
35409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35410   (eval $ac_try) 2>&5
35411   ac_status=$?
35412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413   (exit $ac_status); }; }; then
35414   ac_hi=-1 ac_mid=-1
35415   while :; do
35416     cat >conftest.$ac_ext <<_ACEOF
35417 /* confdefs.h.  */
35418 _ACEOF
35419 cat confdefs.h >>conftest.$ac_ext
35420 cat >>conftest.$ac_ext <<_ACEOF
35421 /* end confdefs.h.  */
35422 $ac_includes_default
35423 int
35424 main ()
35425 {
35426 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35427 test_array [0] = 0
35428
35429   ;
35430   return 0;
35431 }
35432 _ACEOF
35433 rm -f conftest.$ac_objext
35434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35435   (eval $ac_compile) 2>conftest.er1
35436   ac_status=$?
35437   grep -v '^ *+' conftest.er1 >conftest.err
35438   rm -f conftest.er1
35439   cat conftest.err >&5
35440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441   (exit $ac_status); } &&
35442          { ac_try='test -z "$ac_c_werror_flag"
35443                          || test ! -s conftest.err'
35444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445   (eval $ac_try) 2>&5
35446   ac_status=$?
35447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448   (exit $ac_status); }; } &&
35449          { ac_try='test -s conftest.$ac_objext'
35450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35451   (eval $ac_try) 2>&5
35452   ac_status=$?
35453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454   (exit $ac_status); }; }; then
35455   ac_lo=$ac_mid; break
35456 else
35457   echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35459
35460 ac_hi=`expr '(' $ac_mid ')' - 1`
35461                        if test $ac_mid -le $ac_hi; then
35462                          ac_lo= ac_hi=
35463                          break
35464                        fi
35465                        ac_mid=`expr 2 '*' $ac_mid`
35466 fi
35467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35468   done
35469 else
35470   echo "$as_me: failed program was:" >&5
35471 sed 's/^/| /' conftest.$ac_ext >&5
35472
35473 ac_lo= ac_hi=
35474 fi
35475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35476 fi
35477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35478 # Binary search between lo and hi bounds.
35479 while test "x$ac_lo" != "x$ac_hi"; do
35480   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35481   cat >conftest.$ac_ext <<_ACEOF
35482 /* confdefs.h.  */
35483 _ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h.  */
35487 $ac_includes_default
35488 int
35489 main ()
35490 {
35491 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35492 test_array [0] = 0
35493
35494   ;
35495   return 0;
35496 }
35497 _ACEOF
35498 rm -f conftest.$ac_objext
35499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35500   (eval $ac_compile) 2>conftest.er1
35501   ac_status=$?
35502   grep -v '^ *+' conftest.er1 >conftest.err
35503   rm -f conftest.er1
35504   cat conftest.err >&5
35505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506   (exit $ac_status); } &&
35507          { ac_try='test -z "$ac_c_werror_flag"
35508                          || test ! -s conftest.err'
35509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35510   (eval $ac_try) 2>&5
35511   ac_status=$?
35512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513   (exit $ac_status); }; } &&
35514          { ac_try='test -s conftest.$ac_objext'
35515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35516   (eval $ac_try) 2>&5
35517   ac_status=$?
35518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35519   (exit $ac_status); }; }; then
35520   ac_hi=$ac_mid
35521 else
35522   echo "$as_me: failed program was:" >&5
35523 sed 's/^/| /' conftest.$ac_ext >&5
35524
35525 ac_lo=`expr '(' $ac_mid ')' + 1`
35526 fi
35527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35528 done
35529 case $ac_lo in
35530 ?*) ac_cv_sizeof_short=$ac_lo;;
35531 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35532 See \`config.log' for more details." >&5
35533 echo "$as_me: error: cannot compute sizeof (short), 77
35534 See \`config.log' for more details." >&2;}
35535    { (exit 1); exit 1; }; } ;;
35536 esac
35537 else
35538   if test "$cross_compiling" = yes; then
35539   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35540 See \`config.log' for more details." >&5
35541 echo "$as_me: error: cannot run test program while cross compiling
35542 See \`config.log' for more details." >&2;}
35543    { (exit 1); exit 1; }; }
35544 else
35545   cat >conftest.$ac_ext <<_ACEOF
35546 /* confdefs.h.  */
35547 _ACEOF
35548 cat confdefs.h >>conftest.$ac_ext
35549 cat >>conftest.$ac_ext <<_ACEOF
35550 /* end confdefs.h.  */
35551 $ac_includes_default
35552 long longval () { return (long) (sizeof (short)); }
35553 unsigned long ulongval () { return (long) (sizeof (short)); }
35554 #include <stdio.h>
35555 #include <stdlib.h>
35556 int
35557 main ()
35558 {
35559
35560   FILE *f = fopen ("conftest.val", "w");
35561   if (! f)
35562     exit (1);
35563   if (((long) (sizeof (short))) < 0)
35564     {
35565       long i = longval ();
35566       if (i != ((long) (sizeof (short))))
35567         exit (1);
35568       fprintf (f, "%ld\n", i);
35569     }
35570   else
35571     {
35572       unsigned long i = ulongval ();
35573       if (i != ((long) (sizeof (short))))
35574         exit (1);
35575       fprintf (f, "%lu\n", i);
35576     }
35577   exit (ferror (f) || fclose (f) != 0);
35578
35579   ;
35580   return 0;
35581 }
35582 _ACEOF
35583 rm -f conftest$ac_exeext
35584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35585   (eval $ac_link) 2>&5
35586   ac_status=$?
35587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590   (eval $ac_try) 2>&5
35591   ac_status=$?
35592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593   (exit $ac_status); }; }; then
35594   ac_cv_sizeof_short=`cat conftest.val`
35595 else
35596   echo "$as_me: program exited with status $ac_status" >&5
35597 echo "$as_me: failed program was:" >&5
35598 sed 's/^/| /' conftest.$ac_ext >&5
35599
35600 ( exit $ac_status )
35601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35602 See \`config.log' for more details." >&5
35603 echo "$as_me: error: cannot compute sizeof (short), 77
35604 See \`config.log' for more details." >&2;}
35605    { (exit 1); exit 1; }; }
35606 fi
35607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35608 fi
35609 fi
35610 rm -f conftest.val
35611 else
35612   ac_cv_sizeof_short=0
35613 fi
35614 fi
35615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35616 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35617 cat >>confdefs.h <<_ACEOF
35618 #define SIZEOF_SHORT $ac_cv_sizeof_short
35619 _ACEOF
35620
35621
35622 echo "$as_me:$LINENO: checking for int" >&5
35623 echo $ECHO_N "checking for int... $ECHO_C" >&6
35624 if test "${ac_cv_type_int+set}" = set; then
35625   echo $ECHO_N "(cached) $ECHO_C" >&6
35626 else
35627   cat >conftest.$ac_ext <<_ACEOF
35628 /* confdefs.h.  */
35629 _ACEOF
35630 cat confdefs.h >>conftest.$ac_ext
35631 cat >>conftest.$ac_ext <<_ACEOF
35632 /* end confdefs.h.  */
35633 $ac_includes_default
35634 int
35635 main ()
35636 {
35637 if ((int *) 0)
35638   return 0;
35639 if (sizeof (int))
35640   return 0;
35641   ;
35642   return 0;
35643 }
35644 _ACEOF
35645 rm -f conftest.$ac_objext
35646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35647   (eval $ac_compile) 2>conftest.er1
35648   ac_status=$?
35649   grep -v '^ *+' conftest.er1 >conftest.err
35650   rm -f conftest.er1
35651   cat conftest.err >&5
35652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653   (exit $ac_status); } &&
35654          { ac_try='test -z "$ac_c_werror_flag"
35655                          || test ! -s conftest.err'
35656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657   (eval $ac_try) 2>&5
35658   ac_status=$?
35659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660   (exit $ac_status); }; } &&
35661          { ac_try='test -s conftest.$ac_objext'
35662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35663   (eval $ac_try) 2>&5
35664   ac_status=$?
35665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666   (exit $ac_status); }; }; then
35667   ac_cv_type_int=yes
35668 else
35669   echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.$ac_ext >&5
35671
35672 ac_cv_type_int=no
35673 fi
35674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35675 fi
35676 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35677 echo "${ECHO_T}$ac_cv_type_int" >&6
35678
35679 echo "$as_me:$LINENO: checking size of int" >&5
35680 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35681 if test "${ac_cv_sizeof_int+set}" = set; then
35682   echo $ECHO_N "(cached) $ECHO_C" >&6
35683 else
35684   if test "$ac_cv_type_int" = yes; then
35685   # The cast to unsigned long works around a bug in the HP C Compiler
35686   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35687   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35688   # This bug is HP SR number 8606223364.
35689   if test "$cross_compiling" = yes; then
35690   # Depending upon the size, compute the lo and hi bounds.
35691 cat >conftest.$ac_ext <<_ACEOF
35692 /* confdefs.h.  */
35693 _ACEOF
35694 cat confdefs.h >>conftest.$ac_ext
35695 cat >>conftest.$ac_ext <<_ACEOF
35696 /* end confdefs.h.  */
35697 $ac_includes_default
35698 int
35699 main ()
35700 {
35701 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35702 test_array [0] = 0
35703
35704   ;
35705   return 0;
35706 }
35707 _ACEOF
35708 rm -f conftest.$ac_objext
35709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35710   (eval $ac_compile) 2>conftest.er1
35711   ac_status=$?
35712   grep -v '^ *+' conftest.er1 >conftest.err
35713   rm -f conftest.er1
35714   cat conftest.err >&5
35715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35716   (exit $ac_status); } &&
35717          { ac_try='test -z "$ac_c_werror_flag"
35718                          || test ! -s conftest.err'
35719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35720   (eval $ac_try) 2>&5
35721   ac_status=$?
35722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723   (exit $ac_status); }; } &&
35724          { ac_try='test -s conftest.$ac_objext'
35725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35726   (eval $ac_try) 2>&5
35727   ac_status=$?
35728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729   (exit $ac_status); }; }; then
35730   ac_lo=0 ac_mid=0
35731   while :; do
35732     cat >conftest.$ac_ext <<_ACEOF
35733 /* confdefs.h.  */
35734 _ACEOF
35735 cat confdefs.h >>conftest.$ac_ext
35736 cat >>conftest.$ac_ext <<_ACEOF
35737 /* end confdefs.h.  */
35738 $ac_includes_default
35739 int
35740 main ()
35741 {
35742 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35743 test_array [0] = 0
35744
35745   ;
35746   return 0;
35747 }
35748 _ACEOF
35749 rm -f conftest.$ac_objext
35750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35751   (eval $ac_compile) 2>conftest.er1
35752   ac_status=$?
35753   grep -v '^ *+' conftest.er1 >conftest.err
35754   rm -f conftest.er1
35755   cat conftest.err >&5
35756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757   (exit $ac_status); } &&
35758          { ac_try='test -z "$ac_c_werror_flag"
35759                          || test ! -s conftest.err'
35760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761   (eval $ac_try) 2>&5
35762   ac_status=$?
35763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764   (exit $ac_status); }; } &&
35765          { ac_try='test -s conftest.$ac_objext'
35766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35767   (eval $ac_try) 2>&5
35768   ac_status=$?
35769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770   (exit $ac_status); }; }; then
35771   ac_hi=$ac_mid; break
35772 else
35773   echo "$as_me: failed program was:" >&5
35774 sed 's/^/| /' conftest.$ac_ext >&5
35775
35776 ac_lo=`expr $ac_mid + 1`
35777                     if test $ac_lo -le $ac_mid; then
35778                       ac_lo= ac_hi=
35779                       break
35780                     fi
35781                     ac_mid=`expr 2 '*' $ac_mid + 1`
35782 fi
35783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35784   done
35785 else
35786   echo "$as_me: failed program was:" >&5
35787 sed 's/^/| /' conftest.$ac_ext >&5
35788
35789 cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h.  */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h.  */
35795 $ac_includes_default
35796 int
35797 main ()
35798 {
35799 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35800 test_array [0] = 0
35801
35802   ;
35803   return 0;
35804 }
35805 _ACEOF
35806 rm -f conftest.$ac_objext
35807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35808   (eval $ac_compile) 2>conftest.er1
35809   ac_status=$?
35810   grep -v '^ *+' conftest.er1 >conftest.err
35811   rm -f conftest.er1
35812   cat conftest.err >&5
35813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814   (exit $ac_status); } &&
35815          { ac_try='test -z "$ac_c_werror_flag"
35816                          || test ! -s conftest.err'
35817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35818   (eval $ac_try) 2>&5
35819   ac_status=$?
35820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821   (exit $ac_status); }; } &&
35822          { ac_try='test -s conftest.$ac_objext'
35823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35824   (eval $ac_try) 2>&5
35825   ac_status=$?
35826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827   (exit $ac_status); }; }; then
35828   ac_hi=-1 ac_mid=-1
35829   while :; do
35830     cat >conftest.$ac_ext <<_ACEOF
35831 /* confdefs.h.  */
35832 _ACEOF
35833 cat confdefs.h >>conftest.$ac_ext
35834 cat >>conftest.$ac_ext <<_ACEOF
35835 /* end confdefs.h.  */
35836 $ac_includes_default
35837 int
35838 main ()
35839 {
35840 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35841 test_array [0] = 0
35842
35843   ;
35844   return 0;
35845 }
35846 _ACEOF
35847 rm -f conftest.$ac_objext
35848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35849   (eval $ac_compile) 2>conftest.er1
35850   ac_status=$?
35851   grep -v '^ *+' conftest.er1 >conftest.err
35852   rm -f conftest.er1
35853   cat conftest.err >&5
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); } &&
35856          { ac_try='test -z "$ac_c_werror_flag"
35857                          || test ! -s conftest.err'
35858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859   (eval $ac_try) 2>&5
35860   ac_status=$?
35861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862   (exit $ac_status); }; } &&
35863          { ac_try='test -s conftest.$ac_objext'
35864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35865   (eval $ac_try) 2>&5
35866   ac_status=$?
35867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868   (exit $ac_status); }; }; then
35869   ac_lo=$ac_mid; break
35870 else
35871   echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35873
35874 ac_hi=`expr '(' $ac_mid ')' - 1`
35875                        if test $ac_mid -le $ac_hi; then
35876                          ac_lo= ac_hi=
35877                          break
35878                        fi
35879                        ac_mid=`expr 2 '*' $ac_mid`
35880 fi
35881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35882   done
35883 else
35884   echo "$as_me: failed program was:" >&5
35885 sed 's/^/| /' conftest.$ac_ext >&5
35886
35887 ac_lo= ac_hi=
35888 fi
35889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35890 fi
35891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35892 # Binary search between lo and hi bounds.
35893 while test "x$ac_lo" != "x$ac_hi"; do
35894   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35895   cat >conftest.$ac_ext <<_ACEOF
35896 /* confdefs.h.  */
35897 _ACEOF
35898 cat confdefs.h >>conftest.$ac_ext
35899 cat >>conftest.$ac_ext <<_ACEOF
35900 /* end confdefs.h.  */
35901 $ac_includes_default
35902 int
35903 main ()
35904 {
35905 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35906 test_array [0] = 0
35907
35908   ;
35909   return 0;
35910 }
35911 _ACEOF
35912 rm -f conftest.$ac_objext
35913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35914   (eval $ac_compile) 2>conftest.er1
35915   ac_status=$?
35916   grep -v '^ *+' conftest.er1 >conftest.err
35917   rm -f conftest.er1
35918   cat conftest.err >&5
35919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920   (exit $ac_status); } &&
35921          { ac_try='test -z "$ac_c_werror_flag"
35922                          || test ! -s conftest.err'
35923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35924   (eval $ac_try) 2>&5
35925   ac_status=$?
35926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927   (exit $ac_status); }; } &&
35928          { ac_try='test -s conftest.$ac_objext'
35929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35930   (eval $ac_try) 2>&5
35931   ac_status=$?
35932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933   (exit $ac_status); }; }; then
35934   ac_hi=$ac_mid
35935 else
35936   echo "$as_me: failed program was:" >&5
35937 sed 's/^/| /' conftest.$ac_ext >&5
35938
35939 ac_lo=`expr '(' $ac_mid ')' + 1`
35940 fi
35941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35942 done
35943 case $ac_lo in
35944 ?*) ac_cv_sizeof_int=$ac_lo;;
35945 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35946 See \`config.log' for more details." >&5
35947 echo "$as_me: error: cannot compute sizeof (int), 77
35948 See \`config.log' for more details." >&2;}
35949    { (exit 1); exit 1; }; } ;;
35950 esac
35951 else
35952   if test "$cross_compiling" = yes; then
35953   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35954 See \`config.log' for more details." >&5
35955 echo "$as_me: error: cannot run test program while cross compiling
35956 See \`config.log' for more details." >&2;}
35957    { (exit 1); exit 1; }; }
35958 else
35959   cat >conftest.$ac_ext <<_ACEOF
35960 /* confdefs.h.  */
35961 _ACEOF
35962 cat confdefs.h >>conftest.$ac_ext
35963 cat >>conftest.$ac_ext <<_ACEOF
35964 /* end confdefs.h.  */
35965 $ac_includes_default
35966 long longval () { return (long) (sizeof (int)); }
35967 unsigned long ulongval () { return (long) (sizeof (int)); }
35968 #include <stdio.h>
35969 #include <stdlib.h>
35970 int
35971 main ()
35972 {
35973
35974   FILE *f = fopen ("conftest.val", "w");
35975   if (! f)
35976     exit (1);
35977   if (((long) (sizeof (int))) < 0)
35978     {
35979       long i = longval ();
35980       if (i != ((long) (sizeof (int))))
35981         exit (1);
35982       fprintf (f, "%ld\n", i);
35983     }
35984   else
35985     {
35986       unsigned long i = ulongval ();
35987       if (i != ((long) (sizeof (int))))
35988         exit (1);
35989       fprintf (f, "%lu\n", i);
35990     }
35991   exit (ferror (f) || fclose (f) != 0);
35992
35993   ;
35994   return 0;
35995 }
35996 _ACEOF
35997 rm -f conftest$ac_exeext
35998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35999   (eval $ac_link) 2>&5
36000   ac_status=$?
36001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004   (eval $ac_try) 2>&5
36005   ac_status=$?
36006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007   (exit $ac_status); }; }; then
36008   ac_cv_sizeof_int=`cat conftest.val`
36009 else
36010   echo "$as_me: program exited with status $ac_status" >&5
36011 echo "$as_me: failed program was:" >&5
36012 sed 's/^/| /' conftest.$ac_ext >&5
36013
36014 ( exit $ac_status )
36015 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36016 See \`config.log' for more details." >&5
36017 echo "$as_me: error: cannot compute sizeof (int), 77
36018 See \`config.log' for more details." >&2;}
36019    { (exit 1); exit 1; }; }
36020 fi
36021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36022 fi
36023 fi
36024 rm -f conftest.val
36025 else
36026   ac_cv_sizeof_int=0
36027 fi
36028 fi
36029 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36030 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36031 cat >>confdefs.h <<_ACEOF
36032 #define SIZEOF_INT $ac_cv_sizeof_int
36033 _ACEOF
36034
36035
36036 echo "$as_me:$LINENO: checking for long" >&5
36037 echo $ECHO_N "checking for long... $ECHO_C" >&6
36038 if test "${ac_cv_type_long+set}" = set; then
36039   echo $ECHO_N "(cached) $ECHO_C" >&6
36040 else
36041   cat >conftest.$ac_ext <<_ACEOF
36042 /* confdefs.h.  */
36043 _ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h.  */
36047 $ac_includes_default
36048 int
36049 main ()
36050 {
36051 if ((long *) 0)
36052   return 0;
36053 if (sizeof (long))
36054   return 0;
36055   ;
36056   return 0;
36057 }
36058 _ACEOF
36059 rm -f conftest.$ac_objext
36060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36061   (eval $ac_compile) 2>conftest.er1
36062   ac_status=$?
36063   grep -v '^ *+' conftest.er1 >conftest.err
36064   rm -f conftest.er1
36065   cat conftest.err >&5
36066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067   (exit $ac_status); } &&
36068          { ac_try='test -z "$ac_c_werror_flag"
36069                          || test ! -s conftest.err'
36070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36071   (eval $ac_try) 2>&5
36072   ac_status=$?
36073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074   (exit $ac_status); }; } &&
36075          { ac_try='test -s conftest.$ac_objext'
36076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36077   (eval $ac_try) 2>&5
36078   ac_status=$?
36079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); }; }; then
36081   ac_cv_type_long=yes
36082 else
36083   echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36085
36086 ac_cv_type_long=no
36087 fi
36088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36089 fi
36090 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36091 echo "${ECHO_T}$ac_cv_type_long" >&6
36092
36093 echo "$as_me:$LINENO: checking size of long" >&5
36094 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36095 if test "${ac_cv_sizeof_long+set}" = set; then
36096   echo $ECHO_N "(cached) $ECHO_C" >&6
36097 else
36098   if test "$ac_cv_type_long" = yes; then
36099   # The cast to unsigned long works around a bug in the HP C Compiler
36100   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36101   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36102   # This bug is HP SR number 8606223364.
36103   if test "$cross_compiling" = yes; then
36104   # Depending upon the size, compute the lo and hi bounds.
36105 cat >conftest.$ac_ext <<_ACEOF
36106 /* confdefs.h.  */
36107 _ACEOF
36108 cat confdefs.h >>conftest.$ac_ext
36109 cat >>conftest.$ac_ext <<_ACEOF
36110 /* end confdefs.h.  */
36111 $ac_includes_default
36112 int
36113 main ()
36114 {
36115 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36116 test_array [0] = 0
36117
36118   ;
36119   return 0;
36120 }
36121 _ACEOF
36122 rm -f conftest.$ac_objext
36123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36124   (eval $ac_compile) 2>conftest.er1
36125   ac_status=$?
36126   grep -v '^ *+' conftest.er1 >conftest.err
36127   rm -f conftest.er1
36128   cat conftest.err >&5
36129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130   (exit $ac_status); } &&
36131          { ac_try='test -z "$ac_c_werror_flag"
36132                          || test ! -s conftest.err'
36133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36134   (eval $ac_try) 2>&5
36135   ac_status=$?
36136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137   (exit $ac_status); }; } &&
36138          { ac_try='test -s conftest.$ac_objext'
36139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36140   (eval $ac_try) 2>&5
36141   ac_status=$?
36142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143   (exit $ac_status); }; }; then
36144   ac_lo=0 ac_mid=0
36145   while :; do
36146     cat >conftest.$ac_ext <<_ACEOF
36147 /* confdefs.h.  */
36148 _ACEOF
36149 cat confdefs.h >>conftest.$ac_ext
36150 cat >>conftest.$ac_ext <<_ACEOF
36151 /* end confdefs.h.  */
36152 $ac_includes_default
36153 int
36154 main ()
36155 {
36156 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36157 test_array [0] = 0
36158
36159   ;
36160   return 0;
36161 }
36162 _ACEOF
36163 rm -f conftest.$ac_objext
36164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36165   (eval $ac_compile) 2>conftest.er1
36166   ac_status=$?
36167   grep -v '^ *+' conftest.er1 >conftest.err
36168   rm -f conftest.er1
36169   cat conftest.err >&5
36170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171   (exit $ac_status); } &&
36172          { ac_try='test -z "$ac_c_werror_flag"
36173                          || test ! -s conftest.err'
36174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36175   (eval $ac_try) 2>&5
36176   ac_status=$?
36177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178   (exit $ac_status); }; } &&
36179          { ac_try='test -s conftest.$ac_objext'
36180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36181   (eval $ac_try) 2>&5
36182   ac_status=$?
36183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184   (exit $ac_status); }; }; then
36185   ac_hi=$ac_mid; break
36186 else
36187   echo "$as_me: failed program was:" >&5
36188 sed 's/^/| /' conftest.$ac_ext >&5
36189
36190 ac_lo=`expr $ac_mid + 1`
36191                     if test $ac_lo -le $ac_mid; then
36192                       ac_lo= ac_hi=
36193                       break
36194                     fi
36195                     ac_mid=`expr 2 '*' $ac_mid + 1`
36196 fi
36197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36198   done
36199 else
36200   echo "$as_me: failed program was:" >&5
36201 sed 's/^/| /' conftest.$ac_ext >&5
36202
36203 cat >conftest.$ac_ext <<_ACEOF
36204 /* confdefs.h.  */
36205 _ACEOF
36206 cat confdefs.h >>conftest.$ac_ext
36207 cat >>conftest.$ac_ext <<_ACEOF
36208 /* end confdefs.h.  */
36209 $ac_includes_default
36210 int
36211 main ()
36212 {
36213 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36214 test_array [0] = 0
36215
36216   ;
36217   return 0;
36218 }
36219 _ACEOF
36220 rm -f conftest.$ac_objext
36221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36222   (eval $ac_compile) 2>conftest.er1
36223   ac_status=$?
36224   grep -v '^ *+' conftest.er1 >conftest.err
36225   rm -f conftest.er1
36226   cat conftest.err >&5
36227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228   (exit $ac_status); } &&
36229          { ac_try='test -z "$ac_c_werror_flag"
36230                          || test ! -s conftest.err'
36231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36232   (eval $ac_try) 2>&5
36233   ac_status=$?
36234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235   (exit $ac_status); }; } &&
36236          { ac_try='test -s conftest.$ac_objext'
36237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36238   (eval $ac_try) 2>&5
36239   ac_status=$?
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); }; }; then
36242   ac_hi=-1 ac_mid=-1
36243   while :; do
36244     cat >conftest.$ac_ext <<_ACEOF
36245 /* confdefs.h.  */
36246 _ACEOF
36247 cat confdefs.h >>conftest.$ac_ext
36248 cat >>conftest.$ac_ext <<_ACEOF
36249 /* end confdefs.h.  */
36250 $ac_includes_default
36251 int
36252 main ()
36253 {
36254 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36255 test_array [0] = 0
36256
36257   ;
36258   return 0;
36259 }
36260 _ACEOF
36261 rm -f conftest.$ac_objext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36263   (eval $ac_compile) 2>conftest.er1
36264   ac_status=$?
36265   grep -v '^ *+' conftest.er1 >conftest.err
36266   rm -f conftest.er1
36267   cat conftest.err >&5
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); } &&
36270          { ac_try='test -z "$ac_c_werror_flag"
36271                          || test ! -s conftest.err'
36272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273   (eval $ac_try) 2>&5
36274   ac_status=$?
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); }; } &&
36277          { ac_try='test -s conftest.$ac_objext'
36278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279   (eval $ac_try) 2>&5
36280   ac_status=$?
36281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282   (exit $ac_status); }; }; then
36283   ac_lo=$ac_mid; break
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288 ac_hi=`expr '(' $ac_mid ')' - 1`
36289                        if test $ac_mid -le $ac_hi; then
36290                          ac_lo= ac_hi=
36291                          break
36292                        fi
36293                        ac_mid=`expr 2 '*' $ac_mid`
36294 fi
36295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36296   done
36297 else
36298   echo "$as_me: failed program was:" >&5
36299 sed 's/^/| /' conftest.$ac_ext >&5
36300
36301 ac_lo= ac_hi=
36302 fi
36303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36304 fi
36305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36306 # Binary search between lo and hi bounds.
36307 while test "x$ac_lo" != "x$ac_hi"; do
36308   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36309   cat >conftest.$ac_ext <<_ACEOF
36310 /* confdefs.h.  */
36311 _ACEOF
36312 cat confdefs.h >>conftest.$ac_ext
36313 cat >>conftest.$ac_ext <<_ACEOF
36314 /* end confdefs.h.  */
36315 $ac_includes_default
36316 int
36317 main ()
36318 {
36319 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36320 test_array [0] = 0
36321
36322   ;
36323   return 0;
36324 }
36325 _ACEOF
36326 rm -f conftest.$ac_objext
36327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36328   (eval $ac_compile) 2>conftest.er1
36329   ac_status=$?
36330   grep -v '^ *+' conftest.er1 >conftest.err
36331   rm -f conftest.er1
36332   cat conftest.err >&5
36333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36334   (exit $ac_status); } &&
36335          { ac_try='test -z "$ac_c_werror_flag"
36336                          || test ! -s conftest.err'
36337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36338   (eval $ac_try) 2>&5
36339   ac_status=$?
36340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341   (exit $ac_status); }; } &&
36342          { ac_try='test -s conftest.$ac_objext'
36343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36344   (eval $ac_try) 2>&5
36345   ac_status=$?
36346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347   (exit $ac_status); }; }; then
36348   ac_hi=$ac_mid
36349 else
36350   echo "$as_me: failed program was:" >&5
36351 sed 's/^/| /' conftest.$ac_ext >&5
36352
36353 ac_lo=`expr '(' $ac_mid ')' + 1`
36354 fi
36355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36356 done
36357 case $ac_lo in
36358 ?*) ac_cv_sizeof_long=$ac_lo;;
36359 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36360 See \`config.log' for more details." >&5
36361 echo "$as_me: error: cannot compute sizeof (long), 77
36362 See \`config.log' for more details." >&2;}
36363    { (exit 1); exit 1; }; } ;;
36364 esac
36365 else
36366   if test "$cross_compiling" = yes; then
36367   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36368 See \`config.log' for more details." >&5
36369 echo "$as_me: error: cannot run test program while cross compiling
36370 See \`config.log' for more details." >&2;}
36371    { (exit 1); exit 1; }; }
36372 else
36373   cat >conftest.$ac_ext <<_ACEOF
36374 /* confdefs.h.  */
36375 _ACEOF
36376 cat confdefs.h >>conftest.$ac_ext
36377 cat >>conftest.$ac_ext <<_ACEOF
36378 /* end confdefs.h.  */
36379 $ac_includes_default
36380 long longval () { return (long) (sizeof (long)); }
36381 unsigned long ulongval () { return (long) (sizeof (long)); }
36382 #include <stdio.h>
36383 #include <stdlib.h>
36384 int
36385 main ()
36386 {
36387
36388   FILE *f = fopen ("conftest.val", "w");
36389   if (! f)
36390     exit (1);
36391   if (((long) (sizeof (long))) < 0)
36392     {
36393       long i = longval ();
36394       if (i != ((long) (sizeof (long))))
36395         exit (1);
36396       fprintf (f, "%ld\n", i);
36397     }
36398   else
36399     {
36400       unsigned long i = ulongval ();
36401       if (i != ((long) (sizeof (long))))
36402         exit (1);
36403       fprintf (f, "%lu\n", i);
36404     }
36405   exit (ferror (f) || fclose (f) != 0);
36406
36407   ;
36408   return 0;
36409 }
36410 _ACEOF
36411 rm -f conftest$ac_exeext
36412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36413   (eval $ac_link) 2>&5
36414   ac_status=$?
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36418   (eval $ac_try) 2>&5
36419   ac_status=$?
36420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421   (exit $ac_status); }; }; then
36422   ac_cv_sizeof_long=`cat conftest.val`
36423 else
36424   echo "$as_me: program exited with status $ac_status" >&5
36425 echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36427
36428 ( exit $ac_status )
36429 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36430 See \`config.log' for more details." >&5
36431 echo "$as_me: error: cannot compute sizeof (long), 77
36432 See \`config.log' for more details." >&2;}
36433    { (exit 1); exit 1; }; }
36434 fi
36435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36436 fi
36437 fi
36438 rm -f conftest.val
36439 else
36440   ac_cv_sizeof_long=0
36441 fi
36442 fi
36443 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36444 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36445 cat >>confdefs.h <<_ACEOF
36446 #define SIZEOF_LONG $ac_cv_sizeof_long
36447 _ACEOF
36448
36449
36450 echo "$as_me:$LINENO: checking for long long" >&5
36451 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36452 if test "${ac_cv_type_long_long+set}" = set; then
36453   echo $ECHO_N "(cached) $ECHO_C" >&6
36454 else
36455   cat >conftest.$ac_ext <<_ACEOF
36456 /* confdefs.h.  */
36457 _ACEOF
36458 cat confdefs.h >>conftest.$ac_ext
36459 cat >>conftest.$ac_ext <<_ACEOF
36460 /* end confdefs.h.  */
36461 $ac_includes_default
36462 int
36463 main ()
36464 {
36465 if ((long long *) 0)
36466   return 0;
36467 if (sizeof (long long))
36468   return 0;
36469   ;
36470   return 0;
36471 }
36472 _ACEOF
36473 rm -f conftest.$ac_objext
36474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36475   (eval $ac_compile) 2>conftest.er1
36476   ac_status=$?
36477   grep -v '^ *+' conftest.er1 >conftest.err
36478   rm -f conftest.er1
36479   cat conftest.err >&5
36480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481   (exit $ac_status); } &&
36482          { ac_try='test -z "$ac_c_werror_flag"
36483                          || test ! -s conftest.err'
36484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36485   (eval $ac_try) 2>&5
36486   ac_status=$?
36487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488   (exit $ac_status); }; } &&
36489          { ac_try='test -s conftest.$ac_objext'
36490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491   (eval $ac_try) 2>&5
36492   ac_status=$?
36493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494   (exit $ac_status); }; }; then
36495   ac_cv_type_long_long=yes
36496 else
36497   echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36499
36500 ac_cv_type_long_long=no
36501 fi
36502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36503 fi
36504 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36505 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36506
36507 echo "$as_me:$LINENO: checking size of long long" >&5
36508 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36509 if test "${ac_cv_sizeof_long_long+set}" = set; then
36510   echo $ECHO_N "(cached) $ECHO_C" >&6
36511 else
36512   if test "$ac_cv_type_long_long" = yes; then
36513   # The cast to unsigned long works around a bug in the HP C Compiler
36514   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36515   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36516   # This bug is HP SR number 8606223364.
36517   if test "$cross_compiling" = yes; then
36518   # Depending upon the size, compute the lo and hi bounds.
36519 cat >conftest.$ac_ext <<_ACEOF
36520 /* confdefs.h.  */
36521 _ACEOF
36522 cat confdefs.h >>conftest.$ac_ext
36523 cat >>conftest.$ac_ext <<_ACEOF
36524 /* end confdefs.h.  */
36525 $ac_includes_default
36526 int
36527 main ()
36528 {
36529 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36530 test_array [0] = 0
36531
36532   ;
36533   return 0;
36534 }
36535 _ACEOF
36536 rm -f conftest.$ac_objext
36537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36538   (eval $ac_compile) 2>conftest.er1
36539   ac_status=$?
36540   grep -v '^ *+' conftest.er1 >conftest.err
36541   rm -f conftest.er1
36542   cat conftest.err >&5
36543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544   (exit $ac_status); } &&
36545          { ac_try='test -z "$ac_c_werror_flag"
36546                          || test ! -s conftest.err'
36547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36548   (eval $ac_try) 2>&5
36549   ac_status=$?
36550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551   (exit $ac_status); }; } &&
36552          { ac_try='test -s conftest.$ac_objext'
36553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36554   (eval $ac_try) 2>&5
36555   ac_status=$?
36556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557   (exit $ac_status); }; }; then
36558   ac_lo=0 ac_mid=0
36559   while :; do
36560     cat >conftest.$ac_ext <<_ACEOF
36561 /* confdefs.h.  */
36562 _ACEOF
36563 cat confdefs.h >>conftest.$ac_ext
36564 cat >>conftest.$ac_ext <<_ACEOF
36565 /* end confdefs.h.  */
36566 $ac_includes_default
36567 int
36568 main ()
36569 {
36570 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36571 test_array [0] = 0
36572
36573   ;
36574   return 0;
36575 }
36576 _ACEOF
36577 rm -f conftest.$ac_objext
36578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36579   (eval $ac_compile) 2>conftest.er1
36580   ac_status=$?
36581   grep -v '^ *+' conftest.er1 >conftest.err
36582   rm -f conftest.er1
36583   cat conftest.err >&5
36584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585   (exit $ac_status); } &&
36586          { ac_try='test -z "$ac_c_werror_flag"
36587                          || test ! -s conftest.err'
36588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36589   (eval $ac_try) 2>&5
36590   ac_status=$?
36591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592   (exit $ac_status); }; } &&
36593          { ac_try='test -s conftest.$ac_objext'
36594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36595   (eval $ac_try) 2>&5
36596   ac_status=$?
36597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598   (exit $ac_status); }; }; then
36599   ac_hi=$ac_mid; break
36600 else
36601   echo "$as_me: failed program was:" >&5
36602 sed 's/^/| /' conftest.$ac_ext >&5
36603
36604 ac_lo=`expr $ac_mid + 1`
36605                     if test $ac_lo -le $ac_mid; then
36606                       ac_lo= ac_hi=
36607                       break
36608                     fi
36609                     ac_mid=`expr 2 '*' $ac_mid + 1`
36610 fi
36611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36612   done
36613 else
36614   echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36616
36617 cat >conftest.$ac_ext <<_ACEOF
36618 /* confdefs.h.  */
36619 _ACEOF
36620 cat confdefs.h >>conftest.$ac_ext
36621 cat >>conftest.$ac_ext <<_ACEOF
36622 /* end confdefs.h.  */
36623 $ac_includes_default
36624 int
36625 main ()
36626 {
36627 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36628 test_array [0] = 0
36629
36630   ;
36631   return 0;
36632 }
36633 _ACEOF
36634 rm -f conftest.$ac_objext
36635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36636   (eval $ac_compile) 2>conftest.er1
36637   ac_status=$?
36638   grep -v '^ *+' conftest.er1 >conftest.err
36639   rm -f conftest.er1
36640   cat conftest.err >&5
36641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36642   (exit $ac_status); } &&
36643          { ac_try='test -z "$ac_c_werror_flag"
36644                          || test ! -s conftest.err'
36645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36646   (eval $ac_try) 2>&5
36647   ac_status=$?
36648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649   (exit $ac_status); }; } &&
36650          { ac_try='test -s conftest.$ac_objext'
36651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36652   (eval $ac_try) 2>&5
36653   ac_status=$?
36654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655   (exit $ac_status); }; }; then
36656   ac_hi=-1 ac_mid=-1
36657   while :; do
36658     cat >conftest.$ac_ext <<_ACEOF
36659 /* confdefs.h.  */
36660 _ACEOF
36661 cat confdefs.h >>conftest.$ac_ext
36662 cat >>conftest.$ac_ext <<_ACEOF
36663 /* end confdefs.h.  */
36664 $ac_includes_default
36665 int
36666 main ()
36667 {
36668 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36669 test_array [0] = 0
36670
36671   ;
36672   return 0;
36673 }
36674 _ACEOF
36675 rm -f conftest.$ac_objext
36676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36677   (eval $ac_compile) 2>conftest.er1
36678   ac_status=$?
36679   grep -v '^ *+' conftest.er1 >conftest.err
36680   rm -f conftest.er1
36681   cat conftest.err >&5
36682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683   (exit $ac_status); } &&
36684          { ac_try='test -z "$ac_c_werror_flag"
36685                          || test ! -s conftest.err'
36686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36687   (eval $ac_try) 2>&5
36688   ac_status=$?
36689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690   (exit $ac_status); }; } &&
36691          { ac_try='test -s conftest.$ac_objext'
36692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36693   (eval $ac_try) 2>&5
36694   ac_status=$?
36695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36696   (exit $ac_status); }; }; then
36697   ac_lo=$ac_mid; break
36698 else
36699   echo "$as_me: failed program was:" >&5
36700 sed 's/^/| /' conftest.$ac_ext >&5
36701
36702 ac_hi=`expr '(' $ac_mid ')' - 1`
36703                        if test $ac_mid -le $ac_hi; then
36704                          ac_lo= ac_hi=
36705                          break
36706                        fi
36707                        ac_mid=`expr 2 '*' $ac_mid`
36708 fi
36709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36710   done
36711 else
36712   echo "$as_me: failed program was:" >&5
36713 sed 's/^/| /' conftest.$ac_ext >&5
36714
36715 ac_lo= ac_hi=
36716 fi
36717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36718 fi
36719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36720 # Binary search between lo and hi bounds.
36721 while test "x$ac_lo" != "x$ac_hi"; do
36722   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36723   cat >conftest.$ac_ext <<_ACEOF
36724 /* confdefs.h.  */
36725 _ACEOF
36726 cat confdefs.h >>conftest.$ac_ext
36727 cat >>conftest.$ac_ext <<_ACEOF
36728 /* end confdefs.h.  */
36729 $ac_includes_default
36730 int
36731 main ()
36732 {
36733 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36734 test_array [0] = 0
36735
36736   ;
36737   return 0;
36738 }
36739 _ACEOF
36740 rm -f conftest.$ac_objext
36741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36742   (eval $ac_compile) 2>conftest.er1
36743   ac_status=$?
36744   grep -v '^ *+' conftest.er1 >conftest.err
36745   rm -f conftest.er1
36746   cat conftest.err >&5
36747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748   (exit $ac_status); } &&
36749          { ac_try='test -z "$ac_c_werror_flag"
36750                          || test ! -s conftest.err'
36751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752   (eval $ac_try) 2>&5
36753   ac_status=$?
36754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755   (exit $ac_status); }; } &&
36756          { ac_try='test -s conftest.$ac_objext'
36757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36758   (eval $ac_try) 2>&5
36759   ac_status=$?
36760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761   (exit $ac_status); }; }; then
36762   ac_hi=$ac_mid
36763 else
36764   echo "$as_me: failed program was:" >&5
36765 sed 's/^/| /' conftest.$ac_ext >&5
36766
36767 ac_lo=`expr '(' $ac_mid ')' + 1`
36768 fi
36769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36770 done
36771 case $ac_lo in
36772 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36773 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36774 See \`config.log' for more details." >&5
36775 echo "$as_me: error: cannot compute sizeof (long long), 77
36776 See \`config.log' for more details." >&2;}
36777    { (exit 1); exit 1; }; } ;;
36778 esac
36779 else
36780   if test "$cross_compiling" = yes; then
36781   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36782 See \`config.log' for more details." >&5
36783 echo "$as_me: error: cannot run test program while cross compiling
36784 See \`config.log' for more details." >&2;}
36785    { (exit 1); exit 1; }; }
36786 else
36787   cat >conftest.$ac_ext <<_ACEOF
36788 /* confdefs.h.  */
36789 _ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h.  */
36793 $ac_includes_default
36794 long longval () { return (long) (sizeof (long long)); }
36795 unsigned long ulongval () { return (long) (sizeof (long long)); }
36796 #include <stdio.h>
36797 #include <stdlib.h>
36798 int
36799 main ()
36800 {
36801
36802   FILE *f = fopen ("conftest.val", "w");
36803   if (! f)
36804     exit (1);
36805   if (((long) (sizeof (long long))) < 0)
36806     {
36807       long i = longval ();
36808       if (i != ((long) (sizeof (long long))))
36809         exit (1);
36810       fprintf (f, "%ld\n", i);
36811     }
36812   else
36813     {
36814       unsigned long i = ulongval ();
36815       if (i != ((long) (sizeof (long long))))
36816         exit (1);
36817       fprintf (f, "%lu\n", i);
36818     }
36819   exit (ferror (f) || fclose (f) != 0);
36820
36821   ;
36822   return 0;
36823 }
36824 _ACEOF
36825 rm -f conftest$ac_exeext
36826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36827   (eval $ac_link) 2>&5
36828   ac_status=$?
36829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36832   (eval $ac_try) 2>&5
36833   ac_status=$?
36834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835   (exit $ac_status); }; }; then
36836   ac_cv_sizeof_long_long=`cat conftest.val`
36837 else
36838   echo "$as_me: program exited with status $ac_status" >&5
36839 echo "$as_me: failed program was:" >&5
36840 sed 's/^/| /' conftest.$ac_ext >&5
36841
36842 ( exit $ac_status )
36843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36844 See \`config.log' for more details." >&5
36845 echo "$as_me: error: cannot compute sizeof (long long), 77
36846 See \`config.log' for more details." >&2;}
36847    { (exit 1); exit 1; }; }
36848 fi
36849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36850 fi
36851 fi
36852 rm -f conftest.val
36853 else
36854   ac_cv_sizeof_long_long=0
36855 fi
36856 fi
36857 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36858 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36859 cat >>confdefs.h <<_ACEOF
36860 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36861 _ACEOF
36862
36863
36864 echo "$as_me:$LINENO: checking for wchar_t" >&5
36865 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36866 if test "${ac_cv_type_wchar_t+set}" = set; then
36867   echo $ECHO_N "(cached) $ECHO_C" >&6
36868 else
36869   cat >conftest.$ac_ext <<_ACEOF
36870 /* confdefs.h.  */
36871 _ACEOF
36872 cat confdefs.h >>conftest.$ac_ext
36873 cat >>conftest.$ac_ext <<_ACEOF
36874 /* end confdefs.h.  */
36875 $ac_includes_default
36876 int
36877 main ()
36878 {
36879 if ((wchar_t *) 0)
36880   return 0;
36881 if (sizeof (wchar_t))
36882   return 0;
36883   ;
36884   return 0;
36885 }
36886 _ACEOF
36887 rm -f conftest.$ac_objext
36888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36889   (eval $ac_compile) 2>conftest.er1
36890   ac_status=$?
36891   grep -v '^ *+' conftest.er1 >conftest.err
36892   rm -f conftest.er1
36893   cat conftest.err >&5
36894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895   (exit $ac_status); } &&
36896          { ac_try='test -z "$ac_c_werror_flag"
36897                          || test ! -s conftest.err'
36898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36899   (eval $ac_try) 2>&5
36900   ac_status=$?
36901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902   (exit $ac_status); }; } &&
36903          { ac_try='test -s conftest.$ac_objext'
36904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36905   (eval $ac_try) 2>&5
36906   ac_status=$?
36907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908   (exit $ac_status); }; }; then
36909   ac_cv_type_wchar_t=yes
36910 else
36911   echo "$as_me: failed program was:" >&5
36912 sed 's/^/| /' conftest.$ac_ext >&5
36913
36914 ac_cv_type_wchar_t=no
36915 fi
36916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36917 fi
36918 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36919 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36920
36921 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36922 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36923 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36924   echo $ECHO_N "(cached) $ECHO_C" >&6
36925 else
36926   if test "$ac_cv_type_wchar_t" = yes; then
36927   # The cast to unsigned long works around a bug in the HP C Compiler
36928   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36929   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36930   # This bug is HP SR number 8606223364.
36931   if test "$cross_compiling" = yes; then
36932   # Depending upon the size, compute the lo and hi bounds.
36933 cat >conftest.$ac_ext <<_ACEOF
36934 /* confdefs.h.  */
36935 _ACEOF
36936 cat confdefs.h >>conftest.$ac_ext
36937 cat >>conftest.$ac_ext <<_ACEOF
36938 /* end confdefs.h.  */
36939 $ac_includes_default
36940 int
36941 main ()
36942 {
36943 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
36944 test_array [0] = 0
36945
36946   ;
36947   return 0;
36948 }
36949 _ACEOF
36950 rm -f conftest.$ac_objext
36951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36952   (eval $ac_compile) 2>conftest.er1
36953   ac_status=$?
36954   grep -v '^ *+' conftest.er1 >conftest.err
36955   rm -f conftest.er1
36956   cat conftest.err >&5
36957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958   (exit $ac_status); } &&
36959          { ac_try='test -z "$ac_c_werror_flag"
36960                          || test ! -s conftest.err'
36961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36962   (eval $ac_try) 2>&5
36963   ac_status=$?
36964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965   (exit $ac_status); }; } &&
36966          { ac_try='test -s conftest.$ac_objext'
36967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36968   (eval $ac_try) 2>&5
36969   ac_status=$?
36970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971   (exit $ac_status); }; }; then
36972   ac_lo=0 ac_mid=0
36973   while :; do
36974     cat >conftest.$ac_ext <<_ACEOF
36975 /* confdefs.h.  */
36976 _ACEOF
36977 cat confdefs.h >>conftest.$ac_ext
36978 cat >>conftest.$ac_ext <<_ACEOF
36979 /* end confdefs.h.  */
36980 $ac_includes_default
36981 int
36982 main ()
36983 {
36984 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36985 test_array [0] = 0
36986
36987   ;
36988   return 0;
36989 }
36990 _ACEOF
36991 rm -f conftest.$ac_objext
36992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36993   (eval $ac_compile) 2>conftest.er1
36994   ac_status=$?
36995   grep -v '^ *+' conftest.er1 >conftest.err
36996   rm -f conftest.er1
36997   cat conftest.err >&5
36998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999   (exit $ac_status); } &&
37000          { ac_try='test -z "$ac_c_werror_flag"
37001                          || test ! -s conftest.err'
37002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37003   (eval $ac_try) 2>&5
37004   ac_status=$?
37005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006   (exit $ac_status); }; } &&
37007          { ac_try='test -s conftest.$ac_objext'
37008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37009   (eval $ac_try) 2>&5
37010   ac_status=$?
37011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012   (exit $ac_status); }; }; then
37013   ac_hi=$ac_mid; break
37014 else
37015   echo "$as_me: failed program was:" >&5
37016 sed 's/^/| /' conftest.$ac_ext >&5
37017
37018 ac_lo=`expr $ac_mid + 1`
37019                     if test $ac_lo -le $ac_mid; then
37020                       ac_lo= ac_hi=
37021                       break
37022                     fi
37023                     ac_mid=`expr 2 '*' $ac_mid + 1`
37024 fi
37025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37026   done
37027 else
37028   echo "$as_me: failed program was:" >&5
37029 sed 's/^/| /' conftest.$ac_ext >&5
37030
37031 cat >conftest.$ac_ext <<_ACEOF
37032 /* confdefs.h.  */
37033 _ACEOF
37034 cat confdefs.h >>conftest.$ac_ext
37035 cat >>conftest.$ac_ext <<_ACEOF
37036 /* end confdefs.h.  */
37037 $ac_includes_default
37038 int
37039 main ()
37040 {
37041 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37042 test_array [0] = 0
37043
37044   ;
37045   return 0;
37046 }
37047 _ACEOF
37048 rm -f conftest.$ac_objext
37049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37050   (eval $ac_compile) 2>conftest.er1
37051   ac_status=$?
37052   grep -v '^ *+' conftest.er1 >conftest.err
37053   rm -f conftest.er1
37054   cat conftest.err >&5
37055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056   (exit $ac_status); } &&
37057          { ac_try='test -z "$ac_c_werror_flag"
37058                          || test ! -s conftest.err'
37059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37060   (eval $ac_try) 2>&5
37061   ac_status=$?
37062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063   (exit $ac_status); }; } &&
37064          { ac_try='test -s conftest.$ac_objext'
37065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37066   (eval $ac_try) 2>&5
37067   ac_status=$?
37068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069   (exit $ac_status); }; }; then
37070   ac_hi=-1 ac_mid=-1
37071   while :; do
37072     cat >conftest.$ac_ext <<_ACEOF
37073 /* confdefs.h.  */
37074 _ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h.  */
37078 $ac_includes_default
37079 int
37080 main ()
37081 {
37082 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37083 test_array [0] = 0
37084
37085   ;
37086   return 0;
37087 }
37088 _ACEOF
37089 rm -f conftest.$ac_objext
37090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37091   (eval $ac_compile) 2>conftest.er1
37092   ac_status=$?
37093   grep -v '^ *+' conftest.er1 >conftest.err
37094   rm -f conftest.er1
37095   cat conftest.err >&5
37096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097   (exit $ac_status); } &&
37098          { ac_try='test -z "$ac_c_werror_flag"
37099                          || test ! -s conftest.err'
37100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37101   (eval $ac_try) 2>&5
37102   ac_status=$?
37103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104   (exit $ac_status); }; } &&
37105          { ac_try='test -s conftest.$ac_objext'
37106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37107   (eval $ac_try) 2>&5
37108   ac_status=$?
37109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110   (exit $ac_status); }; }; then
37111   ac_lo=$ac_mid; break
37112 else
37113   echo "$as_me: failed program was:" >&5
37114 sed 's/^/| /' conftest.$ac_ext >&5
37115
37116 ac_hi=`expr '(' $ac_mid ')' - 1`
37117                        if test $ac_mid -le $ac_hi; then
37118                          ac_lo= ac_hi=
37119                          break
37120                        fi
37121                        ac_mid=`expr 2 '*' $ac_mid`
37122 fi
37123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37124   done
37125 else
37126   echo "$as_me: failed program was:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37128
37129 ac_lo= ac_hi=
37130 fi
37131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37132 fi
37133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37134 # Binary search between lo and hi bounds.
37135 while test "x$ac_lo" != "x$ac_hi"; do
37136   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37137   cat >conftest.$ac_ext <<_ACEOF
37138 /* confdefs.h.  */
37139 _ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h.  */
37143 $ac_includes_default
37144 int
37145 main ()
37146 {
37147 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37148 test_array [0] = 0
37149
37150   ;
37151   return 0;
37152 }
37153 _ACEOF
37154 rm -f conftest.$ac_objext
37155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37156   (eval $ac_compile) 2>conftest.er1
37157   ac_status=$?
37158   grep -v '^ *+' conftest.er1 >conftest.err
37159   rm -f conftest.er1
37160   cat conftest.err >&5
37161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162   (exit $ac_status); } &&
37163          { ac_try='test -z "$ac_c_werror_flag"
37164                          || test ! -s conftest.err'
37165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37166   (eval $ac_try) 2>&5
37167   ac_status=$?
37168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169   (exit $ac_status); }; } &&
37170          { ac_try='test -s conftest.$ac_objext'
37171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172   (eval $ac_try) 2>&5
37173   ac_status=$?
37174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175   (exit $ac_status); }; }; then
37176   ac_hi=$ac_mid
37177 else
37178   echo "$as_me: failed program was:" >&5
37179 sed 's/^/| /' conftest.$ac_ext >&5
37180
37181 ac_lo=`expr '(' $ac_mid ')' + 1`
37182 fi
37183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37184 done
37185 case $ac_lo in
37186 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37187 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37188 See \`config.log' for more details." >&5
37189 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37190 See \`config.log' for more details." >&2;}
37191    { (exit 1); exit 1; }; } ;;
37192 esac
37193 else
37194   if test "$cross_compiling" = yes; then
37195   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37196 See \`config.log' for more details." >&5
37197 echo "$as_me: error: cannot run test program while cross compiling
37198 See \`config.log' for more details." >&2;}
37199    { (exit 1); exit 1; }; }
37200 else
37201   cat >conftest.$ac_ext <<_ACEOF
37202 /* confdefs.h.  */
37203 _ACEOF
37204 cat confdefs.h >>conftest.$ac_ext
37205 cat >>conftest.$ac_ext <<_ACEOF
37206 /* end confdefs.h.  */
37207 $ac_includes_default
37208 long longval () { return (long) (sizeof (wchar_t)); }
37209 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37210 #include <stdio.h>
37211 #include <stdlib.h>
37212 int
37213 main ()
37214 {
37215
37216   FILE *f = fopen ("conftest.val", "w");
37217   if (! f)
37218     exit (1);
37219   if (((long) (sizeof (wchar_t))) < 0)
37220     {
37221       long i = longval ();
37222       if (i != ((long) (sizeof (wchar_t))))
37223         exit (1);
37224       fprintf (f, "%ld\n", i);
37225     }
37226   else
37227     {
37228       unsigned long i = ulongval ();
37229       if (i != ((long) (sizeof (wchar_t))))
37230         exit (1);
37231       fprintf (f, "%lu\n", i);
37232     }
37233   exit (ferror (f) || fclose (f) != 0);
37234
37235   ;
37236   return 0;
37237 }
37238 _ACEOF
37239 rm -f conftest$ac_exeext
37240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37241   (eval $ac_link) 2>&5
37242   ac_status=$?
37243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37246   (eval $ac_try) 2>&5
37247   ac_status=$?
37248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249   (exit $ac_status); }; }; then
37250   ac_cv_sizeof_wchar_t=`cat conftest.val`
37251 else
37252   echo "$as_me: program exited with status $ac_status" >&5
37253 echo "$as_me: failed program was:" >&5
37254 sed 's/^/| /' conftest.$ac_ext >&5
37255
37256 ( exit $ac_status )
37257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37258 See \`config.log' for more details." >&5
37259 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37260 See \`config.log' for more details." >&2;}
37261    { (exit 1); exit 1; }; }
37262 fi
37263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37264 fi
37265 fi
37266 rm -f conftest.val
37267 else
37268   ac_cv_sizeof_wchar_t=0
37269 fi
37270 fi
37271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37272 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37273 cat >>confdefs.h <<_ACEOF
37274 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37275 _ACEOF
37276
37277
37278
37279 if test "$ac_cv_sizeof_int" -lt 4 ; then
37280         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37281 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37282
37283
37284 cat >>confdefs.h <<\_ACEOF
37285 #define LBER_INT_T long
37286 _ACEOF
37287
37288 else
37289
37290 cat >>confdefs.h <<\_ACEOF
37291 #define LBER_INT_T int
37292 _ACEOF
37293
37294 fi
37295
37296
37297 cat >>confdefs.h <<\_ACEOF
37298 #define LBER_LEN_T long
37299 _ACEOF
37300
37301
37302 cat >>confdefs.h <<\_ACEOF
37303 #define LBER_SOCKET_T int
37304 _ACEOF
37305
37306
37307 cat >>confdefs.h <<\_ACEOF
37308 #define LBER_TAG_T long
37309 _ACEOF
37310
37311
37312 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37313         if test $ac_cv_sizeof_long_long -gt 4 ; then
37314                 ol_with_mp=longlong
37315
37316 cat >>confdefs.h <<\_ACEOF
37317 #define USE_MP_LONG_LONG 1
37318 _ACEOF
37319
37320         elif test $ol_with_mp = longlong ; then
37321                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37322 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37323    { (exit 1); exit 1; }; }
37324         fi
37325 fi
37326 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37327         if test $ac_cv_sizeof_long -gt 4 ; then
37328                 ol_with_mp=long
37329
37330 cat >>confdefs.h <<\_ACEOF
37331 #define USE_MP_LONG 1
37332 _ACEOF
37333
37334         elif test $ol_with_mp = long ; then
37335                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37336 echo "$as_me: error: long unusable for multiple precision" >&2;}
37337    { (exit 1); exit 1; }; }
37338         fi
37339 fi
37340 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37341
37342 for ac_header in openssl/bn.h
37343 do
37344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37346   echo "$as_me:$LINENO: checking for $ac_header" >&5
37347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37349   echo $ECHO_N "(cached) $ECHO_C" >&6
37350 fi
37351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37353 else
37354   # Is the header compilable?
37355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37357 cat >conftest.$ac_ext <<_ACEOF
37358 /* confdefs.h.  */
37359 _ACEOF
37360 cat confdefs.h >>conftest.$ac_ext
37361 cat >>conftest.$ac_ext <<_ACEOF
37362 /* end confdefs.h.  */
37363 $ac_includes_default
37364 #include <$ac_header>
37365 _ACEOF
37366 rm -f conftest.$ac_objext
37367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37368   (eval $ac_compile) 2>conftest.er1
37369   ac_status=$?
37370   grep -v '^ *+' conftest.er1 >conftest.err
37371   rm -f conftest.er1
37372   cat conftest.err >&5
37373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37374   (exit $ac_status); } &&
37375          { ac_try='test -z "$ac_c_werror_flag"
37376                          || test ! -s conftest.err'
37377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37378   (eval $ac_try) 2>&5
37379   ac_status=$?
37380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381   (exit $ac_status); }; } &&
37382          { ac_try='test -s conftest.$ac_objext'
37383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37384   (eval $ac_try) 2>&5
37385   ac_status=$?
37386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387   (exit $ac_status); }; }; then
37388   ac_header_compiler=yes
37389 else
37390   echo "$as_me: failed program was:" >&5
37391 sed 's/^/| /' conftest.$ac_ext >&5
37392
37393 ac_header_compiler=no
37394 fi
37395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37397 echo "${ECHO_T}$ac_header_compiler" >&6
37398
37399 # Is the header present?
37400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37402 cat >conftest.$ac_ext <<_ACEOF
37403 /* confdefs.h.  */
37404 _ACEOF
37405 cat confdefs.h >>conftest.$ac_ext
37406 cat >>conftest.$ac_ext <<_ACEOF
37407 /* end confdefs.h.  */
37408 #include <$ac_header>
37409 _ACEOF
37410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37412   ac_status=$?
37413   grep -v '^ *+' conftest.er1 >conftest.err
37414   rm -f conftest.er1
37415   cat conftest.err >&5
37416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417   (exit $ac_status); } >/dev/null; then
37418   if test -s conftest.err; then
37419     ac_cpp_err=$ac_c_preproc_warn_flag
37420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37421   else
37422     ac_cpp_err=
37423   fi
37424 else
37425   ac_cpp_err=yes
37426 fi
37427 if test -z "$ac_cpp_err"; then
37428   ac_header_preproc=yes
37429 else
37430   echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433   ac_header_preproc=no
37434 fi
37435 rm -f conftest.err conftest.$ac_ext
37436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37437 echo "${ECHO_T}$ac_header_preproc" >&6
37438
37439 # So?  What about this header?
37440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37441   yes:no: )
37442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37446     ac_header_preproc=yes
37447     ;;
37448   no:yes:* )
37449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37461     (
37462       cat <<\_ASBOX
37463 ## --------------------------------------------- ##
37464 ## Report this to <http://www.openldap.org/its/> ##
37465 ## --------------------------------------------- ##
37466 _ASBOX
37467     ) |
37468       sed "s/^/$as_me: WARNING:     /" >&2
37469     ;;
37470 esac
37471 echo "$as_me:$LINENO: checking for $ac_header" >&5
37472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37474   echo $ECHO_N "(cached) $ECHO_C" >&6
37475 else
37476   eval "$as_ac_Header=\$ac_header_preproc"
37477 fi
37478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37480
37481 fi
37482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37483   cat >>confdefs.h <<_ACEOF
37484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37485 _ACEOF
37486
37487 fi
37488
37489 done
37490
37491
37492 for ac_header in openssl/crypto.h
37493 do
37494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37496   echo "$as_me:$LINENO: checking for $ac_header" >&5
37497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37499   echo $ECHO_N "(cached) $ECHO_C" >&6
37500 fi
37501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37503 else
37504   # Is the header compilable?
37505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37507 cat >conftest.$ac_ext <<_ACEOF
37508 /* confdefs.h.  */
37509 _ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h.  */
37513 $ac_includes_default
37514 #include <$ac_header>
37515 _ACEOF
37516 rm -f conftest.$ac_objext
37517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37518   (eval $ac_compile) 2>conftest.er1
37519   ac_status=$?
37520   grep -v '^ *+' conftest.er1 >conftest.err
37521   rm -f conftest.er1
37522   cat conftest.err >&5
37523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524   (exit $ac_status); } &&
37525          { ac_try='test -z "$ac_c_werror_flag"
37526                          || test ! -s conftest.err'
37527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37528   (eval $ac_try) 2>&5
37529   ac_status=$?
37530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531   (exit $ac_status); }; } &&
37532          { ac_try='test -s conftest.$ac_objext'
37533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37534   (eval $ac_try) 2>&5
37535   ac_status=$?
37536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537   (exit $ac_status); }; }; then
37538   ac_header_compiler=yes
37539 else
37540   echo "$as_me: failed program was:" >&5
37541 sed 's/^/| /' conftest.$ac_ext >&5
37542
37543 ac_header_compiler=no
37544 fi
37545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37547 echo "${ECHO_T}$ac_header_compiler" >&6
37548
37549 # Is the header present?
37550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37552 cat >conftest.$ac_ext <<_ACEOF
37553 /* confdefs.h.  */
37554 _ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h.  */
37558 #include <$ac_header>
37559 _ACEOF
37560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37562   ac_status=$?
37563   grep -v '^ *+' conftest.er1 >conftest.err
37564   rm -f conftest.er1
37565   cat conftest.err >&5
37566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567   (exit $ac_status); } >/dev/null; then
37568   if test -s conftest.err; then
37569     ac_cpp_err=$ac_c_preproc_warn_flag
37570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37571   else
37572     ac_cpp_err=
37573   fi
37574 else
37575   ac_cpp_err=yes
37576 fi
37577 if test -z "$ac_cpp_err"; then
37578   ac_header_preproc=yes
37579 else
37580   echo "$as_me: failed program was:" >&5
37581 sed 's/^/| /' conftest.$ac_ext >&5
37582
37583   ac_header_preproc=no
37584 fi
37585 rm -f conftest.err conftest.$ac_ext
37586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37587 echo "${ECHO_T}$ac_header_preproc" >&6
37588
37589 # So?  What about this header?
37590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37591   yes:no: )
37592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37596     ac_header_preproc=yes
37597     ;;
37598   no:yes:* )
37599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37611     (
37612       cat <<\_ASBOX
37613 ## --------------------------------------------- ##
37614 ## Report this to <http://www.openldap.org/its/> ##
37615 ## --------------------------------------------- ##
37616 _ASBOX
37617     ) |
37618       sed "s/^/$as_me: WARNING:     /" >&2
37619     ;;
37620 esac
37621 echo "$as_me:$LINENO: checking for $ac_header" >&5
37622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37624   echo $ECHO_N "(cached) $ECHO_C" >&6
37625 else
37626   eval "$as_ac_Header=\$ac_header_preproc"
37627 fi
37628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37630
37631 fi
37632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37633   cat >>confdefs.h <<_ACEOF
37634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37635 _ACEOF
37636
37637 fi
37638
37639 done
37640
37641         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37642                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37643                 test "$ol_with_tls" = "found" ; then
37644                 ol_with_mp=bignum
37645
37646 cat >>confdefs.h <<\_ACEOF
37647 #define USE_MP_BIGNUM 1
37648 _ACEOF
37649
37650         elif test $ol_with_mp = bignum ; then
37651                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37652 echo "$as_me: error: bignum not available" >&2;}
37653    { (exit 1); exit 1; }; }
37654         fi
37655 fi
37656 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37657
37658 for ac_header in gmp.h
37659 do
37660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37662   echo "$as_me:$LINENO: checking for $ac_header" >&5
37663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37665   echo $ECHO_N "(cached) $ECHO_C" >&6
37666 fi
37667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37669 else
37670   # Is the header compilable?
37671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37673 cat >conftest.$ac_ext <<_ACEOF
37674 /* confdefs.h.  */
37675 _ACEOF
37676 cat confdefs.h >>conftest.$ac_ext
37677 cat >>conftest.$ac_ext <<_ACEOF
37678 /* end confdefs.h.  */
37679 $ac_includes_default
37680 #include <$ac_header>
37681 _ACEOF
37682 rm -f conftest.$ac_objext
37683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37684   (eval $ac_compile) 2>conftest.er1
37685   ac_status=$?
37686   grep -v '^ *+' conftest.er1 >conftest.err
37687   rm -f conftest.er1
37688   cat conftest.err >&5
37689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690   (exit $ac_status); } &&
37691          { ac_try='test -z "$ac_c_werror_flag"
37692                          || test ! -s conftest.err'
37693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694   (eval $ac_try) 2>&5
37695   ac_status=$?
37696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697   (exit $ac_status); }; } &&
37698          { ac_try='test -s conftest.$ac_objext'
37699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37700   (eval $ac_try) 2>&5
37701   ac_status=$?
37702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703   (exit $ac_status); }; }; then
37704   ac_header_compiler=yes
37705 else
37706   echo "$as_me: failed program was:" >&5
37707 sed 's/^/| /' conftest.$ac_ext >&5
37708
37709 ac_header_compiler=no
37710 fi
37711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37713 echo "${ECHO_T}$ac_header_compiler" >&6
37714
37715 # Is the header present?
37716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37718 cat >conftest.$ac_ext <<_ACEOF
37719 /* confdefs.h.  */
37720 _ACEOF
37721 cat confdefs.h >>conftest.$ac_ext
37722 cat >>conftest.$ac_ext <<_ACEOF
37723 /* end confdefs.h.  */
37724 #include <$ac_header>
37725 _ACEOF
37726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37728   ac_status=$?
37729   grep -v '^ *+' conftest.er1 >conftest.err
37730   rm -f conftest.er1
37731   cat conftest.err >&5
37732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733   (exit $ac_status); } >/dev/null; then
37734   if test -s conftest.err; then
37735     ac_cpp_err=$ac_c_preproc_warn_flag
37736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37737   else
37738     ac_cpp_err=
37739   fi
37740 else
37741   ac_cpp_err=yes
37742 fi
37743 if test -z "$ac_cpp_err"; then
37744   ac_header_preproc=yes
37745 else
37746   echo "$as_me: failed program was:" >&5
37747 sed 's/^/| /' conftest.$ac_ext >&5
37748
37749   ac_header_preproc=no
37750 fi
37751 rm -f conftest.err conftest.$ac_ext
37752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37753 echo "${ECHO_T}$ac_header_preproc" >&6
37754
37755 # So?  What about this header?
37756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37757   yes:no: )
37758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37762     ac_header_preproc=yes
37763     ;;
37764   no:yes:* )
37765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37777     (
37778       cat <<\_ASBOX
37779 ## --------------------------------------------- ##
37780 ## Report this to <http://www.openldap.org/its/> ##
37781 ## --------------------------------------------- ##
37782 _ASBOX
37783     ) |
37784       sed "s/^/$as_me: WARNING:     /" >&2
37785     ;;
37786 esac
37787 echo "$as_me:$LINENO: checking for $ac_header" >&5
37788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37790   echo $ECHO_N "(cached) $ECHO_C" >&6
37791 else
37792   eval "$as_ac_Header=\$ac_header_preproc"
37793 fi
37794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37796
37797 fi
37798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37799   cat >>confdefs.h <<_ACEOF
37800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37801 _ACEOF
37802
37803 fi
37804
37805 done
37806
37807
37808 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37809 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37810 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37811   echo $ECHO_N "(cached) $ECHO_C" >&6
37812 else
37813   ac_check_lib_save_LIBS=$LIBS
37814 LIBS="-lgmp  $LIBS"
37815 cat >conftest.$ac_ext <<_ACEOF
37816 /* confdefs.h.  */
37817 _ACEOF
37818 cat confdefs.h >>conftest.$ac_ext
37819 cat >>conftest.$ac_ext <<_ACEOF
37820 /* end confdefs.h.  */
37821
37822 /* Override any gcc2 internal prototype to avoid an error.  */
37823 #ifdef __cplusplus
37824 extern "C"
37825 #endif
37826 /* We use char because int might match the return type of a gcc2
37827    builtin and then its argument prototype would still apply.  */
37828 char __gmpz_add_ui ();
37829 int
37830 main ()
37831 {
37832 __gmpz_add_ui ();
37833   ;
37834   return 0;
37835 }
37836 _ACEOF
37837 rm -f conftest.$ac_objext conftest$ac_exeext
37838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37839   (eval $ac_link) 2>conftest.er1
37840   ac_status=$?
37841   grep -v '^ *+' conftest.er1 >conftest.err
37842   rm -f conftest.er1
37843   cat conftest.err >&5
37844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845   (exit $ac_status); } &&
37846          { ac_try='test -z "$ac_c_werror_flag"
37847                          || test ! -s conftest.err'
37848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37849   (eval $ac_try) 2>&5
37850   ac_status=$?
37851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852   (exit $ac_status); }; } &&
37853          { ac_try='test -s conftest$ac_exeext'
37854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37855   (eval $ac_try) 2>&5
37856   ac_status=$?
37857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858   (exit $ac_status); }; }; then
37859   ac_cv_lib_gmp___gmpz_add_ui=yes
37860 else
37861   echo "$as_me: failed program was:" >&5
37862 sed 's/^/| /' conftest.$ac_ext >&5
37863
37864 ac_cv_lib_gmp___gmpz_add_ui=no
37865 fi
37866 rm -f conftest.err conftest.$ac_objext \
37867       conftest$ac_exeext conftest.$ac_ext
37868 LIBS=$ac_check_lib_save_LIBS
37869 fi
37870 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37871 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37872 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37873   cat >>confdefs.h <<_ACEOF
37874 #define HAVE_LIBGMP 1
37875 _ACEOF
37876
37877   LIBS="-lgmp $LIBS"
37878
37879 fi
37880
37881         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37882
37883 cat >>confdefs.h <<\_ACEOF
37884 #define USE_MP_GMP 1
37885 _ACEOF
37886
37887                 ol_with_mp=gmp
37888         elif test $ol_with_mp = gmp ; then
37889                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37890 echo "$as_me: error: gmp not available" >&2;}
37891    { (exit 1); exit 1; }; }
37892         fi
37893 fi
37894 if test $ol_with_mp = auto ; then
37895         ol_with_mp=no
37896 fi
37897
37898 echo "$as_me:$LINENO: checking for working memcmp" >&5
37899 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37900 if test "${ac_cv_func_memcmp_working+set}" = set; then
37901   echo $ECHO_N "(cached) $ECHO_C" >&6
37902 else
37903   if test "$cross_compiling" = yes; then
37904   ac_cv_func_memcmp_working=no
37905 else
37906   cat >conftest.$ac_ext <<_ACEOF
37907 /* confdefs.h.  */
37908 _ACEOF
37909 cat confdefs.h >>conftest.$ac_ext
37910 cat >>conftest.$ac_ext <<_ACEOF
37911 /* end confdefs.h.  */
37912 $ac_includes_default
37913 int
37914 main ()
37915 {
37916
37917   /* Some versions of memcmp are not 8-bit clean.  */
37918   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37919   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37920     exit (1);
37921
37922   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37923      or more and with at least one buffer not starting on a 4-byte boundary.
37924      William Lewis provided this test program.   */
37925   {
37926     char foo[21];
37927     char bar[21];
37928     int i;
37929     for (i = 0; i < 4; i++)
37930       {
37931         char *a = foo + i;
37932         char *b = bar + i;
37933         strcpy (a, "--------01111111");
37934         strcpy (b, "--------10000000");
37935         if (memcmp (a, b, 16) >= 0)
37936           exit (1);
37937       }
37938     exit (0);
37939   }
37940
37941   ;
37942   return 0;
37943 }
37944 _ACEOF
37945 rm -f conftest$ac_exeext
37946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37947   (eval $ac_link) 2>&5
37948   ac_status=$?
37949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37952   (eval $ac_try) 2>&5
37953   ac_status=$?
37954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955   (exit $ac_status); }; }; then
37956   ac_cv_func_memcmp_working=yes
37957 else
37958   echo "$as_me: program exited with status $ac_status" >&5
37959 echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37961
37962 ( exit $ac_status )
37963 ac_cv_func_memcmp_working=no
37964 fi
37965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37966 fi
37967 fi
37968 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
37969 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
37970 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
37971     "memcmp.$ac_objext"   | \
37972   *" memcmp.$ac_objext"   | \
37973     "memcmp.$ac_objext "* | \
37974   *" memcmp.$ac_objext "* ) ;;
37975   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
37976 esac
37977
37978
37979
37980 if test $ac_cv_func_memcmp_working = no ; then
37981
37982 cat >>confdefs.h <<\_ACEOF
37983 #define NEED_MEMCMP_REPLACEMENT 1
37984 _ACEOF
37985
37986 fi
37987
37988
37989 for ac_func in strftime
37990 do
37991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37992 echo "$as_me:$LINENO: checking for $ac_func" >&5
37993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37994 if eval "test \"\${$as_ac_var+set}\" = set"; then
37995   echo $ECHO_N "(cached) $ECHO_C" >&6
37996 else
37997   cat >conftest.$ac_ext <<_ACEOF
37998 /* confdefs.h.  */
37999 _ACEOF
38000 cat confdefs.h >>conftest.$ac_ext
38001 cat >>conftest.$ac_ext <<_ACEOF
38002 /* end confdefs.h.  */
38003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38005 #define $ac_func innocuous_$ac_func
38006
38007 /* System header to define __stub macros and hopefully few prototypes,
38008     which can conflict with char $ac_func (); below.
38009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38010     <limits.h> exists even on freestanding compilers.  */
38011
38012 #ifdef __STDC__
38013 # include <limits.h>
38014 #else
38015 # include <assert.h>
38016 #endif
38017
38018 #undef $ac_func
38019
38020 /* Override any gcc2 internal prototype to avoid an error.  */
38021 #ifdef __cplusplus
38022 extern "C"
38023 {
38024 #endif
38025 /* We use char because int might match the return type of a gcc2
38026    builtin and then its argument prototype would still apply.  */
38027 char $ac_func ();
38028 /* The GNU C library defines this for functions which it implements
38029     to always fail with ENOSYS.  Some functions are actually named
38030     something starting with __ and the normal name is an alias.  */
38031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38032 choke me
38033 #else
38034 char (*f) () = $ac_func;
38035 #endif
38036 #ifdef __cplusplus
38037 }
38038 #endif
38039
38040 int
38041 main ()
38042 {
38043 return f != $ac_func;
38044   ;
38045   return 0;
38046 }
38047 _ACEOF
38048 rm -f conftest.$ac_objext conftest$ac_exeext
38049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38050   (eval $ac_link) 2>conftest.er1
38051   ac_status=$?
38052   grep -v '^ *+' conftest.er1 >conftest.err
38053   rm -f conftest.er1
38054   cat conftest.err >&5
38055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056   (exit $ac_status); } &&
38057          { ac_try='test -z "$ac_c_werror_flag"
38058                          || test ! -s conftest.err'
38059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060   (eval $ac_try) 2>&5
38061   ac_status=$?
38062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063   (exit $ac_status); }; } &&
38064          { ac_try='test -s conftest$ac_exeext'
38065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066   (eval $ac_try) 2>&5
38067   ac_status=$?
38068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069   (exit $ac_status); }; }; then
38070   eval "$as_ac_var=yes"
38071 else
38072   echo "$as_me: failed program was:" >&5
38073 sed 's/^/| /' conftest.$ac_ext >&5
38074
38075 eval "$as_ac_var=no"
38076 fi
38077 rm -f conftest.err conftest.$ac_objext \
38078       conftest$ac_exeext conftest.$ac_ext
38079 fi
38080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38082 if test `eval echo '${'$as_ac_var'}'` = yes; then
38083   cat >>confdefs.h <<_ACEOF
38084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38085 _ACEOF
38086
38087 else
38088   # strftime is in -lintl on SCO UNIX.
38089 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38090 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38091 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38092   echo $ECHO_N "(cached) $ECHO_C" >&6
38093 else
38094   ac_check_lib_save_LIBS=$LIBS
38095 LIBS="-lintl  $LIBS"
38096 cat >conftest.$ac_ext <<_ACEOF
38097 /* confdefs.h.  */
38098 _ACEOF
38099 cat confdefs.h >>conftest.$ac_ext
38100 cat >>conftest.$ac_ext <<_ACEOF
38101 /* end confdefs.h.  */
38102
38103 /* Override any gcc2 internal prototype to avoid an error.  */
38104 #ifdef __cplusplus
38105 extern "C"
38106 #endif
38107 /* We use char because int might match the return type of a gcc2
38108    builtin and then its argument prototype would still apply.  */
38109 char strftime ();
38110 int
38111 main ()
38112 {
38113 strftime ();
38114   ;
38115   return 0;
38116 }
38117 _ACEOF
38118 rm -f conftest.$ac_objext conftest$ac_exeext
38119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38120   (eval $ac_link) 2>conftest.er1
38121   ac_status=$?
38122   grep -v '^ *+' conftest.er1 >conftest.err
38123   rm -f conftest.er1
38124   cat conftest.err >&5
38125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38126   (exit $ac_status); } &&
38127          { ac_try='test -z "$ac_c_werror_flag"
38128                          || test ! -s conftest.err'
38129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38130   (eval $ac_try) 2>&5
38131   ac_status=$?
38132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38133   (exit $ac_status); }; } &&
38134          { ac_try='test -s conftest$ac_exeext'
38135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38136   (eval $ac_try) 2>&5
38137   ac_status=$?
38138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38139   (exit $ac_status); }; }; then
38140   ac_cv_lib_intl_strftime=yes
38141 else
38142   echo "$as_me: failed program was:" >&5
38143 sed 's/^/| /' conftest.$ac_ext >&5
38144
38145 ac_cv_lib_intl_strftime=no
38146 fi
38147 rm -f conftest.err conftest.$ac_objext \
38148       conftest$ac_exeext conftest.$ac_ext
38149 LIBS=$ac_check_lib_save_LIBS
38150 fi
38151 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38152 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38153 if test $ac_cv_lib_intl_strftime = yes; then
38154   cat >>confdefs.h <<\_ACEOF
38155 #define HAVE_STRFTIME 1
38156 _ACEOF
38157
38158 LIBS="-lintl $LIBS"
38159 fi
38160
38161 fi
38162 done
38163
38164
38165 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38166 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38167 if test "${ol_cv_func_inet_aton+set}" = set; then
38168   echo $ECHO_N "(cached) $ECHO_C" >&6
38169 else
38170   cat >conftest.$ac_ext <<_ACEOF
38171 /* confdefs.h.  */
38172 _ACEOF
38173 cat confdefs.h >>conftest.$ac_ext
38174 cat >>conftest.$ac_ext <<_ACEOF
38175 /* end confdefs.h.  */
38176
38177 #ifdef HAVE_SYS_TYPES_H
38178 #       include <sys/types.h>
38179 #endif
38180 #ifdef HAVE_SYS_SOCKET_H
38181 #       include <sys/socket.h>
38182 #       ifdef HAVE_SYS_SELECT_H
38183 #               include <sys/select.h>
38184 #       endif
38185 #       include <netinet/in.h>
38186 #       ifdef HAVE_ARPA_INET_H
38187 #               include <arpa/inet.h>
38188 #       endif
38189 #endif
38190
38191 int
38192 main ()
38193 {
38194 struct in_addr in;
38195 int rc = inet_aton( "255.255.255.255", &in );
38196   ;
38197   return 0;
38198 }
38199 _ACEOF
38200 rm -f conftest.$ac_objext conftest$ac_exeext
38201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38202   (eval $ac_link) 2>conftest.er1
38203   ac_status=$?
38204   grep -v '^ *+' conftest.er1 >conftest.err
38205   rm -f conftest.er1
38206   cat conftest.err >&5
38207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38208   (exit $ac_status); } &&
38209          { ac_try='test -z "$ac_c_werror_flag"
38210                          || test ! -s conftest.err'
38211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38212   (eval $ac_try) 2>&5
38213   ac_status=$?
38214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215   (exit $ac_status); }; } &&
38216          { ac_try='test -s conftest$ac_exeext'
38217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218   (eval $ac_try) 2>&5
38219   ac_status=$?
38220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221   (exit $ac_status); }; }; then
38222   ol_cv_func_inet_aton=yes
38223 else
38224   echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38226
38227 ol_cv_func_inet_aton=no
38228 fi
38229 rm -f conftest.err conftest.$ac_objext \
38230       conftest$ac_exeext conftest.$ac_ext
38231 fi
38232 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38233 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38234   if test $ol_cv_func_inet_aton != no; then
38235
38236 cat >>confdefs.h <<\_ACEOF
38237 #define HAVE_INET_ATON 1
38238 _ACEOF
38239
38240   fi
38241
38242
38243 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38244 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38245 if test "${ac_cv_func__spawnlp+set}" = set; then
38246   echo $ECHO_N "(cached) $ECHO_C" >&6
38247 else
38248   cat >conftest.$ac_ext <<_ACEOF
38249 /* confdefs.h.  */
38250 _ACEOF
38251 cat confdefs.h >>conftest.$ac_ext
38252 cat >>conftest.$ac_ext <<_ACEOF
38253 /* end confdefs.h.  */
38254 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38256 #define _spawnlp innocuous__spawnlp
38257
38258 /* System header to define __stub macros and hopefully few prototypes,
38259     which can conflict with char _spawnlp (); below.
38260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38261     <limits.h> exists even on freestanding compilers.  */
38262
38263 #ifdef __STDC__
38264 # include <limits.h>
38265 #else
38266 # include <assert.h>
38267 #endif
38268
38269 #undef _spawnlp
38270
38271 /* Override any gcc2 internal prototype to avoid an error.  */
38272 #ifdef __cplusplus
38273 extern "C"
38274 {
38275 #endif
38276 /* We use char because int might match the return type of a gcc2
38277    builtin and then its argument prototype would still apply.  */
38278 char _spawnlp ();
38279 /* The GNU C library defines this for functions which it implements
38280     to always fail with ENOSYS.  Some functions are actually named
38281     something starting with __ and the normal name is an alias.  */
38282 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38283 choke me
38284 #else
38285 char (*f) () = _spawnlp;
38286 #endif
38287 #ifdef __cplusplus
38288 }
38289 #endif
38290
38291 int
38292 main ()
38293 {
38294 return f != _spawnlp;
38295   ;
38296   return 0;
38297 }
38298 _ACEOF
38299 rm -f conftest.$ac_objext conftest$ac_exeext
38300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38301   (eval $ac_link) 2>conftest.er1
38302   ac_status=$?
38303   grep -v '^ *+' conftest.er1 >conftest.err
38304   rm -f conftest.er1
38305   cat conftest.err >&5
38306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38307   (exit $ac_status); } &&
38308          { ac_try='test -z "$ac_c_werror_flag"
38309                          || test ! -s conftest.err'
38310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38311   (eval $ac_try) 2>&5
38312   ac_status=$?
38313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314   (exit $ac_status); }; } &&
38315          { ac_try='test -s conftest$ac_exeext'
38316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317   (eval $ac_try) 2>&5
38318   ac_status=$?
38319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320   (exit $ac_status); }; }; then
38321   ac_cv_func__spawnlp=yes
38322 else
38323   echo "$as_me: failed program was:" >&5
38324 sed 's/^/| /' conftest.$ac_ext >&5
38325
38326 ac_cv_func__spawnlp=no
38327 fi
38328 rm -f conftest.err conftest.$ac_objext \
38329       conftest$ac_exeext conftest.$ac_ext
38330 fi
38331 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38332 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38333 if test $ac_cv_func__spawnlp = yes; then
38334
38335 cat >>confdefs.h <<\_ACEOF
38336 #define HAVE_SPAWNLP 1
38337 _ACEOF
38338
38339 fi
38340
38341
38342 echo "$as_me:$LINENO: checking for _snprintf" >&5
38343 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38344 if test "${ac_cv_func__snprintf+set}" = set; then
38345   echo $ECHO_N "(cached) $ECHO_C" >&6
38346 else
38347   cat >conftest.$ac_ext <<_ACEOF
38348 /* confdefs.h.  */
38349 _ACEOF
38350 cat confdefs.h >>conftest.$ac_ext
38351 cat >>conftest.$ac_ext <<_ACEOF
38352 /* end confdefs.h.  */
38353 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38355 #define _snprintf innocuous__snprintf
38356
38357 /* System header to define __stub macros and hopefully few prototypes,
38358     which can conflict with char _snprintf (); below.
38359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38360     <limits.h> exists even on freestanding compilers.  */
38361
38362 #ifdef __STDC__
38363 # include <limits.h>
38364 #else
38365 # include <assert.h>
38366 #endif
38367
38368 #undef _snprintf
38369
38370 /* Override any gcc2 internal prototype to avoid an error.  */
38371 #ifdef __cplusplus
38372 extern "C"
38373 {
38374 #endif
38375 /* We use char because int might match the return type of a gcc2
38376    builtin and then its argument prototype would still apply.  */
38377 char _snprintf ();
38378 /* The GNU C library defines this for functions which it implements
38379     to always fail with ENOSYS.  Some functions are actually named
38380     something starting with __ and the normal name is an alias.  */
38381 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38382 choke me
38383 #else
38384 char (*f) () = _snprintf;
38385 #endif
38386 #ifdef __cplusplus
38387 }
38388 #endif
38389
38390 int
38391 main ()
38392 {
38393 return f != _snprintf;
38394   ;
38395   return 0;
38396 }
38397 _ACEOF
38398 rm -f conftest.$ac_objext conftest$ac_exeext
38399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38400   (eval $ac_link) 2>conftest.er1
38401   ac_status=$?
38402   grep -v '^ *+' conftest.er1 >conftest.err
38403   rm -f conftest.er1
38404   cat conftest.err >&5
38405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406   (exit $ac_status); } &&
38407          { ac_try='test -z "$ac_c_werror_flag"
38408                          || test ! -s conftest.err'
38409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38410   (eval $ac_try) 2>&5
38411   ac_status=$?
38412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413   (exit $ac_status); }; } &&
38414          { ac_try='test -s conftest$ac_exeext'
38415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416   (eval $ac_try) 2>&5
38417   ac_status=$?
38418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419   (exit $ac_status); }; }; then
38420   ac_cv_func__snprintf=yes
38421 else
38422   echo "$as_me: failed program was:" >&5
38423 sed 's/^/| /' conftest.$ac_ext >&5
38424
38425 ac_cv_func__snprintf=no
38426 fi
38427 rm -f conftest.err conftest.$ac_objext \
38428       conftest$ac_exeext conftest.$ac_ext
38429 fi
38430 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38431 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38432 if test $ac_cv_func__snprintf = yes; then
38433   ac_cv_func_snprintf=yes
38434
38435 cat >>confdefs.h <<\_ACEOF
38436 #define snprintf _snprintf
38437 _ACEOF
38438
38439
38440 fi
38441
38442
38443 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38444 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38445 if test "${ac_cv_func__vsnprintf+set}" = set; then
38446   echo $ECHO_N "(cached) $ECHO_C" >&6
38447 else
38448   cat >conftest.$ac_ext <<_ACEOF
38449 /* confdefs.h.  */
38450 _ACEOF
38451 cat confdefs.h >>conftest.$ac_ext
38452 cat >>conftest.$ac_ext <<_ACEOF
38453 /* end confdefs.h.  */
38454 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38456 #define _vsnprintf innocuous__vsnprintf
38457
38458 /* System header to define __stub macros and hopefully few prototypes,
38459     which can conflict with char _vsnprintf (); below.
38460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38461     <limits.h> exists even on freestanding compilers.  */
38462
38463 #ifdef __STDC__
38464 # include <limits.h>
38465 #else
38466 # include <assert.h>
38467 #endif
38468
38469 #undef _vsnprintf
38470
38471 /* Override any gcc2 internal prototype to avoid an error.  */
38472 #ifdef __cplusplus
38473 extern "C"
38474 {
38475 #endif
38476 /* We use char because int might match the return type of a gcc2
38477    builtin and then its argument prototype would still apply.  */
38478 char _vsnprintf ();
38479 /* The GNU C library defines this for functions which it implements
38480     to always fail with ENOSYS.  Some functions are actually named
38481     something starting with __ and the normal name is an alias.  */
38482 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38483 choke me
38484 #else
38485 char (*f) () = _vsnprintf;
38486 #endif
38487 #ifdef __cplusplus
38488 }
38489 #endif
38490
38491 int
38492 main ()
38493 {
38494 return f != _vsnprintf;
38495   ;
38496   return 0;
38497 }
38498 _ACEOF
38499 rm -f conftest.$ac_objext conftest$ac_exeext
38500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38501   (eval $ac_link) 2>conftest.er1
38502   ac_status=$?
38503   grep -v '^ *+' conftest.er1 >conftest.err
38504   rm -f conftest.er1
38505   cat conftest.err >&5
38506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507   (exit $ac_status); } &&
38508          { ac_try='test -z "$ac_c_werror_flag"
38509                          || test ! -s conftest.err'
38510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511   (eval $ac_try) 2>&5
38512   ac_status=$?
38513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514   (exit $ac_status); }; } &&
38515          { ac_try='test -s conftest$ac_exeext'
38516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38517   (eval $ac_try) 2>&5
38518   ac_status=$?
38519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520   (exit $ac_status); }; }; then
38521   ac_cv_func__vsnprintf=yes
38522 else
38523   echo "$as_me: failed program was:" >&5
38524 sed 's/^/| /' conftest.$ac_ext >&5
38525
38526 ac_cv_func__vsnprintf=no
38527 fi
38528 rm -f conftest.err conftest.$ac_objext \
38529       conftest$ac_exeext conftest.$ac_ext
38530 fi
38531 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38532 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38533 if test $ac_cv_func__vsnprintf = yes; then
38534   ac_cv_func_vsnprintf=yes
38535
38536 cat >>confdefs.h <<\_ACEOF
38537 #define vsnprintf _vsnprintf
38538 _ACEOF
38539
38540
38541 fi
38542
38543
38544
38545 for ac_func in vprintf
38546 do
38547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38548 echo "$as_me:$LINENO: checking for $ac_func" >&5
38549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38550 if eval "test \"\${$as_ac_var+set}\" = set"; then
38551   echo $ECHO_N "(cached) $ECHO_C" >&6
38552 else
38553   cat >conftest.$ac_ext <<_ACEOF
38554 /* confdefs.h.  */
38555 _ACEOF
38556 cat confdefs.h >>conftest.$ac_ext
38557 cat >>conftest.$ac_ext <<_ACEOF
38558 /* end confdefs.h.  */
38559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38561 #define $ac_func innocuous_$ac_func
38562
38563 /* System header to define __stub macros and hopefully few prototypes,
38564     which can conflict with char $ac_func (); below.
38565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38566     <limits.h> exists even on freestanding compilers.  */
38567
38568 #ifdef __STDC__
38569 # include <limits.h>
38570 #else
38571 # include <assert.h>
38572 #endif
38573
38574 #undef $ac_func
38575
38576 /* Override any gcc2 internal prototype to avoid an error.  */
38577 #ifdef __cplusplus
38578 extern "C"
38579 {
38580 #endif
38581 /* We use char because int might match the return type of a gcc2
38582    builtin and then its argument prototype would still apply.  */
38583 char $ac_func ();
38584 /* The GNU C library defines this for functions which it implements
38585     to always fail with ENOSYS.  Some functions are actually named
38586     something starting with __ and the normal name is an alias.  */
38587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38588 choke me
38589 #else
38590 char (*f) () = $ac_func;
38591 #endif
38592 #ifdef __cplusplus
38593 }
38594 #endif
38595
38596 int
38597 main ()
38598 {
38599 return f != $ac_func;
38600   ;
38601   return 0;
38602 }
38603 _ACEOF
38604 rm -f conftest.$ac_objext conftest$ac_exeext
38605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38606   (eval $ac_link) 2>conftest.er1
38607   ac_status=$?
38608   grep -v '^ *+' conftest.er1 >conftest.err
38609   rm -f conftest.er1
38610   cat conftest.err >&5
38611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612   (exit $ac_status); } &&
38613          { ac_try='test -z "$ac_c_werror_flag"
38614                          || test ! -s conftest.err'
38615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38616   (eval $ac_try) 2>&5
38617   ac_status=$?
38618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619   (exit $ac_status); }; } &&
38620          { ac_try='test -s conftest$ac_exeext'
38621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38622   (eval $ac_try) 2>&5
38623   ac_status=$?
38624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625   (exit $ac_status); }; }; then
38626   eval "$as_ac_var=yes"
38627 else
38628   echo "$as_me: failed program was:" >&5
38629 sed 's/^/| /' conftest.$ac_ext >&5
38630
38631 eval "$as_ac_var=no"
38632 fi
38633 rm -f conftest.err conftest.$ac_objext \
38634       conftest$ac_exeext conftest.$ac_ext
38635 fi
38636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38638 if test `eval echo '${'$as_ac_var'}'` = yes; then
38639   cat >>confdefs.h <<_ACEOF
38640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38641 _ACEOF
38642
38643 echo "$as_me:$LINENO: checking for _doprnt" >&5
38644 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38645 if test "${ac_cv_func__doprnt+set}" = set; then
38646   echo $ECHO_N "(cached) $ECHO_C" >&6
38647 else
38648   cat >conftest.$ac_ext <<_ACEOF
38649 /* confdefs.h.  */
38650 _ACEOF
38651 cat confdefs.h >>conftest.$ac_ext
38652 cat >>conftest.$ac_ext <<_ACEOF
38653 /* end confdefs.h.  */
38654 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38656 #define _doprnt innocuous__doprnt
38657
38658 /* System header to define __stub macros and hopefully few prototypes,
38659     which can conflict with char _doprnt (); below.
38660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38661     <limits.h> exists even on freestanding compilers.  */
38662
38663 #ifdef __STDC__
38664 # include <limits.h>
38665 #else
38666 # include <assert.h>
38667 #endif
38668
38669 #undef _doprnt
38670
38671 /* Override any gcc2 internal prototype to avoid an error.  */
38672 #ifdef __cplusplus
38673 extern "C"
38674 {
38675 #endif
38676 /* We use char because int might match the return type of a gcc2
38677    builtin and then its argument prototype would still apply.  */
38678 char _doprnt ();
38679 /* The GNU C library defines this for functions which it implements
38680     to always fail with ENOSYS.  Some functions are actually named
38681     something starting with __ and the normal name is an alias.  */
38682 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38683 choke me
38684 #else
38685 char (*f) () = _doprnt;
38686 #endif
38687 #ifdef __cplusplus
38688 }
38689 #endif
38690
38691 int
38692 main ()
38693 {
38694 return f != _doprnt;
38695   ;
38696   return 0;
38697 }
38698 _ACEOF
38699 rm -f conftest.$ac_objext conftest$ac_exeext
38700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38701   (eval $ac_link) 2>conftest.er1
38702   ac_status=$?
38703   grep -v '^ *+' conftest.er1 >conftest.err
38704   rm -f conftest.er1
38705   cat conftest.err >&5
38706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707   (exit $ac_status); } &&
38708          { ac_try='test -z "$ac_c_werror_flag"
38709                          || test ! -s conftest.err'
38710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38711   (eval $ac_try) 2>&5
38712   ac_status=$?
38713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714   (exit $ac_status); }; } &&
38715          { ac_try='test -s conftest$ac_exeext'
38716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38717   (eval $ac_try) 2>&5
38718   ac_status=$?
38719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720   (exit $ac_status); }; }; then
38721   ac_cv_func__doprnt=yes
38722 else
38723   echo "$as_me: failed program was:" >&5
38724 sed 's/^/| /' conftest.$ac_ext >&5
38725
38726 ac_cv_func__doprnt=no
38727 fi
38728 rm -f conftest.err conftest.$ac_objext \
38729       conftest$ac_exeext conftest.$ac_ext
38730 fi
38731 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38732 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38733 if test $ac_cv_func__doprnt = yes; then
38734
38735 cat >>confdefs.h <<\_ACEOF
38736 #define HAVE_DOPRNT 1
38737 _ACEOF
38738
38739 fi
38740
38741 fi
38742 done
38743
38744
38745
38746 if test $ac_cv_func_vprintf = yes ; then
38747
38748
38749 for ac_func in snprintf vsnprintf
38750 do
38751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38752 echo "$as_me:$LINENO: checking for $ac_func" >&5
38753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38754 if eval "test \"\${$as_ac_var+set}\" = set"; then
38755   echo $ECHO_N "(cached) $ECHO_C" >&6
38756 else
38757   cat >conftest.$ac_ext <<_ACEOF
38758 /* confdefs.h.  */
38759 _ACEOF
38760 cat confdefs.h >>conftest.$ac_ext
38761 cat >>conftest.$ac_ext <<_ACEOF
38762 /* end confdefs.h.  */
38763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38765 #define $ac_func innocuous_$ac_func
38766
38767 /* System header to define __stub macros and hopefully few prototypes,
38768     which can conflict with char $ac_func (); below.
38769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38770     <limits.h> exists even on freestanding compilers.  */
38771
38772 #ifdef __STDC__
38773 # include <limits.h>
38774 #else
38775 # include <assert.h>
38776 #endif
38777
38778 #undef $ac_func
38779
38780 /* Override any gcc2 internal prototype to avoid an error.  */
38781 #ifdef __cplusplus
38782 extern "C"
38783 {
38784 #endif
38785 /* We use char because int might match the return type of a gcc2
38786    builtin and then its argument prototype would still apply.  */
38787 char $ac_func ();
38788 /* The GNU C library defines this for functions which it implements
38789     to always fail with ENOSYS.  Some functions are actually named
38790     something starting with __ and the normal name is an alias.  */
38791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38792 choke me
38793 #else
38794 char (*f) () = $ac_func;
38795 #endif
38796 #ifdef __cplusplus
38797 }
38798 #endif
38799
38800 int
38801 main ()
38802 {
38803 return f != $ac_func;
38804   ;
38805   return 0;
38806 }
38807 _ACEOF
38808 rm -f conftest.$ac_objext conftest$ac_exeext
38809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38810   (eval $ac_link) 2>conftest.er1
38811   ac_status=$?
38812   grep -v '^ *+' conftest.er1 >conftest.err
38813   rm -f conftest.er1
38814   cat conftest.err >&5
38815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816   (exit $ac_status); } &&
38817          { ac_try='test -z "$ac_c_werror_flag"
38818                          || test ! -s conftest.err'
38819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38820   (eval $ac_try) 2>&5
38821   ac_status=$?
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); }; } &&
38824          { ac_try='test -s conftest$ac_exeext'
38825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826   (eval $ac_try) 2>&5
38827   ac_status=$?
38828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829   (exit $ac_status); }; }; then
38830   eval "$as_ac_var=yes"
38831 else
38832   echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38834
38835 eval "$as_ac_var=no"
38836 fi
38837 rm -f conftest.err conftest.$ac_objext \
38838       conftest$ac_exeext conftest.$ac_ext
38839 fi
38840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38842 if test `eval echo '${'$as_ac_var'}'` = yes; then
38843   cat >>confdefs.h <<_ACEOF
38844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38845 _ACEOF
38846
38847 fi
38848 done
38849
38850 fi
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907 for ac_func in \
38908         bcopy                   \
38909         closesocket             \
38910         chroot                  \
38911         endgrent                \
38912         endpwent                \
38913         fcntl                   \
38914         flock                   \
38915         fstat                   \
38916         getdtablesize           \
38917         getgrgid                \
38918         gethostname             \
38919         getpass                 \
38920         getpassphrase           \
38921         getpwuid                \
38922         getpwnam                \
38923         getspnam                \
38924         gettimeofday            \
38925         initgroups              \
38926         inet_ntoa_b             \
38927         ioctl                   \
38928         lockf                   \
38929         memcpy                  \
38930         memmove                 \
38931         memrchr                 \
38932         mkstemp                 \
38933         mktemp                  \
38934         pipe                    \
38935         read                    \
38936         recv                    \
38937         recvfrom                \
38938         setpwfile               \
38939         setgid                  \
38940         setegid                 \
38941         setsid                  \
38942         setuid                  \
38943         seteuid                 \
38944         signal                  \
38945         strdup                  \
38946         strpbrk                 \
38947         strrchr                 \
38948         strsep                  \
38949         strstr                  \
38950         strtol                  \
38951         strtoul                 \
38952         strtoq                  \
38953         strtouq                 \
38954         strtoll                 \
38955         strspn                  \
38956         sysconf                 \
38957         waitpid                 \
38958         wait4                   \
38959         write                   \
38960         send                    \
38961         sendmsg                 \
38962         sendto                  \
38963
38964 do
38965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38966 echo "$as_me:$LINENO: checking for $ac_func" >&5
38967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38968 if eval "test \"\${$as_ac_var+set}\" = set"; then
38969   echo $ECHO_N "(cached) $ECHO_C" >&6
38970 else
38971   cat >conftest.$ac_ext <<_ACEOF
38972 /* confdefs.h.  */
38973 _ACEOF
38974 cat confdefs.h >>conftest.$ac_ext
38975 cat >>conftest.$ac_ext <<_ACEOF
38976 /* end confdefs.h.  */
38977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38979 #define $ac_func innocuous_$ac_func
38980
38981 /* System header to define __stub macros and hopefully few prototypes,
38982     which can conflict with char $ac_func (); below.
38983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38984     <limits.h> exists even on freestanding compilers.  */
38985
38986 #ifdef __STDC__
38987 # include <limits.h>
38988 #else
38989 # include <assert.h>
38990 #endif
38991
38992 #undef $ac_func
38993
38994 /* Override any gcc2 internal prototype to avoid an error.  */
38995 #ifdef __cplusplus
38996 extern "C"
38997 {
38998 #endif
38999 /* We use char because int might match the return type of a gcc2
39000    builtin and then its argument prototype would still apply.  */
39001 char $ac_func ();
39002 /* The GNU C library defines this for functions which it implements
39003     to always fail with ENOSYS.  Some functions are actually named
39004     something starting with __ and the normal name is an alias.  */
39005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39006 choke me
39007 #else
39008 char (*f) () = $ac_func;
39009 #endif
39010 #ifdef __cplusplus
39011 }
39012 #endif
39013
39014 int
39015 main ()
39016 {
39017 return f != $ac_func;
39018   ;
39019   return 0;
39020 }
39021 _ACEOF
39022 rm -f conftest.$ac_objext conftest$ac_exeext
39023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39024   (eval $ac_link) 2>conftest.er1
39025   ac_status=$?
39026   grep -v '^ *+' conftest.er1 >conftest.err
39027   rm -f conftest.er1
39028   cat conftest.err >&5
39029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39030   (exit $ac_status); } &&
39031          { ac_try='test -z "$ac_c_werror_flag"
39032                          || test ! -s conftest.err'
39033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39034   (eval $ac_try) 2>&5
39035   ac_status=$?
39036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39037   (exit $ac_status); }; } &&
39038          { ac_try='test -s conftest$ac_exeext'
39039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39040   (eval $ac_try) 2>&5
39041   ac_status=$?
39042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39043   (exit $ac_status); }; }; then
39044   eval "$as_ac_var=yes"
39045 else
39046   echo "$as_me: failed program was:" >&5
39047 sed 's/^/| /' conftest.$ac_ext >&5
39048
39049 eval "$as_ac_var=no"
39050 fi
39051 rm -f conftest.err conftest.$ac_objext \
39052       conftest$ac_exeext conftest.$ac_ext
39053 fi
39054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39056 if test `eval echo '${'$as_ac_var'}'` = yes; then
39057   cat >>confdefs.h <<_ACEOF
39058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39059 _ACEOF
39060
39061 fi
39062 done
39063
39064
39065
39066
39067 for ac_func in getopt getpeereid
39068 do
39069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39070 echo "$as_me:$LINENO: checking for $ac_func" >&5
39071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39072 if eval "test \"\${$as_ac_var+set}\" = set"; then
39073   echo $ECHO_N "(cached) $ECHO_C" >&6
39074 else
39075   cat >conftest.$ac_ext <<_ACEOF
39076 /* confdefs.h.  */
39077 _ACEOF
39078 cat confdefs.h >>conftest.$ac_ext
39079 cat >>conftest.$ac_ext <<_ACEOF
39080 /* end confdefs.h.  */
39081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39083 #define $ac_func innocuous_$ac_func
39084
39085 /* System header to define __stub macros and hopefully few prototypes,
39086     which can conflict with char $ac_func (); below.
39087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39088     <limits.h> exists even on freestanding compilers.  */
39089
39090 #ifdef __STDC__
39091 # include <limits.h>
39092 #else
39093 # include <assert.h>
39094 #endif
39095
39096 #undef $ac_func
39097
39098 /* Override any gcc2 internal prototype to avoid an error.  */
39099 #ifdef __cplusplus
39100 extern "C"
39101 {
39102 #endif
39103 /* We use char because int might match the return type of a gcc2
39104    builtin and then its argument prototype would still apply.  */
39105 char $ac_func ();
39106 /* The GNU C library defines this for functions which it implements
39107     to always fail with ENOSYS.  Some functions are actually named
39108     something starting with __ and the normal name is an alias.  */
39109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39110 choke me
39111 #else
39112 char (*f) () = $ac_func;
39113 #endif
39114 #ifdef __cplusplus
39115 }
39116 #endif
39117
39118 int
39119 main ()
39120 {
39121 return f != $ac_func;
39122   ;
39123   return 0;
39124 }
39125 _ACEOF
39126 rm -f conftest.$ac_objext conftest$ac_exeext
39127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39128   (eval $ac_link) 2>conftest.er1
39129   ac_status=$?
39130   grep -v '^ *+' conftest.er1 >conftest.err
39131   rm -f conftest.er1
39132   cat conftest.err >&5
39133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39134   (exit $ac_status); } &&
39135          { ac_try='test -z "$ac_c_werror_flag"
39136                          || test ! -s conftest.err'
39137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39138   (eval $ac_try) 2>&5
39139   ac_status=$?
39140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141   (exit $ac_status); }; } &&
39142          { ac_try='test -s conftest$ac_exeext'
39143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39144   (eval $ac_try) 2>&5
39145   ac_status=$?
39146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147   (exit $ac_status); }; }; then
39148   eval "$as_ac_var=yes"
39149 else
39150   echo "$as_me: failed program was:" >&5
39151 sed 's/^/| /' conftest.$ac_ext >&5
39152
39153 eval "$as_ac_var=no"
39154 fi
39155 rm -f conftest.err conftest.$ac_objext \
39156       conftest$ac_exeext conftest.$ac_ext
39157 fi
39158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39160 if test `eval echo '${'$as_ac_var'}'` = yes; then
39161   cat >>confdefs.h <<_ACEOF
39162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39163 _ACEOF
39164
39165 else
39166   case $LIBOBJS in
39167     "$ac_func.$ac_objext"   | \
39168   *" $ac_func.$ac_objext"   | \
39169     "$ac_func.$ac_objext "* | \
39170   *" $ac_func.$ac_objext "* ) ;;
39171   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39172 esac
39173
39174 fi
39175 done
39176
39177
39178
39179 if test "$ac_cv_func_getopt" != yes; then
39180         LIBSRCS="$LIBSRCS getopt.c"
39181 fi
39182
39183 if test "$ac_cv_func_getpeereid" != yes; then
39184
39185 for ac_func in getpeerucred
39186 do
39187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39188 echo "$as_me:$LINENO: checking for $ac_func" >&5
39189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39190 if eval "test \"\${$as_ac_var+set}\" = set"; then
39191   echo $ECHO_N "(cached) $ECHO_C" >&6
39192 else
39193   cat >conftest.$ac_ext <<_ACEOF
39194 /* confdefs.h.  */
39195 _ACEOF
39196 cat confdefs.h >>conftest.$ac_ext
39197 cat >>conftest.$ac_ext <<_ACEOF
39198 /* end confdefs.h.  */
39199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39201 #define $ac_func innocuous_$ac_func
39202
39203 /* System header to define __stub macros and hopefully few prototypes,
39204     which can conflict with char $ac_func (); below.
39205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39206     <limits.h> exists even on freestanding compilers.  */
39207
39208 #ifdef __STDC__
39209 # include <limits.h>
39210 #else
39211 # include <assert.h>
39212 #endif
39213
39214 #undef $ac_func
39215
39216 /* Override any gcc2 internal prototype to avoid an error.  */
39217 #ifdef __cplusplus
39218 extern "C"
39219 {
39220 #endif
39221 /* We use char because int might match the return type of a gcc2
39222    builtin and then its argument prototype would still apply.  */
39223 char $ac_func ();
39224 /* The GNU C library defines this for functions which it implements
39225     to always fail with ENOSYS.  Some functions are actually named
39226     something starting with __ and the normal name is an alias.  */
39227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39228 choke me
39229 #else
39230 char (*f) () = $ac_func;
39231 #endif
39232 #ifdef __cplusplus
39233 }
39234 #endif
39235
39236 int
39237 main ()
39238 {
39239 return f != $ac_func;
39240   ;
39241   return 0;
39242 }
39243 _ACEOF
39244 rm -f conftest.$ac_objext conftest$ac_exeext
39245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39246   (eval $ac_link) 2>conftest.er1
39247   ac_status=$?
39248   grep -v '^ *+' conftest.er1 >conftest.err
39249   rm -f conftest.er1
39250   cat conftest.err >&5
39251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252   (exit $ac_status); } &&
39253          { ac_try='test -z "$ac_c_werror_flag"
39254                          || test ! -s conftest.err'
39255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39256   (eval $ac_try) 2>&5
39257   ac_status=$?
39258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39259   (exit $ac_status); }; } &&
39260          { ac_try='test -s conftest$ac_exeext'
39261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39262   (eval $ac_try) 2>&5
39263   ac_status=$?
39264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265   (exit $ac_status); }; }; then
39266   eval "$as_ac_var=yes"
39267 else
39268   echo "$as_me: failed program was:" >&5
39269 sed 's/^/| /' conftest.$ac_ext >&5
39270
39271 eval "$as_ac_var=no"
39272 fi
39273 rm -f conftest.err conftest.$ac_objext \
39274       conftest$ac_exeext conftest.$ac_ext
39275 fi
39276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39278 if test `eval echo '${'$as_ac_var'}'` = yes; then
39279   cat >>confdefs.h <<_ACEOF
39280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39281 _ACEOF
39282
39283 fi
39284 done
39285
39286         if test "$ac_cv_func_getpeerucred" != yes ; then
39287                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39288 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39289 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39290   echo $ECHO_N "(cached) $ECHO_C" >&6
39291 else
39292   cat >conftest.$ac_ext <<_ACEOF
39293 /* confdefs.h.  */
39294 _ACEOF
39295 cat confdefs.h >>conftest.$ac_ext
39296 cat >>conftest.$ac_ext <<_ACEOF
39297 /* end confdefs.h.  */
39298 $ac_includes_default
39299 #ifdef HAVE_SYS_SOCKET_H
39300 #include <sys/socket.h>
39301 #endif
39302
39303 int
39304 main ()
39305 {
39306 static struct msghdr ac_aggr;
39307 if (ac_aggr.msg_accrightslen)
39308 return 0;
39309   ;
39310   return 0;
39311 }
39312 _ACEOF
39313 rm -f conftest.$ac_objext
39314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39315   (eval $ac_compile) 2>conftest.er1
39316   ac_status=$?
39317   grep -v '^ *+' conftest.er1 >conftest.err
39318   rm -f conftest.er1
39319   cat conftest.err >&5
39320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39321   (exit $ac_status); } &&
39322          { ac_try='test -z "$ac_c_werror_flag"
39323                          || test ! -s conftest.err'
39324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325   (eval $ac_try) 2>&5
39326   ac_status=$?
39327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328   (exit $ac_status); }; } &&
39329          { ac_try='test -s conftest.$ac_objext'
39330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331   (eval $ac_try) 2>&5
39332   ac_status=$?
39333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334   (exit $ac_status); }; }; then
39335   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39336 else
39337   echo "$as_me: failed program was:" >&5
39338 sed 's/^/| /' conftest.$ac_ext >&5
39339
39340 cat >conftest.$ac_ext <<_ACEOF
39341 /* confdefs.h.  */
39342 _ACEOF
39343 cat confdefs.h >>conftest.$ac_ext
39344 cat >>conftest.$ac_ext <<_ACEOF
39345 /* end confdefs.h.  */
39346 $ac_includes_default
39347 #ifdef HAVE_SYS_SOCKET_H
39348 #include <sys/socket.h>
39349 #endif
39350
39351 int
39352 main ()
39353 {
39354 static struct msghdr ac_aggr;
39355 if (sizeof ac_aggr.msg_accrightslen)
39356 return 0;
39357   ;
39358   return 0;
39359 }
39360 _ACEOF
39361 rm -f conftest.$ac_objext
39362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39363   (eval $ac_compile) 2>conftest.er1
39364   ac_status=$?
39365   grep -v '^ *+' conftest.er1 >conftest.err
39366   rm -f conftest.er1
39367   cat conftest.err >&5
39368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369   (exit $ac_status); } &&
39370          { ac_try='test -z "$ac_c_werror_flag"
39371                          || test ! -s conftest.err'
39372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39373   (eval $ac_try) 2>&5
39374   ac_status=$?
39375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376   (exit $ac_status); }; } &&
39377          { ac_try='test -s conftest.$ac_objext'
39378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39379   (eval $ac_try) 2>&5
39380   ac_status=$?
39381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382   (exit $ac_status); }; }; then
39383   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39384 else
39385   echo "$as_me: failed program was:" >&5
39386 sed 's/^/| /' conftest.$ac_ext >&5
39387
39388 ac_cv_member_struct_msghdr_msg_accrightslen=no
39389 fi
39390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39391 fi
39392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39393 fi
39394 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39395 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39396 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39397
39398 cat >>confdefs.h <<_ACEOF
39399 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39400 _ACEOF
39401
39402
39403 fi
39404
39405                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39406                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39407 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39408 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39409   echo $ECHO_N "(cached) $ECHO_C" >&6
39410 else
39411   cat >conftest.$ac_ext <<_ACEOF
39412 /* confdefs.h.  */
39413 _ACEOF
39414 cat confdefs.h >>conftest.$ac_ext
39415 cat >>conftest.$ac_ext <<_ACEOF
39416 /* end confdefs.h.  */
39417 $ac_includes_default
39418 #ifdef HAVE_SYS_SOCKET_H
39419 #include <sys/socket.h>
39420 #endif
39421
39422 int
39423 main ()
39424 {
39425 static struct msghdr ac_aggr;
39426 if (ac_aggr.msg_control)
39427 return 0;
39428   ;
39429   return 0;
39430 }
39431 _ACEOF
39432 rm -f conftest.$ac_objext
39433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39434   (eval $ac_compile) 2>conftest.er1
39435   ac_status=$?
39436   grep -v '^ *+' conftest.er1 >conftest.err
39437   rm -f conftest.er1
39438   cat conftest.err >&5
39439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440   (exit $ac_status); } &&
39441          { ac_try='test -z "$ac_c_werror_flag"
39442                          || test ! -s conftest.err'
39443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39444   (eval $ac_try) 2>&5
39445   ac_status=$?
39446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447   (exit $ac_status); }; } &&
39448          { ac_try='test -s conftest.$ac_objext'
39449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39450   (eval $ac_try) 2>&5
39451   ac_status=$?
39452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453   (exit $ac_status); }; }; then
39454   ac_cv_member_struct_msghdr_msg_control=yes
39455 else
39456   echo "$as_me: failed program was:" >&5
39457 sed 's/^/| /' conftest.$ac_ext >&5
39458
39459 cat >conftest.$ac_ext <<_ACEOF
39460 /* confdefs.h.  */
39461 _ACEOF
39462 cat confdefs.h >>conftest.$ac_ext
39463 cat >>conftest.$ac_ext <<_ACEOF
39464 /* end confdefs.h.  */
39465 $ac_includes_default
39466 #ifdef HAVE_SYS_SOCKET_H
39467 #include <sys/socket.h>
39468 #endif
39469
39470 int
39471 main ()
39472 {
39473 static struct msghdr ac_aggr;
39474 if (sizeof ac_aggr.msg_control)
39475 return 0;
39476   ;
39477   return 0;
39478 }
39479 _ACEOF
39480 rm -f conftest.$ac_objext
39481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39482   (eval $ac_compile) 2>conftest.er1
39483   ac_status=$?
39484   grep -v '^ *+' conftest.er1 >conftest.err
39485   rm -f conftest.er1
39486   cat conftest.err >&5
39487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39488   (exit $ac_status); } &&
39489          { ac_try='test -z "$ac_c_werror_flag"
39490                          || test ! -s conftest.err'
39491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39492   (eval $ac_try) 2>&5
39493   ac_status=$?
39494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495   (exit $ac_status); }; } &&
39496          { ac_try='test -s conftest.$ac_objext'
39497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39498   (eval $ac_try) 2>&5
39499   ac_status=$?
39500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39501   (exit $ac_status); }; }; then
39502   ac_cv_member_struct_msghdr_msg_control=yes
39503 else
39504   echo "$as_me: failed program was:" >&5
39505 sed 's/^/| /' conftest.$ac_ext >&5
39506
39507 ac_cv_member_struct_msghdr_msg_control=no
39508 fi
39509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39510 fi
39511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39512 fi
39513 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39514 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39515 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39516
39517 cat >>confdefs.h <<_ACEOF
39518 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39519 _ACEOF
39520
39521
39522 fi
39523
39524                 fi
39525                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39526 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39527 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39528   echo $ECHO_N "(cached) $ECHO_C" >&6
39529 else
39530   cat >conftest.$ac_ext <<_ACEOF
39531 /* confdefs.h.  */
39532 _ACEOF
39533 cat confdefs.h >>conftest.$ac_ext
39534 cat >>conftest.$ac_ext <<_ACEOF
39535 /* end confdefs.h.  */
39536 $ac_includes_default
39537 int
39538 main ()
39539 {
39540 static struct stat ac_aggr;
39541 if (ac_aggr.st_fstype)
39542 return 0;
39543   ;
39544   return 0;
39545 }
39546 _ACEOF
39547 rm -f conftest.$ac_objext
39548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39549   (eval $ac_compile) 2>conftest.er1
39550   ac_status=$?
39551   grep -v '^ *+' conftest.er1 >conftest.err
39552   rm -f conftest.er1
39553   cat conftest.err >&5
39554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555   (exit $ac_status); } &&
39556          { ac_try='test -z "$ac_c_werror_flag"
39557                          || test ! -s conftest.err'
39558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559   (eval $ac_try) 2>&5
39560   ac_status=$?
39561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562   (exit $ac_status); }; } &&
39563          { ac_try='test -s conftest.$ac_objext'
39564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565   (eval $ac_try) 2>&5
39566   ac_status=$?
39567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568   (exit $ac_status); }; }; then
39569   ac_cv_member_struct_stat_st_fstype=yes
39570 else
39571   echo "$as_me: failed program was:" >&5
39572 sed 's/^/| /' conftest.$ac_ext >&5
39573
39574 cat >conftest.$ac_ext <<_ACEOF
39575 /* confdefs.h.  */
39576 _ACEOF
39577 cat confdefs.h >>conftest.$ac_ext
39578 cat >>conftest.$ac_ext <<_ACEOF
39579 /* end confdefs.h.  */
39580 $ac_includes_default
39581 int
39582 main ()
39583 {
39584 static struct stat ac_aggr;
39585 if (sizeof ac_aggr.st_fstype)
39586 return 0;
39587   ;
39588   return 0;
39589 }
39590 _ACEOF
39591 rm -f conftest.$ac_objext
39592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39593   (eval $ac_compile) 2>conftest.er1
39594   ac_status=$?
39595   grep -v '^ *+' conftest.er1 >conftest.err
39596   rm -f conftest.er1
39597   cat conftest.err >&5
39598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599   (exit $ac_status); } &&
39600          { ac_try='test -z "$ac_c_werror_flag"
39601                          || test ! -s conftest.err'
39602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603   (eval $ac_try) 2>&5
39604   ac_status=$?
39605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606   (exit $ac_status); }; } &&
39607          { ac_try='test -s conftest.$ac_objext'
39608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39609   (eval $ac_try) 2>&5
39610   ac_status=$?
39611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612   (exit $ac_status); }; }; then
39613   ac_cv_member_struct_stat_st_fstype=yes
39614 else
39615   echo "$as_me: failed program was:" >&5
39616 sed 's/^/| /' conftest.$ac_ext >&5
39617
39618 ac_cv_member_struct_stat_st_fstype=no
39619 fi
39620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39621 fi
39622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39623 fi
39624 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39625 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39626 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39627
39628 cat >>confdefs.h <<_ACEOF
39629 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39630 _ACEOF
39631
39632
39633 fi
39634 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39635 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39636 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39637   echo $ECHO_N "(cached) $ECHO_C" >&6
39638 else
39639   cat >conftest.$ac_ext <<_ACEOF
39640 /* confdefs.h.  */
39641 _ACEOF
39642 cat confdefs.h >>conftest.$ac_ext
39643 cat >>conftest.$ac_ext <<_ACEOF
39644 /* end confdefs.h.  */
39645 $ac_includes_default
39646 int
39647 main ()
39648 {
39649 static struct stat ac_aggr;
39650 if (ac_aggr.st_vfstype)
39651 return 0;
39652   ;
39653   return 0;
39654 }
39655 _ACEOF
39656 rm -f conftest.$ac_objext
39657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39658   (eval $ac_compile) 2>conftest.er1
39659   ac_status=$?
39660   grep -v '^ *+' conftest.er1 >conftest.err
39661   rm -f conftest.er1
39662   cat conftest.err >&5
39663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39664   (exit $ac_status); } &&
39665          { ac_try='test -z "$ac_c_werror_flag"
39666                          || test ! -s conftest.err'
39667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39668   (eval $ac_try) 2>&5
39669   ac_status=$?
39670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671   (exit $ac_status); }; } &&
39672          { ac_try='test -s conftest.$ac_objext'
39673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674   (eval $ac_try) 2>&5
39675   ac_status=$?
39676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677   (exit $ac_status); }; }; then
39678   ac_cv_member_struct_stat_st_vfstype=yes
39679 else
39680   echo "$as_me: failed program was:" >&5
39681 sed 's/^/| /' conftest.$ac_ext >&5
39682
39683 cat >conftest.$ac_ext <<_ACEOF
39684 /* confdefs.h.  */
39685 _ACEOF
39686 cat confdefs.h >>conftest.$ac_ext
39687 cat >>conftest.$ac_ext <<_ACEOF
39688 /* end confdefs.h.  */
39689 $ac_includes_default
39690 int
39691 main ()
39692 {
39693 static struct stat ac_aggr;
39694 if (sizeof ac_aggr.st_vfstype)
39695 return 0;
39696   ;
39697   return 0;
39698 }
39699 _ACEOF
39700 rm -f conftest.$ac_objext
39701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39702   (eval $ac_compile) 2>conftest.er1
39703   ac_status=$?
39704   grep -v '^ *+' conftest.er1 >conftest.err
39705   rm -f conftest.er1
39706   cat conftest.err >&5
39707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708   (exit $ac_status); } &&
39709          { ac_try='test -z "$ac_c_werror_flag"
39710                          || test ! -s conftest.err'
39711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39712   (eval $ac_try) 2>&5
39713   ac_status=$?
39714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39715   (exit $ac_status); }; } &&
39716          { ac_try='test -s conftest.$ac_objext'
39717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39718   (eval $ac_try) 2>&5
39719   ac_status=$?
39720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721   (exit $ac_status); }; }; then
39722   ac_cv_member_struct_stat_st_vfstype=yes
39723 else
39724   echo "$as_me: failed program was:" >&5
39725 sed 's/^/| /' conftest.$ac_ext >&5
39726
39727 ac_cv_member_struct_stat_st_vfstype=no
39728 fi
39729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39730 fi
39731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39732 fi
39733 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
39734 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
39735 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
39736
39737 cat >>confdefs.h <<_ACEOF
39738 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
39739 _ACEOF
39740
39741
39742 fi
39743
39744                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
39745                         cat >conftest.$ac_ext <<_ACEOF
39746 struct stat st; char *ptr=st.st_fstype;
39747 _ACEOF
39748 rm -f conftest.$ac_objext
39749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39750   (eval $ac_compile) 2>conftest.er1
39751   ac_status=$?
39752   grep -v '^ *+' conftest.er1 >conftest.err
39753   rm -f conftest.er1
39754   cat conftest.err >&5
39755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756   (exit $ac_status); } &&
39757          { ac_try='test -z "$ac_c_werror_flag"
39758                          || test ! -s conftest.err'
39759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760   (eval $ac_try) 2>&5
39761   ac_status=$?
39762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763   (exit $ac_status); }; } &&
39764          { ac_try='test -s conftest.$ac_objext'
39765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39766   (eval $ac_try) 2>&5
39767   ac_status=$?
39768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769   (exit $ac_status); }; }; then
39770
39771 cat >>confdefs.h <<\_ACEOF
39772 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
39773 _ACEOF
39774
39775 else
39776   echo "$as_me: failed program was:" >&5
39777 sed 's/^/| /' conftest.$ac_ext >&5
39778
39779
39780 cat >>confdefs.h <<\_ACEOF
39781 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
39782 _ACEOF
39783
39784 fi
39785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39786                 fi
39787         fi
39788         LIBSRCS="$LIBSRCS getpeereid.c"
39789 fi
39790
39791 if test "$ac_cv_func_snprintf" != yes ||
39792    test "$ac_cv_func_vsnprintf" != yes; then
39793         if test "$ac_cv_func_snprintf" != yes; then
39794
39795 cat >>confdefs.h <<\_ACEOF
39796 #define snprintf ber_pvt_snprintf
39797 _ACEOF
39798
39799         fi
39800         if test "$ac_cv_func_vsnprintf" != yes; then
39801
39802 cat >>confdefs.h <<\_ACEOF
39803 #define vsnprintf ber_pvt_vsnprintf
39804 _ACEOF
39805
39806         fi
39807 fi
39808
39809
39810 if test "$ol_enable_slapi" != no ; then
39811
39812 for ac_header in ltdl.h
39813 do
39814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39816   echo "$as_me:$LINENO: checking for $ac_header" >&5
39817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39819   echo $ECHO_N "(cached) $ECHO_C" >&6
39820 fi
39821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39823 else
39824   # Is the header compilable?
39825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39827 cat >conftest.$ac_ext <<_ACEOF
39828 /* confdefs.h.  */
39829 _ACEOF
39830 cat confdefs.h >>conftest.$ac_ext
39831 cat >>conftest.$ac_ext <<_ACEOF
39832 /* end confdefs.h.  */
39833 $ac_includes_default
39834 #include <$ac_header>
39835 _ACEOF
39836 rm -f conftest.$ac_objext
39837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39838   (eval $ac_compile) 2>conftest.er1
39839   ac_status=$?
39840   grep -v '^ *+' conftest.er1 >conftest.err
39841   rm -f conftest.er1
39842   cat conftest.err >&5
39843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844   (exit $ac_status); } &&
39845          { ac_try='test -z "$ac_c_werror_flag"
39846                          || test ! -s conftest.err'
39847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848   (eval $ac_try) 2>&5
39849   ac_status=$?
39850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851   (exit $ac_status); }; } &&
39852          { ac_try='test -s conftest.$ac_objext'
39853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39854   (eval $ac_try) 2>&5
39855   ac_status=$?
39856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39857   (exit $ac_status); }; }; then
39858   ac_header_compiler=yes
39859 else
39860   echo "$as_me: failed program was:" >&5
39861 sed 's/^/| /' conftest.$ac_ext >&5
39862
39863 ac_header_compiler=no
39864 fi
39865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39867 echo "${ECHO_T}$ac_header_compiler" >&6
39868
39869 # Is the header present?
39870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39872 cat >conftest.$ac_ext <<_ACEOF
39873 /* confdefs.h.  */
39874 _ACEOF
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h.  */
39878 #include <$ac_header>
39879 _ACEOF
39880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39882   ac_status=$?
39883   grep -v '^ *+' conftest.er1 >conftest.err
39884   rm -f conftest.er1
39885   cat conftest.err >&5
39886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887   (exit $ac_status); } >/dev/null; then
39888   if test -s conftest.err; then
39889     ac_cpp_err=$ac_c_preproc_warn_flag
39890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39891   else
39892     ac_cpp_err=
39893   fi
39894 else
39895   ac_cpp_err=yes
39896 fi
39897 if test -z "$ac_cpp_err"; then
39898   ac_header_preproc=yes
39899 else
39900   echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39902
39903   ac_header_preproc=no
39904 fi
39905 rm -f conftest.err conftest.$ac_ext
39906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39907 echo "${ECHO_T}$ac_header_preproc" >&6
39908
39909 # So?  What about this header?
39910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39911   yes:no: )
39912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39916     ac_header_preproc=yes
39917     ;;
39918   no:yes:* )
39919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39931     (
39932       cat <<\_ASBOX
39933 ## --------------------------------------------- ##
39934 ## Report this to <http://www.openldap.org/its/> ##
39935 ## --------------------------------------------- ##
39936 _ASBOX
39937     ) |
39938       sed "s/^/$as_me: WARNING:     /" >&2
39939     ;;
39940 esac
39941 echo "$as_me:$LINENO: checking for $ac_header" >&5
39942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39944   echo $ECHO_N "(cached) $ECHO_C" >&6
39945 else
39946   eval "$as_ac_Header=\$ac_header_preproc"
39947 fi
39948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39950
39951 fi
39952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39953   cat >>confdefs.h <<_ACEOF
39954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39955 _ACEOF
39956
39957 fi
39958
39959 done
39960
39961
39962         if test $ac_cv_header_ltdl_h != yes ; then
39963                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39964 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
39965    { (exit 1); exit 1; }; }
39966         fi
39967         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
39968 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
39969 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
39970   echo $ECHO_N "(cached) $ECHO_C" >&6
39971 else
39972   ac_check_lib_save_LIBS=$LIBS
39973 LIBS="-lltdl  $LIBS"
39974 cat >conftest.$ac_ext <<_ACEOF
39975 /* confdefs.h.  */
39976 _ACEOF
39977 cat confdefs.h >>conftest.$ac_ext
39978 cat >>conftest.$ac_ext <<_ACEOF
39979 /* end confdefs.h.  */
39980
39981 /* Override any gcc2 internal prototype to avoid an error.  */
39982 #ifdef __cplusplus
39983 extern "C"
39984 #endif
39985 /* We use char because int might match the return type of a gcc2
39986    builtin and then its argument prototype would still apply.  */
39987 char lt_dlinit ();
39988 int
39989 main ()
39990 {
39991 lt_dlinit ();
39992   ;
39993   return 0;
39994 }
39995 _ACEOF
39996 rm -f conftest.$ac_objext conftest$ac_exeext
39997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39998   (eval $ac_link) 2>conftest.er1
39999   ac_status=$?
40000   grep -v '^ *+' conftest.er1 >conftest.err
40001   rm -f conftest.er1
40002   cat conftest.err >&5
40003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004   (exit $ac_status); } &&
40005          { ac_try='test -z "$ac_c_werror_flag"
40006                          || test ! -s conftest.err'
40007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40008   (eval $ac_try) 2>&5
40009   ac_status=$?
40010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011   (exit $ac_status); }; } &&
40012          { ac_try='test -s conftest$ac_exeext'
40013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40014   (eval $ac_try) 2>&5
40015   ac_status=$?
40016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017   (exit $ac_status); }; }; then
40018   ac_cv_lib_ltdl_lt_dlinit=yes
40019 else
40020   echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40022
40023 ac_cv_lib_ltdl_lt_dlinit=no
40024 fi
40025 rm -f conftest.err conftest.$ac_objext \
40026       conftest$ac_exeext conftest.$ac_ext
40027 LIBS=$ac_check_lib_save_LIBS
40028 fi
40029 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40030 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40031 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40032
40033                 SLAPI_LIBS=-lltdl
40034                 LIBSLAPI=libslapi.a
40035                 LIBSLAPITOOLS=../libslapi.a
40036
40037 cat >>confdefs.h <<\_ACEOF
40038 #define HAVE_LIBLTDL 1
40039 _ACEOF
40040
40041
40042 else
40043   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40044 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40045    { (exit 1); exit 1; }; }
40046 fi
40047
40048
40049
40050 cat >>confdefs.h <<\_ACEOF
40051 #define LDAP_SLAPI 1
40052 _ACEOF
40053
40054 fi
40055
40056 if test "$ol_enable_debug" != no ; then
40057         if test "$ol_enable_debug" = traditional; then
40058
40059 cat >>confdefs.h <<\_ACEOF
40060 #define OLD_DEBUG 1
40061 _ACEOF
40062
40063         fi
40064
40065 cat >>confdefs.h <<\_ACEOF
40066 #define LDAP_DEBUG 1
40067 _ACEOF
40068
40069 fi
40070 if test "$ol_enable_syslog" = yes ; then
40071
40072 cat >>confdefs.h <<\_ACEOF
40073 #define LDAP_SYSLOG 1
40074 _ACEOF
40075
40076 fi
40077 if test "$ol_enable_proctitle" != no ; then
40078
40079 cat >>confdefs.h <<\_ACEOF
40080 #define LDAP_PROCTITLE 1
40081 _ACEOF
40082
40083 fi
40084 if test "$ol_enable_referrals" != no ; then
40085
40086 cat >>confdefs.h <<\_ACEOF
40087 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40088 _ACEOF
40089
40090 fi
40091 if test "$ol_enable_local" != no; then
40092
40093 cat >>confdefs.h <<\_ACEOF
40094 #define LDAP_PF_LOCAL 1
40095 _ACEOF
40096
40097 fi
40098 if test "$ol_link_ipv6" != no; then
40099
40100 cat >>confdefs.h <<\_ACEOF
40101 #define LDAP_PF_INET6 1
40102 _ACEOF
40103
40104 fi
40105 if test "$ol_enable_cleartext" != no ; then
40106
40107 cat >>confdefs.h <<\_ACEOF
40108 #define SLAPD_CLEARTEXT 1
40109 _ACEOF
40110
40111 fi
40112 if test "$ol_enable_crypt" != no ; then
40113
40114 cat >>confdefs.h <<\_ACEOF
40115 #define SLAPD_CRYPT 1
40116 _ACEOF
40117
40118 fi
40119 if test "$ol_link_spasswd" != no ; then
40120
40121 cat >>confdefs.h <<\_ACEOF
40122 #define SLAPD_SPASSWD 1
40123 _ACEOF
40124
40125 fi
40126 if test "$ol_enable_rlookups" != no ; then
40127
40128 cat >>confdefs.h <<\_ACEOF
40129 #define SLAPD_RLOOKUPS 1
40130 _ACEOF
40131
40132 fi
40133 if test "$ol_enable_aci" != no ; then
40134         if test $ol_enable_dynacl = no ; then
40135                 ol_enable_dynacl=yes
40136                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40137 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40138         fi
40139         if test "$ol_enable_aci" = mod ; then
40140                 MFLAG=SLAPD_MOD_DYNAMIC
40141                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40142 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40143    { (exit 1); exit 1; }; }
40144         else
40145                 MFLAG=SLAPD_MOD_STATIC
40146         fi
40147         WITH_ACI_ENABLED=$ol_enable_aci
40148
40149 cat >>confdefs.h <<_ACEOF
40150 #define SLAPD_ACI_ENABLED $MFLAG
40151 _ACEOF
40152
40153 else
40154         WITH_ACI_ENABLED=no
40155 fi
40156 if test "$ol_enable_dynacl" != no ; then
40157
40158 cat >>confdefs.h <<\_ACEOF
40159 #define SLAP_DYNACL 1
40160 _ACEOF
40161
40162 fi
40163
40164 if test "$ol_link_modules" != no ; then
40165
40166 cat >>confdefs.h <<\_ACEOF
40167 #define SLAPD_MODULES 1
40168 _ACEOF
40169
40170         BUILD_SLAPD=yes
40171         SLAPD_MODULES_LDFLAGS="-dlopen self"
40172 fi
40173
40174
40175 cat >>confdefs.h <<\_ACEOF
40176 #define SLAPD_MOD_STATIC 1
40177 _ACEOF
40178
40179
40180 cat >>confdefs.h <<\_ACEOF
40181 #define SLAPD_MOD_DYNAMIC 2
40182 _ACEOF
40183
40184
40185 if test "$ol_enable_monitor" != no ; then
40186         BUILD_SLAPD=yes
40187         BUILD_MONITOR=$ol_enable_monitor
40188         if test "$ol_enable_monitor" = mod ; then
40189                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40190                 MFLAG=SLAPD_MOD_DYNAMIC
40191         else
40192                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40193                 MFLAG=SLAPD_MOD_STATIC
40194         fi
40195
40196 cat >>confdefs.h <<_ACEOF
40197 #define SLAPD_MONITOR $MFLAG
40198 _ACEOF
40199
40200 fi
40201
40202 if test "$ol_enable_bdb" != no ; then
40203         BUILD_SLAPD=yes
40204         BUILD_BDB=$ol_enable_bdb
40205         if test "$ol_enable_bdb" = mod ; then
40206                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40207                 MFLAG=SLAPD_MOD_DYNAMIC
40208         else
40209                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40210                 MFLAG=SLAPD_MOD_STATIC
40211         fi
40212
40213 cat >>confdefs.h <<_ACEOF
40214 #define SLAPD_BDB $MFLAG
40215 _ACEOF
40216
40217 fi
40218
40219 if test "$ol_enable_dnssrv" != no ; then
40220         BUILD_SLAPD=yes
40221         BUILD_DNSSRV=$ol_enable_dnssrv
40222         if test "$ol_enable_dnssrv" = mod ; then
40223                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40224                 MFLAG=SLAPD_MOD_DYNAMIC
40225         else
40226                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40227                 MFLAG=SLAPD_MOD_STATIC
40228         fi
40229
40230 cat >>confdefs.h <<_ACEOF
40231 #define SLAPD_DNSSRV $MFLAG
40232 _ACEOF
40233
40234 fi
40235
40236 if test "$ol_enable_hdb" != no ; then
40237         BUILD_SLAPD=yes
40238         BUILD_HDB=$ol_enable_hdb
40239         if test "$ol_enable_hdb" = mod ; then
40240                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40241                 MFLAG=SLAPD_MOD_DYNAMIC
40242         else
40243                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40244                 MFLAG=SLAPD_MOD_STATIC
40245         fi
40246
40247 cat >>confdefs.h <<_ACEOF
40248 #define SLAPD_HDB $MFLAG
40249 _ACEOF
40250
40251 fi
40252
40253 if test "$ol_enable_ldap" != no ; then
40254         BUILD_SLAPD=yes
40255         BUILD_LDAP=$ol_enable_ldap
40256         if test "$ol_enable_ldap" = mod ; then
40257                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40258                 MFLAG=SLAPD_MOD_DYNAMIC
40259         else
40260                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40261                 MFLAG=SLAPD_MOD_STATIC
40262         fi
40263
40264 cat >>confdefs.h <<_ACEOF
40265 #define SLAPD_LDAP $MFLAG
40266 _ACEOF
40267
40268 fi
40269
40270 if test "$ol_enable_meta" != no ; then
40271         BUILD_SLAPD=yes
40272         BUILD_META=$ol_enable_meta
40273         BUILD_REWRITE=yes
40274         if test "$ol_enable_meta" = mod ; then
40275                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40276                 MFLAG=SLAPD_MOD_DYNAMIC
40277         else
40278                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40279                 MFLAG=SLAPD_MOD_STATIC
40280         fi
40281
40282 cat >>confdefs.h <<_ACEOF
40283 #define SLAPD_META $MFLAG
40284 _ACEOF
40285
40286 fi
40287
40288 if test "$ol_enable_null" != no ; then
40289         BUILD_SLAPD=yes
40290         BUILD_NULL=$ol_enable_null
40291         if test "$ol_enable_null" = mod ; then
40292                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40293                 MFLAG=SLAPD_MOD_DYNAMIC
40294         else
40295                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40296                 MFLAG=SLAPD_MOD_STATIC
40297         fi
40298
40299 cat >>confdefs.h <<_ACEOF
40300 #define SLAPD_NULL $MFLAG
40301 _ACEOF
40302
40303 fi
40304
40305 if test "$ol_enable_passwd" != no ; then
40306         BUILD_SLAPD=yes
40307         BUILD_PASSWD=$ol_enable_passwd
40308         if test "$ol_enable_passwd" = mod ; then
40309                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40310                 MFLAG=SLAPD_MOD_DYNAMIC
40311         else
40312                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40313                 MFLAG=SLAPD_MOD_STATIC
40314         fi
40315
40316 cat >>confdefs.h <<_ACEOF
40317 #define SLAPD_PASSWD $MFLAG
40318 _ACEOF
40319
40320 fi
40321
40322 if test "$ol_link_perl" != no ; then
40323         BUILD_SLAPD=yes
40324         BUILD_PERL=$ol_enable_perl
40325         if test "$ol_enable_perl" = mod ; then
40326                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40327                 MFLAG=SLAPD_MOD_DYNAMIC
40328         else
40329                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40330                 MFLAG=SLAPD_MOD_STATIC
40331         fi
40332
40333 cat >>confdefs.h <<_ACEOF
40334 #define SLAPD_PERL $MFLAG
40335 _ACEOF
40336
40337 fi
40338
40339 if test "$ol_enable_relay" != no ; then
40340         BUILD_SLAPD=yes
40341         BUILD_RELAY=$ol_enable_relay
40342         if test "$ol_enable_relay" = mod ; then
40343                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40344                 MFLAG=SLAPD_MOD_DYNAMIC
40345         else
40346                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40347                 MFLAG=SLAPD_MOD_STATIC
40348         fi
40349
40350 cat >>confdefs.h <<_ACEOF
40351 #define SLAPD_RELAY $MFLAG
40352 _ACEOF
40353
40354 fi
40355
40356 if test "$ol_enable_shell" != no ; then
40357         if test "$ol_link_threads" != no ; then
40358                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40359 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40360         fi
40361         BUILD_SLAPD=yes
40362         BUILD_SHELL=$ol_enable_shell
40363         if test "$ol_enable_shell" = mod ; then
40364                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40365                 MFLAG=SLAPD_MOD_DYNAMIC
40366         else
40367                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40368                 MFLAG=SLAPD_MOD_STATIC
40369         fi
40370
40371 cat >>confdefs.h <<_ACEOF
40372 #define SLAPD_SHELL $MFLAG
40373 _ACEOF
40374
40375 fi
40376
40377 if test "$ol_link_sql" != no ; then
40378         BUILD_SLAPD=yes
40379         BUILD_SQL=$ol_enable_sql
40380         if test "$ol_enable_sql" = mod; then
40381                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40382                 MFLAG=SLAPD_MOD_DYNAMIC
40383         else
40384                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40385                 MFLAG=SLAPD_MOD_STATIC
40386         fi
40387
40388 cat >>confdefs.h <<_ACEOF
40389 #define SLAPD_SQL $MFLAG
40390 _ACEOF
40391
40392 fi
40393
40394 if test "$ol_enable_accesslog" != no ; then
40395         BUILD_ACCESSLOG=$ol_enable_accesslog
40396         if test "$ol_enable_accesslog" = mod ; then
40397                 MFLAG=SLAPD_MOD_DYNAMIC
40398                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40399         else
40400                 MFLAG=SLAPD_MOD_STATIC
40401                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40402         fi
40403
40404 cat >>confdefs.h <<_ACEOF
40405 #define SLAPD_OVER_ACCESSLOG $MFLAG
40406 _ACEOF
40407
40408 fi
40409
40410 if test "$ol_enable_auditlog" != no ; then
40411         BUILD_AUDITLOG=$ol_enable_auditlog
40412         if test "$ol_enable_auditlog" = mod ; then
40413                 MFLAG=SLAPD_MOD_DYNAMIC
40414                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40415         else
40416                 MFLAG=SLAPD_MOD_STATIC
40417                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40418         fi
40419
40420 cat >>confdefs.h <<_ACEOF
40421 #define SLAPD_OVER_AUDITLOG $MFLAG
40422 _ACEOF
40423
40424 fi
40425
40426 if test "$ol_enable_constraint" != no ; then
40427         BUILD_CONSTRAINT=$ol_enable_constraint
40428         if test "$ol_enable_constraint" = mod ; then
40429                 MFLAG=SLAPD_MOD_DYNAMIC
40430                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40431         else
40432                 MFLAG=SLAPD_MOD_STATIC
40433                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40434         fi
40435
40436 cat >>confdefs.h <<_ACEOF
40437 #define SLAPD_OVER_CONSTRAINT $MFLAG
40438 _ACEOF
40439
40440 fi
40441
40442 if test "$ol_enable_dds" != no ; then
40443         BUILD_DDS=$ol_enable_dds
40444         if test "$ol_enable_dds" = mod ; then
40445                 MFLAG=SLAPD_MOD_DYNAMIC
40446                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40447         else
40448                 MFLAG=SLAPD_MOD_STATIC
40449                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40450         fi
40451
40452 cat >>confdefs.h <<_ACEOF
40453 #define SLAPD_OVER_DDS $MFLAG
40454 _ACEOF
40455
40456 fi
40457
40458 if test "$ol_enable_dyngroup" != no ; then
40459         BUILD_DYNGROUP=$ol_enable_dyngroup
40460         if test "$ol_enable_dyngroup" = mod ; then
40461                 MFLAG=SLAPD_MOD_DYNAMIC
40462                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40463         else
40464                 MFLAG=SLAPD_MOD_STATIC
40465                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40466         fi
40467
40468 cat >>confdefs.h <<_ACEOF
40469 #define SLAPD_OVER_DYNGROUP $MFLAG
40470 _ACEOF
40471
40472 fi
40473
40474 if test "$ol_enable_dynlist" != no ; then
40475         BUILD_DYNLIST=$ol_enable_dynlist
40476         if test "$ol_enable_dynlist" = mod ; then
40477                 MFLAG=SLAPD_MOD_DYNAMIC
40478                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40479         else
40480                 MFLAG=SLAPD_MOD_STATIC
40481                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40482         fi
40483
40484 cat >>confdefs.h <<_ACEOF
40485 #define SLAPD_OVER_DYNLIST $MFLAG
40486 _ACEOF
40487
40488 fi
40489
40490 if test "$ol_enable_ppolicy" != no ; then
40491         BUILD_PPOLICY=$ol_enable_ppolicy
40492         if test "$ol_enable_ppolicy" = mod ; then
40493                 MFLAG=SLAPD_MOD_DYNAMIC
40494                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40495         else
40496                 MFLAG=SLAPD_MOD_STATIC
40497                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40498         fi
40499
40500 cat >>confdefs.h <<_ACEOF
40501 #define SLAPD_OVER_PPOLICY $MFLAG
40502 _ACEOF
40503
40504 fi
40505
40506 if test "$ol_enable_proxycache" != no ; then
40507         BUILD_PROXYCACHE=$ol_enable_proxycache
40508         if test "$ol_enable_proxycache" = mod ; then
40509                 MFLAG=SLAPD_MOD_DYNAMIC
40510                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40511         else
40512                 MFLAG=SLAPD_MOD_STATIC
40513                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40514         fi
40515
40516 cat >>confdefs.h <<_ACEOF
40517 #define SLAPD_OVER_PROXYCACHE $MFLAG
40518 _ACEOF
40519
40520 fi
40521
40522 if test "$ol_enable_refint" != no ; then
40523         BUILD_REFINT=$ol_enable_refint
40524         if test "$ol_enable_refint" = mod ; then
40525                 MFLAG=SLAPD_MOD_DYNAMIC
40526                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40527         else
40528                 MFLAG=SLAPD_MOD_STATIC
40529                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40530         fi
40531
40532 cat >>confdefs.h <<_ACEOF
40533 #define SLAPD_OVER_REFINT $MFLAG
40534 _ACEOF
40535
40536 fi
40537
40538 if test "$ol_enable_retcode" != no ; then
40539         BUILD_RETCODE=$ol_enable_retcode
40540         if test "$ol_enable_retcode" = mod ; then
40541                 MFLAG=SLAPD_MOD_DYNAMIC
40542                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40543         else
40544                 MFLAG=SLAPD_MOD_STATIC
40545                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40546         fi
40547
40548 cat >>confdefs.h <<_ACEOF
40549 #define SLAPD_OVER_RETCODE $MFLAG
40550 _ACEOF
40551
40552 fi
40553
40554 if test "$ol_enable_rwm" != no ; then
40555         BUILD_REWRITE=yes
40556         BUILD_RWM=$ol_enable_rwm
40557         if test "$ol_enable_rwm" = mod ; then
40558                 MFLAG=SLAPD_MOD_DYNAMIC
40559                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40560         else
40561                 MFLAG=SLAPD_MOD_STATIC
40562                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40563         fi
40564
40565 cat >>confdefs.h <<_ACEOF
40566 #define SLAPD_OVER_RWM $MFLAG
40567 _ACEOF
40568
40569 fi
40570
40571 if test "$ol_enable_seqmod" != no ; then
40572         BUILD_SEQMOD=$ol_enable_seqmod
40573         if test "$ol_enable_seqmod" = mod ; then
40574                 MFLAG=SLAPD_MOD_DYNAMIC
40575                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40576         else
40577                 MFLAG=SLAPD_MOD_STATIC
40578                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40579         fi
40580
40581 cat >>confdefs.h <<_ACEOF
40582 #define SLAPD_OVER_SEQMOD $MFLAG
40583 _ACEOF
40584
40585 fi
40586
40587 if test "$ol_enable_syncprov" != no ; then
40588         BUILD_SYNCPROV=$ol_enable_syncprov
40589         if test "$ol_enable_syncprov" = mod ; then
40590                 MFLAG=SLAPD_MOD_DYNAMIC
40591                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40592         else
40593                 MFLAG=SLAPD_MOD_STATIC
40594                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40595         fi
40596
40597 cat >>confdefs.h <<_ACEOF
40598 #define SLAPD_OVER_SYNCPROV $MFLAG
40599 _ACEOF
40600
40601 fi
40602
40603 if test "$ol_enable_translucent" != no ; then
40604         BUILD_TRANSLUCENT=$ol_enable_translucent
40605         if test "$ol_enable_translucent" = mod ; then
40606                 MFLAG=SLAPD_MOD_DYNAMIC
40607                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40608         else
40609                 MFLAG=SLAPD_MOD_STATIC
40610                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40611         fi
40612
40613 cat >>confdefs.h <<_ACEOF
40614 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40615 _ACEOF
40616
40617 fi
40618
40619 if test "$ol_enable_unique" != no ; then
40620         BUILD_UNIQUE=$ol_enable_unique
40621         if test "$ol_enable_unique" = mod ; then
40622                 MFLAG=SLAPD_MOD_DYNAMIC
40623                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40624         else
40625                 MFLAG=SLAPD_MOD_STATIC
40626                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40627         fi
40628
40629 cat >>confdefs.h <<_ACEOF
40630 #define SLAPD_OVER_UNIQUE $MFLAG
40631 _ACEOF
40632
40633 fi
40634
40635 if test "$ol_enable_valsort" != no ; then
40636         BUILD_VALSORT=$ol_enable_valsort
40637         if test "$ol_enable_valsort" = mod ; then
40638                 MFLAG=SLAPD_MOD_DYNAMIC
40639                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40640         else
40641                 MFLAG=SLAPD_MOD_STATIC
40642                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40643         fi
40644
40645 cat >>confdefs.h <<_ACEOF
40646 #define SLAPD_OVER_VALSORT $MFLAG
40647 _ACEOF
40648
40649 fi
40650
40651 if test "$ol_enable_rewrite" != no ; then
40652
40653 cat >>confdefs.h <<\_ACEOF
40654 #define ENABLE_REWRITE 1
40655 _ACEOF
40656
40657         BUILD_REWRITE=yes
40658 fi
40659
40660 if test "$ol_enable_slapi" != no ; then
40661
40662 cat >>confdefs.h <<\_ACEOF
40663 #define ENABLE_SLAPI 1
40664 _ACEOF
40665
40666         BUILD_SLAPI=yes
40667         SLAPD_SLAPI_DEPEND=libslapi.a
40668 fi
40669
40670
40671
40672 if test "$ac_cv_mingw32" = yes ; then
40673         PLAT=NT
40674         SLAPD_MODULES_LDFLAGS=
40675 else
40676         PLAT=UNIX
40677 fi
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761 # Check whether --with-xxinstall or --without-xxinstall was given.
40762 if test "${with_xxinstall+set}" = set; then
40763   withval="$with_xxinstall"
40764
40765 fi;
40766
40767
40768                                                                                                                                                                                                                                                                                                                                                                                             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 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"
40769
40770
40771           ac_config_commands="$ac_config_commands default"
40772
40773
40774
40775 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40776 # Let make expand exec_prefix.
40777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40778
40779 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40780 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40781 # trailing colons and then remove the whole line if VPATH becomes empty
40782 # (actually we leave an empty line to preserve line numbers).
40783 if test "x$srcdir" = x.; then
40784   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40785 s/:*\$(srcdir):*/:/;
40786 s/:*\${srcdir}:*/:/;
40787 s/:*@srcdir@:*/:/;
40788 s/^\([^=]*=[     ]*\):*/\1/;
40789 s/:*$//;
40790 s/^[^=]*=[       ]*$//;
40791 }'
40792 fi
40793
40794 DEFS=-DHAVE_CONFIG_H
40795
40796 ac_libobjs=
40797 ac_ltlibobjs=
40798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40799   # 1. Remove the extension, and $U if already installed.
40800   ac_i=`echo "$ac_i" |
40801          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40802   # 2. Add them.
40803   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40804   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40805 done
40806 LIBOBJS=$ac_libobjs
40807
40808 LTLIBOBJS=$ac_ltlibobjs
40809
40810
40811 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40812   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40813 Usually this means the macro was only invoked conditionally." >&5
40814 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40815 Usually this means the macro was only invoked conditionally." >&2;}
40816    { (exit 1); exit 1; }; }
40817 fi
40818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40819   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40820 Usually this means the macro was only invoked conditionally." >&5
40821 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40822 Usually this means the macro was only invoked conditionally." >&2;}
40823    { (exit 1); exit 1; }; }
40824 fi
40825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40826   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40827 Usually this means the macro was only invoked conditionally." >&5
40828 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40829 Usually this means the macro was only invoked conditionally." >&2;}
40830    { (exit 1); exit 1; }; }
40831 fi
40832
40833 : ${CONFIG_STATUS=./config.status}
40834 ac_clean_files_save=$ac_clean_files
40835 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40836 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40837 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40838 cat >$CONFIG_STATUS <<_ACEOF
40839 #! $SHELL
40840 # Generated by $as_me.
40841 # Run this file to recreate the current configuration.
40842 # Compiler output produced by configure, useful for debugging
40843 # configure, is in config.log if it exists.
40844
40845 debug=false
40846 ac_cs_recheck=false
40847 ac_cs_silent=false
40848 SHELL=\${CONFIG_SHELL-$SHELL}
40849 _ACEOF
40850
40851 cat >>$CONFIG_STATUS <<\_ACEOF
40852 ## --------------------- ##
40853 ## M4sh Initialization.  ##
40854 ## --------------------- ##
40855
40856 # Be Bourne compatible
40857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40858   emulate sh
40859   NULLCMD=:
40860   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40861   # is contrary to our usage.  Disable this feature.
40862   alias -g '${1+"$@"}'='"$@"'
40863 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40864   set -o posix
40865 fi
40866 DUALCASE=1; export DUALCASE # for MKS sh
40867
40868 # Support unset when possible.
40869 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40870   as_unset=unset
40871 else
40872   as_unset=false
40873 fi
40874
40875
40876 # Work around bugs in pre-3.0 UWIN ksh.
40877 $as_unset ENV MAIL MAILPATH
40878 PS1='$ '
40879 PS2='> '
40880 PS4='+ '
40881
40882 # NLS nuisances.
40883 for as_var in \
40884   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40885   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40886   LC_TELEPHONE LC_TIME
40887 do
40888   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40889     eval $as_var=C; export $as_var
40890   else
40891     $as_unset $as_var
40892   fi
40893 done
40894
40895 # Required to use basename.
40896 if expr a : '\(a\)' >/dev/null 2>&1; then
40897   as_expr=expr
40898 else
40899   as_expr=false
40900 fi
40901
40902 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40903   as_basename=basename
40904 else
40905   as_basename=false
40906 fi
40907
40908
40909 # Name of the executable.
40910 as_me=`$as_basename "$0" ||
40911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40912          X"$0" : 'X\(//\)$' \| \
40913          X"$0" : 'X\(/\)$' \| \
40914          .     : '\(.\)' 2>/dev/null ||
40915 echo X/"$0" |
40916     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40917           /^X\/\(\/\/\)$/{ s//\1/; q; }
40918           /^X\/\(\/\).*/{ s//\1/; q; }
40919           s/.*/./; q'`
40920
40921
40922 # PATH needs CR, and LINENO needs CR and PATH.
40923 # Avoid depending upon Character Ranges.
40924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40927 as_cr_digits='0123456789'
40928 as_cr_alnum=$as_cr_Letters$as_cr_digits
40929
40930 # The user is always right.
40931 if test "${PATH_SEPARATOR+set}" != set; then
40932   echo "#! /bin/sh" >conf$$.sh
40933   echo  "exit 0"   >>conf$$.sh
40934   chmod +x conf$$.sh
40935   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40936     PATH_SEPARATOR=';'
40937   else
40938     PATH_SEPARATOR=:
40939   fi
40940   rm -f conf$$.sh
40941 fi
40942
40943
40944   as_lineno_1=$LINENO
40945   as_lineno_2=$LINENO
40946   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40947   test "x$as_lineno_1" != "x$as_lineno_2" &&
40948   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
40949   # Find who we are.  Look in the path if we contain no path at all
40950   # relative or not.
40951   case $0 in
40952     *[\\/]* ) as_myself=$0 ;;
40953     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40954 for as_dir in $PATH
40955 do
40956   IFS=$as_save_IFS
40957   test -z "$as_dir" && as_dir=.
40958   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40959 done
40960
40961        ;;
40962   esac
40963   # We did not find ourselves, most probably we were run as `sh COMMAND'
40964   # in which case we are not to be found in the path.
40965   if test "x$as_myself" = x; then
40966     as_myself=$0
40967   fi
40968   if test ! -f "$as_myself"; then
40969     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40970 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40971    { (exit 1); exit 1; }; }
40972   fi
40973   case $CONFIG_SHELL in
40974   '')
40975     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40976 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40977 do
40978   IFS=$as_save_IFS
40979   test -z "$as_dir" && as_dir=.
40980   for as_base in sh bash ksh sh5; do
40981          case $as_dir in
40982          /*)
40983            if ("$as_dir/$as_base" -c '
40984   as_lineno_1=$LINENO
40985   as_lineno_2=$LINENO
40986   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40987   test "x$as_lineno_1" != "x$as_lineno_2" &&
40988   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
40989              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40990              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40991              CONFIG_SHELL=$as_dir/$as_base
40992              export CONFIG_SHELL
40993              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40994            fi;;
40995          esac
40996        done
40997 done
40998 ;;
40999   esac
41000
41001   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41002   # uniformly replaced by the line number.  The first 'sed' inserts a
41003   # line-number line before each line; the second 'sed' does the real
41004   # work.  The second script uses 'N' to pair each line-number line
41005   # with the numbered line, and appends trailing '-' during
41006   # substitution so that $LINENO is not a special case at line end.
41007   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41008   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41009   sed '=' <$as_myself |
41010     sed '
41011       N
41012       s,$,-,
41013       : loop
41014       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41015       t loop
41016       s,-$,,
41017       s,^['$as_cr_digits']*\n,,
41018     ' >$as_me.lineno &&
41019   chmod +x $as_me.lineno ||
41020     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41021 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41022    { (exit 1); exit 1; }; }
41023
41024   # Don't try to exec as it changes $[0], causing all sort of problems
41025   # (the dirname of $[0] is not the place where we might find the
41026   # original and so on.  Autoconf is especially sensible to this).
41027   . ./$as_me.lineno
41028   # Exit status is that of the last command.
41029   exit
41030 }
41031
41032
41033 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41034   *c*,-n*) ECHO_N= ECHO_C='
41035 ' ECHO_T='      ' ;;
41036   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41037   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41038 esac
41039
41040 if expr a : '\(a\)' >/dev/null 2>&1; then
41041   as_expr=expr
41042 else
41043   as_expr=false
41044 fi
41045
41046 rm -f conf$$ conf$$.exe conf$$.file
41047 echo >conf$$.file
41048 if ln -s conf$$.file conf$$ 2>/dev/null; then
41049   # We could just check for DJGPP; but this test a) works b) is more generic
41050   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41051   if test -f conf$$.exe; then
41052     # Don't use ln at all; we don't have any links
41053     as_ln_s='cp -p'
41054   else
41055     as_ln_s='ln -s'
41056   fi
41057 elif ln conf$$.file conf$$ 2>/dev/null; then
41058   as_ln_s=ln
41059 else
41060   as_ln_s='cp -p'
41061 fi
41062 rm -f conf$$ conf$$.exe conf$$.file
41063
41064 if mkdir -p . 2>/dev/null; then
41065   as_mkdir_p=:
41066 else
41067   test -d ./-p && rmdir ./-p
41068   as_mkdir_p=false
41069 fi
41070
41071 as_executable_p="test -f"
41072
41073 # Sed expression to map a string onto a valid CPP name.
41074 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41075
41076 # Sed expression to map a string onto a valid variable name.
41077 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41078
41079
41080 # IFS
41081 # We need space, tab and new line, in precisely that order.
41082 as_nl='
41083 '
41084 IFS="   $as_nl"
41085
41086 # CDPATH.
41087 $as_unset CDPATH
41088
41089 exec 6>&1
41090
41091 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41092 # report actual input values of CONFIG_FILES etc. instead of their
41093 # values after options handling.  Logging --version etc. is OK.
41094 exec 5>>config.log
41095 {
41096   echo
41097   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41098 ## Running $as_me. ##
41099 _ASBOX
41100 } >&5
41101 cat >&5 <<_CSEOF
41102
41103 This file was extended by $as_me, which was
41104 generated by GNU Autoconf 2.59.  Invocation command line was
41105
41106   CONFIG_FILES    = $CONFIG_FILES
41107   CONFIG_HEADERS  = $CONFIG_HEADERS
41108   CONFIG_LINKS    = $CONFIG_LINKS
41109   CONFIG_COMMANDS = $CONFIG_COMMANDS
41110   $ $0 $@
41111
41112 _CSEOF
41113 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41114 echo >&5
41115 _ACEOF
41116
41117 # Files that config.status was made for.
41118 if test -n "$ac_config_files"; then
41119   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41120 fi
41121
41122 if test -n "$ac_config_headers"; then
41123   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41124 fi
41125
41126 if test -n "$ac_config_links"; then
41127   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41128 fi
41129
41130 if test -n "$ac_config_commands"; then
41131   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41132 fi
41133
41134 cat >>$CONFIG_STATUS <<\_ACEOF
41135
41136 ac_cs_usage="\
41137 \`$as_me' instantiates files from templates according to the
41138 current configuration.
41139
41140 Usage: $0 [OPTIONS] [FILE]...
41141
41142   -h, --help       print this help, then exit
41143   -V, --version    print version number, then exit
41144   -q, --quiet      do not print progress messages
41145   -d, --debug      don't remove temporary files
41146       --recheck    update $as_me by reconfiguring in the same conditions
41147   --file=FILE[:TEMPLATE]
41148                    instantiate the configuration file FILE
41149   --header=FILE[:TEMPLATE]
41150                    instantiate the configuration header FILE
41151
41152 Configuration files:
41153 $config_files
41154
41155 Configuration headers:
41156 $config_headers
41157
41158 Configuration commands:
41159 $config_commands
41160
41161 Report bugs to <bug-autoconf@gnu.org>."
41162 _ACEOF
41163
41164 cat >>$CONFIG_STATUS <<_ACEOF
41165 ac_cs_version="\\
41166 config.status
41167 configured by $0, generated by GNU Autoconf 2.59,
41168   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41169
41170 Copyright (C) 2003 Free Software Foundation, Inc.
41171 This config.status script is free software; the Free Software Foundation
41172 gives unlimited permission to copy, distribute and modify it."
41173 srcdir=$srcdir
41174 INSTALL="$INSTALL"
41175 _ACEOF
41176
41177 cat >>$CONFIG_STATUS <<\_ACEOF
41178 # If no file are specified by the user, then we need to provide default
41179 # value.  By we need to know if files were specified by the user.
41180 ac_need_defaults=:
41181 while test $# != 0
41182 do
41183   case $1 in
41184   --*=*)
41185     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41186     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41187     ac_shift=:
41188     ;;
41189   -*)
41190     ac_option=$1
41191     ac_optarg=$2
41192     ac_shift=shift
41193     ;;
41194   *) # This is not an option, so the user has probably given explicit
41195      # arguments.
41196      ac_option=$1
41197      ac_need_defaults=false;;
41198   esac
41199
41200   case $ac_option in
41201   # Handling of the options.
41202 _ACEOF
41203 cat >>$CONFIG_STATUS <<\_ACEOF
41204   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41205     ac_cs_recheck=: ;;
41206   --version | --vers* | -V )
41207     echo "$ac_cs_version"; exit 0 ;;
41208   --he | --h)
41209     # Conflict between --help and --header
41210     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41211 Try \`$0 --help' for more information." >&5
41212 echo "$as_me: error: ambiguous option: $1
41213 Try \`$0 --help' for more information." >&2;}
41214    { (exit 1); exit 1; }; };;
41215   --help | --hel | -h )
41216     echo "$ac_cs_usage"; exit 0 ;;
41217   --debug | --d* | -d )
41218     debug=: ;;
41219   --file | --fil | --fi | --f )
41220     $ac_shift
41221     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41222     ac_need_defaults=false;;
41223   --header | --heade | --head | --hea )
41224     $ac_shift
41225     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41226     ac_need_defaults=false;;
41227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41228   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41229     ac_cs_silent=: ;;
41230
41231   # This is an error.
41232   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41233 Try \`$0 --help' for more information." >&5
41234 echo "$as_me: error: unrecognized option: $1
41235 Try \`$0 --help' for more information." >&2;}
41236    { (exit 1); exit 1; }; } ;;
41237
41238   *) ac_config_targets="$ac_config_targets $1" ;;
41239
41240   esac
41241   shift
41242 done
41243
41244 ac_configure_extra_args=
41245
41246 if $ac_cs_silent; then
41247   exec 6>/dev/null
41248   ac_configure_extra_args="$ac_configure_extra_args --silent"
41249 fi
41250
41251 _ACEOF
41252 cat >>$CONFIG_STATUS <<_ACEOF
41253 if \$ac_cs_recheck; then
41254   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41255   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41256 fi
41257
41258 _ACEOF
41259
41260 cat >>$CONFIG_STATUS <<_ACEOF
41261 #
41262 # INIT-COMMANDS section.
41263 #
41264
41265 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41266
41267 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41268 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41269
41270
41271 _ACEOF
41272
41273
41274
41275 cat >>$CONFIG_STATUS <<\_ACEOF
41276 for ac_config_target in $ac_config_targets
41277 do
41278   case "$ac_config_target" in
41279   # Handling of arguments.
41280   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41281   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41282   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41283   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41284   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41285   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41286   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41287   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41288   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41289   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41290   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41291   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41292   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41293   "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" ;;
41294   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41295   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41296   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41297   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41298   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41299   "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" ;;
41300   "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" ;;
41301   "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" ;;
41302   "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" ;;
41303   "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" ;;
41304   "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" ;;
41305   "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" ;;
41306   "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" ;;
41307   "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" ;;
41308   "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" ;;
41309   "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" ;;
41310   "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" ;;
41311   "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" ;;
41312   "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" ;;
41313   "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" ;;
41314   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41315   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41316   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41317   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41318   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41319   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41320   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41321   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41322   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41323   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41324 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41325    { (exit 1); exit 1; }; };;
41326   esac
41327 done
41328
41329 # If the user did not use the arguments to specify the items to instantiate,
41330 # then the envvar interface is used.  Set only those that are not.
41331 # We use the long form for the default assignment because of an extremely
41332 # bizarre bug on SunOS 4.1.3.
41333 if $ac_need_defaults; then
41334   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41335   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41336   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41337 fi
41338
41339 # Have a temporary directory for convenience.  Make it in the build tree
41340 # simply because there is no reason to put it here, and in addition,
41341 # creating and moving files from /tmp can sometimes cause problems.
41342 # Create a temporary directory, and hook for its removal unless debugging.
41343 $debug ||
41344 {
41345   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41346   trap '{ (exit 1); exit 1; }' 1 2 13 15
41347 }
41348
41349 # Create a (secure) tmp directory for tmp files.
41350
41351 {
41352   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41353   test -n "$tmp" && test -d "$tmp"
41354 }  ||
41355 {
41356   tmp=./confstat$$-$RANDOM
41357   (umask 077 && mkdir $tmp)
41358 } ||
41359 {
41360    echo "$me: cannot create a temporary directory in ." >&2
41361    { (exit 1); exit 1; }
41362 }
41363
41364 _ACEOF
41365
41366 cat >>$CONFIG_STATUS <<_ACEOF
41367
41368 #
41369 # CONFIG_FILES section.
41370 #
41371
41372 # No need to generate the scripts if there are no CONFIG_FILES.
41373 # This happens for instance when ./config.status config.h
41374 if test -n "\$CONFIG_FILES"; then
41375   # Protect against being on the right side of a sed subst in config.status.
41376   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41377    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41378 s,@SHELL@,$SHELL,;t t
41379 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41380 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41381 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41382 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41383 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41384 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41385 s,@exec_prefix@,$exec_prefix,;t t
41386 s,@prefix@,$prefix,;t t
41387 s,@program_transform_name@,$program_transform_name,;t t
41388 s,@bindir@,$bindir,;t t
41389 s,@sbindir@,$sbindir,;t t
41390 s,@libexecdir@,$libexecdir,;t t
41391 s,@datadir@,$datadir,;t t
41392 s,@sysconfdir@,$sysconfdir,;t t
41393 s,@sharedstatedir@,$sharedstatedir,;t t
41394 s,@localstatedir@,$localstatedir,;t t
41395 s,@libdir@,$libdir,;t t
41396 s,@includedir@,$includedir,;t t
41397 s,@oldincludedir@,$oldincludedir,;t t
41398 s,@infodir@,$infodir,;t t
41399 s,@mandir@,$mandir,;t t
41400 s,@build_alias@,$build_alias,;t t
41401 s,@host_alias@,$host_alias,;t t
41402 s,@target_alias@,$target_alias,;t t
41403 s,@DEFS@,$DEFS,;t t
41404 s,@ECHO_C@,$ECHO_C,;t t
41405 s,@ECHO_N@,$ECHO_N,;t t
41406 s,@ECHO_T@,$ECHO_T,;t t
41407 s,@LIBS@,$LIBS,;t t
41408 s,@build@,$build,;t t
41409 s,@build_cpu@,$build_cpu,;t t
41410 s,@build_vendor@,$build_vendor,;t t
41411 s,@build_os@,$build_os,;t t
41412 s,@host@,$host,;t t
41413 s,@host_cpu@,$host_cpu,;t t
41414 s,@host_vendor@,$host_vendor,;t t
41415 s,@host_os@,$host_os,;t t
41416 s,@target@,$target,;t t
41417 s,@target_cpu@,$target_cpu,;t t
41418 s,@target_vendor@,$target_vendor,;t t
41419 s,@target_os@,$target_os,;t t
41420 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41421 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41422 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41423 s,@CYGPATH_W@,$CYGPATH_W,;t t
41424 s,@PACKAGE@,$PACKAGE,;t t
41425 s,@VERSION@,$VERSION,;t t
41426 s,@ACLOCAL@,$ACLOCAL,;t t
41427 s,@AUTOCONF@,$AUTOCONF,;t t
41428 s,@AUTOMAKE@,$AUTOMAKE,;t t
41429 s,@AUTOHEADER@,$AUTOHEADER,;t t
41430 s,@MAKEINFO@,$MAKEINFO,;t t
41431 s,@install_sh@,$install_sh,;t t
41432 s,@STRIP@,$STRIP,;t t
41433 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41434 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41435 s,@mkdir_p@,$mkdir_p,;t t
41436 s,@AWK@,$AWK,;t t
41437 s,@SET_MAKE@,$SET_MAKE,;t t
41438 s,@am__leading_dot@,$am__leading_dot,;t t
41439 s,@AMTAR@,$AMTAR,;t t
41440 s,@am__tar@,$am__tar,;t t
41441 s,@am__untar@,$am__untar,;t t
41442 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41443 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41444 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41445 s,@top_builddir@,$top_builddir,;t t
41446 s,@ldap_subdir@,$ldap_subdir,;t t
41447 s,@CC@,$CC,;t t
41448 s,@AR@,$AR,;t t
41449 s,@CFLAGS@,$CFLAGS,;t t
41450 s,@LDFLAGS@,$LDFLAGS,;t t
41451 s,@CPPFLAGS@,$CPPFLAGS,;t t
41452 s,@ac_ct_CC@,$ac_ct_CC,;t t
41453 s,@EXEEXT@,$EXEEXT,;t t
41454 s,@OBJEXT@,$OBJEXT,;t t
41455 s,@DEPDIR@,$DEPDIR,;t t
41456 s,@am__include@,$am__include,;t t
41457 s,@am__quote@,$am__quote,;t t
41458 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41459 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41460 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41461 s,@CCDEPMODE@,$CCDEPMODE,;t t
41462 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41463 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41464 s,@EGREP@,$EGREP,;t t
41465 s,@LN_S@,$LN_S,;t t
41466 s,@ECHO@,$ECHO,;t t
41467 s,@ac_ct_AR@,$ac_ct_AR,;t t
41468 s,@RANLIB@,$RANLIB,;t t
41469 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41470 s,@DLLTOOL@,$DLLTOOL,;t t
41471 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41472 s,@AS@,$AS,;t t
41473 s,@ac_ct_AS@,$ac_ct_AS,;t t
41474 s,@OBJDUMP@,$OBJDUMP,;t t
41475 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41476 s,@CPP@,$CPP,;t t
41477 s,@LIBTOOL@,$LIBTOOL,;t t
41478 s,@PERLBIN@,$PERLBIN,;t t
41479 s,@OL_MKDEP@,$OL_MKDEP,;t t
41480 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41481 s,@LTSTATIC@,$LTSTATIC,;t t
41482 s,@LIBOBJS@,$LIBOBJS,;t t
41483 s,@LIBSRCS@,$LIBSRCS,;t t
41484 s,@PLAT@,$PLAT,;t t
41485 s,@WITH_SASL@,$WITH_SASL,;t t
41486 s,@WITH_TLS@,$WITH_TLS,;t t
41487 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41488 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41489 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41490 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41491 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41492 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41493 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41494 s,@BUILD_BDB@,$BUILD_BDB,;t t
41495 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41496 s,@BUILD_HDB@,$BUILD_HDB,;t t
41497 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41498 s,@BUILD_META@,$BUILD_META,;t t
41499 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41500 s,@BUILD_NULL@,$BUILD_NULL,;t t
41501 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41502 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41503 s,@BUILD_PERL@,$BUILD_PERL,;t t
41504 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41505 s,@BUILD_SQL@,$BUILD_SQL,;t t
41506 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41507 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41508 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41509 s,@BUILD_DDS@,$BUILD_DDS,;t t
41510 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41511 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41512 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41513 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41514 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41515 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41516 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41517 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41518 s,@BUILD_RWM@,$BUILD_RWM,;t t
41519 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41520 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41521 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41522 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41523 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41524 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41525 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41526 s,@BDB_LIBS@,$BDB_LIBS,;t t
41527 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41528 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41529 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41530 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41531 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41532 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41533 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41534 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41535 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41536 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41537 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41538 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41539 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41540 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41541 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41542 s,@SASL_LIBS@,$SASL_LIBS,;t t
41543 s,@TLS_LIBS@,$TLS_LIBS,;t t
41544 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41545 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41546 s,@LIBSLAPI@,$LIBSLAPI,;t t
41547 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41548 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41549 s,@ICU_LIBS@,$ICU_LIBS,;t t
41550 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41551 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41552 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41553 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41554 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41555 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41556 CEOF
41557
41558 _ACEOF
41559
41560   cat >>$CONFIG_STATUS <<\_ACEOF
41561   # Split the substitutions into bite-sized pieces for seds with
41562   # small command number limits, like on Digital OSF/1 and HP-UX.
41563   ac_max_sed_lines=48
41564   ac_sed_frag=1 # Number of current file.
41565   ac_beg=1 # First line for current file.
41566   ac_end=$ac_max_sed_lines # Line after last line for current file.
41567   ac_more_lines=:
41568   ac_sed_cmds=
41569   while $ac_more_lines; do
41570     if test $ac_beg -gt 1; then
41571       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41572     else
41573       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41574     fi
41575     if test ! -s $tmp/subs.frag; then
41576       ac_more_lines=false
41577     else
41578       # The purpose of the label and of the branching condition is to
41579       # speed up the sed processing (if there are no `@' at all, there
41580       # is no need to browse any of the substitutions).
41581       # These are the two extra sed commands mentioned above.
41582       (echo ':t
41583   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41584       if test -z "$ac_sed_cmds"; then
41585         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41586       else
41587         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41588       fi
41589       ac_sed_frag=`expr $ac_sed_frag + 1`
41590       ac_beg=$ac_end
41591       ac_end=`expr $ac_end + $ac_max_sed_lines`
41592     fi
41593   done
41594   if test -z "$ac_sed_cmds"; then
41595     ac_sed_cmds=cat
41596   fi
41597 fi # test -n "$CONFIG_FILES"
41598
41599 _ACEOF
41600 cat >>$CONFIG_STATUS <<\_ACEOF
41601 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41602   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41603   case $ac_file in
41604   - | *:- | *:-:* ) # input from stdin
41605         cat >$tmp/stdin
41606         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41607         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41608   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41609         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41610   * )   ac_file_in=$ac_file.in ;;
41611   esac
41612
41613   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41614   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41616          X"$ac_file" : 'X\(//\)[^/]' \| \
41617          X"$ac_file" : 'X\(//\)$' \| \
41618          X"$ac_file" : 'X\(/\)' \| \
41619          .     : '\(.\)' 2>/dev/null ||
41620 echo X"$ac_file" |
41621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41622           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41623           /^X\(\/\/\)$/{ s//\1/; q; }
41624           /^X\(\/\).*/{ s//\1/; q; }
41625           s/.*/./; q'`
41626   { if $as_mkdir_p; then
41627     mkdir -p "$ac_dir"
41628   else
41629     as_dir="$ac_dir"
41630     as_dirs=
41631     while test ! -d "$as_dir"; do
41632       as_dirs="$as_dir $as_dirs"
41633       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41635          X"$as_dir" : 'X\(//\)[^/]' \| \
41636          X"$as_dir" : 'X\(//\)$' \| \
41637          X"$as_dir" : 'X\(/\)' \| \
41638          .     : '\(.\)' 2>/dev/null ||
41639 echo X"$as_dir" |
41640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41641           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41642           /^X\(\/\/\)$/{ s//\1/; q; }
41643           /^X\(\/\).*/{ s//\1/; q; }
41644           s/.*/./; q'`
41645     done
41646     test ! -n "$as_dirs" || mkdir $as_dirs
41647   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41648 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41649    { (exit 1); exit 1; }; }; }
41650
41651   ac_builddir=.
41652
41653 if test "$ac_dir" != .; then
41654   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41655   # A "../" for each directory in $ac_dir_suffix.
41656   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41657 else
41658   ac_dir_suffix= ac_top_builddir=
41659 fi
41660
41661 case $srcdir in
41662   .)  # No --srcdir option.  We are building in place.
41663     ac_srcdir=.
41664     if test -z "$ac_top_builddir"; then
41665        ac_top_srcdir=.
41666     else
41667        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41668     fi ;;
41669   [\\/]* | ?:[\\/]* )  # Absolute path.
41670     ac_srcdir=$srcdir$ac_dir_suffix;
41671     ac_top_srcdir=$srcdir ;;
41672   *) # Relative path.
41673     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41674     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41675 esac
41676
41677 # Do not use `cd foo && pwd` to compute absolute paths, because
41678 # the directories may not exist.
41679 case `pwd` in
41680 .) ac_abs_builddir="$ac_dir";;
41681 *)
41682   case "$ac_dir" in
41683   .) ac_abs_builddir=`pwd`;;
41684   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41685   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41686   esac;;
41687 esac
41688 case $ac_abs_builddir in
41689 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41690 *)
41691   case ${ac_top_builddir}. in
41692   .) ac_abs_top_builddir=$ac_abs_builddir;;
41693   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41694   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41695   esac;;
41696 esac
41697 case $ac_abs_builddir in
41698 .) ac_abs_srcdir=$ac_srcdir;;
41699 *)
41700   case $ac_srcdir in
41701   .) ac_abs_srcdir=$ac_abs_builddir;;
41702   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41703   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41704   esac;;
41705 esac
41706 case $ac_abs_builddir in
41707 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41708 *)
41709   case $ac_top_srcdir in
41710   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41711   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41712   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41713   esac;;
41714 esac
41715
41716
41717   case $INSTALL in
41718   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41719   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41720   esac
41721
41722   if test x"$ac_file" != x-; then
41723     { echo "$as_me:$LINENO: creating $ac_file" >&5
41724 echo "$as_me: creating $ac_file" >&6;}
41725     rm -f "$ac_file"
41726   fi
41727   # Let's still pretend it is `configure' which instantiates (i.e., don't
41728   # use $as_me), people would be surprised to read:
41729   #    /* config.h.  Generated by config.status.  */
41730   if test x"$ac_file" = x-; then
41731     configure_input=
41732   else
41733     configure_input="$ac_file.  "
41734   fi
41735   configure_input=$configure_input"Generated from `echo $ac_file_in |
41736                                      sed 's,.*/,,'` by configure."
41737
41738   # First look for the input files in the build tree, otherwise in the
41739   # src tree.
41740   ac_file_inputs=`IFS=:
41741     for f in $ac_file_in; do
41742       case $f in
41743       -) echo $tmp/stdin ;;
41744       [\\/$]*)
41745          # Absolute (can't be DOS-style, as IFS=:)
41746          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41747 echo "$as_me: error: cannot find input file: $f" >&2;}
41748    { (exit 1); exit 1; }; }
41749          echo "$f";;
41750       *) # Relative
41751          if test -f "$f"; then
41752            # Build tree
41753            echo "$f"
41754          elif test -f "$srcdir/$f"; then
41755            # Source tree
41756            echo "$srcdir/$f"
41757          else
41758            # /dev/null tree
41759            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41760 echo "$as_me: error: cannot find input file: $f" >&2;}
41761    { (exit 1); exit 1; }; }
41762          fi;;
41763       esac
41764     done` || { (exit 1); exit 1; }
41765 _ACEOF
41766 cat >>$CONFIG_STATUS <<_ACEOF
41767   sed "$ac_vpsub
41768 $extrasub
41769 _ACEOF
41770 cat >>$CONFIG_STATUS <<\_ACEOF
41771 :t
41772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41773 s,@configure_input@,$configure_input,;t t
41774 s,@srcdir@,$ac_srcdir,;t t
41775 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41776 s,@top_srcdir@,$ac_top_srcdir,;t t
41777 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41778 s,@builddir@,$ac_builddir,;t t
41779 s,@abs_builddir@,$ac_abs_builddir,;t t
41780 s,@top_builddir@,$ac_top_builddir,;t t
41781 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41782 s,@INSTALL@,$ac_INSTALL,;t t
41783 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41784   rm -f $tmp/stdin
41785   if test x"$ac_file" != x-; then
41786     mv $tmp/out $ac_file
41787   else
41788     cat $tmp/out
41789     rm -f $tmp/out
41790   fi
41791
41792 done
41793 _ACEOF
41794 cat >>$CONFIG_STATUS <<\_ACEOF
41795
41796 #
41797 # CONFIG_HEADER section.
41798 #
41799
41800 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41801 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41802 #
41803 # ac_d sets the value in "#define NAME VALUE" lines.
41804 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41805 ac_dB='[         ].*$,\1#\2'
41806 ac_dC=' '
41807 ac_dD=',;t'
41808 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41809 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41810 ac_uB='$,\1#\2define\3'
41811 ac_uC=' '
41812 ac_uD=',;t'
41813
41814 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41815   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41816   case $ac_file in
41817   - | *:- | *:-:* ) # input from stdin
41818         cat >$tmp/stdin
41819         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41820         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41821   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41822         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41823   * )   ac_file_in=$ac_file.in ;;
41824   esac
41825
41826   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41827 echo "$as_me: creating $ac_file" >&6;}
41828
41829   # First look for the input files in the build tree, otherwise in the
41830   # src tree.
41831   ac_file_inputs=`IFS=:
41832     for f in $ac_file_in; do
41833       case $f in
41834       -) echo $tmp/stdin ;;
41835       [\\/$]*)
41836          # Absolute (can't be DOS-style, as IFS=:)
41837          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41838 echo "$as_me: error: cannot find input file: $f" >&2;}
41839    { (exit 1); exit 1; }; }
41840          # Do quote $f, to prevent DOS paths from being IFS'd.
41841          echo "$f";;
41842       *) # Relative
41843          if test -f "$f"; then
41844            # Build tree
41845            echo "$f"
41846          elif test -f "$srcdir/$f"; then
41847            # Source tree
41848            echo "$srcdir/$f"
41849          else
41850            # /dev/null tree
41851            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41852 echo "$as_me: error: cannot find input file: $f" >&2;}
41853    { (exit 1); exit 1; }; }
41854          fi;;
41855       esac
41856     done` || { (exit 1); exit 1; }
41857   # Remove the trailing spaces.
41858   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41859
41860 _ACEOF
41861
41862 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41863 # `conftest.undefs', that substitutes the proper values into
41864 # config.h.in to produce config.h.  The first handles `#define'
41865 # templates, and the second `#undef' templates.
41866 # And first: Protect against being on the right side of a sed subst in
41867 # config.status.  Protect against being in an unquoted here document
41868 # in config.status.
41869 rm -f conftest.defines conftest.undefs
41870 # Using a here document instead of a string reduces the quoting nightmare.
41871 # Putting comments in sed scripts is not portable.
41872 #
41873 # `end' is used to avoid that the second main sed command (meant for
41874 # 0-ary CPP macros) applies to n-ary macro definitions.
41875 # See the Autoconf documentation for `clear'.
41876 cat >confdef2sed.sed <<\_ACEOF
41877 s/[\\&,]/\\&/g
41878 s,[\\$`],\\&,g
41879 t clear
41880 : clear
41881 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41882 t end
41883 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41884 : end
41885 _ACEOF
41886 # If some macros were called several times there might be several times
41887 # the same #defines, which is useless.  Nevertheless, we may not want to
41888 # sort them, since we want the *last* AC-DEFINE to be honored.
41889 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41890 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41891 rm -f confdef2sed.sed
41892
41893 # This sed command replaces #undef with comments.  This is necessary, for
41894 # example, in the case of _POSIX_SOURCE, which is predefined and required
41895 # on some systems where configure will not decide to define it.
41896 cat >>conftest.undefs <<\_ACEOF
41897 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41898 _ACEOF
41899
41900 # Break up conftest.defines because some shells have a limit on the size
41901 # of here documents, and old seds have small limits too (100 cmds).
41902 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41903 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41904 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41905 echo '  :' >>$CONFIG_STATUS
41906 rm -f conftest.tail
41907 while grep . conftest.defines >/dev/null
41908 do
41909   # Write a limited-size here document to $tmp/defines.sed.
41910   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41911   # Speed up: don't consider the non `#define' lines.
41912   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
41913   # Work around the forget-to-reset-the-flag bug.
41914   echo 't clr' >>$CONFIG_STATUS
41915   echo ': clr' >>$CONFIG_STATUS
41916   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41917   echo 'CEOF
41918   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41919   rm -f $tmp/in
41920   mv $tmp/out $tmp/in
41921 ' >>$CONFIG_STATUS
41922   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41923   rm -f conftest.defines
41924   mv conftest.tail conftest.defines
41925 done
41926 rm -f conftest.defines
41927 echo '  fi # grep' >>$CONFIG_STATUS
41928 echo >>$CONFIG_STATUS
41929
41930 # Break up conftest.undefs because some shells have a limit on the size
41931 # of here documents, and old seds have small limits too (100 cmds).
41932 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41933 rm -f conftest.tail
41934 while grep . conftest.undefs >/dev/null
41935 do
41936   # Write a limited-size here document to $tmp/undefs.sed.
41937   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41938   # Speed up: don't consider the non `#undef'
41939   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41940   # Work around the forget-to-reset-the-flag bug.
41941   echo 't clr' >>$CONFIG_STATUS
41942   echo ': clr' >>$CONFIG_STATUS
41943   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41944   echo 'CEOF
41945   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41946   rm -f $tmp/in
41947   mv $tmp/out $tmp/in
41948 ' >>$CONFIG_STATUS
41949   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41950   rm -f conftest.undefs
41951   mv conftest.tail conftest.undefs
41952 done
41953 rm -f conftest.undefs
41954
41955 cat >>$CONFIG_STATUS <<\_ACEOF
41956   # Let's still pretend it is `configure' which instantiates (i.e., don't
41957   # use $as_me), people would be surprised to read:
41958   #    /* config.h.  Generated by config.status.  */
41959   if test x"$ac_file" = x-; then
41960     echo "/* Generated by configure.  */" >$tmp/config.h
41961   else
41962     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41963   fi
41964   cat $tmp/in >>$tmp/config.h
41965   rm -f $tmp/in
41966   if test x"$ac_file" != x-; then
41967     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41968       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41969 echo "$as_me: $ac_file is unchanged" >&6;}
41970     else
41971       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41973          X"$ac_file" : 'X\(//\)[^/]' \| \
41974          X"$ac_file" : 'X\(//\)$' \| \
41975          X"$ac_file" : 'X\(/\)' \| \
41976          .     : '\(.\)' 2>/dev/null ||
41977 echo X"$ac_file" |
41978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41979           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41980           /^X\(\/\/\)$/{ s//\1/; q; }
41981           /^X\(\/\).*/{ s//\1/; q; }
41982           s/.*/./; q'`
41983       { if $as_mkdir_p; then
41984     mkdir -p "$ac_dir"
41985   else
41986     as_dir="$ac_dir"
41987     as_dirs=
41988     while test ! -d "$as_dir"; do
41989       as_dirs="$as_dir $as_dirs"
41990       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41992          X"$as_dir" : 'X\(//\)[^/]' \| \
41993          X"$as_dir" : 'X\(//\)$' \| \
41994          X"$as_dir" : 'X\(/\)' \| \
41995          .     : '\(.\)' 2>/dev/null ||
41996 echo X"$as_dir" |
41997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41998           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41999           /^X\(\/\/\)$/{ s//\1/; q; }
42000           /^X\(\/\).*/{ s//\1/; q; }
42001           s/.*/./; q'`
42002     done
42003     test ! -n "$as_dirs" || mkdir $as_dirs
42004   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42006    { (exit 1); exit 1; }; }; }
42007
42008       rm -f $ac_file
42009       mv $tmp/config.h $ac_file
42010     fi
42011   else
42012     cat $tmp/config.h
42013     rm -f $tmp/config.h
42014   fi
42015 # Compute $ac_file's index in $config_headers.
42016 _am_stamp_count=1
42017 for _am_header in $config_headers :; do
42018   case $_am_header in
42019     $ac_file | $ac_file:* )
42020       break ;;
42021     * )
42022       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42023   esac
42024 done
42025 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42026 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42027          X$ac_file : 'X\(//\)[^/]' \| \
42028          X$ac_file : 'X\(//\)$' \| \
42029          X$ac_file : 'X\(/\)' \| \
42030          .     : '\(.\)' 2>/dev/null ||
42031 echo X$ac_file |
42032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42034           /^X\(\/\/\)$/{ s//\1/; q; }
42035           /^X\(\/\).*/{ s//\1/; q; }
42036           s/.*/./; q'`/stamp-h$_am_stamp_count
42037 done
42038 _ACEOF
42039 cat >>$CONFIG_STATUS <<\_ACEOF
42040
42041 #
42042 # CONFIG_COMMANDS section.
42043 #
42044 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42045   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42046   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42047   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42048 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42049          X"$ac_dest" : 'X\(//\)[^/]' \| \
42050          X"$ac_dest" : 'X\(//\)$' \| \
42051          X"$ac_dest" : 'X\(/\)' \| \
42052          .     : '\(.\)' 2>/dev/null ||
42053 echo X"$ac_dest" |
42054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42055           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42056           /^X\(\/\/\)$/{ s//\1/; q; }
42057           /^X\(\/\).*/{ s//\1/; q; }
42058           s/.*/./; q'`
42059   { if $as_mkdir_p; then
42060     mkdir -p "$ac_dir"
42061   else
42062     as_dir="$ac_dir"
42063     as_dirs=
42064     while test ! -d "$as_dir"; do
42065       as_dirs="$as_dir $as_dirs"
42066       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42068          X"$as_dir" : 'X\(//\)[^/]' \| \
42069          X"$as_dir" : 'X\(//\)$' \| \
42070          X"$as_dir" : 'X\(/\)' \| \
42071          .     : '\(.\)' 2>/dev/null ||
42072 echo X"$as_dir" |
42073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42075           /^X\(\/\/\)$/{ s//\1/; q; }
42076           /^X\(\/\).*/{ s//\1/; q; }
42077           s/.*/./; q'`
42078     done
42079     test ! -n "$as_dirs" || mkdir $as_dirs
42080   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42081 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42082    { (exit 1); exit 1; }; }; }
42083
42084   ac_builddir=.
42085
42086 if test "$ac_dir" != .; then
42087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42088   # A "../" for each directory in $ac_dir_suffix.
42089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42090 else
42091   ac_dir_suffix= ac_top_builddir=
42092 fi
42093
42094 case $srcdir in
42095   .)  # No --srcdir option.  We are building in place.
42096     ac_srcdir=.
42097     if test -z "$ac_top_builddir"; then
42098        ac_top_srcdir=.
42099     else
42100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42101     fi ;;
42102   [\\/]* | ?:[\\/]* )  # Absolute path.
42103     ac_srcdir=$srcdir$ac_dir_suffix;
42104     ac_top_srcdir=$srcdir ;;
42105   *) # Relative path.
42106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42108 esac
42109
42110 # Do not use `cd foo && pwd` to compute absolute paths, because
42111 # the directories may not exist.
42112 case `pwd` in
42113 .) ac_abs_builddir="$ac_dir";;
42114 *)
42115   case "$ac_dir" in
42116   .) ac_abs_builddir=`pwd`;;
42117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42119   esac;;
42120 esac
42121 case $ac_abs_builddir in
42122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42123 *)
42124   case ${ac_top_builddir}. in
42125   .) ac_abs_top_builddir=$ac_abs_builddir;;
42126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42128   esac;;
42129 esac
42130 case $ac_abs_builddir in
42131 .) ac_abs_srcdir=$ac_srcdir;;
42132 *)
42133   case $ac_srcdir in
42134   .) ac_abs_srcdir=$ac_abs_builddir;;
42135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42137   esac;;
42138 esac
42139 case $ac_abs_builddir in
42140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42141 *)
42142   case $ac_top_srcdir in
42143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42146   esac;;
42147 esac
42148
42149
42150   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42151 echo "$as_me: executing $ac_dest commands" >&6;}
42152   case $ac_dest in
42153     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42154   # Strip MF so we end up with the name of the file.
42155   mf=`echo "$mf" | sed -e 's/:.*$//'`
42156   # Check whether this is an Automake generated Makefile or not.
42157   # We used to match only the files named `Makefile.in', but
42158   # some people rename them; so instead we look at the file content.
42159   # Grep'ing the first line is not enough: some people post-process
42160   # each Makefile.in and add a new line on top of each file to say so.
42161   # So let's grep whole file.
42162   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42163     dirpart=`(dirname "$mf") 2>/dev/null ||
42164 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42165          X"$mf" : 'X\(//\)[^/]' \| \
42166          X"$mf" : 'X\(//\)$' \| \
42167          X"$mf" : 'X\(/\)' \| \
42168          .     : '\(.\)' 2>/dev/null ||
42169 echo X"$mf" |
42170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42171           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42172           /^X\(\/\/\)$/{ s//\1/; q; }
42173           /^X\(\/\).*/{ s//\1/; q; }
42174           s/.*/./; q'`
42175   else
42176     continue
42177   fi
42178   # Extract the definition of DEPDIR, am__include, and am__quote
42179   # from the Makefile without running `make'.
42180   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42181   test -z "$DEPDIR" && continue
42182   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42183   test -z "am__include" && continue
42184   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42185   # When using ansi2knr, U may be empty or an underscore; expand it
42186   U=`sed -n 's/^U = //p' < "$mf"`
42187   # Find all dependency output files, they are included files with
42188   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42189   # simplest approach to changing $(DEPDIR) to its actual value in the
42190   # expansion.
42191   for file in `sed -n "
42192     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42193        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42194     # Make sure the directory exists.
42195     test -f "$dirpart/$file" && continue
42196     fdir=`(dirname "$file") 2>/dev/null ||
42197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42198          X"$file" : 'X\(//\)[^/]' \| \
42199          X"$file" : 'X\(//\)$' \| \
42200          X"$file" : 'X\(/\)' \| \
42201          .     : '\(.\)' 2>/dev/null ||
42202 echo X"$file" |
42203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42204           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42205           /^X\(\/\/\)$/{ s//\1/; q; }
42206           /^X\(\/\).*/{ s//\1/; q; }
42207           s/.*/./; q'`
42208     { if $as_mkdir_p; then
42209     mkdir -p $dirpart/$fdir
42210   else
42211     as_dir=$dirpart/$fdir
42212     as_dirs=
42213     while test ! -d "$as_dir"; do
42214       as_dirs="$as_dir $as_dirs"
42215       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42217          X"$as_dir" : 'X\(//\)[^/]' \| \
42218          X"$as_dir" : 'X\(//\)$' \| \
42219          X"$as_dir" : 'X\(/\)' \| \
42220          .     : '\(.\)' 2>/dev/null ||
42221 echo X"$as_dir" |
42222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42224           /^X\(\/\/\)$/{ s//\1/; q; }
42225           /^X\(\/\).*/{ s//\1/; q; }
42226           s/.*/./; q'`
42227     done
42228     test ! -n "$as_dirs" || mkdir $as_dirs
42229   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42230 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42231    { (exit 1); exit 1; }; }; }
42232
42233     # echo "creating $dirpart/$file"
42234     echo '# dummy' > "$dirpart/$file"
42235   done
42236 done
42237  ;;
42238     default )
42239 chmod +x tests/run
42240 date > stamp-h
42241 BACKENDSC="servers/slapd/backends.c"
42242 echo "Making $BACKENDSC"
42243 rm -f $BACKENDSC
42244 cat > $BACKENDSC << ENDX
42245 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42246  *
42247  * Copyright 1998-2007 The OpenLDAP Foundation.
42248  * All rights reserved.
42249  *
42250  * Redistribution and use in source and binary forms, with or without
42251  * modification, are permitted only as authorized by the OpenLDAP
42252  * Public License.
42253  *
42254  * A copy of this license is available in the file LICENSE in the
42255  * top-level directory of the distribution or, alternatively, at
42256  * <http://www.OpenLDAP.org/license.html>.
42257  */
42258 /* This file is automatically generated by configure; please do not edit. */
42259
42260 #include "portable.h"
42261 #include "slap.h"
42262
42263 ENDX
42264 if test "${STATIC_BACKENDS}"; then
42265         for b in config ${STATIC_BACKENDS}; do
42266                 bb=`echo "${b}" | sed -e 's/back-//'`
42267                 cat >> $BACKENDSC << ENDX
42268 extern BI_init ${bb}_back_initialize;
42269 ENDX
42270         done
42271
42272         cat >> $BACKENDSC << ENDX
42273
42274 BackendInfo slap_binfo[] = {
42275 ENDX
42276
42277         for b in config ${STATIC_BACKENDS}; do
42278                 bb=`echo "${b}" | sed -e 's/back-//'`
42279                 echo "    Add ${bb} ..."
42280                 cat >> $BACKENDSC << ENDX
42281         { "${bb}", ${bb}_back_initialize },
42282 ENDX
42283         done
42284
42285         cat >> $BACKENDSC << ENDX
42286         { NULL, NULL },
42287 };
42288
42289 /* end of generated file */
42290 ENDX
42291 fi
42292 OVERLAYSC="servers/slapd/overlays/statover.c"
42293 echo "Making $OVERLAYSC"
42294 rm -f $OVERLAYSC
42295 cat > $OVERLAYSC << ENDX
42296 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42297  *
42298  * Copyright 1998-2007 The OpenLDAP Foundation.
42299  * All rights reserved.
42300  *
42301  * Redistribution and use in source and binary forms, with or without
42302  * modification, are permitted only as authorized by the OpenLDAP
42303  * Public License.
42304  *
42305  * A copy of this license is available in the file LICENSE in the
42306  * top-level directory of the distribution or, alternatively, at
42307  * <http://www.OpenLDAP.org/license.html>.
42308  */
42309 /* This file is automatically generated by configure; please do not edit. */
42310
42311 #include "portable.h"
42312 #include "slap.h"
42313
42314 ENDX
42315 if test "${STATIC_OVERLAYS}"; then
42316         for o in ${STATIC_OVERLAYS}; do
42317                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42318                 cat >> $OVERLAYSC << ENDX
42319 extern OV_init ${oo}_initialize;
42320 ENDX
42321         done
42322 fi
42323
42324 cat >> $OVERLAYSC << ENDX
42325
42326 OverlayInit slap_oinfo[] = {
42327 ENDX
42328
42329 if test "${STATIC_OVERLAYS}"; then
42330         for o in ${STATIC_OVERLAYS}; do
42331                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42332                 echo "    Add ${oo} ..."
42333                 cat >> $OVERLAYSC << ENDX
42334         { "${oo}", ${oo}_initialize },
42335 ENDX
42336         done
42337 fi
42338
42339         cat >> $OVERLAYSC << ENDX
42340         { NULL, NULL },
42341 };
42342
42343 /* end of generated file */
42344 ENDX
42345
42346 echo Please run \"make depend\" to build dependencies
42347  ;;
42348   esac
42349 done
42350 _ACEOF
42351
42352 cat >>$CONFIG_STATUS <<\_ACEOF
42353
42354 { (exit 0); exit 0; }
42355 _ACEOF
42356 chmod +x $CONFIG_STATUS
42357 ac_clean_files=$ac_clean_files_save
42358
42359
42360 # configure is writing to config.log, and then calls config.status.
42361 # config.status does its own redirection, appending to config.log.
42362 # Unfortunately, on DOS this fails, as config.log is still kept open
42363 # by configure, so config.status won't be able to write to it; its
42364 # output is simply discarded.  So we exec the FD to /dev/null,
42365 # effectively closing config.log, so it can be properly (re)opened and
42366 # appended to by config.status.  When coming back to configure, we
42367 # need to make the FD available again.
42368 if test "$no_create" != yes; then
42369   ac_cs_success=:
42370   ac_config_status_args=
42371   test "$silent" = yes &&
42372     ac_config_status_args="$ac_config_status_args --quiet"
42373   exec 5>/dev/null
42374   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42375   exec 5>>config.log
42376   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42377   # would make configure fail if this is the last instruction.
42378   $ac_cs_success || { (exit 1); exit 1; }
42379 fi
42380